From 08907079441c19e888781bfa6d099439810123d9 Mon Sep 17 00:00:00 2001 From: Azi Hassan Date: Wed, 11 Dec 2024 03:06:47 +0100 Subject: [PATCH 1/2] [fix/ISSUE-89] Update code to match new signature scrambling changes --- source/parsers.d | 23 +- tests/5b77d519.js | 7917 +++++++++++++++++++++++++++++++ tests/dQw4w9WgXcQ-5b77d519.html | 15 + 3 files changed, 7948 insertions(+), 7 deletions(-) create mode 100644 tests/5b77d519.js create mode 100644 tests/dQw4w9WgXcQ-5b77d519.html diff --git a/source/parsers.d b/source/parsers.d index cfd890f..66a5215 100644 --- a/source/parsers.d +++ b/source/parsers.d @@ -497,7 +497,7 @@ struct EncryptionAlgorithm this.javascript = javascript; this.logger = logger; - string algorithm = javascript.matchOrFail!(`a\s*=\s*a\.split\(""\);\s*((.|\s)*?);\s*return a\.join\(""\)`, false); + string algorithm = javascript.matchOrFail!(`\w\s*=\s*\w\.split\(""\);\s*((.|\s)*?);\s*return \w\.join\(""\)`, false); logger.displayVerbose("Matched algorithm = ", algorithm); string[] steps = algorithm.split(";"); foreach(step; steps.map!strip) @@ -542,16 +542,16 @@ struct EncryptionAlgorithm private void parseStepFunctionNames() { - logger.displayVerbose("Attempting to match ", `([A-Za-z]{2}):function\(a\)\{a\.reverse\(\)\}`); - string flip = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(a\)\{a\.reverse\(\)\}`); + logger.displayVerbose("Attempting to match ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); + string flip = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w\)\{\w\.reverse\(\)\}`); logger.displayVerbose("Matched flip = ", flip); - logger.displayVerbose("Attempting to match removeFromStart ", `([A-Za-z]{2}):function\(a\)\{a\.reverse\(\)\}`); - string removeFromStart = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(a,b\)\{a\.splice\(0,b\)\}`); + logger.displayVerbose("Attempting to match removeFromStart ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); + string removeFromStart = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{\w\.splice\(0,\w\)\}`); logger.displayVerbose("Matched removeFromStart = ", removeFromStart); - logger.displayVerbose("Attempting to match swapFirstCharacterWith ", `([A-Za-z]{2}):function\(a\)\{a\.reverse\(\)\}`); - string swapFirstCharacterWith = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(a,b\)\{var c=a\[0\];a\[0\]=a\[b%a\.length\];a\[b%a\.length\]=c\}`); + logger.displayVerbose("Attempting to match swapFirstCharacterWith ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); + string swapFirstCharacterWith = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{var \w=\w\[0\];\w\[0\]=\w\[\w%\w\.length\];\w\[\w%\w\.length\]=\w\}`); logger.displayVerbose("Matched swapFirstCharacterWith = ", swapFirstCharacterWith); obfuscatedStepFunctionNames[flip] = "flip"; @@ -586,6 +586,15 @@ unittest assert(signature == "AOq0QJ8wRQIgbJLlJRLLqu-RJ0ys8Rioy-CRtJLG_5t2WEHgLfRLCwgCIQDri728L1lXeqfbUSRArzq2N6Uf4AvLW76vl_tRRENKKg%3D%3D"); } +unittest +{ + writeln("When video is VEVO song and player is 5b77d519, should correctly decrypt video signature".formatTitle()); + scope(success) writeln("OK\n".formatSuccess()); + auto algorithm = EncryptionAlgorithm("tests/5b77d519.js".readText(), new StdoutLogger()); + string signature = algorithm.decrypt("AGluJ3MwRQIhAN6vDIopGmP-YxvuE68GP-RycrpgAH5uipJ1MJ_8k1h8AiB3_MMwOBVplfCiUKsL0ImQp6THOKokNqJy1KMN3OjJrg%3D%3D"); + assert(signature == "AJfQdSswRQIhAJYjCYQh5qbchSl650IN1F0-gbhFoDIuG5ymcQlN4BrZAiAXeiCeF8CN_D4zJh0QKQLgsO7xuF9KKnWfTLNyXelyig%3D%3D"); +} + struct ThrottlingAlgorithm { alias Step = Tuple!(string, ulong); diff --git a/tests/5b77d519.js b/tests/5b77d519.js new file mode 100644 index 0000000..dfe067d --- /dev/null +++ b/tests/5b77d519.js @@ -0,0 +1,7917 @@ +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 +*/ +/* + + (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 Zk,p1,m7t,gc,XK,lP,emI,FK,wc,n1,cy,N7,rc,Ab,C1,f1,ot,dc,By,Z1s,ER,YG,UR,bP,M3P,Dk,L1,sR,GK,ys,j3,OR,Py,mX,KIk,qRc,py1,u6,SR1,$w,wm,nz,ck,Nd,rm,IB,Am,Cz,fz,oB,Bk,akc,Yw,U2,b6,vG3,tm,Qf,jq,Pk,e7,Zp,Ms,kR,S7,gGc,rX,oO,A2,Xy3,BG,Cq,i1b,lkG,b7,yv,j7,Gi,t2,Vv,Rms,zi,eV,Ma,qa,SV,Z1,aR,gK,XT,iu,x3,lu,hmI,RR,hl,Tm,$3,wK,cU,rK,IR,fd,oR,EU,bu,QE,HU,Y3,Gm,yE,OU,WU,nGI,Mv,mG,PU,K7,qv,cby,p7,as,gM,ug,rb7,lg,T2,IkG,ig,Ncm,wM,AbI,Is,CPR,A8,fkR,f7,C7,oGR,os,B_,ED,UD,bg,YV,Df,H_,yx,jd,J8,Vx,mf,e5, +Zu,ki,pG,S5,KG,qH,g9,L7,X4,iC,Xo,lC,uC,OD,W_,hs,T0,$i,F4,w9,l6,nG,cr,NH,r9,As,CG,fG,o4,Br,U4,Q0,Hr,s4,LG,G0,y0,j5,O4,V0,z0,ef,Zx,Bck,Mj,Sf,vo,gr,U7I,lK,uK,b1K,Rr,hc,TA,Fc,wr,t3t,no,QtK,Nj,H1t,Ac,Co,or,Ef,Y1,Lo,stP,Of,Jc,VH,Wo,zA,GK1,mN,ZQ,ku,K3,vF,PPk,mdR,gk,Xr,ie,xu,le,ue,Rp,hv,TX,$u,Ng,rk,f3,BF,EA,Yu,HF,WF,uQ,T5,$o,FN,e91,wN,Zz7,rN,bQ,ty,Qr,Hc,LC,D$,jU,Om,G5,Mqm,sm,yr,Wc,z5,mt,kCP,Pc,eZ,ZD,MO,km,KXy,KW,qO,pW,q2t,pkK,SZ,a2,vL,g7,iF,abI,xm,lF,uF,R2,FZ,vwm,hH,r7,cL,XkK,w7,$m,o2,d7,BL,U8,izI,bF,tH, +xdK,lbI,JH,WL,zI,R91,Zt,mm,iS,jZ,Tmc,Ka,MY,kM,lS,h9G,uoy,$M,FV,wD,$dG,na,FXG,cS,wk1,NY,rD,AV,fa,dD,BS,YM,Ug,bS,HS,La,sg,Gq,yJ,cmK,WS,JV,eW,VJ,m_,PS,Z4,Me,rmm,kS,qe,pk,SW,ak,vb,gW,Ib1,X6,Am1,iB,xS,Kk,lB,uB,Rk,xw,hp,$S,F6,wW,ows,nk,cb,Ne,ddI,rW,Bms,EwK,Ik,Ap,Ck,Udt,ok,QBc,Hzb,DdI,dW,Bb,bz1,Ec,YS,Uc,bB,tp,Hb,D4,sBP,GCG,Lk,ym7,jBb,Ozb,JmP,z9K,Vqm,sc,y8,jW,Oc,V8,Wb,zF,Pb,en,P6I,Zh,mr,Mb,kK,KH,msy,erk,ZqI,M71,qb,pH,Sn,aY,v1,gB,X$,it,xK,Kzt,kiR,RY,TN,$K,h3,ut,lt,F$,wB,nH,Nb,c1,IY,A3,CH,fH,oY,B1,apP,dB,EN, +UN,YK,pGk,vRR,bt,t3,Qc,H1,Dh,LH,sN,GN,yc,jn,ON,J3,gRK,Vc,W1,zN,P1,mS,eO,Zq,fk,iq1,kC,Kp,qn,Mn,pp,SO,aa,vN,lpG,XQ,gg,uRc,l2,Rrb,Ra,hrG,hQ,Tt,TXm,$C,FQ,$st,wg,np,Fzc,cN,wGk,nR1,Ia,AQ,Nn,r2P,NXK,A2c,fpb,dg,BN,Q7,Dq,y7,Gt,oR1,V7,BX1,JQ,zt,ERI,kz,KQ,qU,am,YMP,Xd,UsI,ix,xz,lx,ux,Rm,h7,t7I,fQ,E6,Yz,U6,bx,QOP,t7,QY,HR,DZ,LQ,s6,yY,jD,O6,VY,WR,zc,PR,mc,eh,Zc,MB,kL,Kh,qB,ph,Sh,aI,uV,RI,hh,TW,HqK,$L,wJ,nh,cM,Ah,Ch,fh,oI,Eh,YL,Uh,Dss,Lz7,bV,sOm,Gim,Qt,Oh,Jh,jOb,Vt,OqP,zW,mh,eS,kA,Z_,KE,WzK,qh,SS,a8,vA,gi,X1,iw, +xA,lw,uw,R8,hW,TD,$A,F1,wi,nE,cA,Nh,ri,I8,o8,zrK,EL,bw,HA,LE,OL,UL,MVK,MC,Zw,KO,qC,ay,vO,pO,gh,Xu,Kyc,xl,uN,pUs,Ry,hi,a13,$l,v3b,g33,XUI,id1,cO,CO,oy,dh,BO,EC,UC,bN,QA,HO,Dw,LO,sC,jC,Ji,VA,Yl,zy,PO,mE,ey,ZN,rn,CA,Ih,uTb,oh,fA,Ea,Ua,bp,Hl,RNK,Qo,DN,LA,TKR,Vo,zo,eY,$ac,qr,pr,SY,ad,vC,FyK,g1,Rd,hn,lf,$E,w1,cC,Id,r1,An,od,d1,Cr,EZ,YE,bf,wUm,Gs,yR,jY,OZ,VR,WC,zs,m3,rlG,I1b,Z9,MA,KY,qA,k5,pY,Aly,SB,ae,CuR,vV,gj,iE,x5,Re,lE,TG,$5,XA,FA,o3K,BKt,da1,cV,E31,uE,wj,YUs,hR,f1I,rj,Ie,AR,NA,nY,UaK,CY,fY,oe,dj,BV, +Y5,UY,bds,tVm,QRm,D9,LY,GG,yO,J8s,XoK,iom,RDs,jB,OY,JR,GAI,VO,WV,zG,PV,eH,Zo,jrG,MN,kU,KK,JcK,a5,Vfb,WxK,Oot,lI,uI,R5,qN,pK,va,Xp,xU,iI,SH,gF,h6,$U,Fp,wF,nK,ca,eWR,NN,A6,CK,o5,Z3b,KN1,kXy,fK,UH,t6,Ha,qA1,zr,sH,pFb,yz,MQ,qQ,KM,aG,SAk,Sw,pM,vx,ky,aQI,vum,gut,X3,XF1,i3y,xgy,lQK,urs,RWc,hWK,i$,l$,$gt,FNP,RG,wFy,F3,cvK,wd,nM,cx,NQ,IG,rd,CM,rvK,NkI,oG,IQk,QM,Hx,DP,sE,Yy,LM,Gj,Avs,Ce3,yM,OE,Wx,VM,Px,JL,zj,ev,Z6,ke,vn,aA,Sv,il,xe,ll,ul,TJ,ha,Fb,nf,cn,gL,xb,u4,fQK,l4,hY,ouG,Tz,$b,Fg,BkR,wL,nT,NP,rL,CT,AY, +IV,fT,oV,Eu1,YAk,Qg,b4,D7,Bw,LT,e2,OX,JY,Vg,LNt,qy,S2,H3t,gu,Qp3,dL,vh,jt,ms,pD,Gz,Yb,EX,UX,Hw,KD,R1,hg,l9,TT,$N,Jvy,FG,VbK,wu,nD,ch,Ny,WN3,Pem,mfI,I1,CD,o1,fD,du,ZCR,MU7,UQ,YN,KLy,b9,Hh,tg,Qd,HC,yd,vos,Vd,Wh,Xcm,MK,Zr,iCc,S9,xfI,aS,l$3,qK,Mb3,kn,p_,K_,zT,X5,uNK,R3K,im,xn,TNt,RS,um,T8,h4,F5,wz,n_,cT,$fb,rz,FL3,IS,A4,f_,oS,dz,BT,EK,Yn,UK,C_,bm,Q1,HT,t4,L_,sK,G8,y1,OK,wct,WT,V1,z8,mW,ei,noc,PT,cyy,kc,KB,NNR,ryt,I$R,a0,vz,Si,MG,CQt,ooP,dfG,xc,$c,BNK,Ymt,wG,Ufy,cz,tUK,rG,HCG,Qom,I0,A$,CB,fB,o0,dG,Bz, +Et,Yc,soK,t$,yyP,QX,c23,Hz,job,Jy7,LB,Gh,J$,yX,Ot,ji,z31,WLc,VUI,PQc,VX,mO1,kI1,Wz,q8t,zh,pLs,Pz,me,ee,ZW,S87,MJ,aD3,vmb,kB,qJ,vj,go,X_,iv,xB,lv,uv,Rl,hK,Tp,$B,F_,wo,gmG,XLI,nc,cj,NJ,ro,Il,AK,iWI,xOb,Cc,ol,Bj,uZK,h5s,EF,Hj,DW,$Oy,Gp,ya,je,OF,FtK,nmK,wL3,cHs,N7I,rHb,IDK,AHI,CFy,dOs,EmP,omm,Va,UOb,Y8G,Wj,zp,bWy,tZm,Q2b,Mt,qt,pR,SQ,vi,g5,eQ,Zv,az,LtR,DO7,XB,s2R,j2y,VZb,l_,u_,Rz,hw,TE,mYR,eV3,FB,Zac,z5G,PFK,MaR,nR,ci,kqm,Kmk,Nt,qgR,QR,SgG,pSI,vMI,at1,gMP,CR,fR,oz,d5,uVc,hVt,$Ys,FmI,Ed,b_,Q6,Hi,cVc,LR, +sd,NDI,rVR,GE,y6,It7,AVK,CSs,Od,EMm,UYK,baI,Ygs,zE,mF,Pi,tat,Qw7,V6,HaP,DYc,Lmm,sw7,Wi,Oa1,JVR,VaP,jws,yV1,Gqm,WmI,zV7,dYm,PSG,BDs,me3,eOc,K_G,ZkK,MWR,kFR,Sc1,qc3,pbm,a4s,vS1,ZJ,XbK,gSR,l4s,iky,u6I,xec,ROk,hO1,TWG,$e3,F_3,wbI,nSc,cp1,NWK,rp1,I4I,Aps,MM,f4G,oSK,deP,CBI,BWs,ESs,bkb,k2,Ky,py,SN,aL,g6,tWR,X2,iR,x2,L_7,GFt,skR,jkK,eE7,w6,uR,ypK,DeK,Hkt,QkK,F2,RL,$2,Cy,fy,kNs,oL,d6,AZ,SNP,KrK,qNy,ahG,BD,Eu,gK1,Uu,bR,tZ,Qi,HD,DJ,Ly,X17,GB,Ou,xbs,lhc,jN,JZ,hEI,Vi,TBP,PD,ZL,eu,$by,mC,Mo,Frm,Kl,nK7,c3K,pl, +X8,a6,xD,IhI,iz,gq,lz,A3s,uz,Cts,R6,fhy,Su,vd,NBK,r3y,hJ,oK7,dbI,T7,BB1,$D,EKt,F8,wq,YNy,cd,nl,No,rq,UbI,bHb,I6,AJ,Cl,fl,o6,tnc,dq,Bd,QYm,HHK,E_,YD,U_,Lrk,Dbs,bz,sY3,QG,GNK,y3c,jYk,OHR,J3b,Hd,DL,pV,g_,Vn7,WrK,io,zEK,x7,lo,PtI,mnK,uo,e2P,Zp1,qoG,pN1,MO7,kt3,KSk,hM,T$,$7,FI,SoI,aqG,w_,vCI,nV,NL,XNb,gCb,ID,r_,ipc,xns,lq1,uQK,AM,R2R,fV,oD,d_,BY,h2I,$nK,Y7,Eq,QB,r6,FSG,HY,DT,LV,NM,wNG,sq,G$,nCR,yB,jc,Oq,bo,JM,VB,WY,PY,mg,ZF,cQK,M4,kv,NgR,K8,rQ3,q4,p8,S4,Iqs,aX,vJ,gy,Xs,iO,lO,uO,RX,hB,AQb,C2k,fqR,oCG,n8, +Tu,cJ,N4,dnI,Bgc,ECP,Yot,ry,C8,QaP,PBI,hZ,Hpb,f8,oX,dy,Dnm,LSk,lR,BJ,sab,Uj,bO,jak,Op7,tB,P21,VOc,WSt,e0t,ZQ1,Q3,MDs,mUR,kcK,HJ,DF,L8,Kus,q6P,pR1,sj,S63,Gu,aZP,y3,Ej,V3,vzP,mbm,Ok3,WJ,zu,mZ,eP,Zg,MR,kk,PJ,SP,XRI,gI,iQG,xUs,lZb,udy,R07,X7,TU3,iT,Fum,xk,nzK,c7c,wRm,$Um,NU3,r7K,IZK,A7P,Cxm,ozm,$k,MnK,wI,BUc,Y6G,ny,UUK,bQ7,ce,Qmm,TB,tDm,Jp3,W_t,zOR,dUc,NR,rI,I3,HQR,DUb,AX,Luk,fe,o3,dI,Be,smP,En,Yk,Gct,Un,bT,tX,QQ,He,Dg,jmK,y7b,Le,OQt,VDm,sn,Wuy,J77,Gx,SA,eA,kI,a_,v4,gY,z07,KcK,iA,R_,hC,VQ,JX,On,$I,xBK, +FP,wY,lcc,um1,Rp3,hpI,nm,TJK,$Bb,c4,FcK,rhm,NJb,wMI,chb,nLb,NF,Icb,rY,Ahs,CVy,oLt,dBK,BJ1,thm,fm,o_,DB7,dY,B4,Lc1,yhb,jIs,Ohc,Jhc,EG,YI,UG,Vh3,Wcc,zpb,tC,Q5,H4,sG,MSm,KhG,e7K,ZEk,pA1,Gk,y5,jA,OG,JC,SLs,W4,mQ,XAm,a_s,l_y,gA7,f_P,lJ,TQ,hF,HEs,I_R,KI,$O,vQ,Fh,NiI,Lh1,DhP,s8c,wA,P4,af,yWm,j8G,OEc,VSK,GDK,nI,JW7,Why,z73,rA,If,mC7,zk,pI,cQ,vAs,Bic,of,dA,uJ,Es,YO,Us,glK,vlc,Rf,tF,XOK,iOk,Qu,xCP,lwy,HQ,Mw,D8,rWI,GQ,ky3,qw,TiG,uuK,R73,u1c,iEt,yu,Uhs,jp,ep,RbP,hbs,riK,Nhk,Aic,CNP,JF,WQ,zQ,Vu,PQ,mv,fws,eg,dCt, +Zm,Elb,KZ,BhK,pZ,Sg,aU,tCK,Qy3,vB,HOc,XE,ic,DCK,Lkt,RU,yi1,FE,nZ,OO1,cB,AE,Jiy,fZ,d4,BB,Eb,Wk1,zbc,QW,HB,ZAK,Dm,LZ,MyP,sb,GM,koc,KEK,yW,jg,Ob,JE,VW,pl7,Sam,WB,vdK,aNy,zM,PB,mM,gd1,el,iAR,M5,xcK,lNP,ZU,k_,KS,uJc,$cP,wlm,RBK,FEy,ndm,hBI,Tn7,cSG,Sl,aK,Nnb,INI,Cpm,ody,fNG,RK,u5,$_,BnG,Fk,wx,nS,cI,Ya3,N5,Ucb,Edb,rx,QhR,IK,Ax,HA1,CS,Dck,mhR,kD7,shy,LEc,ySK,Gom,jhm,oK,OAs,WE7,Ek,Y_,Uk,Ppk,ZrI,Qb,HI,DU,ks7,MYm,b5,K23,qZ1,pCK,a2G,LS,hft,jl,Ok,nER,gx,N1K,rnR,I2y,Ans,Cfk,Vb,f2s,WI,zL,PI,oEb,Zs,drm,B1G,Mz,kj, +EEy,YZk,UrR,brm,tYb,K9,eX,QdI,qz,Dry,p9,L2m,SX,sdb,Gs3,ync,jdP,OrP,JnI,VYP,W2R,zfb,PfG,aN,eU3,vW,ZYt,Xy,K33,xj,mAI,g2,li,ui,RN,hf,T6,Fy,qYI,w2,pVm,n9,XVk,l97,uA1,RUb,hU7,IN,Tjt,xAb,g5K,$A1,cW,F3K,n5s,Nz,r2,a9c,v57,Af,cRK,Nj1,iYy,SYR,rRb,f9,I9G,oN,d2,BW,f9b,ARm,CEm,Ep,o5R,Yj,Up,bi,tf,dAK,Bj3,E53,QP,UAK,bYc,HW,tBc,Ds,L9,Qe7,HYP,DAk,L3P,sek,GGP,VBs,jeP,G6,zUK,PE1,OYs,JRk,yRk,Op,kry,jX,yP,W3y,qHk,MHy,ZKy,eI1,mNc,VP,pam,vI,WW,z6,PW,SH7,mw,ao3,er,vUk,TL,gUc,Za,i5,l5,rSK,Kt,pt,xN1,Sr,los,vg,qS,kW,XC,MS, +XaI,iK3,iH,upG,RIm,ii,kGK,Xk,hIP,a9,TFc,$Ns,FbK,waI,xW,lH,uH,c6y,NF3,r6R,IoK,A6s,wVy,T_,$W,FC,R9,CIy,bAt,tyG,ws,fob,oUs,dNK,BF1,nt,EUI,cg,UNK,YH7,tHK,NS,Q5c,HKb,I9,DNk,rs,ds,Grk,s53,OK1,j57,J6c,VHP,y6y,Bg,Wbm,LbR,zI7,Ei,PIt,ZMs,mQI,e$P,Ui,MwK,Hrs,kjm,K9c,qEP,px7,bH,tI,QI,SER,Hg,Da,Lt,aPb,lPt,xQR,vym,gyk,Xx1,iMP,si,u3P,R$t,h$I,G_,efb,yI,$QP,jr,Tds,Oi,F93,mrs,tx,wxy,nyR,VI,cL7,ALt,IPG,rLR,M0,KP,k9,fPm,q0,oyK,dQy,pP,S_,UQ7,EyG,bMc,twm,QGy,HM1,DQm,sGb,Gjk,yLk,L9P,vt,JI,OMs,Bd1,JLR,YEs,gH,W9y,jGy,aQ,z$I, +XU,eMc,kJ7,ZfR,K6K,MvI,qW3,P$t,mIK,RQ,uG,geK,ve7,Xnt,ift,RMK,a6R,hM7,TQm,iG,$Im,nP,F6K,wnG,NQb,ca1,neI,ct,ra3,AaG,rH,Clk,f6K,A1,CP,MBR,oe1,oQ,dH,Eeb,BQR,dIP,Bt,YWt,UIy,ES,lG,AI,bfP,fP,QA3,HfP,DIk,sAk,GJ7,yas,jAI,t1,KbR,US,bG,L6m,Of1,hx,sp,x_,PlK,zMG,mPG,e_R,ZT3,Mtk,I6y,o9,Ct,Vv1,tvb,QL,kzb,K53,bKy,qXI,SWK,pnP,Jab,ft,sS,Gb,SXR,yL,a71,vbb,gb3,Xw3,iTP,xPG,ugm,l7c,h_P,OS,wwI,TLR,F5b,nbP,J1,I7G,NL1,rYc,f7P,VL,obP,Wt,dPP,j_,BLy,C4R,cY7,zb,EbG,$Pc,YXm,Pt,bTR,ttR,mn,UPy,eR,Mm,QVK,L5I,DPk,HTy,K5,sVy,kq,GzK, +qm,jVk,OTK,yYk,p5,v0,Vt7,W5k,z_1,P4m,mym,eF3,M2I,ZDm,gv,Xw,iU,xq,uU,lU,KsK,kTK,qQs,SQm,aAR,gNc,iDI,vN1,he,T9,$q,ph1,xyt,XhI,Fw,wv,lA1,uGK,Fs,RFm,hFs,n5,Tuk,c0,Nm,IW,Ae,C5,f5,oW,wh3,dv,B0,Er,nNG,cgK,Nut,rg3,Ur,IAK,Agt,fA1,bU,te,dy7,QC,ENP,YQs,sr,yC,G9,Q1R,jR,HDK,LsK,Dyb,GTI,ygR,Or,bDt,W0,VC,s1c,P0,mq,ODP,j1b,JgR,ex,zFb,Mu,mKm,M9K,px,vZ,aE,k87,Xf,gR,qKR,e8R,Z_t,iX,uX,pTK,Sx,SKt,RE,KJP,t2K,z9,$$,Ff,gny,XTG,i_K,xKk,lrG,wR,u51,R8t,h8m,Tzc,nx,$KG,FJR,nnk,cZ,c43,wTP,Nzc,r4G,Nu,IrK,A4P,rR,Cm7,IE,FsK,frt, +onc,AN,dKK,Bzb,fx,UKP,b_t,dR,t9K,QSP,oE,YKs,BZ,Cx,EnG,Uv,Y$,H_3,bX,Ev,QZ,y4G,yZ,jSy,O_c,LJm,Lx,J4c,sSR,V9b,WJI,JN,tN,Pm3,z8G,GR,ZBs,Mi7,DX,G8K,eZ1,Ov,DKs,WZ,zR,PZ,m0,eM,a3R,qtK,vcI,pzK,KW3,gc1,khI,l3G,XzK,ZG,uXK,hZc,wy,TGK,SM,$Gk,vK,g0,FWy,wzc,c$1,XD,SR,NGR,Tw,xY,jx,$Y,w0,FD,ni,Vwm,h_,kY,A$7,CjG,oc3,f3R,dG1,Rb,lb,BGm,ND,Ecm,r0,UGt,Ytc,bBP,Y9,W61,Dn,Ib,tiI,A_,Ci,Q0I,HBR,ib,DGI,LWG,fi,s0c,j0P,OBm,I3c,MD,J$3,ob,ub,Ki,ViK,d0,Ey,zZs,YY,Uy,mJK,eXy,Zcc,Me3,cK,IQ,JYK,ncs,kp7,pwt,HZ,Ket,bb,t_,pjy,SFk,aWc, +qF7,vBG,Ql,xJK,XjP,icc,HK,lW1,u_1,RXc,DG,hXR,sy,Tob,$Jb,Gw,Li,yl,FeP,wjm,rKc,nBt,jM,Oy,cKm,Not,J_,IWk,WK,zw,PK,fWm,AKc,CvP,mV,Bo1,eo,EBt,YF3,oBc,dJ3,tey,QlR,Hc1,DJR,Le3,MW,jl1,kr,GpK,yKt,Zy,KF,qW,slG,pF,So,aF,Pj3,VeR,Wek,qX,SK,lc,ag,vv,zXK,eok,Pvm,lW,MQR,h0,piy,K13,Rg,Sdc,avy,qdt,kEb,$X,g4s,v4P,wZ,iRy,cv,uBb,RoI,NX,Xib,Ig,nu,xtm,A0,wH,x6,YCR,fu,og,$tm,T5s,lvR,wiG,Bv,n41,dZ,YX,Uz,cwy,bW,Aw3,rwt,t0,IvK,N5t,Hv,o4I,fvb,dtk,DM,Lu,B5I,YdR,Utm,bRR,tQb,sz,jK,Qzk,HRc,Gn,E4K,L1K,Ve,szI,Wv,GEG,ywI,Pv,Jw7,zo3, +W1b,OR3,e8,VQy,jzy,Zi,ME,mMb,P_b,k0,enb,ZyI,qE,aW,qus,pDs,SuP,ai,aJR,v2t,FU,h1,ubb,$9,vE,Tb,xIy,g2s,XH,id,x0,ld,u2y,lJG,XD7,ud,Ri,Rnb,hn3,FH,T6k,wO,n$,FF7,cE,NE,wD7,n2R,cZI,N6R,iy7,rO,l6t,CRb,AZy,o2s,q5,pS,x9,dM1,B6K,C$,E23,Ii,BK,rZK,YuK,At,UMR,fJ3,gs,nUR,mGy,f$,oi,YW,IJ3,dO,tNs,QLb,BE,Hy3,Ux,byy,tt,DMc,bd,Ex,LF7,sLK,Y0,yZK,Di,jLs,Qp,L$,HE,sx,r$P,Oyy,VNy,WFI,zn1,Jt,Ox,j8,PRK,mot,eSs,S_y,KCk,vDk,k7c,gDP,Mut,es,K$,lLK,XdG,xoI,ilb,Kb,pb,hSk,aC,RSt,pi,vX,pdR,la,Tqy,x8,Ss,$o1,FC7,wdk,q_G,T4,Fl,nDs,PE, +Xl,gp,cJy,k8,N$,Nqt,rJK,rp,IC,hT,AT,Cb,IL7,ia,u8K,fb,AJb,Czy,$8,ua,oDK,RC,k6,oC,Bqc,ZY,dp,M$,EDs,cX,wp,Y_c,JZc,nb,Uo7,e3,at;Zk=function(m){return function(){return e3[m].apply(this,arguments)}}; +g.M7=function(m,e){return e3[m]=e}; +p1=function(m){var e=0;return function(){return e=this.length))return this[m]}; +OR=function(m){return m?m:j3}; +g.Wy=function(m,e,Z){m=m.split(".");Z=Z||g.Jb;m[0]in Z||typeof Z.execScript=="undefined"||Z.execScript("var "+m[0]);for(var M;m.length&&(M=m.shift());)m.length||e===void 0?Z[M]&&Z[M]!==Object.prototype[M]?Z=Z[M]:Z=Z[M]={}:Z[M]=e}; +Py=function(m,e){var Z=g.zK("CLOSURE_FLAGS");m=Z&&Z[m];return m!=null?m:e}; +g.zK=function(m,e){m=m.split(".");e=e||g.Jb;for(var Z=0;Z2){var M=Array.prototype.slice.call(arguments,2);return function(){var k=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(k,M);return m.apply(e,k)}}return function(){return m.apply(e,arguments)}}; +g.qd=function(m,e,Z){g.qd=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?KIk:qRc;return g.qd.apply(null,arguments)}; +g.pz=function(m,e){var Z=Array.prototype.slice.call(arguments,1);return function(){var M=Z.slice();M.push.apply(M,arguments);return m.apply(this,M)}}; +g.Sq=function(){return Date.now()}; +py1=function(m){return m}; +g.aB=function(m,e){function Z(){} +Z.prototype=e.prototype;m.VQ=e.prototype;m.prototype=new Z;m.prototype.constructor=m;m.WI=function(M,k,K){for(var q=Array(arguments.length-2),S=2;Se&&Z.push(l6(M,1))}); +return Z}; +g.RB=function(m){m&&typeof m.dispose=="function"&&m.dispose()}; +g.hm=function(m){for(var e=0,Z=arguments.length;e1?e:"0"+e}).join("")}; +tm=function(m){for(var e=[],Z=0;Z>6|192:((k&64512)==55296&&M+1>18|240,e[Z++]=k>>12&63|128):e[Z++]=k>>12|224,e[Z++]=k>>6&63|128),e[Z++]=k&63|128)}return e}; +g.Hk=function(m,e){return m.lastIndexOf(e,0)==0}; +g.Db=function(m,e){var Z=m.length-e.length;return Z>=0&&m.indexOf(e,Z)==Z}; +g.Lz=function(m){return/^[\s\xa0]*$/.test(m)}; +g.s2=function(m,e){return m.toLowerCase().indexOf(e.toLowerCase())!=-1}; +g.Jm=function(m,e){var Z=0;m=(0,g.GC)(String(m)).split(".");e=(0,g.GC)(String(e)).split(".");for(var M=Math.max(m.length,e.length),k=0;Z==0&&ke?1:0}; +g.Vf=function(){var m=g.Jb.navigator;return m&&(m=m.userAgent)?m:""}; +Pk=function(m){return g.Wk?g.zC?g.zC.brands.some(function(e){return(e=e.brand)&&e.indexOf(m)!=-1}):!1:!1}; +g.mz=function(m){return g.Vf().indexOf(m)!=-1}; +e7=function(){return g.Wk?!!g.zC&&g.zC.brands.length>0:!1}; +Zp=function(){return e7()?!1:g.mz("Opera")}; +Ms=function(){return g.mz("Firefox")||g.mz("FxiOS")}; +g.Kq=function(){return g.mz("Safari")&&!(kR()||(e7()?0:g.mz("Coast"))||Zp()||(e7()?0:g.mz("Edge"))||(e7()?Pk("Microsoft Edge"):g.mz("Edg/"))||(e7()?Pk("Opera"):g.mz("OPR"))||Ms()||g.mz("Silk")||g.mz("Android"))}; +kR=function(){return e7()?Pk("Chromium"):(g.mz("Chrome")||g.mz("CriOS"))&&!(e7()?0:g.mz("Edge"))||g.mz("Silk")}; +g.qs=function(){return g.Wk?!!g.zC&&!!g.zC.platform:!1}; +g.pq=function(){return g.qs()?g.zC.platform==="Android":g.mz("Android")}; +S7=function(){return g.mz("iPhone")&&!g.mz("iPod")&&!g.mz("iPad")}; +g.aO=function(){return S7()||g.mz("iPad")||g.mz("iPod")}; +g.vG=function(){return g.qs()?g.zC.platform==="macOS":g.mz("Macintosh")}; +g.gX=function(){return g.qs()?g.zC.platform==="Windows":g.mz("Windows")}; +g.i7=function(m){return m[m.length-1]}; +g.u7=function(m,e){e=g.l7(m,e);return e<0?null:typeof m==="string"?m.charAt(e):m[e]}; +g.l7=function(m,e,Z){for(var M=m.length,k=typeof m==="string"?m.split(""):m,K=0;K=0;M--)if(M in k&&e.call(Z,k[M],M,m))return M;return-1}; +g.Ti=function(m,e){return h2(m,e)>=0}; +g.$R=function(m){if(!Array.isArray(m))for(var e=m.length-1;e>=0;e--)delete m[e];m.length=0}; +g.wX=function(m,e){e=h2(m,e);var Z;(Z=e>=0)&&g.FR(m,e);return Z}; +g.FR=function(m,e){return Array.prototype.splice.call(m,e,1).length==1}; +gGc=function(m,e){e=g.l7(m,e);e>=0&&g.FR(m,e)}; +g.nq=function(m){return Array.prototype.concat.apply([],arguments)}; +g.cG=function(m){var e=m.length;if(e>0){for(var Z=Array(e),M=0;M>>1),a=void 0;Z?a=e.call(void 0,m[S],S,m):a=e(M,m[S]);a>0?k=S+1:(K=S,q=!a)}return q?k:-k-1}; +g.dX=function(m,e){m.sort(e||Cq)}; +Xy3=function(m,e){var Z=Cq;g.dX(m,function(M,k){return Z(e(M),e(k))})}; +BG=function(m,e,Z){if(!g.eq(m)||!g.eq(e)||m.length!=e.length)return!1;var M=m.length;Z=Z||i1b;for(var k=0;ke?1:m=0})}; +g.HG=function(m,e){e===void 0&&(e=0);t2();e=Qv[e];for(var Z=Array(Math.floor(m.length/3)),M=e[64]||"",k=0,K=0;k>2];q=e[(q&3)<<4|S>>4];S=e[(S&15)<<2|a>>6];a=e[a&63];Z[K++]=""+v+q+S+a}v=0;a=M;switch(m.length-k){case 2:v=m[k+1],a=e[(v&15)<<2]||M;case 1:m=m[k],Z[K]=""+e[m>>2]+e[(m&3)<<4|v>>4]+a+M}return Z.join("")}; +g.Dp=function(m){for(var e=[],Z=0,M=0;M255&&(e[Z++]=k&255,k>>=8);e[Z++]=k}return g.HG(e,3)}; +yv=function(m){var e=[];Gi(m,function(Z){e.push(Z)}); +return e}; +j7=function(m){var e=m.length,Z=e*3/4;Z%3?Z=Math.floor(Z):"=.".indexOf(m[e-1])!=-1&&(Z="=.".indexOf(m[e-2])!=-1?Z-2:Z-1);var M=new Uint8Array(Z),k=0;Gi(m,function(K){M[k++]=K}); +return k!==Z?M.subarray(0,k):M}; +Gi=function(m,e){function Z(a){for(;M>4);q!=64&&(e(K<<4&240|q>>2),S!=64&&e(q<<6&192|S))}}; +t2=function(){if(!OM){OM={};for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],Z=0;Z<5;Z++){var M=m.concat(e[Z].split(""));Qv[Z]=M;for(var k=0;ke.length)return!1;if(m.lengthk)return!1;if(M>>0;g.dK=e;g.BU=(m-e)/4294967296>>>0}; +g.UU=function(m){if(m<0){EU(0-m);var e=g.r(Y3(g.dK,g.BU));m=e.next().value;e=e.next().value;g.dK=m>>>0;g.BU=e>>>0}else EU(m)}; +g.tl=function(m,e){var Z=e&2147483648;Z&&(m=~m+1>>>0,e=~e>>>0,m==0&&(e=e+1>>>0));var M=e*4294967296+(m>>>0);m=Number.isSafeInteger(M)?M:bu(m,e);return typeof m==="number"?Z?-m:m:Z?"-"+m:m}; +bu=function(m,e){e>>>=0;m>>>=0;if(e<=2097151)var Z=""+(4294967296*e+m);else iu()?Z=""+(BigInt(e)<>>24|e<<8)&16777215,e=e>>16&65535,m=(m&16777215)+Z*6777216+e*6710656,Z+=e*8147497,e*=2,m>=1E7&&(Z+=m/1E7>>>0,m%=1E7),Z>=1E7&&(e+=Z/1E7>>>0,Z%=1E7),Z=e+QE(Z)+QE(m));return Z}; +QE=function(m){m=String(m);return"0000000".slice(m.length)+m}; +HU=function(){var m=g.dK,e=g.BU;e&2147483648?iu()?m=""+(BigInt(e|0)<>>0)):(e=g.r(Y3(m,e)),m=e.next().value,e=e.next().value,m="-"+bu(m,e)):m=bu(m,e);return m}; +g.D1=function(m){if(m.length<16)g.UU(Number(m));else if(iu())m=BigInt(m),g.dK=Number(m&BigInt(4294967295))>>>0,g.BU=Number(m>>BigInt(32)&BigInt(4294967295));else{var e=+(m[0]==="-");g.BU=g.dK=0;for(var Z=m.length,M=0+e,k=(Z-e)%6+e;k<=Z;M=k,k+=6)M=Number(m.slice(M,k)),g.BU*=1E6,g.dK=g.dK*1E6+M,g.dK>=4294967296&&(g.BU+=Math.trunc(g.dK/4294967296),g.BU>>>=0,g.dK>>>=0);e&&(e=g.r(Y3(g.dK,g.BU)),m=e.next().value,e=e.next().value,g.dK=m,g.BU=e)}}; +Y3=function(m,e){e=~e;m?m=~m+1:e+=1;return[m,e]}; +g.Ld=function(m,e){throw Error(e===void 0?"unexpected value "+m+"!":e);}; +g.sU=function(m){if(m!=null&&typeof m!=="number")throw Error("Value of float/double field must be a number, found "+typeof m+": "+m);return m}; +Gm=function(m){return m.displayName||m.name||"unknown type name"}; +yE=function(m){if(m!=null&&typeof m!=="boolean")throw Error("Expected boolean but got "+mX(m)+": "+m);return m}; +g.jV=function(m){var e=typeof m;switch(e){case "bigint":return!0;case "number":return Number.isFinite(m)}return e!=="string"?!1:wyK.test(m)}; +OU=function(m){if(typeof m!=="number")throw XT("int32");if(!Number.isFinite(m))throw XT("int32");return m|0}; +g.Jl=function(m){return m==null?m:OU(m)}; +g.VE=function(m){if(m==null)return m;if(typeof m==="string"){if(!m)return;m=+m}if(typeof m==="number")return Number.isFinite(m)?m|0:void 0}; +WU=function(m){if(m==null)return m;if(typeof m==="string"){if(!m)return;m=+m}if(typeof m==="number")return Number.isFinite(m)?m>>>0:void 0}; +nGI=function(m){var e=0;e=e===void 0?0:e;if(!g.jV(m))throw XT("int64");var Z=typeof m;switch(e){case 4096:switch(Z){case "string":return g.zm(m);case "bigint":return String(BigInt.asIntN(64,m));default:return PU(m)}case 8192:switch(Z){case "string":return e=Math.trunc(Number(m)),Number.isSafeInteger(e)?m=fd(e):(e=m.indexOf("."),e!==-1&&(m=m.substring(0,e)),m=iu()?fd(BigInt.asIntN(64,BigInt(m))):fd(mG(m))),m;case "bigint":return fd(BigInt.asIntN(64,m));default:return Number.isSafeInteger(m)?fd(g.ed(m)): +fd(PU(m))}case 0:switch(Z){case "string":return g.zm(m);case "bigint":return fd(BigInt.asIntN(64,m));default:return g.ed(m)}default:return g.Ld(e,"Unknown format requested type for int64")}}; +g.Zf=function(m){return m==null?m:nGI(m)}; +Mv=function(m){return m[0]==="-"?m.length<20?!0:m.length===20&&Number(m.substring(0,7))>-922337:m.length<19?!0:m.length===19&&Number(m.substring(0,6))<922337}; +mG=function(m){if(Mv(m))return m;g.D1(m);return HU()}; +g.ed=function(m){g.jV(m);m=Math.trunc(m);Number.isSafeInteger(m)||(g.UU(m),m=g.tl(g.dK,g.BU));return m}; +PU=function(m){g.jV(m);m=Math.trunc(m);if(Number.isSafeInteger(m))m=String(m);else{var e=String(m);Mv(e)?m=e:(g.UU(m),m=HU())}return m}; +g.zm=function(m){g.jV(m);var e=Math.trunc(Number(m));if(Number.isSafeInteger(e))return String(e);e=m.indexOf(".");e!==-1&&(m=m.substring(0,e));return mG(m)}; +K7=function(m){if(m==null)return m;if(typeof m==="bigint")return kV(m)?m=Number(m):(m=BigInt.asIntN(64,m),m=kV(m)?Number(m):String(m)),m;if(g.jV(m))return typeof m==="number"?g.ed(m):g.zm(m)}; +qv=function(m){if(m==null||typeof m=="string"||eV(m)||m instanceof Ma)return m}; +cby=function(m){if(typeof m!=="string")throw Error();return m}; +p7=function(m){if(m!=null&&typeof m!=="string")throw Error();return m}; +g.Sd=function(m){return m==null||typeof m==="string"?m:void 0}; +as=function(m,e){if(!(m instanceof e))throw Error("Expected instanceof "+Gm(e)+" but got "+(m&&Gm(m.constructor)));return m}; +gM=function(m,e,Z){if(m!=null&&typeof m==="object"&&m.j3===v_)return m;if(Array.isArray(m)){var M=(0,g.FT)(m),k=M;k===0&&(k|=Z&32);k|=Z&2;k!==M&&uu(m,k);return new e(m)}}; +ug=function(m){XW===void 0&&(XW=typeof Proxy==="function"?ig(Proxy):null);var e;(e=!XW)||(xV===void 0&&(xV=typeof WeakMap==="function"?ig(WeakMap):null),e=!xV);if(e)return m;if(e=lg(m))return e;if(Math.random()>.01)return m;Ncm(m);e=new XW(m,{set:function(Z,M,k){rb7();Z[M]=k;return!0}}); +IkG(m,e);return e}; +rb7=function(){gK()}; +lg=function(m){var e;return(e=Rs)==null?void 0:e.get(m)}; +T2=function(m){var e;return((e=h8)==null?void 0:e.get(m))||m}; +IkG=function(m,e){(Rs||(Rs=new xV)).set(m,e);(h8||(h8=new xV)).set(e,m)}; +ig=function(m){try{return m.toString().indexOf("[native code]")!==-1?m:null}catch(e){return null}}; +Ncm=function(m){if($V===void 0){var e=new XW([],{});$V=Array.prototype.concat.call([],e).length===1}$V&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(m[Symbol.isConcatSpreadable]=!0)}; +wM=function(m,e){FW=e;m=new m(e);FW=void 0;return m}; +AbI=function(m){switch(typeof m){case "boolean":return n7||(n7=[0,void 0,!0]);case "number":return m>0?void 0:m===0?c_||(c_=[0,void 0]):[-m,void 0];case "string":return[0,m];case "object":return m}}; +Is=function(m,e,Z){m=g.Nv(m,e[0],e[1],Z?1:2);e!==n7&&Z&&rM(m,16384);return m}; +g.Nv=function(m,e,Z,M){var k;M=(k=M)!=null?k:0;m==null&&(m=FW);FW=void 0;if(m==null)k=96,Z?(m=[Z],k|=512):m=[],e&&(k=k&-33521665|(e&1023)<<15);else{if(!Array.isArray(m))throw Error("narr");k=(0,g.FT)(m);if(k&2048)throw Error("farr");if(k&64)return m;M===1||M===2||(k|=64);if(Z&&(k|=512,Z!==m[0]))throw Error("mid");a:{M=m;Z=k;if(k=M.length){var K=k-1;if(Tm(M[K])){Z|=256;e=K-(+!!(Z&512)-1);if(e>=1024)throw Error("pvtlmt");k=Z&-33521665|(e&1023)<<15;break a}}if(e){e=Math.max(e,k-(+!!(Z&512)-1));if(e> +1024)throw Error("spvt");k=Z&-33521665|(e&1023)<<15}else k=Z}}uu(m,k);return m}; +CPR=function(m,e){return A8(e)}; +A8=function(m){switch(typeof m){case "number":return isFinite(m)?m:String(m);case "bigint":return kV(m)?Number(m):String(m);case "boolean":return m?1:0;case "object":if(m)if(Array.isArray(m)){if(wK(m))return}else{if(eV(m))return Vv(m);if(m instanceof Ma){var e=m.X;return e==null?"":typeof e==="string"?e:m.X=Vv(e)}}}return m}; +fkR=function(m,e,Z){var M=x3(m),k=M.length,K=e&256?M[k-1]:void 0;k+=K?-1:0;for(e=e&512?1:0;e=m.length||e>=Z))return m[e]}; +YV=function(m,e,Z,M){if(Z===-1)return null;var k=e>>15&1023||536870912;if(Z>=k){if(e&256)return m[m.length-1][Z]}else{var K=m.length;if(M&&e&256&&(M=m[K-1][Z],M!=null)){if(bg(m,e,k,Z)&&t8!=null){var q;m=(q=Qx)!=null?q:Qx={};q=m[t8]||0;q>=4||(m[t8]=q+1,gK())}return M}return bg(m,e,k,Z)}}; +Df=function(m,e,Z){var M=m.RO,k=dM(M);cU(k);H_(M,k,e,Z);return m}; +H_=function(m,e,Z,M){var k=e>>15&1023||536870912;if(Z>=k){var K=e;if(e&256)var q=m[m.length-1];else{if(M==null)return K;q=m[k+(+!!(e&512)-1)]={};K|=256}q[Z]=M;Z "+m)}; +g.Yi=function(m){if(typeof m==="string")return{buffer:zi(m),fF:!1};if(Array.isArray(m))return{buffer:new Uint8Array(m),fF:!1};if(m.constructor===Uint8Array)return{buffer:m,fF:!1};if(m.constructor===ArrayBuffer)return{buffer:new Uint8Array(m),fF:!1};if(m.constructor===Ma)return{buffer:g.pd(m)||new Uint8Array(0),fF:!0};if(m instanceof Uint8Array)return{buffer:new Uint8Array(m.buffer,m.byteOffset,m.byteLength),fF:!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"); +}; +U4=function(m,e){this.S=null;this.L=!1;this.X=this.U=this.Z=0;this.init(m,void 0,void 0,e)}; +g.bC=function(m,e){m.X=e;if(e>m.U)throw Br(m.U,e);}; +g.ts=function(m){var e=m.S,Z=m.X,M=e[Z++],k=M&127;if(M&128&&(M=e[Z++],k|=(M&127)<<7,M&128&&(M=e[Z++],k|=(M&127)<<14,M&128&&(M=e[Z++],k|=(M&127)<<21,M&128&&(M=e[Z++],k|=M<<28,M&128&&e[Z++]&128&&e[Z++]&128&&e[Z++]&128&&e[Z++]&128&&e[Z++]&128)))))throw g.d9();g.bC(m,Z);return k}; +Q0=function(m,e){if(e<0)throw Error("Tried to read a negative byte length: "+e);var Z=m.X,M=Z+e;if(M>m.U)throw Br(e,m.U-Z);m.X=M;return Z}; +Hr=function(m,e){if(e==0)return qa();var Z=Q0(m,e);m.t9&&m.L?Z=m.S.subarray(Z,Z+e):(m=m.S,e=Z+e,Z=Z===e?new Uint8Array(0):d7P?m.slice(Z,e):new Uint8Array(m.subarray(Z,e)));return Z.length==0?qa():new Ma(Z,Kd)}; +s4=function(m,e){if(Du.length){var Z=Du.pop();Z.init(m,void 0,void 0,e);m=Z}else m=new U4(m,e);this.X=m;this.U=this.X.X;this.S=this.Z=-1;LG(this,e)}; +LG=function(m,e){e=e===void 0?{}:e;m.au=e.au===void 0?!1:e.au}; +G0=function(m){var e=m.X;if(e.X==e.U)return!1;m.U=m.X.X;var Z=g.ts(m.X)>>>0;e=Z>>>3;Z&=7;if(!(Z>=0&&Z<=5))throw o4(Z,m.U);if(e<1)throw Error("Invalid field number: "+e+" (at position "+m.U+")");m.Z=e;m.S=Z;return!0}; +y0=function(m){switch(m.S){case 0:if(m.S!=0)y0(m);else a:{m=m.X;for(var e=m.X,Z=e+10,M=m.S;e>>0,m=m.X,g.bC(m,m.X+e));break;case 5:m=m.X;g.bC(m,m.X+4);break;case 3:e=m.Z;do{if(!G0(m))throw Error("Unmatched start-group tag: stream EOF");if(m.S==4){if(m.Z!=e)throw Error("Unmatched end-group tag");break}y0(m)}while(1);break;default:throw o4(m.S,m.U);}}; +j5=function(m,e,Z){var M=m.X.U,k=g.ts(m.X)>>>0,K=m.X.X+k,q=K-M;q<=0&&(m.X.U=K,Z(e,m,void 0,void 0,void 0),q=K-m.X.X);if(q)throw Error("Message parsing ended unexpectedly. Expected to read "+(k+" bytes, instead read "+(k-q)+" bytes, either the data ended unexpectedly or the message misreported its own length"));m.X.X=K;m.X.U=M}; +O4=function(m){var e=g.ts(m.X)>>>0;return Hr(m.X,e)}; +g.Js=function(m,e,Z){this.RO=g.Nv(m,e,Z)}; +V0=function(m,e){if(e==null||e=="")return new m;e=JSON.parse(e);if(!Array.isArray(e))throw Error("dnarr");rM(e,32);return wM(m,e)}; +z0=function(m){m=m.RO;m=Wr?m:C7(m,oGR,void 0,void 0,!1);var e=!Wr,Z=m.length;if(Z){var M=m[Z-1],k=Tm(M);k?Z--:M=void 0;var K=m;if(k){b:{var q=M;var S;var a=!1;if(q)for(var v in q)if(isNaN(+v))k=void 0,((k=S)!=null?k:S={})[v]=q[v];else if(k=q[v],Array.isArray(k)&&(wK(k)||hl(k)&&k.size===0)&&(k=null),k==null&&(a=!0),k!=null){var X=void 0;((X=S)!=null?X:S={})[v]=k}a||(S=q);if(S)for(var x in S){a=S;break b}a=null}q=a==null?M!=null:a!==M}for(;Z>0;Z--){S=K[Z-1];if(!(S==null||wK(S)||hl(S)&&S.size===0))break; +var l=!0}if(K!==m||q||l){if(!e)K=Array.prototype.slice.call(K,0,Z);else if(l||q||a)K.length=Z;a&&K.push(a)}l=K}else l=m;return l}; +g.Pr=function(){function m(){throw Error();} +Object.setPrototypeOf(m,m.prototype);return m}; +ef=function(m,e,Z){this.eT=m;this.G2=e;m=py1(mx);this.X=!!m&&Z===m||!1}; +Zx=function(m){var e=Bck;var Z=Z===void 0?mx:Z;return new ef(m,e,Z)}; +Bck=function(m,e,Z,M,k){m.OY(Z,Mj(e,M),k)}; +g.qj=function(m,e,Z,M){var k=M[m];if(k)return k;k={};k.IP=AbI(M[0]);var K=M[1],q=1;K&&K.constructor===Object&&(k.extensions=K,K=M[++q],typeof K==="function"&&(k.Vg=!0,k1!=null||(k1=K),g.Ko!=null||(g.Ko=M[q+1]),K=M[q+=2]));for(var S={};K&&Array.isArray(K)&&K.length&&typeof K[0]==="number"&&K[0]>0;){for(var a=0;a>>31)&4294967295;x=k[0];var h=k[1],w=k[2],N=k[3],I=k[4];for(R=0;R<80;R++){if(R<40)if(R<20){var C=N^h&(w^N);var B=1518500249}else C=h^w^N,B=1859775393;else R<60?(C=h&w|N&(h|w),B=2400959708):(C=h^w^N,B=3395469782);C=((x<<5|x>>>27)&4294967295)+C+I+B+l[R]&4294967295;I=N;N=w;w=(h<<30|h>>>2)&4294967295;h=x;x=C}k[0]=k[0]+x&4294967295;k[1]=k[1]+h&4294967295;k[2]= +k[2]+w&4294967295;k[3]=k[3]+N&4294967295;k[4]=k[4]+I&4294967295} +function Z(x,l){if(typeof x==="string"){x=unescape(encodeURIComponent(x));for(var R=[],h=0,w=x.length;h=56;R--)K[R]=l&255,l>>>=8;e(K);for(R=l=0;R<5;R++)for(var h=24;h>=0;h-=8)x[l++]=k[R]>>h&255;return x} +for(var k=[],K=[],q=[],S=[128],a=1;a<64;++a)S[a]=0;var v,X;m();return{reset:m,update:Z,digest:M,vF:function(){for(var x=M(),l="",R=0;R4);k++)e[ZQ(m[k])]||(Z+="\nInner error "+M++ +": ",m[k].stack&&m[k].stack.indexOf(m[k].toString())==0||(Z+=typeof m[k]==="string"?m[k]:m[k].message+"\n"),Z+=mN(m[k],e));k")!=-1&&(m=m.replace(JbP,">")),m.indexOf('"')!=-1&&(m=m.replace(V3s,""")),m.indexOf("'")!=-1&&(m=m.replace(WIm,"'")),m.indexOf("\x00")!=-1&&(m=m.replace(zmc,"�")));return m}; +g.p3=function(m){return m==null?"":String(m)}; +g.Sb=function(m){for(var e=0,Z=0;Z>>0;return e}; +g.ap=function(m){var e=Number(m);return e==0&&g.Lz(m)?NaN:e}; +vF=function(m){return String(m).replace(/\-([a-z])/g,function(e,Z){return Z.toUpperCase()})}; +PPk=function(m){return m.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(e,Z,M){return Z+M.toUpperCase()})}; +mdR=function(m){var e=1;m=m.split(":");for(var Z=[];e>0&&m.length;)Z.push(m.shift()),e--;m.length&&Z.push(m.join(":"));return Z}; +gk=function(m){this.X=m||{cookie:""}}; +Xr=function(m){m=(m.X.cookie||"").split(";");for(var e=[],Z=[],M,k,K=0;K/g,">").replace(/"/g,""").replace(/'/g,"'");return g.GA(m)}; +g.PF=function(m,e){return typeof e==="string"?m.getElementById(e):e}; +g.eU=function(m,e){var Z=e||document;Z.getElementsByClassName?m=Z.getElementsByClassName(m)[0]:(Z=document,m=m?(e||Z).querySelector(m?"."+m:""):g.mL(Z,"*",m,e)[0]||null);return m||null}; +g.mL=function(m,e,Z,M){m=M||m;return(e=e&&e!="*"?String(e).toUpperCase():"")||Z?m.querySelectorAll(e+(Z?"."+Z:"")):m.getElementsByTagName("*")}; +g.Mf=function(m,e){g.Ip(e,function(Z,M){M=="style"?m.style.cssText=Z:M=="class"?m.className=Z:M=="for"?m.htmlFor=Z:Z$.hasOwnProperty(M)?m.setAttribute(Z$[M],Z):g.Hk(M,"aria-")||g.Hk(M,"data-")?m.setAttribute(M,Z):m[M]=Z})}; +g.ko=function(m){return m?m.defaultView:window}; +g.pC=function(m,e,Z){var M=arguments,k=document,K=M[1],q=g.KC(k,String(M[0]));K&&(typeof K==="string"?q.className=K:Array.isArray(K)?q.className=K.join(" "):g.Mf(q,K));M.length>2&&g.qf(k,q,M,2);return q}; +g.qf=function(m,e,Z,M){function k(S){S&&e.appendChild(typeof S==="string"?m.createTextNode(S):S)} +for(;M0)k(K);else{a:{if(K&&typeof K.length=="number"){if(g.Zb(K)){var q=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){q=typeof K.item=="function";break a}}q=!1}g.co(q?g.cG(K):K,k)}}}; +g.SU=function(m){return g.KC(document,m)}; +g.KC=function(m,e){e=String(e);m.contentType==="application/xhtml+xml"&&(e=e.toLowerCase());return m.createElement(e)}; +g.ao=function(m){return document.createTextNode(String(m))}; +g.vc=function(m){for(var e;e=m.firstChild;)m.removeChild(e)}; +g.gN=function(m,e,Z){m.insertBefore(e,m.childNodes[Z]||null)}; +g.XN=function(m){m&&m.parentNode&&m.parentNode.removeChild(m)}; +g.iQ=function(m,e){if(!m||!e)return!1;if(m.contains&&e.nodeType==1)return m==e||m.contains(e);if(typeof m.compareDocumentPosition!="undefined")return m==e||!!(m.compareDocumentPosition(e)&16);for(;e&&m!=e;)e=e.parentNode;return e==m}; +g.xo=function(m){return m.nodeType==9?m:m.ownerDocument||m.document}; +g.lQ=function(m,e){if("textContent"in m)m.textContent=e;else if(m.nodeType==3)m.data=String(e);else if(m.firstChild&&m.firstChild.nodeType==3){for(;m.lastChild!=m.firstChild;)m.removeChild(m.lastChild);m.firstChild.data=String(e)}else g.vc(m),m.appendChild(g.xo(m).createTextNode(String(e)))}; +g.Ro=function(m){return m.tagName=="A"&&m.hasAttribute("href")||m.tagName=="INPUT"||m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.tagName=="BUTTON"?!m.disabled&&(!m.hasAttribute("tabindex")||uQ(m)):m.hasAttribute("tabindex")&&uQ(m)}; +uQ=function(m){m=m.tabIndex;return typeof m==="number"&&m>=0&&m<32768}; +g.hy=function(m,e,Z){m&&!Z&&(m=m.parentNode);for(Z=0;m;){if(e(m))return m;m=m.parentNode;Z++}return null}; +T5=function(m){this.RO=g.Nv(m)}; +$o=function(m){this.RO=g.Nv(m)}; +FN=function(m){this.RO=g.Nv(m)}; +e91=function(m,e){uC(m,$o,1,e)}; +wN=function(m){this.RO=g.Nv(m)}; +Zz7=function(m,e){e=e===void 0?nC:e;if(!cc){var Z;m=(Z=m.navigator)==null?void 0:Z.userAgentData;if(!m||typeof m.getHighEntropyValues!=="function"||m.brands&&typeof m.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));Z=(m.brands||[]).map(function(k){var K=new $o;K=As(K,1,k.brand);return As(K,2,k.version)}); +e91(Df(Nf,2,yE(m.mobile)),Z);cc=m.getHighEntropyValues(e)}var M=new Set(e);return cc.then(function(k){var K=Nf.clone();M.has("platform")&&As(K,3,k.platform);M.has("platformVersion")&&As(K,4,k.platformVersion);M.has("architecture")&&As(K,5,k.architecture);M.has("model")&&As(K,6,k.model);M.has("uaFullVersion")&&As(K,7,k.uaFullVersion);return K}).catch(function(){return Nf.clone()})}; +rN=function(m){this.RO=g.Nv(m)}; +bQ=function(m){this.RO=g.Nv(m)}; +ty=function(m){this.RO=g.Nv(m,4)}; +Qr=function(m){this.RO=g.Nv(m,36)}; +Hc=function(m){this.RO=g.Nv(m,19)}; +LC=function(m,e){this.Pt=e=e===void 0?!1:e;this.uach=this.locale=null;this.X=new Hc;Number.isInteger(m)&&this.X.EC(m);e||(this.locale=document.documentElement.getAttribute("lang"));D$(this,new rN)}; +D$=function(m,e){lC(m.X,rN,1,e);NH(e,1)||fG(e,1,1);m.Pt||(e=sm(m),cr(e,5)||As(e,5,m.locale));m.uach&&(e=sm(m),X4(e,FN,9)||lC(e,FN,9,m.uach))}; +jU=function(m,e){yx(G5(m),wN,11)&&(m=yr(m),fG(m,1,e))}; +Om=function(m,e){yx(G5(m),wN,11)&&(m=yr(m),Df(m,2,yE(e)))}; +G5=function(m){return X4(m.X,rN,1)}; +Mqm=function(m){var e=e===void 0?nC:e;var Z=m.Pt?void 0:g.ko();Z?Zz7(Z,e).then(function(M){m.uach=M;M=sm(m);lC(M,FN,9,m.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; +sm=function(m){m=G5(m);var e=X4(m,wN,11);e||(e=new wN,lC(m,wN,11,e));return e}; +yr=function(m){m=sm(m);var e=X4(m,T5,10);e||(e=new T5,Df(e,2,yE(!1)),lC(m,T5,10,e));return e}; +g.Jy=function(m,e,Z,M){this.Z=m;this.L=e;this.X=this.U=m;this.C=Z||0;this.j=M||2}; +g.Vr=function(m){m.X=Math.min(m.L,m.X*m.j);m.U=Math.min(m.L,m.X+(m.C?Math.round(m.C*(Math.random()-.5)*2*m.X):0));m.S++}; +Wc=function(m){this.RO=g.Nv(m,8)}; +z5=function(m){this.RO=g.Nv(m)}; +mt=function(m){g.Y.call(this);var e=this;this.componentId="";this.U=[];this.S9="";this.pageId=null;this.b9=this.K=-1;this.C=this.experimentIds=null;this.N=this.L=0;this.Qh=1;this.timeoutMillis=0;this.logSource=m.logSource;this.Sf=m.Sf||function(){}; +this.S=new LC(m.logSource,m.Pt);this.network=m.network;this.Wf=m.Wf||null;this.j=m.SN||null;this.sessionIndex=m.sessionIndex||null;this.Jb=m.Jb||!1;this.logger=null;this.withCredentials=!m.Tz;this.Pt=m.Pt||!1;this.AR=typeof URLSearchParams!=="undefined"&&!!(new URL(Pc())).searchParams&&!!(new URL(Pc())).searchParams.set;var Z=fG(new rN,1,1);D$(this.S,Z);this.Z=new g.Jy(1E4,3E5,.1);m=kCP(this,m.Z4);this.X=new hv(this.Z.getValue(),m);this.Y=new hv(6E5,m);this.Jb||this.Y.start();this.Pt||(document.addEventListener("visibilitychange", +function(){document.visibilityState==="hidden"&&e.U4()}),document.addEventListener("pagehide",this.U4.bind(this)))}; +kCP=function(m,e){return m.AR?e?function(){e().then(function(){m.flush()})}:function(){m.flush()}:function(){}}; +Pc=function(){return"https://play.google.com/log?format=json&hasfast=true"}; +eZ=function(){this.cD=typeof AbortController!=="undefined"}; +ZD=function(m,e){g.Y.call(this);this.logSource=m;this.sessionIndex=e;this.qY="https://play.google.com/log?format=json&hasfast=true";this.S=null;this.U=!1;this.network=null;this.componentId="";this.pageId=this.X=this.Wf=null}; +MO=function(m,e){m.S=e;return m}; +km=function(m,e){m.network=e;return m}; +KXy=function(m,e){m.X=e}; +KW=function(m,e,Z,M,k,K,q){m=m===void 0?-1:m;e=e===void 0?"":e;Z=Z===void 0?"":Z;M=M===void 0?!1:M;k=k===void 0?"":k;g.Y.call(this);this.logSource=m;this.componentId=e;K?e=K:(m=new ZD(m,"0"),m.componentId=e,g.U(this,m),Z!==""&&(m.qY=Z),M&&(m.U=!0),k&&MO(m,k),q&&km(m,q),e=m.build());this.X=e}; +qO=function(m){this.X=m}; +pW=function(m,e,Z){this.S=m;this.Z=e;this.fields=Z||[];this.X=new Map}; +q2t=function(m){return m.fields.map(function(e){return e.fieldType})}; +pkK=function(m){return m.fields.map(function(e){return e.fieldName})}; +SZ=function(m,e){pW.call(this,m,3,e)}; +a2=function(m,e){pW.call(this,m,2,e)}; +vL=function(m,e){this.type=m;this.currentTarget=this.target=e;this.defaultPrevented=this.S=!1}; +g7=function(m,e){vL.call(this,m?m.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.X=null;m&&this.init(m,e)}; +iF=function(m){return!(!m||!m[XZ])}; +abI=function(m,e,Z,M,k){this.listener=m;this.proxy=null;this.src=e;this.type=Z;this.capture=!!M;this.KE=k;this.key=++S2K;this.mx=this.Se=!1}; +xm=function(m){m.mx=!0;m.listener=null;m.proxy=null;m.src=null;m.KE=null}; +lF=function(m){this.src=m;this.listeners={};this.X=0}; +uF=function(m,e){var Z=e.type;Z in m.listeners&&g.wX(m.listeners[Z],e)&&(xm(e),m.listeners[Z].length==0&&(delete m.listeners[Z],m.X--))}; +R2=function(m,e,Z,M){for(var k=0;k1)));q=q.next)k||(K=q);k&&(Z.X==0&&M==1?Zt(Z,e):(K?(M=K,M.next==Z.Z&&(Z.Z=M),M.next=M.next.next):MY(Z),kM(Z,k,3,e)))}m.U=null}else jZ(m,3,e)}; +mm=function(m,e){m.S||m.X!=2&&m.X!=3||Ka(m);m.Z?m.Z.next=e:m.S=e;m.Z=e}; +iS=function(m,e,Z,M){var k=WL(null,null,null);k.X=new g.O8(function(K,q){k.U=e?function(S){try{var a=e.call(M,S);K(a)}catch(v){q(v)}}:K; +k.S=Z?function(S){try{var a=Z.call(M,S);a===void 0&&S instanceof g.XV?q(S):K(a)}catch(v){q(v)}}:q}); +k.X.U=m;mm(m,k);return k.X}; +jZ=function(m,e,Z){m.X==0&&(m===Z&&(e=3,Z=new TypeError("Promise cannot resolve to itself")),m.X=1,g.xM(Z,m.K9,m.Oa,m)||(m.j=Z,m.X=e,m.U=null,Ka(m),e!=3||Z instanceof g.XV||h9G(m,Z)))}; +g.xM=function(m,e,Z,M){if(m instanceof g.O8)return mm(m,WL(e||g.GI,Z||null,M)),!0;if(m)try{var k=!!m.$goog_Thenable}catch(q){k=!1}else k=!1;if(k)return m.then(e,Z,M),!0;if(g.Zb(m))try{var K=m.then;if(typeof K==="function")return Tmc(m,K,e,Z,M),!0}catch(q){return Z.call(M,q),!0}return!1}; +Tmc=function(m,e,Z,M,k){function K(a){S||(S=!0,M.call(k,a))} +function q(a){S||(S=!0,Z.call(k,a))} +var S=!1;try{e.call(m,q,K)}catch(a){K(a)}}; +Ka=function(m){m.C||(m.C=!0,g.LW(m.U_,m))}; +MY=function(m){var e=null;m.S&&(e=m.S,m.S=e.next,e.next=null);m.S||(m.Z=null);return e}; +kM=function(m,e,Z,M){if(Z==3&&e.S&&!e.Z)for(;m&&m.L;m=m.U)m.L=!1;if(e.X)e.X.U=null,lS(e,Z,M);else try{e.Z?e.U.call(e.context):lS(e,Z,M)}catch(k){uS.call(null,k)}BL(VF,e)}; +lS=function(m,e,Z){e==2?m.U.call(m.context,Z):m.S&&m.S.call(m.context,Z)}; +h9G=function(m,e){m.L=!0;g.LW(function(){m.L&&uS.call(null,e)})}; +g.XV=function(m){g.E2.call(this,m)}; +uoy=function(m,e,Z){this.promise=m;this.resolve=e;this.reject=Z}; +g.Rw=function(m,e){g.fW.call(this);this.e2=m||1;this.DL=e||g.Jb;this.Lj=(0,g.qd)(this.Jq,this);this.xn=g.Sq()}; +g.hV=function(m,e,Z){if(typeof m==="function")Z&&(m=(0,g.qd)(m,Z));else if(m&&typeof m.handleEvent=="function")m=(0,g.qd)(m.handleEvent,m);else throw Error("Invalid listener argument");return Number(e)>2147483647?-1:g.Jb.setTimeout(m,e||0)}; +g.Tq=function(m,e){var Z=null;return(new g.O8(function(M,k){Z=g.hV(function(){M(e)},m); +Z==-1&&k(Error("Failed to schedule timer."))})).cS(function(M){g.Jb.clearTimeout(Z); +throw M;})}; +$M=function(m){g.Y.call(this);this.j=m;this.U=0;this.Z=100;this.L=!1;this.S=new Map;this.C=new Set;this.flushInterval=3E4;this.X=new g.Rw(this.flushInterval);this.X.GO("tick",this.pI,!1,this);g.U(this,this.X)}; +FV=function(m){m.X.enabled||m.X.start();m.U++;m.U>=m.Z&&m.pI()}; +wD=function(m,e){return m.C.has(e)?void 0:m.S.get(e)}; +$dG=function(m){for(var e=0;e=0){var K=m[Z].substring(0,M);k=m[Z].substring(M+1)}else K=m[Z];e(K,k?K3(k):"")}}}; +YM=function(m,e){if(!e)return m;var Z=m.indexOf("#");Z<0&&(Z=m.length);var M=m.indexOf("?");if(M<0||M>Z){M=Z;var k=""}else k=m.substring(M+1,Z);m=[m.slice(0,M),k,m.slice(Z)];Z=m[1];m[1]=e?Z?Z+"&"+e:e:Z;return m[0]+(m[1]?"?"+m[1]:"")+m[2]}; +Ug=function(m,e,Z){if(Array.isArray(e))for(var M=0;M=0&&eZ)k=Z;M+=e.length+1;return K3(m.slice(M,k!==-1?k:0))}; +sg=function(m,e){for(var Z=m.search(Dt),M=0,k,K=[];(k=HS(m,M,e,Z))>=0;)K.push(m.substring(M,k)),M=Math.min(m.indexOf("&",k)+1||Z,Z);K.push(m.slice(M));return K.join("").replace(nwc,"$1")}; +Gq=function(m,e,Z){return g.QJ(sg(m,e),e,Z)}; +yJ=function(m){g.fW.call(this);this.headers=new Map;this.Qh=m||null;this.S=!1;this.X=null;this.j="";this.U=0;this.L="";this.Z=this.S9=this.K=this.AR=!1;this.Y=0;this.C=null;this.b9="";this.N=!1}; +cmK=function(m,e,Z,M,k,K,q){var S=new yJ;Og.push(S);e&&S.GO("complete",e);S.hw("ready",S.XZ);K&&(S.Y=Math.max(0,K));q&&(S.N=q);S.send(m,Z,M,k)}; +WS=function(m,e){m.S=!1;m.X&&(m.Z=!0,m.X.abort(),m.Z=!1);m.L=e;m.U=5;JV(m);VJ(m)}; +JV=function(m){m.AR||(m.AR=!0,m.dispatchEvent("complete"),m.dispatchEvent("error"))}; +eW=function(m){if(m.S&&typeof zq!="undefined")if(m.K&&PS(m)==4)setTimeout(m.tM.bind(m),0);else if(m.dispatchEvent("readystatechange"),m.isComplete()){m.getStatus();m.S=!1;try{if(m_(m))m.dispatchEvent("complete"),m.dispatchEvent("success");else{m.U=6;try{var e=PS(m)>2?m.X.statusText:""}catch(Z){e=""}m.L=e+" ["+m.getStatus()+"]";JV(m)}}finally{VJ(m)}}}; +VJ=function(m,e){if(m.X){m.C&&(clearTimeout(m.C),m.C=null);var Z=m.X;m.X=null;e||m.dispatchEvent("ready");try{Z.onreadystatechange=null}catch(M){}}}; +m_=function(m){var e=m.getStatus();a:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var Z=!0;break a;default:Z=!1}if(!Z){if(e=e===0)m=fa(1,String(m.j)),!m&&g.Jb.self&&g.Jb.self.location&&(m=g.Jb.self.location.protocol.slice(0,-1)),e=!Nm1.test(m?m.toLowerCase():"");Z=e}return Z}; +PS=function(m){return m.X?m.X.readyState:0}; +Z4=function(m){try{return m.X?m.X.responseText:""}catch(e){return""}}; +Me=function(m){try{if(!m.X)return null;if("response"in m.X)return m.X.response;switch(m.b9){case "":case "text":return m.X.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in m.X)return m.X.mozResponseArrayBuffer}return null}catch(e){return null}}; +rmm=function(m){var e={};m=(m.X&&PS(m)>=2?m.X.getAllResponseHeaders()||"":"").split("\r\n");for(var Z=0;Z>1,e),bB(m,m.length>>1)]}; +Hb=function(m){var e=g.r(tp(m,Q8));m=e.next().value;e=e.next().value;return m.toString(16)+e.toString(16)}; +D4=function(m,e){var Z=tp(e);m=new Uint32Array(m.buffer);e=m[0];var M=g.r(Z);Z=M.next().value;M=M.next().value;for(var k=1;k>>8|q<<24,q+=K|0,q^=S+38293,K=K<<3|K>>>29,K^=q,a=a>>>8|a<<24,a+=S|0,a^=v+38293,S=S<<3|S>>>29,S^=a;K=[K,q];m[k]^=K[0];k+1=Z?(globalThis.sessionStorage.removeItem(m),["e"]):["a",new Uint8Array(M.buffer,e+4)]}; +Lk=function(m,e,Z){Z=Z===void 0?[]:Z;this.maxItems=m;this.X=e===void 0?0:e;this.S=Z}; +ym7=function(m){var e=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!e)return new Lk(m);var Z=e.split(",");if(Z.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Lk(m);e=Z.slice(1);e.length===1&&e[0]===""&&(e=[]);Z=Number(Z[0]);return isNaN(Z)||Z<0||Z>e.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Lk(m)):new Lk(m,Z,e)}; +jBb=function(m,e){this.logger=e;try{var Z=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(M){Z=!1}Z&&(this.index=ym7(m))}; +Ozb=function(m,e,Z,M,k){var K=m.index?SW(m.logger,function(){return sBP(m.index,Hb(e),Z,M,k)},"W"):"u"; +m.logger.Uq(K)}; +JmP=function(m,e,Z){var M=g.r(m.index?SW(m.logger,function(){return GCG(Hb(e),Z)},"R"):["u"]),k=M.next().value; +M=M.next().value;m.logger.S3(k);return M}; +z9K=function(m){function e(){Z-=M;Z-=k;Z^=k>>>13;M-=k;M-=Z;M^=Z<<8;k-=Z;k-=M;k^=M>>>13;Z-=M;Z-=k;Z^=k>>>12;M-=k;M-=Z;M^=Z<<16;k-=Z;k-=M;k^=M>>>5;Z-=M;Z-=k;Z^=k>>>3;M-=k;M-=Z;M^=Z<<10;k-=Z;k-=M;k^=M>>>15} +m=Vqm(m);for(var Z=2654435769,M=2654435769,k=314159265,K=m.length,q=K,S=0;q>=12;q-=12,S+=12)Z+=sc(m,S),M+=sc(m,S+4),k+=sc(m,S+8),e();k+=K;switch(q){case 11:k+=m[S+10]<<24;case 10:k+=m[S+9]<<16;case 9:k+=m[S+8]<<8;case 8:M+=m[S+7]<<24;case 7:M+=m[S+6]<<16;case 6:M+=m[S+5]<<8;case 5:M+=m[S+4];case 4:Z+=m[S+3]<<24;case 3:Z+=m[S+2]<<16;case 2:Z+=m[S+1]<<8;case 1:Z+=m[S+0]}e();return WXK.toString(k)}; +Vqm=function(m){for(var e=[],Z=0;Z>7,m.error.code]);M.set(Z,4);return M}; +P6I=function(){var m=0,e;return function(Z){e||(e=new ak);var M=new Zh(e,m,1),k=Oc(M,function(){return mr(Z)},!0); +M.dispose();m++;return k}}; +Zh=function(m,e,Z){y8.call(this,m);this.Z=e;this.clientState=Z;this.S="S";this.X="q"}; +mr=function(m){return globalThis.TextEncoder?(new TextEncoder).encode(m):Qf(m)}; +Mb=function(m,e,Z){g.Y.call(this);var M=this;this.logger=m;this.onError=e;this.state=Z;this.S=0;this.addOnDisposeCallback(function(){M.X&&(M.X.dispose(),M.X=void 0)})}; +kK=function(m,e){e=e instanceof wW?e:new wW(5,"TVD:error",e);return m.reportError(e)}; +KH=function(m,e,Z){try{if(m.MU())throw new wW(21,"BNT:disposed");var M,k;return(k=(M=msy(m,e,Z))!=null?M:erk(m,e,Z))!=null?k:ZqI(m,e,Z)}catch(K){if(!e.xJ)throw kK(m,K);return M71(m,Z,K)}}; +msy=function(m,e,Z){var M;return(M=m.X)==null?void 0:Oc(M,function(){return qb(m,e)},Z,function(k){var K; +if(m.X instanceof V8&&((K=e.qO)==null?0:K.Dj))try{var q;(q=m.cache)==null||Ozb(q,qb(m,e),k,e.qO.gQ,m.Z-120)}catch(S){m.reportError(new wW(24,"ELX:write",S))}})}; +erk=function(m,e,Z){var M;if((M=e.qO)!=null&&M.Gk)try{var k,K=(k=m.cache)==null?void 0:JmP(k,qb(m,e),e.qO.gQ);return K?Z?SW(m.logger,function(){return g.HG(K,2)},"a"):K:void 0}catch(q){m.reportError(new wW(23,"RXO:read",q))}}; +ZqI=function(m,e,Z){var M={stack:[],error:void 0,hasError:!1};try{if(!e.Js)throw new wW(29,"SDF:notready");return Oc(g.vk(M,new Zh(m.logger,m.S,m.state)),function(){return qb(m,e)},Z)}catch(k){M.error=k,M.hasError=!0}finally{g.gm(M)}}; +M71=function(m,e,Z){var M={stack:[],error:void 0,hasError:!1};try{var k=kK(m,Z);return Oc(g.vk(M,new Pb(m.logger,k)),function(){return[]},e)}catch(K){M.error=K,M.hasError=!0}finally{g.gm(M)}}; +qb=function(m,e){return e.zI?e.zI:e.aU?SW(m.logger,function(){return e.zI=mr(e.aU)},"c"):[]}; +pH=function(m){this.RO=g.Nv(m)}; +Sn=function(m,e,Z){this.qj=m;this.CK=e;this.metadata=Z}; +aY=function(m,e){e=e===void 0?{}:e;this.tU=m;this.metadata=e;this.status=null}; +v1=function(m,e,Z,M,k){this.name=m;this.methodType="unary";this.requestType=e;this.responseType=Z;this.X=M;this.S=k}; +gB=function(m){this.RO=g.Nv(m)}; +X$=function(m){this.RO=g.Nv(m)}; +it=function(m){this.RO=g.Nv(m)}; +xK=function(m,e){this.j=m.IM;this.N=e;this.X=m.xhr;this.U=[];this.L=[];this.C=[];this.Z=[];this.S=[];this.j&&kiR(this)}; +Kzt=function(m,e){g.TI(m.X,"complete",function(){if(m_(m.X)){var Z=Z4(m.X);if(e&&m.X.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Z=atob(Z)}try{var M=m.N(Z)}catch(q){lt(m,new cS(13,"Error when deserializing response data; error: "+q+(", response: "+Z)));return}Z=na(m.X.getStatus());ut(m,RY(m));Z==0?h3(m,M):lt(m,new cS(Z,"Xhr succeeded but the status code is not 200"))}else{Z=Z4(m.X);M=RY(m);if(Z){var k=TN(m,Z);Z=k.code;var K=k.details;k=k.metadata}else Z= +2,K="Rpc failed due to xhr error. uri: "+String(m.X.j)+", error code: "+m.X.U+", error: "+m.X.getLastError(),k=M;ut(m,M);lt(m,new cS(Z,K,k))}})}; +kiR=function(m){m.j.uK("data",function(e){if("1"in e){var Z=e["1"];try{var M=m.N(Z)}catch(k){lt(m,new cS(13,"Error when deserializing response data; error: "+k+(", response: "+Z)))}M&&h3(m,M)}if("2"in e)for(e=TN(m,e["2"]),Z=0;Z-1&&m.splice(e,1)}; +h3=function(m,e){for(var Z=0;Z>4&15).toString(16)+(m&15).toString(16)}; +dB=function(m,e){this.S=this.X=null;this.U=m||null;this.Z=!!e}; +EN=function(m){m.X||(m.X=new Map,m.S=0,m.U&&g.Eg(m.U,function(e,Z){m.add(K3(e),Z)}))}; +UN=function(m,e){EN(m);e=YK(m,e);return m.X.has(e)}; +YK=function(m,e){e=String(e);m.Z&&(e=e.toLowerCase());return e}; +pGk=function(m,e){e&&!m.Z&&(EN(m),m.U=null,m.X.forEach(function(Z,M){var k=M.toLowerCase();M!=k&&(this.remove(M),this.remove(k),Z.length>0&&(this.U=null,this.X.set(YK(this,k),g.cG(Z)),this.S=this.S+Z.length))},m)); +m.Z=e}; +vRR=function(m){var e="";g.Ip(m,function(Z,M){e+=M;e+=":";e+=Z;e+="\r\n"}); +return e}; +bt=function(m){g.Y.call(this);this.S=m;this.X={}}; +t3=function(m,e,Z,M,k,K){if(Array.isArray(Z))for(var q=0;q0?" "+e:e))}}; +am=function(m,e){if(m.classList)Array.prototype.forEach.call(e,function(k){g.SD(m,k)}); +else{var Z={};Array.prototype.forEach.call(KQ(m),function(k){Z[k]=!0}); +Array.prototype.forEach.call(e,function(k){Z[k]=!0}); +e="";for(var M in Z)e+=e.length>0?" "+M:M;qU(m,e)}}; +g.vR=function(m,e){m.classList?m.classList.remove(e):g.pQ(m,e)&&qU(m,Array.prototype.filter.call(KQ(m),function(Z){return Z!=e}).join(" "))}; +YMP=function(m,e){m.classList?Array.prototype.forEach.call(e,function(Z){g.vR(m,Z)}):qU(m,Array.prototype.filter.call(KQ(m),function(Z){return!g.Ti(e,Z)}).join(" "))}; +g.gU=function(m,e,Z){Z?g.SD(m,e):g.vR(m,e)}; +Xd=function(){}; +UsI=function(m){if(m instanceof ix||m instanceof xz||m instanceof lx)return m;if(typeof m.next=="function")return new ix(function(){return m}); +if(typeof m[Symbol.iterator]=="function")return new ix(function(){return m[Symbol.iterator]()}); +if(typeof m.bH=="function")return new ix(function(){return m.bH()}); +throw Error("Not an iterator or iterable.");}; +ix=function(m){this.X=m}; +xz=function(m){this.X=m}; +lx=function(m){ix.call(this,function(){return m}); +this.U=m}; +ux=function(m){return(m=m.exec(g.Vf()))?m[1]:""}; +Rm=function(m){return g.Jm(bq3,m)>=0}; +h7=function(m){g.Y.call(this);this.C=1;this.U=[];this.Z=0;this.X=[];this.S={};this.j=!!m}; +t7I=function(m,e,Z){g.LW(function(){m.apply(e,Z)})}; +g.Tc=function(m){this.X=m}; +fQ=function(m){this.X=m}; +E6=function(m){this.data=m}; +Yz=function(m){return m===void 0||m instanceof E6?m:new E6(m)}; +U6=function(m){this.X=m}; +bx=function(m){this.X=m}; +QOP=function(){}; +t7=function(){}; +QY=function(m){this.X=m;this.S=null}; +HR=function(m){if(m.X==null)throw Error("Storage mechanism: Storage unavailable");var e;((e=m.S)!=null?e:m.isAvailable())||b6(Error("Storage mechanism: Storage unavailable"))}; +DZ=function(){var m=null;try{m=g.Jb.localStorage||null}catch(e){}QY.call(this,m)}; +LQ=function(){var m=null;try{m=g.Jb.sessionStorage||null}catch(e){}QY.call(this,m)}; +s6=function(m,e){this.S=m;this.X=e+"::"}; +g.Gc=function(m){var e=new DZ;return e.isAvailable()?m?new s6(e,m):e:null}; +yY=function(m,e){this.X=m;this.S=e}; +jD=function(m){this.X=[];if(m)a:{if(m instanceof jD){var e=m.O1();m=m.jf();if(this.X.length<=0){for(var Z=this.X,M=0;M>>6:(K<65536?S[Z++]=224|K>>>12:(S[Z++]=240|K>>>18,S[Z++]=128|K>>>12&63),S[Z++]=128|K>>> +6&63),S[Z++]=128|K&63);return S}; +WR=function(m){for(var e=m.length;--e>=0;)m[e]=0}; +zc=function(m,e,Z,M,k){this.Lh=m;this.Zd=e;this.AG=Z;this.Dz=M;this.PN=k;this.Rt=m&&m.length}; +PR=function(m,e){this.D4=m;this.D3=0;this.XX=e}; +mc=function(m,e){m.tJ[m.pending++]=e&255;m.tJ[m.pending++]=e>>>8&255}; +eh=function(m,e,Z){m.iP>16-Z?(m.DQ|=e<>16-m.iP,m.iP+=Z-16):(m.DQ|=e<>>=1,Z<<=1;while(--e>0);return Z>>>1}; +kL=function(m,e,Z){var M=Array(16),k=0,K;for(K=1;K<=15;K++)M[K]=k=k+Z[K-1]<<1;for(Z=0;Z<=e;Z++)k=m[Z*2+1],k!==0&&(m[Z*2]=MB(M[k]++,k))}; +Kh=function(m){var e;for(e=0;e<286;e++)m.eR[e*2]=0;for(e=0;e<30;e++)m.FP[e*2]=0;for(e=0;e<19;e++)m.MF[e*2]=0;m.eR[512]=1;m.Kb=m.xC=0;m.r7=m.matches=0}; +qB=function(m){m.iP>8?mc(m,m.DQ):m.iP>0&&(m.tJ[m.pending++]=m.DQ);m.DQ=0;m.iP=0}; +ph=function(m,e,Z){qB(m);mc(m,Z);mc(m,~Z);J7.wR(m.tJ,m.window,e,Z,m.pending);m.pending+=Z}; +Sh=function(m,e,Z,M){var k=e*2,K=Z*2;return m[k]>>7)];Zc(m,q,Z);S=xL[q];S!==0&&(k-=lV[q],eh(m,k,S))}}while(M>1;q>=1;q--)aI(m,Z,q);a=K;do q=m.Ox[1],m.Ox[1]=m.Ox[m.Gm--],aI(m,Z,1),M=m.Ox[1],m.Ox[--m.bW]=q,m.Ox[--m.bW]=M,Z[a*2]=Z[q*2]+Z[M*2],m.depth[a]=(m.depth[q]>=m.depth[M]?m.depth[q]:m.depth[M])+1,Z[q*2+1]=Z[M*2+1]=a,m.Ox[1]=a++,aI(m,Z,1);while(m.Gm>= +2);m.Ox[--m.bW]=m.Ox[1];q=e.D4;a=e.D3;M=e.XX.Lh;k=e.XX.Rt;K=e.XX.Zd;var v=e.XX.AG,X=e.XX.PN,x,l=0;for(x=0;x<=15;x++)m.SJ[x]=0;q[m.Ox[m.bW]*2+1]=0;for(e=m.bW+1;e<573;e++){var R=m.Ox[e];x=q[q[R*2+1]*2+1]+1;x>X&&(x=X,l++);q[R*2+1]=x;if(!(R>a)){m.SJ[x]++;var h=0;R>=v&&(h=K[R-v]);var w=q[R*2];m.Kb+=w*(x+h);k&&(m.xC+=w*(M[R*2+1]+h))}}if(l!==0){do{for(x=X-1;m.SJ[x]===0;)x--;m.SJ[x]--;m.SJ[x+1]+=2;m.SJ[X]--;l-=2}while(l>0);for(x=X;x!==0;x--)for(R=m.SJ[x];R!==0;)M=m.Ox[--e],M>a||(q[M*2+1]!==x&&(m.Kb+=(x-q[M* +2+1])*q[M*2],q[M*2+1]=x),R--)}kL(Z,S,m.SJ)}; +hh=function(m,e,Z){var M,k=-1,K=e[1],q=0,S=7,a=4;K===0&&(S=138,a=3);e[(Z+1)*2+1]=65535;for(M=0;M<=Z;M++){var v=K;K=e[(M+1)*2+1];++q>>=1)if(e&1&&m.eR[Z*2]!==0)return 0;if(m.eR[18]!==0||m.eR[20]!==0||m.eR[26]!==0)return 1;for(Z=32;Z<256;Z++)if(m.eR[Z*2]!==0)return 1;return 0}; +$L=function(m,e,Z){m.tJ[m.TI+m.r7*2]=e>>>8&255;m.tJ[m.TI+m.r7*2+1]=e&255;m.tJ[m.F7+m.r7]=Z&255;m.r7++;e===0?m.eR[Z*2]++:(m.matches++,e--,m.eR[(vM[Z]+256+1)*2]++,m.FP[(e<256?iV[e]:iV[256+(e>>>7)])*2]++);return m.r7===m.hn-1}; +wJ=function(m,e){m.msg=Fm[e];return e}; +nh=function(m){for(var e=m.length;--e>=0;)m[e]=0}; +cM=function(m){var e=m.state,Z=e.pending;Z>m.Dm&&(Z=m.Dm);Z!==0&&(J7.wR(m.output,e.tJ,e.K5,Z,m.f2),m.f2+=Z,e.K5+=Z,m.Mc+=Z,m.Dm-=Z,e.pending-=Z,e.pending===0&&(e.K5=0))}; +Ah=function(m,e){var Z=m.RF>=0?m.RF:-1,M=m.YG-m.RF,k=0;if(m.level>0){m.dV.nk===2&&(m.dV.nk=HqK(m));RI(m,m.zf);RI(m,m.Ip);hh(m,m.eR,m.zf.D3);hh(m,m.FP,m.Ip.D3);RI(m,m.lZ);for(k=18;k>=3&&m.MF[NB[k]*2+1]===0;k--);m.Kb+=3*(k+1)+5+5+4;var K=m.Kb+3+7>>>3;var q=m.xC+3+7>>>3;q<=K&&(K=q)}else K=q=M+5;if(M+4<=K&&Z!==-1)eh(m,e?1:0,3),ph(m,Z,M);else if(m.strategy===4||q===K)eh(m,2+(e?1:0),3),uV(m,rJ,II);else{eh(m,4+(e?1:0),3);Z=m.zf.D3+1;M=m.Ip.D3+1;k+=1;eh(m,Z-257,5);eh(m,M-1,5);eh(m,k-4,4);for(K=0;K>>8&255;m.tJ[m.pending++]=e&255}; +oI=function(m,e){var Z=m.UR,M=m.YG,k=m.IW,K=m.eg,q=m.YG>m.vI-262?m.YG-(m.vI-262):0,S=m.window,a=m.bk,v=m.Tw,X=m.YG+258,x=S[M+k-1],l=S[M+k];m.IW>=m.dM&&(Z>>=2);K>m.sZ&&(K=m.sZ);do{var R=e;if(S[R+k]===l&&S[R+k-1]===x&&S[R]===S[M]&&S[++R]===S[M+1]){M+=2;for(R++;S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&S[++M]===S[++R]&&Mk){m.JV=e;k=R;if(R>=K)break;x=S[M+k-1];l=S[M+k]}}}while((e=v[e&a])>q&&--Z!== +0);return k<=m.sZ?k:m.sZ}; +Eh=function(m){var e=m.vI,Z;do{var M=m.fh-m.sZ-m.YG;if(m.YG>=e+(e-262)){J7.wR(m.window,m.window,e,e,0);m.JV-=e;m.YG-=e;m.RF-=e;var k=Z=m.eQ;do{var K=m.head[--k];m.head[k]=K>=e?K-e:0}while(--Z);k=Z=e;do K=m.Tw[--k],m.Tw[k]=K>=e?K-e:0;while(--Z);M+=e}if(m.dV.xF===0)break;k=m.dV;Z=m.window;K=m.YG+m.sZ;var q=k.xF;q>M&&(q=M);q===0?Z=0:(k.xF-=q,J7.wR(Z,k.input,k.jV,q,K),k.state.wrap===1?k.Ii=dJ(k.Ii,Z,q,K):k.state.wrap===2&&(k.Ii=BM(k.Ii,Z,q,K)),k.jV+=q,k.ix+=q,Z=q);m.sZ+=Z;if(m.sZ+m.n1>=3)for(M=m.YG-m.n1, +m.nJ=m.window[M],m.nJ=(m.nJ<=3&&(m.nJ=(m.nJ<=3)if(Z=$L(m,m.YG-m.JV,m.OJ-3),m.sZ-=m.OJ,m.OJ<=m.pY&&m.sZ>=3){m.OJ--;do m.YG++,m.nJ=(m.nJ<=3&&(m.nJ=(m.nJ<4096)&&(m.OJ=2));if(m.IW>=3&&m.OJ<=m.IW){M=m.YG+m.sZ-3;Z=$L(m,m.YG-1-m.w3,m.IW-3);m.sZ-=m.IW-1;m.IW-=2;do++m.YG<=M&&(m.nJ=(m.nJ<=3&&m.YG>0&&(M=m.YG-1,Z=K[M],Z===K[++M]&&Z===K[++M]&&Z===K[++M])){for(k=m.YG+258;Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Z===K[++M]&&Mm.sZ&&(m.OJ=m.sZ)}m.OJ>=3?(Z=$L(m,1,m.OJ-3),m.sZ-=m.OJ,m.YG+=m.OJ,m.OJ=0):(Z=$L(m,0,m.window[m.YG]),m.sZ--,m.YG++);if(Z&&(Ah(m,!1),m.dV.Dm===0))return 1}m.n1=0;return e=== +4?(Ah(m,!0),m.dV.Dm===0?3:4):m.r7&&(Ah(m,!1),m.dV.Dm===0)?1:2}; +Lz7=function(m,e){for(var Z;;){if(m.sZ===0&&(Eh(m),m.sZ===0)){if(e===0)return 1;break}m.OJ=0;Z=$L(m,0,m.window[m.YG]);m.sZ--;m.YG++;if(Z&&(Ah(m,!1),m.dV.Dm===0))return 1}m.n1=0;return e===4?(Ah(m,!0),m.dV.Dm===0?3:4):m.r7&&(Ah(m,!1),m.dV.Dm===0)?1:2}; +bV=function(m,e,Z,M,k){this.RX=m;this.h1=e;this.C8=Z;this.Xu=M;this.func=k}; +sOm=function(){this.dV=null;this.status=0;this.tJ=null;this.wrap=this.pending=this.K5=this.LV=0;this.Ms=null;this.fV=0;this.method=8;this.kd=-1;this.bk=this.pD=this.vI=0;this.window=null;this.fh=0;this.head=this.Tw=null;this.eg=this.dM=this.strategy=this.level=this.pY=this.UR=this.IW=this.sZ=this.JV=this.YG=this.Wt=this.w3=this.OJ=this.RF=this.eJ=this.w5=this.Rc=this.eQ=this.nJ=0;this.eR=new J7.YY(1146);this.FP=new J7.YY(122);this.MF=new J7.YY(78);nh(this.eR);nh(this.FP);nh(this.MF);this.lZ=this.Ip= +this.zf=null;this.SJ=new J7.YY(16);this.Ox=new J7.YY(573);nh(this.Ox);this.bW=this.Gm=0;this.depth=new J7.YY(573);nh(this.depth);this.iP=this.DQ=this.n1=this.matches=this.xC=this.Kb=this.TI=this.r7=this.hn=this.F7=0}; +Gim=function(m,e){if(!m||!m.state||e>5||e<0)return m?wJ(m,-2):-2;var Z=m.state;if(!m.output||!m.input&&m.xF!==0||Z.status===666&&e!==4)return wJ(m,m.Dm===0?-5:-2);Z.dV=m;var M=Z.kd;Z.kd=e;if(Z.status===42)if(Z.wrap===2)m.Ii=0,Ch(Z,31),Ch(Z,139),Ch(Z,8),Z.Ms?(Ch(Z,(Z.Ms.text?1:0)+(Z.Ms.X6?2:0)+(Z.Ms.extra?4:0)+(Z.Ms.name?8:0)+(Z.Ms.comment?16:0)),Ch(Z,Z.Ms.time&255),Ch(Z,Z.Ms.time>>8&255),Ch(Z,Z.Ms.time>>16&255),Ch(Z,Z.Ms.time>>24&255),Ch(Z,Z.level===9?2:Z.strategy>=2||Z.level<2?4:0),Ch(Z,Z.Ms.os& +255),Z.Ms.extra&&Z.Ms.extra.length&&(Ch(Z,Z.Ms.extra.length&255),Ch(Z,Z.Ms.extra.length>>8&255)),Z.Ms.X6&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending,0)),Z.fV=0,Z.status=69):(Ch(Z,0),Ch(Z,0),Ch(Z,0),Ch(Z,0),Ch(Z,0),Ch(Z,Z.level===9?2:Z.strategy>=2||Z.level<2?4:0),Ch(Z,3),Z.status=113);else{var k=8+(Z.pD-8<<4)<<8;k|=(Z.strategy>=2||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6;Z.YG!==0&&(k|=32);Z.status=113;fh(Z,k+(31-k%31));Z.YG!==0&&(fh(Z,m.Ii>>>16),fh(Z,m.Ii&65535));m.Ii=1}if(Z.status===69)if(Z.Ms.extra){for(k= +Z.pending;Z.fV<(Z.Ms.extra.length&65535)&&(Z.pending!==Z.LV||(Z.Ms.X6&&Z.pending>k&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k)),cM(m),k=Z.pending,Z.pending!==Z.LV));)Ch(Z,Z.Ms.extra[Z.fV]&255),Z.fV++;Z.Ms.X6&&Z.pending>k&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k));Z.fV===Z.Ms.extra.length&&(Z.fV=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.Ms.name){k=Z.pending;do{if(Z.pending===Z.LV&&(Z.Ms.X6&&Z.pending>k&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k)),cM(m),k=Z.pending,Z.pending===Z.LV)){var K=1;break}K=Z.fVk&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k));K===0&&(Z.fV=0,Z.status=91)}else Z.status=91;if(Z.status===91)if(Z.Ms.comment){k=Z.pending;do{if(Z.pending===Z.LV&&(Z.Ms.X6&&Z.pending>k&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k)),cM(m),k=Z.pending,Z.pending===Z.LV)){K=1;break}K=Z.fVk&&(m.Ii=BM(m.Ii,Z.tJ,Z.pending-k,k));K===0&&(Z.status=103)}else Z.status= +103;Z.status===103&&(Z.Ms.X6?(Z.pending+2>Z.LV&&cM(m),Z.pending+2<=Z.LV&&(Ch(Z,m.Ii&255),Ch(Z,m.Ii>>8&255),m.Ii=0,Z.status=113)):Z.status=113);if(Z.pending!==0){if(cM(m),m.Dm===0)return Z.kd=-1,0}else if(m.xF===0&&(e<<1)-(e>4?9:0)<=(M<<1)-(M>4?9:0)&&e!==4)return wJ(m,-5);if(Z.status===666&&m.xF!==0)return wJ(m,-5);if(m.xF!==0||Z.sZ!==0||e!==0&&Z.status!==666){M=Z.strategy===2?Lz7(Z,e):Z.strategy===3?Dss(Z,e):th[Z.level].func(Z,e);if(M===3||M===4)Z.status=666;if(M===1||M===3)return m.Dm===0&&(Z.kd= +-1),0;if(M===2&&(e===1?(eh(Z,2,3),Zc(Z,256,rJ),Z.iP===16?(mc(Z,Z.DQ),Z.DQ=0,Z.iP=0):Z.iP>=8&&(Z.tJ[Z.pending++]=Z.DQ&255,Z.DQ>>=8,Z.iP-=8)):e!==5&&(eh(Z,0,3),ph(Z,0,0),e===3&&(nh(Z.head),Z.sZ===0&&(Z.YG=0,Z.RF=0,Z.n1=0))),cM(m),m.Dm===0))return Z.kd=-1,0}if(e!==4)return 0;if(Z.wrap<=0)return 1;Z.wrap===2?(Ch(Z,m.Ii&255),Ch(Z,m.Ii>>8&255),Ch(Z,m.Ii>>16&255),Ch(Z,m.Ii>>24&255),Ch(Z,m.ix&255),Ch(Z,m.ix>>8&255),Ch(Z,m.ix>>16&255),Ch(Z,m.ix>>24&255)):(fh(Z,m.Ii>>>16),fh(Z,m.Ii&65535));cM(m);Z.wrap>0&& +(Z.wrap=-Z.wrap);return Z.pending!==0?0:1}; +Qt=function(m){if(!(this instanceof Qt))return new Qt(m);m=this.options=J7.assign({level:-1,method:8,chunkSize:16384,Co:15,A1:8,strategy:0,Ao:""},m||{});m.raw&&m.Co>0?m.Co=-m.Co:m.fQ&&m.Co>0&&m.Co<16&&(m.Co+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.dV=new HM;this.dV.Dm=0;var e=this.dV;var Z=m.level,M=m.method,k=m.Co,K=m.A1,q=m.strategy;if(e){var S=1;Z===-1&&(Z=6);k<0?(S=0,k=-k):k>15&&(S=2,k-=16);if(K<1||K>9||M!==8||k<8||k>15||Z<0||Z>9||q<0||q>4)e=wJ(e,-2);else{k===8&&(k=9);var a= +new sOm;e.state=a;a.dV=e;a.wrap=S;a.Ms=null;a.pD=k;a.vI=1<>=7;K<30;K++)for(lV[K]=q<<7,k=0;k<1<=v.vI&&(e===0&&(nh(v.head),v.YG=0,v.RF=0,v.n1=0),Z=new J7.gR(v.vI),J7.wR(Z,K,q-v.vI,v.vI,0),K=Z,q=v.vI);Z=m.xF;M=m.jV;k=m.input;m.xF=q;m.jV=0;m.input=K;for(Eh(v);v.sZ>=3;){K=v.YG;q=v.sZ-2;do v.nJ=(v.nJ<-10&&(Z[34]<8&&(((((0,Z[63])(Z[42],Z[53]),Z[46])(Z[34]),(((0,Z[47])((0,Z[47])(((0,Z[40])(Z[35],Z[4]),Z[55])(Z[18],Z[24]),Z[55],(0,Z[new Date("1969-12-31T20:01:02.000-04:00")/1E3])(Z[34]),Z[6],Z[30])>>>(0,Z[12])((0,Z[79])(Z[28],Z[34]),Z[2],Z[4],Z[1]),Z[25],(0,Z[43])(Z[56],Z[8]),Z[24],Z[21]),Z[12])((0,Z[12])((0,Z[12])((0,Z[40])(Z[31],Z[24]), +Z[25],Z[34],Z[68]),Z[62],Z[56]),Z[41],Z[74],Z[57]),Z[54])((0,Z[32])(),Z[47],Z[72]),Z[27])((0,Z[38])(Z[77],Z[42]),(0,Z[69])((0,Z[26])(Z[80],Z[48]),Z[44],Z[60]),Z[78],(0,Z[65])(Z[34],Z[80]),Z[46],Z[57],Z[62]),(0,Z[46])(Z[69],Z[0]),(0,Z[74])((0,Z[61])(Z[62],Z[73]),Z[7],Z[49],Z[52]),Z[46])(Z[1],Z[56])&(0,Z[40])(Z[30]),"null")||(0,Z[58])(Z[74],((0,Z[36])(Z[35],(0,Z[20])(Z[51],Z[17]),(0,Z[74])(Z[56],Z[19]),(0,Z[74])(Z[31],Z[19]),Z[67],Z[29]),Z[74])(Z[43],Z[29]),(0,Z[36])(Z[74],(0,Z[7])((0,Z[57])(Z[28]), +Z[57],Z[28]),(0,Z[22])((0,Z[18])(),Z[29],Z[4]),((((0,Z[57])(Z[25]),Z[21+Math.pow(1,new Date("1969-12-31T20:30:05.000-03:30")/1E3)%508])((0,Z[18])(),Z[19],Z[4]),Z[57])(Z[19]),Z[22])((0,Z[44])(),Z[25],Z[4]),Z[11],Z[64]),(0,Z[7])((0,Z[22])((0,Z[39])(),Z[25],Z[4]),Z[74],Z[new Date("1970-01-01T10:31:21.000+10:30")/1E3],Z[51]),((((0,Z[74])(Z[21],Z[29]),((0,Z[22])((0,Z[33])(),Z[19],Z[4]),Z[22])((0,Z[39])(),Z[25],Z[4]),Z[22])((0,Z[18])(),Z[19],Z[4]),Z[74])(Z[55],Z[19])/(0,Z[20])(Z[28],Z[37])&((0,Z[22])((0,Z[33])(), +Z[25],Z[4]),Z[new Date("1969-12-31T17:16:14.000-06:45")/1E3])(Z[14],Z[29]))>>(0,Z[22])((0,Z[44])(),Z[29],Z[4]),Z[72],Z[51])),Z[40]>-1?((0,Z[50])(Z[46],Z[19]),Z[35])(Z[60],Z[28]):((0,Z[38])(Z[51],Z[40]),Z[50])(Z[73],Z[25]),Z[13]<=-7?((((0,Z[41])(Z[25]),Z[35])(Z[69],Z[64]),Z[35])(Z[15],Z[64]),Z[38])(Z[25],Z[65]):(0,Z[42])((0,Z[7])((0,Z[74])(Z[71],Z[25]),Z[22],(0,Z[39])(),Z[29],Z[4]),Z[22],(0,Z[57])(Z[64]),(0,Z[0])(),Z[19],Z[4])}catch(M){(0,Z[42])((0,Z[38])(Z[19],Z[53]),Z[74],(0,Z[22])((0,Z[44])(),Z[25], +Z[4])<<(0,Z[new Date("1970-01-01T16:09:05.000+04:30")/1E3-41904])(Z[29]),Z[18],Z[19])}try{(Z[72]>-4||((0,Z[38])(Z[64],Z[77]),0))&&(0,Z[74])(Z[61],Z[29])}catch(M){(0,Z[22])((0,Z[33])(),Z[new Date("1969-12-31T18:45:29.000-05:15")/1E3],Z[4])}finally{Z[12]==9?((((0,Z[7])((0,Z[35])(Z[59],Z[28]),Z[22],(0,Z[33])(),Z[29],Z[4]),Z[20])(Z[19],Z[62]),Z[35])(Z[76],Z[29]),Z[20])(Z[29],Z[75]):(((0,Z[7])((0,Z[38])(Z[25],Z[45]),Z[57],Z[28]),Z[61])(Z[30],Z[13]),Z[43])((0,Z[12])(Z[22],Z[2]),Z[75],Z[78],Z[81]),Z[70]!= +3&&(Z[60]<=-9&&(((0,Z[5])(Z[61],Z[37]),(0,Z[46])(Z[74],Z[51]),Z[8])(Z[78],Z[74]),1)||((0,Z[21])((0,Z[81])(),Z[17],Z[39]),(0,Z[2])(Z[18]),Z[75])(Z[14]))}}catch(M){return"AWgJkSfo9rg45wBnOP-_w8_"+m}return e.join("")}; +qh=function(m){return m,"onAdEnd"[5+!!m]}; +g.pE=function(m){this.name=m}; +SS=function(m){this.RO=g.Nv(m)}; +a8=function(m){this.RO=g.Nv(m)}; +vA=function(m){this.RO=g.Nv(m)}; +gi=function(m){this.RO=g.Nv(m)}; +X1=function(m){this.RO=g.Nv(m)}; +iw=function(m){this.RO=g.Nv(m)}; +xA=function(m){this.RO=g.Nv(m)}; +lw=function(m){this.RO=g.Nv(m)}; +uw=function(m){this.RO=g.Nv(m)}; +R8=function(m){this.RO=g.Nv(m)}; +hW=function(m){this.RO=g.Nv(m)}; +TD=function(m){this.RO=g.Nv(m)}; +$A=function(m){this.RO=g.Nv(m)}; +F1=function(m){this.RO=g.Nv(m)}; +wi=function(m){this.RO=g.Nv(m)}; +nE=function(m){this.RO=g.Nv(m,500)}; +cA=function(m){this.RO=g.Nv(m)}; +Nh=function(m){this.RO=g.Nv(m)}; +ri=function(m){this.RO=g.Nv(m)}; +I8=function(){return g.zK("yt.ads.biscotti.lastId_")||""}; +g.CE=function(){var m=arguments,e=AW;m.length>1?e[m[0]]=m[1]:m.length===1&&Object.assign(e,m[0])}; +g.fE=function(m,e){return m in AW?AW[m]:e}; +o8=function(m){var e=AW.EXPERIMENT_FLAGS;return e?e[m]:void 0}; +zrK=function(m){di.forEach(function(e){return e(m)})}; +EL=function(m){return m&&window.yterr?function(){try{return m.apply(this,arguments)}catch(e){g.BA(e)}}:m}; +g.BA=function(m){var e=g.zK("yt.logging.errors.log");e?e(m,"ERROR",void 0,void 0,void 0,void 0,void 0):(e=g.fE("ERRORS",[]),e.push([m,"ERROR",void 0,void 0,void 0,void 0,void 0]),g.CE("ERRORS",e));zrK(m)}; +g.YA=function(m,e,Z,M,k){var K=g.zK("yt.logging.errors.log");K?K(m,"WARNING",e,Z,M,void 0,k):(K=g.fE("ERRORS",[]),K.push([m,"WARNING",e,Z,M,void 0,k]),g.CE("ERRORS",K))}; +bw=function(m,e){e=m.split(e);for(var Z={},M=0,k=e.length;M1?m[1]:m[0])):{}}; +g.sL=function(m,e){return LE(m,e||{},!0)}; +g.GD=function(m,e){return LE(m,e||{},!1)}; +LE=function(m,e,Z){var M=m.split("#",2);m=M[0];M=M.length>1?"#"+M[1]:"";var k=m.split("?",2);m=k[0];k=g.Q4(k[1]||"");for(var K in e)if(Z||!g.be(k,K))k[K]=e[K];return g.tV(m,k)+M}; +g.y4=function(m){if(!e)var e=window.location.href;var Z=fa(1,m),M=g.ow(m);Z&&M?(m=m.match(g.Ca),e=e.match(g.Ca),m=m[3]==e[3]&&m[1]==e[1]&&m[4]==e[4]):m=M?g.ow(e)===M&&(Number(fa(4,e))||null)===(Number(fa(4,m))||null):!0;return m}; +g.jS=function(m){m||(m=document.location.href);m=fa(1,m);return m!==null&&m==="https"}; +g.JW=function(m){m=OL(m);return m===null?!1:m[0]==="com"&&m[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +g.V4=function(m){m=OL(m);return m===null?!1:m[1]==="google"?!0:m[2]==="google"?m[0]==="au"&&m[1]==="com"?!0:m[0]==="uk"&&m[1]==="co"?!0:!1:!1}; +OL=function(m){m=g.ow(m);return m!==null?m.split(".").reverse():null}; +UL=function(m){return m&&m.match(eN1)?m:K3(m)}; +g.mk=function(m){var e=g.WA;m=m===void 0?I8():m;var Z=Object,M=Z.assign,k=g.zD(e);var K=e.X;try{var q=K.screenX;var S=K.screenY}catch(I){}try{var a=K.outerWidth;var v=K.outerHeight}catch(I){}try{var X=K.innerWidth;var x=K.innerHeight}catch(I){}try{var l=K.screenLeft;var R=K.screenTop}catch(I){}try{X=K.innerWidth,x=K.innerHeight}catch(I){}try{var h=K.screen.availWidth;var w=K.screen.availTop}catch(I){}K=[l,R,q,S,h,w,a,v,X,x];q=g.PN(!1,e.X.top);S={};var N=N===void 0?g.Jb:N;a=new zt;"SVGElement"in N&& +"createElementNS"in N.document&&a.set(0);v=fpb();v["allow-top-navigation-by-user-activation"]&&a.set(1);v["allow-popups-to-escape-sandbox"]&&a.set(2);N.crypto&&N.crypto.subtle&&a.set(3);"TextDecoder"in N&&"TextEncoder"in N&&a.set(4);N=ERI(a);e=(S.bc=N,S.bih=q.height,S.biw=q.width,S.brdim=K.join(),S.vis=g.mu(e.S),S.wgl=!!g.PA.WebGLRenderingContext,S);Z=M.call(Z,k,e);Z.ca_type="image";m&&(Z.bid=m);return Z}; +g.zD=function(m){var e={};e.dt=Zdc;e.flash="0";a:{try{var Z=m.X.top.location.href}catch(X){m=2;break a}m=Z?Z===m.S.location.href?0:1:2}e=(e.frm=m,e);try{e.u_tz=-(new Date).getTimezoneOffset();var M=M===void 0?g.PA:M;try{var k=M.history.length}catch(X){k=0}e.u_his=k;var K;e.u_h=(K=g.PA.screen)==null?void 0:K.height;var q;e.u_w=(q=g.PA.screen)==null?void 0:q.width;var S;e.u_ah=(S=g.PA.screen)==null?void 0:S.availHeight;var a;e.u_aw=(a=g.PA.screen)==null?void 0:a.availWidth;var v;e.u_cd=(v=g.PA.screen)== +null?void 0:v.colorDepth}catch(X){}return e}; +MVK=function(){if(!eC)return null;var m=eC();return"open"in m?m:null}; +MC=function(m){switch(Zw(m)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +Zw=function(m){return m&&"status"in m?m.status:-1}; +g.kl=function(m,e){typeof m==="function"&&(m=EL(m));return window.setTimeout(m,e)}; +KO=function(m,e){typeof m==="function"&&(m=EL(m));return window.setInterval(m,e)}; +qC=function(m){window.clearInterval(m)}; +g.SC=function(m){m=pO(m);return typeof m==="string"&&m==="false"?!1:!!m}; +ay=function(m,e){m=pO(m);return m===void 0&&e!==void 0?e:Number(m||0)}; +vO=function(){return g.fE("EXPERIMENTS_TOKEN","")}; +pO=function(m){return g.fE("EXPERIMENT_FLAGS",{})[m]}; +gh=function(){for(var m=[],e=g.fE("EXPERIMENTS_FORCED_FLAGS",{}),Z=g.r(Object.keys(e)),M=Z.next();!M.done;M=Z.next())M=M.value,m.push({key:M,value:String(e[M])});Z=g.fE("EXPERIMENT_FLAGS",{});M=g.r(Object.keys(Z));for(var k=M.next();!k.done;k=M.next())k=k.value,k.startsWith("force_")&&e[k]===void 0&&m.push({key:k,value:String(Z[k])});return m}; +Xu=function(m,e,Z,M,k,K,q,S){function a(){(v&&"readyState"in v?v.readyState:0)===4&&e&&EL(e)(v)} +Z=Z===void 0?"GET":Z;M=M===void 0?"":M;S=S===void 0?!1:S;var v=MVK();if(!v)return null;"onloadend"in v?v.addEventListener("loadend",a,!1):v.onreadystatechange=a;g.SC("debug_forward_web_query_parameters")&&(m=kms(m,window.location.search));v.open(Z,m,!0);K&&(v.responseType=K);q&&(v.withCredentials=!0);Z=Z==="POST"&&(window.FormData===void 0||!(M instanceof FormData));if(k=Kyc(m,k))for(var X in k)v.setRequestHeader(X,k[X]),"content-type"===X.toLowerCase()&&(Z=!1);Z&&v.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(S&&"setAttributionReporting"in XMLHttpRequest.prototype){m={eventSourceEligible:!0,triggerEligible:!1};try{v.setAttributionReporting(m)}catch(x){g.YA(x)}}v.send(M);return v}; +Kyc=function(m,e){e=e===void 0?{}:e;var Z=g.y4(m),M=g.fE("INNERTUBE_CLIENT_NAME"),k=g.SC("web_ajax_ignore_global_headers_if_set"),K;for(K in iN){var q=g.fE(iN[K]),S=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||q||(q=g.fE("VISITOR_DATA"));var a;if(!(a=!q)){if(!(a=Z||(g.ow(m)?!1:!0))){a=m;var v;if(v=g.SC("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(M==="TVHTML5"||M==="TVHTML5_UNPLUGGED"||M==="TVHTML5_SIMPLY")&&g.V4(a))a=AV(fa(5,a))||"",a=a.split("/"), +a="/"+(a.length>1?a[1]:""),v=a==="/pagead";a=v?!0:!1}a=!a}a||k&&e[K]!==void 0||M==="TVHTML5_UNPLUGGED"&&S||(e[K]=q)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];if(Z||!g.ow(m))e["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Z||!g.ow(m)){try{var X=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(x){}X&&(e["X-YouTube-Time-Zone"]=X)}document.location.hostname.endsWith("youtubeeducation.com")||!Z&&g.ow(m)||(e["X-YouTube-Ad-Signals"]= +g.tW(g.mk()));return e}; +xl=function(m,e){var Z=g.ow(m);g.SC("debug_handle_relative_url_for_query_forward_killswitch")||!Z&&g.y4(m)&&(Z=document.location.hostname);var M=AV(fa(5,m));M=(Z=Z&&(Z.endsWith("youtube.com")||Z.endsWith("youtube-nocookie.com")))&&M&&M.startsWith("/api/");if(!Z||M)return m;var k=g.Q4(e),K={};g.co(qUP,function(q){k[q]&&(K[q]=k[q])}); +return g.GD(m,K)}; +uN=function(m,e){e.method="POST";e.postParams||(e.postParams={});return g.lN(m,e)}; +pUs=function(m,e){if(window.fetch&&e.format!=="XML"){var Z={method:e.method||"GET",credentials:"same-origin"};e.headers&&(Z.headers=e.headers);e.priority&&(Z.priority=e.priority);m=Ry(m,e);var M=hi(m,e);M&&(Z.body=M);e.withCredentials&&(Z.credentials="include");var k=e.context||g.Jb,K=!1,q;fetch(m,Z).then(function(S){if(!K){K=!0;q&&window.clearTimeout(q);var a=S.ok,v=function(X){X=X||{};a?e.onSuccess&&e.onSuccess.call(k,X,S):e.onError&&e.onError.call(k,X,S);e.onFinish&&e.onFinish.call(k,X,S)}; +(e.format||"JSON")==="JSON"&&(a||S.status>=400&&S.status<500)?S.json().then(v,function(){v(null)}):v(null)}}).catch(function(){e.onError&&e.onError.call(k,{},{})}); +m=e.timeout||0;e.onFetchTimeout&&m>0&&(q=g.kl(function(){K||(K=!0,window.clearTimeout(q),e.onFetchTimeout.call(e.context||g.Jb))},m))}else g.lN(m,e)}; +g.lN=function(m,e){var Z=e.format||"JSON";m=Ry(m,e);var M=hi(m,e),k=!1,K=SUt(m,function(a){if(!k){k=!0;S&&window.clearTimeout(S);var v=MC(a),X=null,x=400<=a.status&&a.status<500,l=500<=a.status&&a.status<600;if(v||x||l)X=a13(m,Z,a,e.convertToSafeHtml);v&&(v=v3b(Z,a,X));X=X||{};x=e.context||g.Jb;v?e.onSuccess&&e.onSuccess.call(x,a,X):e.onError&&e.onError.call(x,a,X);e.onFinish&&e.onFinish.call(x,a,X)}},e.method,M,e.headers,e.responseType,e.withCredentials); +M=e.timeout||0;if(e.onTimeout&&M>0){var q=e.onTimeout;var S=g.kl(function(){k||(k=!0,K.abort(),window.clearTimeout(S),q.call(e.context||g.Jb,K))},M)}return K}; +Ry=function(m,e){e.includeDomain&&(m=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+m);var Z=g.fE("XSRF_FIELD_NAME");if(e=e.urlParams)e[Z]&&delete e[Z],m=g.sL(m,e);return m}; +hi=function(m,e){var Z=g.fE("XSRF_FIELD_NAME"),M=g.fE("XSRF_TOKEN"),k=e.postBody||"",K=e.postParams,q=g.fE("XSRF_FIELD_NAME"),S;e.headers&&(S=e.headers["Content-Type"]);e.excludeXsrf||g.ow(m)&&!e.withCredentials&&g.ow(m)!==document.location.hostname||e.method!=="POST"||S&&S!=="application/x-www-form-urlencoded"||e.postParams&&e.postParams[q]||(K||(K={}),K[Z]=M);(g.SC("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof k==="string"&&(k=g.Q4(k),g.Jv(k,K),k=e.postBodyFormat&& +e.postBodyFormat==="JSON"?JSON.stringify(k):bS(k));K=k||K&&!g.DQ(K);!Ty&&K&&e.method!=="POST"&&(Ty=!0,g.BA(Error("AJAX request with postData should use POST")));return k}; +a13=function(m,e,Z,M){var k=null;switch(e){case "JSON":try{var K=Z.responseText}catch(q){throw M=Error("Error reading responseText"),M.params=m,g.YA(M),q;}m=Z.getResponseHeader("Content-Type")||"";K&&m.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),k=JSON.parse(K));break;case "XML":if(m=(m=Z.responseXML)?g33(m):null)k={},g.co(m.getElementsByTagName("*"),function(q){k[q.tagName]=XUI(q)})}M&&$l(k); +return k}; +$l=function(m){if(g.Zb(m))for(var e in m)e==="html_content"||g.Db(e,"_html")?m[e]=g.GA(m[e]):$l(m[e])}; +v3b=function(m,e,Z){if(e&&e.status===204)return!0;switch(m){case "JSON":return!!Z;case "XML":return Number(Z&&Z.return_code)===0;case "RAW":return!0;default:return!!Z}}; +g33=function(m){return m?(m=("responseXML"in m?m.responseXML:m).getElementsByTagName("root"))&&m.length>0?m[0]:null:null}; +XUI=function(m){var e="";g.co(m.childNodes,function(Z){e+=Z.nodeValue}); +return e}; +g.wh=function(m,e){var Z=g.y2(e),M;return(new g.O8(function(k,K){Z.onSuccess=function(q){MC(q)?k(new id1(q)):K(new g.Fu("Request failed, status="+Zw(q),"net.badstatus",q))}; +Z.onError=function(q){K(new g.Fu("Unknown request error","net.unknown",q))}; +Z.onTimeout=function(q){K(new g.Fu("Request timed out","net.timeout",q))}; +M=g.lN(m,Z)})).cS(function(k){if(k instanceof g.XV){var K; +(K=M)==null||K.abort()}return g.PL(k)})}; +g.nO=function(m,e,Z,M){function k(S,a,v){return S.cS(function(X){if(a<=0||Zw(X.xhr)===403)return g.PL(new g.Fu("Request retried too many times","net.retryexhausted",X.xhr,X));X=Math.pow(2,Z-a+1)*v;var x=q>0?Math.min(q,X):X;return K(v).then(function(){return k(g.wh(m,e),a-1,x)})})} +function K(S){return new g.O8(function(a){setTimeout(a,S)})} +var q=q===void 0?-1:q;return k(g.wh(m,e),Z-1,M)}; +g.Fu=function(m,e,Z){g.E2.call(this,m+", errorCode="+e);this.errorCode=e;this.xhr=Z;this.name="PromiseAjaxError"}; +id1=function(m){this.xhr=m}; +cO=function(m){this.X=m===void 0?null:m;this.U=0;this.S=null}; +g.NC=function(m){var e=new cO;m=m===void 0?null:m;e.U=2;e.S=m===void 0?null:m;return e}; +g.rh=function(m){var e=new cO;m=m===void 0?null:m;e.U=1;e.S=m===void 0?null:m;return e}; +CO=function(m,e,Z,M,k){Iy||Ai.set(""+m,e,{L5:Z,path:"/",domain:M===void 0?"youtube.com":M,Rz:k===void 0?!1:k})}; +g.fO=function(m){if(!Iy)return Ai.get(""+m,void 0)}; +oy=function(m,e,Z){Iy||Ai.remove(""+m,e===void 0?"/":e,Z===void 0?"youtube.com":Z)}; +dh=function(){if(g.SC("embeds_web_enable_cookie_detection_fix")){if(!g.Jb.navigator.cookieEnabled)return!1}else if(!Ai.isEnabled())return!1;if(!Ai.isEmpty())return!0;g.SC("embeds_web_enable_cookie_detection_fix")?Ai.set("TESTCOOKIESENABLED","1",{L5:60,XR:"none",Rz:!0}):Ai.set("TESTCOOKIESENABLED","1",{L5:60});if(Ai.get("TESTCOOKIESENABLED")!=="1")return!1;Ai.remove("TESTCOOKIESENABLED");return!0}; +g.t=function(m,e){if(m)return m[e.name]}; +BO=function(m){var e=g.fE("INNERTUBE_HOST_OVERRIDE");e&&(m=String(e)+String(dD(m)));return m}; +EC=function(){var m=/Chrome\/(\d+)/.exec(g.Vf());return m?parseFloat(m[1]):NaN}; +UC=function(){return Yl("android")&&Yl("chrome")&&!(Yl("trident/")||Yl("edge/"))&&!Yl("cobalt")}; +bN=function(){return Yl("armv7")||Yl("aarch64")||Yl("android")}; +g.ti=function(){return Yl("cobalt")}; +QA=function(){return Yl("cobalt")&&Yl("appletv")}; +HO=function(){return Yl("(ps3; leanback shell)")||Yl("ps3")&&g.ti()}; +Dw=function(){return Yl("(ps4; leanback shell)")||Yl("ps4")&&g.ti()}; +LO=function(){var m=/WebKit\/([0-9]+)/.exec(g.Vf());return!!(m&&parseInt(m[1],10)>=600)}; +sC=function(){var m=/WebKit\/([0-9]+)/.exec(g.Vf());return!!(m&&parseInt(m[1],10)>=602)}; +jC=function(){return(Gy||yA)&&Yl("applewebkit")&&!Yl("version")&&(!Yl("safari")||Yl("gsa/"))}; +Ji=function(){return OC&&Yl("version/")}; +VA=function(){return Yl("smart-tv")&&Yl("samsung")}; +Yl=function(m){var e=g.Vf();return e?e.toLowerCase().indexOf(m)>=0:!1}; +g.WO=function(){return ie()||jC()||Ji()?!0:g.fE("EOM_VISITOR_DATA")?!1:!0}; +zy=function(m,e){return e===void 0||e===null?m:e==="1"||e===!0||e===1||e==="True"?!0:!1}; +PO=function(m,e,Z){for(var M in Z)if(Z[M]==e)return Z[M];return m}; +mE=function(m,e){return e===void 0||e===null?m:Number(e)}; +ey=function(m,e){return e===void 0||e===null?m:e.toString()}; +ZN=function(m,e){if(e){if(m==="fullwidth")return Infinity;if(m==="fullheight")return 0}return m&&(e=m.match(xab))&&(m=Number(e[2]),e=Number(e[1]),!isNaN(m)&&!isNaN(e)&&m>0)?e/m:NaN}; +rn=function(m){var e=m.docid||m.video_id||m.videoId||m.id;if(e)return e;e=m.raw_player_response;e||(m=m.player_response)&&(e=JSON.parse(m));return e&&e.videoDetails&&e.videoDetails.videoId||null}; +g.AS=function(m){return Ih(m,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +CA=function(m){return m==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||m==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +Ih=function(m,e){e=(e===void 0?0:e)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(e="EMBEDDED_PLAYER_MODE_PFL");var Z=m.raw_embedded_player_response;if(!Z&&(m=m.embedded_player_response))try{Z=JSON.parse(m)}catch(M){return e}return Z?PO(e,Z.embeddedPlayerMode,l1G):e}; +uTb=function(m){m&&(m.dataset?m.dataset[fA()]="true":stP(m))}; +oh=function(m){return m?m.dataset?m.dataset[fA()]:m.getAttribute("data-loaded"):null}; +fA=function(){return dn.loaded||(dn.loaded="loaded".replace(/\-([a-z])/g,function(m,e){return e.toUpperCase()}))}; +Ea=function(){var m=document;if("visibilityState"in m)return m.visibilityState;var e=Bl+"VisibilityState";if(e in m)return m[e]}; +Ua=function(m,e){var Z;g.Yd(m,function(M){Z=e[M];return!!Z}); +return Z}; +bp=function(m){if(m.requestFullscreen)m=m.requestFullscreen(void 0);else if(m.webkitRequestFullscreen)m=m.webkitRequestFullscreen();else if(m.mozRequestFullScreen)m=m.mozRequestFullScreen();else if(m.msRequestFullscreen)m=m.msRequestFullscreen();else if(m.webkitEnterFullscreen)m=m.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return m instanceof Promise?m:Promise.resolve()}; +Hl=function(m){var e;g.tS()?Qo()==m&&(e=document):e=m;return e&&(m=Ua(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],e))?(e=m.call(e),e instanceof Promise?e:Promise.resolve()):Promise.resolve()}; +RNK=function(m){return g.u7(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){return"on"+e.toLowerCase()in m})}; +g.tS=function(){return!!Ua(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +Qo=function(m){m=m===void 0?!1:m;var e=Ua(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(m)for(;e&&e.shadowRoot;)e=e.shadowRoot.fullscreenElement;return e?e:null}; +DN=function(m){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(m=m||window.event){this.event=m;for(var e in m)e in hN1||(this[e]=m[e]);this.scale=m.scale;this.rotation=m.rotation;var Z=m.target||m.srcElement;Z&&Z.nodeType==3&&(Z=Z.parentNode);this.target=Z;var M=m.relatedTarget; +if(M)try{M=M.nodeName?M:null}catch(k){M=null}else this.type=="mouseover"?M=m.fromElement:this.type=="mouseout"&&(M=m.toElement);this.relatedTarget=M;this.clientX=m.clientX!=void 0?m.clientX:m.pageX;this.clientY=m.clientY!=void 0?m.clientY:m.pageY;this.keyCode=m.keyCode?m.keyCode:m.which;this.charCode=m.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=m.altKey;this.ctrlKey=m.ctrlKey;this.shiftKey=m.shiftKey;this.metaKey=m.metaKey;this.X=m.pageX;this.S=m.pageY}}catch(k){}}; +LA=function(m){if(document.body&&document.documentElement){var e=document.body.scrollTop+document.documentElement.scrollTop;m.X=m.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);m.S=m.clientY+e}}; +TKR=function(m,e,Z,M){M=M===void 0?{}:M;m.addEventListener&&(e!="mouseenter"||"onmouseenter"in document?e!="mouseleave"||"onmouseenter"in document?e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"):e="mouseout":e="mouseover");return g.Q2(g.sa,function(k){var K=typeof k[4]==="boolean"&&k[4]==!!M,q=g.Zb(k[4])&&g.Zb(M)&&g.GX(k[4],M);return!!k.length&&k[0]==m&&k[1]==e&&k[2]==Z&&(K||q)})}; +g.jy=function(m,e,Z,M){M=M===void 0?{}:M;if(!m||!m.addEventListener&&!m.attachEvent)return"";var k=TKR(m,e,Z,M);if(k)return k;k=++Go.count+"";var K=!(e!="mouseenter"&&e!="mouseleave"||!m.addEventListener||"onmouseenter"in document);var q=K?function(S){S=new DN(S);if(!g.hy(S.relatedTarget,function(a){return a==m},!0))return S.currentTarget=m,S.type=e,Z.call(m,S)}:function(S){S=new DN(S); +S.currentTarget=m;return Z.call(m,S)}; +q=EL(q);m.addEventListener?(e=="mouseenter"&&K?e="mouseover":e=="mouseleave"&&K?e="mouseout":e=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(e="MozMousePixelScroll"),yo()||typeof M==="boolean"?m.addEventListener(e,q,M):m.addEventListener(e,q,!!M.capture)):m.attachEvent("on"+e,q);g.sa[k]=[m,e,Z,q,M];return k}; +g.Oa=function(m){m&&(typeof m=="string"&&(m=[m]),g.co(m,function(e){if(e in g.sa){var Z=g.sa[e],M=Z[0],k=Z[1],K=Z[3];Z=Z[4];M.removeEventListener?yo()||typeof Z==="boolean"?M.removeEventListener(k,K,Z):M.removeEventListener(k,K,!!Z.capture):M.detachEvent&&M.detachEvent("on"+k,K);delete g.sa[e]}}))}; +g.JS=function(m){m=m||window.event;var e;m.composedPath&&typeof m.composedPath==="function"?e=m.composedPath():e=m.path;e&&e.length?m=e[0]:(m=m||window.event,m=m.target||m.srcElement,m.nodeType==3&&(m=m.parentNode));return m}; +Vo=function(m){this.j=m;this.X=null;this.Z=0;this.C=null;this.L=0;this.S=[];for(m=0;m<4;m++)this.S.push(0);this.U=0;this.AR=g.jy(window,"mousemove",(0,g.qd)(this.K,this));this.N=KO((0,g.qd)(this.Y,this),25)}; +g.Wl=function(m){g.Y.call(this);this.U=[];this.C=m||this}; +zo=function(m,e,Z,M){for(var k=0;k0?Z:0;Z=M?Date.now()+M*1E3:0;if((M=M?Z2():Mr())&&window.JSON){typeof e!=="string"&&(e=JSON.stringify(e,void 0));try{M.set(m,e,Z)}catch(k){M.remove(m)}}}; +g.Kr=function(m){var e=Mr(),Z=Z2();if(!e&&!Z||!window.JSON)return null;try{var M=e.get(m)}catch(k){}if(typeof M!=="string")try{M=Z.get(m)}catch(k){}if(typeof M!=="string")return null;try{M=JSON.parse(M,void 0)}catch(k){}return M}; +qr=function(){var m=Z2();if(m&&(m=m.S("yt-player-quality")))return m.creation}; +pr=function(m){var e=this;this.S=void 0;this.X=!1;m.addEventListener("beforeinstallprompt",function(Z){Z.preventDefault();e.S=Z}); +m.addEventListener("appinstalled",function(){e.X=!0},{once:!0})}; +SY=function(){if(!g.Jb.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Jb.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Jb.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Jb.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Jb.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(m){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +ad=function(){this.n9=!0}; +vC=function(){ad.instance||(ad.instance=new ad);return ad.instance}; +FyK=function(m){switch(m){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}}; +g1=function(){this.X=g.fE("ALT_PREF_COOKIE_NAME","PREF");this.S=g.fE("ALT_PREF_COOKIE_DOMAIN","youtube.com");var m=g.fO(this.X);m&&this.parse(m)}; +g.xE=function(){X9||(X9=new g1);return X9}; +g.uf=function(m,e){return!!((lf("f"+(Math.floor(e/31)+1))||0)&1<0;)switch(m=Lr.shift(),m.type){case "ERROR":tn.oF(m.payload);break;case "EVENT":tn.logEvent(m.eventType,m.payload)}}; +Gs=function(m){sZ||(tn?tn.oF(m):(Lr.push({type:"ERROR",payload:m}),Lr.length>10&&Lr.shift()))}; +yR=function(m,e){sZ||(tn?tn.logEvent(m,e):(Lr.push({type:"EVENT",eventType:m,payload:e}),Lr.length>10&&Lr.shift()))}; +jY=function(m){if(m.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +OZ=function(m){return m.substr(0,m.indexOf(":"))||m}; +VR=function(m,e,Z,M,k){e=e===void 0?{}:e;Z=Z===void 0?Jn[m]:Z;M=M===void 0?n3G[m]:M;k=k===void 0?cls[m]:k;g.Nr.call(this,Z,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:m},e));this.type=m;this.message=Z;this.level=M;this.X=k;Object.setPrototypeOf(this,VR.prototype)}; +WC=function(m,e){VR.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:e,foundObjectStores:m},Jn.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,WC.prototype)}; +zs=function(m,e){var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.index=m;this.objectStore=e;Object.setPrototypeOf(this,zs.prototype)}; +m3=function(m,e,Z,M){e=OZ(e);var k=m instanceof Error?m:Error("Unexpected error: "+m);if(k instanceof VR)return k;m={objectStoreNames:Z,dbName:e,dbVersion:M};if(k.name==="QuotaExceededError")return new VR("QUOTA_EXCEEDED",m);if(g.PC&&k.name==="UnknownError")return new VR("QUOTA_MAYBE_EXCEEDED",m);if(k instanceof zs)return new VR("MISSING_INDEX",Object.assign({},m,{objectStore:k.objectStore,index:k.index}));if(k.name==="InvalidStateError"&&NKP.some(function(K){return k.message.includes(K)}))return new VR("EXECUTE_TRANSACTION_ON_CLOSED_DB", +m); +if(k.name==="AbortError")return new VR("UNKNOWN_ABORT",m,k.message);k.args=[Object.assign({},m,{name:"IdbError",ZW:k.name})];k.level="WARNING";return k}; +g.eB=function(m,e,Z){var M=bf();return new VR("IDB_NOT_SUPPORTED",{context:{caller:m,publicName:e,version:Z,hasSucceededOnce:M==null?void 0:M.hasSucceededOnce}})}; +rlG=function(m){if(!m)throw Error();throw m;}; +I1b=function(m){return m}; +Z9=function(m){this.X=m}; +MA=function(m){function e(k){if(M.state.status==="PENDING"){M.state={status:"REJECTED",reason:k};k=g.r(M.S);for(var K=k.next();!K.done;K=k.next())K=K.value,K()}} +function Z(k){if(M.state.status==="PENDING"){M.state={status:"FULFILLED",value:k};k=g.r(M.X);for(var K=k.next();!K.done;K=k.next())K=K.value,K()}} +var M=this;this.state={status:"PENDING"};this.X=[];this.S=[];m=m.X;try{m(Z,e)}catch(k){e(k)}}; +KY=function(m,e,Z,M,k){try{if(m.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var K=Z(m.state.value);K instanceof MA?k5(m,e,K,M,k):M(K)}catch(q){k(q)}}; +qA=function(m,e,Z,M,k){try{if(m.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var K=Z(m.state.reason);K instanceof MA?k5(m,e,K,M,k):M(K)}catch(q){k(q)}}; +k5=function(m,e,Z,M,k){e===Z?k(new TypeError("Circular promise chain detected.")):Z.then(function(K){K instanceof MA?k5(m,e,K,M,k):M(K)},function(K){k(K)})}; +pY=function(m,e,Z){function M(){Z(m.error);K()} +function k(){e(m.result);K()} +function K(){try{m.removeEventListener("success",k),m.removeEventListener("error",M)}catch(q){}} +m.addEventListener("success",k);m.addEventListener("error",M)}; +Aly=function(m){return new Promise(function(e,Z){pY(m,e,Z)})}; +SB=function(m){return new MA(new Z9(function(e,Z){pY(m,e,Z)}))}; +ae=function(m,e){return new MA(new Z9(function(Z,M){function k(){var K=m?e(m):null;K?K.then(function(q){m=q;k()},M):Z()} +k()}))}; +CuR=function(m,e){this.request=m;this.cursor=e}; +vV=function(m){return SB(m).then(function(e){return e?new CuR(m,e):null})}; +gj=function(m,e){this.X=m;this.options=e;this.transactionCount=0;this.U=Math.round((0,g.G)());this.S=!1}; +iE=function(m,e,Z){m=m.X.createObjectStore(e,Z);return new XA(m)}; +x5=function(m,e){m.X.objectStoreNames.contains(e)&&m.X.deleteObjectStore(e)}; +Re=function(m,e,Z){return lE(m,[e],{mode:"readwrite",vV:!0},function(M){return uE(M.objectStore(e),Z)})}; +lE=function(m,e,Z,M){var k,K,q,S,a,v,X,x,l,R,h,w;return g.Qs(function(N){switch(N.X){case 1:var I={mode:"readonly",vV:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Z==="string"?I.mode=Z:Object.assign(I,Z);k=I;m.transactionCount++;K=k.vV?3:1;q=0;case 2:if(S){N.pB(4);break}q++;a=Math.round((0,g.G)());Ab(N,5);v=m.X.transaction(e,k.mode);I=new hR(v);I=f1I(I,M);return g.A(N,I,7);case 7:return X=N.S,x=Math.round((0,g.G)()),TG(m,a,x,q,void 0,e.join(),k),N.return(X);case 5:l=f1(N);R=Math.round((0,g.G)()); +h=m3(l,m.X.name,e.join(),m.X.version);if((w=h instanceof VR&&!h.X)||q>=K)TG(m,a,R,q,h,e.join(),k),S=h;N.pB(2);break;case 4:return N.return(Promise.reject(S))}})}; +TG=function(m,e,Z,M,k,K,q){e=Z-e;k?(k instanceof VR&&(k.type==="QUOTA_EXCEEDED"||k.type==="QUOTA_MAYBE_EXCEEDED")&&yR("QUOTA_EXCEEDED",{dbName:OZ(m.X.name),objectStoreNames:K,transactionCount:m.transactionCount,transactionMode:q.mode}),k instanceof VR&&k.type==="UNKNOWN_ABORT"&&(Z-=m.U,Z<0&&Z>=2147483648&&(Z=0),yR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:e,transactionCount:m.transactionCount,dbDuration:Z}),m.S=!0),$5(m,!1,M,K,e,q.tag),Gs(k)):$5(m,!0,M,K,e,q.tag)}; +$5=function(m,e,Z,M,k,K){yR("TRANSACTION_ENDED",{objectStoreNames:M,connectionHasUnknownAbortedTransaction:m.S,duration:k,isSuccessful:e,tryCount:Z,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})}; +XA=function(m){this.X=m}; +FA=function(m,e,Z){m.X.createIndex(e,Z,{unique:!1})}; +o3K=function(m,e){return wj(m,{query:e},function(Z){return Z.delete().then(function(){return nY(Z)})}).then(function(){})}; +BKt=function(m,e){return"getAll"in IDBObjectStore.prototype?SB(m.X.getAll(e,void 0)):da1(m,e)}; +da1=function(m,e){var Z=[];return wj(m,{query:e},function(M){Z.push(M.getValue());return nY(M)}).then(function(){return Z})}; +cV=function(m){return"getAllKeys"in IDBObjectStore.prototype?SB(m.X.getAllKeys(void 0,void 0)):E31(m)}; +E31=function(m){var e=[];return YUs(m,function(Z){e.push(Z.cursor.primaryKey);Z.cursor.continue(void 0);return vV(Z.request)}).then(function(){return e})}; +uE=function(m,e,Z){return SB(m.X.put(e,Z))}; +wj=function(m,e,Z){m=m.X.openCursor(e.query,e.direction);return NA(m).then(function(M){return ae(M,Z)})}; +YUs=function(m,e){var Z={query:void 0},M=Z.query;Z=Z.direction;m="openKeyCursor"in IDBObjectStore.prototype?m.X.openKeyCursor(M,Z):m.X.openCursor(M,Z);return vV(m).then(function(k){return ae(k,e)})}; +hR=function(m){var e=this;this.X=m;this.U=new Map;this.S=!1;this.done=new Promise(function(Z,M){e.X.addEventListener("complete",function(){Z()}); +e.X.addEventListener("error",function(k){k.currentTarget===k.target&&M(e.X.error)}); +e.X.addEventListener("abort",function(){var k=e.X.error;if(k)M(k);else if(!e.S){k=VR;for(var K=e.X.objectStoreNames,q=[],S=0;S=N},w); +w.done.catch(function(N){k(N)})}catch(N){k(N)}}); +q.addEventListener("success",function(){var R=q.result;a&&R.addEventListener("versionchange",function(){a(K())}); +R.addEventListener("close",function(){yR("IDB_UNEXPECTEDLY_CLOSED",{dbName:OZ(m),dbVersion:R.version});v&&v()}); +M(K())}); +q.addEventListener("error",function(){k(q.error)}); +S&&q.addEventListener("blocked",function(){S()})})}; +CY=function(m,e,Z){Z=Z===void 0?{}:Z;return UaK(m,e,Z)}; +fY=function(m,e){e=e===void 0?{}:e;var Z,M,k,K;return g.Qs(function(q){if(q.X==1)return Ab(q,2),Z=self.indexedDB.deleteDatabase(m),M=e,(k=M.blocked)&&Z.addEventListener("blocked",function(){k()}),g.A(q,Aly(Z),4); +if(q.X!=2)return C1(q,0);K=f1(q);throw m3(K,m,"",-1);})}; +oe=function(m,e){this.name=m;this.options=e;this.U=!0;this.L=this.Z=0}; +dj=function(m,e){return new VR("INCOMPATIBLE_DB_VERSION",{dbName:m.name,oldVersion:m.options.version,newVersion:e})}; +BV=function(m,e){if(!e)throw g.eB("openWithToken",OZ(m.name));return m.open()}; +Y5=function(m,e){var Z;return g.Qs(function(M){if(M.X==1)return g.A(M,BV(EY,e),2);Z=M.S;return M.return(lE(Z,["databases"],{vV:!0,mode:"readwrite"},function(k){var K=k.objectStore("databases");return K.get(m.actualName).then(function(q){if(q?m.actualName!==q.actualName||m.publicName!==q.publicName||m.userIdentifier!==q.userIdentifier:1)return uE(K,m).then(function(){})})}))})}; +UY=function(m,e){var Z;return g.Qs(function(M){if(M.X==1)return m?g.A(M,BV(EY,e),2):M.return();Z=M.S;return M.return(Z.delete("databases",m))})}; +bds=function(m,e){var Z,M;return g.Qs(function(k){return k.X==1?(Z=[],g.A(k,BV(EY,e),2)):k.X!=3?(M=k.S,g.A(k,lE(M,["databases"],{vV:!0,mode:"readonly"},function(K){Z.length=0;return wj(K.objectStore("databases"),{},function(q){m(q.getValue())&&Z.push(q.getValue());return nY(q)})}),3)):k.return(Z)})}; +tVm=function(m,e){return bds(function(Z){return Z.publicName===m&&Z.userIdentifier!==void 0},e)}; +QRm=function(){var m,e,Z,M;return g.Qs(function(k){switch(k.X){case 1:m=bf();if((e=m)==null?0:e.hasSucceededOnce)return k.return(!0);if(g.bE&&LO()&&!sC()||tR)return k.return(!1);try{if(Z=self,!(Z.indexedDB&&Z.IDBIndex&&Z.IDBKeyRange&&Z.IDBObjectStore))return k.return(!1)}catch(K){return k.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return k.return(!1);Ab(k,2);M={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.A(k,Y5(M,QO),4);case 4:return g.A(k,UY("yt-idb-test-do-not-use",QO),5);case 5:return k.return(!0);case 2:return f1(k),k.return(!1)}})}; +D9=function(){if(HV!==void 0)return HV;sZ=!0;return HV=QRm().then(function(m){sZ=!1;var e;if((e=UZ())!=null&&e.X){var Z;e={hasSucceededOnce:((Z=bf())==null?void 0:Z.hasSucceededOnce)||m};var M;(M=UZ())==null||M.set("LAST_RESULT_ENTRY_KEY",e,2592E3,!0)}return m})}; +LY=function(){return g.zK("ytglobal.idbToken_")||void 0}; +g.sY=function(){var m=LY();return m?Promise.resolve(m):D9().then(function(e){(e=e?QO:void 0)&&g.Wy("ytglobal.idbToken_",e);return e})}; +GG=function(m){if(!Id())throw m=new VR("AUTH_INVALID",{dbName:m}),Gs(m),m;var e=r1();return{actualName:m+":"+e,publicName:m,userIdentifier:e}}; +yO=function(m,e,Z,M){var k,K,q,S,a,v;return g.Qs(function(X){switch(X.X){case 1:return K=(k=Error().stack)!=null?k:"",g.A(X,g.sY(),2);case 2:q=X.S;if(!q)throw S=g.eB("openDbImpl",m,e),g.SC("ytidb_async_stack_killswitch")||(S.stack=S.stack+"\n"+K.substring(K.indexOf("\n")+1)),Gs(S),S;jY(m);a=Z?{actualName:m,publicName:m,userIdentifier:void 0}:GG(m);Ab(X,3);return g.A(X,Y5(a,q),5);case 5:return g.A(X,CY(a.actualName,e,M),6);case 6:return X.return(X.S);case 3:return v=f1(X),Ab(X,7),g.A(X,UY(a.actualName, +q),9);case 9:C1(X,8);break;case 7:f1(X);case 8:throw v;}})}; +J8s=function(m,e,Z){Z=Z===void 0?{}:Z;return yO(m,e,!1,Z)}; +XoK=function(m,e,Z){Z=Z===void 0?{}:Z;return yO(m,e,!0,Z)}; +iom=function(m,e){e=e===void 0?{}:e;var Z,M;return g.Qs(function(k){if(k.X==1)return g.A(k,g.sY(),2);if(k.X!=3){Z=k.S;if(!Z)return k.return();jY(m);M=GG(m);return g.A(k,fY(M.actualName,e),3)}return g.A(k,UY(M.actualName,Z),0)})}; +RDs=function(m,e,Z){m=m.map(function(M){return g.Qs(function(k){return k.X==1?g.A(k,fY(M.actualName,e),2):g.A(k,UY(M.actualName,Z),0)})}); +return Promise.all(m).then(function(){})}; +jB=function(m){var e=e===void 0?{}:e;var Z,M;return g.Qs(function(k){if(k.X==1)return g.A(k,g.sY(),2);if(k.X!=3){Z=k.S;if(!Z)return k.return();jY(m);return g.A(k,tVm(m,Z),3)}M=k.S;return g.A(k,RDs(M,e,Z),0)})}; +OY=function(m,e){e=e===void 0?{}:e;var Z;return g.Qs(function(M){if(M.X==1)return g.A(M,g.sY(),2);if(M.X!=3){Z=M.S;if(!Z)return M.return();jY(m);return g.A(M,fY(m,e),3)}return g.A(M,UY(m,Z),0)})}; +JR=function(m,e){oe.call(this,m,e);this.options=e;jY(m)}; +GAI=function(m,e){var Z;return function(){Z||(Z=new JR(m,e));return Z}}; +VO=function(m,e){return GAI(m,e)}; +WV=function(m){return BV(ycG(),m)}; +zG=function(m,e,Z,M){var k,K,q;return g.Qs(function(S){switch(S.X){case 1:return k={config:m,hashData:e,timestamp:M!==void 0?M:(0,g.G)()},g.A(S,WV(Z),2);case 2:return K=S.S,g.A(S,K.clear("hotConfigStore"),3);case 3:return g.A(S,Re(K,"hotConfigStore",k),4);case 4:return q=S.S,S.return(q)}})}; +PV=function(m,e,Z,M,k){var K,q,S;return g.Qs(function(a){switch(a.X){case 1:return K={config:m,hashData:e,configData:Z,timestamp:k!==void 0?k:(0,g.G)()},g.A(a,WV(M),2);case 2:return q=a.S,g.A(a,q.clear("coldConfigStore"),3);case 3:return g.A(a,Re(q,"coldConfigStore",K),4);case 4:return S=a.S,a.return(S)}})}; +eH=function(m){var e,Z;return g.Qs(function(M){return M.X==1?g.A(M,WV(m),2):M.X!=3?(e=M.S,Z=void 0,g.A(M,lE(e,["coldConfigStore"],{mode:"readwrite",vV:!0},function(k){return Ie(k.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){Z=K.getValue()})}),3)):M.return(Z)})}; +Zo=function(m){var e,Z;return g.Qs(function(M){return M.X==1?g.A(M,WV(m),2):M.X!=3?(e=M.S,Z=void 0,g.A(M,lE(e,["hotConfigStore"],{mode:"readwrite",vV:!0},function(k){return Ie(k.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){Z=K.getValue()})}),3)):M.return(Z)})}; +jrG=function(){return g.Qs(function(m){return g.A(m,jB("ytGcfConfig"),0)})}; +MN=function(){g.Y.call(this);this.S=[];this.X=[];var m=g.zK("yt.gcf.config.hotUpdateCallbacks");m?(this.S=[].concat(g.Rt(m)),this.X=m):(this.X=[],g.Wy("yt.gcf.config.hotUpdateCallbacks",this.X))}; +kU=function(){this.C=!1;this.L=this.Z=0;this.j=new MN}; +KK=function(){if(!kU.instance){var m=new kU;kU.instance=m}return kU.instance}; +JcK=function(m){var e;g.Qs(function(Z){if(Z.X==1)return g.SC("start_client_gcf")||g.SC("delete_gcf_config_db")?g.SC("start_client_gcf")?g.A(Z,g.sY(),3):Z.pB(2):Z.return();Z.X!=2&&((e=Z.S)&&Id()&&!g.SC("delete_gcf_config_db")?(m.C=!0,Oot(m)):(qN(m),pK(m)));return g.SC("delete_gcf_config_db")?g.A(Z,jrG(),0):Z.pB(0)})}; +a5=function(){var m;return(m=SH())!=null?m:g.fE("RAW_HOT_CONFIG_GROUP")}; +Vfb=function(m){var e,Z,M,k,K,q;return g.Qs(function(S){switch(S.X){case 1:if(m.S)return S.return(SH());if(!m.C)return e=g.eB("getHotConfig IDB not initialized"),g.YA(e),S.return(Promise.reject(e));Z=LY();M=g.fE("TIME_CREATED_MS");if(!Z){k=g.eB("getHotConfig token error");g.YA(k);S.pB(2);break}return g.A(S,Zo(Z),3);case 3:if((K=S.S)&&K.timestamp>M)return va(m,K.config),m.U(K.hashData),S.return(SH());case 2:pK(m);if(!(Z&&m.S&&m.hotHashData)){S.pB(4);break}return g.A(S,zG(m.S,m.hotHashData,Z,M),4); +case 4:return m.S?S.return(SH()):(q=new g.Nr("Config not available in ytConfig"),g.YA(q),S.return(Promise.reject(q)))}})}; +WxK=function(m){var e,Z,M,k,K,q;return g.Qs(function(S){switch(S.X){case 1:if(m.X)return S.return(gF());if(!m.C)return e=g.eB("getColdConfig IDB not initialized"),g.YA(e),S.return(Promise.reject(e));Z=LY();M=g.fE("TIME_CREATED_MS");if(!Z){k=g.eB("getColdConfig");g.YA(k);S.pB(2);break}return g.A(S,eH(Z),3);case 3:if((K=S.S)&&K.timestamp>M)return Xp(m,K.config),iI(m,K.configData),xU(m,K.hashData),S.return(gF());case 2:qN(m);if(!(Z&&m.X&&m.coldHashData&&m.configData)){S.pB(4);break}return g.A(S,PV(m.X, +m.coldHashData,m.configData,Z,M),4);case 4:return m.X?S.return(gF()):(q=new g.Nr("Config not available in ytConfig"),g.YA(q),S.return(Promise.reject(q)))}})}; +Oot=function(m){if(!m.S||!m.X){if(!LY()){var e=g.eB("scheduleGetConfigs");g.YA(e)}m.Z||(m.Z=WN.T_(function(){return g.Qs(function(Z){switch(Z.X){case 1:return Ab(Z,2),g.A(Z,Vfb(m),4);case 4:C1(Z,3);break;case 2:f1(Z);case 3:return Ab(Z,5),g.A(Z,WxK(m),7);case 7:C1(Z,6);break;case 5:f1(Z);case 6:m.Z&&(m.Z=0),g.It(Z)}})},100))}}; +lI=function(m,e,Z){var M,k,K;return g.Qs(function(q){switch(q.X){case 1:if(!g.SC("start_client_gcf")){q.pB(0);break}Z&&va(m,Z);m.U(e);M=LY();if(!M){q.pB(3);break}if(Z){q.pB(4);break}return g.A(q,Zo(M),5);case 5:k=q.S,Z=(K=k)==null?void 0:K.config;case 4:return g.A(q,zG(Z,e,M),3);case 3:if(Z)for(var S=Z,a=g.r(m.j.X),v=a.next();!v.done;v=a.next())v=v.value,v(S);g.It(q)}})}; +uI=function(m,e,Z){var M,k,K,q;return g.Qs(function(S){if(S.X==1){if(!g.SC("start_client_gcf"))return S.pB(0);xU(m,e);return(M=LY())?Z?S.pB(4):g.A(S,eH(M),5):S.pB(0)}S.X!=4&&(k=S.S,Z=(K=k)==null?void 0:K.config);if(!Z)return S.pB(0);q=Z.configData;return g.A(S,PV(Z,e,q,M),0)})}; +R5=function(){var m=KK(),e=(0,g.G)()-m.L;if(!(m.L!==0&&e0&&(e.request={internalExperimentFlags:Z});$U(m,void 0,e);Fp(void 0,e);wF(void 0,e);nK(m,void 0,e);ca(void 0,e);g.SC("start_client_gcf")&&NN(void 0,e);g.fE("DELEGATED_SESSION_ID")&& +!g.SC("pageid_as_header_web")&&(e.user={onBehalfOfUser:g.fE("DELEGATED_SESSION_ID")});!g.SC("fill_delegate_context_in_gel_killswitch")&&(m=g.fE("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(e.user=Object.assign({},e.user,{serializedDelegationContext:m}));m=g.fE("INNERTUBE_CONTEXT");var M;if(g.SC("enable_persistent_device_token")&&(m==null?0:(M=m.client)==null?0:M.rolloutToken)){var k;e.client.rolloutToken=m==null?void 0:(k=m.client)==null?void 0:k.rolloutToken}M=Object;k=M.assign;m=e.client; +Z={};for(var K=g.r(Object.entries(g.Q4(g.fE("DEVICE","")))),q=K.next();!q.done;q=K.next()){var S=g.r(q.value);q=S.next().value;S=S.next().value;q==="cbrand"?Z.deviceMake=S:q==="cmodel"?Z.deviceModel=S:q==="cbr"?Z.browserName=S:q==="cbrver"?Z.browserVersion=S:q==="cos"?Z.osName=S:q==="cosver"?Z.osVersion=S:q==="cplatform"&&(Z.platform=S)}e.client=k.call(M,m,Z);return e}; +$U=function(m,e,Z){m=m.S7;if(m==="WEB"||m==="MWEB"||m===1||m===2)if(e){Z=X4(e,vA,96)||new vA;var M=SY();M=Object.keys(zDy).indexOf(M);M=M===-1?null:M;M!==null&&fG(Z,3,M);lC(e,vA,96,Z)}else Z&&(Z.client.mainAppWebInfo=(M=Z.client.mainAppWebInfo)!=null?M:{},Z.client.mainAppWebInfo.webDisplayMode=SY())}; +Fp=function(m,e){var Z=g.zK("yt.embedded_player.embed_url");Z&&(m?(e=X4(m,uw,7)||new uw,As(e,4,Z),lC(m,uw,7,e)):e&&(e.thirdParty={embedUrl:Z}))}; +wF=function(m,e){var Z;if(g.SC("web_log_memory_total_kbytes")&&((Z=g.Jb.navigator)==null?0:Z.deviceMemory)){var M;Z=(M=g.Jb.navigator)==null?void 0:M.deviceMemory;m?Df(m,95,g.Zf(Z*1E6)):e&&(e.client.memoryTotalKbytes=""+Z*1E6)}}; +nK=function(m,e,Z){if(m.appInstallData)if(e){var M;Z=(M=X4(e,a8,62))!=null?M:new a8;As(Z,6,m.appInstallData);lC(e,a8,62,Z)}else Z&&(Z.client.configInfo=Z.client.configInfo||{},Z.client.configInfo.appInstallData=m.appInstallData)}; +ca=function(m,e){var Z=w1();Z&&(m?fG(m,61,PKG[Z]):e&&(e.client.connectionType=Z));g.SC("web_log_effective_connection_type")&&(Z=cC())&&(m?fG(m,94,mgK[Z]):e&&(e.client.effectiveConnectionType=Z))}; +eWR=function(m,e,Z){Z=Z===void 0?{}:Z;var M={};g.fE("EOM_VISITOR_DATA")?M={"X-Goog-EOM-Visitor-Id":g.fE("EOM_VISITOR_DATA")}:M={"X-Goog-Visitor-Id":Z.visitorData||g.fE("VISITOR_DATA","")};if(e&&e.includes("www.youtube-nocookie.com"))return M;e=Z.PT||g.fE("AUTHORIZATION");e||(m?e="Bearer "+g.zK("gapi.auth.getToken")().access_token:(m=vC().r$(I5),g.SC("pageid_as_header_web")||delete m["X-Goog-PageId"],M=Object.assign({},M,m)));e&&(M.Authorization=e);return M}; +NN=function(m,e){var Z=R5();if(Z){var M=Z.coldConfigData,k=Z.coldHashData;Z=Z.hotHashData;if(m){var K;e=(K=X4(m,a8,62))!=null?K:new a8;M=As(e,1,M);As(M,3,k).U(Z);lC(m,a8,62,e)}else e&&(e.client.configInfo=e.client.configInfo||{},M&&(e.client.configInfo.coldConfigData=M),k&&(e.client.configInfo.coldHashData=k),Z&&(e.client.configInfo.hotHashData=Z))}}; +A6=function(m,e){this.version=m;this.args=e}; +CK=function(m,e){this.topic=m;this.X=e}; +o5=function(m,e){var Z=fK();Z&&Z.publish.call(Z,m.toString(),m,e)}; +Z3b=function(m){var e=dF,Z=fK();if(!Z)return 0;var M=Z.subscribe(e.toString(),function(k,K){var q=g.zK("ytPubsub2Pubsub2SkipSubKey");q&&q==M||(q=function(){if(Ba[M])try{if(K&&e instanceof CK&&e!=k)try{var S=e.X,a=K;if(!a.args||!a.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!S.DI){var v=new S;S.DI=v.version}var X=S.DI}catch(x){}if(!X||a.version!=X)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{K=Reflect.construct(S, +g.cG(a.args))}catch(x){throw x.message="yt.pubsub2.Data.deserialize(): "+x.message,x;}}catch(x){throw x.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+e.toString()+": "+x.message,x;}m.call(window,K)}catch(x){g.BA(x)}},EH[e.toString()]?g.zK("yt.scheduler.instance")?WN.T_(q):g.kl(q,0):q())}); +Ba[M]=!0;YU[e.toString()]||(YU[e.toString()]=[]);YU[e.toString()].push(M);return M}; +KN1=function(){var m=Mb3,e=Z3b(function(Z){m.apply(void 0,arguments);kXy(e)}); +return e}; +kXy=function(m){var e=fK();e&&(typeof m==="number"&&(m=[m]),g.co(m,function(Z){e.unsubscribeByKey(Z);delete Ba[Z]}))}; +fK=function(){return g.zK("ytPubsub2Pubsub2Instance")}; +UH=function(m,e,Z){Z=Z===void 0?{sampleRate:.1}:Z;Math.random()jH||q=m9&&(ew++,g.SC("abandon_compression_after_N_slow_zips")?Pa===ay("compression_disable_point")&&ew>ZP&&(Gr=!1):Gr=!1);MQ(e);M.headers||(M.headers={});M.headers["Content-Encoding"]="gzip";M.postBody=m;M.postParams=void 0;k(Z,M)}; +pFb=function(m){var e=e===void 0?!1:e;var Z=Z===void 0?!1:Z;var M=(0,g.G)(),k={startTime:M,ticks:{},infos:{}},K=e?g.zK("yt.logging.gzipForFetch",!1):!0;if(Gr&&K){if(!m.body)return m;try{var q=Z?m.body:typeof m.body==="string"?m.body:JSON.stringify(m.body);K=q;if(!Z&&typeof q==="string"){var S=yz(q);if(S!=null&&(S>jH||S=m9)if(ew++,g.SC("abandon_compression_after_N_slow_zips")||g.SC("abandon_compression_after_N_slow_zips_lr")){e=ew/Pa;var v=ZP/ay("compression_disable_point");Pa>0&&Pa%ay("compression_disable_point")===0&&e>=v&&(Gr=!1)}else Gr=!1;MQ(k)}}m.headers=Object.assign({},{"Content-Encoding":"gzip"},m.headers||{});m.body=K;return m}catch(X){return g.YA(X),m}}else return m}; +yz=function(m){try{return(new Blob(m.split(""))).size}catch(e){return g.YA(e),null}}; +MQ=function(m){g.SC("gel_compression_csi_killswitch")||!g.SC("log_gel_compression_latency")&&!g.SC("log_gel_compression_latency_lr")||UH("gel_compression",m,{sampleRate:.1})}; +qQ=function(m){this.XL=this.X=!1;this.potentialEsfErrorCounter=this.S=0;this.handleError=function(){}; +this.MX=function(){}; +this.now=Date.now;this.x9=!1;var e;this.Mt=(e=m.Mt)!=null?e:100;var Z;this.JN=(Z=m.JN)!=null?Z:1;var M;this.pg=(M=m.pg)!=null?M:2592E6;var k;this.yy=(k=m.yy)!=null?k:12E4;var K;this.Nj=(K=m.Nj)!=null?K:5E3;var q;this.pE=(q=m.pE)!=null?q:void 0;this.wY=!!m.wY;var S;this.Zt=(S=m.Zt)!=null?S:.1;var a;this.wJ=(a=m.wJ)!=null?a:10;m.handleError&&(this.handleError=m.handleError);m.MX&&(this.MX=m.MX);m.x9&&(this.x9=m.x9);m.XL&&(this.XL=m.XL);this.dc=m.dc;this.PE=m.PE;this.yn=m.yn;this.jp=m.jp;this.sendFn= +m.sendFn;this.xp=m.xp;this.KY=m.KY;ky(this)&&(!this.dc||this.dc("networkless_logging"))&&KM(this)}; +KM=function(m){ky(m)&&!m.x9&&(m.X=!0,m.wY&&Math.random()<=m.Zt&&m.yn.Yq(m.pE),pM(m),m.jp.UH()&&m.x$(),m.jp.GO(m.xp,m.x$.bind(m)),m.jp.GO(m.KY,m.jh.bind(m)))}; +aG=function(m,e){var Z;return g.Qs(function(M){switch(M.X){case 1:if(!ky(m))throw Error("IndexedDB is not supported: immediateSend");if(e.id===void 0){M.pB(2);break}return g.A(M,m.yn.OQ(e.id,m.pE),3);case 3:(Z=M.S)||m.MX(Error("The request cannot be found in the database."));case 2:if(Sw(m,e,m.pg)){M.pB(4);break}m.MX(Error("Networkless Logging: Stored logs request expired age limit"));if(e.id===void 0){M.pB(5);break}return g.A(M,m.yn.a4(e.id,m.pE),5);case 5:return M.return();case 4:e.skipRetry||(e= +SAk(m,e));if(!e){M.pB(0);break}if(!e.skipRetry||e.id===void 0){M.pB(8);break}return g.A(M,m.yn.a4(e.id,m.pE),8);case 8:m.sendFn(e.url,e.options,!!e.skipRetry),g.It(M)}})}; +SAk=function(m,e){if(!ky(m))throw Error("IndexedDB is not supported: updateRequestHandlers");var Z=e.options.onError?e.options.onError:function(){}; +e.options.onError=function(k,K){var q,S,a,v;return g.Qs(function(X){switch(X.X){case 1:q=aQI(K);(S=vum(K))&&m.dc&&m.dc("web_enable_error_204")&&m.handleError(Error("Request failed due to compression"),e.url,K);if(!(m.dc&&m.dc("nwl_consider_error_code")&&q||m.dc&&!m.dc("nwl_consider_error_code")&&m.potentialEsfErrorCounter<=m.wJ)){X.pB(2);break}if(!m.jp.Jz){X.pB(3);break}return g.A(X,m.jp.Jz(),3);case 3:if(m.jp.UH()){X.pB(2);break}Z(k,K);if(!m.dc||!m.dc("nwl_consider_error_code")||((a=e)==null?void 0: +a.id)===void 0){X.pB(6);break}return g.A(X,m.yn.QX(e.id,m.pE,!1),6);case 6:return X.return();case 2:if(m.dc&&m.dc("nwl_consider_error_code")&&!q&&m.potentialEsfErrorCounter>m.wJ)return X.return();m.potentialEsfErrorCounter++;if(((v=e)==null?void 0:v.id)===void 0){X.pB(8);break}return e.sendCount=Z?!1:!0}; +pM=function(m){if(!ky(m))throw Error("IndexedDB is not supported: retryQueuedRequests");m.yn.QN("QUEUED",m.pE).then(function(e){e&&!Sw(m,e,m.yy)?m.PE.T_(function(){return g.Qs(function(Z){if(Z.X==1)return e.id===void 0?Z.pB(2):g.A(Z,m.yn.QX(e.id,m.pE),2);pM(m);g.It(Z)})}):m.jp.UH()&&m.x$()})}; +vx=function(m,e){m.Kh&&!m.jp.UH()?m.Kh(e):m.handleError(e)}; +ky=function(m){return!!m.pE||m.XL}; +aQI=function(m){var e;return(m=m==null?void 0:(e=m.error)==null?void 0:e.code)&&m>=400&&m<=599?!1:!0}; +vum=function(m){var e;m=m==null?void 0:(e=m.error)==null?void 0:e.code;return!(m!==400&&m!==415)}; +gut=function(){if(gd)return gd();var m={};gd=VO("LogsDatabaseV2",{Qq:(m.LogsRequestsStore={eC:2},m),shared:!1,upgrade:function(e,Z,M){Z(2)&&iE(e,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Z(3);Z(5)&&(M=M.objectStore("LogsRequestsStore"),M.X.indexNames.contains("newRequest")&&M.X.deleteIndex("newRequest"),FA(M,"newRequestV2",["status","interface","timestamp"]));Z(7)&&x5(e,"sapisid");Z(9)&&x5(e,"SWHealthLog")}, +version:9});return gd()}; +X3=function(m){return BV(gut(),m)}; +XF1=function(m,e){var Z,M,k,K;return g.Qs(function(q){if(q.X==1)return Z={startTime:(0,g.G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.A(q,X3(e),2);if(q.X!=3)return M=q.S,k=Object.assign({},m,{options:JSON.parse(JSON.stringify(m.options)),interface:g.fE("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(q,Re(M,"LogsRequestsStore",k),3);K=q.S;Z.ticks.tc=(0,g.G)();i$(Z);return q.return(K)})}; +i3y=function(m,e){var Z,M,k,K,q,S,a,v;return g.Qs(function(X){if(X.X==1)return Z={startTime:(0,g.G)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.A(X,X3(e),2);if(X.X!=3)return M=X.S,k=g.fE("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[m,k,0],q=[m,k,(0,g.G)()],S=IDBKeyRange.bound(K,q),a="prev",g.SC("use_fifo_for_networkless")&&(a="next"),v=void 0,g.A(X,lE(M,["LogsRequestsStore"],{mode:"readwrite",vV:!0},function(x){return Ie(x.objectStore("LogsRequestsStore").index("newRequestV2"),{query:S, +direction:a},function(l){l.getValue()&&(v=l.getValue(),m==="NEW"&&(v.status="QUEUED",l.update(v)))})}),3); +Z.ticks.tc=(0,g.G)();i$(Z);return X.return(v)})}; +xgy=function(m,e){var Z;return g.Qs(function(M){if(M.X==1)return g.A(M,X3(e),2);Z=M.S;return M.return(lE(Z,["LogsRequestsStore"],{mode:"readwrite",vV:!0},function(k){var K=k.objectStore("LogsRequestsStore");return K.get(m).then(function(q){if(q)return q.status="QUEUED",uE(K,q).then(function(){return q})})}))})}; +lQK=function(m,e,Z,M){Z=Z===void 0?!0:Z;var k;return g.Qs(function(K){if(K.X==1)return g.A(K,X3(e),2);k=K.S;return K.return(lE(k,["LogsRequestsStore"],{mode:"readwrite",vV:!0},function(q){var S=q.objectStore("LogsRequestsStore");return S.get(m).then(function(a){return a?(a.status="NEW",Z&&(a.sendCount+=1),M!==void 0&&(a.options.compress=M),uE(S,a).then(function(){return a})):MA.resolve(void 0)})}))})}; +urs=function(m,e){var Z;return g.Qs(function(M){if(M.X==1)return g.A(M,X3(e),2);Z=M.S;return M.return(Z.delete("LogsRequestsStore",m))})}; +RWc=function(m){var e,Z;return g.Qs(function(M){if(M.X==1)return g.A(M,X3(m),2);e=M.S;Z=(0,g.G)()-2592E6;return g.A(M,lE(e,["LogsRequestsStore"],{mode:"readwrite",vV:!0},function(k){return wj(k.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=Z)return K.delete().then(function(){return nY(K)})})}),0)})}; +hWK=function(){g.Qs(function(m){return g.A(m,jB("LogsDatabaseV2"),0)})}; +i$=function(m){g.SC("nwl_csi_killswitch")||UH("networkless_performance",m,{sampleRate:1})}; +l$=function(m){return BV(TkR(),m)}; +$gt=function(m){var e,Z;g.Qs(function(M){if(M.X==1)return g.A(M,l$(m),2);e=M.S;Z=(0,g.G)()-2592E6;return g.A(M,lE(e,["SWHealthLog"],{mode:"readwrite",vV:!0},function(k){return wj(k.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=Z)return K.delete().then(function(){return nY(K)})})}),0)})}; +FNP=function(m){var e;return g.Qs(function(Z){if(Z.X==1)return g.A(Z,l$(m),2);e=Z.S;return g.A(Z,e.clear("SWHealthLog"),0)})}; +g.hL=function(m,e,Z,M,k,K,q){k=k===void 0?"":k;K=K===void 0?!1:K;q=q===void 0?!1:q;if(m)if(Z&&!g.ti())m&&(m=g.Bo(g.tc(m)),m===bK.toString()||m.startsWith("data")?m="":(m=g.yH(g.zX(m)).toString(),m=ku(u$(m))),g.Lz(m)||(m=g.pC("IFRAME",{src:'javascript:""',style:"display:none"}),g.xo(m).body.appendChild(m)));else if(k)Xu(m,e,"POST",k,M);else if(g.fE("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||M||q)Xu(m,e,"GET","",M,void 0,K,q);else{b:{try{var S=new wGk({url:m});if(S.U&& +S.S||S.Z){var a=AV(fa(5,m));var v=!(!a||!a.endsWith("/aclk")||La(m,"ri")!=="1");break b}}catch(X){}v=!1}v?RG(m)?(e&&e(),Z=!0):Z=!1:Z=!1;Z||wFy(m,e)}}; +RG=function(m,e){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(m,e===void 0?"":e))return!0}catch(Z){}return!1}; +wFy=function(m,e){var Z=new Image,M=""+nuk++;Tj[M]=Z;Z.onload=Z.onerror=function(){e&&Tj[M]&&e();delete Tj[M]}; +Z.src=m}; +F3=function(){$y||($y=new YE("yt.offline"));return $y}; +cvK=function(m){if(g.SC("offline_error_handling")){var e=F3().get("errors",!0)||{};e[m.message]={name:m.name,stack:m.stack};m.level&&(e[m.message].level=m.level);F3().set("errors",e,2592E3,!0)}}; +wd=function(){this.X=new Map;this.S=!1}; +nM=function(){if(!wd.instance){var m=g.zK("yt.networkRequestMonitor.instance")||new wd;g.Wy("yt.networkRequestMonitor.instance",m);wd.instance=m}return wd.instance}; +cx=function(){g.fW.call(this);var m=this;this.S=!1;this.X=BX1();this.X.GO("networkstatus-online",function(){if(m.S&&g.SC("offline_error_handling")){var e=F3().get("errors",!0);if(e){for(var Z in e)if(e[Z]){var M=new g.Nr(Z,"sent via offline_errors");M.name=e[Z].name;M.stack=e[Z].stack;M.level=e[Z].level;g.BA(M)}F3().set("errors",{},2592E3,!0)}}})}; +NQ=function(){if(!cx.instance){var m=g.zK("yt.networkStatusManager.instance")||new cx;g.Wy("yt.networkStatusManager.instance",m);cx.instance=m}return cx.instance}; +IG=function(m){m=m===void 0?{}:m;g.fW.call(this);var e=this;this.X=this.Z=0;this.S=NQ();var Z=g.zK("yt.networkStatusManager.instance.listen").bind(this.S);Z&&(m.rateLimit?(this.rateLimit=m.rateLimit,Z("networkstatus-online",function(){rd(e,"publicytnetworkstatus-online")}),Z("networkstatus-offline",function(){rd(e,"publicytnetworkstatus-offline")})):(Z("networkstatus-online",function(){e.dispatchEvent("publicytnetworkstatus-online")}),Z("networkstatus-offline",function(){e.dispatchEvent("publicytnetworkstatus-offline")})))}; +rd=function(m,e){m.rateLimit?m.X?(WN.f0(m.Z),m.Z=WN.T_(function(){m.U!==e&&(m.dispatchEvent(e),m.U=e,m.X=(0,g.G)())},m.rateLimit-((0,g.G)()-m.X))):(m.dispatchEvent(e),m.U=e,m.X=(0,g.G)()):m.dispatchEvent(e)}; +CM=function(){var m=qQ.call;AL||(AL=new IG({aR:!0,CX:!0}));m.call(qQ,this,{yn:{Yq:RWc,a4:urs,QN:i3y,OQ:xgy,QX:lQK,set:XF1},jp:AL,handleError:function(e,Z,M){var k,K=M==null?void 0:(k=M.error)==null?void 0:k.code;if(K===400||K===415){var q;g.YA(new g.Nr(e.message,Z,M==null?void 0:(q=M.error)==null?void 0:q.code),void 0,void 0,void 0,!0)}else g.BA(e)}, +MX:g.YA,sendFn:NkI,now:g.G,Kh:cvK,PE:g.BC(),xp:"publicytnetworkstatus-online",KY:"publicytnetworkstatus-offline",wY:!0,Zt:.1,wJ:ay("potential_esf_error_limit",10),dc:g.SC,x9:!(Id()&&g.ow(document.location.toString())!=="www.youtube-nocookie.com")});this.U=new g.TF;g.SC("networkless_immediately_drop_all_requests")&&hWK();OY("LogsDatabaseV2")}; +g.fM=function(){var m=g.zK("yt.networklessRequestController.instance");m||(m=new CM,g.Wy("yt.networklessRequestController.instance",m),g.SC("networkless_logging")&&g.sY().then(function(e){m.pE=e;KM(m);m.U.resolve();m.wY&&Math.random()<=m.Zt&&m.pE&&$gt(m.pE);g.SC("networkless_immediately_drop_sw_health_store")&&rvK(m)})); +return m}; +rvK=function(m){var e;g.Qs(function(Z){if(!m.pE)throw e=g.eB("clearSWHealthLogsDb"),e;return Z.return(FNP(m.pE).catch(function(M){m.handleError(M)}))})}; +NkI=function(m,e,Z,M){M=M===void 0?!1:M;e=g.SC("web_fp_via_jspb")?Object.assign({},e):e;g.SC("use_cfr_monitor")&&IQk(m,e);if(g.SC("use_request_time_ms_header"))e.headers&&g.y4(m)&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.G)())));else{var k;if((k=e.postParams)==null?0:k.requestTimeMs)e.postParams.requestTimeMs=Math.round((0,g.G)())}Z&&Object.keys(e).length===0?g.hL(m):e.compress?e.postBody?(typeof e.postBody!=="string"&&(e.postBody=JSON.stringify(e.postBody)),zr(m,e.postBody, +e,g.lN,M)):zr(m,JSON.stringify(e.postParams),e,uN,M):g.lN(m,e)}; +oG=function(m,e){g.SC("use_event_time_ms_header")&&g.y4(m)&&(e.headers||(e.headers={}),e.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.G)())));return e}; +IQk=function(m,e){var Z=e.onError?e.onError:function(){}; +e.onError=function(k,K){nM().requestComplete(m,!1);Z(k,K)}; +var M=e.onSuccess?e.onSuccess:function(){}; +e.onSuccess=function(k,K){nM().requestComplete(m,!0);M(k,K)}}; +g.dd=function(m){this.config_=null;m?this.config_=m:h6()&&(this.config_=g.Tr())}; +g.EE=function(m,e,Z,M){function k(v){try{if((v===void 0?0:v)&&M.retry&&!M.networklessOptions.bypassNetworkless)K.method="POST",M.networklessOptions.writeThenSend?g.fM().writeThenSend(a,K):g.fM().sendAndWrite(a,K);else if(M.compress){var X=!M.networklessOptions.writeThenSend;if(K.postBody){var x=K.postBody;typeof x!=="string"&&(x=JSON.stringify(K.postBody));zr(a,x,K,g.lN,X)}else zr(a,JSON.stringify(K.postParams),K,uN,X)}else g.SC("web_all_payloads_via_jspb")?g.lN(a,K):uN(a,K)}catch(l){if(l.name=== +"InvalidAccessError")g.YA(Error("An extension is blocking network request."));else throw l;}} +!g.fE("VISITOR_DATA")&&e!=="visitor_id"&&Math.random()<.01&&g.YA(new g.Nr("Missing VISITOR_DATA when sending innertube request.",e,Z,M));if(!m.isReady())throw m=new g.Nr("innertube xhrclient not ready",e,Z,M),g.BA(m),m;var K={headers:M.headers||{},method:"POST",postParams:Z,postBody:M.postBody,postBodyFormat:M.postBodyFormat||"JSON",onTimeout:function(){M.onTimeout()}, +onFetchTimeout:M.onTimeout,onSuccess:function(v,X){if(M.onSuccess)M.onSuccess(X)}, +onFetchSuccess:function(v){if(M.onSuccess)M.onSuccess(v)}, +onError:function(v,X){if(M.onError)M.onError(X)}, +onFetchError:function(v){if(M.onError)M.onError(v)}, +timeout:M.timeout,withCredentials:!0,compress:M.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");Z="";var q=m.config_.LW;q&&(Z=q);q=m.config_.Ws||!1;var S=eWR(q,Z,M);Object.assign(K.headers,S);K.headers.Authorization&&!Z&&q&&(K.headers["x-origin"]=window.location.origin);var a=g.sL(""+Z+("/youtubei/"+m.config_.innertubeApiVersion+"/"+e),{alt:"json"});g.zK("ytNetworklessLoggingInitializationOptions")&&Bx.isNwlInitialized?D9().then(function(v){k(v)}):k(!1)}; +QM=function(m,e,Z){var M=Yy();if(M&&e){var k=M.subscribe(m,function(){function K(){UE[k]&&e.apply&&typeof e.apply=="function"&&e.apply(Z||window,q)} +var q=arguments;try{b$[m]?K():g.kl(K,0)}catch(S){g.BA(S)}},Z); +UE[k]=!0;tL[m]||(tL[m]=[]);tL[m].push(k);return k}return 0}; +Hx=function(m){var e=Yy();e&&(typeof m==="number"?m=[m]:typeof m==="string"&&(m=[parseInt(m,10)]),g.co(m,function(Z){e.unsubscribeByKey(Z);delete UE[Z]}))}; +DP=function(m,e){var Z=Yy();return Z?Z.publish.apply(Z,arguments):!1}; +sE=function(m){var e=Yy();if(e)if(e.clear(m),m)LM(m);else for(var Z in tL)LM(Z)}; +Yy=function(){return g.Jb.ytPubsubPubsubInstance}; +LM=function(m){tL[m]&&(m=tL[m],g.co(m,function(e){UE[e]&&delete UE[e]}),m.length=0)}; +Gj=function(m,e,Z){Avs(m,e,Z===void 0?null:Z)}; +Avs=function(m,e,Z){Z=Z===void 0?null:Z;var M=yM(m),k=document.getElementById(M),K=k&&oh(k),q=k&&!K;K?e&&e():(e&&(K=QM(M,e),e=""+g.kw(e),jw[e]=K),q||(k=Ce3(m,M,function(){oh(k)||(uTb(k),DP(M),g.kl(function(){sE(M)},0))},Z)))}; +Ce3=function(m,e,Z,M){M=M===void 0?null:M;var k=g.SU("SCRIPT");k.id=e;k.onload=function(){Z&&setTimeout(Z,0)}; +k.onreadystatechange=function(){switch(k.readyState){case "loaded":case "complete":k.onload()}}; +M&&k.setAttribute("nonce",M);g.Po(k,kA(m));m=document.getElementsByTagName("head")[0]||document.body;m.insertBefore(k,m.firstChild);return k}; +yM=function(m){var e=document.createElement("a");g.Dx(e,m);m=e.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+g.Sb(m)}; +OE=function(m,e){if(m===e)m=!0;else if(Array.isArray(m)&&Array.isArray(e))m=BG(m,e,OE);else if(g.Zb(m)&&g.Zb(e))a:if(g.UA(m).length!=g.UA(e).length)m=!1;else{for(var Z in m)if(!OE(m[Z],e[Z])){m=!1;break a}m=!0}else m=!1;return m}; +Wx=function(m){var e=g.Hy.apply(1,arguments);if(!JL(m)||e.some(function(M){return!JL(M)}))throw Error("Only objects may be merged."); +e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next())VM(m,Z.value)}; +VM=function(m,e){for(var Z in e)if(JL(e[Z])){if(Z in m&&!JL(m[Z]))throw Error("Cannot merge an object into a non-object.");Z in m||(m[Z]={});VM(m[Z],e[Z])}else if(zj(e[Z])){if(Z in m&&!zj(m[Z]))throw Error("Cannot merge an array into a non-array.");Z in m||(m[Z]=[]);Px(m[Z],e[Z])}else m[Z]=e[Z];return m}; +Px=function(m,e){e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next())Z=Z.value,JL(Z)?m.push(VM({},Z)):zj(Z)?m.push(Px([],Z)):m.push(Z);return m}; +JL=function(m){return typeof m==="object"&&!Array.isArray(m)}; +zj=function(m){return typeof m==="object"&&Array.isArray(m)}; +g.m6=function(m){m=m===void 0?!1:m;g.Y.call(this);this.WS=new h7(m);g.U(this,this.WS)}; +ev=function(m,e,Z){for(var M in e)m.subscribe(M,e[M],Z)}; +Z6=function(m,e,Z){for(var M in e)m.unsubscribe(M,e[M],Z)}; +ke=function(m){if(window.crypto&&window.crypto.getRandomValues)try{var e=Array(m),Z=new Uint8Array(m);window.crypto.getRandomValues(Z);for(var M=0;M-1)throw Error("Deps cycle for: "+e);if(m.X.has(e))return m.X.get(e);if(!m.S.has(e)){if(M)return;throw Error("No provider for: "+e);}M=m.S.get(e);Z.push(e);if(M.cQ!==void 0)var k=M.cQ;else if(M.rF)k=M[RA]?ha(m,M[RA],Z):[],k=M.rF.apply(M,g.Rt(k));else if(M.nh){k=M.nh;var K=k[RA]?ha(m,k[RA],Z):[];k=new (Function.prototype.bind.apply(k,[null].concat(g.Rt(K))))}else throw Error("Could not resolve providers for: "+e);Z.pop();M.pO||m.X.set(e,k);return k}; +ha=function(m,e,Z){return e?e.map(function(M){return M instanceof xe?TJ(m,M.key,Z,!0):TJ(m,M,Z)}):[]}; +Fb=function(){$e||($e=new ll);return $e}; +nf=function(){var m,e;return"h5vcc"in wQ&&((m=wQ.h5vcc.traceEvent)==null?0:m.traceBegin)&&((e=wQ.h5vcc.traceEvent)==null?0:e.traceEnd)?1:"performance"in wQ&&wQ.performance.mark&&wQ.performance.measure?2:0}; +cn=function(m){var e=nf();switch(e){case 1:wQ.h5vcc.traceEvent.traceBegin("YTLR",m);break;case 2:wQ.performance.mark(m+"-start");break;case 0:break;default:g.Ld(e,"unknown trace type")}}; +gL=function(m){var e=nf();switch(e){case 1:wQ.h5vcc.traceEvent.traceEnd("YTLR",m);break;case 2:e=m+"-start";var Z=m+"-end";wQ.performance.mark(Z);wQ.performance.measure(m,e,Z);break;case 0:break;default:g.Ld(e,"unknown trace type")}}; +xb=function(m){var e,Z;(Z=(e=window).onerror)==null||Z.call(e,m.message,"",0,0,m)}; +u4=function(m){var e=this;var Z=Z===void 0?0:Z;var M=M===void 0?g.BC():M;this.U=Z;this.scheduler=M;this.S=new g.TF;this.X=m;for(m={Jk:0};m.Jk=1E3?K():k>=m?yg||(yg=jt(function(){K();yg=void 0},0)):q-a>=10&&(OX(Z,M.tier),S.Z=q)}; +b4=function(m,e){if(m.endpoint==="log_event"){g.SC("more_accurate_gel_parser")&&oV().storePayload({isJspb:!1},m.payload);dL(m);var Z=Bw(m),M=new Map;M.set(Z,[m.payload]);var k=EX(m.payload)||"";e&&(sX=new e);return new g.O8(function(K,q){sX&&sX.isReady()?JY(M,sX,K,q,{bypassNetworkless:!0},!0,Hw(k)):K()})}}; +D7=function(m,e,Z){if(e.endpoint==="log_event"){dL(void 0,e);var M=Bw(e,!0),k=new Map;k.set(M,[z0(e.payload)]);Z&&(sX=new Z);return new g.O8(function(K){sX&&sX.isReady()?Vg(k,sX,K,{bypassNetworkless:!0},!0,Hw(m)):K()})}}; +Bw=function(m,e){var Z="";if(m.dangerousLogToVisitorSession)Z="visitorOnlyApprovedKey";else if(m.cttAuthInfo){if(e===void 0?0:e){e=m.cttAuthInfo.token;Z=m.cttAuthInfo;var M=new Nh;Z.videoId?M.setVideoId(Z.videoId):Z.playlistId&&pG(M,2,Ww,p7(Z.playlistId));zz[e]=M}else e=m.cttAuthInfo,Z={},e.videoId?Z.videoId=e.videoId:e.playlistId&&(Z.playlistId=e.playlistId),Pw[m.cttAuthInfo.token]=Z;Z=m.cttAuthInfo.token}return Z}; +LT=function(m,e,Z,M){m=m===void 0?{}:m;Z=Z===void 0?!1:Z;new g.O8(function(k,K){var q=Gz(Z,M),S=q.U;q.U=!1;ms(q.S);ms(q.X);q.X=0;sX&&sX.isReady()?M===void 0&&g.SC("enable_web_tiered_gel")?e2(k,K,m,e,Z,300,S):e2(k,K,m,e,Z,M,S):(OX(Z,M),k())})}; +e2=function(m,e,Z,M,k,K,q){var S=sX;Z=Z===void 0?{}:Z;k=k===void 0?!1:k;K=K===void 0?200:K;q=q===void 0?!1:q;var a=new Map,v=new Map,X={isJspb:k,cttAuthInfo:M,tier:K},x={isJspb:k,cttAuthInfo:M};if(M!==void 0)k?(e=g.SC("enable_web_tiered_gel")?oV().smartExtractMatchingEntries({keys:[X,x],sizeLimit:1E3}):oV().extractMatchingEntries(x),a.set(M,e),Vg(a,S,m,Z,!1,q)):(a=g.SC("enable_web_tiered_gel")?oV().smartExtractMatchingEntries({keys:[X,x],sizeLimit:1E3}):oV().extractMatchingEntries(x),v.set(M,a),JY(v, +S,m,e,Z,!1,q));else if(k){e=g.r(Object.keys(tY));for(v=e.next();!v.done;v=e.next())v=v.value,K=g.SC("enable_web_tiered_gel")?oV().smartExtractMatchingEntries({keys:[X,x],sizeLimit:1E3}):oV().extractMatchingEntries({isJspb:!0,cttAuthInfo:v}),K.length>0&&a.set(v,K),(g.SC("web_fp_via_jspb_and_json")&&Z.writeThenSend||!g.SC("web_fp_via_jspb_and_json"))&&delete tY[v];Vg(a,S,m,Z,!1,q)}else{a=g.r(Object.keys(tY));for(X=a.next();!X.done;X=a.next())X=X.value,x=g.SC("enable_web_tiered_gel")?oV().smartExtractMatchingEntries({keys:[{isJspb:!1, +cttAuthInfo:X,tier:K},{isJspb:!1,cttAuthInfo:X}],sizeLimit:1E3}):oV().extractMatchingEntries({isJspb:!1,cttAuthInfo:X}),x.length>0&&v.set(X,x),(g.SC("web_fp_via_jspb_and_json")&&Z.writeThenSend||!g.SC("web_fp_via_jspb_and_json"))&&delete tY[X];JY(v,S,m,e,Z,!1,q)}}; +OX=function(m,e){function Z(){LT({writeThenSend:!0},void 0,m,e)} +m=m===void 0?!1:m;e=e===void 0?200:e;var M=Gz(m,e),k=M===ZA||M===My?5E3:UgG;g.SC("web_gel_timeout_cap")&&!M.X&&(k=jt(function(){Z()},k),M.X=k); +ms(M.S);k=g.fE("LOGGING_BATCH_TIMEOUT",ay("web_gel_debounce_ms",1E4));g.SC("shorten_initial_gel_batch_timeout")&&kN&&(k=b3m);k=jt(function(){ay("gel_min_batch_size")>0?oV().getSequenceCount({cttAuthInfo:void 0,isJspb:m,tier:e})>=tby&&Z():Z()},k); +M.S=k}; +JY=function(m,e,Z,M,k,K,q){k=k===void 0?{}:k;var S=Math.round((0,g.G)()),a=m.size,v=KD(q);m=g.r(m);var X=m.next();for(q={};!X.done;q={z6:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Hz:void 0,Wz:void 0},X=m.next()){var x=g.r(X.value);X=x.next().value;x=x.next().value;q.batchRequest=g.jb({context:g.rF(e.config_||g.Tr())});if(!g.eq(x)&&!g.SC("throw_err_when_logevent_malformed_killswitch")){M();break}q.batchRequest.events=x;(x=Pw[X])&&Qp3(q.batchRequest,X,x);delete Pw[X];q.dangerousLogToVisitorSession= +X==="visitorOnlyApprovedKey";H3t(q.batchRequest,S,q.dangerousLogToVisitorSession);qy(k);q.Hz=function(l){g.SC("start_client_gcf")&&WN.T_(function(){return g.Qs(function(R){return g.A(R,pD(l),0)})}); +a--;a||Z()}; +q.z6=0;q.Wz=function(l){return function(){l.z6++;if(k.bypassNetworkless&&l.z6===1)try{g.EE(e,v,l.batchRequest,S2({writeThenSend:!0},l.dangerousLogToVisitorSession,l.Hz,l.Wz,K)),kN=!1}catch(R){g.BA(R),M()}a--;a||Z()}}(q); +try{g.EE(e,v,q.batchRequest,S2(k,q.dangerousLogToVisitorSession,q.Hz,q.Wz,K)),kN=!1}catch(l){g.BA(l),M()}}}; +Vg=function(m,e,Z,M,k,K){M=M===void 0?{}:M;var q=Math.round((0,g.G)()),S={value:m.size},a=new Map([].concat(g.Rt(m)));a=g.r(a);for(var v=a.next();!v.done;v=a.next()){var X=g.r(v.value).next().value,x=m.get(X);v=new ri;var l=e.config_||g.Tr(),R=new TD,h=new X1;As(h,1,l.UP);As(h,2,l.rS);fG(h,16,l.l2);As(h,17,l.innertubeContextClientVersion);if(l.HU){var w=l.HU,N=new a8;w.coldConfigData&&As(N,1,w.coldConfigData);w.appInstallData&&As(N,6,w.appInstallData);w.coldHashData&&As(N,3,w.coldHashData);w.hotHashData&& +N.U(w.hotHashData);lC(h,a8,62,N)}(w=g.Jb.devicePixelRatio)&&w!=1&&Df(h,65,g.sU(w));w=vO();w!==""&&As(h,54,w);w=gh();if(w.length>0){N=new lw;for(var I=0;I65535&&(m=1);g.CE("BATCH_CLIENT_COUNTER",m);return m}; +Qp3=function(m,e,Z){if(Z.videoId)var M="VIDEO";else if(Z.playlistId)M="PLAYLIST";else return;m.credentialTransferTokenTargetId=Z;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:e,scope:M}]}; +dL=function(m,e){if(!g.zK("yt.logging.transport.enableScrapingForTest")){var Z=pO("il_payload_scraping");if((Z!==void 0?String(Z):"")==="enable_il_payload_scraping")i9=[],g.Wy("yt.logging.transport.enableScrapingForTest",!0),g.Wy("yt.logging.transport.scrapedPayloadsForTesting",i9),g.Wy("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Wy("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.Wy("yt.logging.transport.scrapeClientEvent",!0);else return}Z=g.zK("yt.logging.transport.scrapedPayloadsForTesting");var M=g.zK("yt.logging.transport.payloadToScrape");e&&(e=e.payload,(e=g.zK("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(e)())&&Z.push(e));e=g.zK("yt.logging.transport.scrapeClientEvent");if(M&&M.length>=1)for(var k=0;k0&&fD(m,e,K)}else fD(m,e)}; +fD=function(m,e,Z){m=du(m);e=e?bS(e):"";Z=Z||5;g.WO()&&CO(m,e,Z)}; +du=function(m){for(var e=g.r(e3c),Z=e.next();!Z.done;Z=e.next())m=sg(m,Z.value);return"ST-"+g.Sb(m).toString(36)}; +g.Bh=function(m){if(m.simpleText)return m.simpleText;if(m.runs){var e=[];m=g.r(m.runs);for(var Z=m.next();!Z.done;Z=m.next())Z=Z.value,Z.text&&e.push(Z.text);return e.join("")}return""}; +ZCR=function(m){if(m.name==="JavaException")return!0;m=m.stack;return m.includes("chrome://")||m.includes("chrome-extension://")||m.includes("moz-extension://")}; +MU7=function(){this.U2=[];this.Dc=[]}; +UQ=function(){if(!EQ){var m=EQ=new MU7;m.Dc.length=0;m.U2.length=0;YN(m,k5y)}return EQ}; +YN=function(m,e){e.Dc&&m.Dc.push.apply(m.Dc,e.Dc);e.U2&&m.U2.push.apply(m.U2,e.U2)}; +KLy=function(m){function e(){return m.charCodeAt(M++)} +var Z=m.length,M=0;do{var k=b9(e);if(k===Infinity)break;var K=k>>3;switch(k&7){case 0:k=b9(e);if(K===2)return k;break;case 1:if(K===2)return;M+=8;break;case 2:k=b9(e);if(K===2)return m.substr(M,k);M+=k;break;case 5:if(K===2)return;M+=4;break;default:return}}while(M500));M++);M=k}else if(typeof m==="object")for(k in m){if(m[k]){var K=k;var q=m[k],S=e,a=Z;K=typeof q!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(q=KLy(atob(q.replace(/-/g,"+").replace(/_/g,"/"))))?tg(K+".ve",q,S,a):0;M+=K;M+=tg(k,m[k],e,Z);if(M>500)break}}else Z[e]=Qd(m),M+=Z[e].length;else Z[e]=Qd(m),M+=Z[e].length;return M}; +tg=function(m,e,Z,M){Z+="."+m;m=Qd(e);M[Z]=m;return Z.length+m.length}; +Qd=function(m){try{return(typeof m==="string"?m:String(JSON.stringify(m))).substr(0,500)}catch(e){return"unable to serialize "+typeof m+" ("+e.message+")"}}; +HC=function(m){g.DA(m)}; +g.LD=function(m){g.DA(m,"WARNING")}; +g.DA=function(m,e){var Z=Z===void 0?{}:Z;Z.name=g.fE("INNERTUBE_CONTEXT_CLIENT_NAME",1);Z.version=g.fE("INNERTUBE_CONTEXT_CLIENT_VERSION");e=e===void 0?"ERROR":e;var M=!1;e=e===void 0?"ERROR":e;M=M===void 0?!1:M;if(m){m.hasOwnProperty("level")&&m.level&&(e=m.level);if(g.SC("console_log_js_exceptions")){var k=[];k.push("Name: "+m.name);k.push("Message: "+m.message);m.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(m.params));m.hasOwnProperty("args")&&k.push("Error args: "+JSON.stringify(m.args)); +k.push("File name: "+m.fileName);k.push("Stacktrace: "+m.stack);window.console.log(k.join("\n"),m)}if(!(sQ>=5)){k=qms;var K=GK1(m),q=K.message||"Unknown Error",S=K.name||"UnknownError",a=K.stack||m.S||"Not available";if(a.startsWith(S+": "+q)){var v=a.split("\n");v.shift();a=v.join("\n")}v=K.lineNumber||"Not available";K=K.fileName||"Not available";var X=0;if(m.hasOwnProperty("args")&&m.args&&m.args.length)for(var x=0;x=500);x++);else if(m.hasOwnProperty("params")&& +m.params){var l=m.params;if(typeof m.params==="object")for(x in l){if(l[x]){var R="params."+x,h=Qd(l[x]);Z[R]=h;X+=R.length+h.length;if(X>500)break}}else Z.params=Qd(l)}if(k.length)for(x=0;x=500);x++);navigator.vendor&&!Z.hasOwnProperty("vendor")&&(Z["device.vendor"]=navigator.vendor);Z={message:q,name:S,lineNumber:v,fileName:K,stack:a,params:Z,sampleWeight:1};k=Number(m.columnNumber);isNaN(k)||(Z.lineNumber=Z.lineNumber+":"+k);if(m.level==="IGNORED")m= +0;else a:{m=UQ();k=g.r(m.Dc);for(q=k.next();!q.done;q=k.next())if(q=q.value,Z.message&&Z.message.match(q.xl)){m=q.weight;break a}m=g.r(m.U2);for(k=m.next();!k.done;k=m.next())if(k=k.value,k.callback(Z)){m=k.weight;break a}m=1}Z.sampleWeight=m;m=g.r(pcc);for(k=m.next();!k.done;k=m.next())if(k=k.value,k.Mk[Z.name])for(S=g.r(k.Mk[Z.name]),q=S.next();!q.done;q=S.next())if(x=q.value,q=Z.message.match(x.rN)){Z.params["params.error.original"]=q[0];S=x.groups;x={};for(v=0;v1E3&&g.LD(new g.Nr("IL Attach cache exceeded limit"))}S= +kn(Z,e);Ph.has(S)?K_(Z,e):e9.set(S,!0)}}M=M.filter(function(X){X.csn!==e?(X.csn=e,X=!0):X=!1;return X}); +Z={csn:e,parentVe:Z.getAsJson(),childVes:g.qI(M,function(X){return X.getAsJson()})}; +e==="UNDEFINED_CSN"?qK("visualElementAttached",K,Z):m?R1("visualElementAttached",Z,m,K):g.D2("visualElementAttached",Z,K)}; +iCc=function(m,e,Z,M,k){p_(Z,e);M=zT({cttAuthInfo:I1(e)||void 0},e);Z={csn:e,ve:Z.getAsJson(),eventType:1};k&&(Z.clientData=k);e==="UNDEFINED_CSN"?qK("visualElementShown",M,Z):m?R1("visualElementShown",Z,m,M):g.D2("visualElementShown",Z,M)}; +S9=function(m,e,Z,M){var k=(M=M===void 0?!1:M)?16:8;M=zT({cttAuthInfo:I1(e)||void 0,endOfSequence:M},e);Z={csn:e,ve:Z.getAsJson(),eventType:k};e==="UNDEFINED_CSN"?qK("visualElementHidden",M,Z):m?R1("visualElementHidden",Z,m,M):g.D2("visualElementHidden",Z,M)}; +xfI=function(m,e,Z,M){aS(m,e,Z,M)}; +aS=function(m,e,Z,M){var k=void 0;p_(Z,e);k=k||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var K=zT({cttAuthInfo:I1(e)||void 0},e);Z={csn:e,ve:Z.getAsJson(),gestureType:k};M&&(Z.clientData=M);e==="UNDEFINED_CSN"?qK("visualElementGestured",K,Z):m?R1("visualElementGestured",Z,m,K):g.D2("visualElementGestured",Z,K)}; +l$3=function(){var m=ke(16);for(var e=[],Z=0;Z6E4&&delete j9[k];m&&(m.X=0)},5E3)); +return Z.count>5?(Z.count===6&&Math.random()*1E5<1&&(Z=new g.Nr("CSI data exceeded logging limit with key",e.split("_")),e.indexOf("plev")>=0||g.LD(Z)),!0):!1}; +wct=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +WT=function(){var m;if(g.SC("csi_use_performance_navigation_timing")||g.SC("csi_use_performance_navigation_timing_tvhtml5")){var e,Z,M,k=J4==null?void 0:(m=J4.getEntriesByType)==null?void 0:(e=m.call(J4,"navigation"))==null?void 0:(Z=e[0])==null?void 0:(M=Z.toJSON)==null?void 0:M.call(Z);k?(k.requestStart=V1(k.requestStart),k.responseEnd=V1(k.responseEnd),k.redirectStart=V1(k.redirectStart),k.redirectEnd=V1(k.redirectEnd),k.domainLookupEnd=V1(k.domainLookupEnd),k.connectStart=V1(k.connectStart),k.connectEnd= +V1(k.connectEnd),k.responseStart=V1(k.responseStart),k.secureConnectionStart=V1(k.secureConnectionStart),k.domainLookupStart=V1(k.domainLookupStart),k.isPerformanceNavigationTiming=!0,m=k):m=J4.timing}else m=g.SC("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(J4.timing)):J4.timing;return m}; +V1=function(m){return Math.round(z8()+m)}; +z8=function(){return(g.SC("csi_use_time_origin")||g.SC("csi_use_time_origin_tvhtml5"))&&J4.timeOrigin?Math.floor(J4.timeOrigin):J4.timing.navigationStart}; +mW=function(m,e){PT("_start",m,e)}; +ei=function(m,e){if(!g.SC("web_csi_action_sampling_enabled")||!f_(e).actionDisabled){var Z=Q1(e||"");Wx(Z.info,m);m.loadType&&(Z=m.loadType,dz(e).loadType=Z);Wx(Yn(e),m);Z=UK(e);e=f_(e).cttAuthInfo;y1().info(m,Z,e)}}; +noc=function(){var m,e,Z,M;return((M=Fb().resolve(new xe(kU))==null?void 0:(m=a5())==null?void 0:(e=m.loggingHotConfig)==null?void 0:(Z=e.csiConfig)==null?void 0:Z.debugTicks)!=null?M:[]).map(function(k){return Object.values(k)[0]})}; +PT=function(m,e,Z){if(!g.SC("web_csi_action_sampling_enabled")||!f_(Z).actionDisabled){var M=UK(Z),k;if(k=g.SC("web_csi_debug_sample_enabled")&&M){(Fb().resolve(new xe(kU))==null?0:a5())&&!Z3&&(Z3=!0,PT("gcfl",(0,g.G)(),Z));var K,q,S;k=(Fb().resolve(new xe(kU))==null?void 0:(K=a5())==null?void 0:(q=K.loggingHotConfig)==null?void 0:(S=q.csiConfig)==null?void 0:S.debugSampleWeight)||0;if(K=k!==0)b:{K=noc();if(K.length>0)for(q=0;qZ.duration?M:Z},{duration:0}))&&e.startTime>0&&e.responseEnd>0&&(PT("wffs",V1(e.startTime)),PT("wffe",V1(e.responseEnd)))}; +I$R=function(m,e,Z){J4&&J4.measure&&(m.startsWith("measure_")||(m="measure_"+m),Z?J4.measure(m,e,Z):e?J4.measure(m,e):J4.measure(m))}; +a0=function(m){var e=Si("aft",m);if(e)return e;e=g.fE((m||"")+"TIMING_AFT_KEYS",["ol"]);for(var Z=e.length,M=0;M0&&ei(e);e={isNavigation:!0,actionType:L_(g.fE("TIMING_ACTION"))};var Z=g.fE("PREVIOUS_ACTION");Z&&(e.previousAction=L_(Z));if(Z=g.fE("CLIENT_PROTOCOL"))e.httpProtocol=Z;if(Z=g.fE("CLIENT_TRANSPORT"))e.transportProtocol=Z;(Z=g.ru())&&Z!=="UNDEFINED_CSN"&&(e.clientScreenNonce=Z);Z=kc();if(Z===1||Z===-1)e.isVisible= +!0;Z=dz().loadType==="cold";var M=oS();Z||(Z=M.yt_lt==="cold");if(Z){e.loadType="cold";Z=oS();M=WT();var k=z8(),K=g.fE("CSI_START_TIMESTAMP_MILLIS",0);K>0&&!g.SC("embeds_web_enable_csi_start_override_killswitch")&&(k=K);k&&(PT("srt",M.responseStart),Z.prerender!==1&&mW(k));Z=CQt();Z>0&&PT("fpt",Z);Z=WT();Z.isPerformanceNavigationTiming&&ei({performanceNavigationTiming:!0},void 0);PT("nreqs",Z.requestStart,void 0);PT("nress",Z.responseStart,void 0);PT("nrese",Z.responseEnd,void 0);Z.redirectEnd-Z.redirectStart> +0&&(PT("nrs",Z.redirectStart,void 0),PT("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(PT("ndnss",Z.domainLookupStart,void 0),PT("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(PT("ntcps",Z.connectStart,void 0),PT("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=z8()&&Z.connectEnd-Z.secureConnectionStart>0&&(PT("nstcps",Z.secureConnectionStart,void 0),PT("ntcpe",Z.connectEnd,void 0));J4&&"getEntriesByType"in J4&&ryt();Z=[];if(document.querySelector&& +J4&&J4.getEntriesByName)for(var q in ij)ij.hasOwnProperty(q)&&(M=ij[q],NNR(q,M)&&Z.push(M));if(Z.length>0)for(e.resourceInfo=[],q=g.r(Z),Z=q.next();!Z.done;Z=q.next())e.resourceInfo.push({resourceCache:Z.value})}ei(e);e=EK();e.preLoggedGelInfos||(e.preLoggedGelInfos=[]);q=e.preLoggedGelInfos;e=Yn();Z=void 0;for(M=0;M0&&(N.headers=h);l={input:x,LI:N,h3:e,config:k};S(HCG(m,l,X,K));g.It(R)})})}; +rG=function(m,e,Z){var M;if(e&&!(e==null?0:(M=e.sequenceMetaData)==null?0:M.skipProcessing)&&m.Z){M=g.r(DfI);for(var k=M.next();!k.done;k=M.next())k=k.value,m.Z[k]&&m.Z[k].handleResponse(e,Z)}}; +HCG=function(m,e,Z,M){M=M===void 0?function(){}:M; +var k,K,q,S,a,v,X,x,l,R,h,w,N,I,C,B,b,L,Q,J,kG,TK,z,D,W,u,H,yf,nd,I4;return g.Qs(function(i6){switch(i6.X){case 1:i6.pB(2);break;case 3:if((k=i6.S)&&!k.isExpired())return i6.return(Promise.resolve(k.X()));case 2:if(!((K=e)==null?0:(q=K.h3)==null?0:q.context)){i6.pB(4);break}S=e.h3.context;i6.pB(5);break;case 5:a=g.r([]),v=a.next();case 8:if(v.done){i6.pB(4);break}X=v.value;return g.A(i6,X.Ia(S),9);case 9:v=a.next();i6.pB(8);break;case 4:if((x=m.S)==null||!x.Bb(e.input,e.h3)){i6.pB(12);break}return g.A(i6, +m.S.tH(e.input,e.h3),13);case 13:return l=i6.S,rG(m,l,e),i6.return(l);case 12:return(w=(h=e.config)==null?void 0:h.l3)&&m.X.has(w)?R=m.X.get(w):(N=JSON.stringify(e.h3),B=(C=(I=e.LI)==null?void 0:I.headers)!=null?C:{},e.LI=Object.assign({},e.LI,{headers:Object.assign({},B,Z)}),b=Object.assign({},e.LI),e.LI.method==="POST"&&(b=Object.assign({},b,{body:N})),((L=e.config)==null?0:L.NK)&&g.lj(e.config.NK),Q=function(){return m.jp.fetch(e.input,b,e.config)},R=Q(),w&&m.X.set(w,R)),g.A(i6,R,14); +case 14:if((J=i6.S)&&"error"in J&&((kG=J)==null?0:(TK=kG.error)==null?0:TK.details))for(z=J.error.details,D=g.r(z),W=D.next();!W.done;W=D.next())u=W.value,(H=u["@type"])&&LLG.indexOf(H)>-1&&(delete u["@type"],J=u);w&&m.X.has(w)&&m.X.delete(w);((yf=e.config)==null?0:yf.aI)&&g.lj(e.config.aI);if(J||(nd=m.S)==null||!nd.Xd(e.input,e.h3)){i6.pB(15);break}return g.A(i6,m.S.D$(e.input,e.h3),16);case 16:J=i6.S;case 15:return rG(m,J,e),((I4=e.config)==null?0:I4.bv)&&g.lj(e.config.bv),M(),i6.return(J||void 0)}})}; +Qom=function(m,e,Z){var M,k,K,q,S,a,v;return g.Qs(function(X){if(X.X==1){K=((M=e)==null?void 0:(k=M.f3)==null?void 0:k.identity)||I5;a=(q=e)==null?void 0:(S=q.f3)==null?void 0:S.sessionIndex;var x=zI(m.U.r$(K,{sessionIndex:a}));return g.A(X,x,2)}v=X.S;return X.return(Promise.resolve(Object.assign({},F5(Z),v)))})}; +I0=function(){}; +A$=function(){}; +CB=function(){}; +fB=function(){}; +o0=function(){}; +dG=function(){}; +Bz=function(){}; +Et=function(m,e){var Z=g.Hy.apply(2,arguments);m=m===void 0?0:m;g.Nr.call(this,e,Z);this.errorType=m;Object.setPrototypeOf(this,this.constructor.prototype)}; +Yc=function(m,e,Z){this.X=m;this.S=e;this.U=Z}; +soK=function(m,e,Z){if(m.X){var M=AV(fa(5,sg(e,"key")))||"/UNKNOWN_PATH";m.X.start(M)}m=Z;g.SC("wug_networking_gzip_request")&&(m=pFb(Z));return new window.Request(e,m)}; +t$=function(m,e){if(!Ut){var Z=Fb();ul(Z,{YI:bj,nh:Yc});var M={UD:{feedbackEndpoint:cT(fB),modifyChannelNotificationPreferenceEndpoint:cT(o0),playlistEditEndpoint:cT(dG),shareEntityEndpoint:cT(CB),subscribeEndpoint:cT(I0),unsubscribeEndpoint:cT(A$),webPlayerShareEntityServiceEndpoint:cT(Bz)}},k=T8.getInstance(),K={};k&&(K.client_location=k);m===void 0&&(m=vC());e===void 0&&(e=Z.resolve(bj));tUK(M,e,m,K);ul(Z,{YI:G5K,cQ:cz.instance});Ut=Z.resolve(G5K)}return Ut}; +yyP=function(m){var e=new Rk;if(m.interpreterJavascript){var Z=mh(m.interpreterJavascript);Z=Wo(Z).toString();var M=new lB;As(M,6,Z);lC(e,lB,1,M)}else m.interpreterUrl&&(Z=eS(m.interpreterUrl),Z=or(Z).toString(),M=new uB,As(M,4,Z),lC(e,uB,2,M));m.interpreterHash&&CG(e,3,m.interpreterHash);m.program&&CG(e,4,m.program);m.globalName&&CG(e,5,m.globalName);m.clientExperimentsStateBlob&&CG(e,7,m.clientExperimentsStateBlob);return e}; +QX=function(m){var e={};m=m.split("&");m=g.r(m);for(var Z=m.next();!Z.done;Z=m.next())Z=Z.value.split("="),Z.length===2&&(e[Z[0]]=Z[1]);return e}; +c23=function(){if(g.SC("bg_st_hr"))return"havuokmhhs-0";var m,e=((m=performance)==null?void 0:m.timeOrigin)||0;return"havuokmhhs-"+Math.floor(e)}; +Hz=function(m){this.X=m}; +job=function(){return new Promise(function(m){var e=window.top;e.ntpevasrs!==void 0?m(new Hz(e.ntpevasrs)):(e.ntpqfbel===void 0&&(e.ntpqfbel=[]),e.ntpqfbel.push(function(Z){m(new Hz(Z))}))})}; +Jy7=function(){if(!g.SC("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.SC("disable_biscotti_fetch_entirely_for_all_web_clients")&&g.WO()){var m=g.fE("PLAYER_VARS",{});if(g.sA(m,"privembed",!1)!="1"&&!g.AS(m)){var e=function(){D3=!0;"google_ad_status"in window?g.CE("DCLKSTAT",1):g.CE("DCLKSTAT",2)}; +try{Gj("//static.doubleclick.net/instream/ad_status.js",e)}catch(Z){}OCm.push(WN.T_(function(){if(!(D3||"google_ad_status"in window)){try{if(e){var Z=""+g.kw(e),M=jw[Z];M&&Hx(M)}}catch(k){}D3=!0;g.CE("DCLKSTAT",3)}},5E3))}}}; +LB=function(){var m=Number(g.fE("DCLKSTAT",0));return isNaN(m)?0:m}; +Gh=function(m,e,Z){this.S=m;this.isAsync=e;this.X=Z}; +J$=function(m,e,Z){var M=this;this.network=m;this.options=e;this.Z=Z;this.X=null;if(e.DW){var k=new g.TF;this.X=k.promise;g.Jb.ytAtRC&&Cr(function(){var K,q;return g.Qs(function(S){if(S.X==1){if(!g.Jb.ytAtRC)return S.return();K=yX(null);return g.A(S,ji(M,K),2)}q=S.S;g.Jb.ytAtRC&&g.Jb.ytAtRC(JSON.stringify(q));g.It(S)})},2); +job().then(function(K){var q,S,a,v;return g.Qs(function(X){if(X.X==1)return K.bindInnertubeChallengeFetcher(function(x){return ji(M,yX(x))}),g.A(X,g.rg(),2); +q=X.S;S=K.getLatestChallengeResponse();a=S.challenge;if(!a)throw Error("BGE_MACIL");v={challenge:a,nx:QX(a),PV:q,bgChallenge:new Rk};k.resolve(v);K.registerChallengeFetchedCallback(function(x){x=x.challenge;if(!x)throw Error("BGE_MACR");x={challenge:x,nx:QX(x),PV:q,bgChallenge:new Rk};M.X=Promise.resolve(x)}); +g.It(X)})})}else e.preload&&VUI(this,new Promise(function(K){g.fr(0,function(){K(Ot(M))},0)}))}; +yX=function(m){var e={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};m&&(e.interpreterHash=m);return e}; +Ot=function(m,e){e=e===void 0?0:e;var Z,M,k,K,q,S,a,v,X,x,l,R;return g.Qs(function(h){switch(h.X){case 1:Z=yX(cb().X);if(g.SC("att_fet_ks"))return Ab(h,7),g.A(h,ji(m,Z),9);Ab(h,4);return g.A(h,WLc(m,Z),6);case 6:q=h.S;k=q.aT;K=q.u_;M=q;C1(h,3);break;case 4:return f1(h),g.LD(Error("Failed to fetch attestation challenge after "+(e+" attempts; not retrying for 24h."))),VX(m,864E5),h.return({challenge:"",nx:{},PV:void 0,bgChallenge:void 0});case 9:M=h.S;if(!M)throw Error("Fetching Attestation challenge returned falsy"); +if(!M.challenge)throw Error("Missing Attestation challenge");k=M.challenge;K=QX(k);if("c1a"in K&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("Expected bg challenge but missing.");C1(h,3);break;case 7:S=f1(h);g.LD(S);e++;if(e>=5)return g.LD(Error("Failed to fetch attestation challenge after "+(e+" attempts; not retrying for 24h."))),VX(m,864E5),h.return({challenge:"",nx:{},PV:void 0,bgChallenge:void 0});a=1E3*Math.pow(2,e-1)+Math.random()*1E3;return h.return(new Promise(function(w){g.fr(0, +function(){w(Ot(m,e))},a)})); +case 3:v=Number(K.t)||7200;VX(m,v*1E3);X=void 0;if(!("c1a"in K&&M.bgChallenge)){h.pB(10);break}x=yyP(M.bgChallenge);Ab(h,11);return g.A(h,Ne(cb(),x),13);case 13:C1(h,12);break;case 11:return l=f1(h),g.LD(l),h.return({challenge:k,nx:K,PV:X,bgChallenge:x});case 12:return Ab(h,14),X=new F6({challenge:x,C5:{AD:"aGIf"}}),g.A(h,X.TR,16);case 16:C1(h,10);break;case 14:R=f1(h),g.LD(R),X=void 0;case 10:return h.return({challenge:k,nx:K,PV:X,bgChallenge:x})}})}; +ji=function(m,e){var Z;return g.Qs(function(M){Z=m.Z;if(!Z||Z.UH())return M.return(ji(m.network,e));g.nB("att_pna",void 0,"attestation_challenge_fetch");return M.return(new Promise(function(k){Z.hw("publicytnetworkstatus-online",function(){ji(m.network,e).then(k)})}))})}; +z31=function(m){if(!m)throw Error("Fetching Attestation challenge returned falsy");if(!m.challenge)throw Error("Missing Attestation challenge");var e=m.challenge,Z=QX(e);if("c1a"in Z&&(!m.bgChallenge||!m.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},m,{aT:e,u_:Z})}; +WLc=function(m,e){var Z,M,k,K,q;return g.Qs(function(S){switch(S.X){case 1:Z=void 0,M=0,k={};case 2:if(!(M<5)){S.pB(4);break}if(!(M>0)){S.pB(5);break}k.m6=1E3*Math.pow(2,M-1)+Math.random()*1E3;return g.A(S,new Promise(function(a){return function(v){g.fr(0,function(){v(void 0)},a.m6)}}(k)),5); +case 5:return Ab(S,7),g.A(S,ji(m,e),9);case 9:return K=S.S,S.return(z31(K));case 7:Z=q=f1(S),q instanceof Error&&g.LD(q);case 8:M++;k={m6:void 0};S.pB(2);break;case 4:throw Z;}})}; +VUI=function(m,e){m.X=e}; +PQc=function(m){var e,Z,M;return g.Qs(function(k){if(k.X==1)return g.A(k,Promise.race([m.X,null]),2);e=k.S;var K=Ot(m);m.X=K;(Z=e)==null||(M=Z.PV)==null||M.dispose();g.It(k)})}; +VX=function(m,e){function Z(){var k;return g.Qs(function(K){k=M-Date.now();return k<1E3?g.A(K,PQc(m),0):(Cr(Z,0,Math.min(k,6E4)),K.pB(0))})} +var M=Date.now()+e;Z()}; +mO1=function(m,e){return new Promise(function(Z){g.fr(0,function(){Z(e())},m)})}; +g.e5t=function(m,e){var Z;return g.Qs(function(M){var k=g.zK("yt.aba.att");return(Z=k?k:J$.instance!==void 0?J$.instance.S.bind(J$.instance):null)?M.return(Z("ENGAGEMENT_TYPE_PLAYBACK",m,e)):M.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.ZWI=function(){var m;return(m=(m=g.zK("yt.aba.att2"))?m:J$.instance!==void 0?J$.instance.U.bind(J$.instance):null)?m():Promise.resolve(!1)}; +kI1=function(m,e){var Z=g.zK("ytDebugData.callbacks");Z||(Z={},g.Wy("ytDebugData.callbacks",Z));if(g.SC("web_dd_iu")||MZk.includes(m))Z[m]=e}; +Wz=function(){var m=KtP;var e=e===void 0?[]:e;var Z=Z===void 0?[]:Z;e=Jh.apply(null,[jOb.apply(null,g.Rt(e))].concat(g.Rt(Z)));this.store=zW(m,void 0,e)}; +q8t=function(m,e,Z){for(var M=Object.assign({},m),k=g.r(Object.keys(e)),K=k.next();!K.done;K=k.next()){K=K.value;var q=m[K],S=e[K];if(S===void 0)delete M[K];else if(q===void 0)M[K]=S;else if(Array.isArray(S)&&Array.isArray(q))M[K]=Z?[].concat(g.Rt(q),g.Rt(S)):S;else if(!Array.isArray(S)&&g.Zb(S)&&!Array.isArray(q)&&g.Zb(q))M[K]=q8t(q,S,Z);else if(typeof S===typeof q)M[K]=S;else return e=new g.Nr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,mV:q,updateValue:S}),g.DA(e), +m}return M}; +zh=function(m){var e=this;m=m===void 0?[]:m;this.oE=[];this.jR=this.NF=0;this.Y9=void 0;this.totalLength=0;m.forEach(function(Z){e.append(Z)})}; +pLs=function(m,e){return m.oE.length===0?!1:(m=m.oE[m.oE.length-1])&&m.buffer===e.buffer&&m.byteOffset+m.length===e.byteOffset}; +Pz=function(m,e){e=g.r(e.oE);for(var Z=e.next();!Z.done;Z=e.next())m.append(Z.value)}; +me=function(m,e,Z){return m.split(e).Gg.split(Z).ys}; +ee=function(m){m.Y9=void 0;m.NF=0;m.jR=0}; +ZW=function(m,e,Z){m.isFocused(e);return e-m.jR+Z<=m.oE[m.NF].length}; +S87=function(m){if(!m.Y9){var e=m.oE[m.NF];m.Y9=new DataView(e.buffer,e.byteOffset,e.length)}return m.Y9}; +MJ=function(m,e,Z){m=m.GM(e===void 0?0:e,Z===void 0?-1:Z);e=new Uint8Array(m.length);try{e.set(m)}catch(M){for(Z=0;Z>10;K=56320|K&1023}pc[k++]=K}}K=String.fromCharCode.apply(String,pc); +k<1024&&(K=K.substring(0,k));Z.push(K)}return Z.join("")}; +vj=function(m,e){var Z;if((Z=al)==null?0:Z.encodeInto)return e=al.encodeInto(m,e),e.read>6|192:((k&64512)===55296&&M+1>18|240,e[Z++]=k>>12&63|128):e[Z++]=k>>12|224,e[Z++]=k>>6&63|128),e[Z++]=k&63|128)}return Z}; +go=function(m){if(al)return al.encode(m);var e=new Uint8Array(Math.ceil(m.length*1.2)),Z=vj(m,e);e.lengthZ&&(e=e.subarray(0,Z));return e}; +X_=function(m){this.X=m;this.pos=0;this.S=-1}; +iv=function(m){var e=m.X.getUint8(m.pos);++m.pos;if(e<128)return e;for(var Z=e&127,M=1;e>=128;)e=m.X.getUint8(m.pos),++m.pos,M*=128,Z+=(e&127)*M;return Z}; +xB=function(m,e){var Z=m.S;for(m.S=-1;m.pos+1<=m.X.totalLength;){Z<0&&(Z=iv(m));var M=Z>>3,k=Z&7;if(M===e)return!0;if(M>e){m.S=Z;break}Z=-1;switch(k){case 0:iv(m);break;case 1:m.pos+=8;break;case 2:M=iv(m);m.pos+=M;break;case 5:m.pos+=4}}return!1}; +lv=function(m,e){if(xB(m,e))return iv(m)}; +uv=function(m,e){if(xB(m,e))return!!iv(m)}; +Rl=function(m,e){if(xB(m,e)){e=iv(m);var Z=m.X.GM(m.pos,e);m.pos+=e;return Z}}; +hK=function(m,e){if(m=Rl(m,e))return g.Se(m)}; +Tp=function(m,e,Z){if(m=Rl(m,e))return Z(new X_(new zh([m])))}; +$B=function(m,e){for(var Z=[];xB(m,e);)Z.push(iv(m));return Z.length?Z:void 0}; +F_=function(m,e,Z){for(var M=[],k;k=Rl(m,e);)M.push(Z(new X_(new zh([k]))));return M.length?M:void 0}; +wo=function(m,e){m=m instanceof Uint8Array?new zh([m]):m;return e(new X_(m))}; +gmG=function(m,e,Z){if(e&&Z&&Z.buffer===e.exports.memory.buffer){var M=e.realloc(Z.byteOffset,m);if(M)return new Uint8Array(e.exports.memory.buffer,M,m)}m=e?new Uint8Array(e.exports.memory.buffer,e.malloc(m),m):new Uint8Array(m);Z&&m.set(Z);return m}; +XLI=function(m,e){this.CJ=e;this.pos=0;this.S=[];this.X=gmG(m===void 0?4096:m,e);this.view=new DataView(this.X.buffer,this.X.byteOffset,this.X.byteLength)}; +nc=function(m,e){e=m.pos+e;if(!(m.X.length>=e)){for(var Z=m.X.length*2;Z268435455){nc(m,4);for(var Z=e&1073741823,M=0;M<4;M++)m.view.setUint8(m.pos,Z&127|128),Z>>=7,m.pos+=1;e=Math.floor(e/268435456)}for(nc(m,4);e>127;)m.view.setUint8(m.pos,e&127|128),e>>=7,m.pos+=1;m.view.setUint8(m.pos,e);m.pos+=1}; +NJ=function(m,e,Z){Z!==void 0&&(cj(m,e*8),cj(m,Z))}; +ro=function(m,e,Z){Z!==void 0&&NJ(m,e,Z?1:0)}; +Il=function(m,e,Z){Z!==void 0&&(cj(m,e*8+2),e=Z.length,cj(m,e),nc(m,e),m.X.set(Z,m.pos),m.pos+=e)}; +AK=function(m,e,Z){Z!==void 0&&(iWI(m,e,Math.ceil(Math.log2(Z.length*4+2)/7)),nc(m,Z.length*1.2),e=vj(Z,m.X.subarray(m.pos)),m.pos+e>m.X.length&&(nc(m,e),e=vj(Z,m.X.subarray(m.pos))),m.pos+=e,xOb(m))}; +iWI=function(m,e,Z){Z=Z===void 0?2:Z;cj(m,e*8+2);m.S.push(m.pos);m.S.push(Z);m.pos+=Z}; +xOb=function(m){for(var e=m.S.pop(),Z=m.S.pop(),M=m.pos-Z-e;e--;){var k=e?128:0;m.view.setUint8(Z++,M&127|k);M>>=7}}; +Cc=function(m,e,Z,M,k){Z&&(iWI(m,e,k===void 0?3:k),M(m,Z),xOb(m))}; +g.fc=function(m,e,Z){Z=new XLI(4096,Z);e(Z,m);return new Uint8Array(Z.X.buffer,Z.X.byteOffset,Z.pos)}; +ol=function(m,e){var Z=new XLI;Il(Z,2,go(m));m=lDP[e];if(typeof m==="undefined")throw e=new g.Nr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:e}),g.DA(e),e;NJ(Z,4,m);NJ(Z,5,1);e=new Uint8Array(Z.X.buffer,Z.X.byteOffset,Z.pos);return encodeURIComponent(g.HG(e))}; +Bj=function(m,e,Z,M){if(M===void 0)return M=Object.assign({},m[e]||{}),Z=(delete M[Z],M),M={},Object.assign({},m,(M[e]=Z,M));var k={},K={};return Object.assign({},m,(K[e]=Object.assign({},m[e],(k[Z]=M,k)),K))}; +uZK=function(m,e,Z,M,k){var K=m[e];if(K==null||!K[Z])return m;M=q8t(K[Z],M,k==="REPEATED_FIELDS_MERGE_OPTION_APPEND");k={};K={};return Object.assign({},m,(K[e]=Object.assign({},m[e],(k[Z]=M,k)),K))}; +h5s=function(m,e){m=m===void 0?{}:m;switch(e.type){case "ENTITY_LOADED":return e.payload.reduce(function(M,k){var K,q=(K=k.options)==null?void 0:K.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return M;if(!k.entityKey)return g.DA(Error("Missing entity key")),M;if(k.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!k.payload)return g.DA(new g.Nr("REPLACE entity mutation is missing a payload",{entityKey:k.entityKey})),M;var S=BF(k.payload); +return Bj(M,S,k.entityKey,k.payload[S])}if(k.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{k=k.entityKey;try{var a=new X_(new zh([j7(decodeURIComponent(k))]));hK(a,2);var v=lv(a,4),X=R5s[v];if(typeof X==="undefined"){var x=new g.Nr("Failed to recognize field number",{name:"EntityKeyHelperError",wA:v});g.DA(x);throw x;}S=Bj(M,X,k);break a}catch(h){if(h instanceof Error){g.DA(new g.Nr("Failed to deserialize entity key",{entityKey:k,Ap:h.message}));S=M;break a}throw h;}S=void 0}return S}if(k.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!k.payload)return g.DA(new g.Nr("UPDATE entity mutation is missing a payload", +{entityKey:k.entityKey})),M;S=BF(k.payload);var l,R;return uZK(M,S,k.entityKey,k.payload[S],(l=k.fieldMask)==null?void 0:(R=l.mergeOptions)==null?void 0:R.repeatedFieldsMergeOption)}return M},m); +case "REPLACE_ENTITY":var Z=e.payload;return Bj(m,Z.entityType,Z.key,Z.On);case "REPLACE_ENTITIES":return Object.keys(e.payload).reduce(function(M,k){var K=e.payload[k];return Object.keys(K).reduce(function(q,S){return Bj(q,k,S,K[S])},M)},m); +case "UPDATE_ENTITY":return Z=e.payload,uZK(m,Z.entityType,Z.key,Z.On,Z.fX);default:return m}}; +EF=function(m){return window.Int32Array?new Int32Array(m):Array(m)}; +Hj=function(m){g.Y.call(this);this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.X=16;if(!T7K){var e,Z=new Uint8Array(256),M=new Uint8Array(256);var k=1;for(e=0;e<256;e++)Z[k]=e,M[e]=k,k^=k<<1^(k>>7&&283);YB=new Uint8Array(256);UF=EF(256);bv=EF(256);tK=EF(256);Qa=EF(256);for(var K=0;K<256;K++){k=K?M[255^Z[K]]:0;k^=k<<1^k<<2^k<<3^k<<4;k=k&255^k>>>8^99;YB[K]=k;e=k<<1^(k>>7&&283);var q=e^k;UF[K]=e<<24|k<<16|k<<8|q;bv[K]=q<<24|UF[K]>>>8;tK[K]=k<<24|bv[K]>>>8;Qa[K]=k<<24|tK[K]>>>8}T7K=!0}k=EF(44);for(Z= +0;Z<4;Z++)k[Z]=m[4*Z]<<24|m[4*Z+1]<<16|m[4*Z+2]<<8|m[4*Z+3];for(M=1;Z<44;Z++)m=k[Z-1],Z%4||(m=(YB[m>>16&255]^M)<<24|YB[m>>8&255]<<16|YB[m&255]<<8|YB[m>>>24],M=M<<1^(M>>7&&283)),k[Z]=k[Z-4]^m;this.key=k}; +DW=function(m,e){for(var Z=0;Z<4;Z++)m.counter[Z]=e[Z*4]<<24|e[Z*4+1]<<16|e[Z*4+2]<<8|e[Z*4+3];m.X=16}; +$Oy=function(m){for(var e=m.key,Z=m.counter[0]^e[0],M=m.counter[1]^e[1],k=m.counter[2]^e[2],K=m.counter[3]^e[3],q=3;q>=0&&!(m.counter[q]=-~m.counter[q]);q--);for(var S,a,v=4;v<40;)q=UF[Z>>>24]^bv[M>>16&255]^tK[k>>8&255]^Qa[K&255]^e[v++],S=UF[M>>>24]^bv[k>>16&255]^tK[K>>8&255]^Qa[Z&255]^e[v++],a=UF[k>>>24]^bv[K>>16&255]^tK[Z>>8&255]^Qa[M&255]^e[v++],K=UF[K>>>24]^bv[Z>>16&255]^tK[M>>8&255]^Qa[k&255]^e[v++],Z=q,M=S,k=a;m=m.S;q=e[40];m[0]=YB[Z>>>24]^q>>>24;m[1]=YB[M>>16&255]^q>>16&255;m[2]=YB[k>>8&255]^ +q>>8&255;m[3]=YB[K&255]^q&255;q=e[41];m[4]=YB[M>>>24]^q>>>24;m[5]=YB[k>>16&255]^q>>16&255;m[6]=YB[K>>8&255]^q>>8&255;m[7]=YB[Z&255]^q&255;q=e[42];m[8]=YB[k>>>24]^q>>>24;m[9]=YB[K>>16&255]^q>>16&255;m[10]=YB[Z>>8&255]^q>>8&255;m[11]=YB[M&255]^q&255;q=e[43];m[12]=YB[K>>>24]^q>>>24;m[13]=YB[Z>>16&255]^q>>16&255;m[14]=YB[M>>8&255]^q>>8&255;m[15]=YB[k&255]^q&255}; +Gp=function(){if(!Lc&&!tR){if(sF)return sF;var m;sF=(m=window.crypto)==null?void 0:m.subtle;var e,Z,M;if(((e=sF)==null?0:e.importKey)&&((Z=sF)==null?0:Z.sign)&&((M=sF)==null?0:M.encrypt))return sF;sF=void 0}}; +ya=function(m){this.Z=m}; +je=function(m){this.S=m}; +OF=function(m){this.L=new Uint8Array(64);this.U=new Uint8Array(64);this.Z=0;this.C=new Uint8Array(64);this.S=0;this.L.set(m);this.U.set(m);for(m=0;m<64;m++)this.L[m]^=92,this.U[m]^=54;this.reset()}; +FtK=function(m,e,Z){for(var M=m.j,k=m.X[0],K=m.X[1],q=m.X[2],S=m.X[3],a=m.X[4],v=m.X[5],X=m.X[6],x=m.X[7],l,R,h,w=0;w<64;)w<16?(M[w]=h=e[Z]<<24|e[Z+1]<<16|e[Z+2]<<8|e[Z+3],Z+=4):(l=M[w-2],R=M[w-15],h=M[w-7]+M[w-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),M[w]=h),l=x+JK[w]+h+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&v^~a&X),R=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&K^k&q^K&q),x=l+R,S+=l,w++,w<16?(M[w]=h=e[Z]<<24|e[Z+1]<<16|e[Z+2]<<8|e[Z+3],Z+=4):(l= +M[w-2],R=M[w-15],h=M[w-7]+M[w-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),M[w]=h),l=X+JK[w]+h+((S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7))+(S&a^~S&v),R=((x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10))+(x&k^x&K^k&K),X=l+R,q+=l,w++,w<16?(M[w]=h=e[Z]<<24|e[Z+1]<<16|e[Z+2]<<8|e[Z+3],Z+=4):(l=M[w-2],R=M[w-15],h=M[w-7]+M[w-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),M[w]=h),l=v+JK[w]+h+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&S^ +~q&a),R=((X>>>2|X<<30)^(X>>>13|X<<19)^(X>>>22|X<<10))+(X&x^X&k^x&k),v=l+R,K+=l,w++,w<16?(M[w]=h=e[Z]<<24|e[Z+1]<<16|e[Z+2]<<8|e[Z+3],Z+=4):(l=M[w-2],R=M[w-15],h=M[w-7]+M[w-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),M[w]=h),l=a+JK[w]+h+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&q^~K&S),R=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&X^v&x^X&x),h=x,x=S,S=h,h=X,X=q,q=h,h=v,v=K,K=h,a=k+l,k=l+R,w++;m.X[0]=k+m.X[0]|0;m.X[1]=K+m.X[1]|0;m.X[2]=q+m.X[2]|0;m.X[3]= +S+m.X[3]|0;m.X[4]=a+m.X[4]|0;m.X[5]=v+m.X[5]|0;m.X[6]=X+m.X[6]|0;m.X[7]=x+m.X[7]|0}; +nmK=function(m){var e=new Uint8Array(32),Z=64-m.S;m.S>55&&(Z+=64);var M=new Uint8Array(Z);M[0]=128;for(var k=m.Z*8,K=1;K<9;K++){var q=k%256;M[Z-K]=q;k=(k-q)/256}m.update(M);for(Z=0;Z<8;Z++)e[Z*4]=m.X[Z]>>>24,e[Z*4+1]=m.X[Z]>>>16&255,e[Z*4+2]=m.X[Z]>>>8&255,e[Z*4+3]=m.X[Z]&255;wL3(m);return e}; +wL3=function(m){m.X=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];m.j=[];m.j.length=64;m.Z=0;m.S=0}; +cHs=function(m){this.X=m}; +N7I=function(m,e,Z){m=new OF(m.X);m.update(e);m.update(Z);e=nmK(m);m.update(m.L);m.update(e);e=nmK(m);m.reset();return e}; +rHb=function(m){this.S=m}; +IDK=function(m,e,Z,M){var k,K,q;return g.Qs(function(S){switch(S.X){case 1:if(m.X){S.pB(2);break}return g.A(S,M.importKey("raw",m.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:m.X=S.S;case 2:return k=new Uint8Array(e.length+Z.length),k.set(e),k.set(Z,e.length),K={name:"HMAC",hash:"SHA-256"},g.A(S,M.sign(K,m.X,k),4);case 4:return q=S.S,S.return(new Uint8Array(q))}})}; +AHI=function(m,e,Z){m.U||(m.U=new cHs(m.S));return N7I(m.U,e,Z)}; +CFy=function(m,e,Z){var M,k;return g.Qs(function(K){if(K.X==1){M=Gp();if(!M)return K.return(AHI(m,e,Z));Ab(K,3);return g.A(K,IDK(m,e,Z,M),5)}if(K.X!=3)return K.return(K.S);k=f1(K);g.LD(k);Lc=!0;return K.return(AHI(m,e,Z))})}; +dOs=function(m,e){var Z,M,k;return g.Qs(function(K){if(K.X==1)return Z={context:g.$n(),settingItemIds:e},M=rz(fDR),g.A(K,g.NG(m,Z,M),2);k=K.S;return!k||k.errorMetadata?(omm("GetSettingValuesRequest",k),K.return(void 0)):K.return(k.settingValues)})}; +EmP=function(m,e,Z){var M,k,K;g.Qs(function(q){if(q.X==1)return M={context:g.$n(),settingItemId:e,newValue:Z},k=rz(B7K),g.A(q,g.NG(m,M,k),2);K=q.S;if(!K||K.errorMetadata)return omm("SetSettingRequest",K),q.return(void 0);g.It(q)})}; +omm=function(m,e){e?e.errorMetadata&&g.LD(new g.Nr(m+" failed with status "+e.errorMetadata.status)):g.LD(new g.Nr(m+" failed with empty response"))}; +Va=function(){this.state=1;this.PV=null}; +UOb=function(m,e,Z,M,k,K){var q=q===void 0?"trayride":q;Z?(m.sx(2),Gj(Z,function(){if(window[q])Y8G(m,M,q,k);else{m.sx(3);var S=yM(Z),a=document.getElementById(S);a&&(sE(S),a.parentNode.removeChild(a));g.LD(new g.Nr("Unable to load Botguard","from "+Z))}},K)):e?(K=g.SU("SCRIPT"),e instanceof Jc?(K.textContent=Wo(e),zA(K)):K.textContent=e,K.nonce=Of(window),document.head.appendChild(K),document.head.removeChild(K),window[q]?Y8G(m,M,q,k):(m.sx(4),g.LD(new g.Nr("Unable to load Botguard from JS")))): +g.LD(new g.Nr("Unable to load VM; no url or JS provided"))}; +Y8G=function(m,e,Z,M){m.sx(5);try{var k=new F6({program:e,globalName:Z,C5:{disable:!g.SC("att_web_record_metrics"),AD:"aGIf"}});k.TR.then(function(){m.sx(6);M&&M(e)}); +m.v3(k)}catch(K){m.sx(7),K instanceof Error&&g.LD(K)}}; +Wj=function(){var m=g.zK("yt.abuse.playerAttLoader");return m&&["bgvma","bgvmb","bgvmc"].every(function(e){return e in m})?m:null}; +zp=function(){Va.apply(this,arguments)}; +bWy=function(m){switch(m){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:g.Ld(m,"unknown result type")}}; +tZm=function(m){if(!m||!m.adPlacements&&!m.adSlots)return!1;for(var e=g.r(m.adPlacements||[]),Z=e.next();!Z.done;Z=e.next())if(Z=Z.value)if(Z=Z.adPlacementRenderer,Z!=null&&(Z.config&&Z.config.adPlacementConfig&&Z.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;m=g.r(m.adSlots||[]);for(e=m.next();!e.done;e=m.next()){var M=Z=void 0;if(((Z=g.t(e.value,g.Pj))==null?void 0:(M=Z.adSlotMetadata)==null?void 0:M.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +Q2b=function(m,e){var Z=[];e?e.isTrusted===!0?Z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):e.isTrusted===!1?Z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):Z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):Z.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");g.m1(0,"a.s_",{metadata:m,states:Z});g.CE("ASDSTAT",0)}; +g.m1=function(m,e,Z){e=HW1[e];var M,k,K={detected:m===0,source:""+e.S+((M=Z.triggerContext)!=null?M:"")+((k=Z.Dq)!=null?k:""),detectionStates:Z.states,durationMs:Z.x_};Z.metadata&&(K.contentCpn=Z.metadata.contentCpn,K.adCpn=Z.metadata.adCpn);g.D2("biscottiBasedDetection",K);e.X!==void 0&&(Z=Number(g.fE("CATSTAT",0)),e.X!==void 0?(e=e.X,m=bWy(m),m=Z&~(3<e;m=Z}else m=!1;return m}; +gMP=function(m){m=m.split("");Aw.t2(m,35);Aw.m8(m,3);Aw.Zy(m,50);Aw.t2(m,34);Aw.t2(m,40);Aw.Zy(m,24);Aw.m8(m,3);Aw.Zy(m,31);return m.join("")}; +CR=function(m,e,Z,M){!m&&(Z===void 0?0:Z)&&g.LD(Error("Player URL validator detects invalid url. "+(M===void 0?"":M)+": "+e));return m}; +fR=function(m,e){return e&&e.test(m)?!0:!1}; +oz=function(m){return(m=XSK&&XSK.exec(m))?m[0]:""}; +d5=function(m){var e=e===void 0?!1:e;return CR(fR(m,iac),m,e,"Trusted Stream URL")}; +g.Bi=function(m){var e=e===void 0?!1:e;return CR(fR(m,xYK),m,e,"Trusted Image URL")}; +uVc=function(m){var e=e===void 0?!1:e;return CR(fR(m,ltK),m,e,"Trusted Promoted Video Domain URL")}; +hVt=function(m){var e=e===void 0?!1:e;return CR(fR(m,RVI),m,e,"Drm Licensor URL")}; +$Ys=function(m,e){e=e===void 0?!1:e;return CR(fR(m,TDk),m,e,"Captions URL")}; +FmI=function(m){m=new g.rB(m);IY(m,document.location.protocol);A3(m,document.location.hostname);document.location.port&&CH(m,document.location.port);return m.toString()}; +Ed=function(m){m=new g.rB(m);IY(m,document.location.protocol);return m.toString()}; +g.wS3=function(m){var e=this;this.videoData=m;m={};this.X=(m.c1a=function(){var Z=[];if(g.r5.isInitialized()){var M="";e.videoData&&e.videoData.P4&&(M=e.videoData.P4+("&r1b="+e.videoData.clientPlaybackNonce));var k={};M=(k.atr_challenge=M,k);g.nB("bg_v",void 0,"player_att");M=M===void 0?{}:M;(M=g.r5.invoke(M))?(g.nB("bg_s",void 0,"player_att"),Z.push("r1a="+M)):(g.nB("bg_e",void 0,"player_att"),Z.push("r1c=2"))}else g.nB("bg_e",void 0,"player_att"),window.trayride||window.botguard?Z.push("r1c=1"): +Z.push("r1c=4");Z.push("r1d="+g.r5.getState());return Z.join("&")},m.c6a=function(Z){return"r6a="+(Number(Z.c)^LB())},m.c6b=function(Z){return"r6b="+(Number(Z.c)^Number(g.fE("CATSTAT",0)))},m); +this.videoData&&this.videoData.P4?this.nx=g.Q4(this.videoData.P4):this.nx={}}; +g.nMR=function(m){if(m.videoData&&m.videoData.P4){for(var e=[m.videoData.P4],Z=g.r(Object.keys(m.X)),M=Z.next();!M.done;M=Z.next())M=M.value,m.nx[M]&&m.X[M]&&(M=m.X[M](m.nx))&&e.push(M);return e.join("&")}return null}; +g.Ud=function(m,e){vMI(m,{yE:g.Y4(e.experiments,"bg_vm_reinit_threshold"),cspNonce:e.cspNonce})}; +b_=function(m){var e=[];if(m){m=g.r(Object.entries(m));for(var Z=m.next();!Z.done;Z=m.next()){var M=g.r(Z.value);Z=M.next().value;M=M.next().value;M!==void 0&&(M=typeof M==="boolean"?""+ +M:(""+M).replace(/[:,=]/g,"_"),e.push(Z+"."+M))}}return e.join(";")}; +g.tw=function(m,e,Z){e=e===void 0?{}:e;this.errorCode=m;this.details=e;this.severity=Z===void 0?0:Z}; +Q6=function(m){return m===1||m===2}; +Hi=function(m,e){e=e===void 0?0:e;if(m instanceof g.tw)return m;m=m&&m instanceof Error?m:Error(""+m);Q6(e)?g.DA(m):g.LD(m);return new g.tw(e===1?"player.fatalexception":"player.exception",{name:""+m.name,message:""+m.message},e)}; +cVc=function(){var m=XMLHttpRequest.prototype.fetch;return!!m&&m.length===3}; +LR=function(m){m=m===void 0?2592E3:m;if(m>0&&!(qr()>(0,g.G)()-m*1E3))return 0;m=g.Kr("yt-player-quality");if(typeof m==="string"){if(m=Dv[m],m>0)return m}else if(m instanceof Object)return m.quality;return 0}; +sd=function(){var m=g.Kr("yt-player-proxima-pref");return m==null?null:m}; +NDI=function(){var m=g.Kr("yt-player-quality");if(m instanceof Object&&m.quality&&m.previousQuality){if(m.quality>m.previousQuality)return 1;if(m.quality0&&S[0]?q.lB(S[0]):q.lB("mediaelement");if(fty[a]){var v=fty[a];break a}}}catch(X){}v="AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}M.embeddedPlayerContext=K.call(k,{},m,{autoplayBrowserPolicy:v,autoplayIntended:e.tf||e.uP||e.mutedAutoplay,autoplayStatus:e.tf||e.uP||e.mutedAutoplay?Z!==1&&Z!==2&&Z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":e.wd?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"})}}; +EMm=function(m,e){Cc(m,2,e.A_,V6,3);Cc(m,3,e.As,dYm,3);Il(m,4,e.onesieUstreamerConfig);Il(m,9,e.HE);Cc(m,10,e.tI,Wi,3);Cc(m,15,e.reloadPlaybackParams,BDs,3)}; +UYK=function(m,e){Cc(m,1,e.formatId,zE,3);NJ(m,2,e.startTimeMs);NJ(m,3,e.durationMs);NJ(m,4,e.EU);NJ(m,5,e.bR);Cc(m,9,e.R2,Ygs,3);Cc(m,11,e.Wb,Pi,1);Cc(m,12,e.zl,Pi,1)}; +baI=function(m,e){AK(m,1,e.videoId);NJ(m,2,e.lmt)}; +Ygs=function(m,e){if(e.JF)for(var Z=0;Z>31));NJ(m,16,e.kS);NJ(m,17,e.detailedNetworkType);NJ(m,18,e.Sv);NJ(m,19,e.PF);NJ(m,21,e.V4);NJ(m,23,e.DO);NJ(m,28,e.XA);NJ(m,29,e.D0);NJ(m,34,e.visibility);Z=e.playbackRate;if(Z!==void 0){var M=new ArrayBuffer(4);(new Float32Array(M))[0]=Z;Z=(new Uint32Array(M))[0];if(Z!==void 0)for(cj(m,285),nc(m,4),M=0;M<4;)m.view.setUint8(m.pos,Z&255),Z>>=8,m.pos+=1,M+=1}NJ(m,36,e.x5); +Cc(m,38,e.mediaCapabilities,HaP,3);NJ(m,39,e.x0);NJ(m,40,e.uy);NJ(m,44,e.playerState);ro(m,46,e.Tr);NJ(m,48,e.xr);NJ(m,50,e.mQ);NJ(m,51,e.O0);NJ(m,54,e.xY);ro(m,56,e.Zu);NJ(m,57,e.AL);ro(m,58,e.bF);NJ(m,59,e.JD);NJ(m,60,e.If);ro(m,61,e.isPrefetch);NJ(m,62,e.Ck);Il(m,63,e.sabrLicenseConstraint);NJ(m,64,e.N2);NJ(m,66,e.Tt);NJ(m,67,e.OD);NJ(m,68,e.YS);AK(m,69,e.audioTrackId);ro(m,71,e.LF);Cc(m,72,e.EG,Qw7,1);NJ(m,74,e.W1);NJ(m,75,e.M5)}; +HaP=function(m,e){if(e.videoFormatCapabilities)for(var Z=0;Z>31));AK(m,2,e.message)}; +VaP=function(m,e){NJ(m,1,e.clientState);Cc(m,2,e.XB,Oa1,1)}; +jws=function(m,e){Il(m,1,e.i_);Cc(m,2,e.Oi,JVR,3);Cc(m,3,e.coldStartInfo,VaP,3)}; +yV1=function(m,e){NJ(m,1,e.type);Il(m,2,e.value)}; +Gqm=function(m,e){AK(m,1,e.hl);AK(m,12,e.deviceMake);AK(m,13,e.deviceModel);NJ(m,16,e.clientName);AK(m,17,e.clientVersion);AK(m,18,e.osName);AK(m,19,e.osVersion)}; +WmI=function(m,e){AK(m,1,e.name);AK(m,2,e.value)}; +zV7=function(m,e){AK(m,1,e.url);if(e.O4)for(var Z=0;Z1&&(this.L=m[1]==="2")}; +Ky=function(m,e,Z,M,k){this.S=m;this.X=e;this.U=Z;this.reason=M;this.JR=k===void 0?0:k}; +py=function(m,e){return m.S===e.S&&m.X===e.X&&m.U===e.U&&m.reason===e.reason&&(!qM||m.JR===e.JR)}; +SN=function(m,e,Z,M){return new Ky(Dv[m]||0,Dv[e]||0,Z,M)}; +aL=function(m){if(qM&&m.JR)return!1;var e=Dv.auto;return m.S===e&&m.X===e}; +g6=function(m){return vD[m.X||m.S]||"auto"}; +tWR=function(m,e){e=Dv[e];return m.S<=e&&(!m.X||m.X>=e)}; +X2=function(m){return"["+m.S+"-"+m.X+", override: "+(m.U+", reason: "+m.reason+"]")}; +iR=function(m,e,Z){this.videoInfos=m;this.X=e;this.audioTracks=[];if(this.X){m=new Set;Z==null||Z({ainfolen:this.X.length});e=g.r(this.X);for(var M=e.next();!M.done;M=e.next())if(M=M.value,!M.MB||m.has(M.MB.id)){var k=void 0,K=void 0,q=void 0;(q=Z)==null||q({atkerr:!!M.MB,itag:M.itag,xtag:M.X,lang:((k=M.MB)==null?void 0:k.name)||"",langid:((K=M.MB)==null?void 0:K.id)||""})}else k=new k2(M.id,M.MB),m.add(M.MB.id),this.audioTracks.push(k);Z==null||Z({atklen:this.audioTracks.length})}}; +x2=function(){g.Y.apply(this,arguments);this.X=null}; +L_7=function(m,e,Z,M,k,K,q){if(m.X)return m.X;var S={},a=new Set,v={};if(lR(M)){for(var X in M.X)M.X.hasOwnProperty(X)&&(m=M.X[X],v[m.info.T$]=[m.info]);return v}X=QkK(e,M,S);K&&k({aftsrt:uR(X)});for(var x={},l=g.r(Object.keys(X)),R=l.next();!R.done;R=l.next()){R=R.value;for(var h=g.r(X[R]),w=h.next();!w.done;w=h.next()){w=w.value;var N=w.itag,I=void 0,C=R+"_"+(((I=w.video)==null?void 0:I.fps)||0);x.hasOwnProperty(C)?x[C]===!0?v[R].push(w):S[N]=x[C]:(I=RL(e,w,Z,M.isLive,a),I!==!0?(q.add(R),S[N]=I, +I==="disablevp9hfr"&&(x[C]="disablevp9hfr")):(v[R]=v[R]||[],v[R].push(w),x[C]=!0))}}K&&k({bfflt:uR(v)});for(var B in v)v.hasOwnProperty(B)&&(M=B,v[M]&&v[M][0].wy()&&(v[M]=v[M],v[M]=Hkt(e,v[M],S),v[M]=DeK(v[M],S)));K&&k(S);e=g.r(a.values());for(M=e.next();!M.done;M=e.next())(M=Z.S.get(M.value))&&--M.To;K&&k({aftflt:uR(v)});m.X=g.Av(v,function(b){return!!b.length}); +return m.X}; +GFt=function(m,e,Z,M,k,K,q,S){S=S===void 0?!1:S;if(e.yH&&q&&q.length>1&&!(e.JD>0||e.N)){for(var a=e.S||!!k,v=a&&e.Te?K:void 0,X=QkK(e,M),x=[],l=[],R={},h=0;h0&&l&&k&&(X=[q,Z],N=k.concat(l).filter(function(I){return I})); +if(N.length&&!e.bF){$2(N,X);if(a){a=[];e=g.r(N);for(M=e.next();!M.done;M=e.next())a.push(M.value.itag);K({hbdfmt:a.join(".")})}return g.rh(new iR(N,m,v))}N=mbm(e);N=g.u7(N,S);if(!N){if(x[q])return K=x[q],$2(K),g.rh(new iR(K,m,v));a&&K({novideo:1});return g.NC()}e.LJ&&(N==="1"||N==="1h")&&x[Z]&&(q=F2(x[N]),X=F2(x[Z]),X>q?N=Z:X===q&&eE7(x[Z])&&(N=Z));N==="9"&&x.h&&F2(x.h)>F2(x["9"])&&(N="h");e.Wq&&M.isLive&&N==="("&&x.H&&F2(x["("])<1440&&(N="H");a&&K({vfmly:w6(N)});e=x[N];if(!e.length)return a&&K({novfmly:w6(N)}), +g.NC();$2(e);return g.rh(new iR(e,m,v))}; +jkK=function(m,e){var Z=!(!m.m&&!m.M),M=!(!m.mac3&&!m.MAC3),k=!(!m.meac3&&!m.MEAC3);m=!(!m.i&&!m.I);e.xa=m;return Z||M||k||m}; +eE7=function(m){m=g.r(m);for(var e=m.next();!e.done;e=m.next())if(e=e.value,e.itag&&ZHK.has(e.itag))return!0;return!1}; +w6=function(m){switch(m){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return m}}; +uR=function(m){var e=[],Z;for(Z in m)if(m.hasOwnProperty(Z)){var M=Z;e.push(w6(M));M=g.r(m[M]);for(var k=M.next();!k.done;k=M.next())e.push(k.value.itag)}return e.join(".")}; +ypK=function(m,e,Z,M,k,K){var q={},S={};g.Ip(e,function(a,v){a=a.filter(function(X){var x=X.itag;if(!X.wV)return S[x]="noenc",!1;if(K.wr&&X.T$==="(h"&&K.mw)return S[x]="lichdr",!1;if(X.T$==="("||X.T$==="(h"){if(m.Z&&Z&&Z.flavor==="widevine"){var l=X.mimeType+"; experimental=allowed";(l=!!X.wV[Z.flavor]&&!!Z.X[l])||(S[x]=X.wV[Z.flavor]?"unspt":"noflv");return l}if(!ny(m,cD.CRYPTOBLOCKFORMAT)&&!m.sE||m.S9)return S[x]=m.S9?"disvp":"vpsub",!1}return Z&&X.wV[Z.flavor]&&Z.X[X.mimeType]?!0:(S[x]=Z?X.wV[Z.flavor]? +"unspt":"noflv":"nosys",!1)}); +a.length&&(q[v]=a)}); +M&&Object.entries(S).length&&k(S);return q}; +DeK=function(m,e){var Z=g.pB(m,function(M,k){return k.video.fps>32?Math.min(M,k.video.width):M},Infinity); +Z32||M.video.widthm.C)return"max"+m.C;if(m.XG&&e.T$==="h"&&e.video&&e.video.X>1080)return"blkhigh264";if(e.T$==="(h"&&!Z.C)return"enchdr";if((M===void 0?0:M)&&NM(e)&&!m.kG)return"blk51live";if((e.T$==="MAC3"||e.T$==="mac3")&&!m.Z)return"blkac3";if((e.T$==="MEAC3"||e.T$==="meac3")&&!m.L)return"blkeac3";if((e.T$==="M"||e.T$==="m")&&!m.AR)return"blkaac51";if((e.T$=== +"so"||e.T$==="sa")&&!m.S9)return"blkamb";if(!m.wr&&e.wV&&e.wV.fairplay&&(e.T$==="("||e.T$==="(h"||e.T$==="A"||e.T$==="MEAC3"))return"cbc";if((e.T$==="i"||e.T$==="I")&&!m.Bq)return"blkiamf";if(e.itag==="774"&&!m.Qh)return"blkouh";var K,q;if(m.tR&&(e.T$==="1"||e.T$==="1h")&&((K=e.video)==null?0:K.X)&&((q=e.video)==null?void 0:q.X)>m.tR)return"av1cap";if((M=Z.S.get(e.T$))&&M.To>0)return k.add(e.T$),"byerr";var S;if((S=e.video)==null?0:S.fps>32){if(!Z.Qh&&!ny(Z,cD.FRAMERATE))return"capHfr";if(m.KB&&e.video.X>= +4320)return"blk8khfr";if(r6(e)){if(m.NP&&e.wV&&e.video.X>=1440)return"disablevp9hfr";if(m.Sp&&Yl("appletv5")&&e.wV)return"atv5sfr"}}if(m.JR&&e.JR>m.JR)return"ratecap";m=MnK(Z,e);return m!==!0?m:!0}; +$2=function(m,e){e=e===void 0?[]:e;g.dX(m,function(Z,M){var k=M.JR-Z.JR;if(!Z.wy()||!M.wy())return k;var K=M.video.height*M.video.width-Z.video.height*Z.video.width;!K&&e&&e.length>0&&(Z=e.indexOf(Z.T$)+1,M=e.indexOf(M.T$)+1,K=Z===0||M===0?M||-1:Z-M);K||(K=k);return K})}; +g.IL=function(m,e){this.S=m;this.Z=e===void 0?!1:e;this.U=this.path=this.scheme="";this.X={};this.url=""}; +Cy=function(m){AZ(m);return m.U}; +fy=function(m){return m.S?m.S.startsWith("local"):m.scheme==="local"}; +kNs=function(m){AZ(m);return g.op(m.X,function(e){return e!==null})}; +oL=function(m){AZ(m);var e=decodeURIComponent(m.get("mn")||"").split(",");return m.path==="/videoplayback"&&e.length>1&&!!e[1]}; +d6=function(m,e){e=e===void 0?!1:e;AZ(m);if(m.path!=="/videoplayback"){var Z=m.clone();Z.set("playerfallback","1");return Z}var M=m.Ya();Z=new g.rB(M);var k=m.get("fvip"),K=decodeURIComponent(m.get("mn")||"").split(",");if(k&&K&&K.length>1&&K[1])return M=Z.X,m=M.replace(/^[^.]*/,""),A3(Z,(M.indexOf("rr")===0?"rr":"r")+k+"---"+K[1]+m),Z=new g.IL(Z.toString()),Z.set("fallback_count","1"),Z;if(e)return Z=m.clone(),Z.set("fallback_count","1"),Z;k=Z.X.match("\\.a1\\.googlevideo\\.com$");Z.X.match("\\.googlevideo\\.com$")? +(A3(Z,"redirector.googlevideo.com"),M=Z.toString()):Z.X.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(A3(Z,"www.youtube.com"),M=Z.toString()):(Z=FmI(M),d5(Z)&&(M=Z));Z=new g.IL(M);Z.set("cmo=pf","1");k&&Z.set("cmo=td","a1.googlevideo.com");return Z}; +AZ=function(m){if(m.S){if(!d5(m.S)&&!m.S.startsWith("local"))throw new g.Nr("Untrusted URL",m.S);var e=m.S;e=e instanceof g.rB?e.clone():new g.rB(e);m.scheme=e.Z;m.U=e.X+(e.C!=null?":"+e.C:"");var Z=e.S;if(Z.startsWith("/videoplayback"))m.path="/videoplayback",Z=Z.slice(14);else if(Z.startsWith("/initplayback"))m.path="/initplayback",Z=Z.slice(13);else if(Z.startsWith("/api/manifest")){var M=Z.indexOf("/",12),k=Z.indexOf("/",M+1);M>0&&k>0?(m.path=Z.slice(0,k),Z=Z.slice(k+1)):(m.path=Z,Z="")}else m.path= +Z,Z="";M=m.X;m.X=KrK(Z);Object.assign(m.X,qNy(e.U.toString()));Object.assign(m.X,M);m.X.file==="index.m3u8"&&(delete m.X.file,m.path+="/file/index.m3u8");m.S="";m.url="";m.Z&&(e=qh(),AZ(m),Z=m.X[e]||null)&&(Z=p17[0](Z),m.set(e,Z),m.Z||qh(""))}}; +SNP=function(m){AZ(m);var e=m.scheme+(m.scheme?"://":"//")+m.U+m.path;if(kNs(m)){var Z=[];g.Ip(m.X,function(M,k){M!==null&&Z.push(k+"="+M)}); +e+="?"+Z.join("&")}return e}; +KrK=function(m){m=m.split("/");var e=0;m[0]||e++;for(var Z={};e0?ahG(e,M.slice(0,k),M.slice(k+1)):M&&(e[M]="")}return e}; +ahG=function(m,e,Z){if(e==="cmo"){var M;(M=Z.indexOf("="))>=0?(e="cmo="+Z.slice(0,M),Z=Z.slice(M+1)):(M=Z.indexOf("%3D"))>=0&&(e="cmo="+Z.slice(0,M),Z=Z.slice(M+3))}m[e]=Z}; +BD=function(m){var e=g.t(m,vKK)||m.signatureCipher;m={Np:!1,ex:"",dX:"",s:""};if(!e)return m;e=g.Q4(e);m.Np=!0;m.ex=e.url;m.dX=e.sp;m.s=e.s;return m}; +Eu=function(m,e,Z,M,k,K,q,S,a){this.Wv=m;this.startTime=e;this.duration=Z;this.ingestionTime=M;this.sourceURL=k;this.A5=a;this.endTime=e+Z;this.X=q||0;this.range=K||null;this.pending=S||!1;this.A5=a||null}; +g.Y2=function(){this.segments=[];this.X=null;this.S=!0;this.U=""}; +gK1=function(m,e){if(e>m.ze())m.segments=[];else{var Z=g.l7(m.segments,function(M){return M.Wv>=e},m); +Z>0&&m.segments.splice(0,Z)}}; +Uu=function(m,e,Z,M,k){k=k===void 0?!1:k;this.data=m;this.offset=e;this.size=Z;this.type=M;this.X=(this.S=k)?0:8;this.dataOffset=this.offset+this.X}; +bR=function(m){var e=m.data.getUint8(m.offset+m.X);m.X+=1;return e}; +tZ=function(m){var e=m.data.getUint16(m.offset+m.X);m.X+=2;return e}; +Qi=function(m){var e=m.data.getInt32(m.offset+m.X);m.X+=4;return e}; +HD=function(m){var e=m.data.getUint32(m.offset+m.X);m.X+=4;return e}; +DJ=function(m){var e=m.data;var Z=m.offset+m.X;e=e.getUint32(Z)*4294967296+e.getUint32(Z+4);m.X+=8;return e}; +Ly=function(m,e){e=e===void 0?NaN:e;if(isNaN(e))var Z=m.size;else for(Z=m.X;Z1?Math.ceil(k*e):Math.floor(k*e))}m.skip(1);Z=bR(m)<<16|tZ(m);if(Z&256){M=Z&1;k=Z&4;var K=Z&512,q=Z&1024,S=Z&2048;Z=HD(m);M&&m.skip(4);k&&m.skip(4);M=(K?4:0)+(q?4:0)+(S?4:0);for(k=0;k1?Math.ceil(q*e):Math.floor(q*e)),m.skip(M)}}}; +PD=function(m){m=new DataView(m.buffer,m.byteOffset,m.byteLength);return(m=g.WD(m,0,1836476516))?g.zB(m):NaN}; +ZL=function(m,e,Z){for(;mC(m,e);){var M=eu(m,e);if(M.type===Z)return M;e+=M.size}return null}; +g.WD=function(m,e,Z){for(;mC(m,e);){var M=eu(m,e);if(M.type===Z)return M;e=Mo(M.type)?e+8:e+M.size}return null}; +g.kD=function(m){if(m.data.getUint8(m.dataOffset)){var e=m.data;m=m.dataOffset+4;e=e.getUint32(m)*4294967296+e.getUint32(m+4)}else e=m.data.getUint32(m.dataOffset+4);return e}; +eu=function(m,e){var Z=m.getUint32(e),M=m.getUint32(e+4);return new Uu(m,e,Z,M)}; +g.zB=function(m){var e=m.data.getUint8(m.dataOffset)?20:12;return m.data.getUint32(m.dataOffset+e)}; +$by=function(m){m=new Uu(m.data,m.offset,m.size,m.type,m.S);var e=bR(m);m.skip(7);var Z=HD(m);if(e===0){e=HD(m);var M=HD(m)}else e=DJ(m),M=DJ(m);m.skip(2);for(var k=tZ(m),K=[],q=[],S=0;S122)return!1}return!0}; +Mo=function(m){return m===1701082227||m===1836019558||m===1836019574||m===1835297121||m===1835626086||m===1937007212||m===1953653094||m===1953653099||m===1836475768}; +Frm=function(m){m.skip(4);return{hq:Ly(m,0),value:Ly(m,0),AX:HD(m),bO:HD(m),jb:HD(m),id:HD(m),Me:Ly(m),offset:m.offset}}; +g.w1I=function(m){var e=ZL(m,0,1701671783);if(!e)return null;var Z=Frm(e),M=Z.hq;Z=Vi(Z.Me);if(m=ZL(m,e.offset+e.size,1701671783))if(m=Frm(m),m=Vi(m.Me),Z&&m){e=g.r(Object.keys(m));for(var k=e.next();!k.done;k=e.next())k=k.value,Z[k]=m[k]}return Z?new Ou(Z,M):null}; +Kl=function(m,e){for(var Z=ZL(m,0,e);Z;){var M=Z;M.type=1936419184;M.data.setUint32(M.offset+4,1936419184);Z=ZL(m,Z.offset+Z.size,e)}}; +g.qo=function(m,e){for(var Z=0,M=[];mC(m,Z);){var k=eu(m,Z);k.type===e&&M.push(k);Z=Mo(k.type)?Z+8:Z+k.size}return M}; +nK7=function(m,e){var Z=g.WD(m,0,1937011556),M=g.WD(m,0,1953654136);if(!Z||!M||m.getUint32(Z.offset+12)>=2)return null;var k=new DataView(e.buffer,e.byteOffset,e.length),K=g.WD(k,0,1937011556);if(!K)return null;e=k.getUint32(K.dataOffset+8);M=k.getUint32(K.dataOffset+12);if(M!==1701733217&&M!==1701733238)return null;M=new X17(m.byteLength+e);GB(M,m,0,Z.offset+12);M.data.setInt32(M.offset,2);M.offset+=4;GB(M,m,Z.offset+16,Z.size-16);GB(M,k,k.byteOffset+K.dataOffset+8,e);GB(M,m,Z.offset+Z.size,m.byteLength- +(Z.offset+Z.size));Z=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(k=Z.next();!k.done;k=Z.next())k=g.WD(m,0,k.value),M.data.setUint32(k.offset,k.size+e);m=g.WD(M.data,0,1953654136);M.data.setUint32(m.offset+16,2);return M.data}; +c3K=function(m){var e=g.WD(m,0,1937011556);if(!e)return null;var Z=m.getUint32(e.dataOffset+12);if(Z!==1701733217&&Z!==1701733238)return null;e=ZL(m,e.offset+24+(Z===1701733217?28:78),1936289382);if(!e)return null;Z=ZL(m,e.offset+8,1935894637);if(!Z||m.getUint32(Z.offset+12)!==1667392371)return null;e=ZL(m,e.offset+8,1935894633);if(!e)return null;e=ZL(m,e.offset+8,1952804451);if(!e)return null;Z=new Uint8Array(16);for(var M=0;M<16;M++)Z[M]=m.getInt8(e.offset+16+M);return Z}; +pl=function(m,e){this.X=m;this.pos=0;this.start=e||0}; +X8=function(m,e,Z){var M=new pl(Z);if(!Su(M,m))return!1;M=a6(M);if(!vd(M,e))return!1;for(m=0;e;)e>>>=8,m++;e=M.start+M.pos;var k=gq(M,!0);M=m+(M.start+M.pos-e)+k;M=M>9?NBK(M-9,8):NBK(M-2,1);m=e-m;Z.setUint8(m++,236);for(e=0;eZ;k++)Z=Z*256+iz(m),M*=128;return e?Z-M:Z}; +lz=function(m){var e=gq(m,!0);m.pos+=e}; +A3s=function(m){if(!vd(m,440786851,!0))return null;var e=m.pos;gq(m,!1);var Z=gq(m,!0)+m.pos-e;m.pos=e+Z;if(!vd(m,408125543,!1))return null;gq(m,!0);if(!vd(m,357149030,!0))return null;var M=m.pos;gq(m,!1);var k=gq(m,!0)+m.pos-M;m.pos=M+k;if(!vd(m,374648427,!0))return null;var K=m.pos;gq(m,!1);var q=gq(m,!0)+m.pos-K,S=new Uint8Array(Z+12+k+q),a=new DataView(S.buffer);S.set(new Uint8Array(m.X.buffer,m.X.byteOffset+e,Z));a.setUint32(Z,408125543);a.setUint32(Z+4,33554431);a.setUint32(Z+8,4294967295); +S.set(new Uint8Array(m.X.buffer,m.X.byteOffset+M,k),Z+12);S.set(new Uint8Array(m.X.buffer,m.X.byteOffset+K,q),Z+12+k);return S}; +uz=function(m){var e=m.pos;m.pos=0;var Z=1E6;Su(m,[408125543,357149030,2807729])&&(Z=xD(m));m.pos=e;return Z}; +Cts=function(m,e){var Z=m.pos;m.pos=0;if(m.X.getUint8(m.pos)!==160&&!R6(m)||!vd(m,160))return m.pos=Z,NaN;gq(m,!0);var M=m.pos;if(!vd(m,161))return m.pos=Z,NaN;gq(m,!0);iz(m);var k=iz(m)<<8|iz(m);m.pos=M;if(!vd(m,155))return m.pos=Z,NaN;M=xD(m);m.pos=Z;return(k+M)*e/1E9}; +R6=function(m){if(!fhy(m)||!vd(m,524531317))return!1;gq(m,!0);return!0}; +fhy=function(m){if(m.Fr()){if(!vd(m,408125543))return!1;gq(m,!0)}return!0}; +Su=function(m,e){for(var Z=0;Z=m.X.byteLength)return!1;for(var M=m.pos;gq(m,!1)!==e;)if(lz(m),M=m.pos,m.pos>=m.X.byteLength)return!1;Z&&(m.pos=M);return!0}; +NBK=function(m,e){e||(e=Math.ceil(Math.log(m+2)/Math.log(2)/7));for(var Z=1<<8-e,M=[];M.length0){var M=qNy(e.substring(Z+1));g.Ip(M,function(k,K){this.set(K,k)},m); +e=e.substring(0,Z)}e=KrK(e);g.Ip(e,function(k,K){this.set(K,k)},m)}; +dbI=function(m){var e=m.WI.Ya(),Z=[];g.Ip(m.X,function(k,K){Z.push(K+"="+k)}); +if(!Z.length)return e;var M=Z.join("&");m=kNs(m.WI)?"&":"?";return e+m+M}; +T7=function(m,e){var Z=new g.IL(e);(e=Z.get("req_id"))&&m.set("req_id",e);g.Ip(m.X,function(M,k){Z.set(k,null)}); +return Z}; +BB1=function(){this.Z=this.U=this.X=this.timedOut=this.started=this.L=this.S=0}; +$D=function(m){m.L=(0,g.G)();m.started=0;m.timedOut=0;m.X=0}; +EKt=function(m,e){var Z=m.started+m.X*4;e&&(Z+=m.U);Z=Math.max(0,Z-3);return Math.pow(1.6,Z)}; +F8=function(m,e){m[e]||(m[e]=new BB1);return m[e]}; +wq=function(m){this.K=this.j=this.L=this.U=0;this.N=this.C=!1;this.X=m;this.S=m.clone()}; +YNy=function(m,e,Z){if(fy(m.X))return!1;var M=F8(Z,Cy(m.X));if(M.timedOut<1&&M.X<1)return!1;M=M.timedOut+M.X;m=nl(m,e);Z=F8(Z,Cy(m));return Z.timedOut+Z.X+01?e=e.o_:(Z=F8(Z,No(m,m.L0(e,Z),e)),e=Math.max(m.L,Z.timedOut)+e.vP*(m.U-m.L)+.25*m.j,e=e>3?1E3*Math.pow(1.6,e-3):0);return e===0?!0:m.K+e<(0,g.G)()}; +UbI=function(m,e,Z){m.X.set(e,Z);m.S.set(e,Z);m.Z&&m.Z.set(e,Z)}; +bHb=function(m,e,Z,M,k){++m.U;e&&++m.L;Cy(Z.WI).startsWith("redirector.")&&(m.X=m.S.clone(),delete m.Z,M.qQ&&delete k[Cy(m.X)])}; +I6=function(m){return(m.itag||"")+";"+(m.lmt||0)+";"+(m.xtags||"")}; +AJ=function(m,e,Z,M){this.initRange=Z;this.indexRange=M;this.X=null;this.S=!1;this.L=0;this.U=null;this.info=e;this.i9=new wq(m)}; +Cl=function(m,e){this.start=m;this.end=e;this.length=e-m+1}; +fl=function(m){m=m.split("-");var e=Number(m[0]),Z=Number(m[1]);if(!isNaN(e)&&!isNaN(Z)&&m.length===2&&(m=new Cl(e,Z),!isNaN(m.start)&&!isNaN(m.end)&&!isNaN(m.length)&&m.length>0))return m}; +o6=function(m,e){return new Cl(m,m+e-1)}; +tnc=function(m){return m.end==null?{start:String(m.start)}:{start:String(m.start),end:String(m.end)}}; +dq=function(m){if(!m)return new Cl(0,0);var e=Number(m.start);m=Number(m.end);if(!isNaN(e)&&!isNaN(m)&&(e=new Cl(e,m),e.length>0))return e}; +Bd=function(m,e,Z,M,k,K,q,S,a,v,X,x){M=M===void 0?"":M;this.type=m;this.X=e;this.range=Z;this.source=M;this.Zo=X;this.clipId=x===void 0?"":x;this.j=[];this.L="";this.Wv=-1;this.N=this.K=0;this.L=M;this.Wv=k>=0?k:-1;this.startTime=K||0;this.duration=q||0;this.S=S||0;this.U=a>=0?a:this.range?this.range.length:NaN;this.Z=this.range?this.S+this.U===this.range.length:v===void 0?!!this.U:v;this.range?(this.u7=this.startTime+this.duration*this.S/this.range.length,this.C=this.duration*this.U/this.range.length, +this.bX=this.u7+this.C):QYm(this)}; +QYm=function(m){m.u7=m.startTime;m.C=m.duration;m.bX=m.u7+m.C}; +HHK=function(m,e,Z){var M=!(!e||e.X!==m.X||e.type!==m.type||e.Wv!==m.Wv);return Z?M&&!!e&&(m.range&&e.range?e.range.end===m.range.end:e.range===m.range)&&e.S+e.U===m.S+m.U:M}; +E_=function(m){return m.type===1||m.type===2}; +YD=function(m){return m.type===3||m.type===6}; +U_=function(m,e){return m.X===e.X?m.range&&e.range?m.range.start+m.S+m.U===e.range.start+e.S:m.Wv===e.Wv?m.S+m.U===e.S:m.Wv+1===e.Wv&&e.S===0&&m.Z:!1}; +Lrk=function(m,e){return m.Wv!==e.Wv&&e.Wv!==m.Wv+1||m.type!==e.type?!1:U_(m,e)?!0:Math.abs(m.u7-e.u7)<=1E-6&&m.Wv===e.Wv?!1:Dbs(m,e)}; +Dbs=function(m,e){return U_(m,e)||Math.abs(m.bX-e.u7)<=1E-6||m.Wv+1===e.Wv&&e.S===0&&m.Z?!0:!1}; +bz=function(m){return m.Wv+(m.Z?1:0)}; +sY3=function(m){m.length===1||g.tJ(m,function(Z){return!!Z.range}); +for(var e=1;e=e.range.start+e.S&&m.range.start+m.S+m.U<=e.range.start+e.S+e.U:m.Wv===e.Wv&&m.S>=e.S&&(m.S+m.U<=e.S+e.U||e.Z)}; +J3b=function(m,e){return m.X!==e.X?!1:m.type===4&&e.type===3&&m.X.Dx()?(m=m.X.Ew(m),g.Yd(m,function(Z){return J3b(Z,e)})):m.Wv===e.Wv&&!!e.U&&e.S+e.U>m.S&&e.S+e.U<=m.S+m.U}; +Hd=function(m,e){var Z=e.Wv;m.L="updateWithSegmentInfo";m.Wv=Z;if(m.startTime!==e.startTime||m.duration!==e.duration)m.startTime=e.startTime+m.K,m.duration=e.duration,QYm(m)}; +DL=function(m,e){this.qU=m;this.Z=this.X=null;this.L=this.IY=NaN;this.L0=this.requestId=null;this.i9=m[0].X.i9;this.S=e||"";if(this.qU[0].range&&this.qU[0].U>0){a:{for(e=1;e0)return Z[0]}return null}; +PtI=function(m){if(!m)return 0;var e=m.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return e?(Number(e[2])|0)*3600+(Number(e[4])|0)*60+(Number(e[6])|0):Number(m)|0}; +mnK=function(m){return m.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?m+"Z":m}; +uo=function(){this.X=[];this.S=null;this.C=0;this.U=[];this.L=!1;this.j="";this.Z=-1}; +e2P=function(m){var e=m.U;m.U=[];return e}; +Zp1=function(){this.Z=[];this.X=null;this.S={};this.U={}}; +qoG=function(m,e){var Z=[];e=Array.from(e.getElementsByTagName("SegmentTimeline"));e=g.r(e);for(var M=e.next();!M.done;M=e.next()){M=M.value;var k=M.parentNode.parentNode,K=null;k.nodeName==="Period"?K=MO7(m):k.nodeName==="AdaptationSet"?(k=k.getAttribute("id")||k.getAttribute("mimetype")||"",K=kt3(m,k)):k.nodeName==="Representation"&&(k=k.getAttribute("id")||"",K=KSk(m,k));if(K==null)return;K.update(M);g.Ns(Z,e2P(K))}g.Ns(m.Z,Z);Xy3(m.Z,function(q){return q.startSecs*1E3+q.X})}; +pN1=function(m){m.X&&(m.X.X=[]);g.Ip(m.S,function(e){e.X=[]}); +g.Ip(m.U,function(e){e.X=[]})}; +MO7=function(m){m.X||(m.X=new uo);return m.X}; +kt3=function(m,e){m.S[e]||(m.S[e]=new uo);return m.S[e]}; +KSk=function(m,e){m.U[e]||(m.U[e]=new uo);return m.U[e]}; +hM=function(m){var e=m===void 0?{}:m;m=e.gN===void 0?0:e.gN;var Z=e.kQ===void 0?!1:e.kQ;var M=e.lK===void 0?0:e.lK;var k=e.X5===void 0?0:e.X5;var K=e.xE===void 0?Infinity:e.xE;var q=e.xd===void 0?0:e.xd;var S=e.QH===void 0?!1:e.QH;e=e.Y$===void 0?!1:e.Y$;g.Y2.call(this);this.OH=this.bU=-1;this.h5=m;this.lK=M;this.kQ=Z;this.X5=k;this.xE=K;this.xd=q;((this.QH=S)||isFinite(K)&&this.xE>0)&&Z&&RD&&(this.S=!1,this.U="postLive");this.Y$=e}; +T$=function(m,e){return oO(m.segments,function(Z){return e-Z.Wv})}; +$7=function(m,e,Z){Z=Z===void 0?{}:Z;io.call(this,m,e,"",void 0,void 0,Z.gN||0);this.index=new hM(Z)}; +FI=function(m,e,Z){AJ.call(this,m,e);this.Z=Z;m=this.index=new g.Y2;m.S=!1;m.U="d"}; +SoI=function(m,e,Z){var M=m.index.mj(e),k=m.index.getStartTime(e),K=m.index.getDuration(e);Z?K=Z=0:Z=m.info.JR*K;return new DL([new Bd(3,m,void 0,"otfCreateRequestInfoForSegment",e,k,K,0,Z)],M)}; +aqG=function(m,e){if(!m.index.isLoaded()){var Z=[],M=e.Z;e=e.L.split(",").filter(function(X){return X.length>0}); +for(var k=0,K=0,q=0,S=/^(\d+)/,a=/r=(\d+)/,v=0;v0&&(e-=m.timestampOffset);var Z=NL(m)+e;gCb(m,Z);m.timestampOffset=e}; +gCb=function(m,e){g.cY(m.info.X.info)||m.info.X.info.KJ();m.U=e;if(g.cY(m.info.X.info)){var Z=m.W0();m=m.info.X.X;for(var M=NaN,k=NaN,K=0;mC(Z,K);){var q=eu(Z,K);isNaN(M)&&(q.type===1936286840?M=q.data.getUint32(q.dataOffset+8):q.type===1836476516&&(M=g.zB(q)));if(q.type===1952867444){!M&&m&&(M=PD(m));var S=g.kD(q);isNaN(k)&&(k=Math.round(e*M)-S);var a=q;S+=k;if(a.data.getUint8(a.dataOffset)){var v=a.data;a=a.dataOffset+4;v.setUint32(a,Math.floor(S/4294967296));v.setUint32(a+4,S&4294967295)}else a.data.setUint32(a.dataOffset+ +4,S)}K=Mo(q.type)?K+8:K+q.size}return!0}Z=new pl(m.W0());m=m.L?Z:new pl(new DataView(m.info.X.X.buffer));M=uz(m);m=Z.pos;Z.pos=0;if(R6(Z)&&vd(Z,231))if(k=gq(Z,!0),e=Math.floor(e*1E9/M),Math.ceil(Math.log(e)/Math.log(2)/8)>k)e=!1;else{for(M=k-1;M>=0;M--)Z.X.setUint8(Z.pos+M,e&255),e>>>=8;Z.pos=m;e=!0}else e=!1;return e}; +ID=function(m,e){e=e===void 0?!1:e;var Z=r_(m);m=e?0:m.info.C;return Z||m}; +r_=function(m){g.cY(m.info.X.info)||m.info.X.info.KJ();if(m.S&&m.info.type===6)return m.S.gN;if(g.cY(m.info.X.info)){var e=m.W0();var Z=0;e=g.qo(e,1936286840);e=g.r(e);for(var M=e.next();!M.done;M=e.next())M=$by(M.value),Z+=M.UX[0]/M.AX;Z=Z||NaN;if(!(Z>=0))a:{Z=m.W0();e=m.info.X.X;for(var k=M=0,K=0;mC(Z,M);){var q=eu(Z,M);if(q.type===1836476516)k=g.zB(q);else if(q.type===1836019558){!k&&e&&(k=PD(e));if(!k){Z=NaN;break a}var S=ZL(q.data,q.dataOffset,1953653094),a=S;S=k;var v=ZL(a.data,a.dataOffset, +1952868452);a=ZL(a.data,a.dataOffset,1953658222);var X=Qi(v);Qi(v);X&2&&Qi(v);v=X&8?Qi(v):0;var x=Qi(a),l=x&1;X=x&4;var R=x&256,h=x&512,w=x&1024;x&=2048;var N=HD(a);l&&Qi(a);X&&Qi(a);for(var I=l=0;I=Z+M)break}K.length||g.DA(new g.Nr("b189619593",""+e,""+Z,""+M));return new DL(K)}; +BY=function(m,e,Z,M,k,K){this.sampleRate=m===void 0?0:m;this.numChannels=e===void 0?0:e;this.spatialAudioType=Z===void 0?"SPATIAL_AUDIO_TYPE_NONE":Z;this.X=M===void 0?!1:M;this.U=k===void 0?0:k;this.S=K===void 0?0:K}; +h2I=function(m,e,Z,M,k,K){this.displayName=m;this.vssId=e;this.languageCode=Z;this.kind=M===void 0?"":M;this.xtags=k===void 0?"":k;this.id=K===void 0?"":K}; +$nK=function(m){if(m=m.colorInfo)if(m=m.transferCharacteristics)return Tgb[m];return null}; +Y7=function(m,e,Z,M,k,K,q,S,a){this.width=m;this.height=e;this.quality=K||Eq(m,e);this.X=Dv[this.quality];this.fps=Z||0;this.stereoLayout=!k||M!=null&&M!=="UNKNOWN"&&M!=="RECTANGULAR"?0:k;this.projectionType=M?M==="EQUIRECTANGULAR"&&k===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":M:"UNKNOWN";(m=q)||(m=Dv[this.quality],m===0?m="\u062a\u0644\u0642\u0627\u0626\u064a\u0629":(e=this.fps,Z=this.projectionType,m=m.toString()+(Z==="EQUIRECTANGULAR"||Z==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Z==="MESH"?"s":"p")+ +(e>55?"60":e>49?"50":e>39?"48":"")));this.qualityLabel=m;this.S=S||"";this.primaries=a||""}; +Eq=function(m,e){var Z=Math.max(m,e);m=Math.min(m,e);e=Uq[0];for(var M=0;M=Math.floor(K*16/9)*1.3||m>=K*1.3)return e;e=k}return"tiny"}; +QB=function(m,e,Z){Z=Z===void 0?{}:Z;this.id=m;this.mimeType=e;Z.JR>0||(Z.JR=16E3);Object.assign(this,Z);m=g.r(this.id.split(";"));this.itag=m.next().value;this.X=m.next().value;this.containerType=bo(e);this.T$=tM[this.itag]||""}; +r6=function(m){return m.T$==="9"||m.T$==="("||m.T$==="9h"||m.T$==="(h"}; +FSG=function(m){return m.T$==="H"||m.T$==="h"}; +HY=function(m){return m.T$==="9h"||m.T$==="(h"}; +DT=function(m){return m.T$==="1"||m.T$==="1h"}; +LV=function(m){return m.T$==="mac3"||m.T$==="meac3"||m.T$==="m"}; +NM=function(m){return m.T$==="MAC3"||m.T$==="MEAC3"||m.T$==="M"}; +g.cY=function(m){return m.containerType===1}; +wNG=function(m){return m.T$==="("||m.T$==="(h"||m.T$==="H"}; +sq=function(m){return m.mimeType==="application/x-mpegURL"}; +G$=function(m,e){return{itag:+m.itag,lmt:e?0:m.lastModified,xtags:m.X||""}}; +nCR=function(m){var e=navigator.mediaCapabilities;if(e==null||!e.decodingInfo||m.T$==="f")return Promise.resolve();var Z={type:m.audio&&m.video?"file":"media-source"};m.video&&(Z.video={contentType:m.mimeType,width:m.video.width||640,height:m.video.height||360,bitrate:m.JR*8||1E6,framerate:m.video.fps||30});m.audio&&(Z.audio={contentType:m.mimeType,channels:""+(m.audio.numChannels||2),bitrate:m.JR*8||128E3,samplerate:m.audio.sampleRate||44100});return e.decodingInfo(Z).then(function(M){m.S=M})}; +yB=function(m){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(m)}; +jc=function(m){return/(vp9|vp09|vp8|avc1|av01)/.test(m)}; +Oq=function(m){return m.includes("vtt")||m.includes("text/mp4")}; +bo=function(m){return m.indexOf("/mp4")>=0?1:m.indexOf("/webm")>=0?2:m.indexOf("/x-flv")>=0?3:m.indexOf("/vtt")>=0?4:0}; +JM=function(m,e,Z,M,k,K){var q=new BY;e in Dv||(e="small");e==="light"&&(e="tiny");M&&k?(k=Number(k),M=Number(M)):(k=Dv[e],M=Math.round(k*16/9));K=new Y7(M,k,0,null,void 0,e,K);m=unescape(m.replace(/"/g,'"'));return new QB(Z,m,{audio:q,video:K})}; +VB=function(m){var e="id="+m.id;m.video&&(e+=", res="+m.video.qualityLabel);var Z,M;return e+", byterate=("+((Z=m.rQ)==null?void 0:Z.toFixed(0))+", "+((M=m.JR)==null?void 0:M.toFixed(0))+")"}; +WY=function(m,e,Z){this.name=m;this.id=e;this.isDefault=Z}; +g.z$=function(){g.Wl.apply(this,arguments)}; +PY=function(){var m=g.zK("yt.player.utils.videoElement_");m||(m=g.SU("VIDEO"),g.Wy("yt.player.utils.videoElement_",m));return m}; +mg=function(m){var e=PY();return!!(e&&e.canPlayType&&e.canPlayType(m))}; +ZF=function(m){if(/opus/.test(m)&&e4&&!Rm("38")&&!g.ti())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(m);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(m);if(/webm/.test(m)&&!Dw())return!1;m==='audio/mp4; codecs="mp4a.40.2"'&&(m='video/mp4; codecs="avc1.4d401f"');return!!mg(m)}; +cQK=function(m){try{var e=ZF('video/mp4; codecs="avc1.42001E"')||ZF('video/webm; codecs="vp9"');return(ZF('audio/mp4; codecs="mp4a.40.2"')||ZF('audio/webm; codecs="opus"'))&&(e||!m)||mg('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(Z){return"html5.missingapi"}}; +M4=function(){var m=PY();return!(!m.webkitSupportsPresentationMode||typeof m.webkitSetPresentationMode!=="function")}; +kv=function(){var m=PY();try{var e=m.muted;m.muted=!e;return m.muted!==e}catch(Z){}return!1}; +NgR=function(){var m;return((m=navigator.connection)==null?void 0:m.type)||""}; +K8=function(m,e){return{start:function(Z){return m[Z]}, +end:function(Z){return e[Z]}, +length:m.length}}; +rQ3=function(m,e,Z){for(var M=[],k=[],K=0;K=e)return Z}catch(M){}return-1}; +S4=function(m,e){return p8(m,e)>=0}; +Iqs=function(m,e){if(!m)return NaN;e=p8(m,e);return e>=0?m.start(e):NaN}; +aX=function(m,e){if(!m)return NaN;e=p8(m,e);return e>=0?m.end(e):NaN}; +vJ=function(m){return m&&m.length?m.end(m.length-1):NaN}; +gy=function(m,e){m=aX(m,e);return m>=0?m-e:0}; +Xs=function(m,e,Z){for(var M=[],k=[],K=0;KZ||(M.push(Math.max(e,m.start(K))-e),k.push(Math.min(Z,m.end(K))-e));return K8(M,k)}; +iO=function(m,e,Z,M){g.m6.call(this);var k=this;this.Ss=m;this.start=e;this.end=Z;this.isActive=M;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.n7={error:function(){!k.MU()&&k.isActive&&k.Pv("error",k)}, +updateend:function(){!k.MU()&&k.isActive&&k.Pv("updateend",k)}}; +ev(this.Ss,this.n7);this.PP=this.isActive}; +lO=function(m,e,Z,M,k,K){g.m6.call(this);var q=this;this.Pq=m;this.Qn=e;this.id=Z;this.containerType=M;this.T$=k;this.wy=K;this.wS=this.O6=this.e0=null;this.m_=!1;this.appendWindowStart=this.timestampOffset=0;this.Z2=K8([],[]);this.wv=!1;this.Kq=[];this.GR=xv?[]:void 0;this.KE=function(a){return q.Pv(a.type,q)}; +var S;if((S=this.Pq)==null?0:S.addEventListener)this.Pq.addEventListener("updateend",this.KE),this.Pq.addEventListener("error",this.KE)}; +uO=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +RX=function(m,e){this.i9=m;this.X=e===void 0?!1:e;this.S=!1}; +hB=function(m,e,Z){Z=Z===void 0?!1:Z;g.Y.call(this);this.mediaElement=m;this.j9=e;this.isView=Z;this.C=0;this.Z=!1;this.L=!0;this.K=0;this.callback=null;this.N=!1;this.j9||(this.Qn=this.mediaElement.W_());this.events=new g.z$(this);g.U(this,this.events);this.U=new RX(this.j9?window.URL.createObjectURL(this.j9):this.Qn.webkitMediaSourceURL,!0);m=this.j9||this.Qn;zo(this.events,m,["sourceopen","webkitsourceopen"],this.VO);zo(this.events,m,["sourceclose","webkitsourceclose"],this.cR);this.j={updateend:this.BM}}; +AQb=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +C2k=function(m,e){Tu(m)?g.LW(function(){e(m)}):m.callback=e}; +fqR=function(m,e,Z){if($v){var M;Fs(m.mediaElement,{l:"mswssb",sr:(M=m.mediaElement.G)==null?void 0:wy(M)},!1);ev(e,m.j,m);ev(Z,m.j,m)}m.X=e;m.S=Z;g.U(m,e);g.U(m,Z)}; +oCG=function(m,e,Z,M){M=e.mimeType+(M===void 0?"":M);var k=Z.mimeType;e=e.T$;Z=Z.T$;var K;m.Y=(K=m.j9)==null?void 0:K.addSourceBuffer(k);var q;m.AR=M.split(";")[0]==="fakesb"?void 0:(q=m.j9)==null?void 0:q.addSourceBuffer(M);m.Qn&&(m.Qn.webkitSourceAddId("0",k),m.Qn.webkitSourceAddId("1",M));K=new lO(m.Y,m.Qn,"0",bo(k),Z,!1);M=new lO(m.AR,m.Qn,"1",bo(M),e,!0);fqR(m,K,M)}; +n8=function(m){return!!m.X||!!m.S}; +Tu=function(m){try{return cJ(m)==="open"}catch(e){return!1}}; +cJ=function(m){if(m.j9)return m.j9.readyState;switch(m.Qn.webkitSourceState){case m.Qn.SOURCE_OPEN:return"open";case m.Qn.SOURCE_ENDED:return"ended";default:return"closed"}}; +N4=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +dnI=function(m){Tu(m)&&(m.j9?m.j9.endOfStream():m.Qn.webkitSourceEndOfStream(m.Qn.EOS_NO_ERROR))}; +Bgc=function(m,e,Z,M){if(!m.X||!m.S)return null;var k=m.X.isView()?m.X.Ss:m.X,K=m.S.isView()?m.S.Ss:m.S,q=new hB(m.mediaElement,m.j9,!0);q.U=m.U;fqR(q,new iO(k,e,Z,M),new iO(K,e,Z,M));Tu(m)||m.X.Fh(m.X.cq());return q}; +ECP=function(m){var e;(e=m.X)==null||e.pU();var Z;(Z=m.S)==null||Z.pU();m.L=!1}; +Yot=function(m){return ry(function(e,Z){return g.nO(e,Z,4,1E3)},m,{format:"RAW", +method:"GET",withCredentials:!0})}; +g.UnK=function(m){var e;m.responseType&&m.responseType!=="text"?m.responseType==="arraybuffer"&&(e=qJ(new Uint8Array(m.response))):e=m.responseText;return!e||e.length>2048?"":e.indexOf("https://")===0?e:""}; +ry=function(m,e,Z){e.match(bpm);return m(e,Z).then(function(M){var k=g.UnK(M.xhr);return k?ry(m,k,Z):M.xhr})}; +C8=function(m,e,Z){m=m===void 0?"":m;e=e===void 0?null:e;Z=Z===void 0?!1:Z;g.m6.call(this);this.sourceUrl=m;this.isLivePlayback=Z;this.nB=this.duration=0;this.isPremiere=this.QH=this.Z=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.xE=this.X5=0;this.isOtf=this.gr=!1;this.kG=(0,g.G)();this.Y=Infinity;this.X={};this.U=new Map;this.state=this.UN=0;this.timeline=null;this.isManifestless=!1;this.S9=[];this.C=null;this.Qh=0;this.L="";this.sE=NaN;this.b9=this.mw=this.timestampOffset=this.j=0;this.FF= +this.Cv=NaN;this.Bq=0;this.Hv=this.K=!1;this.yh=[];this.wc={};this.AR=NaN;var M;this.tR=(M=e)==null?void 0:M.dc("html5_use_network_error_code_enums");tOy=!!e&&e.dc("html5_modern_vp9_mime_type");var k;IX=!((k=e)==null||!k.dc("html5_enable_flush_during_seek"))&&g.ti();var K;AB=!((K=e)==null||!K.dc("html5_enable_reset_audio_decoder"))&&g.ti()}; +QaP=function(m){return g.op(m.X,function(e){return!!e.info.video&&e.info.video.X>=2160})}; +PBI=function(m){return g.op(m.X,function(e){return!!e.info.video&&e.info.video.isHdr()})}; +hZ=function(m){return g.op(m.X,function(e){return!!e.info.wV})}; +Hpb=function(m){return g.op(m.X,function(e){return Oq(e.info.mimeType)})}; +f8=function(m){return g.op(m.X,function(e){return e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +oX=function(m){return g.op(m.X,function(e){return e.info.video?e.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +dy=function(m){return g.op(m.X,function(e){return e.info.video?e.info.video.projectionType==="MESH":!1})}; +Dnm=function(m){return g.op(m.X,function(e){return e.info.video?e.info.video.stereoLayout===1:!1})}; +LSk=function(m){return g.dk(m.X,function(e){return e.info.video?e.KH():!0})}; +lR=function(m){return g.op(m.X,function(e){return fy(e.i9.X)})}; +BJ=function(m,e){m.X[e.info.id]=e;m.U.set(I6(G$(e.info,m.gr)),e)}; +sab=function(m,e){return I6({itag:e.itag,lmt:m.gr?0:e.lmt||0,xtags:e.xtags})}; +Uj=function(m,e,Z){Z=Z===void 0?0:Z;var M=m.mimeType||"",k=m.itag;var K=m.xtags;k=k?k.toString():"";K&&(k+=";"+K);K=k;if(jc(M)){var q=m.width||640;k=m.height||360;var S=m.fps,a=m.qualityLabel,v=m.colorInfo,X=m.projectionType,x;m.stereoLayout&&(x=Gt7[m.stereoLayout]);var l=$nK(m)||void 0;if(v==null?0:v.primaries)var R=yQk[v.primaries]||void 0;q=new Y7(q,k,S,X,x,void 0,a,l,R);M=Ej(M,q,tM[m.itag||""]);IX&&(M+="; enableflushduringseek=true");AB&&(M+="; enableresetaudiodecoder=true")}var h;if(yB(M)){var w= +m.audioSampleRate;x=m.audioTrack;w=new BY(w?+w:void 0,m.audioChannels,m.spatialAudioType,m.isDrc,m.loudnessDb,m.trackAbsoluteLoudnessLkfs);x&&(R=x.displayName,k=x.id,x=x.audioIsDefault,R&&(h=new WY(R,k||"",!!x)))}var N;m.captionTrack&&(a=m.captionTrack,x=a.displayName,R=a.vssId,k=a.languageCode,S=a.kind,a=a.id,x&&R&&k&&(N=new h2I(x,R,k,S,m.xtags,a)));x=Number(m.bitrate)/8;R=Number(m.contentLength);k=Number(m.lastModified);a=m.drmFamilies;S=m.type;Z=Z&&R?R/Z:0;m=Number(m.approxDurationMs);if(e&&a){var I= +{};a=g.r(a);for(v=a.next();!v.done;v=a.next())(v=Yv[v.value])&&(I[v]=e[v])}return new QB(K,M,{audio:w,video:q,MB:h,wV:I,JR:x,rQ:Z,contentLength:R,lastModified:k,captionTrack:N,streamType:S,approxDurationMs:m})}; +bO=function(m,e,Z){Z=Z===void 0?0:Z;var M=m.type;var k=m.itag;var K=m.xtags;K&&(k=m.itag+";"+K);if(jc(M)){var q=(m.size||"640x360").split("x");q=new Y7(+q[0],+q[1],+m.fps,m.projection_type,+m.stereo_layout,void 0,m.quality_label,m.eotf,m.primaries);M=Ej(M,q,tM[m.itag]);IX&&(M+="; enableflushduringseek=true");AB&&(M+="; enableresetaudiodecoder=true")}var S;if(yB(M)){var a=new BY(+m.audio_sample_rate||void 0,+m.audio_channels||0,m.spatial_audio_type,!!m.drc);m.name&&(S=new WY(m.name,m.audio_track_id, +m.isDefault==="1"))}var v;m.caption_display_name&&m.caption_vss_id&&m.caption_language_code&&(v=new h2I(m.caption_display_name,m.caption_vss_id,m.caption_language_code,m.caption_kind,m.xtags,m.caption_id));K=Number(m.bitrate)/8;var X=Number(m.clen),x=Number(m.lmt);Z=Z&&X?X/Z:0;if(e&&m.drm_families){var l={};for(var R=g.r(m.drm_families.split(",")),h=R.next();!h.done;h=R.next())h=h.value,l[h]=e[h]}return new QB(k,M,{audio:a,video:q,MB:S,wV:l,JR:K,rQ:Z,contentLength:X,lastModified:x,captionTrack:v, +streamType:m.stream_type,approxDurationMs:Number(m.approx_duration_ms)})}; +jak=function(m){return g.Yd(m,function(e){return"FORMAT_STREAM_TYPE_OTF"===e.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +Op7=function(m){return g.Yd(m,function(e){return"FORMAT_STREAM_TYPE_OTF"===e.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +g.JQk=function(m,e){return m.timeline?rX(m.timeline.Z,e):m.S9.length?rX(m.S9,e):[]}; +tB=function(m,e,Z){e=e===void 0?"":e;Z=Z===void 0?"":Z;m=new g.IL(m,!0);m.set("alr","yes");Z&&(Z=gMP(decodeURIComponent(Z)),m.set(e,encodeURIComponent(Z)));return m}; +P21=function(m,e){var Z=x7(e,"id");Z=Z.replace(":",";");var M=x7(e,"mimeType"),k=x7(e,"codecs");M=k?M+'; codecs="'+k+'"':M;k=Number(x7(e,"bandwidth"))/8;var K=Number(lo(e,"BaseURL").getAttribute(m.L+":contentLength")),q=m.duration&&K?K/m.duration:0;if(jc(M)){var S=Number(x7(e,"width"));var a=Number(x7(e,"height")),v=Number(x7(e,"frameRate")),X=VOc(x7(e,m.L+":projectionType"));a:switch(x7(e,m.L+":stereoLayout")){case "layout_left_right":var x=1;break a;case "layout_top_bottom":x=2;break a;default:x= +0}S=new Y7(S,a,v,X,x)}if(yB(M)){var l=Number(x7(e,"audioSamplingRate"));var R=Number(x7(e.getElementsByTagName("AudioChannelConfiguration")[0],"value"));a=WSt(x7(e,m.L+":spatialAudioType"));l=new BY(l,R,a);a:{R=x7(e,"lang")||"und";if(a=lo(e,"Role"))if(X=x7(a,"value")||"",g.be(z2m,X)){a=R+"."+z2m[X];v=X==="main";m=x7(e,m.L+":langName")||R+" - "+X;R=new WY(m,a,v);break a}R=void 0}}if(e=lo(e,"ContentProtection"))if(e.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var h={};for(e=e.firstChild;e!= +null;e=e.nextSibling)e instanceof Element&&/SystemURL/.test(e.nodeName)&&(m=e.getAttribute("type"),a=e.textContent,m&&a&&(h[m]=a.trim()))}else h=void 0;return new QB(Z,M,{audio:l,video:S,MB:R,wV:h,JR:k,rQ:q,contentLength:K})}; +VOc=function(m){switch(m){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"}}; +WSt=function(m){switch(m){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"}}; +e0t=function(m,e){e=e===void 0?"":e;m.state=1;m.kG=(0,g.G)();return Yot(e||m.sourceUrl).then(function(Z){if(!m.MU()){m.UN=Z.status;Z=Z.responseText;var M=new DOMParser;Z=g.Mg(M,g.Mh(Z),"text/xml").getElementsByTagName("MPD")[0];m.Y=PtI(x7(Z,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(Z.attributes){M=g.r(Z.attributes);for(var k=M.next();!k.done;k=M.next())if(k=k.value,k.value==="http://youtube.com/yt/2012/10/10"){M=k.name.split(":")[1];break b}}M=""}m.L=M;m.isLive=m.Y=m.Y}; +MDs=function(m){m.C&&m.C.stop()}; +mUR=function(m){var e=m.Y;isFinite(e)&&(Q3(m)?m.refresh():(e=Math.max(0,m.kG+e-(0,g.G)()),m.C||(m.C=new g.eD(m.refresh,e,m),g.U(m,m.C)),m.C.start(e)))}; +kcK=function(m){m=m.X;for(var e in m){var Z=m[e].index;if(Z.isLoaded())return Z.ze()+1}return 0}; +HJ=function(m){return m.mw?m.mw-(m.j||m.timestampOffset):0}; +DF=function(m){return m.b9?m.b9-(m.j||m.timestampOffset):0}; +L8=function(m){if(!isNaN(m.sE))return m.sE;var e=m.X,Z;for(Z in e){var M=e[Z].index;if(M.isLoaded()&&!Oq(e[Z].info.mimeType)){e=0;for(Z=M.a_();Z<=M.ze();Z++)e+=M.getDuration(Z);e/=M.mp();e=Math.round(e/.5)*.5;M.mp()>10&&(m.sE=e);return e}if(m.isLive&&(M=e[Z],M.gN))return M.gN}return NaN}; +Kus=function(m,e){m=HF(m.X,function(M){return M.index.isLoaded()}); +if(!m)return NaN;m=m.index;var Z=m.fd(e);return m.getStartTime(Z)===e?e:Z=0&&k.segments.splice(K,1)}}}; +S63=function(m){for(var e in m.X)Oq(m.X[e].info.mimeType)||gK1(m.X[e].index,Infinity)}; +Gu=function(m,e,Z){for(var M in m.X){var k=m.X[M].index,K=e,q=Z;k.kQ&&(K&&(k.bU=Math.max(k.bU,K)),q&&(k.OH=Math.max(k.OH||0,q)))}Z&&(m.AR=Z/1E3)}; +aZP=function(m){m.b9=0;m.mw=0;m.Bq=0}; +y3=function(m){return m.Hv&&m.isManifestless?m.isLiveHeadPlayable:m.isLive}; +Ej=function(m,e,Z){j4===null&&(j4=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(tOy&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return j4||Z!=="9"&&Z!=="("?j4||Z!=="9h"&&Z!=="(h"||(m='video/webm; codecs="vp9.2"'):m='video/webm; codecs="vp9"',m;if(!j4&&!Oj||m!=='video/webm; codecs="vp9"'&&m!=='video/webm; codecs="vp9.2"')return m; +Z="00";var M="08",k="01",K="01",q="01";m==='video/webm; codecs="vp9.2"'&&(Z="02",M="10",e.primaries==="bt2020"&&(q=k="09"),e.S==="smpte2084"&&(K="16"),e.S==="arib-std-b67"&&(K="18"));return'video/webm; codecs="'+["vp09",Z,"51",M,"01",k,K,q,"00"].join(".")+'"'}; +V3=function(m,e,Z){m=""+m+(e>49?"p60":e>32?"p48":"");e=GE()[m];if(e!=null&&e>0)return e;e=JB.get(m);if(e!=null&&e>0)return e;Z=Z==null?void 0:Z.get(m);return Z!=null&&Z>0?Z:8192}; +vzP=function(m){this.Xq=m;this.JY=this.bF=this.wc=this.L=this.Z=this.AR=this.ZN=this.nB=this.S9=!1;this.lX=this.Xq.W("html5_disable_aac_preference");this.j=this.C=0;this.XG=!1;this.b9=!0;this.KB=!1;this.JD=0;this.sE=!1;this.tf=Infinity;this.aj=!1;this.LJ=!0;this.Hv=this.kG=!1;this.X={};this.Wq=this.S=this.N=!1;this.yh=0;this.uw=this.disableAv1=this.mw=this.xa=this.CR=!1;this.Te=this.Xq.Af();this.wr=this.Xq.experiments.dc("html5_enable_vp9_fairplay");this.JJ=this.Xq.W("html5_force_av1_for_testing"); +this.tR=g.Y4(this.Xq.experiments,"html5_av1_ordinal_cap");this.NP=this.Xq.W("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.yH=this.Xq.W("html5_account_onesie_format_selection_during_format_filter");this.JR=g.Y4(this.Xq.experiments,"html5_max_byterate");this.K=this.Xq.W("html5_sunset_aac_high_codec_family");this.Qh=this.Xq.W("html5_sunset_aac_high_codec_family");this.Bq=this.Xq.W("html5_enable_iamf_audio");this.qs=this.Xq.experiments.dc("html5_allow_capability_merge");this.Sp=this.Xq.W("html5_prefer_vp9_sfr")}; +mbm=function(m){if(m.nB)return["f"];var e="9h 9 h 8 (h ( H *".split(" ");m.sE&&(e.unshift("1"),e.unshift("1h"));m.bF&&e.unshift("h");m.Y&&(e=(gzm[m.Y]||[m.Y]).concat(e));return e}; +Ok3=function(m){var e=["o","a","A"];m.yh===1&&(m.AR&&(e=["m","M"].concat(e)),m.Z&&(e=["mac3","MAC3"].concat(e)),m.L&&(e=["meac3","MEAC3"].concat(e)),m.Bq&&(e=["i","I"].concat(e)));m.S9&&(e=["so","sa"].concat(e));!m.JY||m.wc||m.U||m.lX||e.unshift("a");m.ZN&&!m.K&&e.unshift("ah");m.U&&(e=(gzm[m.U]||[m.U]).concat(e));return e}; +WJ=function(m,e,Z,M){e=e===void 0?{}:e;if(M===void 0?0:M)return e.disabled=1,0;if(ny(m.S,cD.AV1_CODECS)&&ny(m.S,cD.HEIGHT)&&ny(m.S,cD.BITRATE))return e.isCapabilityUsable=1,8192;try{var k=CSs();if(k)return e.localPref=k}catch(S){}M=1080;k=navigator.hardwareConcurrency;k<=2&&(M=480);e.coreCount=k;if(k=g.Y4(m.experiments,"html5_default_av1_threshold"))M=e["default"]=k;!m.W("html5_disable_av1_arm_check")&&bN()&&(e.isArm=1,M=240);if(m=m.S.AR)e.mcap=m,M=Math.max(M,m);if(Z){var K,q;if(m=(K=Z.videoInfos.find(function(S){return DT(S)}))== +null?void 0:(q=K.S)==null?void 0:q.powerEfficient)M=8192,e.isEfficient=1; +Z=Z.videoInfos[0].video;K=Math.min(V3("1",Z.fps),V3("1",30));e.perfCap=K;M=Math.min(M,K);Z.isHdr()&&!m&&(e.hdr=1,M*=.75)}else Z=V3("1",30),e.perfCap30=Z,M=Math.min(M,Z),Z=V3("1",60),e.perfCap60=Z,M=Math.min(M,Z);return e.av1Threshold=M}; +zu=function(m,e,Z,M){this.flavor=m;this.keySystem=e;this.S=Z;this.experiments=M;this.X={};this.kG=this.keySystemAccess=null;this.eq=this.Gd=-1;this.dZ=null;this.U=!!M&&M.dc("edge_nonprefixed_eme");M&&M.dc("html5_enable_vp9_fairplay")}; +mZ=function(m){return m.U?!1:!m.keySystemAccess&&!!PJ()&&m.keySystem==="com.microsoft.playready"}; +eP=function(m){return m.keySystem==="com.microsoft.playready"}; +Zg=function(m){return!m.keySystemAccess&&!!PJ()&&m.keySystem==="com.apple.fps.1_0"}; +MR=function(m){return m.keySystem==="com.youtube.fairplay"}; +kk=function(m){return m.keySystem==="com.youtube.fairplay.sbdl"}; +g.Ke=function(m){return m.flavor==="fairplay"}; +PJ=function(){var m=window,e=m.MSMediaKeys;LO()&&!e&&(e=m.WebKitMediaKeys);return e&&e.isTypeSupported?e:null}; +SP=function(m){if(!navigator.requestMediaKeySystemAccess)return!1;if(e4&&!g.ti())return Rm("45");if(tR||g.qR)return m.dc("edge_nonprefixed_eme");if(pe)return Rm("47");if(g.PC){if(m.dc("html5_enable_safari_fairplay"))return!1;if(m=g.Y4(m,"html5_safari_desktop_eme_min_version"))return Rm(m)}return!0}; +XRI=function(m,e,Z,M){var k=QA(),K=(Z=k||Z&&LO())?["com.youtube.fairplay"]:["com.widevine.alpha"];e&&K.unshift("com.youtube.widevine.l3");k&&M&&K.unshift("com.youtube.fairplay.sbdl");return Z?K:m?[].concat(g.Rt(K),g.Rt(a3.playready)):[].concat(g.Rt(a3.playready),g.Rt(K))}; +gI=function(){this.S=this.TT=0;this.X=Array.from({length:ve.length}).fill(0)}; +iQG=function(){}; +xUs=function(){this.startTimeMs=(0,g.G)();this.X=!1}; +lZb=function(){this.X=new iQG}; +udy=function(m,e,Z,M){M=M===void 0?1:M;Z>=0&&(e in m.X||(m.X[e]=new gI),m.X[e].EH(Z,M))}; +R07=function(m,e,Z,M,k){var K=(0,g.G)(),q=k?k(e):void 0,S;k=(S=q==null?void 0:q.TT)!=null?S:1;if(k!==0){var a;S=(a=q==null?void 0:q.profile)!=null?a:Z;udy(m,S,K-M,k)}return e}; +X7=function(m,e,Z,M,k){if(e&&typeof e==="object"){var K=function(q){return R07(m,q,Z,M,k)}; +if(KR(e))return e.then(K);if(h0y(e))return vi(e,K)}return R07(m,e,Z,M,k)}; +TU3=function(){}; +iT=function(m,e,Z,M,k){M=M===void 0?!1:M;g.Y.call(this);this.Xq=e;this.useCobaltWidevine=M;this.B=k;this.S=[];this.U={};this.X={};this.callback=null;this.L=!1;this.Z=[];this.initialize(m,!Z)}; +Fum=function(m,e){m.callback=e;m.Z=[];SP(m.Xq.experiments)?xk(m):$Um(m)}; +xk=function(m){if(!m.MU())if(m.S.length===0)m.callback(m.Z);else{var e=m.S[0],Z=m.U[e],M=wRm(m,Z);if(lT&&lT.keySystem===e&&lT.JU===JSON.stringify(M))m.B("remksa",{re:!0}),nzK(m,Z,lT.keySystemAccess);else{var k,K;m.B("remksa",{re:!1,ok:(K=(k=lT)==null?void 0:k.keySystem)!=null?K:""});lT=void 0;(uT.isActive()?uT.J6("emereq",function(){return navigator.requestMediaKeySystemAccess(e,M)}):navigator.requestMediaKeySystemAccess(e,M)).then(l_(function(q){nzK(m,Z,q,M)}),l_(function(){m.L=!m.L&&m.U[m.S[0]].flavor=== +"widevine"; +m.L||m.S.shift();xk(m)}))}}}; +nzK=function(m,e,Z,M){if(!m.MU()){M&&(lT={keySystem:e.keySystem,keySystemAccess:Z,JU:JSON.stringify(M)});e.keySystemAccess=Z;if(eP(e)){Z=PY();M=g.r(Object.keys(m.X[e.flavor]));for(var k=M.next();!k.done;k=M.next())k=k.value,e.X[k]=!!Z.canPlayType(k)}else{Z=e.keySystemAccess.getConfiguration();if(Z.audioCapabilities)for(M=g.r(Z.audioCapabilities),k=M.next();!k.done;k=M.next())c7c(m,e,k.value);if(Z.videoCapabilities)for(Z=g.r(Z.videoCapabilities),M=Z.next();!M.done;M=Z.next())c7c(m,e,M.value)}m.Z.push(e); +m.useCobaltWidevine||m.W("html5_enable_vp9_fairplay")&&kk(e)?(m.S.shift(),xk(m)):m.callback(m.Z)}}; +c7c=function(m,e,Z){m.W("log_robustness_for_drm")?e.X[Z.contentType]=Z.robustness||!0:e.X[Z.contentType]=!0}; +wRm=function(m,e){var Z={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(m.W("html5_enable_vp9_fairplay")&&MR(e))return Z.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),Z.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[Z];eP(e)&&(Z.initDataTypes=["keyids","cenc"]);for(var M=g.r(Object.keys(m.X[e.flavor])),k=M.next();!k.done;k=M.next()){k=k.value;var K=k.indexOf("audio/")===0,q=K?Z.audioCapabilities:Z.videoCapabilities;e.flavor!== +"widevine"||m.L?q.push({contentType:k}):K?q.push({contentType:k,robustness:"SW_SECURE_CRYPTO"}):(e4&&Yl("windows nt")&&!m.W("html5_drm_enable_moho")||q.push({contentType:k,robustness:"HW_SECURE_ALL"}),K=k,m.W("html5_enable_cobalt_experimental_vp9_decoder")&&k.includes("vp09")&&(K=k+"; experimental=allowed"),q.push({contentType:K,robustness:"SW_SECURE_DECODE"}),g.R3(m.Xq)==="MWEB"&&(Ji()||UC())&&(m.B("swcrypto",{}),q.push({contentType:k,robustness:"SW_SECURE_CRYPTO"})))}return[Z]}; +$Um=function(m){if(PJ()&&(g.PC||Gy&&m.W("html5_drm_support_ios_mweb")))m.Z.push(new zu("fairplay","com.apple.fps.1_0","",m.Xq.experiments));else{var e=NU3(),Z=g.u7(m.S,function(M){var k=m.U[M],K=!1,q=!1,S;for(S in m.X[k.flavor])e(S,M)&&(k.X[S]=!0,K=K||S.indexOf("audio/")===0,q=q||S.indexOf("video/")===0);return K&&q}); +Z&&m.Z.push(m.U[Z]);m.S=[]}m.callback(m.Z)}; +NU3=function(){var m=PJ();if(m){var e=m.isTypeSupported;return function(M,k){return e(k,M)}}var Z=PY(); +return Z&&(Z.addKey||Z.webkitAddKey)?function(M,k){return!!Z.canPlayType(M,k)}:function(){return!1}}; +r7K=function(m){this.experiments=m;this.U=0;this.AR=(this.C=this.W("html5_streaming_resilience"))?.5:.25;var e=e===void 0?0:e;this.S=g.Y4(this.experiments,"html5_media_time_weight_prop")||e;this.Y=g.Y4(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.N=(this.Z=this.experiments.dc("html5_consider_end_stall"))&&hX;this.X=this.experiments.dc("html5_measure_max_progress_handling");this.j=this.W("html5_treat_requests_pre_elbow_as_metadata");this.L=this.W("html5_media_time_weight")||!!this.S; +this.K=g.Y4(this.experiments,"html5_streaming_fallback_byterate")}; +IZK=function(m,e){this.X=void 0;this.experimentIds=m?m.split(","):[];this.flags=bw(e||"","&");m={};e=g.r(this.experimentIds);for(var Z=e.next();!Z.done;Z=e.next())m[Z.value]=!0;this.experiments=m}; +g.Y4=function(m,e){m=m.flags[e];JSON.stringify(m);return Number(m)||0}; +g.Tx=function(m,e){return(m=m.flags[e])?m.toString():""}; +A7P=function(m){if(m=m.flags.html5_web_po_experiment_ids)if(m=m.replace(/\[ *(.*?) *\]/,"$1"))return m.split(",").map(Number);return[]}; +Cxm=function(m){if(m.X)return m.X;if(m.experimentIds.length<=1)return m.X=m.experimentIds,m.X;var e=[].concat(g.Rt(m.experimentIds)).map(function(M){return Number(M)}); +e.sort();for(var Z=e.length-1;Z>0;--Z)e[Z]-=e[Z-1];m.X=e.map(function(M){return M.toString()}); +m.X.unshift("v1");return m.X}; +ozm=function(m){return fZK.then(m)}; +$k=function(m,e,Z){this.experiments=m;this.Qh=e;this.sE=Z===void 0?!1:Z;this.Y=!!g.zK("cast.receiver.platform.canDisplayType");this.N={};this.j=!1;this.S=new Map;this.C=!0;this.U=this.Z=!1;this.X=new Map;this.AR=0;this.S9=this.experiments.dc("html5_disable_vp9_encrypted");m=g.zK("cast.receiver.platform.getValue");this.b9=g.Y4(this.experiments,"html5_kaios_max_resolution");this.L=!this.Y&&m&&m("max-video-resolution-vpx")||null;dUc(this)}; +MnK=function(m,e,Z){Z=Z===void 0?1:Z;var M=e.itag;if(M==="0")return!0;var k=e.mimeType;if(e.KJ()&&QA()&&m.experiments.dc("html5_appletv_disable_vp9"))return"dwebm";if(DT(e)&&m.j)return"dav1";if(e.video&&(e.video.isHdr()||e.video.primaries==="bt2020")&&!(ny(m,cD.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(M==="338"&&!(e4?Rm(53):pe&&Rm(64)))return"dopus"; +var K;if(m.b9&&g.F7&&((K=e.video)==null?void 0:K.X)>m.b9)return"kaios";K=Z;K=K===void 0?1:K;Z={};e.video&&(e.video.width&&(Z[cD.WIDTH.name]=e.video.width),e.video.height&&(Z[cD.HEIGHT.name]=e.video.height),e.video.fps&&(Z[cD.FRAMERATE.name]=e.video.fps*K),e.video.S&&(Z[cD.EOTF.name]=e.video.S),e.JR&&(Z[cD.BITRATE.name]=e.JR*8*K),e.T$==="("&&(Z[cD.CRYPTOBLOCKFORMAT.name]="subsample"),e.video.projectionType==="EQUIRECTANGULAR"||e.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||e.video.projectionType=== +"MESH")&&(Z[cD.DECODETOTEXTURE.name]="true");e.audio&&e.audio.numChannels&&(Z[cD.CHANNELS.name]=e.audio.numChannels);m.Z&&r6(e)&&(Z[cD.EXPERIMENTAL.name]="allowed");K=g.r(Object.keys(cD));for(var q=K.next();!q.done;q=K.next()){q=cD[q.value];var S;if(S=Z[q.name])if(S=!(q===cD.EOTF&&e.mimeType.indexOf("vp09.02")>0)){S=q;var a=e;S=!(m.experiments.dc("html5_ignore_h264_framerate_cap")&&S===cD.FRAMERATE&&FSG(a))}if(S)if(ny(m,q))if(m.L){if(m.L[q.name]1080&&e.wV&&(k+="; hdcp=2.2");return M==="227"?"hqcenc":M!=="585"&&M!=="588"&&M!=="583"&&M!=="586"&&M!=="584"&&M!=="587"&&M!=="591"&&M!=="592"||m.experiments.dc("html5_enable_new_hvc_enc")?m.isTypeSupported(k)?!0:"tpus":"newhvc"}; +wI=function(){var m=UC()&&!Rm(29),e=Yl("google tv")&&Yl("chrome")&&!Rm(30);return m||e?!1:AQb()}; +BUc=function(m,e,Z){var M=480;e=g.r(e);for(var k=e.next();!k.done;k=e.next()){k=k.value;var K=k.video.X;K<=1080&&K>M&&MnK(m,k,Z)===!0&&(M=K)}return M}; +g.ne=function(m,e){e=e===void 0?!1:e;return wI()&&m.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!e&&m.canPlayType(PY(),"application/x-mpegURL")?!0:!1}; +Y6G=function(m){Ezb(function(){for(var e=g.r(Object.keys(cD)),Z=e.next();!Z.done;Z=e.next())ny(m,cD[Z.value])})}; +ny=function(m,e){e.name in m.N||(m.N[e.name]=UUK(m,e));return m.N[e.name]}; +UUK=function(m,e){if(m.L)return!!m.L[e.name];if(e===cD.BITRATE&&m.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!m.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(e===cD.AV1_CODECS)return m.isTypeSupported("video/mp4; codecs="+e.valid)&&!m.isTypeSupported("video/mp4; codecs="+e.YQ);if(e.video){var Z='video/webm; codecs="vp9"';m.isTypeSupported(Z)||(Z='video/mp4; codecs="avc1.4d401e"')}else Z='audio/webm; codecs="opus"', +m.isTypeSupported(Z)||(Z='audio/mp4; codecs="mp4a.40.2"');return m.isTypeSupported(Z+"; "+e.name+"="+e.valid)&&!m.isTypeSupported(Z+"; "+e.name+"="+e.YQ)}; +bQ7=function(m){m.Z||(m.Z=!0,ce(m))}; +ce=function(m){m.U=!0;m.experiments.dc("html5_ssap_update_capabilities_on_change")&&tDm(m)}; +Qmm=function(m,e){var Z=0;m.S.has(e)&&(Z=m.S.get(e).mU);m.S.set(e,{mU:Z+1,To:Math.pow(2,Z+1)});ce(m)}; +TB=function(m){for(var e=[],Z=g.r(m.X.keys()),M=Z.next();!M.done;M=Z.next()){M=M.value;var k=m.X.get(M);e.push(M+"_"+k.maxWidth+"_"+k.maxHeight)}return e.join(".")}; +tDm=function(m){m.K=[];for(var e=g.r(m.X.values()),Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=Z.T$;m.experiments.dc("html5_ssap_force_mp4_aac")&&M!=="a"&&M!=="h"||m.S.has(M)||(!m.j||M!=="1"&&M!=="1h")&&m.K.push(Z)}}; +Jp3=function(m,e){for(var Z=new Map,M=g.r(m.X.keys()),k=M.next();!k.done;k=M.next()){k=k.value;var K=k.split("_")[0];e.has(K)||Z.set(k,m.X.get(k))}m.X=Z}; +W_t=function(m,e,Z){var M,k=((M=Z.video)==null?void 0:M.fps)||0;M=e+"_"+k;var K=!!Z.audio,q={itag:Z.itag,T$:e,F5:K};if(K)q.numChannels=Z.audio.numChannels;else{var S=Z.video;q.maxWidth=S==null?void 0:S.width;q.maxHeight=S==null?void 0:S.height;q.maxFramerate=k;ny(m,cD.BITRATE)&&(q.maxBitrateBps=Z.JR*8);q.Tj=S==null?void 0:S.isHdr()}S=m.X.get(M);S?K||(Z=Math.max(S.maxWidth||0,S.maxHeight||0)>Math.max(q.maxWidth||0,q.maxHeight||0)?S:q,e={itag:Z.itag,T$:e,F5:K,maxWidth:Math.max(S.maxWidth||0,q.maxWidth|| +0),maxHeight:Math.max(S.maxHeight||0,q.maxHeight||0),maxFramerate:k,Tj:Z.Tj},ny(m,cD.BITRATE)&&(e.maxBitrateBps=Z.maxBitrateBps),m.X.set(M,e)):m.X.set(M,q)}; +zOR=function(m,e,Z){var M,k=((M=Z.video)==null?void 0:M.fps)||0;M=e+"_"+k;var K=!!Z.audio,q=m.X.get(M);a:{var S=m.X.get(M),a=!!Z.audio;if(S){if(a){var v=!1;break a}var X;if(!a&&((v=Z.video)==null?0:v.height)&&S.maxHeight&&S.maxHeight>=((X=Z.video)==null?void 0:X.height)){v=!1;break a}}v=!0}v&&(v=Z.itag,e=q?q:{itag:v,T$:e,F5:K},K?e.numChannels=Z.audio.numChannels:(K=Z.video,e.maxWidth=K==null?void 0:K.width,e.maxHeight=K==null?void 0:K.height,e.maxFramerate=k,ny(m,cD.BITRATE)&&(e.maxBitrateBps=Z.JR* +8),e.Tj=K==null?void 0:K.isHdr()),m.X.set(M,e))}; +dUc=function(m){var e;(e=navigator.mediaCapabilities)!=null&&e.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(Z){Z.smooth&&Z.powerEfficient&&(m.AR=2160)})}; +NR=function(){g.m6.call(this);this.items={}}; +rI=function(){ya.apply(this,arguments)}; +I3=function(){je.apply(this,arguments)}; +HQR=function(m,e,Z){this.encryptedClientKey=e;this.L=Z;this.X=new Uint8Array(m.buffer,0,16);this.U=new Uint8Array(m.buffer,16)}; +DUb=function(m){m.S||(m.S=new rI(m.X));return m.S}; +AX=function(m){try{return j7(m)}catch(e){return null}}; +Luk=function(m,e){if(!e&&m)try{e=JSON.parse(m)}catch(k){}if(e){m=e.clientKey?AX(e.clientKey):null;var Z=e.encryptedClientKey?AX(e.encryptedClientKey):null,M=e.keyExpiresInSeconds?Number(e.keyExpiresInSeconds)*1E3+(0,g.G)():null;m&&Z&&M&&(this.X=new HQR(m,Z,M));e.onesieUstreamerConfig&&(this.onesieUstreamerConfig=AX(e.onesieUstreamerConfig)||void 0);this.baseUrl=e.baseUrl}}; +fe=function(){this.data=new Uint8Array(2048);this.pos=0;Ce||(Ce=go("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; +o3=function(m){this.X=this.S=0;this.alpha=Math.exp(Math.log(.5)/m)}; +dI=function(m){this.S=m===void 0?15:m;this.values=new Float64Array(176);this.X=new Float64Array(11);this.U=new Float64Array(16)}; +Be=function(m,e,Z,M){Z=Z===void 0?.5:Z;M=M===void 0?0:M;this.resolution=e;this.S=0;this.U=!1;this.TW=!0;this.X=Math.round(m*this.resolution);this.values=Array(this.X);for(m=0;m0)e=m.byterate,this.Y=!0;else{var M;Z= +(((M=navigator.connection)==null?void 0:M.downlink)||0)*64*1024;Z>0&&(e=Z,this.Y=!0)}this.S.Ld(this.policy.C,e);m.delay>0&&this.N.Ld(1,Math.min(m.delay,2));m.stall>0&&this.j.Ld(1,m.stall);m.init>0&&(this.yh=Math.min(m.init,this.yh));m.interruptions&&(this.U=this.U.concat(m.interruptions),this.U.length>16&&this.U.pop());this.AR=(0,g.G)();this.policy.j>0&&(this.wc=new g.eD(this.Hv,this.policy.j,this),g.U(this,this.wc),this.wc.start())}; +Yk=function(m,e,Z,M){m.S.Ld(M===void 0?e:M,Z/e);m.C=(0,g.G)()}; +Gct=function(m,e){if(m.L){var Z=e-m.L;if(Z>1E3){var M=m.interruptions;M.push(Math.ceil(Z));M.sort(function(k,K){return K-k}); +M.length>16&&M.pop()}m.b9+=Z}m.L=e}; +Un=function(m,e,Z,M,k,K){K=K===void 0?!1:K;m.sE.Ld(e,Z/e);m.C=(0,g.G)();k||m.K.Ld(1,e-M);K||(m.L=0);m.AR>-1&&(0,g.G)()-m.AR>3E4&&y7b(m)}; +bT=function(m,e,Z){e=Math.max(e,2048);m.j.Ld(1,Z/e)}; +tX=function(m){m=m.N.gG()+m.Qh.gG()||0;m=isNaN(m)?.5:m;return m=Math.min(m,5)}; +QQ=function(m,e,Z){isNaN(Z)||(m.S9+=Z);isNaN(e)||(m.kG+=e)}; +He=function(m){m=m.S.gG();return m>0?m:1}; +Dg=function(m,e,Z){e=e===void 0?!1:e;Z=Z===void 0?1048576:Z;var M=He(m);M=1/((m.j.gG()||0)*m.policy.Y+1/M);var k=m.sE.gG();k=k>0?k:1;var K=Math.max(M,k);m.policy.L>0&&k=4E3}; +OQt=function(m){this.experiments=m;this.X=17;this.U=13E4;this.C=.5;this.S=!1;this.AR=this.W("html5_use_histogram_for_bandwidth");this.Z=!1;this.L=g.Y4(this.experiments,"html5_auxiliary_estimate_weight");this.Y=g.Y4(this.experiments,"html5_stall_factor")||1;this.j=g.Y4(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.dc("html5_trigger_loader_when_idle_network");this.K=this.experiments.dc("html5_sabr_fetch_on_idle_network_preloaded_players")}; +VDm=function(m,e){m=m===void 0?{}:m;e=e===void 0?{}:e;g.Y.call(this);var Z=this;this.values=m;this.E2=e;this.S={};this.U=this.X=0;this.Z=new g.eD(function(){J77(Z)},1E4); +g.U(this,this.Z)}; +sn=function(m,e){Wuy(m,e);return m.values[e]&&m.E2[e]?m.values[e]/Math.pow(2,m.X/m.E2[e]):0}; +Wuy=function(m,e){m.values[e]||(e=rVR(),m.values=e.values||{},m.E2=e.halfLives||{},m.S=e.values?Object.assign({},e.values):{})}; +J77=function(m){var e=rVR();if(e.values){e=e.values;for(var Z={},M=g.r(Object.keys(m.values)),k=M.next();!k.done;k=M.next())k=k.value,e[k]&&m.S[k]&&(m.values[k]+=e[k]-m.S[k]),Z[k]=sn(m,k);m.S=Z}e=m.E2;Z={};Z.values=m.S;Z.halfLives=e;g.kE("yt-player-memory",Z,2592E3)}; +Gx=function(){var m=this;this.ZZ=this.wE=akc;this.promise=new g.O8(function(e,Z){m.wE=e;m.ZZ=Z})}; +SA=function(m,e,Z,M,k){g.Y.call(this);this.webPlayerContextConfig=e;this.wZ=M;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.NP=this.wc=this.S9=this.qs=this.userDisplayName=this.userDisplayImage="";this.X={};this.Hv={};this.controlsType="0";this.JY=NaN;this.Qh=!1;this.wr=(0,g.G)();this.kG=0;this.preferGapless=this.AT=this.Wq=this.b9=this.Q$=this.mw=this.y$=this.q_=!1;this.aF=[];this.Bq=!1;m=m?g.y2(m):{};e&&e.csiPageType&&(this.csiPageType=e.csiPageType);e&&e.csiServiceName&&(this.csiServiceName= +e.csiServiceName);e&&e.preferGapless&&(this.preferGapless=e.preferGapless);this.experiments=new IZK(e?e.serializedExperimentIds:m.fexp,e?e.serializedExperimentFlags:m.fflags);this.forcedExperiments=e?e.serializedForcedExperimentIds:ey("",m.forced_experiments)||void 0;this.cspNonce=(e==null?0:e.cspNonce)?e.cspNonce:ey("",m.csp_nonce);this.W("web_player_deprecated_uvr_killswitch");try{var K=document.location.toString()}catch(B){K=""}this.ZN=K;this.ancestorOrigins=(M=window.location.ancestorOrigins)? +Array.from(M):[];this.Z=!1;if(e&&e.device){if(M=e.device,M.androidOsExperience&&(this.X.caoe=""+M.androidOsExperience),M.androidPlayServicesVersion&&(this.X.capsv=""+M.androidPlayServicesVersion),M.brand&&(this.X.cbrand=M.brand),M.browser&&(this.X.cbr=M.browser),M.browserVersion&&(this.X.cbrver=M.browserVersion),M.cobaltReleaseVehicle&&(this.X.ccrv=""+M.cobaltReleaseVehicle),this.X.c=M.interfaceName||"WEB",this.X.cver=M.interfaceVersion||"html5",M.interfaceTheme&&(this.X.ctheme=M.interfaceTheme), +this.X.cplayer=M.interfacePlayerType||"UNIPLAYER",M.model&&(this.X.cmodel=M.model),M.network&&(this.X.cnetwork=M.network),M.os&&(this.X.cos=M.os),M.osVersion&&(this.X.cosver=M.osVersion),M.platform&&(this.X.cplatform=M.platform),K=g.Tx(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),K==="all"||K==="once")M.chipset&&(this.Hv.cchip=M.chipset),M.cobaltAppVersion&&(this.Hv.ccappver=M.cobaltAppVersion),M.firmwareVersion&&(this.Hv.cfrmver=M.firmwareVersion),M.deviceYear&&(this.Hv.crqyear=M.deviceYear)}else this.X.c= +m.c||"web",this.X.cver=m.cver||"html5",this.X.cplayer="UNIPLAYER";this.loaderUrl=e?this.Z||z07(this)&&e.loaderUrl?e.loaderUrl||"":this.ZN:this.Z||z07(this)&&m.loaderUrl?ey("",m.loaderUrl):this.ZN;this.Z&&g.Wy("yt.embedded_player.embed_url",this.loaderUrl);M=this.loaderUrl;var q=q===void 0?!1:q;this.qZ=CR(fR(M,PxI),M,q,"Trusted Ad Domain URL");this.nB=zy(!1,m.privembed);this.protocol=this.ZN.indexOf("http:")===0?"http":"https";this.K=oz((e?e.customBaseYoutubeUrl:m.BASE_YT_URL)||"")||oz(this.ZN)||this.protocol+ +"://www.youtube.com/";q=e?e.eventLabel:m.el;M="detailpage";q==="adunit"?M=this.Z?"embedded":"detailpage":(M=PO(M,q,mBK),q!=="shortsaudiopivot"||this.W("web_player_shorts_audio_pivot_event_label")||(M="detailpage"));this.C=M;vn();q=null;M=e?e.playerStyle:m.ps;!M||(q=M);this.playerStyle=q;this.houseBrandUserStatus=e==null?void 0:e.houseBrandUserStatus;this.Sp=zy(!1,m.disableplaybackui);this.disablePaidContentOverlay=zy(!1,e==null?void 0:e.disablePaidContentOverlay);this.disableSeek=zy(!1,e==null?void 0: +e.disableSeek);this.enableSpeedOptions=(e==null?void 0:e.enableSpeedOptions)||(PY().defaultPlaybackRate?yQ||OC||g.F7?pe&&Rm("20")||e4&&Rm("4")||jP&&Rm("11")||sC():!(jP&&!Yl("chrome")||yQ||Yl("android")||Yl("silk")):!1);this.VD=zy(!1,m.enable_faster_speeds);this.U=!0;this.BS=jC()||Ji();this.HX=this.W("mweb_allow_background_playback")?!1:this.U&&!0;this.KB=kv();this.Ta=epy;var S;this.kU=!!(e==null?0:(S=e.embedsHostFlags)==null?0:S.optOutApiDeprecation);var a;this.o_=!!(e==null?0:(a=e.embedsHostFlags)== +null?0:a.allowPfpImaIntegration);this.W("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var v;e?e.hideInfo!==void 0&&(v=!e.hideInfo):v=m.showinfo;this.xU=On(this)&&!this.kU||zy(!JX(this)&&!VQ(this)&&!0,v);this.oW=e?!!e.mobileIphoneSupportsInlinePlayback:zy(!1,m.playsinline);S=this.U&&Zh1&&We!=null&&We>0&&We<=2.3;this.AR=On(this)&&this.U;this.disableOrganicUi=!(e==null||!e.disableOrganicUi);a=e?e.controlsType:m.controls;this.controlsType=this.disableOrganicUi?"0":!this.W("mweb_enable_custom_control_shared")|| +a!=="0"&&a!==0?"3":"0";this.td=this.U;this.color=PO("red",e?e.progressBarColor:m.color,Mht);this.Dr=this.n6=S;this.Te=(this.controlsType==="3"||this.U||zy(!1,m.use_media_volume))&&!this.AR;this.HS=!(Gy&&!b7(537));this.pV=this.Z||!1;this.tR=VQ(this)?"":(this.loaderUrl||m.post_message_origin||"").substring(0,128);this.widgetReferrer=ey("",e?e.widgetReferrer:m.widget_referrer);var X;e?e.disableCastApi&&(X=!1):X=m.enablecastapi;X=zy(!0,X);S=!0;e&&e.disableMdxCast&&(S=!1);this.WS=g.zx(this)&&S||X&&S&& +this.controlsType==="1"&&!this.U&&(VQ(this)||g.Pe(this)||this.C==="profilepage");window.document.pictureInPictureEnabled||M4();X=e?!!e.supportsAutoplayOverride:zy(!1,m.autoplayoverride);this.C0=!(this.U&&!On(this))&&!Yl("nintendo wiiu")||X;this.LJ=(e?!!e.enableMutedAutoplay:zy(!1,m.mutedautoplay))&&this.KB&&!g.mY(this);X=(VQ(this)||JX(this))&&this.playerStyle==="blazer";this.FF=e?!!e.disableFullscreen:!zy(!0,m.fs);S=CA(eA(this))&&On(this);this.Ot=!this.FF&&(X||g.tS())&&!S;this.YH=this.W("uniplayer_block_pip")&& +(UC()&&Rm(58)&&!Ji()||g.bE);this.dZ=zy(!1,e?e.enableContentOwnerRelatedVideos:m.co_rel);this.bb=zy(this.playerStyle==="blazer",e?e.enableCsiLogging:m.enablecsi);switch(this.playerStyle){case "blogger":X="bl";break;case "gmail":X="gm";break;case "gac":X="ga";break;case "books":X="gb";break;case "docs":case "flix":X="gd";break;case "duo":X="gu";break;case "google-live":X="gl";break;case "google-one":X="go";break;case "play":X="gp";break;case "chat":X="hc";break;case "hangouts-meet":X="hm";break;case "photos-edu":case "picasaweb":X= +"pw";break;default:X="yt"}this.L=X;this.N=ey("",e?e.authorizedUserIndex:m.authuser);On(this)&&(this.nB||dh());this.Kf=!1;this.loop=zy(!1,m.loop);this.pageId=ey("",e?e.initialDelegatedSessionId:m.pageid);this.NZ=zy(!0,m.canplaylive);this.CR=zy(!1,m.livemonitor);this.disableSharing=zy(!1,e?e.disableSharing:m.ss);(X=e&&this.W("fill_video_container_size_override_from_wpcc")?e.videoContainerOverride:m.video_container_override)?(S=X.split("x"),S.length!==2?X=null:(X=Number(S[0]),S=Number(S[1]),X=isNaN(X)|| +isNaN(S)||X*S<=0?null:new g.cF(X,S))):X=null;this.xH=X;this.mute=e?!!e.startMuted:zy(!1,m.mute);this.storeUserVolume=!this.mute&&zy(this.controlsType!=="0",e?e.storeUserVolume:m.store_user_volume);X=e?e.annotationsLoadPolicy:m.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:PO(void 0,X,ZE);this.captionsLanguagePreference=e?e.captionsLanguagePreference||"":ey("",m.cc_lang_pref);X=PO(2,e?e.captionsLanguageLoadPolicy:m.cc_load_policy,ZE);this.controlsType==="3"&&X===2&&(X=3);this.sE= +X;this.yh=e?e.hl||"en_US":ey("en_US",m.hl);this.region=e?e.contentRegion||"US":ey("US",m.cr);this.hostLanguage=e?e.hostLanguage||"en":ey("en",m.host_language);this.cX=!this.nB&&Math.random()=480;this.schedule=new En(v,new r7K(this.experiments),k);g.U(this,this.schedule);var x;this.enableSafetyMode=(x=e==null?void 0:e.initialEnableSafetyMode)!=null?x:zy(!1,m.enable_safety_mode);k=this.Sp?!1:!0;var l;e?e.disableAutonav!=null&&(l=!e.disableAutonav):l=m.allow_autonav;this.zM=zy(k,l);this.sendVisitorIdHeader=e?!!e.sendVisitorIdHeader:zy(!1,m.send_visitor_id_header);var R;this.playerStyle==="docs"&& +(e?R=e.disableNativeContextMenu:R=m.disable_native_context_menu);this.disableNativeContextMenu=zy(!1,R);/web/i.test(g.R3(this))&&this.W("enable_skip_intro_button");this.embedConfig=ey("",e?e.serializedEmbedConfig:m.embed_config);this.j=Ih(m,On(this));this.b9=this.j==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(e==null||!e.embedsErrorLinks);this.d7=zy(!1,m.full_window);var h;this.uw=!((h=this.webPlayerContextConfig)==null?0:h.chromeless);var w;this.livingRoomAppMode=PO("LIVING_ROOM_APP_MODE_UNSPECIFIED", +m.living_room_app_mode||(e==null?void 0:(w=e.device)==null?void 0:w.livingRoomAppMode),qhI);var N;l=mE(NaN,e==null?void 0:(N=e.device)==null?void 0:N.deviceYear);isNaN(l)||(this.deviceYear=l);this.transparentBackground=e?!!e.transparentBackground:zy(!1,m.transparent_background);this.showMiniplayerButton=e?!!e.showMiniplayerButton:zy(!1,m.show_miniplayer_button);var I;On(this)&&!(e==null?0:(I=e.embedsHostFlags)==null?0:I.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=e? +!!e.externalFullscreen:zy(!1,m.external_fullscreen);this.showMiniplayerUiWhenMinimized=e?!!e.showMiniplayerUiWhenMinimized:zy(!1,m.use_miniplayer_ui);this.showInlinePreviewUi=e?!!e.showInlinePreviewUi:!1;this.vE=Math.random()<1E-4;this.HV=m.onesie_hot_config||(e==null?0:e.onesieHotConfig)?new Luk(m.onesie_hot_config,e==null?void 0:e.onesieHotConfig):void 0;this.isTectonic=e?!!e.isTectonic:!!m.isTectonic;this.playerCanaryState=Z;this.playerCanaryStage=e==null?void 0:e.canaryStage;this.XG=new VDm;g.U(this, +this.XG);this.Q$=zy(!1,m.force_gvi);this.datasyncId=(e==null?void 0:e.datasyncId)||g.fE("DATASYNC_ID");this.dG=g.fE("LOGGED_IN",!1);this.lX=(e==null?void 0:e.allowWoffleManagement)||!1;this.K1=Infinity;this.O9=NaN;this.livingRoomPoTokenId=e==null?void 0:e.livingRoomPoTokenId;this.W("html5_high_res_logging_always")?this.Wq=!0:this.Wq=Math.random()*100=0&&m0&&m.vE&&(M.sort(),g.LD(new g.Nr("Player client parameters changed after startup",M)));m.userAge=mE(m.userAge,e.user_age);m.userDisplayImage=ey(m.userDisplayImage,e.user_display_image);g.Bi(m.userDisplayImage)||(m.userDisplayImage="");m.userDisplayName= +ey(m.userDisplayName,e.user_display_name);m.qs=ey(m.qs,e.user_gender);m.csiPageType=ey(m.csiPageType,e.csi_page_type);m.csiServiceName=ey(m.csiServiceName,e.csi_service_name);m.bb=zy(m.bb,e.enablecsi);m.pageId=ey(m.pageId,e.pageid);if(Z=e.enabled_engage_types)m.enabledEngageTypes=new Set(Z.split(","));e.living_room_session_po_token&&(m.tf=e.living_room_session_po_token.toString())}; +a_=function(m,e){return UC()&&Rm(55)&&m.controlsType==="3"&&!e}; +v4=function(m,e,Z){return m.protocol+"://i1.ytimg.com/vi/"+e+"/"+(Z||"hqdefault.jpg")}; +gY=function(m){return VQ(m)&&!g.qF(m)}; +g.mY=function(m){return m.W("html5_local_playsinline")?Gy&&!b7(602)&&!("playsInline"in PY()):Gy&&!m.oW||Yl("nintendo wiiu")?!0:!1}; +g.R3=function(m){return m.X.c}; +g.Km=function(m){return/^TVHTML5/.test(g.R3(m))}; +g.XP=function(m){return g.R3(m)==="TVHTML5"}; +z07=function(m){return g.R3(m)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +KcK=function(m){return m.X.cmodel==="CHROMECAST ULTRA/STEAK"||m.X.cmodel==="CHROMECAST/STEAK"}; +iA=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +g.xI=function(m){return g.R3(m).toUpperCase()==="WEB"}; +g.pm=function(m){return g.R3(m)==="WEB_KIDS"}; +g.qF=function(m){return g.R3(m)==="WEB_UNPLUGGED"}; +g.lA=function(m){return g.R3(m)==="TVHTML5_UNPLUGGED"}; +g.uA=function(m){return g.qF(m)||g.R3(m)==="TV_UNPLUGGED_CAST"||g.lA(m)}; +g.zx=function(m){return g.R3(m)==="WEB_REMIX"}; +R_=function(m){return g.R3(m)==="WEB_EMBEDDED_PLAYER"}; +hC=function(m){return!m.W("html5_disable_media_element_loop_on_tv")||!g.Km(m)}; +g.vLI=function(m,e){return m.enabledEngageTypes.has(e.toString())||act.includes(e)}; +VQ=function(m){return m.C==="detailpage"}; +g.Pe=function(m){return m.C==="embedded"}; +JX=function(m){return m.C==="adunit"||m.playerStyle==="gvn"}; +On=function(m){return m.Z&&g.Pe(m)&&!JX(m)&&!0}; +g.Tk=function(m,e){e=e===void 0?"":e;if(m.wZ){var Z=new Gx,M,k=m.wZ();k.signedOut?M="":k.token?M=k.token:k.pendingResult.then(function(K){k.signedOut?Z.resolve(""):Z.resolve(K.token)},function(K){g.LD(new g.Nr("b189348328_oauth_callback_failed",{error:K})); +Z.resolve(e)}); +return M!==void 0?g.rh(M):new cO(Z)}return g.rh(e)}; +g.MF=function(m){var e=g.ow(m);return(m=Number(fa(4,m))||null)?e+":"+m:e}; +$I=function(m,e){e=e===void 0?!1:e;var Z=tM[m],M=gLy[Z],k=XMb[m];if(!k||!M)return null;e=new Y7(e?k.height:k.width,e?k.width:k.height,k.fps);M=Ej(M,e,Z);return new QB(m,M,{video:e,JR:k.bitrate/8})}; +xBK=function(m){var e=gLy[tM[m]],Z=iht[m];return Z&&e?new QB(m,e,{audio:new BY(Z.audioSampleRate,Z.numChannels)}):null}; +FP=function(m){this.X=m}; +wY=function(m,e,Z,M){if(Z)return g.NC();Z={};var k=PY();e=g.r(e);for(var K=e.next();!K.done;K=e.next())if(K=K.value,m.canPlayType(k,K.lP().mimeType)||M){var q=K.X.video.quality;if(!Z[q]||Z[q].lP().KJ())Z[q]=K}m=[];Z.auto&&m.push(Z.auto);M=g.r(Uq);for(k=M.next();!k.done;k=M.next())(k=Z[k.value])&&m.push(k);return m.length?g.rh(m):g.NC()}; +lcc=function(m){this.itag=m.itag;this.url=m.url;this.codecs=m.codecs;this.width=m.width;this.height=m.height;this.fps=m.fps;this.bitrate=m.bitrate;var e;this.S=((e=m.audioItag)==null?void 0:e.split(","))||[];this.rp=m.rp;this.wV=m.wV||"";this.MB=m.MB;this.audioChannels=m.audioChannels;this.X=""}; +um1=function(m,e,Z,M){e=e===void 0?!1:e;Z=Z===void 0?!0:Z;M=M===void 0?{}:M;var k={};m=g.r(m);for(var K=m.next();!K.done;K=m.next()){K=K.value;if(e&&MediaSource&&MediaSource.isTypeSupported){var q=K.type;K.audio_channels&&(q=q+"; channels="+K.audio_channels);if(!MediaSource.isTypeSupported(q)){M[K.itag]="tpus";continue}}if(Z||!K.drm_families||K.eotf!=="smpte2084"&&K.eotf!=="arib-std-b67"){q=void 0;var S={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},a=K.type.match(/codecs="([^"]*)"/); +a=a?a[1]:"";K.audio_track_id&&(q=new WY(K.name,K.audio_track_id,!!K.is_default));var v=K.eotf;K=new lcc({itag:K.itag,url:K.url,codecs:a,width:Number(K.width),height:Number(K.height),fps:Number(K.fps),bitrate:Number(K.bitrate),audioItag:K.audio_itag,rp:v?S[v]:void 0,wV:K.drm_families,MB:q,audioChannels:Number(K.audio_channels)});k[K.itag]=k[K.itag]||[];k[K.itag].push(K)}else M[K.itag]="enchdr"}return k}; +Rp3=function(m,e,Z,M,k){this.U=m;this.S=e;this.L=Z;this.cpn=M;this.C=k;this.Z=0;this.X=""}; +hpI=function(m,e){m.U.some(function(Z){var M;return((M=Z.MB)==null?void 0:M.getId())===e}); +m.X=e}; +nm=function(m,e,Z){m.cpn&&(e=g.tV(e,{cpn:m.cpn}));Z&&(e=g.tV(e,{gT:Z}));return e}; +TJK=function(m,e){m=m.itag.toString();e!==null&&(m+=e.itag.toString());return m}; +$Bb=function(m){for(var e=[],Z=[],M=g.r(m.S),k=M.next();!k.done;k=M.next())k=k.value,k.bitrate<=m.Z?e.push(k):Z.push(k);e.sort(function(K,q){return q.bitrate-K.bitrate}); +Z.sort(function(K,q){return K.bitrate-q.bitrate}); +m.S=e.concat(Z)}; +c4=function(m,e,Z){this.X=m;this.S=e;this.expiration=Z;this.i9=null}; +FcK=function(m,e){if(!(g.bE||LO()||QA()))return null;m=um1(e,m.W("html5_filter_fmp4_in_hls"));if(!m)return null;e=[];for(var Z={},M=g.r(Object.keys(m)),k=M.next();!k.done;k=M.next()){k=g.r(m[k.value]);for(var K=k.next();!K.done;K=k.next()){var q=K.value;q.MB&&(K=q.MB.getId(),Z[K]||(q=new k2(K,q.MB),Z[K]=q,e.push(q)))}}return e.length>0?e:null}; +rhm=function(m,e,Z,M,k,K,q){if(!(g.bE||LO()||QA()))return g.NC();var S={},a=wMI(Z),v=um1(Z,m.W("html5_filter_fmp4_in_hls"),m.S.C,S);if(!v)return q({noplst:1}),g.NC();nLb(v);Z={};var X=(Z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Z),x;Z=[];var l=[],R=[],h=null,w="";M=M&&M.match(/hls_timedtext_playlist/)?new lcc({itag:"0",url:M,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,MB:new WY("English","en",!1)}):null;for(var N=g.r(Object.keys(v)),I=N.next();!I.done;I=N.next())if(I=I.value, +!m.W("html5_disable_drm_hfr_1080")||I!=="383"&&I!=="373"){I=g.r(v[I]);for(var C=I.next();!C.done;C=I.next())if(C=C.value,C.width){for(var B=g.r(C.S),b=B.next();!b.done;b=B.next())if(b=b.value,v[b]){C.X=b;break}C.X||(C.X=chb(v,C));if(B=v[C.X])if(Z.push(C),C.wV==="fairplay"&&(x=X),b="",C.rp==="PQ"?b="smpte2084":C.rp==="HLG"&&(b="arib-std-b67"),b&&(w=b),R.push(NJb(B,[C],M,K,C.itag,C.width,C.height,C.fps,a,void 0,void 0,x,b)),!h||C.width*C.height*C.fps>h.width*h.height*h.fps)h=C}else l.push(C)}else S[I]= +"disdrmhfr";R.reduce(function(L,Q){return Q.lP().isEncrypted()&&L},!0)&&(x=X); +k=Math.max(k,0);X=h||{};v=X.fps===void 0?0:X.fps;h=X.width===void 0?0:X.width;X=X.height===void 0?0:X.height;N=m.W("html5_native_audio_track_switching");R.push(NJb(l,Z,M,K,"93",h,X,v,a,"auto",k,x,w,N));Object.entries(S).length&&q(S);return wY(m.S,R,a_(m,e),!1)}; +NJb=function(m,e,Z,M,k,K,q,S,a,v,X,x,l,R){for(var h=0,w="",N=g.r(m),I=N.next();!I.done;I=N.next())I=I.value,w||(w=I.itag),I.audioChannels&&I.audioChannels>h&&(h=I.audioChannels,w=I.itag);k=new QB(k,"application/x-mpegURL",{audio:new BY(0,h),video:new Y7(K,q,S,null,void 0,v,void 0,l),wV:x,oP:w});m=new Rp3(m,e,Z?[Z]:[],M,!!R);m.Z=X?X:1369843;return new c4(k,m,a)}; +wMI=function(m){m=g.r(m);for(var e=m.next();!e.done;e=m.next())if(e=e.value,e.url&&(e=e.url.split("expire/"),!(e.length<=1)))return+e[1].split("/")[0];return NaN}; +chb=function(m,e){for(var Z=g.r(Object.keys(m)),M=Z.next();!M.done;M=Z.next()){M=M.value;var k=m[M][0];if(!k.width&&k.wV===e.wV&&!k.audioChannels)return M}return""}; +nLb=function(m){for(var e=new Set,Z=g.r(Object.values(m)),M=Z.next();!M.done;M=Z.next())M=M.value,M.length&&(M=M[0],M.height&&M.codecs.startsWith("vp09")&&e.add(M.height));Z=[];if(e.size){M=g.r(Object.keys(m));for(var k=M.next();!k.done;k=M.next())if(k=k.value,m[k].length){var K=m[k][0];K.height&&e.has(K.height)&&!K.codecs.startsWith("vp09")&&Z.push(k)}}e=g.r(Z);for(Z=e.next();!Z.done;Z=e.next())delete m[Z.value]}; +NF=function(m,e){this.X=m;this.S=e}; +Icb=function(m,e,Z,M){var k=[];Z=g.r(Z);for(var K=Z.next();!K.done;K=Z.next()){var q=K.value;if(q.url){K=new g.IL(q.url,!0);if(q.s){var S=K,a=q.sp,v=gMP(decodeURIComponent(q.s));S.set(a,encodeURIComponent(v))}S=g.r(Object.keys(M));for(a=S.next();!a.done;a=S.next())a=a.value,K.set(a,M[a]);q=JM(q.type,q.quality,q.itag,q.width,q.height);k.push(new NF(q,K))}}return wY(m.S,k,a_(m,e),!1)}; +rY=function(m,e){this.X=m;this.S=e}; +Ahs=function(m,e,Z){var M=[];Z=g.r(Z);for(var k=Z.next();!k.done;k=Z.next())if((k=k.value)&&k.url){var K=JM(k.type,"medium","0");M.push(new rY(K,k.url))}return wY(m.S,M,a_(m,e),!1)}; +CVy=function(m,e){var Z=[],M=JM(e.type,"auto",e.itag);Z.push(new rY(M,e.url));return wY(m.S,Z,!1,!0)}; +oLt=function(m){return m&&fc1[m]?fc1[m]:null}; +dBK=function(m){if(m=m.commonConfig)this.url=m.url,this.urlQueryOverride=m.urlQueryOverride,m.ustreamerConfig&&(this.HE=AX(m.ustreamerConfig)||void 0)}; +BJ1=function(m,e){var Z;if(e=e==null?void 0:(Z=e.watchEndpointSupportedOnesieConfig)==null?void 0:Z.html5PlaybackOnesieConfig)m.ND=new dBK(e)}; +g.I_=function(m){m=m===void 0?{}:m;this.languageCode=m.languageCode||"";this.languageName=m.languageName||null;this.kind=m.kind||"";this.name=m.name===void 0?null:m.name;this.displayName=m.displayName||null;this.id=m.id||null;this.X=m.is_servable||!1;this.isTranslateable=m.is_translateable||!1;this.url=m.url||null;this.vssId=m.vss_id||"";this.isDefault=m.is_default||!1;this.translationLanguage=m.translationLanguage||null;this.xtags=m.xtags||"";this.captionId=m.captionId||""}; +g.AC=function(m){return m.translationLanguage?m.translationLanguage.languageCode:m.languageCode}; +g.ELK=function(m){var e=m.vssId;m.translationLanguage&&e&&(e="t"+e+"."+g.AC(m));return e}; +g.Cm=function(m){var e=[];if(m.displayName)e.push(m.displayName);else{var Z=m.languageName||"";e.push(Z);m.kind==="asr"&&Z.indexOf("(")===-1&&e.push(" (\u062a\u0631\u062c\u0645\u0629 \u062a\u0644\u0642\u0627\u0626\u064a\u0629)");m.name&&e.push(" - "+m.name)}m.translationLanguage&&e.push(" >> "+m.translationLanguage.languageName);return e.join("")}; +thm=function(m,e){m||(m=e&&Yh7.hasOwnProperty(e)&&UBK.hasOwnProperty(e)?UBK[e]+"_"+Yh7[e]:void 0);e=m;if(!e)return null;m=e.match(bhk);if(!m||m.length!==5)return null;e.match(bhk);return e}; +fm=function(m,e){for(var Z={},M=g.r(Object.keys(QII)),k=M.next();!k.done;k=M.next()){k=k.value;var K=e?e+k:k;K=m[K+"_webp"]||m[K];g.Bi(K)&&(Z[QII[k]]=K)}return Z}; +o_=function(m){var e={};if(!m||!m.thumbnails)return e;m=m.thumbnails.filter(function(S){return!!S.url}); +m.sort(function(S,a){return S.width-a.width||S.height-a.height}); +for(var Z=g.r(Object.keys(HhR)),M=Z.next();!M.done;M=Z.next()){var k=Number(M.value);M=HhR[k];for(var K=g.r(m),q=K.next();!q.done;q=K.next())if(q=q.value,q.width>=k){k=DB7(q.url);g.Bi(k)&&(e[M]=k);break}}(m=m.pop())&&m.width>=1280&&(m=DB7(m.url),g.Bi(m)&&(e["maxresdefault.jpg"]=m));return e}; +DB7=function(m){return m.startsWith("//")?"https:"+m:m}; +dY=function(m){return m&&m.baseUrl||""}; +B4=function(m){m=g.D_(m);for(var e=g.r(Object.keys(m)),Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=m[Z];m[Z]=Array.isArray(M)?M[0]:M}return m}; +Lc1=function(m,e){m.botguardData=e.playerAttestationRenderer.botguardData;e=e.playerAttestationRenderer.challenge;e!=null&&(m.P4=e)}; +yhb=function(m,e){e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=Z.interstitials.map(function(q){var S=g.t(q,sIm);if(S)return{is_yto_interstitial:!0,raw_player_response:S};if(q=g.t(q,GWK))return Object.assign({is_yto_interstitial:!0},g.Q4(q))}); +M=g.r(M);for(var k=M.next();!k.done;k=M.next())switch(k=k.value,Z.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":m.interstitials=m.interstitials.concat({time:0,playerVars:k,p6:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":m.interstitials=m.interstitials.concat({time:0x7ffffffffffff,playerVars:k,p6:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var K=Number(Z.podConfig.timeToInsertAtMillis);m.interstitials=m.interstitials.concat({time:K,playerVars:k, +p6:K===0?5:7})}}}; +jIs=function(m,e){if(e=e.find(function(Z){return!(!Z||!Z.tooltipRenderer)}))m.tooltipRenderer=e.tooltipRenderer}; +Ohc=function(m,e){e.subscribeCommand&&(m.subscribeCommand=e.subscribeCommand);e.unsubscribeCommand&&(m.unsubscribeCommand=e.unsubscribeCommand);e.addToWatchLaterCommand&&(m.addToWatchLaterCommand=e.addToWatchLaterCommand);e.removeFromWatchLaterCommand&&(m.removeFromWatchLaterCommand=e.removeFromWatchLaterCommand);e.getSharePanelCommand&&(m.getSharePanelCommand=e.getSharePanelCommand)}; +Jhc=function(m,e){e!=null?(m.g5=e,m.hE=!0):(m.g5="",m.hE=!1)}; +EG=function(m,e){this.type=m||"";this.id=e||""}; +YI=function(m,e){this.Xq=m;this.author="";this.Rv=null;this.playlistLength=0;this.X=this.sessionData=null;this.K={};this.title="";if(e){this.author=e.author||e.playlist_author||"";this.title=e.playlist_title||"";if(m=e.session_data)this.sessionData=bw(m,"&");var Z;this.X=((Z=e.thumbnail_ids)==null?void 0:Z.split(",")[0])||null;this.K=fm(e,"playlist_");this.videoId=e.video_id||void 0;if(Z=e.list)switch(e.listType){case "user_uploads":this.playlistId=(new EG("UU","PLAYER_"+Z)).toString();break;default:if(m= +e.playlist_length)this.playlistLength=Number(m)||0;this.playlistId=(new EG(Z.substring(0,2),Z.substring(2))).toString();if(e=e.video)this.videoId=(e[0]||null).video_id||void 0}else e.playlist&&(this.playlistLength=e.playlist.toString().split(",").length)}}; +UG=function(m,e){this.Xq=m;this.V1=this.author="";this.Rv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.TX=this.lengthText="";this.sessionData=null;this.K={};this.title="";if(e){this.ariaLabel=e.aria_label||void 0;this.author=e.author||"";this.V1=e.V1||"";if(m=e.endscreen_autoplay_session_data)this.Rv=bw(m,"&");this.fk=e.fk;this.isLivePlayback=e.live_playback==="1";this.isUpcoming=!!e.isUpcoming;if(m=e.length_seconds)this.lengthSeconds=typeof m==="string"?Number(m):m;this.lengthText= +e.lengthText||"";this.TX=e.TX||"";this.publishedTimeText=e.publishedTimeText||void 0;if(m=e.session_data)this.sessionData=bw(m,"&");this.shortViewCount=e.short_view_count_text||void 0;this.K=fm(e);this.title=e.title||"";this.videoId=e.docid||e.video_id||e.videoId||e.id||void 0;this.watchUrl=e.watchUrl||void 0}}; +Vh3=function(m){var e,Z,M=(e=m.getWatchNextResponse())==null?void 0:(Z=e.contents)==null?void 0:Z.twoColumnWatchNextResults,k,K,q,S,a;m=(k=m.getWatchNextResponse())==null?void 0:(K=k.playerOverlays)==null?void 0:(q=K.playerOverlayRenderer)==null?void 0:(S=q.endScreen)==null?void 0:(a=S.watchNextEndScreenRenderer)==null?void 0:a.results;if(!m){var v,X;m=M==null?void 0:(v=M.endScreen)==null?void 0:(X=v.endScreen)==null?void 0:X.results}return m}; +Wcc=function(m){this.X=m.playback_progress_0s_url;this.U=m.playback_progress_2s_url;this.S=m.playback_progress_10s_url}; +zpb=function(){if(bA===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(e){}a:{try{var m=!!self.localStorage}catch(e){m=!1}if(m&&(m=g.Gc(r1()+"::yt-player"))){bA=new im(m);break a}bA=void 0}}return bA}; +tC=function(){var m=zpb();if(!m)return{};try{var e=m.get("yt-player-lv");return JSON.parse(e||"{}")}catch(Z){return{}}}; +Q5=function(m){return tC()[m]||0}; +H4=function(m,e){var Z=tC();e!==Z[m]&&(e!==0?Z[m]=e:delete Z[m],m=zpb())&&(Z=JSON.stringify(Z),m.set("yt-player-lv",Z))}; +g.DE=function(m){return g.Qs(function(e){return e.return(BV(PVR(),m))})}; +sG=function(m,e,Z,M,k,K,q,S){var a,v,X,x,l,R;return g.Qs(function(h){switch(h.X){case 1:return a=Q5(m),a===4?h.return(4):g.A(h,g.sY(),2);case 2:v=h.S;if(!v)throw g.eB("wiac");if(!S||q===void 0){h.pB(3);break}return g.A(h,mhR(S,q),4);case 4:q=h.S;case 3:return X=Z.lastModified||"0",g.A(h,g.DE(v),5);case 5:return x=h.S,Ab(h,6),Lm++,g.A(h,lE(x,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",vV:!0},function(w){if(K!==void 0&&q!==void 0){var N=""+m+"|"+e.id+"|"+X+"|"+String(K).padStart(10, +"0");N=uE(w.objectStore("media"),q,N)}else N=MA.resolve(void 0);var I=e7K(m,e.wy()),C=e7K(m,!e.wy()),B={fmts:ZEk(M),format:Z||{}};I=uE(w.objectStore("index"),B,I);var b=M.downloadedEndTime===-1;B=b?w.objectStore("index").get(C):MA.resolve(void 0);var L={fmts:"music",format:{}};w=b&&k&&!e.wy()?uE(w.objectStore("index"),L,C):MA.resolve(void 0);return MA.all([w,B,N,I]).then(function(Q){Q=g.r(Q);Q.next();var J=Q.next().value;Lm--;Q=Q5(m);var kG;!(kG=Q!==4&&b&&k)&&(kG=J!==void 0)&&(kG=(J=J.fmts)?J==="music"? +!0:J.includes("dlt=-1")||!J.includes("dlt="):!1);kG&&(Q=1,H4(m,Q));return Q})}),8); +case 8:return h.return(h.S);case 6:l=f1(h);Lm--;R=Q5(m);if(R===4)return h.return(R);H4(m,4);throw l;}})}; +MSm=function(m){var e,Z;return g.Qs(function(M){if(M.X==1)return g.A(M,g.sY(),2);if(M.X!=3){e=M.S;if(!e)throw g.eB("ri");return g.A(M,g.DE(e),3)}Z=M.S;return M.return(lE(Z,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(k){var K=IDBKeyRange.bound(m+"|",m+"~");return BKt(k.objectStore("index"),K).then(function(q){return q.map(function(S){return S?S.format:{}})})}))})}; +KhG=function(m,e,Z,M,k){var K,q,S;return g.Qs(function(a){if(a.X==1)return g.A(a,g.sY(),2);if(a.X!=3){K=a.S;if(!K)throw g.eB("rc");return g.A(a,g.DE(K),3)}q=a.S;S=lE(q,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(v){var X=""+m+"|"+e+"|"+Z+"|"+String(M).padStart(10,"0");return v.objectStore("media").get(X)}); +return k?a.return(S.then(function(v){if(v===void 0)throw Error("No data from indexDb");return kD7(k,v)}).catch(function(v){throw new g.Nr("Error while reading chunk: "+v.name+", "+v.message); +})):a.return(S)})}; +e7K=function(m,e){return""+m+"|"+(e?"v":"a")}; +ZEk=function(m){var e={};return g.tW((e.dlt=m.downloadedEndTime.toString(),e.mket=m.maxKnownEndTime.toString(),e.avbr=m.averageByteRate.toString(),e))}; +pA1=function(m){var e={},Z={};m=g.r(m);for(var M=m.next();!M.done;M=m.next()){var k=M.value,K=k.split("|");k.match(qLR)?(M=Number(K.pop()),isNaN(M)?Z[k]="?":(K=K.join("|"),(k=e[K])?(K=k[k.length-1],M===K.end+1?K.end=M:k.push({start:M,end:M})):e[K]=[{start:M,end:M}])):Z[k]="?"}m=g.r(Object.keys(e));for(M=m.next();!M.done;M=m.next())M=M.value,Z[M]=e[M].map(function(q){return q.start+"-"+q.end}).join(","); +return Z}; +Gk=function(){g.m6.call(this);this.X=null;new O6;this.X=null}; +y5=function(m,e,Z,M){this.level=m;this.Z=e;this.loaded=new Set;this.level=m;this.Z=e;m=Z.split("#");this.width=Math.floor(Number(m[0]));this.height=Math.floor(Number(m[1]));this.frameCount=Math.floor(Number(m[2]));this.columns=Math.floor(Number(m[3]));this.rows=Math.floor(Number(m[4]));this.S=Math.floor(Number(m[5]));this.U=m[6];this.signature=m[7];this.videoLength=M}; +jA=function(m,e,Z,M,k){M=M===void 0?!1:M;k=k===void 0?!1:k;Gk.call(this,Z);this.isLive=M;this.Z=!!k;this.levels=this.S(m,e);this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +OG=function(m,e,Z,M){Z=Z.split("#");Z=[Z[1],Z[2],0,Z[3],Z[4],-1,Z[0],""].join("#");y5.call(this,m,e,Z,0);this.X=null;this.L=M?2:0}; +JC=function(m,e,Z,M){jA.call(this,m,0,void 0,e,!(M===void 0||!M));for(m=0;m1&&g.LD(new g.Nr("There are more than one engaged_view_urls.")),m.HV=G2.engagedViewUrls[0])}}var cR= +m.playerResponse.playerCueRanges;cR&&cR.length>0&&(m.cueRanges=cR);var sW=m.playerResponse.playerCueRangeSet;sW&&g.Z8(m,sW);a:{var GJ=m.playerResponse.adPlacements;if(GJ)for(var y_=g.r(GJ),vl=y_.next();!vl.done;vl=y_.next()){var jv=void 0,OW=void 0,Ja=(jv=vl.value.adPlacementRenderer)==null?void 0:(OW=jv.renderer)==null?void 0:OW.videoAdTrackingRenderer;if(Ja){var V_=Ja;break a}}V_=null}var gn=V_;mI&&mI.promotedPlaybackTracking&&gn&&g.LD(new g.Nr("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); +gn&&(m.K3=!0);var Wn=m.playerResponse.playerAds;if(Wn)for(var G7=e,zJ=g.r(Wn),XJ=zJ.next();!XJ.done;XJ=zJ.next()){var Pn=XJ.value;if(Pn){var m5=Pn.playerLegacyDesktopWatchAdsRenderer;if(m5){var Sa=m5.playerAdParams;if(Sa){Sa.autoplay=="1"&&(m.uP=!0,m.wW=!0);m.Aj=Sa.encodedAdSafetyReason||null;Sa.showContentThumbnail!==void 0&&(m.y$=!!Sa.showContentThumbnail);G7.enabled_engage_types=Sa.enabledEngageTypes;break}}}}var my=m.playerResponse.playerConfig;if(my){var aw=my.manifestlessWindowedLiveConfig; +if(aw){var ip=Number(aw.minDvrSequence),NU=Number(aw.maxDvrSequence),rU=Number(aw.minDvrMediaTimeMs),Im=Number(aw.maxDvrMediaTimeMs),et=Number(aw.startWalltimeMs);ip&&(m.X5=ip);rU&&(m.b9=rU/1E3,m.W("html5_sabr_parse_live_metadata_playback_boundaries")&&Mw(m)&&(m.Cv=rU/1E3));NU&&(m.xE=NU);Im&&(m.mw=Im/1E3,m.W("html5_sabr_parse_live_metadata_playback_boundaries")&&Mw(m)&&(m.FF=Im/1E3));et&&(m.Bq=et/1E3);(ip||rU)&&(NU||Im)&&(m.S9=!0,m.isLivePlayback=!0,m.allowLiveDvr=!0,m.QH=!1)}var oo=my.daiConfig; +if(oo){if(oo.enableDai){m.Ex=!0;var A7=oo.enableServerStitchedDai;A7&&(m.enableServerStitchedDai=A7);var yG=oo.enablePreroll;yG&&(m.enablePreroll=yG)}var Z7;if(oo.daiType==="DAI_TYPE_SS_DISABLED"||((Z7=oo.debugInfo)==null?0:Z7.isDisabledUnpluggedChannel))m.zF=!0;oo.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(m.QA=!0)}var C3=my.audioConfig;if(C3){var MP=C3.loudnessDb;MP!=null&&(m.K1=MP);var xd=C3.trackAbsoluteLoudnessLkfs;xd!=null&&(m.vP=xd);var lp=C3.loudnessTargetLkfs;lp!=null&&(m.loudnessTargetLkfs= +lp);C3.audioMuted&&(m.C0=!0);C3.muteOnStart&&(m.EV=!0);var dN=C3.loudnessNormalizationConfig;if(dN){dN.applyStatefulNormalization&&(m.applyStatefulNormalization=!0);dN.preserveStatefulLoudnessTarget&&(m.preserveStatefulLoudnessTarget=!0);var kb=dN.minimumLoudnessTargetLkfs;kb!=null&&(m.minimumLoudnessTargetLkfs=kb);var KT=dN.maxStatefulTimeThresholdSec;KT!=null&&(m.maxStatefulTimeThresholdSec=KT)}m.W("web_player_audio_playback_from_audio_config")&&C3.playAudioOnly&&(m.Sp=!0)}var qP=my.playbackEndConfig; +if(qP){var Jp=qP.endSeconds,HdP=qP.limitedPlaybackDurationInSeconds;m.mutedAutoplay&&(Jp&&(m.endSeconds=Jp),HdP&&(m.limitedPlaybackDurationInSeconds=HdP))}var ju=my.fairPlayConfig;if(ju){var Dac=ju.certificate;Dac&&(m.kG=AX(Dac));var Lyb=Number(ju.keyRotationPeriodMs);Lyb>0&&(m.Gd=Lyb);var sR3=Number(ju.keyPrefetchMarginMs);sR3>0&&(m.eq=sR3)}var up=my.playbackStartConfig;if(up){m.xU=Number(up.startSeconds);var Gms=up.liveUtcStartSeconds,ylb=!!m.liveUtcStartSeconds&&m.liveUtcStartSeconds>0;Gms&&!ylb&& +(m.liveUtcStartSeconds=Number(Gms));var vf=up.startPosition;if(vf){var jRy=vf.utcTimeMillis;jRy&&!ylb&&(m.liveUtcStartSeconds=Number(jRy)*.001);var Odk=vf.streamTimeMillis;Odk&&(m.xa=Number(Odk)*.001)}m.progressBarStartPosition=up.progressBarStartPosition;m.progressBarEndPosition=up.progressBarEndPosition}else{var gC=my.skippableSegmentsConfig;if(gC){var Jlt=gC.introSkipDurationMs;Jlt&&(m.vE=Number(Jlt)/1E3);var VVK=gC.outroSkipDurationMs;VVK&&(m.ly=Number(VVK)/1E3)}}var Xi=my.skippableIntroConfig; +if(Xi){var Wys=Number(Xi.startMs),zNK=Number(Xi.endMs);isNaN(Wys)||isNaN(zNK)||(m.No=Wys,m.yP=zNK)}var Put=my.streamSelectionConfig;Put&&(m.JY=Number(Put.maxBitrate));var mvs=my.vrConfig;mvs&&(m.K$=mvs.partialSpherical=="1");var pT=my.webDrmConfig;if(pT){pT.skipWidevine&&(m.Fp=!0);var ecs=pT.widevineServiceCert;ecs&&(m.dZ=AX(ecs));pT.useCobaltWidevine&&(m.useCobaltWidevine=!0);pT.startWithNoQualityConstraint&&(m.YH=!0)}var vS=my.mediaCommonConfig;if(vS){var O_=vS.dynamicReadaheadConfig;if(O_){m.maxReadAheadMediaTimeMs= +O_.maxReadAheadMediaTimeMs||NaN;m.minReadAheadMediaTimeMs=O_.minReadAheadMediaTimeMs||NaN;m.readAheadGrowthRateMs=O_.readAheadGrowthRateMs||NaN;var Z73,Mds=vS==null?void 0:(Z73=vS.mediaUstreamerRequestConfig)==null?void 0:Z73.videoPlaybackUstreamerConfig;Mds&&(m.f1=AX(Mds));var iD=vS==null?void 0:vS.sabrContextUpdates;if(iD&&iD.length>0)for(var k2R=g.r(iD),xr=k2R.next();!xr.done;xr=k2R.next()){var CQ=xr.value;if(CQ.type&&CQ.value){var Igk={type:CQ.type,scope:CQ.scope,value:AX(CQ.value)||void 0,sendByDefault:CQ.sendByDefault}; +m.sabrContextUpdates.set(CQ.type,Igk)}}}var KG1=vS.serverPlaybackStartConfig;KG1&&(m.serverPlaybackStartConfig=KG1);vS.useServerDrivenAbr&&(m.jF=!0);var qDI=vS.requestPipeliningConfig;qDI&&(m.requestPipeliningConfig=qDI)}var p_c=my.inlinePlaybackConfig;p_c&&(m.HP=!!p_c.showAudioControls);var JJ=my.embeddedPlayerConfig;if(JJ){m.embeddedPlayerConfig=JJ;var lD=JJ.embeddedPlayerMode;if(lD){var SDI=m.J();SDI.j=lD;SDI.b9=lD==="EMBEDDED_PLAYER_MODE_PFL"}var af1=JJ.permissions;af1&&(m.allowImaMonetization= +!!af1.allowImaMonetization)}var vVG=my.ssapConfig;vVG&&(m.qQ=vVG.ssapPrerollEnabled||!1);var VG=my.webPlayerConfig;VG&&(VG.gatewayExperimentGroup&&(m.gatewayExperimentGroup=VG.gatewayExperimentGroup),VG.isProximaEligible&&(m.isProximaLatencyEligible=!0))}var gD=m.playerResponse.streamingData;if(gD){var uD=gD.formats;if(uD){for(var St=[],gVK=g.r(uD),RF=gVK.next();!RF.done;RF=gVK.next()){var h9=RF.value;St.push(h9.itag+"/"+h9.width+"x"+h9.height)}m.t0=St.join(",");St=[];for(var X_I=g.r(uD),TV=X_I.next();!TV.done;TV= +X_I.next()){var aV=TV.value,vw={itag:aV.itag,type:aV.mimeType,quality:aV.quality},i7t=aV.url;i7t&&(vw.url=i7t);var Wd=BD(aV),AXP=Wd.ex,CTR=Wd.dX,fgy=Wd.s;Wd.Np&&(vw.url=AXP,vw.sp=CTR,vw.s=fgy);St.push(bS(vw))}m.JJ=St.join(",")}var $r=gD.hlsFormats;if($r){var xv3=my||null,z7={};if(xv3){var Fi=xv3.audioPairingConfig;if(Fi&&Fi.pairs)for(var lfG=g.r(Fi.pairs),wC=lfG.next();!wC.done;wC=lfG.next()){var uWc=wC.value,nF=uWc.videoItag;z7[nF]||(z7[nF]=[]);z7[nF].push(uWc.audioItag)}}for(var Rcb={},hcK=g.r($r), +cf=hcK.next();!cf.done;cf=hcK.next()){var TMt=cf.value;Rcb[TMt.itag]=TMt.bitrate}for(var $vk=[],FGP=g.r($r),NW=FGP.next();!NW.done;NW=FGP.next()){var E4=NW.value,Bc={itag:E4.itag,type:E4.mimeType,url:E4.url,bitrate:E4.bitrate,width:E4.width,height:E4.height,fps:E4.fps},Pd=E4.audioTrack;if(Pd){var w_m=Pd.displayName;w_m&&(Bc.name=w_m,Bc.audio_track_id=Pd.id,Pd.audioIsDefault&&(Bc.is_default="1"))}if(E4.drmFamilies){for(var nVc=[],c8I=g.r(E4.drmFamilies),rC=c8I.next();!rC.done;rC=c8I.next())nVc.push(Yv[rC.value]); +Bc.drm_families=nVc.join(",")}var mj=z7[E4.itag];if(mj&&mj.length){Bc.audio_itag=mj.join(",");var NM3=Rcb[mj[0]];NM3&&(Bc.bitrate+=NM3)}var r81=$nK(E4);r81&&(Bc.eotf=r81);E4.audioChannels&&(Bc.audio_channels=E4.audioChannels);$vk.push(bS(Bc))}m.hlsFormats=$vk.join(",")}var IF=gD.licenseInfos;if(IF&&IF.length>0){for(var If3={},A83=g.r(IF),A9=A83.next();!A9.done;A9=A83.next()){var Cg1=A9.value,ff3=Cg1.drmFamily,oVG=Cg1.url;ff3&&oVG&&(If3[Yv[ff3]]=oVG)}m.wV=If3}var dv7=gD.drmParams;dv7&&(m.drmParams= +dv7);var BMy=gD.dashManifestUrl;BMy&&(m.uw=g.tV(BMy,{cpn:m.clientPlaybackNonce}));var EVK=gD.hlsManifestUrl;EVK&&(m.hlsvp=EVK);var YDy=gD.probeUrl;YDy&&(m.probeUrl=Ed(g.tV(YDy,{cpn:m.clientPlaybackNonce})));var UvG=gD.serverAbrStreamingUrl;UvG&&(m.wZ=new g.IL(UvG,!0))}var b77=m.playerResponse.trackingParams;b77&&(m.nB=b77);var O2=m.playerResponse.videoDetails;if(O2){var Em=e,CF=O2.videoId;CF&&(m.videoId=CF,Em.video_id||(Em.video_id=CF));var tds=O2.channelId;tds&&(m.j.uid=tds.substring(2));var fF= +O2.title;fF&&(m.title=fF,Em.title||(Em.title=fF));var oF=O2.lengthSeconds;oF&&(m.lengthSeconds=Number(oF),Em.length_seconds||(Em.length_seconds=oF));var QsI=O2.keywords;QsI&&(m.keywords=u1c(QsI));var dC=O2.channelId;dC&&(m.h0=dC,Em.ucid||(Em.ucid=dC));var H7s=O2.viewCount;H7s&&(m.rawViewCount=Number(H7s));var Bf=O2.author;Bf&&(m.author=Bf,Em.author||(Em.author=Bf));var Dvb=O2.shortDescription;Dvb&&(m.shortDescription=Dvb);var LGk=O2.isCrawlable;LGk&&(m.isListed=LGk);var sst=O2.musicVideoType;sst&& +(m.musicVideoType=sst);var EB=O2.isLive;EB!=null&&(m.isLivePlayback=EB);if(EB||O2.isUpcoming)m.isPremiere=!O2.isLiveContent;var G2k=O2.thumbnail;G2k&&(m.K=o_(G2k));var y8R=O2.isExternallyHostedPodcast;y8R&&(m.isExternallyHostedPodcast=y8R);var Yr=O2.viewerLivestreamJoinPosition;if(Yr==null?0:Yr.utcTimeMillis)m.Ok=g.ap(Yr.utcTimeMillis);var jsy=my||null,UB=e;O2.isLiveDefaultBroadcast&&(m.isLiveDefaultBroadcast=!0);O2.isUpcoming&&(m.isUpcoming=!0);if(O2.isPostLiveDvr){m.QH=!0;var O7k=O2.latencyClass; +O7k&&(m.latencyClass=cWs[O7k]||"UNKNOWN");O2.isLowLatencyLiveStream&&(m.isLowLatencyLiveStream=!0)}else{var bD=!1;if(m.CR)m.allowLiveDvr=wI()?!0:yA&&kO<5?!1:!0,m.isLivePlayback=!0;else if(O2.isLive){UB.livestream="1";m.allowLiveDvr=O2.isLiveDvrEnabled?wI()?!0:yA&&kO<5?!1:!0:!1;m.partnerId=27;O2.isLowLatencyLiveStream&&(m.isLowLatencyLiveStream=!0);var Vd1=O2.latencyClass;Vd1&&(m.latencyClass=cWs[Vd1]||"UNKNOWN");var WGb=O2.liveChunkReadahead;WGb&&(m.liveChunkReadahead=WGb);var Rh=jsy&&jsy.livePlayerConfig; +if(Rh){Rh.hasSubfragmentedFmp4&&(m.hasSubfragmentedFmp4=!0);Rh.hasSubfragmentedWebm&&(m.cY=!0);Rh.defraggedFromSubfragments&&(m.defraggedFromSubfragments=!0);var zcm=Rh.liveExperimentalContentId;zcm&&(m.liveExperimentalContentId=Number(zcm));var PgP=Rh.isLiveHeadPlayable;m.W("html5_live_head_playable")&&PgP!=null&&(m.isLiveHeadPlayable=PgP)}bD=!0}else O2.isUpcoming&&(bD=!0);bD&&(m.isLivePlayback=!0,UB.adformat&&UB.adformat.split("_")[1]!=="8"||m.yh.push("heartbeat"),m.Hw=!0)}var mHk=O2.isPrivate; +mHk!==void 0&&(m.isPrivate=zy(m.isPrivate,mHk))}if(z){var els=O2||null,ZGy=!1,hS=z.errorScreen;ZGy=hS&&(hS.playerLegacyDesktopYpcOfferRenderer||hS.playerLegacyDesktopYpcTrailerRenderer||hS.ypcTrailerRenderer)?!0:els&&els.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(z.status);if(!ZGy){m.errorCode=oLt(z.errorCode)||"auth";var ec=hS&&hS.playerErrorMessageRenderer;if(ec){m.playerErrorMessageRenderer=ec;var M57=ec.reason;M57&&(m.errorReason=g.Bh(M57));var t9=ec.subreason;t9&&(m.W4= +g.Bh(t9),m.fO=t9)}else m.errorReason=z.reason||null;var Qn=z.status;if(Qn==="LOGIN_REQUIRED")m.errorDetail="1";else if(Qn==="CONTENT_CHECK_REQUIRED")m.errorDetail="2";else if(Qn==="AGE_CHECK_REQUIRED"){var k0s=z.errorScreen,Kfm=k0s&&k0s.playerKavRenderer;m.errorDetail=Kfm&&Kfm.kavUrl?"4":"3"}else m.errorDetail=z.isBlockedInRestrictedMode?"5":"0"}}var q4c=m.playerResponse.interstitialPods;q4c&&yhb(m,q4c);m.VD&&m.eventId&&(m.VD=g.GD(m.VD,{ei:m.eventId}));var Hf=m.playerResponse.captions;if(Hf&&Hf.playerCaptionsTracklistRenderer)a:{var Yo= +Hf.playerCaptionsTracklistRenderer;m.captionTracks=[];if(Yo.captionTracks)for(var pr3=g.r(Yo.captionTracks),Dy=pr3.next();!Dy.done;Dy=pr3.next()){var Um=Dy.value,S4t=iEt(Um.baseUrl);if(!S4t)break a;var LF={is_translateable:!!Um.isTranslatable,languageCode:Um.languageCode,languageName:Um.name&&g.Bh(Um.name),url:S4t,vss_id:Um.vssId,kind:Um.kind};LF.name=Um.trackName;LF.displayName=Um.name&&g.Bh(Um.name);m.captionTracks.push(new g.I_(LF))}m.UV=Yo.audioTracks||[];m.yF=Yo.defaultAudioTrackIndex||0;m.IG= +[];if(Yo.translationLanguages)for(var au3=g.r(Yo.translationLanguages),sB=au3.next();!sB.done;sB=au3.next()){var To=sB.value,om={};om.languageCode=To.languageCode;om.languageName=g.Bh(To.languageName);if(To.translationSourceTrackIndices){om.translationSourceTrackIndices=[];for(var vic=g.r(To.translationSourceTrackIndices),GV=vic.next();!GV.done;GV=vic.next())om.translationSourceTrackIndices.push(GV.value)}if(To.excludeAudioTrackIndices){om.excludeAudioTrackIndices=[];for(var gi1=g.r(To.excludeAudioTrackIndices), +yn=gi1.next();!yn.done;yn=gi1.next())om.excludeAudioTrackIndices.push(yn.value)}m.IG.push(om)}m.Zs=[];if(Yo.defaultTranslationSourceTrackIndices)for(var Xrt=g.r(Yo.defaultTranslationSourceTrackIndices),jo=Xrt.next();!jo.done;jo=Xrt.next())m.Zs.push(jo.value);m.QP=!!Yo.contribute&&!!Yo.contribute.captionsMetadataRenderer}m.clipConfig=m.playerResponse.clipConfig;m.clipConfig&&m.clipConfig.startTimeMs!=null&&(m.xU=Number(m.clipConfig.startTimeMs)*.001);m.playerResponse&&m.playerResponse.playerConfig&& +m.playerResponse.playerConfig.webPlayerConfig&&m.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Ohc(m,m.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var iGs;m.compositeLiveIngestionOffsetToken=(iGs=m.playerResponse.playbackTracking)==null?void 0:iGs.compositeLiveIngestionOffsetToken;var xHm;m.compositeLiveStatusToken=(xHm=m.playerResponse.playbackTracking)==null?void 0:xHm.compositeLiveStatusToken}gA7(m,e);e.queue_info&&(m.queueInfo=e.queue_info);var luk= +e.hlsdvr;luk!=null&&(m.allowLiveDvr=Number(luk)===1?wI()?!0:yA&&kO<5?!1:!0:!1);m.adQueryId=e.ad_query_id||null;m.Aj||(m.Aj=e.encoded_ad_safety_reason||null);m.QF=e.agcid||null;m.IS=e.ad_id||null;m.Ow=e.ad_sys||null;m.pA=e.encoded_ad_playback_context||null;m.C0=zy(m.C0,e.infringe||e.muted);m.L$=e.authkey;m.rH=e.authuser;m.mutedAutoplay=zy(m.mutedAutoplay,e&&e.playmuted);m.mH=zy(m.mH,e&&e.mutedautoplay);var ZT=e.length_seconds;ZT&&(m.lengthSeconds=typeof ZT==="string"?g.ap(ZT):ZT);if(m.isAd()||m.BX|| +!CA(eA(m.Xq)))m.endSeconds=mE(m.endSeconds,m.ly||e.end||e.endSeconds);else{var okG=eA(m.Xq),ML=m.lengthSeconds;switch(okG){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ML>30?m.limitedPlaybackDurationInSeconds=30:ML<30&&ML>10&&(m.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":m.limitedPlaybackDurationInSeconds=ML*.2}}m.nB=ey(m.nB,e.itct);m.Rr=zy(m.Rr,e.noiba);m.KA=zy(m.KA,e.is_live_destination);m.isLivePlayback=zy(m.isLivePlayback,e.live_playback); +m.enableServerStitchedDai=m.enableServerStitchedDai&&m.gr();e.isUpcoming&&(m.isUpcoming=zy(m.isUpcoming,e.isUpcoming));m.QH=zy(m.QH,e.post_live_playback);m.S9&&(m.QH=!1);m.isMdxPlayback=zy(m.isMdxPlayback,e.mdx);var k7=e.mdx_control_mode;k7&&(m.mdxControlMode=typeof k7==="number"?k7:g.ap(k7));m.isInlinePlaybackNoAd=zy(m.isInlinePlaybackNoAd,e.is_inline_playback_no_ad);m.wr=mE(m.wr,e.reload_count);m.reloadReason=ey(m.reloadReason,e.reload_reason);m.y$=zy(m.y$,e.show_content_thumbnail);m.Yk=zy(m.Yk, +e.utpsa);m.cycToken=e.cyc||null;m.M7=e.tkn||null;var u4K=fm(e);Object.keys(u4K).length>0&&(m.K=u4K);m.Y=ey(m.Y,e.vvt);m.mdxEnvironment=ey(m.mdxEnvironment,e.mdx_environment);e.source_container_playlist_id&&(m.sourceContainerPlaylistId=e.source_container_playlist_id);e.serialized_mdx_metadata&&(m.serializedMdxMetadata=e.serialized_mdx_metadata);m.WH=e.osig;m.eventId||(m.eventId=e.eventid);m.osid||(m.osid=e.osid);m.playlistId=ey(m.playlistId,e.list);e.index&&(m.playlistIndex=m.playlistIndex===void 0? +mE(0,e.index):mE(m.playlistIndex,e.index));m.qc=e.pyv_view_beacon_url;m.nD=e.pyv_quartile25_beacon_url;m.De=e.pyv_quartile50_beacon_url;m.aD=e.pyv_quartile75_beacon_url;m.k8=e.pyv_quartile100_beacon_url;var Rlb=e.session_data;!m.z9&&Rlb&&(m.z9=bw(Rlb,"&").feature);m.isFling=mE(m.isFling?1:0,e.is_fling)===1;m.vnd=mE(m.vnd,e.vnd);m.forceAdsUrl=ey(m.forceAdsUrl,e.force_ads_url);m.yQ=ey(m.yQ,e.ctrl);m.Ut=ey(m.Ut,e.ytr);m.Mz=e.ytrcc;m.RD=e.ytrexp;m.X0=e.ytrext;m.Wq=ey(m.Wq,e.adformat);m.Ko=ey(m.Ko,e.attrib); +m.slotPosition=mE(m.slotPosition,e.slot_pos);m.breakType=e.break_type;m.jC=zy(m.jC,e.ssrt);m.videoId=rn(e)||m.videoId;m.C=ey(m.C,e.vss_credentials_token);m.GT=ey(m.GT,e.vss_credentials_token_type);m.Sp=zy(m.Sp,e.audio_only);m.ZN=zy(m.ZN,e.aac_high);m.tV=zy(m.tV,e.prefer_low_quality_audio);m.CA=zy(m.CA,e.uncap_inline_quality);m.W("html5_enable_qoe_cat_list")?e.qoe_cat&&(m.td=m.td.concat(e.qoe_cat.split(","))):m.aF=ey(m.aF,e.qoe_cat);m.pV=zy(m.pV,e.download_media);var hlb=e.prefer_gapless;var dRs=hlb!= +null?zy(m.N,hlb):m.N?m.N:m.Xq.preferGapless&&m.Xq.supportsGaplessShorts();m.N=dRs;tZm(m.playerResponse)&&(m.yh.push("ad"),m.W("html5_ssap_pacf_qoe_ctmp")&&m.o9());var T9R=e.adaptive_fmts;T9R&&(m.adaptiveFormats=T9R,m.B("adpfmts",{},!0));var $H1=e.allow_embed;$H1&&(m.allowEmbed=Number($H1)===1);var Fft=e.backgroundable;Fft&&(m.backgroundable=Number(Fft)===1);var wrI=e.autonav;wrI&&(m.isAutonav=Number(wrI)===1);var ni1=e.autoplay;ni1&&(m.wW=Number(ni1)===1,m.uP=m.wW,ep(m,"c"));var csc=e.iv_load_policy; +csc&&(m.annotationsLoadPolicy=PO(m.annotationsLoadPolicy,csc,ZE));var N9t=e.cc_lang_pref;N9t&&(m.captionsLanguagePreference=ey(N9t,m.captionsLanguagePreference));var rsR=e.cc_load_policy;rsR&&(m.HZ=PO(m.HZ,rsR,ZE));var Iut;m.deviceCaptionsOn=(Iut=e.device_captions_on)!=null?Iut:void 0;var As3;m.VF=(As3=e.device_captions_lang_pref)!=null?As3:"";var CCm;m.F4=(CCm=e.viewer_selected_caption_langs)!=null?CCm:[];if(!m.W("html5_enable_ssap_entity_id")){var fuG=e.cached_load;fuG&&(m.iF=zy(m.iF,fuG))}if(e.dash=== +"0"||e.dash===0||e.dash===!1)m.eF=!0;var oiP=e.dashmpd;oiP&&(m.uw=g.tV(oiP,{cpn:m.clientPlaybackNonce}));var dHs=e.delay;dHs&&(m.KB=g.ap(dHs));var OB=m.ly||e.end;if(m.lX?OB!=null:OB!=void 0)m.clipEnd=mE(m.clipEnd,OB);var B9K=e.fmt_list;B9K&&(m.t0=B9K);e.heartbeat_preroll&&m.yh.push("heartbeat");m.cX=-Math.floor(Math.random()*10);m.Ax=-Math.floor(Math.random()*40);var Eiy=e.is_listed;Eiy&&(m.isListed=zy(m.isListed,Eiy));var Y4t=e.is_private;Y4t&&(m.isPrivate=zy(m.isPrivate,Y4t));var UHm=e.is_dni;UHm&& +(m.hE=zy(m.hE,UHm));var bGt=e.dni_color;bGt&&(m.g5=ey(m.g5,bGt));var t57=e.pipable;t57&&(m.pipable=zy(m.pipable,t57));var Q4c=e.paid_content_overlay_duration_ms;Q4c&&(m.paidContentOverlayDurationMs=g.ap(Q4c));var HG1=e.paid_content_overlay_text;HG1&&(m.paidContentOverlayText=HG1);var DH1=e.url_encoded_fmt_stream_map;DH1&&(m.JJ=DH1);var LfP=e.hls_formats;LfP&&(m.hlsFormats=LfP);var s41=e.hlsvp;s41&&(m.hlsvp=s41);var KV=e.live_start_walltime;KV&&(m.Ab=typeof KV==="number"?KV:g.ap(KV));var qL=e.live_manifest_duration; +qL&&(m.PS=typeof qL==="number"?qL:g.ap(qL));var G0s=e.player_params;G0s&&(m.playerParams=G0s);var ysP=e.partnerid;ysP&&(m.partnerId=mE(m.partnerId,ysP));var j4y=e.probe_url;j4y&&(m.probeUrl=Ed(g.tV(j4y,{cpn:m.clientPlaybackNonce})));var J9=e.pyv_billable_url;J9&&uVc(J9)&&(m.HV=J9);var Vn=e.pyv_conv_url;Vn&&uVc(Vn)&&(m.vQ=Vn);R73(m,e);m.startSeconds>0?m.W("html5_log_start_seconds_inconsistency")&&m.startSeconds!==(m.xU||m.vE||e.start||e.startSeconds)&&m.B("lss",{css:m.startSeconds,pcss:m.xU,iss:m.vE, +ps:e.start||void 0,pss:e.startSeconds||void 0}):(m.startSeconds=mE(m.startSeconds,m.xU||m.vE||e.start||e.startSeconds),m.XG=m.startSeconds);if(!(m.liveUtcStartSeconds&&m.liveUtcStartSeconds>0)){var OGP=e.live_utc_start;if(OGP!=null)m.liveUtcStartSeconds=Number(OGP);else{var Wf=m.startSeconds;Wf&&isFinite(Wf)&&Wf>1E9&&(m.liveUtcStartSeconds=m.startSeconds)}}if(!(m.liveUtcStartSeconds&&m.liveUtcStartSeconds>0)){var Jss=e.utc_start_millis;Jss&&(m.liveUtcStartSeconds=Number(Jss)*.001)}var V5K=e.stream_time_start_millis; +V5K&&(m.xa=Number(V5K)*.001);var zV=m.vE||e.start;(m.lX?zV==null||Number(e.resume)===1:zV==void 0||e.resume=="1")||m.isLivePlayback||(m.clipStart=mE(m.clipStart,zV));var WfI=e.url_encoded_third_party_media;WfI&&(m.BS=HA(WfI));var Pf=e.ypc_offer_button_formatted_text;if(Pf){var zlc=JSON.parse(Pf);m.Bg=zlc!=null?zlc:null;m.o8=Pf}var PCG=e.ypc_offer_button_text;PCG&&(m.cC=PCG);var mj1=e.ypc_offer_description;mj1&&(m.Yu=mj1);var eDK=e.ypc_offer_headline;eDK&&(m.Nz=eDK);var ZoK=e.ypc_full_video_message; +ZoK&&(m.Ak=ZoK);var Mf7=e.ypc_offer_id;Mf7&&(m.Do=Mf7);var kAc=e.ypc_buy_url;kAc&&(m.wp=kAc);var Kx3=e.ypc_item_thumbnail;Kx3&&(m.wQ=Kx3);var qfI=e.ypc_item_title;qfI&&(m.Eb=qfI);var po7=e.ypc_item_url;po7&&(m.GF=po7);var Sfs=e.ypc_vid;Sfs&&(m.Mr=Sfs);e.ypc_overlay_timeout&&(m.HC=Number(e.ypc_overlay_timeout));var axs=e.ypc_trailer_player_vars;axs&&(m.q_=g.Q4(axs));var v1I=e.ypc_original_itct;v1I&&(m.uv=v1I);m.h0=ey(m.h0,e.ucid);e.baseUrl&&(m.j.baseUrl=e.baseUrl);e.uid&&(m.j.uid=e.uid);e.oeid&&(m.j.oeid= +e.oeid);e.ieid&&(m.j.ieid=e.ieid);e.ppe&&(m.j.ppe=e.ppe);e.engaged&&(m.j.engaged=e.engaged);e.subscribed&&(m.j.subscribed=e.subscribed);m.j.focEnabled=zy(m.j.focEnabled,e.focEnabled);m.j.rmktEnabled=zy(m.j.rmktEnabled,e.rmktEnabled);m.Jo=e.storyboard_spec||null;m.VI=e.live_storyboard_spec||null;m.Xm=zy(m.Xm,e.iv3_module);m.Hw=zy(m.Hw,e.ypc_license_checker_module);m.xH=zy(m.xH,e.ypc_module);m.HS=zy(m.HS,e.ypc_clickwrap_module);m.xH&&m.yh.push("ypc");m.QU={video_id:e.video_id,eventid:e.eventid,cbrand:e.cbrand, +cbr:e.cbr,cbrver:e.cbrver,c:e.c,cver:e.cver,ctheme:e.ctheme,cplayer:e.cplayer,cmodel:e.cmodel,cnetwork:e.cnetwork,cos:e.cos,cosver:e.cosver,cplatform:e.cplatform,user_age:e.user_age,user_display_image:e.user_display_image,user_display_name:e.user_display_name,user_gender:e.user_gender,csi_page_type:e.csi_page_type,csi_service_name:e.csi_service_name,enablecsi:e.enablecsi,enabled_engage_types:e.enabled_engage_types};XAm(m,e);var g1k=e.cotn;g1k&&(m.cotn=g1k);if(NiI(m))KI(m)&&(m.isLivePlayback&&m.uw&& +(m.dG=!0),m.kG&&(m.kU=!0));else if(rWI(m))m.dG=!0;else{var xjs,lxs,uct=((xjs=m.playerResponse)==null?void 0:(lxs=xjs.streamingData)==null?void 0:lxs.adaptiveFormats)||[];if(uct.length>0)var Xg=I_R(m,uct);else{var hDk=m.adaptiveFormats;if(hDk&&!KI(m)){qw(m,"html5_enable_cobalt_experimental_vp9_decoder")&&(Oj=!0);var $d=pI(hDk),ml=m.wV,TrR=m.lengthSeconds,BIs=m.isLivePlayback,i4=m.QH,FJ=m.Xq,Ek1=jak($d);if(BIs||i4){var $jy=FJ==null?void 0:FJ.experiments,jf=new C8("",$jy,!0);jf.gr=!0;jf.isManifestless= +!0;jf.S=!i4;jf.isLive=!i4;jf.QH=i4;for(var Fxk=g.r($d),eK=Fxk.next();!eK.done;eK=Fxk.next()){var wn=eK.value,woc=bO(wn,ml),dU=tB(wn.url,wn.sp,wn.s),n1y=dU.get("id");n1y&&n1y.includes("%7E")&&(jf.K=!0);var ccy=void 0,Ynm=(ccy=$jy)==null?void 0:ccy.dc("html5_max_known_end_time_rebase"),URy=Number(wn.target_duration_sec)||5,bec=Number(wn.max_dvr_duration_sec)||14400,NrK=Number(dU.get("mindsq")||dU.get("min_sq")||"0"),rcG=Number(dU.get("maxdsq")||dU.get("max_sq")||"0")||Infinity;jf.X5=jf.X5||NrK;jf.xE= +jf.xE||rcG;var tP3=!Oq(woc.mimeType);dU&&BJ(jf,new $7(dU,woc,{gN:URy,kQ:tP3,lK:bec,X5:NrK,xE:rcG,xd:300,QH:i4,Y$:Ynm}))}var IxG=jf}else{if(Ek1==="FORMAT_STREAM_TYPE_OTF"){var Sc=TrR;Sc=Sc===void 0?0:Sc;var nA=new C8("",FJ==null?void 0:FJ.experiments,!1);nA.duration=Sc||0;for(var Acy=g.r($d),ZM=Acy.next();!ZM.done;ZM=Acy.next()){var cl=ZM.value,MX=bO(cl,ml,nA.duration),kX=tB(cl.url,cl.sp,cl.s);if(kX)if(MX.streamType==="FORMAT_STREAM_TYPE_OTF")BJ(nA,new FI(kX,MX,"sq/0"));else{var Q3k=fl(cl.init),He3= +fl(cl.index);BJ(nA,new oD(kX,MX,Q3k,He3))}}nA.isOtf=!0;var CK3=nA}else{var aD=TrR;aD=aD===void 0?0:aD;var vY=new C8("",FJ==null?void 0:FJ.experiments,!1);vY.duration=aD||0;for(var fxK=g.r($d),Ku=fxK.next();!Ku.done;Ku=fxK.next()){var Nc=Ku.value,DRy=bO(Nc,ml,vY.duration),LZK=fl(Nc.init),s31=fl(Nc.index),o1s=tB(Nc.url,Nc.sp,Nc.s);o1s&&BJ(vY,new oD(o1s,DRy,LZK,s31))}CK3=vY}IxG=CK3}var djc=IxG;if($d.length>0){var BrK=$d[0];if(m.J().playerStyle==="hangouts-meet"&&BrK.url){var Gx1=g.D_(BrK.url);m.QM=m.QM|| +Number(Gx1.expire)}}var yXm=m.isLivePlayback&&!m.QH&&!m.S9&&!m.isPremiere;m.W("html5_live_head_playable")&&(!g.Sp(m)&&yXm&&m.B("missingLiveHeadPlayable",{}),m.Xq.L==="yt"&&(djc.Hv=!0));Xg=djc}else Xg=null;m.B("pafmts",{isManifestFilled:!!Xg})}if(Xg){af(m,Xg);var E1s=!0}else E1s=!1;E1s?m.enableServerStitchedDai=m.enableServerStitchedDai&&vQ(m):m.uw&&(m.Xq.L==="yt"&&m.gr()&&m.W("drm_manifestless_unplugged")&&m.W("html5_deprecate_manifestful_fallback")?m.B("deprecateMflFallback",{}):m.dG=!0)}var pu= +e.adpings;pu&&(m.S1=pu?g.Q4(pu):null);var Yfb=e.feature;Yfb&&(m.bC=Yfb);var UjR=e.referrer;UjR&&(m.referrer=UjR);m.clientScreenNonce=ey(m.clientScreenNonce,e.csn);m.b3=mE(m.b3,e.root_ve_type);m.n6=mE(m.n6,e.kids_age_up_mode);m.lX||e.kids_app_info==void 0||(m.kidsAppInfo=e.kids_app_info);m.lX&&e.kids_app_info!=null&&(m.kidsAppInfo=e.kids_app_info);m.Dy=zy(m.Dy,e.upg_content_filter_mode);m.unpluggedFilterModeType=mE(m.unpluggedFilterModeType,e.unplugged_filter_mode_type);var boK=e.unplugged_location_info; +boK&&(m.Te=boK);var tf7=e.unplugged_partner_opt_out;tf7&&(m.ML=ey("",tf7));m.Ek=zy(m.Ek,e.disable_watch_next);m.qZ=ey(m.qZ,e.internal_ip_override);m.fA=!!e.is_yto_interstitial;(m.interstitials.length||m.fA)&&m.yh.push("yto");var QrK=e.UU;QrK&&(m.UU=QrK);var HoI;m.sE=(HoI=e.csi_timer)!=null?HoI:"";m.HX=!!e.force_gvi;e.watchUrl&&(m.watchUrl=e.watchUrl);var BR=e.watch_endpoint;m.W("html5_attach_watch_endpoint_ustreamer_config")&&BR&&BJ1(m,BR);if(BR==null?0:BR.ustreamerConfig)m.HE=AX(BR.ustreamerConfig); +var DjG,Lx7,srG=BR==null?void 0:(DjG=BR.loggingContext)==null?void 0:(Lx7=DjG.qoeLoggingContext)==null?void 0:Lx7.serializedContextData;srG&&(m.Ks=srG);On(m.Xq)&&m.Xq.AT&&(m.embedsRct=ey(m.embedsRct,e.rct),m.embedsRctn=ey(m.embedsRctn,e.rctn));m.AT=m.AT||!!e.pause_at_start;e.default_active_source_video_id&&(m.defaultActiveSourceVideoId=e.default_active_source_video_id)}; +l_y=function(m,e,Z){var M,k=(M=e.cpnInfo)==null?void 0:M.cpn;m.playerResponseCpn=k!=null?k:"";g.gA(m)&&!k&&m.Nr("ssei","eim_"+m.clientPlaybackNonce);var K;return((K=e.cacheMetadata)==null?0:K.isCacheHit)||m.iF||!k?"":(Xh.has(k)?Z="":(e=AWK.push(k),Xh.add(k),e>(Z!=null?Z:50)&&(Z=AWK.shift())&&Xh.delete(Z),Z=k),k!==Z&&m.Nr("ssei","dcpn_"+k+"_"+Z+"_"+m.clientPlaybackNonce),Z)}; +gA7=function(m,e){var Z=e.raw_watch_next_response;if(!Z){var M=e.watch_next_response;M&&(Z=JSON.parse(M))}if(Z){m.Qh=Z;var k=m.Qh.playerCueRangeSet;k&&g.Z8(m,k);var K=m.Qh.playerOverlays;if(K){var q=K.playerOverlayRenderer;if(q){var S=q.autonavToggle;S&&(m.autoplaySwitchButtonRenderer=g.t(S,Cw3),m.W("web_player_autonav_use_server_provided_state")&&f_P(m)&&(m.autonavState=m.autoplaySwitchButtonRenderer.enabled?2:1));var a=q.videoDetails;if(a){var v=a.embeddedPlayerOverlayVideoDetailsRenderer;var X= +a.playerOverlayVideoDetailsRenderer;X&&(X.title&&(e.title=g.Bh(X.title)),X.subtitle&&(e.subtitle=g.Bh(X.subtitle)))}g.Pe(m.Xq)&&(m.Kf=!!q.addToMenu);m.showShareButton=!!q.shareButton;q.startPosition&&q.endPosition&&(m.progressBarStartPosition=q.startPosition,m.progressBarEndPosition=q.endPosition);var x,l,R,h=g.t((x=m.getWatchNextResponse())==null?void 0:(l=x.playerOverlays)==null?void 0:(R=l.playerOverlayRenderer)==null?void 0:R.infoPanel,oA1);if(h){m.uJ=Number(h==null?void 0:h.durationMs)||NaN; +if(h==null?0:h.infoPanelOverviewViewModel)m.GQ=h==null?void 0:h.infoPanelOverviewViewModel;if(h==null?0:h.infoPanelDetailsViewModel)m.wH=h==null?void 0:h.infoPanelDetailsViewModel}m.showSeekingControls=!!q.showSeekingControls}}var w,N,I=(w=m.getWatchNextResponse())==null?void 0:(N=w.contents)==null?void 0:N.twoColumnWatchNextResults;if(I){var C=I.desktopOverlay&&g.t(I.desktopOverlay,dhy);C&&(C.suppressShareButton&&(m.showShareButton=!1),C.suppressWatchLaterButton&&(m.Kf=!1))}v&&Bic(m,e,v);var B=mE(0, +e.autoplay_count),b=m.getWatchNextResponse(),L,Q=(L=b.contents)==null?void 0:L.twoColumnWatchNextResults,J,kG,TK,z=(J=b.playerOverlays)==null?void 0:(kG=J.playerOverlayRenderer)==null?void 0:(TK=kG.autoplay)==null?void 0:TK.playerOverlayAutoplayRenderer,D=Vh3(m),W,u=(W=b.contents)==null?void 0:W.singleColumnWatchNextResults;if(u){var H;if(((H=u.autoplay)==null?0:H.autoplay)&&!u.playlist){var yf=u.autoplay.autoplay.sets,nd={},I4=new UG(m.J()),i6=null,TC;if(yf){for(var sD=g.r(yf),dm=sD.next();!dm.done;dm= +sD.next()){var F=dm.value.autoplayVideoRenderer;if(F&&F.compactVideoRenderer){i6=F.compactVideoRenderer;break}}if(TC=yf[0].autoplayVideo){var n=TC.clickTrackingParams;n&&(nd.itct=n);nd.autonav="1";nd.playnext=String(B)}}else nd.feature="related-auto";var c=g.t(TC,g.iJ);if(i6){I4.videoId=i6.videoId;var f=i6.shortBylineText;f&&(I4.author=g.Bh(f));var E=i6.title;E&&(I4.title=g.Bh(E))}else c!=null&&c.videoId&&(I4.videoId=c.videoId);I4.Rv=nd;m.suggestions=[];m.ZD=I4}}if(D){for(var P=[],K1=g.r(D),mI=K1.next();!mI.done;mI= +K1.next()){var d=mI.value,q7=void 0,vy=null;if(d.endScreenVideoRenderer){var uP=d.endScreenVideoRenderer,tb=uP.title;vy=new UG(m.J());vy.videoId=uP.videoId;vy.lengthSeconds=uP.lengthInSeconds||0;var Kz=uP.publishedTimeText;Kz&&(vy.publishedTimeText=g.Bh(Kz));var xR=uP.shortBylineText;xR&&(vy.author=g.Bh(xR));var Lq=uP.shortViewCountText;Lq&&(vy.shortViewCount=g.Bh(Lq));if(tb){vy.title=g.Bh(tb);var Vs=tb.accessibility;if(Vs){var qY=Vs.accessibilityData;qY&&qY.label&&(vy.ariaLabel=qY.label)}}var Io= +uP.navigationEndpoint;if(Io){q7=Io.clickTrackingParams;var $z=g.t(Io,g.iJ),Ay=g.t(Io,g.xO);$z?vy.fk=$z:Ay!=null&&(vy.watchUrl=Ay.url)}var NI=uP.thumbnailOverlays;if(NI)for(var Mc=g.r(NI),kd=Mc.next();!kd.done;kd=Mc.next()){var Fd=kd.value.thumbnailOverlayTimeStatusRenderer;if(Fd)if(Fd.style==="LIVE"){vy.isLivePlayback=!0;break}else if(Fd.style==="UPCOMING"){vy.isUpcoming=!0;break}}vy.K=o_(uP.thumbnail)}else if(d.endScreenPlaylistRenderer){var CC=d.endScreenPlaylistRenderer,KA=CC.navigationEndpoint; +if(!KA)continue;var rQ=g.t(KA,g.iJ);if(!rQ)continue;var IA=rQ.videoId;vy=new YI(m.J());vy.playlistId=CC.playlistId;vy.playlistLength=Number(CC.videoCount)||0;vy.X=IA||null;vy.videoId=IA;var sM=CC.title;sM&&(vy.title=g.Bh(sM));var wU=CC.shortBylineText;wU&&(vy.author=g.Bh(wU));q7=KA.clickTrackingParams;vy.K=o_(CC.thumbnail)}vy&&(q7&&(vy.sessionData={itct:q7}),P.push(vy))}m.suggestions=P}if(z){m.ut=!!z.preferImmediateRedirect;m.kW=m.kW||!!z.webShowNewAutonavCountdown;m.vr=m.vr||!!z.webShowBigThumbnailEndscreen; +if(m.kW||m.vr){var Aa=Q||null,vU=new UG(m.J());vU.videoId=z.videoId;var nQ=z.videoTitle;if(nQ){vU.title=g.Bh(nQ);var Cf=nQ.accessibility;if(Cf){var qc=Cf.accessibilityData;qc&&qc.label&&(vU.ariaLabel=qc.label)}}var ff=z.byline;ff&&(vU.author=g.Bh(ff));var oA=z.publishedTimeText;oA&&(vU.publishedTimeText=g.Bh(oA));var dQ=z.shortViewCountText;dQ&&(vU.shortViewCount=g.Bh(dQ));var Bn=z.thumbnailOverlays;if(Bn)for(var EW=g.r(Bn),pA=EW.next();!pA.done;pA=EW.next()){var fC=pA.value.thumbnailOverlayTimeStatusRenderer; +if(fC)if(fC.style==="LIVE"){vU.isLivePlayback=!0;break}else if(fC.style==="UPCOMING"){vU.isUpcoming=!0;break}else if(fC.style==="DEFAULT"&&fC.text){vU.lengthText=g.Bh(fC.text);var Ye=fC.text.accessibility;if(Ye){var Sy=Ye.accessibilityData;Sy&&Sy.label&&(vU.TX=Sy.label||"")}break}}vU.K=o_(z.background);var ah=z.nextButton;if(ah){var UW=ah.buttonRenderer;if(UW){var bl=UW.navigationEndpoint;if(bl){var ta=g.t(bl,g.iJ);ta&&(vU.fk=ta)}}}if(z.topBadges){var Q_=z.topBadges[0];if(Q_){var Hn=g.t(Q_,EAt);Hn&& +Hn.style==="BADGE_STYLE_TYPE_PREMIUM"&&(vU.X=!0)}}var D6=z.alternativeTitle;D6&&(vU.V1=g.Bh(D6));var pa={autonav:"1",playnext:String(B)};vU.playlistId&&(pa.autoplay="1");if(Aa){var Ll,Lf,s_,G2,cR=(Ll=Aa.autoplay)==null?void 0:(Lf=Ll.autoplay)==null?void 0:(s_=Lf.sets)==null?void 0:(G2=s_[0])==null?void 0:G2.autoplayVideo;if(cR){var sW=cR.clickTrackingParams;sW&&(pa.itct=sW);var GJ=g.t(cR,g.iJ);GJ&&(vU.Us=GJ)}}else if(z){var y_,vl,jv,OW=(y_=z.nextButton)==null?void 0:(vl=y_.buttonRenderer)==null?void 0: +(jv=vl.navigationEndpoint)==null?void 0:jv.clickTrackingParams;OW&&(pa.itct=OW)}pa.itct||(pa.feature="related-auto");vU.Rv=pa;m.suggestions||(m.suggestions=[]);m.ZD=vU}z.countDownSecs!=null&&(m.Mo=z.countDownSecs*1E3);z.countDownSecsForFullscreen!=null&&(m.C$=z.countDownSecsForFullscreen>=0?z.countDownSecsForFullscreen*1E3:-1);if(m.W("web_player_autonav_next_button_renderer")){var Ja;m.zy=(Ja=z.nextButton)==null?void 0:Ja.buttonRenderer}var V_;m.uO=(V_=z.cancelButton)==null?void 0:V_.buttonRenderer; +m.W("web_autonav_color_transition")&&z.watchToWatchTransitionRenderer&&(m.watchToWatchTransitionRenderer=g.t(z.watchToWatchTransitionRenderer,YLs))}var gn=Vh3(m);if(gn){var Wn,G7,zJ,XJ=gn==null?void 0:(Wn=gn[0])==null?void 0:(G7=Wn.endScreenVideoRenderer)==null?void 0:(zJ=G7.navigationEndpoint)==null?void 0:zJ.clickTrackingParams,Pn=Uhs(m);XJ&&Pn&&(Pn.sessionData={itct:XJ})}m.Qh.currentVideoThumbnail&&(m.K=o_(m.Qh.currentVideoThumbnail));var m5,Sa,my,aw,ip,NU=(m5=m.Qh)==null?void 0:(Sa=m5.contents)== +null?void 0:(my=Sa.twoColumnWatchNextResults)==null?void 0:(aw=my.results)==null?void 0:(ip=aw.results)==null?void 0:ip.contents;if(NU&&NU[1]){var rU,Im,et,oo,A7=(rU=NU[1].videoSecondaryInfoRenderer)==null?void 0:(Im=rU.owner)==null?void 0:(et=Im.videoOwnerRenderer)==null?void 0:(oo=et.thumbnail)==null?void 0:oo.thumbnails;A7&&A7.length&&(m.profilePicture=A7[A7.length-1].url)}var yG=rn(e),Z7,C3=(Z7=m.getWatchNextResponse())==null?void 0:Z7.onResponseReceivedEndpoints;if(C3)for(var MP=g.r(C3),xd=MP.next();!xd.done;xd= +MP.next()){var lp=xd.value;g.t(lp,bEk)&&(m.KO=g.t(lp,bEk));var dN=g.t(lp,tSG),kb=void 0;if((kb=dN)==null?0:kb.entityKeys)m.qb=dN.entityKeys||[],dN.visibleOnLoadKeys&&(m.visibleOnLoadKeys=dN.visibleOnLoadKeys)}if(m.W("web_key_moments_markers")){var KT=Q8P.getState().entities,qP=ol("visibility_override","markersVisibilityOverrideEntity");var Jp=KT.markersVisibilityOverrideEntity?KT.markersVisibilityOverrideEntity[qP]||null:null;m.Eg=(Jp==null?void 0:Jp.videoId)===(m.videoId||yG)&&(Jp==null?0:Jp.visibilityOverrideMarkersKey)? +Jp.visibilityOverrideMarkersKey:m.visibleOnLoadKeys;m.visibleOnLoadKeys=[].concat(g.Rt(m.Eg))}}}; +f_P=function(m){var e;return((e=m.autoplaySwitchButtonRenderer)==null?void 0:e.enabled)!==void 0}; +lJ=function(m){return!!(m.S&&m.S.videoInfos&&m.S.videoInfos.length)}; +TQ=function(m){var e=m.N;m.W("html5_gapless_unlimit_format_selection")&&uJ(m)&&(e=!1);var Z=!!m.X&&m.X.gr,M=m.Xq,k=m.yg(),K=Rf(m),q=m.ZN,S=e,a=m.isOtf();e=m.aj();var v=m.CR,X=m.getUserAudio51Preference(),x=hF(m),l=new vzP(M);if(M.Af()||M.W("html5_logging_format_selection"))l.S=!0;l.nB=K;l.ZN=q&&!0;l.yh=X;Yl("windows nt 5.1")&&!pe&&(l.bF=!0);if(K=k)K=!1;K&&(l.S9=!0);S&&(l.bF=!0,l.JY=!0);a&&!M.W("html5_otf_prefer_vp9")&&(l.bF=!0);M.playerStyle==="picasaweb"&&(a&&(l.bF=!1),l.b9=!1);v&&(l.bF=!0);ny(M.S, +cD.CHANNELS)&&(M.W("html5_enable_aac51")&&(l.AR=!0),M.W("html5_enable_ac3")&&(l.Z=!0),M.W("html5_enable_eac3")&&(l.L=!0),M.W("html5_enable_ac3_gapless")&&(l.wc=!0));M.W("html5_block_8k_hfr")&&(l.KB=!0);l.C=g.Y4(M.experiments,"html5_max_selectable_quality_ordinal");l.j=g.Y4(M.experiments,"html5_min_selectable_quality_ordinal");g.F7&&(l.tf=480);if(Z||k)l.b9=!1;l.XG=!1;l.disableAv1=x;Z=WJ(M,l.X,void 0,l.disableAv1);Z>0&&Z<2160&&(uO()||M.W("html5_format_hybridization"))&&(l.X.supportsChangeType=+uO(), +l.JD=Z);Z>=2160&&(l.sE=!0);CSs()&&(l.X.serveVp9OverAv1IfHigherRes=0,l.LJ=!1);l.aj=e;l.Hv=tR||VA()&&!e?!1:!0;l.N=M.W("html5_format_hybridization");l.Wq=M.W("html5_disable_encrypted_vp9_live_non_2k_4k");Mw(m)&&(l.uw=m.W("html5_prefer_language_over_codec"));QA()&&m.playerResponse&&m.playerResponse.playerConfig&&m.playerResponse.playerConfig.webPlayerConfig&&m.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(l.Z=!0,l.L=!0);m.N&&m.isAd()&&(m.Ht&&(l.Y=m.Ht),m.yq&&(l.U=m.yq));l.kG= +m.isLivePlayback&&m.T3()&&m.Xq.W("html5_drm_live_audio_51");l.mw=m.ye;return m.NP=l}; +hF=function(m){return m.Xq.W("html5_disable_av1")||m.W("html5_gapless_shorts_disable_av1")&&uJ(m)?!0:!1}; +HEs=function(m){g.lj("drm_pb_s",void 0,m.sE);m.kG||m.X&&hZ(m.X);var e={};m.X&&(e=L_7(m.FX,TQ(m),m.Xq.S,m.X,function(Z){return m.Pv("ctmp","fmtflt",Z)},!0,new Set)); +e=new iT(e,m.Xq,m.Fp,m.useCobaltWidevine?QA()?$O(m):!1:!1,function(Z,M){m.B(Z,M)}); +g.U(m,e);m.kU=!1;m.loading=!0;Fum(e,function(Z){g.lj("drm_pb_f",void 0,m.sE);for(var M=g.r(Z),k=M.next();!k.done;k=M.next())switch(k=k.value,k.flavor){case "fairplay":k.kG=m.kG;k.Gd=m.Gd;k.eq=m.eq;break;case "widevine":k.dZ=m.dZ}m.Dr=Z;if(m.Dr.length>0&&(m.L=m.Dr[0],m.Xq.Af())){Z={};M=g.r(Object.entries(m.L.X));for(k=M.next();!k.done;k=M.next()){var K=g.r(k.value);k=K.next().value;K=K.next().value;var q="unk";(k=k.match(/(.*)codecs="(.*)"/))&&(q=k[2]);Z[q]=K}m.B("drmProbe",Z)}P4(m)})}; +I_R=function(m,e){if(e.length===0||KI(m))return null;qw(m,"html5_enable_cobalt_experimental_vp9_decoder")&&(Oj=!0);var Z=m.wV;var M=m.lengthSeconds,k=m.isLivePlayback,K=m.QH,q=m.Xq,S=Op7(e);if(k||K){q=q.experiments;M=new C8("",q,!0);M.S=!K;M.gr=!0;M.isManifestless=!0;M.isLive=!K;M.QH=K;e=g.r(e);for(k=e.next();!k.done;k=e.next()){var a=k.value;k=Uj(a,Z);S=BD(a);S=tB(S.ex||a.url||"",S.dX,S.s);var v=S.get("id");v&&v.includes("%7E")&&(M.K=!0);var X=void 0;v=(X=q)==null?void 0:X.dc("html5_max_known_end_time_rebase"); +X=Number(a.targetDurationSec||5);a=Number(a.maxDvrDurationSec||14400);var x=Number(S.get("mindsq")||S.get("min_sq")||"0"),l=Number(S.get("maxdsq")||S.get("max_sq")||"0")||Infinity;M.X5=M.X5||x;M.xE=M.xE||l;var R=!Oq(k.mimeType);S&&BJ(M,new $7(S,k,{gN:X,kQ:R,lK:a,X5:x,xE:l,xd:300,QH:K,Y$:v}))}Z=M}else if(S==="FORMAT_STREAM_TYPE_OTF"){M=M===void 0?0:M;K=new C8("",q.experiments,!1);K.duration=M||0;q=g.r(e);for(M=q.next();!M.done;M=q.next())M=M.value,e=Uj(M,Z,K.duration),k=BD(M),(k=tB(k.ex||M.url||"", +k.dX,k.s))&&(e.streamType==="FORMAT_STREAM_TYPE_OTF"?BJ(K,new FI(k,e,"sq/0")):BJ(K,new oD(k,e,dq(M.initRange),dq(M.indexRange))));K.isOtf=!0;Z=K}else{M=M===void 0?0:M;K=new C8("",q.experiments,!1);K.duration=M||0;q=g.r(e);for(M=q.next();!M.done;M=q.next())S=M.value,M=Uj(S,Z,K.duration),e=dq(S.initRange),k=dq(S.indexRange),v=BD(S),(S=tB(v.ex||S.url||"",v.dX,v.s))&&BJ(K,new oD(S,M,e,k));Z=K}K=m.isLivePlayback&&!m.QH&&!m.S9&&!m.isPremiere;m.W("html5_live_head_playable")&&(!g.Sp(m)&&K&&m.B("missingLiveHeadPlayable", +{}),m.Xq.L==="yt"&&(Z.Hv=!0));return Z}; +KI=function(m){return QA()?!$O(m):LO()?!(!m.kG||!m.W("html5_enable_safari_fairplay")&&wI()):!1}; +$O=function(m){return m.W("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.Z8=function(m,e){e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next())if(Z=Z.value,Z.cueRangeSetIdentifier){var M=void 0;m.rd.set(Z.cueRangeSetIdentifier,(M=Z.playerCueRanges)!=null?M:[])}}; +vQ=function(m){return!(!m.X||!m.X.isManifestless)}; +Fh=function(m){return m.lX?m.isLowLatencyLiveStream&&m.X!=null&&L8(m.X)>=5:m.isLowLatencyLiveStream&&m.X!=void 0&&L8(m.X)>=5}; +NiI=function(m){return QA()&&$O(m)?!1:KI(m)&&(g.uA(m.Xq)?!m.isLivePlayback:m.hlsvp)||!wI()||m.eF?!0:!1}; +Lh1=function(m){m.loading=!0;m.dG=!1;if(rWI(m))MSm(m.videoId).then(function(M){DhP(m,M)}).then(function(){P4(m)}); +else{d5(m.uw)||g.LD(new g.Nr("DASH MPD Origin invalid: ",m.uw));var e=m.uw,Z=g.Y4(m.Xq.experiments,"dash_manifest_version")||4;e=g.tV(e,{mpd_version:Z});m.isLowLatencyLiveStream&&m.latencyClass!=="NORMAL"||(e=g.tV(e,{pacing:0}));ZQ1(e,m.Xq.experiments,m.isLivePlayback).then(function(M){m.MU()||(af(m,M,!0),g.lj("mrc",void 0,m.sE),P4(m))},function(M){m.MU()||(m.loading=!1,m.Pv("dataloaderror",new g.tw("manifest.net.retryexhausted",{backend:"manifest", +rc:M.status},1)))}); +g.lj("mrs",void 0,m.sE)}}; +DhP=function(m,e){var Z=e.map(function(a){return a.itag}),M; +if((M=m.playerResponse)!=null&&M.streamingData){M=[];if(m.W("html5_offline_always_use_local_formats")){Z=0;for(var k=g.r(e),K=k.next();!K.done;K=k.next()){K=K.value;var q=Object.assign({},K);q.signatureCipher="";M.push(q);q=g.r(m.playerResponse.streamingData.adaptiveFormats);for(var S=q.next();!S.done;S=q.next())if(S=S.value,K.itag===S.itag&&K.xtags===S.xtags){Z+=1;break}}ZX&&(X=R.lP().audio.numChannels)}X>2&&m.B("hlschl",{mn:X});var N;((N=m.NP)==null?0:N.S)&&m.B("hlsfmtaf",{itags:x.join(".")});var I;if(m.W("html5_enable_vp9_fairplay")&&((I=m.L)==null?0:kk(I)))for(m.B("drm",{sbdlfbk:1}),X=g.r(m.Dr),x=X.next();!x.done;x=X.next())if(x=x.value,MR(x)){m.L=x;break}nI(m,v)})}return g.NC()}; +OEc=function(m){if(m.isExternallyHostedPodcast&&m.JJ){var e=pI(m.JJ);if(!e[0])return g.NC();m.QE=e[0];return CVy(m.Xq,e[0]).then(function(Z){nI(m,Z)})}return m.BS&&m.cB?Ahs(m.Xq,m.isAd(),m.BS).then(function(Z){nI(m,Z)}):g.NC()}; +VSK=function(m){if(m.isExternallyHostedPodcast)return g.NC();var e=pI(m.JJ,m.t0);if(m.hlsvp){var Z=SLs(m.hlsvp,m.clientPlaybackNonce,m.JY);e.push(Z)}return Icb(m.Xq,m.isAd(),e,JW7(m)).then(function(M){nI(m,M)})}; +GDK=function(m,e){m.S=e;if(m.S){e=g.r(m.S.videoInfos);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=Z.containerType;M!==0&&(m.bd[M]=Z.id)}}cQ(m);if(m.L&&m.S&&m.S.videoInfos&&!(m.S.videoInfos.length<=0)&&(e=sq(m.S.videoInfos[0]),m.L.flavor==="fairplay"!==e))for(Z=g.r(m.Dr),M=Z.next();!M.done;M=Z.next())if(M=M.value,e===(M.flavor==="fairplay")){m.L=M;break}}; +nI=function(m,e){m.yH=e;GDK(m,new iR(g.qI(m.yH,function(Z){return Z.lP()})))}; +JW7=function(m){var e={cpn:m.clientPlaybackNonce,c:m.Xq.X.c,cver:m.Xq.X.cver};m.Br&&(e.ptk=m.Br,e.oid=m.RH,e.ptchn=m.vB,e.pltype=m.ST,m.ws&&(e.m=m.ws));return e}; +g.Nw=function(m){return KI(m)&&m.kG?(m={},m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m):m.U&&m.U.wV||null}; +Why=function(m){var e=rA(m);return e&&e.text?g.Bh(e.text):m.paidContentOverlayText}; +z73=function(m){var e=rA(m);return e&&e.durationMs?g.ap(e.durationMs):m.paidContentOverlayDurationMs}; +rA=function(m){var e,Z,M;return m.playerResponse&&m.playerResponse.paidContentOverlay&&m.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.t((e=m.Qh)==null?void 0:(Z=e.playerOverlays)==null?void 0:(M=Z.playerOverlayRenderer)==null?void 0:M.playerDisclosure,PwP)||null}; +If=function(m){var e="";if(m.UW)return m.UW;m.isLivePlayback&&(e=m.allowLiveDvr?"dvr":m.isPremiere?"lp":m.S9?"window":"live");m.QH&&(e="post");return e}; +g.AF=function(m,e){return typeof m.keywords[e]!=="string"?null:m.keywords[e]}; +mC7=function(m){return!!m.HV||!!m.hm||!!m.po||!!m.Hr||m.K3||m.j.focEnabled||m.j.rmktEnabled}; +g.CI=function(m){return!!(m.uw||m.JJ||m.BS||m.hlsvp||m.w$())}; +zk=function(m){if(m.W("html5_onesie")&&m.errorCode)return!1;var e=g.Ti(m.yh,"ypc");m.ypcPreview&&(e=!1);return m.J5()&&!m.loading&&(g.CI(m)||g.Ti(m.yh,"heartbeat")||e)}; +pI=function(m,e){m=HA(m);var Z={};if(e){e=g.r(e.split(","));for(var M=e.next();!M.done;M=e.next())(M=M.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(Z[M[1]]={width:M[2],height:M[3]})}e=g.r(m);for(M=e.next();!M.done;M=e.next()){M=M.value;var k=Z[M.itag];k&&(M.width=k.width,M.height=k.height)}return m}; +cQ=function(m){var e=m.getAvailableAudioTracks();e=e.concat(m.zM);for(var Z=0;Z0:e||m.adFormat!=="17_8"||m.isAutonav||R_(m.Xq)||m.wW?m.O9?!1:m.Xq.C0||m.Xq.LJ||!On(m.Xq)?!e&&dA(m)==="adunit"&&m.HV?!1:!0:!1:!1:(m.O9?0:m.tf)&&On(m.Xq)?!0:!1;m.W("html5_log_detailpage_autoplay")&&dA(m)==="detailpage"&&m.B("autoplay_info",{autoplay:m.uP,autonav:m.isAutonav,result:e});return e}; +g.bJ=function(m){return m.oauthToken||m.Xq.NP}; +glK=function(m){if(m.W("html5_stateful_audio_normalization")){var e=1,Z=g.Y4(m.Xq.experiments,"html5_default_ad_gain");Z&&m.isAd()&&(e=Z);var M;if(Z=((M=m.Z)==null?void 0:M.audio.S)||m.vP){M=(0,g.G)();m.Ta=2;var k=M-m.Xq.O9<=m.maxStatefulTimeThresholdSec*1E3;m.applyStatefulNormalization&&k?m.Ta=4:k||(m.Xq.K1=Infinity,m.Xq.O9=NaN);k=(m.Ta===4?g.Fr(m.Xq.K1,m.minimumLoudnessTargetLkfs,m.loudnessTargetLkfs):m.loudnessTargetLkfs)-Z;if(m.Ta!==4){var K,q,S,a,v=((K=m.playerResponse)==null?void 0:(q=K.playerConfig)== +null?void 0:(S=q.audioConfig)==null?void 0:(a=S.loudnessNormalizationConfig)==null?void 0:a.statelessLoudnessAdjustmentGain)||0;k+=v}k=Math.min(k,0);m.preserveStatefulLoudnessTarget&&(m.Xq.K1=Z+k,m.Xq.O9=M);m=Math.min(1,Math.pow(10,k/20))||e}else m=vlc(m)}else m=vlc(m);return m}; +vlc=function(m){var e=1,Z=g.Y4(m.Xq.experiments,"html5_default_ad_gain");Z&&m.isAd()&&(e=Z);var M;if(Z=((M=m.Z)==null?void 0:M.audio.U)||m.K1)m.Ta=1;return Math.min(1,Math.pow(10,-Z/20))||e}; +Rf=function(m){var e=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],Z=g.R3(m.Xq)==="TVHTML5_SIMPLY"&&m.Xq.X.ctheme==="MUSIC";m.Sp||!g.zx(m.Xq)&&!Z||!e.includes(m.musicVideoType)&&!m.isExternallyHostedPodcast||(m.Sp=!0);if(e=g.ti())e=/Starboard\/([0-9]+)/.exec(g.Vf()),e=(e?parseInt(e[1],10):NaN)<10;Z=m.Xq;Z=(g.R3(Z)==="TVHTML5_CAST"||g.R3(Z)==="TVHTML5"&&(Z.X.cver.startsWith("6.20130725")||Z.X.cver.startsWith("6.20130726")))&&m.Xq.X.ctheme==="MUSIC";var M;if(M=!m.Sp)Z||(Z=m.Xq,Z= +g.R3(Z)==="TVHTML5"&&Z.X.cver.startsWith("7")),M=Z;M&&!e&&(e=m.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",Z=(m.W("cast_prefer_audio_only_for_atv_and_uploads")||m.W("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&m.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",e||Z||m.isExternallyHostedPodcast)&&(m.Sp=!0);return m.Xq.deviceIsAudioOnly||m.Sp&&!0}; +tF=function(m){var e,Z,M;return!!((e=m.playerResponse)==null?0:(Z=e.playerConfig)==null?0:(M=Z.mediaCommonConfig)==null?0:M.splitScreenEligible)}; +XOK=function(m){var e;return!((e=m.playerResponse)==null||!e.compositePlayabilityStatus)}; +iOk=function(m){return isNaN(m)?0:Math.max((Date.now()-m)/1E3-30,0)}; +Qu=function(m){return!!m.pV&&m.w$()}; +xCP=function(m){return m.enablePreroll&&m.enableServerStitchedDai}; +lwy=function(m){return m.W("html5_enable_sabr_from_watch_server")&&m.jF&&!m.wZ}; +HQ=function(m){return m.W("html5_enable_sabr_live_captions")&&m.gr()&&!1}; +Mw=function(m){if(m.n3||m.W("html5_restrict_sabr_to_yt_namespace")&&m.Xq.L!=="yt"||m.cotn||!m.X||m.X.isOtf||m.QA&&!m.W("html5_enable_sabr_csdai"))return!1;if(m.W("html5_use_sabr_requests_for_debugging"))return!0;if(m.W("html5_enable_sabr_from_watch_server")){var e=m.jF&&!!m.wZ;if(!m.W("html5_combine_client_check_for_sabr"))return e;if(e)return!0;m.Nr("sabr","esfc")}var Z=!m.X.gr&&!m.T3();e=Z&&hX&&m.W("html5_enable_sabr_vod_streaming_xhr");Z=Z&&!hX&&m.W("html5_enable_sabr_vod_non_streaming_xhr");var M= +D8(m),k=m.W("html5_enable_sabr_drm_vod_streaming_xhr")&&hX&&m.T3()&&!m.X.gr&&(m.Ot==="1"?!1:!0);(e=e||Z||M||k)&&!m.wZ&&m.B("sabr",{loc:"m"},!0);return e&&!!m.wZ}; +D8=function(m){var e;if(!(e=hX&&m.gr()&&m.T3()&&(m.Ot==="1"?!1:!0)&&m.W("html5_sabr_live_drm_streaming_xhr"))){e=m.gr()&&!m.T3()&&hX;var Z=m.gr()&&m.latencyClass!=="ULTRALOW"&&!m.isLowLatencyLiveStream&&m.W("html5_sabr_live_normal_latency_streaming_xhr"),M=m.isLowLatencyLiveStream&&m.W("html5_sabr_live_low_latency_streaming_xhr"),k=m.latencyClass==="ULTRALOW"&&m.W("html5_sabr_live_ultra_low_latency_streaming_xhr");e=e&&(Z||M||k)}Z=e;e=m.enableServerStitchedDai&&Z&&m.W("html5_enable_sabr_ssdai_streaming_xhr"); +Z=!m.enableServerStitchedDai&&Z;M=m.gr()&&!hX&&m.W("html5_enable_sabr_live_non_streaming_xhr");m=hX&&(m.NO()||tF(m)&&m.W("html5_enable_sabr_for_lifa_eligible_streams"));return e||Z||M||m}; +g.gA=function(m){return m.qQ&&Mw(m)}; +rWI=function(m){var e;if(e=!!m.cotn)e=m.videoId,e=!!e&&Q5(e)===1;return e&&!m.pV}; +g.LI=function(m){if(!m.X||!m.U||!m.Z)return!1;var e=m.X.X,Z=!!e[m.U.id]&&fy(e[m.U.id].i9.X);e=!!e[m.Z.id]&&fy(e[m.Z.id].i9.X);return(m.U.itag==="0"||Z)&&e}; +GQ=function(m){return m.oG?["OK","LIVE_STREAM_OFFLINE"].includes(m.oG.status):!0}; +ky3=function(m){return(m=m.d7)&&m.showError?m.showError:!1}; +qw=function(m,e){return m.W(e)?!0:(m.fflags||"").includes(e+"=true")}; +TiG=function(m){return m.W("html5_heartbeat_iff_heartbeat_params_filled")}; +uuK=function(m){return(m=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(m.fflags))?m[1]:null}; +R73=function(m,e){e.inlineMetricEnabled&&(m.inlineMetricEnabled=!0);e.playback_progress_0s_url&&(m.Hr=new Wcc(e));if(e=e.video_masthead_ad_quartile_urls)m.hm=e.quartile_0_url,m.iV=e.quartile_25_url,m.Xn=e.quartile_50_url,m.HQ=e.quartile_75_url,m.E8=e.quartile_100_url,m.po=e.quartile_0_urls,m.R1=e.quartile_25_urls,m.Yv=e.quartile_50_urls,m.jS=e.quartile_75_urls,m.zj=e.quartile_100_urls}; +u1c=function(m){var e={};m=g.r(m);for(var Z=m.next();!Z.done;Z=m.next()){Z=Z.value;var M=Z.split("=");M.length===2?e[M[0]]=M[1]:e[Z]=!0}return e}; +iEt=function(m){if(m){if($Ys(m))return m;m=FmI(m);if($Ys(m,!0))return m}return""}; +yu=function(m){return!(!m.isLivePlayback||!m.hasProgressBarBoundaries())}; +Uhs=function(m){var e;return m.ZD||((e=m.suggestions)==null?void 0:e[0])||null}; +jp=function(m){return m.hE&&(m.W("embeds_enable_pfp_always_unbranded")||m.Xq.o_)}; +ep=function(m,e){m.W("html5_log_autoplay_src")&&uJ(m)&&m.B("apsrc",{src:e})}; +RbP=function(m){var e,Z;return!!((e=m.embeddedPlayerConfig)==null?0:(Z=e.embeddedPlayerFlags)==null?0:Z.enableMusicUx)}; +g.Os=function(m){var e=m.J(),Z=hbs(e),M=e.tR;(e.W("embeds_web_enable_iframe_api_send_full_embed_url")||e.W("embeds_web_enable_rcat_validation_in_havs")||e.W("embeds_enable_autoplay_and_visibility_signals"))&&g.Pe(e)&&(M&&(Z.thirdParty=Object.assign({},Z.thirdParty,{embedUrl:M})),g.oMK(Z,m));if(M=m.nB)Z.clickTracking={clickTrackingParams:M};M=Z.client||{};var k="EMBED",K=dA(m);K==="leanback"?k="WATCH":e.W("gvi_channel_client_screen")&&K==="profilepage"?k="CHANNEL":m.CR?k="LIVE_MONITOR":K==="detailpage"? +k="WATCH_FULL_SCREEN":K==="adunit"?k="ADUNIT":K==="sponsorshipsoffer"&&(k="UNKNOWN");M.clientScreen=k;if(e=m.kidsAppInfo)M.kidsAppInfo=JSON.parse(e);(k=m.n6)&&!e&&(M.kidsAppInfo={contentSettings:{ageUpMode:Thb[k]}});if(e=m.Dy)M.unpluggedAppInfo={enableFilterMode:!0};(k=m.unpluggedFilterModeType)&&!e&&(M.unpluggedAppInfo={filterModeType:$Cb[k]});if(e=m.Te)M.unpluggedLocationInfo=e;Z.client=M;M=Z.request||{};m.LJ&&(M.isPrefetch=!0);if(e=m.mdxEnvironment)M.mdxEnvironment=e;if(e=m.mdxControlMode)M.mdxControlMode= +Fks[e];Z.request=M;M=Z.user||{};if(e=m.Y)M.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=m.tR)M.delegatePurchases={oauthToken:e},M.kidsParent={oauthToken:e};Z.user=M;if(M=m.contextParams)Z.activePlayers=[{playerContextParams:M}];if(m=m.clientScreenNonce)Z.clientScreenNonce=m;return Z}; +hbs=function(m){var e=g.$n(),Z=e.client||{};if(m.forcedExperiments){var M=m.forcedExperiments.split(","),k=[];M=g.r(M);for(var K=M.next();!K.done;K=M.next())k.push(Number(K.value));Z.experimentIds=k}if(k=m.homeGroupInfo)Z.homeGroupInfo=JSON.parse(k);if(k=m.getPlayerType())Z.playerType=k;if(k=m.X.ctheme)Z.theme=k;if(k=m.livingRoomAppMode)Z.tvAppInfo=Object.assign({},Z.tvAppInfo,{livingRoomAppMode:k});k=m.deviceYear;m.W("html5_propagate_device_year")&&k&&(Z.tvAppInfo=Object.assign({},Z.tvAppInfo,{deviceYear:k})); +if(k=m.livingRoomPoTokenId)Z.tvAppInfo=Object.assign({},Z.tvAppInfo,{livingRoomPoTokenId:k});e.client=Z;Z=e.user||{};m.enableSafetyMode&&(Z=Object.assign({},Z,{enableSafetyMode:!0}));m.pageId&&(Z=Object.assign({},Z,{onBehalfOfUser:m.pageId}));e.user=Z;Z=m.tR;m.W("embeds_web_enable_iframe_api_send_full_embed_url")||m.W("embeds_web_enable_rcat_validation_in_havs")||m.W("embeds_enable_autoplay_and_visibility_signals")||!Z||(e.thirdParty={embedUrl:Z});return e}; +riK=function(m,e,Z){var M=m.videoId,k=g.Os(m),K=m.J(),q={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(g.Xb()),referer:document.location.toString(),signatureTimestamp:20067};g.xE();m.isAutonav&&(q.autonav=!0);g.uf(0,141)&&(q.autonavState=g.uf(0,140)?"STATE_OFF":"STATE_ON");q.autoCaptionsDefaultOn=g.uf(0,66);Us(m)&&(q.autoplay=!0);m.cycToken&&(q.cycToken=m.cycToken);K.enablePrivacyFilter&&(q.enablePrivacyFilter=!0);m.isFling&&(q.fling=!0);var S=m.forceAdsUrl;if(S){var a={},v=[];S=S.split(","); +S=g.r(S);for(var X=S.next();!X.done;X=S.next()){X=X.value;var x=X.split("|");x.length!==3||X.includes("=")||(x[0]="breaktype="+x[0],x[1]="offset="+x[1],x[2]="url="+x[2]);X={adtype:"video_ad"};x=g.r(x);for(var l=x.next();!l.done;l=x.next()){var R=g.r(l.value.split("="));l=R.next().value;R=lP(R);X[l]=R.join("=")}x=X.url;l=X.presetad;R=X.viralresponseurl;var h=Number(X.campaignid);if(X.adtype==="in_display_ad")x&&(a.url=x),l&&(a.presetAd=l),R&&(a.viralAdResponseUrl=R),h&&(a.viralCampaignId=String(h)); +else if(X.adtype==="video_ad"){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(X.offset)||0)}};if(X=wOy[X.breaktype])w.breakType=X;x&&(w.url=x);l&&(w.presetAd=l);R&&(w.viralAdResponseUrl=R);h&&(w.viralCampaignId=String(h));v.push(w)}}q.forceAdParameters={videoAds:v,inDisplayAd:a}}m.isInlinePlaybackNoAd&&(q.isInlinePlaybackNoAd=!0);m.isLivingRoomDeeplink&&(q.isLivingRoomDeeplink=!0);a=m.Ab;if(a!=null){a={startWalltime:String(a)};if(v=m.PS)a.manifestDuration=String(v||14400);q.liveContext= +a}m.mutedAutoplay&&(q.mutedAutoplay=!0);if(m.O9?0:m.tf)q.splay=!0;a=m.vnd;a===5&&(q.vnd=a);a={};if(v=m.isMdxPlayback)a.triggeredByMdx=v;if(v=m.Mz)a.skippableAdsSupported=v.split(",").includes("ska");if(X=m.Ut){v=m.X0;S=[];X=g.r(ESs(X));for(x=X.next();!x.done;x=X.next()){x=x.value;l=x.platform;x={applicationState:x.XD?"INACTIVE":"ACTIVE",clientFormFactor:nlk[l]||"UNKNOWN_FORM_FACTOR",clientName:Ues[x.m0]||"UNKNOWN_INTERFACE",clientVersion:x.deviceVersion||"",platform:ci3[l]||"UNKNOWN_PLATFORM"};l= +{};if(v){R=void 0;try{R=JSON.parse(v)}catch(N){g.LD(N)}R&&(l={params:[{key:"ms",value:R.ms}]},R.advertising_id&&(l.advertisingId=R.advertising_id),R.limit_ad_tracking!==void 0&&R.limit_ad_tracking!==null&&(l.limitAdTracking=R.limit_ad_tracking),x.osName=R.os_name,x.userAgent=R.user_agent,x.windowHeightPoints=R.window_height_points,x.windowWidthPoints=R.window_width_points)}S.push({adSignalsInfo:l,remoteClient:x})}a.remoteContexts=S}v=m.sourceContainerPlaylistId;S=m.serializedMdxMetadata;if(v||S)X= +{},v&&(X.mdxPlaybackContainerInfo={sourceContainerPlaylistId:v}),S&&(X.serializedMdxMetadata=S),a.mdxPlaybackSourceContext=X;q.mdxContext=a;a=e.width;a>0&&(q.playerWidthPixels=Math.round(a));if(e=e.height)q.playerHeightPixels=Math.round(e);Z!==0&&(q.vis=Z);if(Z=K.widgetReferrer)q.widgetReferrer=Z.substring(0,128);On(K)&&q&&(q.ancestorOrigins=K.ancestorOrigins);m.defaultActiveSourceVideoId&&(q.compositeVideoContext={defaultActiveSourceVideoId:m.defaultActiveSourceVideoId});if(K=K.getWebPlayerContextConfig())q.encryptedHostFlags= +K.encryptedHostFlags;M={videoId:M,context:k,playbackContext:{contentPlaybackContext:q}};m.reloadPlaybackParams&&(M.playbackContext.reloadPlaybackContext={reloadPlaybackParams:m.reloadPlaybackParams});m.contentCheckOk&&(M.contentCheckOk=!0);if(k=m.clientPlaybackNonce)M.cpn=k;if(k=m.playerParams)M.params=k;if(k=m.playlistId)M.playlistId=k;m.racyCheckOk&&(M.racyCheckOk=!0);k=m.J();if(q=k.embedConfig)M.serializedThirdPartyEmbedConfig=q;M.captionParams={};q=g.uf(g.xE(),65);m.deviceCaptionsOn!=null?M.captionParams.deviceCaptionsOn= +m.deviceCaptionsOn:g.xI(k)&&(M.captionParams.deviceCaptionsOn=q!=null?!q:!1);m.VF&&(M.captionParams.deviceCaptionsLangPref=m.VF);m.F4.length?M.captionParams.viewerSelectedCaptionLangs=m.F4:g.xI(k)&&(q=g.jQ(),q==null?0:q.length)&&(M.captionParams.viewerSelectedCaptionLangs=q);q=m.fetchType==="onesie"&&m.W("html5_onesie_attach_po_token");K=m.fetchType!=="onesie"&&m.W("html5_non_onesie_attach_po_token");if(q||K)q=m.J(),q.tf&&(M.serviceIntegrityDimensions={},M.serviceIntegrityDimensions.poToken=q.tf); +k.W("fetch_att_independently")&&(M.attestationRequest={omitBotguardData:!0});if(k.W("html5_enable_sabr_from_watch_server")||k.W("html5_report_supports_vp9_encoding"))M.playbackContext||(M.playbackContext={}),M.playbackContext.devicePlaybackCapabilities=Nhk(m);return M}; +Nhk=function(m){var e=!(m==null?0:m.aj())&&(m==null?void 0:m.gr())&&VA();if(m==null?0:m.W("html5_report_supports_vp9_encoding")){if(m==null)var Z=void 0;else{Z=TQ(m);m=m.J().S;var M=$I("243");Z=M?RL(Z,M,m,!0)===!0:!1}e=Z&&!e}else e=void 0;return{supportsVp9Encoding:e,supportXhr:hX}}; +Aic=function(m,e){var Z,M,k;return g.Qs(function(K){if(K.X==1)return Z={context:hbs(m.J()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:m.videoId,cpn:m.clientPlaybackNonce}}]},M=rz(IwP),g.A(K,g.NG(e,Z,M),2);k=K.S;return K.return(k)})}; +CNP=function(m,e,Z){var M=g.Y4(e.experiments,"bg_vm_reinit_threshold");(!Iz||(0,g.G)()-Iz>M)&&Aic(m,Z).then(function(k){k&&(k=k.botguardData)&&g.Ud(k,e)},function(k){m.MU()||(k=Hi(k),m.B("attf",k.details))})}; +JF=function(m,e){g.Y.call(this);this.app=m;this.state=e}; +WQ=function(m,e,Z){m.state.S.hasOwnProperty(e)||Vu(m,e,Z);m.state.j[e]=function(){return Z.apply(m,g.Hy.apply(0,arguments))}; +m.state.C.add(e)}; +zQ=function(m,e,Z){m.state.S.hasOwnProperty(e)||Vu(m,e,Z);m.state.N[e]=function(){return Z.apply(m,g.Hy.apply(0,arguments))}; +m.state.C.add(e)}; +Vu=function(m,e,Z){m.state.S[e]=function(){return Z.apply(m,g.Hy.apply(0,arguments))}}; +PQ=function(){h7.call(this);this.L=new Map}; +mv=function(){g.Y.apply(this,arguments);this.element=null;this.C=new Set;this.j={};this.N={};this.S={};this.K=new Set;this.U=new PQ;this.X=new PQ;this.Z=new PQ;this.L=new PQ}; +fws=function(m,e,Z){typeof m==="string"&&(m={mediaContentUrl:m,startSeconds:e,suggestedQuality:Z});a:{if((e=m.mediaContentUrl)&&(e=/\/([ve]|embed)\/([^#?]+)/.exec(e))&&e[2]){e=e[2];break a}e=null}m.videoId=e;return eg(m)}; +eg=function(m,e,Z){if(typeof m==="string")return{videoId:m,startSeconds:e,suggestedQuality:Z};e={};Z=g.r(olR);for(var M=Z.next();!M.done;M=Z.next())M=M.value,m[M]&&(e[M]=m[M]);return e}; +dCt=function(m,e,Z,M){if(g.Zb(m)&&!Array.isArray(m)){e="playlist list listType index startSeconds suggestedQuality".split(" ");Z={};for(M=0;M32&&M.push("hfr");e.isHdr()&&M.push("hdr");e.primaries==="bt2020"&&M.push("wcg");Z.video_quality_features=M}}if(m=m.getPlaylistId())Z.list=m;return Z}; +pZ=function(){Zm.apply(this,arguments)}; +Sg=function(m){for(var e={},Z=g.r(UC1),M=Z.next();!M.done;M=Z.next())M=M.value,m.hasOwnProperty(M)&&(e[M]=m[M]);return e}; +aU=function(m,e,Z){var M=m.app.Zx(Z);if(!M)return 0;m=M-m.app.getCurrentTime(Z);return e-m}; +tCK=function(m){var e=e===void 0?5:e;return m?bOt[m]||e:e}; +Qy3=function(m,e){for(var Z=g.r(Object.keys(e)),M=Z.next(),k={};!M.done;k={placeholder:void 0},M=Z.next())M=M.value,k.placeholder=e[M],m=m.replace(new RegExp("\\$"+M,"gi"),function(K){return function(){return K.placeholder}}(k)); +return m}; +vB=function(){pZ.apply(this,arguments)}; +HOc=function(m){Vu(m,"getInternalApiInterface",m.getInternalApiInterface);Vu(m,"addEventListener",m.kq);Vu(m,"removeEventListener",m.pw);Vu(m,"cueVideoByPlayerVars",m.FZ);Vu(m,"loadVideoByPlayerVars",m.u4);Vu(m,"preloadVideoByPlayerVars",m.g1);Vu(m,"getAdState",m.getAdState);Vu(m,"sendAbandonmentPing",m.sendAbandonmentPing);Vu(m,"setLoopRange",m.setLoopRange);Vu(m,"getLoopRange",m.getLoopRange);Vu(m,"setAutonavState",m.setAutonavState);Vu(m,"seekTo",m.rP);Vu(m,"seekBy",m.PJ);Vu(m,"seekToLiveHead", +m.seekToLiveHead);Vu(m,"requestSeekToWallTimeSeconds",m.requestSeekToWallTimeSeconds);Vu(m,"seekToStreamTime",m.seekToStreamTime);Vu(m,"startSeekCsiAction",m.startSeekCsiAction);Vu(m,"getStreamTimeOffset",m.getStreamTimeOffset);Vu(m,"getVideoData",m.Tu);Vu(m,"setInlinePreview",m.setInlinePreview);Vu(m,"getAppState",m.getAppState);Vu(m,"updateLastActiveTime",m.updateLastActiveTime);Vu(m,"setBlackout",m.setBlackout);Vu(m,"setUserEngagement",m.setUserEngagement);Vu(m,"updateSubtitlesUserSettings",m.updateSubtitlesUserSettings); +Vu(m,"getPresentingPlayerType",m.AZ);Vu(m,"canPlayType",m.canPlayType);Vu(m,"updatePlaylist",m.updatePlaylist);Vu(m,"updateVideoData",m.updateVideoData);Vu(m,"updateEnvironmentData",m.updateEnvironmentData);Vu(m,"sendVideoStatsEngageEvent",m.mm);Vu(m,"productsInVideoVisibilityUpdated",m.productsInVideoVisibilityUpdated);Vu(m,"setSafetyMode",m.setSafetyMode);Vu(m,"isAtLiveHead",function(e){return m.isAtLiveHead(void 0,e)}); +Vu(m,"getVideoAspectRatio",m.getVideoAspectRatio);Vu(m,"getPreferredQuality",m.getPreferredQuality);Vu(m,"getPlaybackQualityLabel",m.getPlaybackQualityLabel);Vu(m,"setPlaybackQualityRange",m.L9);Vu(m,"onAdUxClicked",m.onAdUxClicked);Vu(m,"getFeedbackProductData",m.getFeedbackProductData);Vu(m,"getStoryboardFrame",m.getStoryboardFrame);Vu(m,"getStoryboardFrameIndex",m.getStoryboardFrameIndex);Vu(m,"getStoryboardLevel",m.getStoryboardLevel);Vu(m,"getNumberOfStoryboardLevels",m.getNumberOfStoryboardLevels); +Vu(m,"getCaptionWindowContainerId",m.getCaptionWindowContainerId);Vu(m,"getAvailableQualityLabels",m.getAvailableQualityLabels);Vu(m,"addCueRange",m.addCueRange);Vu(m,"addUtcCueRange",m.addUtcCueRange);Vu(m,"showAirplayPicker",m.showAirplayPicker);Vu(m,"dispatchReduxAction",m.dispatchReduxAction);Vu(m,"getPlayerResponse",m.Vm);Vu(m,"getWatchNextResponse",m.tG);Vu(m,"getHeartbeatResponse",m.ym);Vu(m,"getCurrentTime",m.Fs);Vu(m,"getDuration",m.gM);Vu(m,"getPlayerState",m.getPlayerState);Vu(m,"getPlayerStateObject", +m.BH);Vu(m,"getVideoLoadedFraction",m.getVideoLoadedFraction);Vu(m,"getProgressState",m.getProgressState);Vu(m,"getVolume",m.getVolume);Vu(m,"setVolume",m.zp);Vu(m,"isMuted",m.isMuted);Vu(m,"mute",m.VA);Vu(m,"unMute",m.lM);Vu(m,"loadModule",m.loadModule);Vu(m,"unloadModule",m.unloadModule);Vu(m,"getOption",m.Fv);Vu(m,"getOptions",m.getOptions);Vu(m,"setOption",m.setOption);Vu(m,"loadVideoById",m.KW);Vu(m,"loadVideoByUrl",m.Om);Vu(m,"playVideo",m.Yp);Vu(m,"loadPlaylist",m.loadPlaylist);Vu(m,"nextVideo", +m.nextVideo);Vu(m,"previousVideo",m.previousVideo);Vu(m,"playVideoAt",m.playVideoAt);Vu(m,"getDebugText",m.getDebugText);Vu(m,"getWebPlayerContextConfig",m.getWebPlayerContextConfig);Vu(m,"notifyShortsAdSwipeEvent",m.notifyShortsAdSwipeEvent);Vu(m,"getVideoContentRect",m.getVideoContentRect);Vu(m,"setSqueezeback",m.setSqueezeback);Vu(m,"toggleSubtitlesOn",m.toggleSubtitlesOn);Vu(m,"isSubtitlesOn",m.isSubtitlesOn);Vu(m,"getVisibilityState",m.getVisibilityState);Vu(m,"isMutedByMutedAutoplay",m.isMutedByMutedAutoplay); +m.W("embeds_enable_emc3ds_muted_autoplay")&&Vu(m,"isMutedByEmbedsMutedAutoplay",m.isMutedByEmbedsMutedAutoplay);Vu(m,"setGlobalCrop",m.setGlobalCrop);Vu(m,"setInternalSize",m.setInternalSize);Vu(m,"setFauxFullscreen",m.setFauxFullscreen);Vu(m,"setAppFullscreen",m.setAppFullscreen)}; +g.g4=function(m,e){vB.call(this,m,e);HOc(this);zQ(this,"addEventListener",this.TQ);zQ(this,"removeEventListener",this.Hu);zQ(this,"cueVideoByPlayerVars",this.En);zQ(this,"loadVideoByPlayerVars",this.zt);zQ(this,"preloadVideoByPlayerVars",this.Lw);zQ(this,"loadVideoById",this.KW);zQ(this,"loadVideoByUrl",this.Om);zQ(this,"playVideo",this.Yp);zQ(this,"loadPlaylist",this.loadPlaylist);zQ(this,"nextVideo",this.nextVideo);zQ(this,"previousVideo",this.previousVideo);zQ(this,"playVideoAt",this.playVideoAt); +zQ(this,"getVideoData",this.VN);zQ(this,"seekBy",this.St);zQ(this,"seekTo",this.Aq);zQ(this,"showControls",this.showControls);zQ(this,"hideControls",this.hideControls);zQ(this,"cancelPlayback",this.cancelPlayback);zQ(this,"getProgressState",this.getProgressState);zQ(this,"isInline",this.isInline);zQ(this,"setInline",this.setInline);zQ(this,"setLoopVideo",this.setLoopVideo);zQ(this,"getLoopVideo",this.getLoopVideo);zQ(this,"getVideoContentRect",this.getVideoContentRect);zQ(this,"getVideoStats",this.xT); +zQ(this,"getCurrentTime",this.wq);zQ(this,"getDuration",this.gM);zQ(this,"getPlayerState",this.pQ);zQ(this,"getVideoLoadedFraction",this.Nq);zQ(this,"mute",this.VA);zQ(this,"unMute",this.lM);zQ(this,"setVolume",this.zp);zQ(this,"loadModule",this.loadModule);zQ(this,"unloadModule",this.unloadModule);zQ(this,"getOption",this.Fv);zQ(this,"getOptions",this.getOptions);zQ(this,"setOption",this.setOption);zQ(this,"addCueRange",this.addCueRange);zQ(this,"getDebugText",this.getDebugText);zQ(this,"toggleFullscreen", +this.toggleFullscreen);zQ(this,"isFullscreen",this.isFullscreen);zQ(this,"getPlayerSize",this.getPlayerSize);zQ(this,"toggleSubtitles",this.toggleSubtitles);zQ(this,"setCenterCrop",this.setCenterCrop);zQ(this,"setFauxFullscreen",this.setFauxFullscreen);zQ(this,"setSizeStyle",this.setSizeStyle);Elb(this)}; +XE=function(m){m=m.QW().i7.get("endscreen");return!!m&&XE(m)}; +ic=function(m){m=m.QW();var e=m.i7.get("endscreen");return e&&e.Ki()?!0:m.Gq()}; +DCK=function(m){m.getPresentingPlayerType()===3?m.Pv("mdxautoplaycancel"):m.jr("onAutonavCancelled",!0)}; +Lkt=function(m){var e=x6(m.QW());return m.app.uR&&!m.isFullscreen()||m.getPresentingPlayerType()===3&&e&&lc(e)&&(e.loop||e.index-1>=0)||!!m.getPlaylist()}; +g.uc=function(m,e,Z){m=m.YA().element;var M=oO(m.children,function(k){k=Number(k.getAttribute("data-layer"));return Z-k||1}); +M<0&&(M=-(M+1));g.gN(m,e,M);e.setAttribute("data-layer",String(Z))}; +RU=function(){ad.apply(this,arguments);this.DM={}}; +g.TM=function(){hE||(hE=new RU);return hE}; +g.$6=function(m,e){e?m.DM.Authorization="Bearer "+e:delete m.DM.Authorization}; +g.Gy1=function(m){return(m=syc[m.toString()])?m:"LICENSE"}; +yi1=function(m,e){function Z(){var M=g.Hy.apply(0,arguments);m.removeEventListener("playing",Z);e.apply(null,g.Rt(M))} +m.addEventListener("playing",Z)}; +g.jyK=function(m){var e=Math.abs(Math.floor(m)),Z=Math.floor(e/86400),M=Math.floor(e%86400/3600),k=Math.floor(e%3600/60);e=Math.floor(e%60);var K="";Z>0&&(K+=Z+":",M<10&&(K+="0"));if(Z>0||M>0)K+=M+":",k<10&&(K+="0");K+=k+":";e<10&&(K+="0");Z=K+e;return m>=0?Z:"-"+Z}; +FE=function(m){return(!("button"in m)||typeof m.button!=="number"||m.button===0)&&!("shiftKey"in m&&m.shiftKey)&&!("altKey"in m&&m.altKey)&&!("metaKey"in m&&m.metaKey)&&!("ctrlKey"in m&&m.ctrlKey)}; +g.w4=function(m){g.Y.call(this);this.yh={};this.ZN={};this.element=this.createElement(m)}; +nZ=function(m,e,Z,M){if(M.substring(0,2)==="{{")m.ZN[M]=[e,Z];else return M}; +OO1=function(m,e){var Z=[];if(!e)return Z;e=g.r(e);for(var M=e.next();!M.done;M=e.next())if(M=M.value,M!=null){var k=M.nodeType;k===1||k===3?Z.push(M):M&&typeof M.T==="string"?Z.push(m.createElement(M)):M.element?Z.push(M.element):typeof M==="string"&&M.indexOf("\n")!==-1?M.split("\n").forEach(function(K,q){q>0&&Z.push(g.SU("BR"));Z.push(g.ao(K))}):Z.push(g.ao(M))}return Z}; +cB=function(m,e,Z,M){if(Z==="child"){g.vc(e);var k;M===void 0?k=void 0:k=!Array.isArray(M)||M&&typeof M.T==="string"?[M]:M;Z=OO1(m,k);Z=g.r(Z);for(m=Z.next();!m.done;m=Z.next())e.appendChild(m.value)}else Z==="style"?g.Eo(e,"cssText",M?M:""):M===null||M===void 0?e.removeAttribute(Z):(m=M.toString(),Z==="href"&&(m=g.Bo(g.tc(m))),e.setAttribute(Z,m))}; +g.Nq=function(m){g.w4.call(this,m);this.U=!0;this.listeners=[]}; +g.r4=function(m){g.Nq.call(this,m);this.N=new g.m6;g.U(this,this.N)}; +g.IU=function(m,e,Z,M,k,K){g.Y.call(this);this.element=m;this.state=null;Z||m.hide();this.S=e;this.U=M===void 0?e:M;this.X=K;this.onHidden=k;this.delay=new g.eD(this.Mv,0,this);g.U(this,this.delay)}; +AE=function(m,e){m=m.element.element;e?m.setAttribute("aria-hidden","true"):m.removeAttribute("aria-hidden")}; +g.CZ=function(m,e,Z,M){M=M===void 0?!1:M;g.r4.call(this,e);var k=this;this.hR=m;this.K=M;this.L=new g.z$(this);this.C=new g.IU(this,Z,!0,void 0,void 0,function(){k.X&&k.element&&(k.X.getAttribute("aria-haspopup"),k.X.setAttribute("aria-expanded","true"),k.focus())}); +g.U(this,this.L);g.U(this,this.C)}; +Jiy=function(m){m.X&&(document.activeElement&&g.iQ(m.element,document.activeElement)&&m.X.focus(),m.X.setAttribute("aria-expanded","false"),m.X=void 0);g.m2(m.L);m.j=void 0}; +fZ=function(m){return m.U&&m.C.state!==4}; +g.oU=function(){return{T:"svg",oO:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},IO:[{T:"path",oO:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; +d4=function(m,e,Z,M){g.r4.call(this,m);this.priority=e;Z&&this.updateValue("label",Z);M&&this.SC(M)}; +BB=function(m){g.Y.call(this);this.api=m}; +Eb=function(m){BB.call(this,m);var e=this;Vu(m,"setAccountLinkState",function(Z){e.setAccountLinkState(Z)}); +Vu(m,"updateAccountLinkingConfig",function(Z){e.updateAccountLinkingConfig(Z)}); +m.addEventListener("videodatachange",function(Z,M){e.onVideoDataChange(M)})}; +g.Ub=function(m,e,Z){Z=Z===void 0?{}:Z;this.start=m;this.end=e;this.active=!0;this.color="";this.Lx=0;this.S=VCG++;this.id=Z.id||"";this.priority=Z.priority||9;this.visible=Z.visible||!1;this.style=Z.style||Y6.AD_MARKER;this.namespace=Z.namespace||"";if(m=Z.color)m=m.toString(16),this.color="#"+Array(7-m.length).join("0")+m;this.tooltip=Z.tooltip;this.icons=Z.icons?Z.icons.filter(function(M){return g.tJ(M.thumbnails,function(k){return g.Bi(k.url)})}):null; +this.visible=this.visible;this.style=this.style;this.start=this.start}; +Wk1=function(m){return m===-0x8000000000000?"BEFORE_MEDIA_START":m===0?"MEDIA_START":m===0x7ffffffffffff?"MEDIA_END":m===0x8000000000000?"AFTER_MEDIA_END":m.toString()}; +g.bc=function(m,e){return m.start-e.start||m.priority-e.priority||m.S-e.S}; +g.tE=function(m){return"crn_"+m}; +zbc=function(m){this.api=m;this.X={}}; +QW=function(m,e,Z,M){e in m.X||(Z=new g.Ub(Z,M,{id:e,priority:2,namespace:"appad"}),m.api.IF([Z],1),m.X[e]=Z)}; +HB=function(m){BB.call(this,m);var e=this;this.events=new g.z$(this);g.U(this,this.events);this.X=new zbc(this.api);this.events.ZG(this.api,"legacyadtrackingpingreset",function(){e.X.X={}}); +this.events.ZG(this.api,"legacyadtrackingpingchange",function(Z){var M=e.X;QW(M,"part2viewed",1,0x8000000000000);QW(M,"engagedview",Math.max(1,Z.KB*1E3),0x8000000000000);if(!Z.isLivePlayback){var k=Z.lengthSeconds*1E3;uJ(Z)&&M.api.W("html5_shorts_gapless_ads_duration_fix")&&(k=M.api.getProgressState().seekableEnd*1E3-Z.jn);QW(M,"videoplaytime25",k*.25,k);QW(M,"videoplaytime50",k*.5,k);QW(M,"videoplaytime75",k*.75,k);QW(M,"videoplaytime100",k,0x8000000000000);QW(M,"conversionview",k,0x8000000000000); +QW(M,"videoplaybackstart",1,k);QW(M,"videoplayback2s",2E3,k);QW(M,"videoplayback10s",1E4,k)}}); +this.events.ZG(this.api,g.tE("appad"),this.S);this.events.ZG(this.api,"crx_appad",this.S)}; +ZAK=function(m,e,Z){if(!(Z in e))return!1;e=e[Z];Array.isArray(e)||(e=[e]);e=g.r(e);for(Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M={CPN:m.api.getVideoData().clientPlaybackNonce};Z=g.Oo(Z,M);M=void 0;M=M===void 0?!1:M;(M=CR(fR(Z,PN3),Z,M,"Active View 3rd Party Integration URL"))||(M=void 0,M=M===void 0?!1:M,M=CR(fR(Z,mcc),Z,M,"Google/YouTube Brand Lift URL"));M||(M=void 0,M=M===void 0?!1:M,M=CR(fR(Z,eB1),Z,M,"Nielsen OCR URL"));g.hL(Z,void 0,M)}return!0}; +Dm=function(m,e){MyP(m,e).then(function(Z){g.hL(e,void 0,void 0,Z)})}; +LZ=function(m,e){e.forEach(function(Z){Dm(m,Z)})}; +MyP=function(m,e){return g.Km(m.api.J())&&g.JW(e)&&g.jS(e)?g.Tk(m.api.J(),g.bJ(m.api.getVideoData())).then(function(Z){var M;Z&&(M={Authorization:"Bearer "+Z});return M},void 0):g.rh()}; +sb=function(m,e){var Z={role:"menuitemcheckbox","aria-checked":"false"};Z=Z===void 0?{}:Z;var M=M===void 0?[]:M;var k=k===void 0?!1:k;var K=K===void 0?!1:K;M.push("ytp-menuitem");var q=Z;"role"in q||(q.role="menuitem");k||(q=Z,"tabindex"in q||(q.tabindex="0"));Z={T:k?"a":"div",mf:M,oO:Z,IO:[{T:"div",UE:"ytp-menuitem-icon",xG:"{{icon}}"},{T:"div",UE:"ytp-menuitem-label",xG:"{{label}}"},{T:"div",UE:"ytp-menuitem-content",xG:"{{content}}"}]};K&&Z.IO.push({T:"div",UE:"ytp-menuitem-secondary-icon",xG:"{{secondaryIcon}}"}); +d4.call(this,Z,e,m,{T:"div",UE:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.GO("click",this.onClick)}; +GM=function(m,e){m.checked=e;m.element.setAttribute("aria-checked",String(m.checked))}; +koc=function(m,e){m.enabled=e;m.enabled?m.element.removeAttribute("aria-disabled"):m.element.setAttribute("aria-disabled","true")}; +KEK=function(m,e,Z){var M=m.currentTarget;if((Z===void 0||!Z)&&FE(m))return m.preventDefault(),!0;e.pauseVideo();m=M.getAttribute("href");e=void 0;Z=!0;e=e===void 0?{}:e;Z=Z===void 0?!1:Z;(M=g.fE("EVENT_ID"))&&(e.ei||(e.ei=M));e&&o1(m,e);if(!Z){g.lm(m);var k=k===void 0?{}:k;var K=K===void 0?"":K;var q=q===void 0?window:q;k=g.tV(m,k);g.lm(k);K=g.tc(k+K);q=q.location;K=g.Ho(K);K!==void 0&&(q.href=K)}return!1}; +yW=function(m){BB.call(this,m);var e=this;this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"applicationvideodatachange",function(Z,M){e.il(Z,M)})}; +jg=function(m){BB.call(this,m);this.events=new g.z$(m);g.U(this,this.events);Vu(m,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Vu(m,"setCreatorEndscreenHideButton",this.X.bind(this))}; +Ob=function(m,e,Z,M){sb.call(this,"\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a \u0627\u0644\u062b\u0627\u0628\u062a",qa3.mN);g.SD(this.element,"ytp-drc-menu-item");this.S=m.v9();this.L=e;this.X=Z;this.hasDrcAudioTrack=M;m.addEventListener("videodatachange",this.Z.bind(this));m.W("mta_drc_mutual_exclusion_removal")&&this.ZG(m,"onPlaybackAudioChange",this.Z);m=this.X()===1&&this.hasDrcAudioTrack();koc(this,this.hasDrcAudioTrack());this.updateValue("icon",{T:"svg",oO:{height:"24",viewBox:"0 0 24 24", +width:"24"},IO:[{T:"path",oO:{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.C,this);GM(this,m);this.S.uf(this)}; +JE=function(m){BB.call(this,m);var e=this;this.events=new g.z$(m);g.U(this,this.events);m.W("html5_show_drc_toggle")&&m.addEventListener("settingsMenuInitialized",function(){e.menuItem||(e.menuItem=new Ob(e.api,e.setDrcUserPreference.bind(e),e.getDrcUserPreference.bind(e),e.S.bind(e)),g.U(e,e.menuItem))}); +Vu(this.api,"setDrcUserPreference",function(M){e.setDrcUserPreference(M)}); +Vu(this.api,"getDrcUserPreference",function(){return e.getDrcUserPreference()}); +Vu(this.api,"hasDrcAudioTrack",function(){return e.S()}); +var Z;this.X=(Z=g.Kr("yt-player-drc-pref"))!=null?Z:1;this.updateEnvironmentData()}; +VW=function(m){BB.call(this,m);var e=this;this.X={};this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"videodatachange",function(){e.onVideoDataChange()}); +this.events.ZG(m,g.tE("embargo"),function(Z){e.api.C6(!0);var M,k=(M=e.X[Z.id])!=null?M:[];M=g.r(k);for(k=M.next();!k.done;k=M.next()){var K=k.value;e.api.hideControls();e.api.aE("auth",2,"This video isn't available in your current playback area",b_({embargoed:1,id:Z.id,idx:Z.S,start:Z.start}));k=void 0;(K=(k=K.embargo)==null?void 0:k.onTrigger)&&e.api.jr("innertubeCommand",K)}})}; +pl7=function(m,e){var Z;return(Z=e.onEnter)==null?void 0:Z.some(m.S)}; +Sam=function(m,e){e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=void 0,k=Number((M=Z.playbackPosition)==null?void 0:M.utcTimeMillis)/1E3,K=void 0;M=k+Number((K=Z.duration)==null?void 0:K.seconds);K="embargo_"+k;m.api.addUtcCueRange(K,k,M,"embargo",!1);Z.onEnter&&(m.X[K]=Z.onEnter.filter(m.S))}}; +WB=function(m,e){g.Y.call(this);var Z=this;this.X=null;this.U=e;e=[];for(var M=0;M<=100;M++)e.push(M/100);e={threshold:e,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(function(k){k=k[k.length-1];typeof k.isVisible==="undefined"?Z.X=null:Z.X=k.isVisible?k.intersectionRatio:0;typeof Z.U==="function"&&Z.U(Z.X)},e):null)&&this.S.observe(m)}; +vdK=function(m){BB.call(this,m);var e=this;this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"applicationInitialized",function(){aNy(e)})}; +aNy=function(m){m.X=new WB(m.api.getRootNode(),function(e){e!=null&&(m.api.J().PS=e)}); +g.U(m,m.X);m.events.ZG(m.api,"videoStatsPingCreated",function(e){var Z=m.X;Z=Z.X==null?null:Math.round(Z.X*100)/100;e.inview=Z!=null?Z:void 0;Z=m.api.getPlayerSize();if(Z.height>0&&Z.width>0){Z=[Math.round(Z.width),Math.round(Z.height)];var M=iA();M>1&&Z.push(M);Z=Z.join(":")}else Z=void 0;e.size=Z})}; +zM=function(m){BB.call(this,m);var e=this;zQ(this.api,"getSphericalProperties",function(){return e.getSphericalProperties()}); +zQ(this.api,"setSphericalProperties",function(){e.setSphericalProperties.apply(e,g.Rt(g.Hy.apply(0,arguments)))}); +WQ(this.api,"getSphericalProperties",function(){return e.api.getPresentingPlayerType()===2?{}:e.getSphericalProperties()}); +WQ(this.api,"setSphericalProperties",function(){var Z=g.Hy.apply(0,arguments);e.api.getPresentingPlayerType()!==2&&e.setSphericalProperties.apply(e,g.Rt(Z))})}; +PB=function(m){BB.call(this,m)}; +mM=function(m,e,Z,M){function k(q){var S=!(q.status!==204&&q.status!==200&&!q.response),a;q={succ:""+ +S,rc:q.status,lb:((a=q.response)==null?void 0:a.byteLength)||0,rt:((0,g.G)()-K).toFixed(),shost:g.ow(m),trigger:e};gd1(q,m);Z&&Z(q);M&&!S&&M(new g.tw("pathprobe.net",q))} +var K=(0,g.G)();g.lN(m,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:k,onTimeout:k})}; +gd1=function(m,e){var Z;((Z=window.performance)==null?0:Z.getEntriesByName)&&(e=performance.getEntriesByName(e))&&e.length&&(e=e[0],m.pedns=(e.domainLookupEnd-e.startTime).toFixed(),m.pecon=(e.connectEnd-e.domainLookupEnd).toFixed(),m.perqs=(e.requestStart-e.connectEnd).toFixed(),XlR&&(m.perqsa=e.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; +el=function(m,e){this.Ge=m;this.policy=e;this.playbackRate=1}; +iAR=function(m,e){var Z=Math.min(2.5,tX(m.Ge));m=ZU(m);return e-Z*m}; +M5=function(m,e,Z,M,k){k=k===void 0?!1:k;if(m.policy.yq)return Math.ceil(m.policy.yq*e);m.policy.kU&&(M=Math.abs(M));M/=m.playbackRate;var K=1/Dg(m.Ge);Z=Math.max(.9*(M-3),tX(m.Ge)+2048*K)/K*.8/(e+Z);Z=Math.min(Z,M);m.policy.wZ>0&&k&&(Z=Math.max(Z,m.policy.wZ));return xcK(m,Z,e)}; +xcK=function(m,e,Z){return Math.ceil(Math.max(Math.max(m.policy.Do,m.policy.Ko*Z),Math.min(Math.min(m.policy.kG,31*Z),Math.ceil(e*Z))))||m.policy.Do}; +lNP=function(m,e,Z){Z=M5(m,e.X.info.JR,Z.X.info.JR,0);var M=tX(m.Ge)+Z/Dg(m.Ge);return Math.max(M,M+m.policy.BC-Z/e.X.info.JR)}; +ZU=function(m){return Dg(m.Ge,!m.policy.y$,m.policy.zd)}; +k_=function(m){return ZU(m)/m.playbackRate}; +KS=function(m,e,Z){var M=m.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],k=m.policy.playbackStartPolicy.startMinReadaheadPolicy||[];m=Infinity;e=g.r(e&&M.length>0?M:k);for(M=e.next();!M.done;M=e.next())M=M.value,k=M.minReadaheadMs||0,Z<(M.minBandwidthBytesPerSec||0)||m>k&&(m=k);return m0&&(this.S=Z.yI)}; +$cP=function(m,e,Z,M,k){if(!M.info.Z){if(Z.length===0)Z.push(M);else{var K;(m=(K=Z.pop())==null?void 0:nV(K,M))?Z.push(m):Z.push(M)}return k}var q;(Z=(q=Z.pop())==null?void 0:nV(q,M))||(Z=M);if(m.policy.LJ&&Z.info.S)return m.logger&&m.logger({incompleteSegment:Z.info.EZ()}),k;K=Z;M=G$(K.info.X.info,m.CB.gr);k=K.info.Wv+m.Z;q=K.info.startTime*1E3;if(m.policy.nB)try{q=m.policy.nB?NL(K)*1E3:K.info.startTime*1E3}catch(x){Math.random()>.99&&m.logger&&(Z=MJ(K.X).slice(0,1E3),m.logger&&m.logger({parserErrorSliceInfo:K.info.EZ(), +encodedDataView:g.HG(Z,4)})),q=K.info.startTime*1E3}Z=K.info.clipId;if(m.policy.nB){if(K.info.X.PX())var S=K.info.duration;else K.Z===-1&&(K.Z=r_(K)),S=K.Z||K.info.duration;S*=1E3}else S=K.info.duration*1E3;m.policy.nB&&(q<0||S<0)&&m.logger&&(m.logger({missingSegInfo:K.info.EZ(),startTimeMs:q,durationMs:S}),q<0&&(q=K.info.startTime*1E3),S<0&&(S=K.info.duration*1E3));K=S;!m.policy.uF&&m.policy.S&&m.rV&&(S=q5(m.rV,Z),q+=S);M={clipId:Z,formatId:M,startTimeMs:q,durationMs:K,EU:k,bR:k,rE:q,SH:K};k=RBK(e, +M.startTimeMs);(Z=k>=0?e[k]:null)&&hBI(m,Z,M)?M=Z:(k+=1,e.splice(k,0,M));Z=0;for(K=k+1;K=v+q.S?q=!0:X+q.S=0?m:-m-2}; +FEy=function(m,e){if(m.Pq){var Z=m.Pq.v0();if(Z.length!==0){if(m.U&&e){var M=m.U,k=M.info.u7;!S4(Z,k)&&M.info.C>0&&(0,g.G)()-m.C<5E3&&(m.logger&&m.logger({dend:M.info.EZ()}),Z=rQ3(Z,k,k+.01))}m.policy.HX&&m.logger&&m.logger({cbri:""+m.X});M=[];for(var K=k=0;k=q){var X=0;if(m.rV){var x=pS(m.rV,a*1E3);x&&(X=x.Lx/1E3)}x=Object.assign({},m.qB[K]);var l=m.CB.U.get(I6(m.qB[K].formatId)), +R=Math.max(a,q);q=l.index.fd(R+m.S/1E3-X);a=l.index.getStartTime(q)+X;var h=q+ +(Math.abs(a-R)>m.S/1E3);R=h+m.Z;h=(l.index.getStartTime(h)+X)*1E3;K!==m.X||e?(x.EU=R,x.startTimeMs=h):(m.logger&&m.logger({pEvict:"1",og:x.startTimeMs,adj:a*1E3}),x.EU=q+m.Z,x.startTimeMs=a*1E3);x.rE=x.startTimeMs;q=void 0;a=((q=m.U)==null?void 0:q.info.duration)||11;K===m.X&&Sm.S/1E3);q=a+m.Z;X=(l.index.Rp(a)+X)*1E3;x.bR=q;x.durationMs=X-x.startTimeMs;x.SH=x.durationMs;x.EU<=x.bR&&M.push(x)}vm.S)return!1;if(Tn7(m,e.formatId,Z.formatId))return e.durationMs=Math.max(M,k)-e.startTimeMs,e.SH=e.durationMs,e.bR=Math.max(e.bR,Z.bR),!0;if(Math.abs(e.startTimeMs-Z.startTimeMs)<=m.S){if(e.durationMs>Z.durationMs+m.S){m=e.formatId;var K=e.EU,q=e.bR;e.formatId=Z.formatId;e.durationMs=Z.durationMs;e.EU=Z.EU;e.SH=Z.durationMs;e.bR=Z.bR;Z.formatId=m;Z.startTimeMs=k;Z.rE=k;Z.durationMs=M-k;Z.SH=Z.durationMs; +Z.EU=K;Z.bR=q;return!1}e.formatId=Z.formatId;return!0}M>Z.startTimeMs&&(e.durationMs=Z.startTimeMs-e.startTimeMs,e.SH=e.durationMs,m.policy.bd&&e.clipId===Z.clipId&&(e.bR=Z.EU-1));return!1}; +Tn7=function(m,e,Z){return e.itag!==Z.itag||e.xtags!==Z.xtags?!1:m.CB.gr||e.lmt===Z.lmt}; +cSG=function(m,e,Z){if(m.logger){for(var M=[],k=0;k=0&&i5(m.audioTrack,m.X)>=0&&K?((m.videoTrack.L||m.audioTrack.L)&&m.D.B("iterativeSeeking",{status:"done",count:m.seekCount}),m.videoTrack.L=!1,m.audioTrack.L=!1):M&&g.LW(function(){if(m.S||!m.policy.Wq)u5(m);else{var q=e.startTime,S=e.duration;if(!m.policy.L){var a=Z?m.videoTrack.L:m.audioTrack.L,v=m.videoTrack.C!==-1&&m.audioTrack.C!==-1,X=m.X>=q&&m.X432E3&&aZP(m.CB);m.U&&(k=m.U,m.U=0);g.LW(function(){m.policy.L||RK(m,k,102)}); +m.D.B("initManifestlessSync",{st:k,ost:k+m.D.cq(),a:m.audioTrack.C,v:m.videoTrack.C});m.Z&&(m.Z.resolve(k+.1),m.Z=null);m.policy.L&&RK(m,k,102)}}}; +$_=function(m,e){this.z$=m;this.requestNumber=++dc1;this.X=this.now();this.Y=this.N=NaN;this.j=this.X;this.U=this.Bq=this.L=0;this.C=this.X;this.kG=this.Qh=this.Hv=this.uw=this.tf=this.S9=this.S=this.Z=0;this.K=this.isActive=!1;this.Wq=this.KB=0;this.Ge=e.Ge;this.snapshot=jmK(this.Ge);this.policy=this.Ge.Z;this.mZ=!!e.mZ;this.xD=e.xD;this.AE=e.AE||0;e.G4&&(this.b9=new fe);var Z;this.h6=(Z=e.h6)!=null?Z:!1;m=this.Ge;m.L||(m.L=(0,g.G)());m.policy.K&&(m.C=(0,g.G)())}; +BnG=function(m){m.Hv=Math.max(m.Hv,m.L-m.tf);m.Qh=Math.max(m.Qh,m.j-m.uw);m.S9=0}; +Fk=function(m,e,Z){Gct(m.Ge,e);m.b9&&(m.b9.add(Math.ceil(e)-Math.ceil(m.j)),m.b9.add(Math.max(0,Math.ceil(Z/1024)-Math.ceil(m.L/1024))));var M=e-m.j,k=Z-m.L;m.Bq=k;m.kG=Math.max(m.kG,k/(M+.01)*1E3);m.j=e;m.L=Z;m.S9&&Z>m.S9&&BnG(m)}; +wx=function(m,e){m.url=e;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +nS=function(m){m.isActive&&(m.isActive=!1)}; +cI=function(m,e){$_.call(this,m,e);this.CR=this.wr=!1;this.sE=this.AR=Infinity;this.yh=NaN;this.mw=!1;this.nB=NaN;this.Te=this.tR=this.ZN=0;this.fU=e.fU||1;this.D9=e.D9||this.fU;this.lS=e.lS;this.Wv=e.Wv;this.IY=e.IY;this.h5=e.h5||0;Edb(this);this.MC(this.X);this.XG=(this.nB-this.X)/1E3}; +Ya3=function(m){var e=m.tR||m.ZN;return e?m.snapshot.delay+Math.min(m.h5,(m.Y-m.N)/1E3)+e:m.XG}; +N5=function(m,e,Z){if(!m.mZ){e=Math.max(e,.01);var M=m.AE?Math.max(e,Z/m.AE):e;m.Ge.Z.S&&(M=e,m.AE&&(M=Math.max(e,Z/m.AE*M)));Yk(m.Ge,e,Z,M)}}; +Ucb=function(m){return(m.C-m.X)/1E3}; +Edb=function(m){m.yh=m.X+m.snapshot.delay*1E3;m.mw=!1}; +rx=function(m,e){if(m.lS&&m.Wv!==void 0&&m.IY!==void 0){var Z=Math,M=Z.min,k=m.AR;var K=m.lS;var q=m.X;if(bAt(K,m.Wv))K=e;else{var S=0;K.qF&&(S=.2);K=q+(K.h5+S)*1E3}m.AR=M.call(Z,k,K);Z=Math;M=Z.min;k=m.sE;K=m.lS;q=m.X;S=tyG(K,m.Wv,m.IY);S!==2&&(e=S?e:q+K.h5*1E3,K.qF&&(e+=K.h5*1E3));m.sE=M.call(Z,k,e);m.AR<=m.X?Edb(m):(m.yh=m.AR,m.mw=!0)}}; +QhR=function(m,e){if(e+1<=m.totalLength){var Z=m.getUint8(e);Z=Z<128?1:Z<192?2:Z<224?3:Z<240?4:5}else Z=0;if(Z<1||!(e+Z<=m.totalLength))return[-1,e];if(Z===1)m=m.getUint8(e++);else if(Z===2)Z=m.getUint8(e++),m=m.getUint8(e++),m=(Z&63)+64*m;else if(Z===3){Z=m.getUint8(e++);var M=m.getUint8(e++);m=m.getUint8(e++);m=(Z&31)+32*(M+256*m)}else if(Z===4){Z=m.getUint8(e++);M=m.getUint8(e++);var k=m.getUint8(e++);m=m.getUint8(e++);m=(Z&15)+16*(M+256*(k+256*m))}else Z=e+1,m.focus(Z),ZW(m,Z,4)?m=S87(m).getUint32(Z- +m.jR,!0):(M=m.getUint8(Z+2)+256*m.getUint8(Z+3),m=m.getUint8(Z)+256*(m.getUint8(Z+1)+256*M)),e+=5;return[m,e]}; +IK=function(m){this.z$=m;this.X=new zh}; +Ax=function(m,e){this.info=m;this.callback=e;this.state=1;this.AI=this.zn=!1;this.Ye=null}; +HA1=function(m){return g.tJ(m.info.qU,function(e){return e.type===3})}; +CS=function(m,e,Z,M){var k=this;M=M===void 0?{}:M;this.policy=e;this.z$=Z;this.status=0;this.X=new zh;this.S=0;this.MU=this.Z=this.U=!1;this.xhr=new XMLHttpRequest;this.xhr.open(M.method||"GET",m);if(M.headers)for(m=M.headers,e=g.r(Object.keys(m)),Z=e.next();!Z.done;Z=e.next())Z=Z.value,this.xhr.setRequestHeader(Z,m[Z]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return k.iW()}; +this.xhr.onload=function(){return k.onDone()}; +this.xhr.onerror=function(){return k.onError()}; +this.xhr.fetch(function(K){k.X.append(K);k.S+=K.length;K=(0,g.G)();k.z$.fb(K,k.S)},function(){},M.body||null)}; +Dck=function(m,e){this.S=(new TextEncoder).encode(m);this.X=(new TextEncoder).encode(e)}; +mhR=function(m,e){var Z,M,k;return g.Qs(function(K){if(K.X==1){if(!e)return K.return(e);Z=fS.JI();M=new ya(m.S);return g.A(K,M.encrypt(e,m.X),2)}k=K.S;fS.Od("woe",Z,Math.ceil(e.byteLength/16));return K.return(k)})}; +kD7=function(m,e){var Z,M,k;return g.Qs(function(K){if(K.X==1){if(!e)return K.return(e);Z=fS.JI();M=new ya(m.S);return g.A(K,M.decrypt(e,m.X),2)}k=K.S;fS.Od("wod",Z,Math.ceil(e.byteLength/16));return K.return(k)})}; +shy=function(m,e){var Z=this;this.X=m;this.z$=e;this.loaded=this.status=0;this.error="";m=fl(this.X.get("range")||"");if(!m)throw Error("bad range");this.range=m;this.S=new zh;LEc(this).then(function(){Z.z$.lF()},function(M){Z.error=""+M||"unknown_err"; +Z.z$.lF()})}; +LEc=function(m){var e,Z,M,k,K,q,S,a,v,X,x,l,R,h,w;return g.Qs(function(N){if(N.X==1){m.status=200;e=m.X.get("docid");Z=K3(m.X.get("fmtid")||"");M=m.X.get("lmt")||"0";k=+(m.X.get("csz")||0);if(!e||!Z||!k)throw Error("Invalid local URL");m.X.get("ck")&&m.X.get("civ")&&(K=new Dck(m.X.get("ck"),m.X.get("civ")));q=m.range;S=Math.floor(q.start/k);a=Math.floor(q.end/k);v=S}if(N.X!=5)return v<=a?g.A(N,KhG(e,Z,M,v,K),5):N.pB(0);X=N.S;if(X===void 0)throw Error("invariant: data is undefined");x=v*k;l=(v+1)* +k;R=Math.max(0,q.start-x);h=Math.min(q.end+1,l)-(R+x);w=new Uint8Array(X.buffer,R,h);m.S.append(w);m.loaded+=h;m.loaded0&&(k.X=Math.min(k.X+q,10),k.S=K);k.X>0?(k.X--,k=!0):k=!1;if(k)typeof M==="function"&&(M=M()),console.log("plyr."+e,M);else{var S;M=((S=zB1.get(e))!=null?S:0)+1;zB1.set(e,M);M%100===1&&console.warn("plyr","plyr."+e+" is chatty, dropping logs.")}}}; +WE7=function(){this.X=10;this.S=Date.now()}; +Ek=function(m,e){g.Y.call(this);this.policy=m;this.qU=e;this.S=0;this.X=null;this.CE=[];this.U=null;this.qU.length===1||g.tJ(this.qU,function(Z){return!!Z.range})}; +Y_=function(m,e,Z){m.X&&(Pz(m.X,e),e=m.X,m.X=null);for(var M=0,k=0,K=g.r(m.qU),q=K.next();!q.done;q=K.next())if(q=q.value,q.range&&M+q.U<=m.S)M+=q.U;else{e.getLength();if(E_(q)&&!Z&&m.S+e.getLength()-k=400?(m.lastError="net.badstatus",!0):(k===void 0?0:k)?(m.lastError="ump.spsrejectfailure",!0):Z||M!==void 0&&M?!1:(m.lastError=e===204?"net.nocontent":"net.connect",!0)}; +DU=function(m,e){if(m.policy.pA)return!1;var Z=e.getResponseHeader("content-type"),M=e.ZH();m=!M||M<=m.policy.QI;return(!e.Sq()||!Z||Z.indexOf("text/plain")!==-1)&&m}; +ks7=function(m,e){var Z="";e=e.bD();e.getLength()<=m.policy.QI&&(Z=MYm(m,e.GM()));return Z}; +MYm=function(m,e){var Z=qJ(e);return d5(Z)?(m.logger.debug(function(){return"Redirecting to "+Z}),Z):""}; +b5=function(m){return F8(m.U,Cy(m.b7.WI))}; +K23=function(m){var e=m.timing.Xw();e.shost=Cy(m.b7.WI);return e}; +qZ1=function(m,e){return(m==null?void 0:m.maxWidth)>(e==null?void 0:e.maxWidth)||(m==null?void 0:m.maxHeight)>(e==null?void 0:e.maxHeight)}; +pCK=function(m,e){for(var Z=g.r(e.keys()),M=Z.next();!M.done;M=Z.next())if(M=e.get(M.value),M.length!==0){g.dX(M,function(S,a){return a.maxFramerate-S.maxFramerate}); +for(var k=[M[0]],K=0,q=1;qm.X||Z.push(M)}return Z}; +LS=function(m,e,Z){var M=vEK[m]||[];Z.W("html5_shorts_onesie_mismatched_fix")&&(M=gER[m]||[]);e.push.apply(e,g.Rt(M));Z.W("html5_early_media_for_drm")&&e.push.apply(e,g.Rt(XCI[m]||[]))}; +hft=function(m,e){var Z=TQ(m),M=m.J(),k=M.S;M=M.W("html5_shorts_onesie_mismatched_fix");var K=m.ON();if(M){if(!k.U){if(K&&sk)return sk;if(GL)return GL}}else if(GL&&!k.U)return GL;var q=[],S=[],a={},v=yb.concat(ir3);M&&(v=yb.concat(xr1));m.W("html5_early_media_for_drm")&&(v=v.concat(l2s),m.W("allow_vp9_1080p_mq_enc")&&v.push(u93));var X=[].concat(g.Rt(Rft));if(Z.K)for(var x=0;xZ.JD)){var w=g.Y4(m.J().experiments,"html5_drm_byterate_soft_cap");w>0&&wNG(h)&&h.JR>w||(x?(q.push(R),LS(R,q,m)):(h=RL(Z,h,k),h===!0?(x=!0,q.push(R),LS(R,q,m)):a[R]=h))}}}X=g.r(X);for(v=X.next();!v.done;v=X.next())for(v=g.r(v.value),x=v.next();!x.done;x=v.next())if(x=x.value,(l=xBK(x))&&l.audio&&(m.W("html5_onesie_51_audio")|| +!LV(l)&&!NM(l)))if(l=RL(Z,l,k),l===!0){S.push(x);LS(x,S,m);break}else a[x]=l;Z.S&&e("orfmts",a);if(M)return k.U&&(k.U=!1,sk=GL=void 0),K?sk={video:q,audio:S}:GL={video:q,audio:S};GL={video:q,audio:S};k.U=!1;return GL}; +jl=function(m){var e={},Z=m.G,M=m.Xq,k=Z.getVideoData(),K=LR(0),q=Z.getPlayerSize(),S=Z.getVisibilityState();K&&(e.kS=K,e.lastManualDirection=NDI(),K=qr()||0,K>0&&(K=(M.W("html5_use_date_now_for_local_storage")?Date.now():(0,g.G)())-K,M.W("html5_use_date_now_for_local_storage")?K>0&&(e.timeSinceLastManualFormatSelectionMs=K):e.timeSinceLastManualFormatSelectionMs=K));e.V4=LR();K=M.W("html5_use_streamer_bandwidth_for_low_latency_live")&&k.isLowLatencyLiveStream;if(M.schedule.Y&&!K){var a;K=M.W("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((a=m.Xl)==null||!a.y$):!1;e.DO=Dg(M.schedule,!K)}a=iA();var v=Dv.medium,X=Math.floor(v*16/9);K=k.ON()?v:X;v=k.ON()?X:v;e.Sv=Math.max(q.width*a,K);e.PF=Math.max(q.height*a,v);e.visibility=S;e.x0=g.Xb();e.x5=Z.pF()*1E3;var x;if((x=m.Xl)==null?0:x.Xm){q=m.G.N1(!0);var l,R,h,w,N,I;e.EG={defaultPolicy:((l=q.pG)==null?void 0:l.X)||0,smooth:((R=q.Gx)==null?void 0:R.X)||0,visibility:((h=q.lq)==null?void 0:h.X)||0,fG:((w=q.KG)==null?void 0:w.X)||0,performance:((N=q.OS)==null?void 0:N.X)||0,speed:((I=q.cJ)== +null?void 0:I.X)||0}}else{var C;if((C=m.Xl)==null?0:C.Mr){var B;e.Ck=((B=m.G.N1().OS)==null?void 0:B.X)||0}}M.W("html5_enable_sabr_drm_hd720p")&&m.sabrLicenseConstraint&&(e.sabrLicenseConstraint=m.sabrLicenseConstraint);if(M.W("html5_onesie_media_capabilities")||M.W("html5_enable_server_format_filter"))e.uy=3;M.W("html5_onesie_audio_only_playback")&&Rf(k)&&(e.uy=1);HQ(k)&&(e.uy=e.uy===void 0?7:e.uy|4);l=k.NP?k.NP:TQ(k);if(M.W("html5_onesie_media_capabilities")){R=M.S;h=[];w=[];N=M.W("html5_shorts_onesie_mismatched_fix"); +I=k.ON();S=yb.concat(ir3);N&&(S=yb.concat(xr1));M.W("html5_early_media_for_drm")&&(S=S.concat(l2s),M.W("allow_vp9_1080p_mq_enc")&&S.push(u93));q=[].concat(g.Rt(Rft));if(l.K)for(x=0;x0&&wNG(B)&&B.JR>a)&&RL(l,B,R)===!0)){h.push({videoCodec:T1y[tM[C]],maxWidth:B.video.width,maxHeight:B.video.height,maxFramerate:B.video.fps});break}N=g.r(q);for(I=N.next();!I.done;I=N.next())for(I=g.r(I.value),q=I.next();!q.done;q=I.next())if(q=q.value,(S=xBK(q))&&S.audio&&(M.W("html5_onesie_51_audio")||!LV(S)&&!NM(S))&&RL(l,S,R)===!0){w.push({audioCodec:$rm[tM[q]],numChannels:S.audio.numChannels});break}e.mediaCapabilities={videoFormatCapabilities:h,audioFormatCapabilities:w}}var b;if((b=m.Xl)== +null?0:b.X&&b.NP){h=M.S;b=[];R=[];w=new Map;M.W("html5_ssap_update_capabilities_on_change")?(h.K||tDm(h),N=h.K||[]):N=Array.from(h.X.values());N=g.r(N);for(I=N.next();!I.done;I=N.next())q=I.value,q.F5?R.push({audioCodec:$rm[q.T$],numChannels:q.numChannels,spatialCapabilityBitmask:F2y[q.T$]}):(S=T1y[q.T$],I={videoCodec:S,maxWidth:q.maxWidth||0,maxHeight:q.maxHeight||0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.Tj||!1},q.maxBitrateBps&&(I.maxBitrateBps=q.maxBitrateBps,x=$I(q.itag),C=void 0,((C= +x)==null?0:C.video)&&RL(l,x,h)===!0&&(x=x.JR*8,x>I.maxBitrateBps&&(I.maxBitrateBps=x))),q=S+"_"+q.Tj,S=w.get(q)||[],S.push(I),w.set(q,S));b=pCK(b,w);h={};M.W("html5_ssff_denylist_opus_low")&&(h={itagDenylist:[249,350]});e.mediaCapabilities={videoFormatCapabilities:b,audioFormatCapabilities:R,hdrModeBitmask:3,perPlaybackAttributes:h}}var L;if((L=m.Xl)==null?0:L.X){e.bF=l.bF;var Q;e.JD=(Q=m.Xl)==null?void 0:Q.JD}M.Bq&&(e.Tr=M.Bq);e.XA=m.k9;e.W1=m.W1;e.M5=m.M5;e.xr=m.xr;if(M.W("html5_fix_time_since_last_seek_reporting")? +m.eW!==void 0:m.eW)e.D0=(0,g.G)()-m.eW;m.isPrefetch&&M.W("html5_report_prefetch_requests")&&(e.isPrefetch=!0);hX||(e.Zu=!0);L=tX(M.schedule)*1E3;L>0&&(e.AL=L);var J;((J=m.Xl)==null?0:J.aG)&&m.If&&m.If0?kG:M.schedule.interruptions[0]||0);var TK;if((TK=m.Xl)==null?0:TK.Bq)e.LF=m.LF;var z;((z=m.Xl)==null?0:z.Ab)&&k.FK&&(e.audioTrackId=k.FK);var D;if((D=m.Xl)==null?0:D.cU)if(m=NgR())e.detailedNetworkType=wCb[m]||wCb.other;return e}; +Ok=function(m,e,Z,M,k,K){var q={};e&&(q.mu=e);if(!m)return q;q.playbackCookie=Z==null?void 0:Z.playbackCookie;k&&(q.Ae=k);q.i8=[];q.VY=[];if(g.gA(m)&&m.sabrContextUpdates.size>0)for(e=g.r(m.sabrContextUpdates.values()),Z=e.next();!Z.done;Z=e.next())nER(q,Z.value,M);Mw(m)&&!g.gA(m)&&m.W("html5_enable_sabr_request_pipelining")&&K&&nER(q,K,M);m.Td&&(q.FR=m.Td);M=m.J().X;q.clientInfo={clientName:cnG[M.c.toUpperCase()]||0};M.cbrand&&(q.clientInfo.deviceMake=M.cbrand);M.cmodel&&(q.clientInfo.deviceModel= +M.cmodel);M.cver&&(q.clientInfo.clientVersion=M.cver);M.cos&&(q.clientInfo.osName=M.cos);M.cosver&&(q.clientInfo.osVersion=M.cosver);M=m.J();M.W("html5_sabr_enable_server_xtag_selection")&&M.yh&&(q.clientInfo.hl=M.yh);m.HE&&(q.HE=m.HE);return q}; +nER=function(m,e,Z){var M=e.type||0;(Z==null?0:Z.has(M))?m.VY.push(e):m.i8.push(M)}; +gx=function(m,e,Z,M,k,K){var q=K===void 0?{}:K;var S=q.OA===void 0?[]:q.OA;var a=q.v6===void 0?!1:q.v6;var v=q.ZA===void 0?0:q.ZA;var X=q.poToken===void 0?"":q.poToken;var x=q.GH===void 0?void 0:q.GH;var l=q.hh===void 0?"":q.hh;var R=q.FJ===void 0?0:q.FJ;var h=q.f1===void 0?new Uint8Array(0):q.f1;var w=q.Ph===void 0?!1:q.Ph;K=q.yp===void 0?0:q.yp;q=q.mu===void 0?void 0:q.mu;Ax.call(this,e,k);var N=this;this.policy=m;this.logger=new g.dx("dash/request");this.qg=this.UN=0;this.Op=!1;this.OH=this.bU= +null;this.uT=!1;this.f1=this.FJ=null;this.gC=this.V8=!1;this.P8=null;this.yp=this.rO=0;this.SV=!1;this.timing=new cI(this,Z);this.v6=a;this.FJ=R;this.f1=h;this.b7=g.XI(this.info,this.policy,M);this.b7.set("rn",this.uS().toString());this.b7.set("rbuf",(v*1E3).toFixed().toString());this.v6&&this.b7.set("smb","1");this.policy.n6&&X&&this.b7.set("pot",X);l&&this.b7.set("bbs",l);this.policy.useUmp&&!fy(this.b7.WI)&&(this.V$=new IK(this),this.b7.set("ump","1"),this.b7.set("srfvp","1"));if(m=this.policy.O7? +this.policy.K3&&!isNaN(this.info.IY)&&this.info.IY>this.policy.jF?!1:!0:!1)e=null,this.policy.zq&&this.policy.wN?e=[1]:w&&(e=[]),e!=null&&(this.policy.BP&&e.push(2),this.b7.set("defsel",e.join(",")));this.nR=new Uk(this,this.policy,this.b7,this.info.i9,this.timing,this.logger,M,x);this.OA=S||null;this.AI=N1K(this);Ppk(this.nR);M=void 0;if(this.policy.Z7||this.V$||this.policy.yh)M={method:"POST"},S=(0,g.Jx)([120,0]),x={},this.policy.Yk&&q&&(q=Ok(void 0,q),x.tI=q),this.policy.Ak&&this.f1&&(x.videoPlaybackUstreamerConfig= +this.f1),this.policy.yh&&(q=this.info.Z)&&Object.assign(x,q),Object.keys(x).length>0?M.body=g.fc(x,g.eN):M.body=S;if(this.FJ&&this.f1){this.b7.set("iwts","1");M={method:"POST"};q={xr:this.FJ*1E3};var I;S=(I=this.info.Z)==null?void 0:I.jO;I=g.fc({A_:q,jO:S||void 0,videoPlaybackUstreamerConfig:this.f1},g.eN);M.body=I}try{this.xhr=oK(this.b7,this.policy.j,this.timing,m,M),this.nR.S.start(),K&&(this.yR=new g.eD(this.ZT,K,this),this.yR.start(K+(this.timing.Ge.N.gG()||0)*1E3)),this.policy.Td&&wx(this.timing, +this.Ya()),this.logger.debug(function(){return"Sent, itag="+N.b7.get("itag")+" seg="+N.info.qU[0].Wv+" range="+N.b7.get("range")+" time="+Math.round(N.info.qU[0].u7)+"-"+Math.round(g.i7(N.info.qU).bX)+" rtp="+(N.timing.Zw()-Date.now()).toFixed(0)}),g.LW(function(){})}catch(C){rnR(this,C,!0)}}; +N1K=function(m){if(!(g_(m.info)&&m.info.h6()&&m.policy.dG&&m.OA)||m.info.i9.U>=2||LR()>0||!AVK())return!1;var e=m.b7.get("aitags");if(!e)return!1;e=K3(e).split(",");for(var Z=[],M=g.r(m.OA),k=M.next();!k.done;k=M.next())k=k.value,g.Ti(e,k)&&Z.push(k);if(!Z.length)return!1;m.b7.set("altitags",ku(Z.join(",")));return!0}; +rnR=function(m,e,Z){Z=Z===void 0?!1:Z;g.DA(e);m.nR.lastError="player.exception";m.errorMessage=e.name+"_"+e.message;Z?g.LW(function(){Qb(m.nR)}):Qb(m.nR)}; +I2y=function(m,e){m.timing.K=!0;m.xhr.Sq()&&m.timing.J3();if(m.policy.qs){var Z;(Z=m.yR)==null||Z.stop()}Y_(m.Ye,e,!1)}; +Ans=function(m,e){m.info=e;if(m.Ye){var Z=m.Ye;e=e.qU;(e.length!==Z.qU.length||e.length0){e=g.r(e.qU);for(var Z=e.next();!Z.done;Z=e.next()){var M=void 0;m+=((M=Z.value.range)==null?void 0:M.length)||0}return m}if(e.sA.length>0)for(Z=g.r(e.sA),M=Z.next();!M.done;M=Z.next())m+=M.value.Pw||0;return m+e.Al}; +Mz=function(m,e){if(m7){var Z=0;m=m.NB.get(e);if(m==null||!m.X9)return 0;m=g.r(m.X9.values());for(e=m.next();!e.done;e=m.next())Z+=e.value.data.getLength();return Z}return((Z=m.NB.get(e))==null?void 0:Z.CE.getLength())||0}; +kj=function(m,e){m=m.NB.get(e);if(m7){if(m==null||!m.Wo)return!1;e=m.X9.size>0;return m.MR.length>0||e}return!(m==null||!m.Wo)&&!(m==null||!m.CE.getLength())}; +EEy=function(m,e){var Z=m.NB.get(e),M=B1G(m,e),k=!M&&!!Z.bytesReceived;if(m7){var K;if((K=m.CB)==null?0:K.gr){m=g.r(Z.X9.values());for(e=m.next();!e.done;e=m.next())if(!e.value.Ol)return!1;return k}}else if(K=m.RC(e),k&&m.X&&K!==void 0)return K;return(k||Z.bytesReceived===M)&&Z.Bx+Mz(m,e)===Z.bytesReceived}; +YZk=function(m,e,Z){m.NB.set(e,{CE:new zh,Bx:0,bytesReceived:0,Al:0,UL:!1,Ff:!1,RC:!1,F5:Z,yX:[],qU:[],sA:[],Wo:!1,X9:new Map,B6:new Map,MR:[]});m.logger.debug(function(){return"[initStream] formatId: "+e})}; +UrR=function(m,e,Z,M){Z.qU.push.apply(Z.qU,g.Rt(M));if(m7){Z.B6.has(e)||Z.B6.set(e,[]);var k;(k=Z.B6.get(e)).push.apply(k,g.Rt(M))}else if(Z.Ye)for(m=g.r(M),e=m.next();!e.done;e=m.next())Z.Ye.qU.push(e.value);else{Z.Ye=new Ek(m.Xl,[].concat(g.Rt(Z.qU)));var K;((K=m.Xl)==null?0:K.cX)&&g.U(m,Z.Ye)}}; +brm=function(m,e,Z){var M,k=(M=m.CB)==null?void 0:M.U.get(e);if(!k)return[];if(Z.Fr){var K;return((K=k.dQ(0,Z.clipId))==null?void 0:K.qU)||[]}if(k.PX()){var q=Z.startMs,S=Z.durationMs,a=1E3,v;if(((v=m.Xl)==null?0:v.X)&&Z.timeRange){var X;q=(X=Z.timeRange.MO)!=null?X:-1;var x;S=(x=Z.timeRange.Db)!=null?x:-1;var l;a=(l=Z.timeRange.AX)!=null?l:-1}if(Z.oS<0||Z.EB<0||S<0||q<0||Z.Pw<0||a<0)return Zs(m,e),[];m=o6(Z.oS,Z.Pw);e=Z.xf||0;return[new Bd(3,k,m,"makeSliceInfosMediaBytes",Z.EB-1,q/a,S/a,e,m.length- +e,void 0,Z.Zo,Z.clipId)]}if(Z.EB<0)return Zs(m,e),[];var R;return((R=m.CB)==null?0:R.gr)?(e=k.gN,v=e*k.info.JR,X=((q=m.Xl)==null?0:q.LJ)?Z.xf:void 0,((a=m.Xl)==null?0:a.u8)&&Z.timeRange&&!X&&(S=Z.timeRange.MO/Z.timeRange.AX),[new Bd(3,k,void 0,"makeSliceInfosMediaBytes",Z.EB,S,e,X,v,!0,Z.Zo,Z.clipId)]):[]}; +tYb=function(m,e,Z){m.CB=e;m.Xl=Z;e=g.r(m.NB);for(Z=e.next();!Z.done;Z=e.next()){var M=g.r(Z.value);Z=M.next().value;M=M.next().value;for(var k=g.r(M.yX),K=k.next();!K.done;K=k.next()){K=K.value;var q=brm(m,Z,K);UrR(m,K.Cf,M,q)}}}; +K9=function(m,e,Z,M){m.logger.debug(function(){return"[addStreamData] formatId: "+Z+",headerId: "+e+" bytes: "+M.getLength()}); +(m=m.NB.get(Z))&&!m.Ff&&(m7?(m.X9.has(e)||m.X9.set(e,{data:new zh,hv:0,Ol:!1}),Pz(m.X9.get(e).data,M)):Pz(m.CE,M),m.bytesReceived+=M.getLength(),m.UL=!0)}; +eX=function(m,e){m.logger.debug(function(){return"[closeStream] formatId: "+e}); +var Z=m.NB.get(e);Z&&!Z.Ff&&(Z.Ff=!0,Z.qm&&Z.qm(),QdI(m)&&m.Z.GP())}; +QdI=function(m){m=g.r(m.NB.values());for(var e=m.next();!e.done;e=m.next())if(!e.value.Ff)return!1;return!0}; +qz=function(m,e,Z,M,k,K,q,S){g.Y.call(this);this.policy=m;this.info=e;this.CB=Z;this.z$=k;this.gx=S;this.logger=new g.dx("sabr");this.V$=new IK(this);this.zo=new zL(this);this.yS=new PI(this);this.state=1;this.uN=!1;this.CZ=0;this.clipId="";this.zc=this.cI=-1;this.d3=0;this.kh=-1;this.SV=this.Of=!1;this.pK=0;this.policy.Po?this.Zm=new Vb(this,K):this.Zm=new cI(this,K);this.b7=this.policy.Bq?e.Tp:Hrs(e,this.policy,M);this.b7.set("rn",""+this.uS());this.b7.set("alr","yes");tYb(this.yS,Z,m);this.nR= +new Uk(this,this.policy,this.b7,e.i9,this.Zm,this.logger,M,q,this.policy.enableServerDrivenRequestCancellation);Ppk(this.nR);var a;if((a=this.policy)==null?0:a.cX)g.U(this,this.yS),g.U(this,this.nR);m=e.S;e={method:"POST",body:m};m&&(this.d3=m.length);try{this.xhr=oK(this.b7,this.policy.j,this.Zm,hX,e),this.policy.Td&&wx(this.Zm,this.Ya()),this.nR.S.start()}catch(v){g.LD(v)}}; +Dry=function(m,e){var Z=-1,M=-1,k=-1,K;if((K=m.sL)==null?0:K.items)for(m=g.r(m.sL.items),K=m.next();!K.done;K=m.next())K=K.value,e=S,a=m.CB.isManifestless&&m.policy.kW,q){var v; +if(((v=m.X)==null?void 0:v.A5.event)==="predictStart"&&m.X.Wvm.L&&(m.L=NaN,m.j=NaN);if(m.X&&m.X.Wv===e){M=m.X;K=M.A5;var q=k.VR(K);K.event==="predictStart"&&(m.AR=e);m.B("sdai",{onqevt:K.event,sq:e,mt:Z,gab:q,cst:K.startSecs});if(q)K.event!=="predictStart"?(K.event==="start"&&m.AR===e-1&&m.B("sdai",{gabonstart:e}),M.yV?g2(m,4,"cue"):(m.L=e,m.j=Z,m.B("sdai",{joinad:m.S,sg:m.L,st:m.j.toFixed(3)}),m.K=Date.now(), +g2(m,2,"join"),k.jQ(M.A5))):(m.policy.C?(m.U=Math.floor(Z-K.X/1E3),m.B("sdai",{onpred:Z,est:m.U})):(m.Z=e+Math.max(Math.ceil(-K.X/5E3),1),m.B("sdai",{onpred:e,est:m.Z})),m.K=Date.now(),g2(m,3,"predict"),k.jQ(M.A5));else if(m.S===1){var S;((S=m.C)==null?0:S.u0(Z))?(MBR(m.D,Z,Z,e),g2(m,4,"sk2had")):g2(m,5,"nogab")}else K.event==="predictStart"&&(m.policy.C&&m.U>0?(e=Math.floor(Z-K.X/1E3),m.U!==e&&m.B("sdai",{updateSt:e,old:m.U}),m.U=e):m.Z>0&&(e+=Math.max(Math.ceil(-K.X/5E3),1),m.Z!==e&&(m.B("sdai", +{updateSt:e,old:m.Z}),m.Z=e)))}else m.S===1&&g2(m,5,"noad")}; +K33=function(m,e,Z){if(m.S===1||m.S===2)return!1;if(m.S!==0&&e===m.audioTrack){if(m.policy.C)return kGK(m.videoTrack,Z)||kGK(m.videoTrack,Z+1);m=ii(m.videoTrack);if(Z>(m?m.Wv:-1))return!1}return!0}; +xj=function(m,e,Z){return(Z<0||Z===m.L)&&!isNaN(m.j)?m.j:e}; +mAI=function(m,e){if(m.X){var Z=m.X.A5.C1-(e.startTime+m.N-m.X.A5.startSecs);Z<=0||(Z=new g.yi(m.X.A5.startSecs-(isNaN(m.N)?0:m.N),Z,m.X.A5.context,m.X.A5.identifier,"stop",m.X.A5.X+e.duration*1E3),m.B("cuepointdiscontinuity",{segNum:e.Wv}),vW(m,Z,e.Wv))}}; +g2=function(m,e,Z){m.S!==e&&(m.B("sdai",{setsst:e,old:m.S,r:Z}),m.S=e)}; +li=function(m,e,Z,M){(M===void 0?0:M)?g2(m,1,"seek"):e>0&&Math.abs(e-Z)>=5&&m.S===4&&g2(m,5,"sk2t."+e.toFixed(2)+";ct."+Z.toFixed(2))}; +ui=function(m,e,Z){this.audio=m;this.video=e;this.reason=Z}; +RN=function(m,e,Z){this.X=m;this.reason=e;this.token=Z;this.videoId=void 0}; +hf=function(m,e,Z){g.Y.call(this);this.policy=m;this.Z=e;this.B=Z;this.U=new Map;this.L=0;this.C=!1;this.X="";this.S=!1}; +T6=function(m,e,Z){if(Z===void 0?0:Z)m.C=!0;++m.L;Z=6E4*Math.pow(2,m.L);Z=(0,g.G)()+Z;m.U.set(e.info.id,Z)}; +Fy=function(m){for(var e=g.r(m.U.entries()),Z=e.next();!Z.done;Z=e.next()){var M=g.r(Z.value);Z=M.next().value;M=M.next().value;M<(0,g.G)()&&m.U.delete(Z)}return m.U}; +qYI=function(m){return m.C&&Fy(m).size>0}; +w2=function(m,e){m.X!==e&&(m.X=e,m.S=!0)}; +pVm=function(m,e){var Z;e&&(Z=g.u7(m.Z.X,function(k){return k.id===e})); +if(!Z&&(Z=g.u7(m.Z.X,function(k){var K;return!((K=k.MB)==null||!K.isDefault)}),e)){var M; +m.B("iaf",{id:e,sid:(M=Z)==null?void 0:M.id})}return Z}; +n9=function(m,e,Z,M,k,K){var q=this;K=K===void 0?[]:K;this.D=m;this.S9=e;this.policy=Z;this.CB=M;this.C=k;this.ZN=K;this.logger=new g.dx("dash/abr");this.X=V5;this.S=this.j=null;this.K=-1;this.yh=!1;this.nextVideo=this.U=null;this.Z=[];this.kG=new Set;this.sE={};this.tR=new o3(1);this.N=0;this.Hv=this.AR=this.Y=!1;this.b9=0;this.nB=!1;this.Qh=new Set;this.wc=!1;this.L=new hf(this.policy,k,function(S,a){q.D.B(S,a)})}; +XVk=function(m,e,Z){cW(m,e);e=pVm(m.L,Z);Z||e||(e=SYR(m));e=e||m.C.X[0];m.U=m.CB.X[e.id];Nz(m);m.j=m.U;a9c(m);v57(m);m.S=m.nextVideo;m.j=m.U;return g5K(m)}; +l97=function(m,e){if(iYy(m,e))return null;if(e.reason==="m"&&e.isLocked())return m.logger.debug(function(){return"User sets constraint to: "+X2(e)}),cW(m,e),m.N=m.Z.length-1,Nz(m),r2(m),m.AR=m.AR||m.S!==m.nextVideo,m.S=m.nextVideo,new ui(m.U,m.S,e.reason); +e.reason==="r"&&(m.K=-1);cW(m,e);r2(m);if(e.reason==="r"&&m.nextVideo===m.S)return new ui(m.U,m.nextVideo,e.reason);xAb(m);return null}; +uA1=function(m,e,Z){m.U=m.CB.X[e];m.j=m.U;return new ui(m.j,m.S,Z?"t":"m")}; +RUb=function(m,e){if(e.info.video){if(m.S!==e)return m.S=e,g5K(m)}else m.Hv=m.j!==e,m.j=e;return null}; +hU7=function(m,e){if(e.X.info.video&&e.Z){var Z=(e.S+e.U)/e.duration,M=e.X.info.JR;Z&&M&&(m.tR.Ld(1,Z/M),m.policy.U&&Z/M>1.5&&m.D.B("overshoot",{sq:e.Wv,br:Z,max:M}))}}; +IN=function(m,e,Z){T6(m.L,e,Z===void 0?!1:Z);m.K=-1;cW(m,m.X)}; +Tjt=function(m,e){return new ui(m.j,m.S,e||m.X.reason)}; +xAb=function(m){if(m.S&&m.nextVideo&&Af(m,m.S.info)m.policy.JD,S=k<=m.policy.JD?DT(M):r6(M);if(!K||q||S)Z[k]=M}return Z}; +cW=function(m,e){m.X=e;var Z=m.C.videoInfos;if(!m.X.isLocked()){var M=(0,g.G)();Z=g.qG(Z,function(S){if(S.JR>this.policy.JR)return!1;var a=this.CB.X[S.id];return Fy(this.L).get(S.id)>M?!1:a.i9.U>4||a.L>4?(this.logger.debug(function(){return"Remove "+VB(S)+"; 4 load failures"}),!1):this.Qh.has(+S.itag)?!1:!0},m); +qYI(m.L)&&(Z=g.qG(Z,function(S){return S.video.width<=854&&S.video.height<=480}))}Z.length||(Z=m.C.videoInfos); +var k=Z;m.policy.Ht&&(k=F3K(m,k,e));k=g.qG(k,e.Z,e);if(m.X.isLocked()&&m.L.X){var K=g.u7(Z,function(S){return S.id===m.L.X}); +K?k=[K]:w2(m.L,"")}m.policy.Ht||(k=F3K(m,k,e));k.length||(k=[Z[0]]);k.sort(function(S,a){return Af(m,S)-Af(m,a)}); +e={};for(Z=1;Ze.Sl.video.width?(g.FR(k,Z),Z--):Af(m,e.JS)*m.policy.N>Af(m,e.Sl)&&(g.FR(k,Z-1),Z--);var q=k[k.length-1];m.nB=!!m.S&&!!m.S.info&&m.S.info.T$!==q.T$;m.logger.debug(function(){return"Constraint: "+X2(m.X)+", "+k.length+" fmts selectable, max selectable fmt: "+VB(q)}); +m.Z=k;m.kG.clear();e=!1;for(Z=0;Z=1080&&(e=!0);wVy(m.policy,q,m.CB.gr)}; +F3K=function(m,e,Z){var M=Z.reason==="m"||Z.reason==="s";m.policy.Ln&&C9&&g.PC&&(!M||Z.X<1080)&&(e=e.filter(function(v){return v.video&&(!v.S||v.S.powerEfficient)})); +if(e.length>0)if(uO()){var k=$A1(m,e);e=e.filter(function(v){return!!v&&!!v.video&&v.T$===k[v.video.X].T$})}else{var K,q,S=(K=e[0])==null?void 0:(q=K.video)==null?void 0:q.X; +if(S){Z=e.filter(function(v){return!!v&&!!v.video&&v.video.X===S}); +var a=$A1(m,Z)[S].T$;e=e.filter(function(v){return!!v&&!!v.video&&v.T$===a})}}return e}; +n5s=function(m,e){for(var Z=0;Z+1M}; +Nz=function(m){if(!m.U||!m.policy.Z&&!m.U.info.MB){var e=m.C.X;m.U&&(e=e.filter(function(M){return M.audio.X===m.U.info.audio.X}),e.length||(e=m.C.X)); +m.U=m.CB.X[e[0].id];if(e.length>1&&(!m.policy.vE||!m.policy.ZN)){var Z=!1;if(Z=m.policy.xa?!0:m.X.isLocked()?m.X.X<240:n5s(m,m.U))m.U=m.CB.X[g.i7(e).id]}}}; +r2=function(m){if(!m.nextVideo||!m.policy.Z)if(m.X.isLocked())m.nextVideo=m.X.X<=360?m.CB.X[m.Z[0].id]:m.CB.X[g.i7(m.Z).id],m.logger.debug(function(){return"Select max fmt: "+VB(m.nextVideo.info)}); +else{for(var e=Math.min(m.N,m.Z.length-1),Z=k_(m.S9),M=Af(m,m.U.info),k=Z/m.policy.Y-M;e>0&&!(Af(m,m.Z[e])<=k);e--);for(var K=Z/m.policy.N-M;e=K);e++);m.nextVideo=m.CB.X[m.Z[e].id];m.N!==e&&m.logger.info(function(){return"Adapt to: "+VB(m.nextVideo.info)+", bandwidth: "+Z.toFixed(0)+", bandwidth to downgrade: "+k.toFixed(0)+", bandwidth to upgrade: "+K.toFixed(0)+", constraint: "+X2(m.X)}); +m.N=e}}; +a9c=function(m){var e=m.policy.Y,Z=k_(m.S9),M=Z/e-Af(m,m.U.info);e=g.RO(m.Z,function(k){return Af(this,k)K?k=0:M[q]>m.buffered[q]&&(q===K-1?k=2:q===K-2&&M[q+1]>m.buffered[q+1]&&(k=3))}m.X.add(e<<3|(Z&&4)|k);e=Math.ceil(m.track.pF()*1E3);m.X.add(e-m.L);m.L=e;if(k===1)for(m.X.add(K),q=e=0;q=2&&m.X.add(M[K- +1]-m.buffered[K-1]);Z&&m.X.add(Z);m.buffered=M}; +d2=function(m,e,Z){this.policy=m;this.X=e;this.b9=Z;this.U=this.S=0;this.e0=null;this.Y=new Set;this.K=[];this.indexRange=this.initRange=null;this.N=new Gx;this.AR=this.S9=!1;a:{if(this.policy.aF&&this.policy.fA){Z=g.r(this.policy.aF);var M=Z.next();for(e={};!M.done;e={b0:void 0,HW:void 0},M=Z.next())if(M=g.D_(M.value),e.b0=+M.clen,e.HW=+M.csz,e.b0>0&&e.HW>0&&this.policy.Z===M.docid&&this.X.info.id===M.fmtid&&this.X.info.lastModified===+M.lmt){Z={};e=(Z.clen=e.b0,Z.csz=e.HW,Z.ck=M.ck,Z.civ=M.civ, +Z);break a}}e=void 0}e?(this.chunkSize=e.csz,this.Z=Math.floor(e.clen/e.csz),this.j=e.ck,this.C=e.civ):(this.chunkSize=m.zF,this.Z=0,this.j=g.Kf(16),this.C=g.Kf(16));this.L=new Uint8Array(this.chunkSize);this.j&&this.C&&(this.crypto=new Dck(this.j,this.C))}; +BW=function(m){return!!m.e0&&m.e0.SB()}; +f9b=function(m,e){if(!BW(m)&&!m.MU()){if(!(m.S9||(m.S9=!0,m.Z>0))){var Z=Ep(m);Z=sG(m.policy.Z,m.X.info,Yj(m),Z,m.policy.XG);Up(m,Z)}if(e.info.type===1){if(m.e0){bi(m,Error("Woffle: Expect INIT slices to always start us off"));return}m.initRange=o6(0,e.X.getLength())}else if(e.info.type===2)m.e0&&m.e0.type===1||bi(m,Error("Woffle: Index before init")),m.indexRange=o6(m.initRange.end+1,e.X.getLength());else if(e.info.type===3){if(!m.e0){bi(m,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(m.e0.type===3&&!U_(m.e0,e.info)&&(m.K=[],e.info.Wv!==bz(m.e0)||e.info.S!==0))return;if(e.info.Z){Z=g.r(m.K);for(var M=Z.next();!M.done;M=Z.next())ARm(m,M.value);m.K=[]}else{m.K.push(e);m.e0=e.info;return}}else{bi(m,Error("Woffle: Unexpected slice type"));return}m.e0=e.info;ARm(m,e);CEm(m)}}; +ARm=function(m,e){var Z=0,M=e.X.GM();if(m.U=M.length)return;if(Z<0)throw Error("Missing data");m.U=m.Z;m.S=0}for(k={};Z0){var q=M.getUint32(Z+28);K+=q*16+4}var S=M.getUint32(Z+K-4);try{var a=YYc(e.subarray(Z+K,Z+K+S));if(a!==null){var v=a;break a}}catch(X){}}Z+=k}v=null;break a}catch(X){v=null;break a}v=void 0}if(v!=null)for(e=WU(UD(v,7)),e==null||m.KJ||(m.cryptoPeriodIndex=e),e=WU(UD(v,10)),e!=null&&e>0&&!m.KJ&&(m.X=e),v=g.z2(v, +2,mf,void 0===xi?2:4),v=g.r(v),e=v.next();!e.done;e=v.next())m.U.push(g.HG(SV(e.value),4))}; +bYc=function(m){return isNaN(m.cryptoPeriodIndex)?g.HG(m.initData):""+m.cryptoPeriodIndex}; +HW=function(m,e,Z){var M=Z===void 0?{}:Z;Z=M.videoDuration===void 0?0:M.videoDuration;var k=M.rl===void 0?void 0:M.rl;M=M.YB===void 0?!1:M.YB;this.videoId=m;this.status=e;this.videoDuration=Z;this.rl=k;this.YB=M}; +tBc=function(m,e,Z){this.videoId=m;this.Uv=e;this.bytesDownloaded=Z}; +Ds=function(m){this.X=m;this.offset=0}; +L9=function(m){if(m.offset>=m.X.getLength())throw Error();return m.X.getUint8(m.offset++)}; +Qe7=function(m,e){e=e===void 0?!1:e;var Z=L9(m);if(Z===1){e=-1;for(Z=0;Z<7;Z++){var M=L9(m);e===-1&&M!==255&&(e=0);e>-1&&(e=e*256+M)}return e}M=128;for(var k=0;k<6&&M>Z;k++)Z=Z*256+L9(m),M*=128;return e?Z:Z-M}; +HYP=function(m){try{var e=Qe7(m,!0),Z=Qe7(m,!1);return{id:e,size:Z}}catch(M){return{id:-1,size:-1}}}; +DAk=function(m){for(var e=new Ds(m),Z=-1,M=0,k=0;!M||!k;){var K=HYP(e),q=K.id;K=K.size;if(q<0)return;if(q===176){if(K!==2)return;M=e.aW()}else if(q===186){if(K!==2)return;k=e.aW()}q===374648427?Z=e.aW()+K:q!==408125543&&q!==174&&q!==224&&e.skip(K)}e=MJ(m,0,Z);Z=new DataView(e.buffer);Z.setUint16(M,3840);Z.setUint16(k,2160);M=new zh([e]);Pz(M,m);return M}; +L3P=function(m,e,Z){var M=this;this.D=m;this.policy=e;this.C=Z;this.logger=new g.dx("dash");this.S=[];this.X=null;this.S9=-1;this.K=0;this.Qh=NaN;this.Y=0;this.U=NaN;this.N=this.yh=0;this.Hv=-1;this.sE=this.L=this.Z=this.b9=null;this.tR=this.kG=NaN;this.j=this.AR=this.nB=this.ZN=null;this.KB=!1;this.wc=this.timestampOffset=0;if(this.policy.Z){e=this.C;var k=this.policy.Z;this.policy.XG&&m.B("atv",{ap:this.policy.XG});this.j=new d2(this.policy,e,function(K,q){sp(m,new HW(M.policy.Z,2,{rl:new tBc(k, +K,q)}))}); +this.j.N.promise.then(function(K){M.j=null;K===1?sp(m,new HW(M.policy.Z,K)):M.D.B("offlineerr",{status:K.toString()})},function(K){var q=(K.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +K instanceof tf&&!K.X?(M.logger.info(function(){return"Assertion failed: "+q}),M.D.B("offlinenwerr",{em:q}),G6(M),sp(m,new HW(M.policy.Z,4))):(M.logger.info(function(){return"Failed to write to disk: "+q}),M.D.B("dldbwerr",{em:q}),G6(M),sp(m,new HW(M.policy.Z,4,{YB:!0})))})}}; +sek=function(m){return m.S.length?m.S[0]:null}; +GGP=function(m,e){return m.S.some(function(Z){return Z.info.Wv===e})}; +VBs=function(m,e,Z,M){M=M===void 0?0:M;if(m.L){var k=m.L.S+m.L.U;if(Z.info.S>0)if(Z.info.Wv===m.L.Wv&&Z.info.S=0&&m.L.Wv>=0&&!U_(m.L,Z.info))throw new g.Nr("improper_continuation",m.L.EZ(),Z.info.EZ());Lrk(m.L,Z.info)||yP(m,"d")}else if(Z.info.S>0)throw new g.Nr("continuation_of_null",Z.info.EZ());m.L=Z.info;m.C=Z.info.X;if(Z.info.S===0){if(m.X)if(!m.D.isOffline()||m.policy.dZ)m.D.B("slice_not_fully_processed",{buffered:m.X.info.EZ(), +push:Z.info.EZ()});else throw new g.Nr("slice_not_fully_processed",m.X.info.EZ(),Z.info.EZ());jX(m);m.yh=M}else{if(m.yh&&M&&m.yh!==M)throw m=new g.Nr("lmt_mismatch",Z.info.Wv,m.yh,M),m.level="WARNING",m;!Z.info.X.PX()&&m.Z&&(M=Z.info,k=m.Z.cI,M.L="updateWithEmsg",M.Wv=k)}if(m.X){M=nV(m.X,Z);if(!M)throw new g.Nr("failed_to_merge",m.X.info.EZ(),Z.info.EZ());m.X=M}else m.X=Z;a:{Z=g.cY(m.X.info.X.info);if(m.X.info.type!==3){if(!m.X.info.Z)break a;m.X.info.type===6?yRk(m,e,m.X):jeP(m,m.X);m.X=null}for(;m.X;){M= +m.X.X.getLength();if(m.S9<=0&&m.K===0){var K=m.X.X,q=-1;k=-1;if(Z){for(var S=0;S+80))break;if(x!==408125543)if(x===524531317)S=!0,X>=0&&(k=K.aW()+X,a=!0);else{if(S&&(x===160||x===163)&&(q<0&&(q=v),a))break;x===163&&(q=Math.max(0,q),k=K.aW()+X);if(x===160){q<0&&(k=q=K.aW()+X);break}K.skip(X)}}q<0&&(k=-1)}if(q< +0)break;m.S9=q;m.K=k-q}if(m.S9>M)break;m.S9?(M=OYs(m,m.S9),M.L&&JRk(m,M),yRk(m,e,M),Op(m,M),m.S9=0):m.K&&(M=OYs(m,m.K<0?Infinity:m.K),m.K-=M.X.getLength(),Op(m,M))}}m.X&&m.X.info.Z&&(Op(m,m.X),m.X=null)}; +jeP=function(m,e){!e.info.X.PX()&&e.info.S===0&&(g.cY(e.info.X.info)||e.info.X.info.KJ())&&lq1(e);if(e.info.type===1)try{JRk(m,e),W3y(m,e)}catch(k){g.DA(k);var Z=QG(e.info);Z.hms="1";m.D.handleError("fmt.unparseable",Z||{},1)}Z=e.info.X;Z.Nn(e);m.j&&f9b(m.j,e);if(Z.Dx()&&m.policy.X)a:{m=m.D.CB;e=e.info.clipId;Z=G$(Z.info,m.gr);if(e){var M=sab(m,Z);if(m.wc[M])break a;m.wc[M]=e}m.yh.push(Z)}}; +G6=function(m){var e;(e=m.j)==null||e.dispose();m.j=null}; +zUK=function(m){var e=m.S.reduce(function(Z,M){return Z+M.X.getLength()},0); +m.X&&(e+=m.X.X.getLength());return e}; +PE1=function(m){if(m.AR&&!m.policy.ws){var e=m.D;e.CB.isManifestless&&sj(e.CB,m.AR.Wv,!!m.C.info.video)}m.AR=null;m.Z=null;m.L=m.ZN;m.U=m.L?m.U-m.Y:NaN;jX(m)}; +OYs=function(m,e){var Z=m.X;e=Math.min(e,Z.X.getLength());if(e===Z.X.getLength())return m.X=null,Z;Z=vCI(Z,e);m.X=Z[1];return Z[0]}; +JRk=function(m,e){e.X.getLength();var Z=e.W0();if(HY(e.info.X.info)&&e.info.X.info.video.primaries==="bt2020"){var M=new pl(Z);Su(M,[408125543,374648427,174,224,21936,21937])&&(M=M.start+M.pos,Z.getUint8(M)===129&&Z.getUint8(M+1)===1&&Z.setUint8(M+1,9))}Z=e.info.X.info;r6(Z)&&!HY(Z)&&(Z=e.W0(),(new pl(Z)).Fr(),X8([408125543,374648427,174,224],21936,Z));e.info.X.info.wy();e.info.X.info.KJ()&&e.info.wy()&&(Z=e.W0(),(new pl(Z)).Fr(),X8([408125543,374648427,174,224],30320,Z)&&X8([408125543,374648427, +174,224],21432,Z));if(m.policy.FL&&e.info.X.info.KJ()){Z=e.W0();var k=new pl(Z);if(Su(k,[408125543,374648427,174,29637])){M=gq(k,!0);k=k.start+k.pos;for(var K=0;K=VP(q)+S):e=m.getDuration()>=q.getDuration(),e=!e;e&&mNc(Z)&&(e=m.b9,Jf?(S=ipc(Z),q=1/S,S=VP(m,S),e=VP(e)+q-S):e=e.getDuration()- +m.getDuration(),e=1+e/Z.info.duration,TBP(Z.W0(),e))}else{q=!1;m.Z||(lq1(Z),Z.S&&(m.Z=Z.S,q=!0,K=Z.info,M=Z.S.cI,K.L="updateWithEmsg",K.Wv=M,K=Z.S,K.SB&&(M=m.C.index,M.S=!K.SB,M.U="emsg"),K=Z.info.X.info,M=Z.W0(),g.cY(K)?Kl(M,1701671783):K.KJ()&&X8([408125543],307544935,M)));a:if((K=ID(Z,m.policy.Te))&&xns(Z))S=eI1(m,Z),m.N+=S,K-=S,m.Y+=K,m.U=m.policy.q_?m.U+K:NaN;else{if(m.policy.Nz){if(M=a=m.D.OB(NL(Z),1),m.U>=0&&Z.info.type!==6){if(m.policy.q_&&isNaN(m.kG)){g.LD(new g.Nr("Missing duration while processing previous chunk", +Z.info.EZ()));m.D.isOffline()&&!m.policy.dZ||ZKy(m,Z,M);yP(m,"m");break a}var v=a-m.U,X=v-m.N,x=Z.info.Wv,l=m.sE?m.sE.Wv:-1,R=m.tR,h=m.kG,w=m.policy.IG&&v>m.policy.IG,N=Math.abs(X)>10,I=Math.abs(m.U-M)<1E-7;if(Math.abs(X)>1E-4){m.wc+=1;var C=(k=m.Z)==null?void 0:JZ(k);k={audio:""+ +m.F5(),sq:x.toFixed(),sliceStart:a,lastSq:l.toFixed(),lastSliceStart:R,lastSliceDuration:h,totalDrift:(v*1E3).toFixed(),segDrift:(X*1E3).toFixed(),skipRewrite:""+ +(w||N)};if(C==null?0:C.length)k.adCpn=C[0];m.D.handleError("qoe.avsync", +k);m.Hv=x}w||N||I||(M=m.U);k=eI1(m,Z,a);K-=k;m.N=v+k;m.policy.U&&(X&&!I||k)&&(v=(S=m.Z)==null?void 0:JZ(S),m.D.B("discontinuityRewrite",{adCpn:(v==null?0:v.length)?v.join("."):"",itag:Z.info.X.info.itag,sq:Z.info.Wv,originalStartTime:a,rewrittenStartTime:M,startTimeAdjustment:M-a,segDrift:(X*1E3).toFixed(),originalDuration:K+k,rewrittenDuration:K,durationAdjustment:k}))}}else M=isNaN(m.U)?Z.info.startTime:m.U;ZKy(m,Z,M)&&(m.Y+=K,m.U=M+K,m.policy.mX&&m.wc>=m.policy.mX&&(m.wc=0,m.D.Fe({resetForRewrites:"count"})))}m.sE= +Z.info;m.kG=r_(Z);Z.U>=0&&(m.tR=Z.U);if(q&&m.Z){q=MHy(m,!0);Hd(Z.info,q);m.X&&Hd(m.X.info,q);e=g.r(e);for(S=e.next();!S.done;S=e.next())S=S.value,k=void 0,m.policy.L&&S.Wv!==((k=m.Z)==null?void 0:k.cI)||Hd(S,q);(Z.info.Z||m.X&&m.X.info.Z)&&Z.info.type!==6||(m.AR=q,m.policy.KB?(e=kry(m.Z),m.D.Xz(m.C,q,e)):(e=m.D,e.CB.isManifestless&&KbR(e,q,null,!!m.C.info.video)),m.policy.HV||qHk(m))}}W3y(m,Z);m.timestampOffset&&XNb(Z,m.timestampOffset)}; +Op=function(m,e){if(e.info.Z){m.ZN=e.info;if(m.Z){var Z=m.Z,M=MHy(m,!1);Z=kry(Z);m.D.Xz(m.C,M,Z);m.AR||m.policy.HV||qHk(m);m.AR=null}jX(m)}m.j&&f9b(m.j,e);if(M=m.MZ())if(M=nV(M,e,m.policy.NZ)){m.S.pop();m.S.push(M);return}m.S.push(e)}; +kry=function(m){if(m.yV()){var e=m.data["Stitched-Video-Id"]?m.data["Stitched-Video-Id"].split(",").slice(0,-1):[],Z=JZ(m),M=[];if(m.data["Stitched-Video-Duration-Us"])for(var k=g.r(m.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),K=k.next();!K.done;K=k.next())M.push((Number(K.value)||0)/1E6);k=[];if(m.data["Stitched-Video-Start-Frame-Index"]){K=g.r(m.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var q=K.next();!q.done;q=K.next())k.push(Number(q.value)||0)}k=[]; +if(m.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(K=g.r(m.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),q=K.next();!q.done;q=K.next())k.push((Number(q.value)||0)/1E6);m=new E53(e,Z,M,k,g.u$c(m),g.REb(m))}else m=null;return m}; +jX=function(m){m.X=null;m.S9=-1;m.K=0;m.Z=null;m.Qh=NaN;m.Y=0;m.AR=null}; +yP=function(m,e){e={rst4disc:e,cd:m.N.toFixed(3),sq:m.sE?m.sE.Wv:-1};m.U=NaN;m.N=0;m.Hv=-1;m.sE=null;m.tR=NaN;m.kG=NaN;m.nB=null;m.D.B("mdstm",e)}; +W3y=function(m,e){if(m.C.info.wV){if(e.info.X.info.KJ()){var Z=new pl(e.W0());if(Su(Z,[408125543,374648427,174,28032,25152,20533,18402])){var M=gq(Z,!0);Z=M!==16?null:r3y(Z,M)}else Z=null;M="webm"}else e.info.j=dAK(e.W0()),Z=Bj3(e.info.j),M="cenc";Z&&Z.length&&(Z=new QP(Z,M),m.policy.Fx&&g.cY(e.info.X.info)&&(M=c3K(e.W0()))&&(Z.S=M),Z.KJ=e.info.X.info.KJ(),e.S&&e.S.cryptoPeriodIndex&&(Z.cryptoPeriodIndex=e.S.cryptoPeriodIndex),e.S&&e.S.S&&(Z.X=e.S.S),m.D.eV(Z))}}; +qHk=function(m){var e=m.Z,Z=xbs(e);Z&&(Z.startSecs+=m.Qh,m.D.Gl(m.C,Z,e.cI,e.yV()))}; +MHy=function(m,e){var Z,M=m.Z;if(Z=xbs(M))Z.startSecs+=m.Qh;return new Eu(M.cI,m.Qh,e?M.gN:m.Y,M.ingestionTime,"sq/"+M.cI,void 0,void 0,e,Z)}; +ZKy=function(m,e,Z){if(!gCb(e,Z))return e=QG(e.info),e.smst="1",m.D.handleError("fmt.unparseable",e||{},1),!1;isNaN(m.Qh)&&(m.Qh=Z);return!0}; +eI1=function(m,e,Z){var M=0;if(e.info.X.info.KJ()&&!xns(e))return 0;if(m.b9&&!m.F5()){var k=0;Z&&g.cY(e.info.X.info)?k=Z-m.U:e.info.X.info.KJ()&&(k=m.N);var K=e.info.Wv;Z=ID(e,m.policy.Te);var q=m.b9;var S=q.Hv;q=q.N;var a=Math.abs(q-k)>.02;if((K===S||K>S&&K>m.Hv)&&a){M=Math.max(.95,Math.min(1.05,(Z-(q-k))/Z));if(g.cY(e.info.X.info))TBP(e.W0(),M);else if(e.info.X.info.KJ()&&(K=k-q,!g.cY(e.info.X.info)&&(e.info.X.info.KJ(),M=new pl(e.W0()),S=e.L?M:new pl(new DataView(e.info.X.X.buffer)),ID(e,!0)))){var v= +K*1E3,X=uz(S);S=M.pos;M.pos=0;if(M.X.getUint8(M.pos)===160||R6(M))if(vd(M,160))if(gq(M,!0),vd(M,155)){if(K=M.pos,a=gq(M,!0),M.pos=K,v=v*1E9/X,X=xD(M),v=X+Math.max(-X*.7,Math.min(X,v)),v=Math.sign(v)*Math.floor(Math.abs(v)),!(Math.ceil(Math.log(v)/Math.log(2)/8)>a)){M.pos=K+1;for(K=a-1;K>=0;K--)M.X.setUint8(M.pos+K,v&255),v>>>=8;M.pos=S}}else M.pos=S;else M.pos=S;else M.pos=S}M=ID(e,m.policy.Te);M=Z-M}M&&e.info.X.info.KJ()&&m.D.B("webmDurationAdjustment",{durationAdjustment:M,videoDrift:k+M,audioDrift:q})}return M}; +mNc=function(m){return m.info.X.PX()&&m.info.Wv===m.info.X.index.ze()}; +VP=function(m,e){e=(e=e===void 0?0:e)?Math.round(m.timestampOffset*e)/e:m.timestampOffset;m.C.U&&e&&(e+=m.C.U.X);return e+m.getDuration()}; +pam=function(m,e){e<0||(m.S.forEach(function(Z){XNb(Z,e)}),m.timestampOffset=e)}; +vI=function(m,e,Z,M,k){Ax.call(this,Z,k);var K=this;this.policy=m;this.formatId=e;this.yS=M;this.lastError=null;this.qm=function(){K.MU()||(K.yS.NB.has(K.formatId)?(K.isComplete()||K.X.start(),kj(K.yS,K.formatId)&&K.K2(2),K.yS.Ff(K.formatId)&&(EEy(K.yS,K.formatId)?K.sx(4):(K.lastError="net.closed",K.sx(5)))):(K.lastError="player.exception",K.sx(5)))}; +this.X=new g.eD(function(){K.isComplete()||(K.lastError="net.timeout",K.sx(5))},this.policy.jE); +this.X.start();oEb(this.yS,this.formatId,this.qm);g.LW(this.qm)}; +WW=function(m,e,Z,M){g.Y.call(this);var k=this;this.D=m;this.policy=e;this.X=Z;this.timing=M;this.logger=new g.dx("dash");this.U=[];this.S9=[];this.S=this.Pq=null;this.yh=!1;this.wc=this.kG=0;this.C=-1;this.AR=!1;this.Qh=-1;this.b9=this.sE=null;this.Y=NaN;this.Z=new L3P(m,e,Z);this.policy.X&&(this.N=new uJc(this.Z,this.D.CB,this.policy,function(K){k.policy.Aj&&k.B("buftl",K)})); +this.policy.CR&&(this.K=new f9(this));this.JR=Z.info.JR;this.j=this.policy.S9?!1:Z.cZ();this.isManifestless=Z.cZ();this.L=this.j;g.U(this,this.sE)}; +z6=function(m,e,Z){Z=Z===void 0?!1:Z;e&&Jf&&pam(m.Z,e.kB());if(!Z){var M;(M=m.N)==null||Sl(M)}m.Pq=e;(e=m.N)!=null&&(e.Pq=m.Pq)}; +PW=function(m){var e=m.Pq&&m.Pq.Lq();if(m.policy.Ow){if((m=m.N)==null)m=void 0;else{var Z;m=(Z=m.U)==null?void 0:Z.info}return m||null}return e}; +SH7=function(m){for(var e={},Z=0;Z4&&m.S9.shift()}; +ao3=function(m,e){if(e.MV()){var Z=e.eM();Z=g.r(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,m.policy.U&&e instanceof vI&&m.B("omblss",{s:M.info.EZ()}),er(m,e.info.qU,M,e.H9())}}; +er=function(m,e,Z,M){M=M===void 0?0:M;isNaN(m.Y)||(m.B("aswm",{sq:e[0].Wv,id:e[0].X.info.itag,xtag:e[0].X.info.X,ep:Date.now()-m.Y}),m.Y=NaN);switch(Z.info.type){case 1:case 2:vUk(m,Z);break;case 4:var k=Z.info.X,K=k.ip(Z),q;((q=m.S)==null?0:q.type===4)&&OHR(Z.info,m.S)&&(m.S=k.Ew(m.S).pop());Z=g.r(K);for(k=Z.next();!k.done;k=Z.next())er(m,e,k.value,M);break;case 3:Z.info.X.info.video?(k=m.timing,k.b9||(k.b9=(0,g.G)(),p9("fvb_r",k.b9,k.X))):(k=m.timing,k.C||(k.C=(0,g.G)(),p9("fab_r",k.C,k.X)));VBs(m.Z, +e,Z,M);m.policy.X&&gUc(m);break;case 6:VBs(m.Z,e,Z,M),m.S=Z.info}}; +vUk=function(m,e){if(e.info.type===1)if(e.info.X.info.video){var Z=m.timing;Z.sE||(Z.sE=(0,g.G)(),p9("vis_r",Z.sE,Z.X))}else Z=m.timing,Z.N||(Z.N=(0,g.G)(),p9("ais_r",Z.N,Z.X));jeP(m.Z,e);m=m.D;m.videoTrack.X.Dx()&&m.audioTrack.X.Dx()&&m.policy.X&&!m.CB.gr&&(e=m.audioTrack.getDuration(),Z=m.videoTrack.getDuration(),Math.abs(e-Z)>1&&m.B("trBug",{af:""+G$(m.audioTrack.X.info,!1),vf:""+G$(m.videoTrack.X.info,!1),a:""+e,v:""+Z}))}; +TL=function(m){return sek(m.Z)}; +gUc=function(m){m.U.length?m.S=g.i7(g.i7(m.U).info.qU):m.Z.S.length?m.S=m.Z.MZ().info:m.S=PW(m)}; +Za=function(m,e){var Z={qB:[],WE:[]},M;if((m=m.N)==null)m=void 0;else{cSG(m,m.qB,"og");FEy(m,e);cSG(m,m.qB,"trim");var k=ndm(m);e=k.qB;k=k.Uw;for(var K=[],q=0;q0){var l=p8(x,a);l>=0&&(X=(x.end(l)-a+.1)*1E3)}K.push({formatId:G$(S.info.X.info,m.CB.gr),Zo:S.info.Zo, +sequenceNumber:S.info.Wv+m.Z,T4:v,u2:S.info.U,RK:X})}m={qB:e,WE:K}}return(M=m)!=null?M:Z}; +i5=function(m,e,Z){Z=Z===void 0?!1:Z;if(m.Pq){var M=m.Pq.v0(),k=aX(M,e),K=NaN,q=PW(m);q&&(K=aX(M,q.X.index.getStartTime(q.Wv)));if(k===K&&m.S&&m.S.U&&XaI(MS(m),0))return e}m=iK3(m,e,Z);return m>=0?m:NaN}; +l5=function(m,e,Z){m.X.Dx();var M=iK3(m,e);if(M>=0)return M;var k;(k=m.N)==null||wlm(k,e,Z);Z=Math;M=Z.min;k=m.Z;if(k.j)if(k=k.j,k.e0&&k.e0.type===3)k=k.e0.startTime;else if(k.Z>0){var K=k.X.index;K=g.fq(K.offsets.subarray(0,K.count),k.Z*k.chunkSize);k=k.X.index.getStartTime(K>=0?K:Math.max(0,-K-2))}else k=0;else k=Infinity;e=M.call(Z,e,k);if(m.policy.S){var q,S;Z=(q=m.D.qP())==null?void 0:(S=pS(q,e))==null?void 0:S.clipId;m.S=m.X.Ih(e,void 0,Z).qU[0]}else m.S=m.policy.S9?null:m.X.Ih(e).qU[0];kW(m)&& +m.Pq&&m.Pq.abort();m.wc=0;return m.S?m.S.startTime:e}; +rSK=function(m){m.j=!0;m.L=!0;m.C=-1;l5(m,Infinity)}; +Kt=function(m){for(var e=0,Z=g.r(m.U),M=Z.next();!M.done;M=Z.next())e+=Vn7(M.value.info);return e+=zUK(m.Z)}; +pt=function(m,e){e=e===void 0?!1:e;var Z=m.D.getCurrentTime(),M=m.Z.MZ(),k=(M==null?void 0:M.info.bX)||0;m.policy.Kf&&(M==null?0:M.info.X.cZ())&&!M.info.Z&&(k=M.info.u7);if(m.policy.S&&M&&M.info.clipId){var K,q=(((K=m.D.qP())==null?void 0:q5(K,M.info.clipId))||0)/1E3;k+=q}if(!m.Pq)return m.policy.X&&e&&!isNaN(Z)&&M?k-Z:0;if((K=PW(m))&&qS(m,K))return K.bX;q=m.Pq.v0(!0);if(e&&M)return K=0,m.policy.X&&(K=gy(q,k+.02)),K+k-Z;k=gy(q,Z);m.policy.ye&&K&&(e=p8(q,Z),q=p8(q,K.u7-.02),e===q&&(Z=K.bX-Z,m.policy.U&& +Z>k+.02&&m.B("abh",{bh:k,bhtls:Z}),k=Math.max(k,Z)));return k}; +xN1=function(m,e){if(m.U.length){if(m.U[0].info.qU[0].startTime<=e)return;Xk(m)}for(var Z=m.Z,M=Z.S.length-1;M>=0;M--)Z.S[M].info.startTime>e&&Z.S.pop();gUc(m);m.S&&e=0;q--){var S=k.S[q];S.info.Wv>=e&&(k.S.pop(),k.U-=ID(S,k.policy.Te),K=S.info)}K&&(k.L=k.S.length>0?k.S[k.S.length-1].info:k.nB,k.S.length!==0||k.L||yP(k,"r"));k.D.B("mdstm",{rollbk:1,itag:K?K.X.info.itag:"",popped:K?K.Wv:-1,sq:e,lastslc:k.L?k.L.Wv:-1,lastfraget:k.U.toFixed(3)});m.policy.X?m.S=null:M>Z?l5(m,M):m.S=m.X.sb(e-1,!1).qU[0]}; +vg=function(m,e){var Z;for(Z=0;Z0?Z||e.Wv>=m.Qh:Z}; +XC=function(m){var e;return kW(m)||qS(m,(e=m.Z.MZ())==null?void 0:e.info)}; +MS=function(m){var e=[],Z=PW(m);Z&&e.push(Z);e=g.nq(e,m.Z.jJ());Z=g.r(m.U);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;for(var k=g.r(M.info.qU),K=k.next(),q={};!K.done;q={W6:void 0},K=k.next())q.W6=K.value,M.zn&&(e=g.qG(e,function(S){return function(a){return!OHR(a,S.W6)}}(q))),(YD(q.W6)||q.W6.type===4)&&e.push(q.W6)}m.S&&!HHK(m.S,g.i7(e),m.S.X.PX())&&e.push(m.S); +return e}; +XaI=function(m,e){if(!m.length)return!1;for(e+=1;e=e){e=K;break a}}e=k}return e<0?NaN:XaI(m,Z?e:0)?m[e].startTime:NaN}; +iH=function(m){return!(!m.S||m.S.X===m.X)}; +upG=function(m){return iH(m)&&m.X.Dx()&&m.S.X.info.JRe&&M.bX1080&&!m.oG&&(m.wc=36700160,m.mw=5242880,m.kG=Math.max(4194304,m.kG),m.oG=!0);e.video.X>2160&&!m.po&&(m.wc=104857600,m.JR=13107200,m.po=!0);g.Y4(m.Xq.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?e.isEncrypted()&&g.ti()&&Yl("samsung")&&(Yl("kant")||Yl("muse"))&&(m.JR=g.Y4(m.Xq.experiments,"html5_samsung_kant_limit_max_bitrate")):e.isEncrypted()&&g.ti()&&Yl("kant")&&(m.JR=1310720);m.QM!==0&&e.isEncrypted()&&(m.JR=m.QM);m.FK!==0&&e.isEncrypted()&& +Z&&(m.JR=m.FK);e.JR&&(m.zd=Math.max(m.Do,Math.min(m.kG,5*e.JR)))}; +T_=function(m){return m.X&&m.AT&&m.playbackStartPolicy}; +$W=function(m){return m.S||m.X&&m.NP}; +FC=function(m,e,Z,M){m.AT&&(m.playbackStartPolicy=e,m.eE=Z,m.wd=M)}; +R9=function(m,e,Z){Z=Z===void 0?0:Z;return g.Y4(m.Xq.experiments,e)||Z}; +CIy=function(m){var e=m===void 0?{}:m;m=e.wN;var Z=e.qF;var M=e.h5;var k=e.ze;e=e.Vk;this.wN=m;this.qF=Z;this.h5=M;this.ze=k;this.Vk=e}; +bAt=function(m,e){if(e<0)return!0;var Z=m.ze();return e0)return 2;if(e<0)return 1;Z=m.ze();return e(0,g.G)()?0:1}; +nt=function(m,e,Z,M,k,K,q,S,a,v,X,x,l,R){R=R===void 0?null:R;g.Y.call(this);this.D=m;this.policy=e;this.videoTrack=Z;this.audioTrack=M;this.Z=k;this.X=K;this.timing=q;this.L=S;this.schedule=a;this.CB=v;this.U=X;this.Y=x;this.Ph=l;this.f1=R;this.AR=!1;this.hh="";this.lS=null;this.IY=NaN;this.S9=!1;this.S=null;this.FJ=this.K=NaN;this.yp=this.C=0;this.logger=new g.dx("dash");this.policy.Gd>0&&(this.hh=g.Kf(this.policy.Gd));this.policy.YH&&(this.N=new ws(this.D,this.policy,this.schedule),g.U(this,this.N))}; +EUI=function(m,e,Z){var M=e.S?e.S.X.i9:e.X.i9;var k=m.Z,K;(K=!m.policy.cP)||(K=Cy(M.X)===Cy(M.S));K?M=!1:(k=F8(k,Cy(M.S)),K=6E4*Math.pow(k.Z,1.6),(0,g.G)()=k.Z?(k.B("sdai",{haltrq:K+1,est:k.Z}),M=!1):M=k.S!==2;if(!M||!rq(e.S?e.S.X.i9:e.X.i9,m.policy,m.Z,m.D.vn())||m.D.isSuspended&&(!Le(m.schedule)||m.D.E1))return!1;if(m.policy.Z&&Lm>=5)return g.ZZ(m.D.mz),!1;if(m.CB.isManifestless){if(e.U.length>0&&e.S&&e.S.Wv===-1||e.U.length>=m.policy.ZD||!m.policy.EV&&e.U.length>0&&!m.policy.j.qF)return!1;if(e.j)return!m.CB.isLive||!isNaN(m.IY)}if(FbK(e))return m.logger.debug("Pending request with server-selectable format found"), +!1;if(!e.S){if(!e.X.Dx())return!1;l5(e,m.D.getCurrentTime())}if(TL(e)&&(e.MZ()!==TL(e)||m.D.isSuspended))return!1;k=(M=m.policy.Ir)&&!e.U.length&&pt(e,!0)=m.policy.jq)return!1;M=e.S;if(!M)return!0;M.type===4&&M.X.Dx()&&(e.S=g.i7(M.X.Ew(M)),M=e.S);if(!M.SB()&&!M.X.MY(M))return!1;K=m.CB.QH||m.CB.Z;if(m.CB.isManifestless&&K){K=e.X.index.ze();var q=Z.X.index.ze(); +K=Math.min(K,q);if(e.X.index.KP()>0&&K>0&&M.Wv>=K)return e.Qh=K,Z.Qh=K,!1}if(M.X.info.audio&&M.type===4||M.SB())return!1;K=!e.L&&!Z.L;if(k=!k)k=M.bX,k=!!(Z.S&&!qS(Z,Z.S)&&Z.S.bXYH7(m,e)?(YH7(m,e),!1):(m=e.Pq)&&m.isLocked()?!1:!0}; +UNK=function(m,e,Z){if(!iH(e)||!e.X.Dx())return!1;var M=m.U.wc||upG(e)||Z<=m.policy.M7||m.U.Y;m.logger.debug(function(){return"ready to adapt: "+M+", upgrade pending: "+upG(e)+", health: "+Z}); +return M}; +YH7=function(m,e){var Z=m.X;Z=Z.X?Z.X.A5:null;if(m.policy.Qh&&Z)return Z.startSecs+Z.C1+15;e=x_(m.D,e);m.policy.wr>0&&(Z=((0,g.G)()-m.D.eW)/1E3,e=Math.min(e,m.policy.wr+m.policy.PS*Z));Z=m.D.getCurrentTime()+e;return m.policy.Hr&&(e=bKy(m.D)+m.policy.Hr,e=0||e.i9.S.get("defrag")==="1"||e.i9.S.get("otf")==="1"){e=null;break a}k=o6(0,4096)}k=new DL([new Bd(5,M.X,k,"createProbeRequestInfo"+M.L,M.Wv)],e.S);k.L0=Z;k.X=e.X;e=k}e&&NS(m,e)}}; +NS=function(m,e){m.D.qp(e);var Z=Vn7(e),M=m.D.Uj();Z={Ge:m.schedule,fU:Z,D9:iAR(m.L,Z),h6:E_(e.qU[0]),mZ:fy(e.i9.X),G4:m.policy.U,xD:function(q,S){m.D.rX(q,S)}}; +if(m.schedule.Z.L){var k,K;Z.AE=(((k=m.videoTrack.X)==null?void 0:k.info.JR)||0)+(((K=m.audioTrack.X)==null?void 0:K.info.JR)||0)}m.lS&&(Z.Wv=e.qU[0].Wv,Z.IY=e.IY,Z.lS=m.lS);M={ZA:WrK(e,m.D.getCurrentTime()),OA:m.policy.dG&&g_(e)&&e.qU[0].X.info.video?Nj1(m.U):void 0,v6:m.policy.Qh,poToken:m.D.a$(),GH:m.D.ge(),hh:m.hh,FJ:isNaN(m.FJ)?null:m.FJ,f1:m.f1,Ph:m.Ph,yp:m.yp,mu:M};return new gx(m.policy,e,Z,m.Z,function(q,S){try{a:{var a=q.info.qU[0].X,v=a.info.video?m.videoTrack:m.audioTrack;if(!(q.state>= +2)||q.isComplete()||q.Cb()||!(!m.D.j9||m.D.isSuspended||pt(v)>3)){var X=dNK(q,m.policy,m.Z);X===1&&(m.S9=!0);tHK(m,q,X);if(q.isComplete()||q.MU()&&S<3){if(m.policy.U){var x=q.timing.Xw();x.rst=q.state;x.strm=q.xhr.Sq();x.cncl=q.xhr&&q.nR.Z?1:0;m.D.B("rqs",x)}q.Op&&m.D.B("sbwe3",{},!0)}if(!m.MU()&&q.state>=2){zfb(m.timing,q,a);var l=m.D;m.FJ&&q.P8&&l&&(m.FJ=NaN,m.D.qC(q.P8),m.D.GI(),m.D.B("cabrUtcSeek",{mediaTimeSeconds:q.P8}));q.Bf&&(q.rO>0&&m.D.B("sError",{errorHttpResponseCode:q.rO.toString()}), +m.FJ&&q.Bf&&!q.Bf.action&&(m.D.F6(m.FJ),m.FJ=NaN,m.D.B("cabrUtcSeekFallback",{targetUtcTimeSeconds:m.FJ})));q.uU&&m.D.qr(q.uU);m.policy.qs&&(m.yp=q.yp);if(q.state===3){vg(v,q);g_(q.info)&&rs(m,v,a,!0);if(m.S){var R=q.info.Xi();R&&m.S.KV(q.info.qU[0].Wv,a.info.id,R)}m.D.TK()}else if(q.isComplete()&&q.info.qU[0].type===5){if(q.state!==4)q.rZ()&&m.D.handleError(q.G3(),q.mM());else{var h=(q.info.qU[0].X.info.video?m.videoTrack:m.audioTrack).U[0]||null;h&&h instanceof gx&&h.Cb()&&h.Wr(!0)}q.dispose()}else{q.rZ()|| +Q5c(m,q);var w;((w=q.n2)==null?0:w.itagDenylist)&&m.D.Oq(q.n2.itagDenylist);if(q.state===4)I9(m,q),m.X&&ZYt(m.X,q.info,m.S);else if(m.policy.O7&&q.MV()&&!q.isComplete()&&!I9(m,q)&&!q.rZ())break a;q.rZ()&&(HKb(m,q),isNaN(m.FJ)||(m.D.F6(m.FJ),m.FJ=NaN));m.policy.tf&&!q.isComplete()?AI(m.D):m.D.TK();var N=BF1(q,m.policy,m.Z);tHK(m,q,N)}}}}}catch(I){S=m.AR?1:0,m.AR=!0,q=Q6(S),S=Hi(I,S),m.D.handleError(S.errorCode,S.details,S.severity),q||m.D.tD()}},M)}; +Q5c=function(m,e){if(e.AI&&e.state>=2&&e.state!==3){var Z=e.xhr.getResponseHeader("X-Response-Itag");if(Z){m.logger.debug(function(){return"Applying streamer-selected format "+Z}); +var M=cRK(m.U,Z),k=e.info.U;k&&(k-=M.w0(),M.S=!0,e.info.qU[0].X.S=!1,Ans(e,M.dQ(k)),Ct(m.D,m.videoTrack,M),waI(m.videoTrack,M),m.D.nH(M.info.video.quality),(k=e.H9())&&M.info.lastModified&&M.info.lastModified!==+k&&vg(m.videoTrack,e))}else e.AI=!1}}; +HKb=function(m,e){var Z=e.info.qU[0].X,M=e.G3();if(fy(Z.i9.X)){var k=g.Dp(e.H_());m.D.B("dldbrerr",{em:k||"none"})}k=e.info.qU[0].Wv;var K=xj(m.X,e.info.qU[0].u7,k);M==="net.badstatus"&&(m.C+=1);if(e.canRetry()&&ft(m.D)){if(!(e.info.i9.U>=m.policy.qX&&m.S&&e.info.isDecorated()&&M==="net.badstatus"&&m.S.zk(K,k))){k=(Z.info.video&&Z.i9.U>1||e.UN===410||e.UN===500||e.UN===503)&&!(Fy(m.U.L).size>0)&&!fy(Z.i9.X);K=e.mM();var q=Z.info.video?m.videoTrack:m.audioTrack;k&&(K.stun="1");m.D.handleError(M,K); +m.MU()||(k&&(m.logger.debug(function(){return"Stunning format "+Z.info.id}),IN(m.U,Z)),vg(q,e),m.D.TK())}}else q=1,m.S&&e.info.isDecorated()&&M==="net.badstatus"&&m.S.zk(K,k)&&(q=0),m.CB.isLive&&e.G3()==="net.badstatus"&&m.C<=m.policy.Q$*2?(S63(m.CB),m.CB.QH||m.CB.isPremiere?hx(m.D,0,{DN:"badStatusWorkaround"}):m.CB.Z?hx(m.D,m.CB.b9,{DN:"badStatusWorkaround", +OB:!0}):o9(m.D)):m.D.handleError(M,e.mM(),q)}; +I9=function(m,e){if(m.policy.useUmp&&e.MU())return!1;try{var Z=e.info.qU[0].X,M=Z.info.video?m.videoTrack:m.audioTrack;if(m.CB.isManifestless&&M){m.C=0;M.j&&(e.MU(),e.isComplete()||e.MV(),M.j=!1);e.Mn()&&m.D.yB.Ld(1,e.Mn());var k=e.KP(),K=e.bT();Gu(m.CB,k,K)}if(e.info.h6()&&!pV(e.info))for(var q=g.r(e.eM()),S=q.next();!S.done;S=q.next())vUk(M,S.value);for(m.D.getCurrentTime();M.U.length&&M.U[0].state===4;){var a=M.U.shift();ao3(M,a);M.kG=a.ZP()}M.U.length&&ao3(M,M.U[0]);var v=!!TL(M);v&&e instanceof +vI&&(Z.info.F5()?Gs3(m.timing):sdb(m.timing));return v}catch(X){e=e.mM();e.origin="hrhs";a:{m=m.D;Z=X;if(Z instanceof Error){e.msg||(e.msg=""+Z.message);e.name||(e.name=""+Z.name);if(Z instanceof g.Nr&&Z.args)for(M=g.r(Object.entries(Z.args)),k=M.next();!k.done;k=M.next())K=g.r(k.value),k=K.next().value,K=K.next().value,e["arg"+k]=""+K;g.LD(Z);if(Z.level==="WARNING"){m.G.Fe(e);break a}}m.handleError("fmt.unplayable",e,1)}return!1}}; +DNk=function(m){var e=m.videoTrack.X.index;m.lS=new CIy({wN:m.policy.wN,qF:m.policy.j.qF,h5:e.Cq(),ze:function(){return e.ze()}, +Vk:function(){return e.Vk()}})}; +rs=function(m,e,Z,M){if(!(Z.Dx()||Z.BZ()||Z.S||!rq(Z.i9,m.policy,m.Z)||Z.info.T$==="f"||m.policy.X)){if(M){M=m.L;var k=Z.info;M=xcK(M,k.video?M.policy.Zp:M.policy.Ta,k.JR)}else M=0;M=Z.dQ(M);m=NS(m,M);pV(M)&&mw(e,m);Z.S=!0}}; +ds=function(m,e,Z,M,k,K,q,S){g.Y.call(this);var a=this;this.D=m;this.Xl=e;this.videoTrack=Z;this.audioTrack=M;this.CB=k;this.K=K;this.isAudioOnly=q;this.j=S;this.S=V5;this.S9=!1;this.logger=new g.dx("sabr");this.N=this.AR=this.Y=!1;this.videoInfos=this.L=this.K.videoInfos;this.U=this.b9=this.K.X;this.X=new hf(e,K,function(v,X){a.D.B(v,X)}); +this.Xl.BX||LbR(this);this.isAudioOnly&&s53(this,this.CB.X["0"])}; +Grk=function(m,e){var Z=[];e=g.r(e);for(var M=e.next();!M.done;M=e.next())Z.push(G$(M.value,m.CB.gr));return Z}; +s53=function(m,e,Z){e!==m.Z&&(m.Z&&(m.S9=!0),m.Z=e,m.Kl(e,m.videoTrack,Z))}; +OK1=function(m,e){m.logger.debug("setConstraint: "+X2(e));$W(m.Xl)&&(m.AR=e.reason==="m"||e.reason==="l"?!0:!1);e.reason==="m"?e.isLocked()&&y6y(m,e.X):j57(m,e)?Bg(m,e.S,e.X):m.videoInfos=m.L;m.S=e}; +j57=function(m,e){return m.Xl.Mr&&e.reason==="b"||m.Xl.VF?!1:m.Xl.WC?!0:e.reason==="l"||e.reason==="b"||e.reason==="o"}; +J6c=function(m,e){return e.isLocked()&&m.X.S||m.S===void 0?!1:py(e,m.S)}; +VHP=function(m,e){var Z,M=(Z=m.Z)==null?void 0:Z.info.video.X;return m.S9?!0:m.Z?e!==M?!0:!m.X.S||m.Xl.FF&&m.X.X===m.Z.info.itag?!1:!0:!1}; +y6y=function(m,e){var Z=m.X.X;if(Z){m.videoInfos=m.L;var M=g.u7(m.videoInfos,function(k){return k.id===Z}); +M&&M.video.X===e?m.videoInfos=[M]:(M=m.videoInfos.map(function(k){return k.id}),m.D.B("sabrpf",{pfid:""+Z, +vfids:""+M.join(".")}),Bg(m,e,e),w2(m.X,""))}else Bg(m,e,e)}; +Bg=function(m,e,Z){m.videoInfos=m.L;m.videoInfos=g.qG(m.videoInfos,function(M){return M.video.X>=e&&M.video.X<=Z})}; +Wbm=function(m,e,Z){for(var M=g.r(m.b9),k=M.next();!k.done;k=M.next())if(k=k.value,k.id===e)return m.Xl.BX||(m.U=[k]),m.C=m.CB.X[e],$W(m.Xl)&&(m.Y=!0),new RN(m.C,Z?"t":"m");m.U=[];return null}; +LbR=function(m){var e=pVm(m.X,m.j);e&&(m.U=[e])}; +zI7=function(m,e,Z){if(m.Xl.BX){if(m.j){var M=g.qG(m.U,function(k){return k.id===m.j}); +return Ei(M,Z).includes(e)}M=g.qG(m.U,function(k){var K;return!((K=k.MB)==null||!K.isDefault)}); +if(M.length>0)return Ei(M,Z).includes(e)}return Ei(m.U,Z).includes(e)}; +Ei=function(m,e){return m.map(function(Z){return I6(G$(Z,e))})}; +PIt=function(m){var e;if((e=m.S)==null?0:e.isLocked())return m.videoInfos;var Z=Fy(m.X);e=g.qG(m.videoInfos,function(M){return M.JR>m.Xl.JR?!1:!Z.has(M.id)}); +qYI(m.X)&&(e=g.qG(e,function(M){return M.video.width<=854&&M.video.height<=480})); +return e}; +ZMs=function(m,e,Z,M){var k=m.CB,K=m.G.getVideoData(),q=g.gA(K),S=jl({Xq:K.J(),G:m.G,k9:m.k9,Xl:m.Xl,eW:m.eW,If:m.If,mQ:m.mQ,O0:m.O0,xY:m.xY,isPrefetch:m.isPrefetch,Ck:m.Ck,sabrLicenseConstraint:K.sabrLicenseConstraint,xr:m.xr,LF:m.LF,W1:m.W1,M5:m.M5}),a=Ok(K,m.mu,m.nextRequestPolicy,m.iS,m.Ae,m.Ts);M&&Z&&(M=a.VY?a.VY.map(function(w){return w.type}):[],Z("ssap",{stmctxt:M.join("_"), +unsntctxt:a.i8?a.i8.join("_"):""}));M=m.Iq;var v=m.Qd,X=m.jP;if(v===void 0&&M===void 0){var x;v=mQI(k.gr,(x=m.aJ)==null?void 0:x.video);var l;M=mQI(k.gr,(l=m.aJ)==null?void 0:l.audio)}if(K.f1)var R=K.f1;K={A_:S,WE:m.WE,Iq:M,Qd:v,jP:X,videoPlaybackUstreamerConfig:R,tI:a};m.jO&&(K.jO=m.jO);if(q&&e){q=new Map;var h=g.r(k.yh);for(S=h.next();!S.done;S=h.next())S=S.value,(a=k.wc[sab(k,S)]||"")?(q.has(a)||q.set(a,[]),q.get(a).push(S)):Z&&Z("ssap",{nocid4fmt:(S.itag||"")+"_"+(S.lmt||0)+"_"+(S.xtags||"")}); +k=new Map;h=g.r(m.qB);for(S=h.next();!S.done;S=h.next())S=S.value,a=S.startTimeMs||0,x=void 0,l=(x=e)==null?void 0:pS(x,a),x=l.clipId,l=l.Lx,x?(k.has(x)||(R=q.get(x)||[],k.set(x,{clipId:x,qB:[],us:R})),l!==0&&(S.startTimeMs=a-l),k.get(x).qB.push(S)):Z&&(x=void 0,Z("ssap",{nocid4range:"1",fmt:((x=S.formatId)==null?void 0:x.itag)||"",st:a.toFixed(3),d:(S.durationMs||0).toFixed(3),timeline:YW(e)}));K.H6=[];k=g.r(k.entries());for(q=k.next();!q.done;q=k.next())q=g.r(q.value),q.next(),q=q.next().value, +K.H6.push(q);if(m.qB.length&&!K.H6.length){Z&&Z("ssap",{nobfrange:"1",br:e$P(m.qB),timeline:YW(e)});return}m.iJ&&(K.iJ=m.iJ);m.fN&&(K.fN=m.fN)}else K.qB=m.qB,K.us=k.yh,q&&((h=m.qB)==null?void 0:h.length)>0&&!e&&Z&&Z("ssap",{bldmistlm:"1"});return K}; +mQI=function(m,e){return e?[G$(e.info,m)]:[]}; +e$P=function(m){var e="";m=g.r(m);for(var Z=m.next();!Z.done;Z=m.next()){Z=Z.value;var M=void 0,k=void 0,K=void 0;e+="fmt."+(((M=Z.formatId)==null?void 0:M.itag)||"")+"_"+(((k=Z.formatId)==null?void 0:k.lmt)||0)+"_"+(((K=Z.formatId)==null?void 0:K.xtags)||"")+";st."+(Z.startTimeMs||0).toFixed(3)+";d."+(Z.durationMs||0).toFixed(3)+";"}return e}; +Ui=function(m,e,Z){this.requestType=m;this.i9=e;this.z$=Z;this.S=null}; +MwK=function(m,e,Z,M,k){k=k===void 0?{}:k;if(M==null?0:M.Bq)m.Tp=Hrs(m,M,k),e.LF=m.i9.LF();if(m.g2())return!0;m.data=e;m.X=ZMs(e,Z,function(K,q){var S;(S=m.z$)==null||S.YF(K,q)},M==null?void 0:M.U); +if(!m.X)return!1;m.S=g.fc(m.X,K_G);return!0}; +Hrs=function(m,e,Z){e=cd(m.i9,kjm(m,e,Z),e);m.g2()&&e.set("probe","1");return e}; +kjm=function(m,e,Z){m.L0===void 0&&(m.L0=m.i9.L0(e,Z));return m.L0}; +K9c=function(m){var e,Z;return((e=m.X)==null?void 0:(Z=e.A_)==null?void 0:Z.XA)||0}; +qEP=function(m){var e,Z;return!!((e=m.X)==null?0:(Z=e.A_)==null?0:Z.xr)}; +px7=function(m){var e={},Z=[],M=[];if(!m.data)return e;for(var k=0;k0;a--)Z.push(S)}Z.length!==q?e.error=!0:(K=Z.slice(-K),Z.length=k,IPG(e,Z,K));break;case 1:IPG(e,Wg,z_);break;case 0:KP(e, +e.X&7);Z=M0(e,16);k=M0(e,16);(Z^k)!==65535&&(e.error=!0);e.output.set(e.data.subarray(e.S,e.S+Z),e.U);e.S+=Z;e.U+=Z;break;default:e.error=!0}m.U>m.output.length&&(m.output=new Uint8Array(m.U*2),m.U=0,m.S=0,m.Z=!1,m.X=0,m.register=0)}m.output.length!==m.U&&(m.output=m.output.subarray(0,m.U));return m.error?new Uint8Array(0):m.output}; +IPG=function(m,e,Z){e=k9(e);Z=k9(Z);for(var M=m.data,k=m.output,K=m.U,q=m.register,S=m.X,a=m.S;;){if(S<15){if(a>M.length){m.error=!0;break}q|=(M[a+1]<<8)+M[a]<>=7;v<0;)v=e[(q&1)-v],q>>=1;else q>>=v&15;S-=v&15;v>>=4;if(v<256)k[K++]=v;else if(m.register=q,m.X=S,m.S=a,v>256){q=mR[v];q+=M0(m,Pg[v]);a=rLR(m,Z);S=Zn[a];S+=M0(m,e_[a]);if(C$R&&qZ.length&&(m.error=!0);m.register|=(Z[M+1]<<8)+Z[M]<=0)return KP(m,Z&15),Z>>4;for(KP(m,7);Z<0;)Z=e[M0(m,1)-Z];return Z>>4}; +M0=function(m,e){for(;m.X=m.data.length)return m.error=!0,0;m.register|=m.data[m.S++]<>=e;m.X-=e;return Z}; +KP=function(m,e){m.X-=e;m.register>>=e}; +k9=function(m){for(var e=[],Z=g.r(m),M=Z.next();!M.done;M=Z.next())M=M.value,e[M]||(e[M]=0),e[M]++;var k=e[0]=0;Z=[];var K=0;M=0;for(var q=1;q7&&(K+=e[q]);for(k=1;k>a&1;S=K<<4|q;if(q<=7)for(a=1<<7-q;a--;)M[a<>=7;q--;){M[a]||(M[a]=-e,e+=2);var v=k&1;k>>=1;a=v-M[a]}M[a]=S}}return M}; +fPm=function(m){var e,Z,M,k,K,q,S;return g.Qs(function(a){switch(a.X){case 1:if(!("DecompressionStream"in window))return a.return(ALt(new cL7(m)));e=new DecompressionStream("gzip");Z=e.writable.getWriter();Z.write(m);Z.close();M=e.readable.getReader();k=new zh([]);case 2:return g.A(a,M.read(),5);case 5:K=a.S;q=K.value;if(S=K.done){a.pB(4);break}k.append(q);a.pB(2);break;case 4:return a.return(k.GM())}})}; +q0=function(m,e){this.X=m;this.CJ=e}; +oyK=function(m){return g5(g5(SQ(function(){return vi(m.CJ,function(e){return m.Um(m.X,e)})}),function(){return m.ra(m.X)}),function(){return m.Su(m.X)})}; +dQy=function(m,e){return oyK(new q0(m,e))}; +pP=function(m){WI.call(this,"onesie");this.er=m;this.X={};this.U=!0;this.Z=null;this.queue=new nyR(this);this.L={};this.C=LtR(function(e,Z){var M=this;return function K(){var q,S,a,v,X,x,l,R,h,w,N,I,C,B,b,L,Q,J,kG,TK;return bP(K,function(z){switch(z.X){case 1:z.C=0;z.Z=2;M.er.SY();q=function(D){return function(W){throw{name:D,message:W};}}; +S=e.GM();Ab(z,4,5);if(!Z){z.pB(7);break}return rc(z,g5(Bd1(M.er,S,M.iv),q("DecryptError")).wait(),8);case 8:a=z.S;case 7:if(!M.er.enableCompression){z.pB(9);break}return rc(z,g5(dQy((x=a)!=null?x:S,M.er.J().xa),q("DecompressError")).wait(),10);case 10:v=z.S;case 9:X=wo((R=(l=v)!=null?l:a)!=null?R:S,PSG);case 5:ot(z,0,2);if(w=(h=M.er.J())==null?void 0:h.CJ)((N=a)==null?void 0:N.buffer)===w.exports.memory.buffer&&w.free(a.byteOffset),((I=v)==null?void 0:I.buffer)===w.exports.memory.buffer&&w.free(v.byteOffset); +dc(z,6);break;case 4:throw B=C=f1(z),new g.tw("onesie.response.parse",{name:(J=B.name)!=null?J:"unknown",message:(kG=B.message)!=null?kG:"unknown",wasm:((b=M.er.J())==null?0:b.CJ)?((L=M.er.J())==null?0:(Q=L.CJ)==null?0:Q.Qp)?"1js":"1":"0",enc:M.U,gz:M.er.enableCompression,webcrypto:!!Gp()});case 6:return EyG(X),TK=g.Se(X.body),z.return(TK);case 2:ot(z),dc(z,0)}})}()})}; +S_=function(m){var e=m.queue;e.X.length&&e.X[0].isEncrypted&&!e.S&&(e.X.length=0);e=g.r(Object.keys(m.X));for(var Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=m.X[Z];if(!M.J$){var k=m.queue;k.X.push({videoId:M.videoId,formatId:Z,isEncrypted:!1});k.S||VI(k)}}}; +UQ7=function(m,e){var Z=e.getLength(),M=!1;switch(m.Z){case 0:m.er.W("html5_future_onesie_ump_handler_on_player_response")?g5(vi(m.C(e,m.U),function(k){YEs(m.er,k)}),function(k){m.er.Cd(k)}):m.SY(e,m.U).then(function(k){YEs(m.er,k)},function(k){m.er.Cd(k)}); +break;case 2:m.gV("ormk");e=e.GM();m.queue.decrypt(e);break;default:M=!0}m.er.Kx&&m.er.B("ombup","id.11;pt."+m.Z+";len."+Z+(M?";ignored.1":""));m.Z=null}; +EyG=function(m){if(m.YP!==1)throw new g.tw("onesie.response.badproxystatus",{st:m.YP,webcrypto:!!Gp(),textencoder:!!g.Jb.TextEncoder});if(m.Ov!==200)throw new g.tw("onesie.response.badstatus",{st:m.Ov});}; +bMc=function(m){return new Promise(function(e){setTimeout(e,m)})}; +twm=function(m,e){var Z=m.J();Z=m.LJ&&Z.W("html5_onesie_preload_use_content_owner");var M=m.ND,k=g.Tx(e.V.experiments,"debug_bandaid_hostname");if(k)e=yI(e,k);else if((Z===void 0?0:Z)&&(M==null?0:M.url)&&!e.S){var K=Cy(new g.IL(M.url));e=yI(e,K)}else e=(K=e.X.get(0))==null?void 0:K.location.clone();if(e&&m.videoId){K=AX(m.videoId);m=[];if(K)for(K=g.r(K),Z=K.next();!Z.done;Z=K.next())m.push(Z.value.toString(16).padStart(2,"0"));e.set("id",m.join(""));return e}}; +QGy=function(m,e,Z){Z=Z===void 0?0:Z;var M,k;return g.Qs(function(K){if(K.X==1)return M=[],M.push(e.load()),Z>0&&M.push(bMc(Z)),g.A(K,Promise.race(M),2);k=twm(m,e);return K.return(k)})}; +HM1=function(m,e,Z,M){M=M===void 0?!1:M;m.set("cpn",e.clientPlaybackNonce);m.set("opr","1");var k=e.J();m.set("por","1");Gp()||m.set("onem","1");e.startSeconds>0&&m.set("osts",""+e.startSeconds);M||(k.W("html5_onesie_disable_partial_segments")&&m.set("oses","1"),e=k.W("html5_gapless_onesie_no_media_bytes")&&uJ(e)&&e.LJ,Z&&!e?(e=Z.audio,m.set("pvi",Z.video.join(",")),k.W("html5_onesie_disable_audio_bytes")||m.set("pai",e.join(",")),hX||m.set("osh","1")):(m.set("oad","0"),m.set("ovd","0"),m.set("oaad", +"0"),m.set("oavd","0")))}; +DQm=function(m,e,Z,M,k){k=k===void 0?!1:k;var K="https://youtubei.googleapis.com/youtubei/"+e.oY.innertubeApiVersion+"/player",q=[{name:"Content-Type",value:"application/json"}];M&&q.push({name:"Authorization",value:"Bearer "+M});q.push({name:"User-Agent",value:g.Vf()});g.fE("EOM_VISITOR_DATA")?q.push({name:"X-Goog-EOM-Visitor-Id",value:g.fE("EOM_VISITOR_DATA")}):(Z=Z.visitorData||g.fE("VISITOR_DATA"))&&q.push({name:"X-Goog-Visitor-Id",value:Z});(Z=g.fE("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&q.push({name:"X-YouTube-Lava-Device-Context", +value:Z});(e=g.Tx(e.experiments,"debug_sherlog_username"))&&q.push({name:"X-Youtube-Sherlog-Username",value:e});m=go(JSON.stringify(m));return{url:K,O4:q,postBody:m,jk:k,NL:k}}; +sGb=function(m,e,Z,M,k,K){var q=g.fc(m,zV7,m.NL?void 0:Z.CJ),S={encryptedClientKey:e.X.encryptedClientKey,Kg:!0,tP:!0,Ru:L9P(Z,!!m.NL),T7:Z.experiments.dc("html5_use_jsonformatter_to_parse_player_response")};if(m.NL)S.Y0=q;else{m=e.encrypt(q);var a;m=((a=Z.CJ)==null?void 0:a.ul(m))||m;a=S.aK=m;(0,g.G)();a=N7I(new cHs(e.X.U),a,e.iv);S.f7=a;S.iv=e.iv}e=M.getVideoData();Z=jl({Xq:Z,G:M,k9:e.startSeconds*1E3});k={As:S,A_:Z,onesieUstreamerConfig:k,HE:K,tI:Ok(e)};e.reloadPlaybackParams&&(k.reloadPlaybackParams= +e.reloadPlaybackParams);return k}; +Gjk=function(m,e,Z){var M,k,K;return g.Qs(function(q){if(q.X==1)return M=g.fc(e,zV7),g.A(q,u3P(Z,M),2);if(q.X!=3)return k=q.S,g.A(q,R$t(Z,k),3);K=q.S;return q.return({aK:k,encryptedClientKey:Z.X.encryptedClientKey,iv:Z.iv,f7:K,Kg:!0,tP:!0,Ru:L9P(m,!!e.NL),T7:m.experiments.dc("html5_use_jsonformatter_to_parse_player_response")})})}; +yLk=function(m,e,Z,M,k,K){var q,S,a,v;return g.Qs(function(X){if(X.X==1)return g.A(X,Gjk(Z,m,e),2);q=X.S;S=M.getVideoData();a=jl({Xq:Z,G:M,k9:S.startSeconds*1E3});v={As:q,A_:a,onesieUstreamerConfig:k,HE:K,tI:Ok(S)};S.reloadPlaybackParams&&(v.reloadPlaybackParams=S.reloadPlaybackParams);return X.return(v)})}; +L9P=function(m,e){m=Dg(m.schedule,!0);e=e||!!Gp()&&m>1572864;return"DecompressionStream"in window||!e}; +vt=function(m,e){g.Y.call(this);var Z=this;this.G=m;this.playerRequest=e;this.V=this.G.J();this.videoData=this.G.getVideoData();this.logger=new g.dx("onesie");this.Kx=this.V.Af();this.qh=this.V.HV;this.DY=new si(this.qh.X,this.V.xa);this.xhr=null;this.state=1;this.zw=new Gx;this.t$=!1;this.playerResponse="";this.V$=new IK(this);this.lm=new pP(this);this.OC=this.V.W("html5_onesie_check_timeout");this.Mh=new g.eD(this.OI,500,this);this.al=new g.eD(this.Df,1E4,this);this.Zg=new g.eD(function(){if(!Z.isComplete()){var M= +aQ(Z);Z.Cd(new g.tw("net.timeout",M))}},g.Y4(this.V.experiments,"html5_onesie_request_timeout_ms")); +this.OR=new g.eD(this.SD,2E3,this);this.Tc="";this.Tf=this.ju=!1;this.C2=this.G.ge();this.JW="";this.sC=this.W("html5_onesie_wait_for_media_availability");this.enableCompression=this.qH=this.GX=!1;this.nI=[];this.zc=this.cI=-1;g.U(this.videoData,this);g.U(this,this.Mh);g.U(this,this.al);g.U(this,this.OR);m=wI();hX&&m&&!this.V.W("html5_disable_onesie_media_bytes")&&(this.v_=new Map);this.rM=new Map;this.F$=new Map;this.H7=new Map;this.Zf=new Map}; +JI=function(m,e){var Z;return(Z=m.v_)==null?void 0:Z.get(e)}; +OMs=function(m,e,Z){var M;return g.Qs(function(k){if(k.X==1)return m.gV("oprd_s"),jGy(m)?g.A(k,h$I(m.DY,e,Z),3):(M=m.DY.decrypt(e,Z),k.pB(2));k.X!=2&&(M=k.S);m.gV("oprd_c");return k.return(M)})}; +Bd1=function(m,e,Z){m.gV("oprd_s");var M=m.DY;M.S||(M.S=new aPb(M.X.X,M.CJ));e=lPt(M.S,e,Z);m.gV("oprd_c");return e}; +JLR=function(m){return m.W("html5_onesie_host_probing")||m.Kx?hX:!1}; +YEs=function(m,e){m.gV("oprr");m.playerResponse=e;m.qH||(m.sC=!1);gH(m)}; +gH=function(m){if(!m.playerResponse)return!1;if(m.GX)return!0;var e=m.videoData.W("html5_onesie_audio_only_playback")&&Rf(m.videoData);if(m.v_&&m.sC){if(!m.v_.has(m.Tc))return!1;var Z=m.v_.get(m.Tc),M;if(M=Z){M=!1;for(var k=g.r(Z.NB.keys()),K=k.next();!K.done;K=k.next())if(K=Z.NB.get(K.value))for(var q=g.r(K.sA),S=q.next();!S.done;S=q.next())S.value.Pw>0&&(K.F5?M=!0:e=!0);M=!(e&&M)}if(M)return!1}m.gV("ofr");m.zw.resolve(m.playerResponse);if(!m.OC){var a;(a=m.Zg)==null||a.start();m.al.start()}return m.GX= +!0}; +W9y=function(m){if(m.v_&&!m.W("html5_onesie_media_capabilities")){m.gV("ogsf_s");var e=hft(m.G.getVideoData(),function(M,k){m.B(M,k)}),Z=Vwm(m.G); +e.video=a2G(Z,e.video);m.gV("ogsf_c");if(e.video.length)return e;m.B("ombspf","l."+Z.S+";u."+Z.X+";o."+Z.U+";r."+Z.reason)}}; +jGy=function(m,e){return m.W("html5_onesie_sync_request_encryption")||(e==null?0:e.NL)||R_(m.V)&&m.W("html5_embed_onesie_use_sync_encryption")?!1:!!Gp()}; +aQ=function(m){if(!m.Zm)return{};var e=m.Zm.Xw(),Z;e.d=(Z=m.Zm.b9)==null?void 0:Z.mI();e.shost=m.Tp;e.ty="o";return e}; +z$I=function(m,e){var Z,M;(M=(m=(Z=m.v_)==null?void 0:Z.get(e))==null)||(e=m.U?!1:m.U=!0,M=!e);return!M}; +XU=function(m,e,Z,M,k,K,q,S,a,v,X){g.Y.call(this);this.G=m;this.D=e;this.policy=Z;this.audioTrack=M;this.videoTrack=k;this.CB=K;this.Ge=q;this.yh=S;this.U=a;this.timing=v;this.N=X;this.X=[];this.C={};this.b9=this.sE=!1;this.iS=new Set;this.L=this.S9=this.Qh=this.xY=0;this.Z=null;this.videoData=this.G.getVideoData();this.policy.YH&&(this.AR=new ws(this.D,this.policy,this.Ge),g.U(this,this.AR))}; +eMc=function(m,e){e=e===void 0?!1:e;if(P$t(m,e)){m.policy.K&&m.D.B("sabrcrq",{create:1});var Z=new Ui(0,m.CB.N,m);m.policy.Mm>0&&m.L++;e=mIK(m,Z,e);m.X.push(e);var M;(M=m.AR)==null||fob(M,m.CB.N)}}; +kJ7=function(m,e){var Z=ZfR(m);m.D.cq();var M=Za(m.audioTrack,m.D.isSeeking()),k=Za(m.videoTrack,m.D.isSeeking()),K=[].concat(g.Rt(M.qB),g.Rt(k.qB)),q=[].concat(g.Rt(M.WE),g.Rt(k.WE)),S=m.D.Uj(),a,v,X=m.G,x=m.CB,l=m.S,R=m.iS,h=m.policy,w=m.D.eW,N=bKy(m.D)*1E3,I=(a=m.Y)==null?void 0:a.mQ;a=(v=m.Y)==null?void 0:v.O0;var C;v=Number((C=m.U.Z)==null?void 0:C.info.itag)||0;var B;C=Number((B=m.U.C)==null?void 0:B.info.itag)||0;e={G:X,CB:x,qB:K,WE:q,k9:Z,nextRequestPolicy:l,iS:R,Xl:h,eW:w,If:N,mQ:I,O0:a, +xY:m.xY,isPrefetch:e||m.D.isSuspended,iJ:v,fN:C,mu:S};Z=m.D.a$();K=AX(Z);Z&&(e.Ae=K);if(Z=m.G.Hn())e.xr=Z*1E3;var b;Z=m.U;K=Z.Y;if((Z.Xl.S&&Z.Xl.ly||((b=Z.Xl)==null?0:b.X&&b.NP))&&!K)for(b=g.r(Z.U),q=b.next();!q.done;q=b.next())if(q.value.MB){K=!0;break}b=$W(Z.Xl)&&!K?[]:Grk(Z,Z.U);e.Iq=b;b=m.U;$W(b.Xl)&&!b.AR?b=[]:(Z=PIt(b),Z.length===0&&(Z=b.L),b=Grk(b,Z));e.Qd=b;HQ(m.videoData)&&(e.jP=[null]);m.policy.HP&&(b=m.audioTrack,b=x_(m.D,b)*b.JR,e.W1=b,b=m.videoTrack,b=x_(m.D,b)*b.JR,e.M5=b);if(m.policy.C){M= +MvI(m,M.qB,k.qB);var L;if(k=(L=m.Z)==null?void 0:L.qn(M))e.jO=k}m.policy.AR&&m.X.length>0&&m.X[0].gb()&&(e.Ts=m.X[0].pc());return e}; +ZfR=function(m){var e,Z=m.policy.L&&((e=m.D)==null?void 0:e.DH());e=m.D.getCurrentTime()||0;e=K6K(m,e);var M=m.D.cq()||0;e+=M;M=of(m.videoData)||g.fI(m.videoData);var k=0;Z?(M&&(k=Number.MAX_SAFE_INTEGER),m.videoData.S9&&(k=Math.ceil(m.videoData.b9*1E3))):k=Math.ceil(e*1E3);return Math.min(Number.MAX_SAFE_INTEGER,k)}; +K6K=function(m,e){if(m.D.isSeeking())return e;var Z=m.G.fJ();if(!Z)return e;Z=Z.kE();if(Z.length===0||S4(Z,e))return e;if(m.policy.hj&&!xW(m.videoTrack,e)&&!xW(m.audioTrack,e))return m.D.B("sundrn",{b:0,lt:e}),e;for(var M=e,k=Infinity,K=0;Ke)){var q=e-Z.end(K);q=20)?(m.D.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),e):M}; +MvI=function(m,e,Z){var M=m.D.getCurrentTime()||0;e=qW3(m,e,M);m=qW3(m,Z,M);return Math.min(e,m)}; +qW3=function(m,e,Z){m=m.D.cq()||0;e=g.r(e);for(var M=e.next();!M.done;M=e.next()){var k=M.value;M=k.startTimeMs?k.startTimeMs/1E3-m:0;k=M+(k.durationMs?k.durationMs/1E3:0);if(M<=Z&&Z<=k)return k}return Z}; +P$t=function(m,e){if(m.policy.Mm>0){var Z=Math.floor((0,g.G)()/1E4);if(Z===m.S9){if(m.L>=m.policy.Mm){if(m.L===m.policy.Mm){var M={reason:"toomanyrequests"};M.limit=m.L;m.D.handleError("player.exception",M);m.L+=1}return!1}}else m.S9=Z,m.L=0}e=!e&&!Le(m.Ge);if(m.D.isSuspended&&(m.D.E1||e)||m.K&&(0,g.G)()0&&(!m.policy.AR||m.X.length!==1||!m.X[0].gb())||(M=m.CB.N)==null||!rq(M,m.policy,m.C,m.D.vn()))return!1;M=m.policy.QU&&m.policy.S&&m.D.qP();if(XC(m.audioTrack)&&XC(m.videoTrack)&& +!M)return!1;if(m.policy.S&&m.j&&!m.D.qP())return m.YF("ssap",{pauseontlm:1}),!1;if(iG(m,m.audioTrack)&&iG(m,m.videoTrack))return m.policy.U&&m.D.B("sabrHeap",{a:""+Kt(m.audioTrack),v:""+Kt(m.videoTrack)}),!1;if(M=m.policy.C)M=!1,m.N.S===2?M=!0:m.N.S===3&&(ZfR(m),m.D.cq(),e=MvI(m,Za(m.audioTrack,m.D.isSeeking()).qB,Za(m.videoTrack,m.D.isSeeking()).qB),Z=m.N,e>=Z.U?(Z.B("sdai",{haltrq:e,est:Z.U}),e=!0):e=!1,e&&(M=!0)),M&&m.policy.K&&m.D.B("sabrcrq",{waitad:1});if(M)return!1;if(!m.S)return m.policy.K&& +m.D.B("sabrcrq",{nopolicy:1}),!0;if(m.G.Hn())return m.policy.K&&m.D.B("sabrcrq",{utc:1}),!0;if(m.U.N)return m.policy.K&&m.D.B("sabrcrq",{audio:1}),!0;if(!m.S.targetAudioReadaheadMs||!m.S.targetVideoReadaheadMs)return m.policy.K&&m.D.B("sabrcrq",{noreadahead:1}),!0;if(m.policy.L&&m.D.DH())return m.policy.K&&m.D.B("sabrcrq",{seekToHead:1}),!0;M=Math.min(x_(m.D,m.audioTrack)*1E3,m.S.targetAudioReadaheadMs);e=Math.min(x_(m.D,m.videoTrack)*1E3,m.S.targetVideoReadaheadMs);var k=Math.min(M,e);Z=pt(m.audioTrack, +!0)*1E3;var K=pt(m.videoTrack,!0)*1E3;var q=Z0&&(M[0].X.info.F5()?pt(m.audioTrack):pt(m.videoTrack))>3)||e.isComplete())&&e.MV(k,m.fE())){k=e.eM(k,m.fE());if(m.policy.S&&(K=M[0].X.info,(q=m.D.qP())&&K)){var S=e.A$();q.api.W("html5_ssap_set_format_info_on_video_data")&& +S===gs(q)&&(K.F5()?q.G.getVideoData().Z=K:q.G.getVideoData().U=K);if(q=h1(q.timeline,S))if(q=q[0].getVideoData())K.F5()?q.Z=K:q.U=K}k=g.r(k);for(K=k.next();!K.done;K=k.next()){K=K.value;m.policy.U&&e instanceof vt&&m.D.B("omblss",{s:K.info.EZ()});q=K.info.X.info.F5();var a=K.info.X;if(q){S=void 0;var v=m.U,X=(S=e.VZ(m.fE()))==null?void 0:S.token;v.N=!1;a!==v.C&&(v.C=a,v.Kl(a,v.audioTrack,X))}else S=void 0,s53(m.U,a,(S=e.VZ(m.fE()))==null?void 0:S.token);S=q?m.audioTrack:m.videoTrack;e instanceof vt&& +(S.j=!1,e instanceof vt&&(q?Gs3(m.timing):sdb(m.timing)));if(m.policy.CN)try{er(S,M,K)}catch(x){K=Hi(x),m.D.handleError(K.errorCode,K.details,K.severity),S.tD(),m.t3(!1,"pushSlice"),lG(m.D)}else er(S,M,K)}}}}}; +ve7=function(m,e){m.policy.AR?m.X.splice(m.X.indexOf(e)).forEach(function(Z){Z.dispose()}):(m.X.pop(),e==null||e.dispose())}; +Xnt=function(m,e,Z){for(var M=[],k=0;k0)for(var e=g.r(m.videoData.sabrContextUpdates.keys()),Z=e.next();!Z.done;Z=e.next()){Z=Z.value;var M=void 0;((M=m.videoData.sabrContextUpdates.get(Z))==null?0:M.sendByDefault)&&m.iS.add(Z)}if(m.policy.AR&&m.X.length)for(e=g.r(m.X),Z=e.next();!Z.done;Z=e.next())(Z=Z.value.pc())&&Z.type&&Z.sendByDefault&&m.iS.add(Z.type)}; +hM7=function(m){m.policy.JY&&(m.Y=void 0,m.xY=0)}; +TQm=function(m,e){if(e.rZ()||e.MU()){var Z=m.D,M=Z.B,k=e.state;m=m.fE();var K,q;if((e=(K=e.v_)==null?void 0:K.get(m))==null)e=void 0;else{K=0;m=e.JX();for(var S=0;S=m.policy.ML,q=!1;if(K){var S=0;!isNaN(e)&&e>m.L&&(S=e-m.L,m.L=e);S/k=m.policy.d7&&!m.U;if(!K&&!Z&&neI(m,e))return NaN;Z&&(m.U=!0);a:{M=q;Z=(0,g.G)()/1E3-(m.qg.gG()||0)-m.j.X-m.policy.yH;K=m.S.startTime;Z=K+Z;if(M){if(isNaN(e)){ct(m,NaN,"n",e);K=NaN;break a}M=e-m.policy.pV;M=K.u7&&M<=K.bX){M=!0;break a}M=!1}M=!M}if(M)return m.B("ostmf",{ct:m.getCurrentTime(),a:e.X.info.F5()}),!1;(m=m.Y)!=null&&(m.NB.get(Z).Wo=!0);return!0}; +Clk=function(m){if(!m.CB.gr)return!0;var e=m.G.getVideoData();if(e.W("html5_skip_live_preroll_onesie")&&IQ(m.G)||e.W("html5_skip_live_preroll_onesie_post_live")&&IQ(m.G)&&(e.QH||e.isPremiere))return m.B("ombpa",{}),!1;var Z,M;if(m.policy.Rr&&!!((Z=m.N)==null?0:(M=Z.zY)==null?0:M.AU)!==m.CB.QH)return m.B("ombplmm",{}),!1;Z=e.XG||e.liveUtcStartSeconds||e.xa;if(m.CB.QH&&Z)return m.B("ombplst",{}),!1;if(m.CB.K)return m.B("ombab",{}),!1;Z=Date.now();return y3(m.CB)&&!isNaN(m.S9)&&Z-m.S9>m.policy.Ij*1E3? +(m.B("ombttl",{}),!1):m.CB.X5&&m.CB.Z||!m.policy.RH&&m.CB.isPremiere||!(wA(e)===0||m.policy.X&&e.W("html5_enable_onesie_media_for_sabr_proxima_optin"))||e.W("html5_disable_onesie_media_for_mosaic")&&XOK(e)||e.W("html5_disable_onesie_media_for_ssdai")&&e.isDaiEnabled()&&e.enableServerStitchedDai?!1:!0}; +f6K=function(m,e){var Z=e.X,M=m.CB.gr;if(Clk(m))if(m.Y&&m.Y.NB.has(I6(G$(Z.info,M)))){if(M=I6(G$(Z.info,M)),rH(m,e)){var k=new DL(m.Y.jJ(M)),K=function(q){try{if(q.rZ())m.handleError(q.G3(),q.mM()),vg(e,q),g_(q.info)&&rs(m.Z,e,Z,!0),m.TK();else if(I9(m.Z,q)){var S;(S=m.U)==null||ZYt(S,q.info,m.AR);m.TK()}}catch(a){q=Hi(a),m.handleError(q.errorCode,q.details,q.severity),m.tD()}}; +Z.S=!0;pV(k)&&(mw(e,new vI(m.policy,M,k,m.Y,K)),SX(m.timing))}}else m.B("ombfmt",{})}; +A1=function(m,e){e=e||m.videoTrack&&m.videoTrack.S&&m.videoTrack.S.startTime||m.getCurrentTime();var Z=Ct,M=m.videoTrack,k=m.X;e=k.nextVideo&&k.nextVideo.index.fd(e)||0;k.b9!==e&&(k.sE={},k.b9=e,cW(k,k.X));e=!k.X.isLocked()&&k.K>-1&&(0,g.G)()-k.Ke.X&&e.reason==="b";M||k||Z?(m.G.Fe({reattachOnConstraint:M?"u":k?"drm":"perf",lo:e.S,up:e.X}),m.policy.FF||(m.S.X.S=!1)):(m.policy.FF&&(m.S.X.S=!1),lG(m))}}else if(!iYy(m.X,e)&&m.videoTrack){m.logger.debug(function(){return"Setting constraint: r="+e.reason+" u="+e.X}); +Z=m.X.X;ES(m,l97(m.X,e));A1(m);M=e.isLocked()&&e.reason==="m"&&m.X.AR;k=m.policy.C0&&e.reason==="l"&&iH(m.videoTrack);Z=Z.X>e.X&&e.reason==="b";var K=m.X.nB&&!uO();M||k||Z||K?m.G.Fe({reattachOnConstraint:M?"u":k?"drm":K?"codec":"perf"}):lG(m)}}; +UIy=function(m,e,Z){if((!m.j9||Tu(m.j9)&&!m.policy.bC)&&!m.U9.isSeeking()&&(m.policy.X||iH(e)&&e.X.Dx()&&m.X.Y)){var M=m.getCurrentTime()+lNP(m.j,e,Z);m.logger.debug(function(){return"Clearing back to "+M.toFixed(3)}); +xN1(e,M)}}; +ES=function(m,e){e&&(m.logger.debug(function(){return"Logging new format: "+VB(e.video.info)}),Y9(m.G,new RN(e.video,e.reason))); +if(m.X.Hv){var Z=Tjt(m.X,"a");m.G.w8(new RN(Z.audio,Z.reason))}}; +lG=function(m){g.ZZ(m.mw)}; +AI=function(m){m.policy.tf&&m.policy.O7&&Math.min(pt(m.videoTrack),pt(m.audioTrack))*1E3>m.policy.QF?g.ZZ(m.CR):m.TK()}; +bfP=function(m,e){var Z=(0,g.G)()-e,M=pt(m.audioTrack,!0)*1E3,k=pt(m.videoTrack,!0)*1E3;m.logger.debug(function(){return"Appends paused for "+Z}); +if(m.policy.U&&(m.B("apdpe",{dur:Z.toFixed(),abuf:M.toFixed(),vbuf:k.toFixed()}),T_(m.policy))){var K=k_(m.j);m.B("sdps",{ct:e,ah:M.toFixed(),vh:k.toFixed(),mr:KS(m.j,m.oh,K),bw:K.toFixed(),js:m.isSeeking(),re:+m.oh,ps:(m.policy.eE||"").toString(),rn:(m.policy.wd||"").toString()})}}; +fP=function(m){if(m.j9){var e=m.j9.X,Z=m.j9.S;tvb(m,m.audioTrack);tvb(m,m.videoTrack);var M=QA3(m);if(M){if(m.policy.O7){if(!e.cn()){var k=TL(m.audioTrack);if(k){if(!US(m,m.audioTrack,e,k.info))return;bG(m,m.audioTrack,e,k)}}if(!Z.cn()&&(k=TL(m.videoTrack))){if(!US(m,m.videoTrack,Z,k.info))return;bG(m,m.videoTrack,Z,k)}}m.h_||(m.h_=(0,g.G)(),m.logger.debug(function(){return"Appends pause start "+m.h_+" reason "+M}),m.policy.U&&m.B("apdps",{r:M}))}else if(m.h_&&(bfP(m,m.h_),m.h_=0),HfP(m),k=!1,m.policy.S&& +lH(m.videoTrack)||!DIk(m,m.videoTrack,Z)||(k=!0,ync(m.timing),VYP(m.timing)),m.j9&&!m.j9.Ff()&&(m.policy.S&&lH(m.audioTrack)||!DIk(m,m.audioTrack,e)||(k=!0,jdP(m.timing),W2R(m.timing)),!m.MU()&&m.j9)){if(!m.policy.tR&&kW(m.videoTrack)&&kW(m.audioTrack)&&Tu(m.j9)&&!m.j9.cK()){Z=!1; +Z=PW(m.audioTrack);if(m.policy.S){var K;e=(K=m.u9)==null?void 0:pS(K,Z.u7*1E3);Z=!(!e||e.clipId!==Z.clipId);m.B("ssap",{eos:Z})}else K=Z.X,Z=K===m.CB.X[K.info.id];Z&&(m.logger.debug("Setting EOS"),dnI(m.j9),y7b(m.schedule))}k&&!m.j9.isAsync()&&lG(m)}}}; +QA3=function(m){if(m.policy.S&&lH(m.videoTrack)&&lH(m.audioTrack))return"ssap";if(FbK(m.videoTrack))return m.logger.debug("Pausing appends for server-selectable format"),"ssf";if(m.policy.Hv&&uH(m.videoTrack)&&uH(m.audioTrack))return"updateEnd";if(XC(m.audioTrack)||XC(m.videoTrack)&&m.videoTrack.X.info.T$!=="f")return"";if(m.U9.isSeeking()){var e=m.j;var Z=m.videoTrack;var M=m.audioTrack;if(e.policy.X){var k=e.policy.oW;T_(e.policy)&&(k=KS(e,!1,k_(e)));e=k;Z=pt(M,!0)>=e&&pt(Z,!0)>=e}else Z.U.length|| +M.U.length?(k=Z.X.info.JR+M.X.info.JR,k=10*(1-k_(e)/k),e=Math.max(k,e.policy.oW),Z=pt(M,!0)>=e&&pt(Z,!0)>=e):Z=!0;if(!Z)return"abr";Z=m.videoTrack;if(Z.U.length>0&&Z.Z.S.length===1&&sek(Z.Z).info.C360);M=T_(m.policy)&&m.policy.I$;if(!m.oh||!M&&Z)return"";Z=m.policy.BS;T_(m.policy)&&(Z=KS(m.j,m.oh,k_(m.j)));Z=RIm(m.videoTrack, +m.getCurrentTime(),Z)||RIm(m.audioTrack,m.getCurrentTime(),Z);return T_(m.policy)?Z?"mbnm":"":(m.videoTrack.U.length>0||m.audioTrack.U.length>0||cg(m.Z,m.videoTrack,m.audioTrack)||cg(m.Z,m.audioTrack,m.videoTrack))&&Z?"nord":""}; +HfP=function(m){if(m.C){var e=m.C.TK(m.audioTrack,vJ(m.j9.S.v0()));e&&m.G.seekTo(e,{DA:!0,DN:"pollSubsegmentReadahead",OB:!0})}}; +DIk=function(m,e,Z){if(m.policy.Hv&&uH(e))return!1;if(Z.ll())return!0;if(!Z.U1())return!1;var M=TL(e);if(!M||M.info.type===6)return!1;var k=m.policy.wp;if(k&&!M.info.Z){var K=M.info.u7-m.getCurrentTime();if(M.info.Ck)return m.policy.X&&sAk(m,e),!1;GJ7(m,e);var S;m.policy.oY&&Z===((S=m.j9)==null?void 0:S.X)&&m.nB&&(Z.bJ()===0?(m.nB=!1,m.policy.oY=!1):m.tR=Z.bJ());if(!yas(m,Z,M,e))return!1;m.policy.Hv&&M.info.SB()?(m.G.J().Af()&&m.B("eosl",{ls:M.info.EZ()}),M.isLocked=!0):(e.rk(M), +hU7(m.X,M.info),m.logger.debug(function(){return"Appended "+M.info.EZ()+", buffered: "+q4(Z.v0())})); +return!0}; +sAk=function(m,e){e===m.videoTrack?m.yh=m.yh||(0,g.G)():m.Qh=m.Qh||(0,g.G)()}; +GJ7=function(m,e){e===m.videoTrack?m.yh=0:m.Qh=0}; +yas=function(m,e,Z,M){var k=m.policy.CR?(0,g.G)():0,K=Z.L&&Z.info.X.X||void 0,q=Z.X;Z.L&&(q=jAI(m,Z,q)||q);var S=q.GM();q=m.policy.CR?(0,g.G)():0;e=Of1(m,e,S,Z.info,K);(M=M.K)!=null&&(K=Z.info,k=q-k,q=(0,g.G)()-q,!M.S||Lrk(M.S,K)&&M.S.Wv===K.Wv||M.flush(),M.Z+=k,M.U+=q,k=1,!M.S&&K.S&&(k=2),oN(M,k,e),q=Math.ceil(K.S/1024),k===2&&M.X.add(q),M.X.add(Math.ceil((K.S+K.U)/1024)-q),M.S=K);m.b9=0;if(e===0)return m.wc&&(m.logger.debug("Retry succeed, back to normal append logic."),m.wc=!1,m.XG=!1),m.KB=0, +!0;if(e===2||e===5)return t1(m,"checked",e,Z.info),!1;if(e===1){if(!m.wc)return m.logger.debug("QuotaExceeded, retrying."),m.wc=!0,!1;if(!m.XG)return m.XG=!0,m.G.seekTo(m.getCurrentTime(),{DN:"quotaExceeded",OB:!0}),!1;Z.info.wy()?(k=m.policy,k.wc=Math.floor(k.wc*.8),k.b9=Math.floor(k.b9*.8)):(k=m.policy,k.mw=Math.floor(k.mw*.8),k.b9=Math.floor(k.b9*.8));m.policy.X?T6(m.S.X,Z.info.X,!1):IN(m.X,Z.info.X)}m.G.Fe({reattachOnAppend:e});return!1}; +jAI=function(m,e,Z){var M;if(M=m.policy.HZ&&m.j9&&!m.j9.N&&!m.G.yJ())e=e.info.X.info,M=e.KJ()&&r6(e)&&e.video&&e.video.width<3840&&e.video.width>e.video.height;if(M&&(m.j9.N=!0,ZF('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return Z=DAk(Z),m.policy.U&&m.B("sp4k",{s:!!Z}),Z}; +t1=function(m,e,Z,M){var k="fmt.unplayable",K=1;Z===5||Z===3?(k="fmt.unparseable",m.policy.X?!M.X.info.video||Fy(m.S.X).size>0||T6(m.S.X,M.X,!1):!M.X.info.video||Fy(m.X.L).size>0||IN(m.X,M.X)):Z===2&&(m.KB<15?(m.KB++,k="html5.invalidstate",K=0):k="fmt.unplayable");M=QG(M);var q;M.mrs=(q=m.j9)==null?void 0:cJ(q);M.origin=e;M.reason=Z;m.handleError(k,M,K)}; +KbR=function(m,e,Z,M,k){var K=m.CB;var q=m.policy.X,S=!1,a=-1,v;for(v in K.X){var X=Oq(K.X[v].info.mimeType)||K.X[v].info.wy();if(M===X)if(X=K.X[v].index,X.OU(e.Wv)){S=X;var x=e,l=S.tE(x.Wv);l&&l.startTime!==x.startTime?(S.segments=[],S.lz(x),S=!0):S=!1;S?a=e.Wv:!e.pending&&q&&(x=X.getDuration(e.Wv),x!==e.duration&&(K.Pv("clienttemp","mfldurUpdate",{itag:K.X[v].info.itag,seg:e.Wv,od:x,nd:e.duration},!1),X.lz(e),S=!0))}else X.lz(e),S=!0}a>=0&&(q={},K.Pv("clienttemp","resetMflIndex",(q[M?"v":"a"]=a, +q),!1));K=S;ody(m.U9,e,M,K);m.U.Xz(e,Z,M,k);e.Wv===m.CB.X5&&K&&DF(m.CB)&&e.startTime>DF(m.CB)&&(m.CB.b9=e.startTime+(isNaN(m.timestampOffset)?0:m.timestampOffset),m.U9.isSeeking()&&m.U9.X5)return m.b9= +0,m.G.Fe({initSegStuck:1,as:M.info.EZ()}),!0}else m.b9=0,m.wr=M;m.policy.UV&&(Z.abort(),(q=e.K)!=null&&(oN(q,4),q.flush()));k=Of1(m,Z,K,a,k);var v;(v=e.K)==null||I9G(v,k,a);if(k!==0)return Jab(m,k,M),!0;M.info.wy()?OrP(m.timing):JnI(m.timing);m.logger.debug(function(){return"Appended init for "+M.info.X.info.id}); +return Z.cK()}; +L6m=function(m,e,Z){if(e.cn()==null){m=PW(m);if(!(e=!m||m.X!==Z.info.X)){a:if(m=m.j,Z=Z.info.j,m.length!==Z.length)Z=!1;else{for(e=0;e1)return 6;a.sE=new g.eD(function(){var X=TL(a);m.MU()||X==null||!X.isLocked?m.G.J().Af()&&m.B("eosl",{delayA:X==null?void 0:X.info.EZ()}):Vv1(a)?(m.G.J().Af()&&m.B("eosl",{dunlock:X==null?void 0:X.info.EZ()}),QL(m,a=== +m.audioTrack)):(m.B("nue",{ls:X.info.EZ()}),X.info.N+=1,m.j9&&fP(m))},1E4,m); +m.G.J().Af()&&m.B("eosl",{delayS:M.EZ()});a.sE.start()}if(m.policy.S1&&(M==null?0:M.SB())){var v;if((v=a.b9)==null?0:v.isActive())g.MU(a.b9),m.B("sbac",{as:M.EZ()});a.b9=new g.eD(function(){m.B("sbum5s",{as:M.EZ()})},5E3,m); +a.b9.start()}m.policy.A0&&(M==null?void 0:M.X)instanceof io&&M.SB()&&m.B("poseos",{itag:M.X.info.itag,seg:M.Wv,lseg:M.X.index.ze(),es:M.X.index.U});e.appendBuffer(Z,M,k)}catch(X){if(X instanceof DOMException){if(X.code===11)return 2;if(X.code===12)return 5;if(X.code===22||X.message.indexOf("Not enough storage")===0)return e=Object.assign({name:"QuotaExceededError",buffered:q4(e.v0()).replace(/,/g,"_"),vheap:Kt(m.videoTrack),aheap:Kt(m.audioTrack),message:g.Dp(X.message),track:m.j9?e===m.j9.S?"v": +"a":"u"},ra3()),m.handleError("player.exception",e),1;g.DA(X)}return 4}return m.j9.Ff()?3:0}; +hx=function(m,e,Z){m.G.seekTo(e,Z)}; +sp=function(m,e){W61(m.G,e)}; +x_=function(m,e){if(m.wc&&!m.oh)return 3;if(m.isSuspended)return 1;var Z;if((Z=m.j9)==null?0:Z.j9&&Z.j9.streaming===!1)return 4;Z=(e.X.info.audio?m.policy.mw:m.policy.wc)/(e.JR*m.policy.Jd);if(m.policy.Ek>0&&m.j9&&Tu(m.j9)&&(e=e.X.info.video?m.j9.S:m.j9.X)&&!e.cK()){e=e.v0();var M=p8(e,m.getCurrentTime());M>=0&&(e=m.getCurrentTime()-e.start(M),Z+=Math.max(0,Math.min(e-m.policy.Ek,m.policy.GF)))}m.policy.b9>0&&(Z=Math.min(Z,m.policy.b9));return Z}; +PlK=function(m){m.Hv&&!m.isSuspended&&Le(m.schedule)&&(zMG(m,m.Hv),m.Hv="")}; +zMG=function(m,e){mM(e,"cms",function(Z){m.policy.U&&m.B("pathprobe",Z)},function(Z){m.G.handleError(Z)})}; +mPG=function(m,e){if(m.j9&&m.j9.Z&&!m.j9.Ff()&&(e.ZA=pt(m.videoTrack),e.S=pt(m.audioTrack),m.policy.U)){var Z=Kt(m.videoTrack),M=Kt(m.audioTrack),k=q4(m.j9.S.v0(),"_",5),K=q4(m.j9.X.v0(),"_",5);Object.assign(e.X,{lvq:Z,laq:M,lvb:k,lab:K})}e.bandwidthEstimate=ZU(m.j);var q;(q=m.audioTrack.K)==null||q.flush();var S;(S=m.videoTrack.K)==null||S.flush();m.logger.debug(function(){return b_(e.X)})}; +e_R=function(m,e){m.AR=e;m.U&&(m.U.C=e);m.AR.nZ(m.videoTrack.X.info.KJ());m.Z.S=m.AR;m.policy.C&&(m.K.Z=m.AR)}; +ZT3=function(m,e){if(m.j9&&m.j9.S){if(m.policy.zj){var Z=r6R(m.audioTrack);if(Z&&Z.F5()){var M=m.G;M.Iv&&(M.Iv.X=Z,M.lw(M.Iv.videoId).Ou(M.Iv))}}m.policy.R1&&(Z=r6R(m.videoTrack))&&Z.wy()&&(M=m.G,M.h9&&(M.h9.X=Z,M.lw(M.h9.videoId).Pf(M.h9)));e-=isNaN(m.timestampOffset)?0:m.timestampOffset;m.getCurrentTime()!==e&&m.resume();m.U9.isSeeking()&&m.j9&&!m.j9.Ff()&&(Z=m.getCurrentTime()<=e&&e=e&&I6y(m,M.startTime,!1)}); +return Z&&Z.startTimem.getCurrentTime())return Z.start/1E3;return Infinity}; +qXI=function(m){var e=PW(m.videoTrack),Z=PW(m.audioTrack);return e&&!NF3(m.videoTrack)?e.startTime:Z&&!NF3(m.audioTrack)?Z.startTime:NaN}; +SWK=function(m){if(m.G.getVideoData().isLivePlayback)return!1;var e=m.G.fJ();if(!e)return!1;e=e.getDuration();return pnP(m,e)}; +pnP=function(m,e){if(!m.j9||!m.j9.X||!m.j9.S)return!1;var Z=m.getCurrentTime(),M=m.j9.X.v0();m=m.j9.S.v0();M=M?aX(M,Z):Z;Z=m?aX(m,Z):Z;Z=Math.min(M,Z);return isNaN(Z)?!1:Z>=e-.01}; +Jab=function(m,e,Z){m.policy.hm&&uJ(m.G.getVideoData())?(m.G.Jm()||t1(m,"sepInit",e,Z.info),pwt(m.G,"sie")):t1(m,"sepInit",e,Z.info)}; +ft=function(m){return m.G.vn()0){var k=M.X.shift();a71(M,k.info)}M.X.length>0&&(k=M.X[0].time-(0,g.G)(),M.S.start(Math.max(0,k)))}},0); +g.U(this,this.S);e.subscribe("widevine_set_need_key_info",this.L,this)}; +a71=function(m,e){a:{var Z=e.cryptoPeriodIndex;if(isNaN(Z)&&m.U.size>0)Z=!0;else{for(var M=g.r(m.U.values()),k=M.next();!k.done;k=M.next())if(k.value.cryptoPeriodIndex===Z){Z=!0;break a}Z=!1}}m.Pv("log_qoe",{wvagt:"reqnews",canskip:Z});Z||m.Pv("rotated_need_key_info_ready",e)}; +vbb=function(m){var e=m.url;var Z=m.interval;m=m.retries;this.url=e;this.interval=Z;this.retries=m}; +gb3=function(m,e){this.statusCode=m;this.message=e;this.S=this.heartbeatParams=this.errorMessage=null;this.X={};this.nextFairplayKeyId=null}; +Xw3=function(m){var e=kB(m.subarray(0,16384)),Z=e.indexOf("\r\n\r\n");if(Z===-1)return null;var M=e.indexOf("\r\n"),k=e.slice(0,M).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(k==null)return null;k=k[1];isFinite(k)&&(k=String(k));k=typeof k==="string"?/^\s*-?0x/i.test(k)?parseInt(k,16):parseInt(k,10):NaN;e=Vi(e.slice(M+2));if(e==null)return null;m=new gb3(k,m.subarray(Z+4));m.statusCode!==0&&(m.errorMessage=g.Gy1(m.statusCode));if(Z=e["Heartbeat-Url"])m.heartbeatParams=new vbb({url:Z,interval:Number(e["Heartbeat-Interval-Secs"])|| +60,retries:Number(e["Heartbeat-Num-Retries"])||4});if(Z=e["Authorized-Format-Types"])m.S=Z.split(",");if(Z=e["Key-Ids"]){if(Z)for(M=Z.split(";"),Z={},M=g.r(M),k=M.next();!k.done;k=M.next())k=k.value.split(","),k.length===2&&(Z[k[1]]=k[0]);else Z={};m.X=Z}m.nextFairplayKeyId=e["Next-Key-Id"];return m}; +iTP=function(m,e,Z){Z=Z===void 0?"":Z;g.Y.call(this);this.message=m;this.requestNumber=e;this.H0=Z;this.onError=this.onSuccess=null;this.X=new g.Jy(5E3,2E4,.2)}; +xPG=function(m,e,Z){m.onSuccess=e;m.onError=Z}; +ugm=function(m,e,Z){var M={format:"RAW",method:"POST",postBody:m.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(k){if(!m.MU())if(k.status!==0&&k.response)if(g.lj("drm_net_r",void 0,m.H0),k=new Uint8Array(k.response),k=Xw3(k))m.onSuccess(k,m.requestNumber);else m.onError(m,"drm.net","t.p");else l7c(m,k)}, +onError:function(k){l7c(m,k)}}; +Z&&(e=Gq(e,"access_token",Z));g.lN(e,M)}; +l7c=function(m,e){if(!m.MU())m.onError(m,e.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(e.status),e.status)}; +h_P=function(m,e,Z,M){var k={timeout:3E4,onSuccess:function(K){if(!m.MU()){g.lj("drm_net_r",void 0,m.H0);var q=K.status==="LICENSE_STATUS_OK"?0:9999,S=null;if(K.license)try{S=j7(K.license)}catch(h){g.DA(h)}if(q!==0||S){S=new gb3(q,S);q!==0&&K.reason&&(S.errorMessage=K.reason);if(K.authorizedFormats){q={};for(var a=[],v={},X=g.r(K.authorizedFormats),x=X.next();!x.done;x=X.next())if(x=x.value,x.trackType&&x.keyId){var l=R_m[x.trackType];if(l){l==="HD"&&K.isHd720&&(l="HD720");x.isHdr&&(l+="HDR");q[l]|| +(a.push(l),q[l]=!0);var R=null;try{R=j7(x.keyId)}catch(h){g.DA(h)}R&&(v[g.HG(R,4)]=l)}}S.S=a;S.X=v}K.nextFairplayKeyId&&(S.nextFairplayKeyId=K.nextFairplayKeyId);K.sabrLicenseConstraint&&(S.sabrLicenseConstraint=j7(K.sabrLicenseConstraint));K=S}else K=null;if(K)m.onSuccess(K,m.requestNumber);else m.onError(m,"drm.net","t.p;p.i")}}, +onError:function(K){if(!m.MU())if(K&&K.error)K=K.error,m.onError(m,"drm.net.badstatus","t.r;p.i;c."+K.code+";s."+K.status,K.code);else m.onError(m,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){m.onError(m,"drm.net","rt.req."+m.requestNumber)}}; +M&&(k.PT="Bearer "+M);g.EE(Z,"player/get_drm_license",e,k)}; +OS=function(m,e,Z,M){g.m6.call(this);this.videoData=m;this.V=e;this.K=Z;this.sessionId=M;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.j=this.AR=!1;this.U=null;this.b9=[];this.Z=[];this.N=!1;this.X={};this.S9=NaN;this.status="";this.C=NaN;this.S=m.L;this.cryptoPeriodIndex=Z.cryptoPeriodIndex;m={};Object.assign(m,this.V.X);m.cpn=this.videoData.clientPlaybackNonce;this.videoData.Y&&(m.vvt=this.videoData.Y,this.videoData.mdxEnvironment&&(m.mdx_environment=this.videoData.mdxEnvironment)); +this.V.N&&(m.authuser=this.V.N);this.V.pageId&&(m.pageid=this.V.pageId);isNaN(this.cryptoPeriodIndex)||(m.cpi=this.cryptoPeriodIndex.toString());var k=(k=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vf()))?k[1]:"";k==="ATV"&&(m.cdt=k);this.L=m;this.L.session_id=M;this.Y=!0;this.S.flavor==="widevine"&&(this.L.hdr="1");this.S.flavor==="playready"&&(e=Number(g.Tx(e.experiments,"playready_first_play_expiration")),!isNaN(e)&&e>=0&&(this.L.mfpe=""+e),this.Y=!1);e="";g.Ke(this.S)?kk(this.S)?(M=Z.S)&&(e="https://www.youtube.com/api/drm/fps?ek="+ +vG3(M)):(e=Z.initData.subarray(4),e=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),e=String.fromCharCode.apply(null,e).replace("skd://","https://")):e=this.S.S;this.baseUrl=e;this.fairplayKeyId=La(this.baseUrl,"ek")||"";if(e=La(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(e);this.Qh=this.videoData.W("html5_use_drm_retry");this.b9=Z.KJ?[g.HG(Z.initData,4)]:Z.U;j_(this,{sessioninit:Z.cryptoPeriodIndex});this.status="in"}; +wwI=function(m,e){j_(m,{createkeysession:1});m.status="gr";g.lj("drm_gk_s",void 0,m.videoData.sE);m.url=TLR(m);try{m.U=e.createSession(m.K,function(Z){j_(m,{m:Z})})}catch(Z){e="t.g"; +Z instanceof DOMException&&(e+=";c."+Z.code);m.Pv("licenseerror","drm.unavailable",1,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}m.U&&($Pc(m.U,function(Z,M){F5b(m,Z,M)},function(Z,M,k){if(!m.MU()){M=void 0; +var K=1;g.Ke(m.S)&&g.qF(m.V)&&m.V.W("html5_enable_safari_fairplay")&&k===1212433232&&(M="ERROR_HDCP",K=m.V.W("html5_safari_fairplay_ignore_hdcp")?0:K);m.error("drm.keyerror",K,Z,M)}},function(){m.MU()||(j_(m,{onkyadd:1}),m.j||(m.Pv("sessionready"),m.j=!0))},function(Z){m.Bd(Z)}),g.U(m,m.U))}; +TLR=function(m){var e=m.baseUrl;hVt(e)||m.error("drm.net",2,"t.x");if(!La(e,"fexp")){var Z=["23898307","23914062","23916106","23883098"].filter(function(k){return m.V.experiments.experiments[k]}); +Z.length>0&&(m.L.fexp=Z.join())}Z=g.r(Object.keys(m.L));for(var M=Z.next();!M.done;M=Z.next())M=M.value,e=Gq(e,M,m.L[M]);return e}; +F5b=function(m,e,Z){if(!m.MU())if(e){j_(m,{onkmtyp:Z});m.status="km";switch(Z){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":nbP(m,e);return;default:m.Pv("ctmp","message_type",{t:Z,l:e.byteLength})}m.AR||(g.lj("drm_gk_f",void 0,m.videoData.sE),m.AR=!0,m.Pv("newsession",m));if(eP(m.S)&&(e=cY7(e),!e))return;g.Ke(m.S)&&!m.videoData.useInnertubeDrmService()&&(e=vmb(g.HG(e)));e=new iTP(e,++m.requestNumber,m.videoData.sE);xPG(e,function(M){NL1(m, +M)},function(M,k,K){if(!m.MU()){var q=0,S; +(S=M.X.S>=3)||(S=m.Qh&&(0,g.G)()-m.S9>36E4);S&&(q=1,k="drm.net.retryexhausted");j_(m,{onlcsrqerr:k,info:K});m.error(k,q,K);m.shouldRetry(Q6(q),M)&&rYc(m,M)}}); +g.U(m,e);I7G(m,e)}else m.error("drm.unavailable",1,"km.empty")}; +nbP=function(m,e){j_(m,{sdpvrq:1});m.C=Date.now();if(m.S.flavor!=="widevine")m.error("drm.provision",1,"e.flavor;f."+m.S.flavor+";l."+e.byteLength);else{var Z={cpn:m.videoData.clientPlaybackNonce};Object.assign(Z,m.V.X);Z=g.tV("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",Z);e={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:kB(e)}),responseType:"arraybuffer"}; +g.nO(Z,e,3,500).then(l_(function(M){M=M.xhr;if(!m.MU()){M=new Uint8Array(M.response);var k=kB(M);try{var K=JSON.parse(k)}catch(q){}K&&K.signedResponse?(m.Pv("ctmp","drminfo",{provisioning:1}),K=(Date.now()-m.C)/1E3,m.C=NaN,m.Pv("ctmp","provs",{et:K.toFixed(3)}),m.U&&m.U.update(M)):(K=K&&K.error&&K.error.message,M="e.parse",K&&(M+=";m."+K),m.error("drm.provision",1,M))}}),l_(function(M){m.MU()||m.error("drm.provision",1,"e."+M.errorCode+";c."+(M.xhr&&M.xhr.status))}))}}; +J1=function(m){var e;if(e=m.Y&&m.U!=null)m=m.U,e=!(!m.X||!m.X.keyStatuses);return e}; +I7G=function(m,e){m.status="km";g.lj("drm_net_s",void 0,m.videoData.sE);if(m.videoData.useInnertubeDrmService()){var Z=new g.dd(m.V.oY),M={context:g.rF(Z.config_||g.Tr())};M.drmSystem=AYP[m.S.flavor];M.videoId=m.videoData.videoId;M.cpn=m.videoData.clientPlaybackNonce;M.sessionId=m.sessionId;M.licenseRequest=g.HG(e.message);M.drmParams=m.videoData.drmParams;isNaN(m.cryptoPeriodIndex)||(M.isKeyRotated=!0,M.cryptoPeriodIndex=m.cryptoPeriodIndex);var k,K,q=!!((k=m.videoData.U)==null?0:(K=k.video)==null? +0:K.isHdr());M.drmVideoFeature=q?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(M.context&&M.context.client){if(k=m.V.X)M.context.client.deviceMake=k.cbrand,M.context.client.deviceModel=k.cmodel,M.context.client.browserName=k.cbr,M.context.client.browserVersion=k.cbrver,M.context.client.osName=k.cos,M.context.client.osVersion=k.cosver;M.context.user=M.context.user||{};M.context.request=M.context.request||{};m.videoData.Y&&(M.context.user.credentialTransferTokens=[{token:m.videoData.Y,scope:"VIDEO"}]); +M.context.request.mdxEnvironment=m.videoData.mdxEnvironment||M.context.request.mdxEnvironment;m.videoData.tR&&(M.context.user.kidsParent={oauthToken:m.videoData.tR});g.Ke(m.S)&&(M.fairplayKeyId=g.HG(tm(m.fairplayKeyId)));g.Tk(m.V,g.bJ(m.videoData)).then(function(S){h_P(e,M,Z,S);m.status="rs"})}else m.error("drm.net",2,"t.r;ic.0")}else g.Tk(m.V,g.bJ(m.videoData)).then(function(S){ugm(e,m.url,S); +m.status="rs"})}; +NL1=function(m,e){if(!m.MU())if(j_(m,{onlcsrsp:1}),m.status="rr",e.statusCode!==0)m.error("drm.auth",1,"t.f;c."+e.statusCode,e.errorMessage||void 0);else{g.lj("drm_kr_s",void 0,m.videoData.sE);if(e.heartbeatParams&&e.heartbeatParams.url&&m.videoData.W("outertube_streaming_data_always_use_staging_license_service")){var Z=m.S.S.match(/(.*)youtube.com/g);Z&&(e.heartbeatParams.url=Z[0]+e.heartbeatParams.url)}e.heartbeatParams&&m.Pv("newlicense",e.heartbeatParams);e.S&&(m.Z=e.S,m.videoData.useInnertubeDrmService()&& +!m.videoData.Dp&&m.Pv("newlicense",new vbb({})),m.videoData.Dp=!0,m.N=g.Yd(m.Z,function(M){return M.includes("HDR")})); +e.X&&(m.V.W("html5_enable_vp9_fairplay")&&kk(m.S)?(Z=g.HG(tm(m.fairplayKeyId),4),m.X[Z]={type:e.X[Z],status:"unknown"}):m.X=f3(e.X,function(M){return{type:M,status:"unknown"}})); +Zg(m.S)&&!m.videoData.useInnertubeDrmService()?e.message=j7(kB(e.message)):MR(m.S)&&m.videoData.useInnertubeDrmService()&&(e.message=vmb(g.HG(e.message)));m.U&&(j_(m,{updtks:1}),m.status="ku",m.U.update(e.message).then(function(){g.lj("drm_kr_f",void 0,m.videoData.sE);J1(m)||(j_(m,{ksApiUnsup:1}),m.Pv("keystatuseschange",m))},function(M){M="msuf.req."+m.requestNumber+";msg."+g.Dp(M.message); +m.error("drm.keyerror",1,M)})); +m.j&&(m.S9=(0,g.G)());g.Ke(m.S)&&m.Pv("fairplay_next_need_key_info",m.baseUrl,e.nextFairplayKeyId);m.V.W("html5_enable_vp9_fairplay")&&kk(m.S)&&m.Pv("qualitychange",C4R(m.Z));e.sabrLicenseConstraint&&m.Pv("sabrlicenseconstraint",e.sabrLicenseConstraint)}}; +rYc=function(m,e){var Z=e.X.getValue();Z=new g.eD(function(){I7G(m,e)},Z); +g.U(m,Z);Z.start();g.Vr(e.X);j_(m,{rtyrq:1})}; +f7P=function(m,e){for(var Z=[],M=g.r(Object.keys(m.X)),k=M.next();!k.done;k=M.next())k=k.value,Z.push(k+"_"+m.X[k].type+"_"+m.X[k].status);return Z.join(e)}; +VL=function(m){var e={};e[m.status]=J1(m)?f7P(m,"."):m.Z.join(".");return e}; +obP=function(m,e){switch(m){case "highres":case "hd2880":m="UHD2";break;case "hd2160":case "hd1440":m="UHD1";break;case "hd1080":case "hd720":m="HD";break;case "large":case "medium":case "small":case "light":case "tiny":m="SD";break;default:return""}e&&(m+="HDR");return m}; +Wt=function(m,e){for(var Z in m.X)if(m.X[Z].status==="usable"&&m.X[Z].type===e)return!0;return!1}; +dPP=function(m,e){for(var Z in m.X)if(m.X[Z].type===e)return m.X[Z].status}; +j_=function(m,e){var Z=Z===void 0?!1:Z;b_(e);(Z||m.V.Af())&&m.Pv("ctmp","drmlog",e)}; +BLy=function(m){var e=m[0];m[0]=m[3];m[3]=e;e=m[1];m[1]=m[2];m[2]=e;e=m[4];m[4]=m[5];m[5]=e;e=m[6];m[6]=m[7];m[7]=e}; +C4R=function(m){return g.Ti(m,"UHD2")||g.Ti(m,"UHD2HDR")?"highres":g.Ti(m,"UHD1")||g.Ti(m,"UHD1HDR")?"hd2160":g.Ti(m,"HD")||g.Ti(m,"HDHDR")?"hd1080":g.Ti(m,"HD720")||g.Ti(m,"HD720HDR")?"hd720":"large"}; +cY7=function(m){for(var e="",Z=0;Z'.charCodeAt(M);m=m.U.createSession("video/mp4",e,Z);return new zb(null,null,null,null,m)}; +mn=function(m,e){var Z=m.C[e.sessionId];!Z&&m.Z&&(Z=m.Z,m.Z=null,Z.sessionId=e.sessionId,m.C[e.sessionId]=Z);return Z}; +UPy=function(m,e){var Z=m.subarray(4);Z=new Uint16Array(Z.buffer,Z.byteOffset,Z.byteLength/2);Z=String.fromCharCode.apply(null,Z).match(/ek=([0-9a-f]+)/)[1];for(var M="",k=0;k=0&&m.push(M);m=parseFloat(m.join("."))}else m=NaN;m>19.2999?(m=Z.Gd,Z=Z.eq,Z>=m&&(Z=m*.75),e=(m-Z)*.5,Z=new Gb(e,m,m-e-Z,this)):Z=null;break a;case "widevine":Z=new yL(e,this,m);break a;default:Z=null}if(this.L=Z)g.U(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.u$,this),this.L.subscribe("log_qoe",this.kF,this);SP(this.V.experiments);this.kF({cks:this.X.lP()})}; +QVK=function(m){var e=m.Z.hg();e?e.then(l_(function(){HTy(m)}),l_(function(Z){if(!m.MU()){g.DA(Z); +var M="t.a";Z instanceof DOMException&&(M+=";n."+Z.name+";m."+Z.message);m.Pv("licenseerror","drm.unavailable",1,M,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(m.kF({mdkrdy:1}),m.K=!0); +m.Y&&(e=m.Y.hg())}; +L5I=function(m,e,Z){m.wc=!0;Z=new QP(e,Z);m.V.W("html5_eme_loader_sync")&&(m.C.get(e)||m.C.set(e,Z));DPk(m,Z)}; +DPk=function(m,e){if(!m.MU()){m.kF({onInitData:1});if(m.V.W("html5_eme_loader_sync")&&m.videoData.S&&m.videoData.S.X){var Z=m.j.get(e.initData);e=m.C.get(e.initData);if(!Z||!e)return;e=Z;Z=e.initData;m.C.remove(Z);m.j.remove(Z)}m.kF({initd:e.initData.length,ct:e.contentType});if(m.X.flavor==="widevine")if(m.Qh&&!m.videoData.isLivePlayback)kq(m);else{if(!(m.V.W("vp9_drm_live")&&m.videoData.isLivePlayback&&e.KJ)){m.Qh=!0;Z=e.cryptoPeriodIndex;var M=e.X;UAK(e);e.KJ||(M&&e.X!==M?m.Pv("ctmp","cpsmm",{emsg:M, +pssh:e.X}):Z&&e.cryptoPeriodIndex!==Z&&m.Pv("ctmp","cpimm",{emsg:Z,pssh:e.cryptoPeriodIndex}));m.Pv("widevine_set_need_key_info",e)}}else m.u$(e)}}; +HTy=function(m){if(!m.MU())if(m.V.W("html5_drm_set_server_cert")||kk(m.X)){var e=m.Z.setServerCertificate();e?e.then(l_(function(Z){m.V.Af()&&m.Pv("ctmp","ssc",{success:Z})}),l_(function(Z){m.Pv("ctmp","ssce",{n:Z.name, +m:Z.message})})).then(l_(function(){K5(m)})):K5(m)}else K5(m)}; +K5=function(m){m.MU()||(m.K=!0,m.kF({onmdkrdy:1}),kq(m))}; +sVy=function(m){return m.X.flavor==="widevine"&&m.videoData.W("html5_drm_cpi_license_key")}; +kq=function(m){if((m.wc||m.V.W("html5_widevine_use_fake_pssh"))&&m.K&&!m.b9){for(;m.U.length;){var e=m.U[0],Z=sVy(m)?bYc(e):g.HG(e.initData);if(kk(m.X)&&!e.S)m.U.shift();else{if(m.S.get(Z))if(m.X.flavor!=="fairplay"||kk(m.X)){m.U.shift();continue}else m.S.delete(Z);UAK(e);break}}m.U.length&&m.createSession(m.U[0])}}; +GzK=function(m){var e;if(e=g.ti()){var Z;e=!((Z=m.Z.S)==null||!Z.getMetrics)}e&&(e=m.Z.getMetrics())&&(e=g.Se(e),m.Pv("ctmp","drm",{metrics:e}))}; +qm=function(){var m=Ea();return!(!m||m==="visible")}; +jVk=function(m){var e=yYk();e&&document.addEventListener(e,m,!1)}; +OTK=function(m){var e=yYk();e&&document.removeEventListener(e,m,!1)}; +yYk=function(){if(document.visibilityState)var m="visibilitychange";else{if(!document[Bl+"VisibilityState"])return"";m=Bl+"visibilitychange"}return m}; +p5=function(m){g.Y.call(this);var e=this;this.G=m;this.ij=0;this.C=this.S=this.L=!1;this.Z=0;this.Xq=this.G.J();this.videoData=this.G.getVideoData();this.U=g.Y4(this.Xq.experiments,"html5_delayed_retry_count");this.X=new g.eD(function(){Dn(e.G)},g.Y4(this.Xq.experiments,"html5_delayed_retry_delay_ms")); +g.U(this,this.X)}; +v0=function(m,e,Z){var M=m.videoData.U,k=m.videoData.Z;uJ(m.G.getVideoData())&&m.Xq.W("html5_gapless_fallback_on_qoe_restart")&&pwt(m.G,"pe");if((e==="progressive.net.retryexhausted"||e==="fmt.unplayable"||e==="fmt.decode")&&!m.G.vK.L&&M&&M.itag==="22")return m.G.vK.L=!0,m.AY("qoe.restart",{reason:"fmt.unplayable.22"}),SR(m.G),!0;var K=!1;if(m.videoData.isExternallyHostedPodcast){if(K=m.videoData.QE)Z.mimeType=K.type,m.B("3pp",{url:K.url});Z.ns="3pp";m.G.aE(e,1,"VIDEO_UNAVAILABLE",b_((new g.tw(e, +Z,1)).details));return!0}var q=m.ij+3E4<(0,g.G)()||m.X.isActive();if(m.Xq.W("html5_empty_src")&&m.videoData.isAd()&&e==="fmt.unplayable"&&/Empty src/.test(""+Z.msg))return Z.origin="emptysrc",m.AY("auth",Z),!0;q||aW(m.G.M9())||(Z.nonfg="paused",q=!0,m.G.pauseVideo());(e==="fmt.decode"||e==="fmt.unplayable")&&(k==null?0:LV(k)||NM(k))&&(Qmm(m.Xq.S,k.T$),Z.acfallexp=k.T$,K=q=!0);!q&&m.U>0&&(m.X.start(),q=!0,Z.delayed="1",--m.U);k=m.G.D;!q&&((M==null?0:DT(M))||(M==null?0:r6(M)))&&(Qmm(m.Xq.S,M.T$),K= +q=!0,Z.cfallexp=M.T$);if(m.Xq.W("html5_ssap_ignore_decode_error_for_next_video")&&g.gA(m.videoData)&&e==="fmt.unplayable"&&Z.cid&&Z.ccid&&aW(m.G.M9())){if(Z.cid!==Z.ccid)return Z.ignerr="1",m.AY("ssap.transitionfailure",Z),!0;m.AY("ssap.transitionfailure",Z);if(JYK(m.G,e))return!0}if(!q)return Vt7(m,Z);if(m.Xq.W("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.gA(m.videoData)&&e==="fmt.unplayable"&&Z.cid&&Z.ccid&&Z.cid!==Z.ccid&&aW(m.G.M9())&&(m.AY("ssap.transitionfailure",Z),JYK(m.G,e)))return!0; +q=!1;m.L?m.ij=(0,g.G)():q=m.L=!0;var S=m.videoData;if(S.Hv){S=S.Hv.lT();var a=Date.now()/1E3+1800;S=S6048E5&&ZDm(m,"signature");return!1}; +ZDm=function(m,e){try{window.location.reload(),m.AY("qoe.restart",{detail:"pr."+e})}catch(Z){}}; +gv=function(m,e){e=e===void 0?"fmt.noneavailable":e;var Z=m.Xq.S;Z.C=!1;ce(Z);m.AY("qoe.restart",{e:e,detail:"hdr"});Dn(m.G,!0)}; +Xw=function(m,e,Z,M,k,K){this.videoData=m;this.X=e;this.reason=Z;this.S=M;this.token=k;this.videoId=K}; +iU=function(m,e,Z){this.V=m;this.c6=e;this.G=Z;this.N=this.C=this.X=this.Z=this.j=this.S=0;this.L=!1;this.K=g.Y4(this.V.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map}; +xq=function(m,e,Z){!m.V.W("html5_tv_ignore_capable_constraint")&&g.Km(m.V)&&(Z=Z.compose(kTK(m,e)));return Z}; +uU=function(m,e){var Z,M=lU(m,(Z=e.X)==null?void 0:Z.videoInfos);Z=m.G.getPlaybackRate();return Z>1&&M?(m=BUc(m.V.S,e.X.videoInfos,Z),new Ky(0,m,!0,"o")):new Ky(0,0,!1,"o")}; +lU=function(m,e){return e&&g.Km(m.V)?e.some(function(Z){return Z.video.fps>32}):!1}; +KsK=function(m,e){var Z=m.G.fP();m.W("html5_use_video_quality_cap_for_ustreamer_constraint")&&Z&&Z.BQ>0&&aL(e.videoData.zd)&&(m=Z.BQ,e.videoData.zd=new Ky(0,m,!1,"u"));return e.videoData.zd}; +kTK=function(m,e){if(g.Km(m.V)&&ny(m.V.S,cD.HEIGHT))var Z=e.X.videoInfos[0].video.X;else{var M=!!e.X.X;var k;g.mY(m.V)&&(k=window.screen&&window.screen.width?new g.cF(window.screen.width,window.screen.height):null);k||(k=m.V.xH?m.V.xH.clone():m.c6.Xf());(Gy||C9||M)&&k.scale(iA());M=k;Rf(e.videoData)||Qu(e.videoData);e=e.X.videoInfos;if(e.length){g.Y4(m.V.experiments,"html5_override_oversend_fraction");m=g.Y4(m.V.experiments,"html5_viewport_undersend_maximum");for(k=0;k0&&(Z=Math.min(Z,M));if(M=g.Y4(m.V.experiments,"html5_max_vertical_resolution")){m=4320;for(k=0;k +M&&(m=Math.min(m,K.video.X));if(m<4320){for(k=M=0;k32){k=!0;break a}}k=!1}k&&(Z=Math.min(Z,M));(M=g.Y4(m.V.experiments,"html5_live_quality_cap"))&&e.videoData.isLivePlayback&&(Z=Math.min(Z,M));Z=ph1(m,e,Z);m=g.Y4(m.V.experiments,"html5_byterate_soft_cap");return new Ky(0,Z===4320?0:Z,!1,"d",m)}; +aAR=function(m){var e,Z,M,k;return g.Qs(function(K){switch(K.X){case 1:return m.X.X&&typeof((e=navigator.mediaCapabilities)==null?void 0:e.decodingInfo)==="function"?g.A(K,Promise.resolve(),2):K.return(Promise.resolve());case 2:Z=g.r(m.X.videoInfos),M=Z.next();case 3:if(M.done){K.pB(0);break}k=M.value;return g.A(K,nCR(k),4);case 4:M=Z.next(),K.pB(3)}})}; +gNc=function(m,e){if(!e.videoData.U||m.W("html5_disable_performance_downgrade"))return!1;Date.now()-m.j>6E4&&(m.S=0);m.S++;m.j=Date.now();if(m.S!==4)return!1;vN1(m,e.videoData.U);return!0}; +iDI=function(m,e,Z,M){if(!e||!Z||!e.videoData.U)return!1;var k=g.Y4(m.V.experiments,"html5_df_downgrade_thresh"),K=m.W("html5_log_media_perf_info");if(!((0,g.G)()-m.Z<5E3?0:K||k>0))return!1;var q=((0,g.G)()-m.Z)/1E3;m.Z=(0,g.G)();Z=Z.getVideoPlaybackQuality();if(!Z)return!1;var S=Z.droppedVideoFrames-m.C,a=Z.totalVideoFrames-m.N;m.C=Z.droppedVideoFrames;m.N=Z.totalVideoFrames;var v=Z.displayCompositedVideoFrames===0?0:Z.displayCompositedVideoFrames||-1;K&&m.V.Af()&&m.G.B("ddf",{dr:Z.droppedVideoFrames, +de:Z.totalVideoFrames,comp:v});if(M)return m.X=0,!1;if((a-S)/q>m.K||!k||g.Km(m.V))return!1;m.X=(a>60?S/a:0)>k?m.X+1:0;if(m.X!==3)return!1;vN1(m,e.videoData.U);m.G.B("dfd",Object.assign({dr:Z.droppedVideoFrames,de:Z.totalVideoFrames},XhI()));return!0}; +vN1=function(m,e){var Z=e.T$,M=e.video.fps,k=e.video.X-1,K=m.U;e=""+Z+(M>49?"p60":M>32?"p48":"");Z=V3(Z,M,K);k>0&&(Z=Math.min(Z,k));if(!RW.has(e)&&y6().includes(e)){var q=Z;Z=GE();+Z[e]>0&&(q=Math.min(+Z[e],q));Z[e]!==q&&(Z[e]=q,g.kE("yt-player-performance-cap",Z,2592E3))}else if(RW.has(e)||K==null){a:{q=q===void 0?!0:q;M=y6().slice();if(q){if(M.includes(e))break a;M.push(e)}else{if(!M.includes(e))break a;M.splice(M.indexOf(e),1)}g.kE("yt-player-performance-cap-active-set",M,2592E3)}JB.set(e,Z)}else RW.add(e), +K==null||K.set(e,Z);m.G.BE()}; +he=function(m,e){if(!e.X.X)return m.L?new Ky(0,360,!1,"b"):V5;for(var Z=!1,M=!1,k=g.r(e.X.videoInfos),K=k.next();!K.done;K=k.next())DT(K.value)?Z=!0:M=!0;Z=Z&&M;M=0;k=g.Y4(m.V.experiments,"html5_performance_cap_floor");k=m.V.U?240:k;e=g.r(e.X.videoInfos);for(K=e.next();!K.done;K=e.next()){var q=K.value;if(!Z||!DT(q))if(K=V3(q.T$,q.video.fps,m.U),q=q.video.X,Math.max(K,k)>=q){M=q;break}}return new Ky(0,M,!1,"b")}; +T9=function(m,e){var Z=m.G.M9();return Z.isInline()&&!e.CA?new Ky(0,480,!1,"v"):Z.isBackground()&&g.Xb()/1E3>60&&!g.Km(m.V)?new Ky(0,360,!1,"v"):V5}; +$q=function(m,e,Z){if(m.V.experiments.dc("html5_disable_client_autonav_cap_for_onesie")&&e.fetchType==="onesie"||g.Km(m.V)&&(LR(-1)>=1080||e.osid))return V5;var M=g.Y4(m.V.experiments,"html5_autonav_quality_cap"),k=g.Y4(m.V.experiments,"html5_autonav_cap_idle_secs");return M&&e.isAutonav&&g.Xb()/1E3>k?(Z&&(M=ph1(m,Z,M)),new Ky(0,M,!1,"e")):V5}; +ph1=function(m,e,Z){if(m.W("html5_optimality_defaults_chooses_next_higher")&&Z)for(m=e.X.videoInfos,e=1;ee||Z>10||(m.play(),g.kl(function(){RFm(m,m.getCurrentTime(),Z+1)},500))}; +hFs=function(m,e){m.i9&&e!==null&&e.i9===m.i9.i9||(m.i9&&m.i9.dispose(),m.i9=e)}; +n5=function(m){return gy(m.kE(),m.getCurrentTime())}; +Tuk=function(m,e){if(m.t7()===0||m.hasError())return!1;var Z=m.getCurrentTime()>0;return e>=0&&(m=m.lW(),m.length||!Z)?S4(m,e):Z}; +c0=function(m){m.Kd()&&(m.G&&m.G.Uk("rs_s"),g.bE&&m.getCurrentTime()>0&&m.seekTo(0),m.dJ(),m.load(),hFs(m,null));delete m.U}; +Nm=function(m){switch(m.G3()){case 2:return"progressive.net.retryexhausted";case 3:return m=m.H_(),(m==null?0:m.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||$yI&&(m==null?0:m.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.rv=function(m,e,Z){this.wG=e===void 0?null:e;this.seekSource=Z===void 0?null:Z;this.state=m||64}; +IW=function(m,e,Z){Z=Z===void 0?!1:Z;return FsK(m,e.getCurrentTime(),(0,g.G)(),n5(e),Z)}; +Ae=function(m,e,Z,M){if(!(e===m.state&&Z===m.wG&&M===m.seekSource||e!==void 0&&(e&128&&!Z||e&2&&e&16))){var k;if(k=e)k=e||m.state,k=!!(k&16||k&32);m=new g.rv(e,Z,k?M?M:m.seekSource:null)}return m}; +C5=function(m,e,Z){return Ae(m,m.state|e,null,Z===void 0?null:Z)}; +f5=function(m,e){return Ae(m,m.state&~e,null,null)}; +oW=function(m,e,Z,M){return Ae(m,(m.state|e)&~Z,null,M===void 0?null:M)}; +g.y=function(m,e){return!!(m.state&e)}; +wh3=function(m,e){return e.state===m.state&&e.wG===m.wG}; +dv=function(m){return m.isPlaying()&&!g.y(m,16)&&!g.y(m,32)}; +B0=function(m){return g.y(m,128)?-1:g.y(m,2)?0:g.y(m,2048)?3:g.y(m,64)?-1:g.y(m,1)&&!g.y(m,32)?3:g.y(m,8)?1:g.y(m,4)?2:-1}; +Er=function(m){g.Y.call(this);var e=this;this.provider=m;this.X=-1;this.C=!1;this.S=-1;this.playerState=new g.rv;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.L=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.eD(this.send,6E4,this);this.Z=!1;this.jsErrorCount=0;this.U=function(){e.jsErrorCount++}; +g.U(this,this.delay);window.addEventListener("error",this.U);window.addEventListener("unhandledrejection",this.U)}; +nNG=function(m){m.X>=0||(m.provider.G.getVisibilityState()===3?m.C=!0:(m.X=g.Yq(m.provider),m.delay.start()))}; +cgK=function(m){if(!(m.S<0)){var e=g.Yq(m.provider),Z=e-m.L;m.L=e;m.playerState.state===8?m.playTimeSecs+=Z:m.playerState.isBuffering()&&!g.y(m.playerState,16)&&(m.rebufferTimeSecs+=Z)}}; +Nut=function(m){var e;switch((e=m.V.playerCanaryStage)==null?void 0:e.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"}}; +rg3=function(m){return window.PressureObserver&&new window.PressureObserver(m)}; +Ur=function(m){m=m===void 0?rg3:m;g.Y.call(this);var e=this;this.S=m(function(M){e.X=M.at(-1)}); +var Z;this.U=(Z=this.S)==null?void 0:Z.observe("cpu",{sampleInterval:2E3})}; +IAK=function(m){var e={},Z=window.h5vcc;e.hwConcurrency=navigator.hardwareConcurrency;m.X&&(e.cpt=m.X.time,e.cps=m.X.state);if(Z==null?0:Z.cVal)e.cb2s=Z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),e.cb5s=Z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),e.cb30s=Z.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return e}; +Agt=function(m){var e;g.Qs(function(Z){if(Z.X==1)return g.A(Z,m.U,2);(e=m.S)==null||e.disconnect();g.It(Z)})}; +fA1=function(m,e){e?C9P.test(m):(m=g.D_(m),Object.keys(m).includes("cpn"))}; +bU=function(m,e,Z,M,k,K,q){var S={format:"RAW"},a={};if(g.y4(m)&&g.jS()){if(q){var v;((v=oN7.uaChPolyfill)==null?void 0:v.state.type)!==2?q=null:(q=oN7.uaChPolyfill.state.data.values,q={"Synth-Sec-CH-UA-Arch":q.architecture,"Synth-Sec-CH-UA-Model":q.model,"Synth-Sec-CH-UA-Platform":q.platform,"Synth-Sec-CH-UA-Platform-Version":q.platformVersion,"Synth-Sec-CH-UA-Full-Version":q.uaFullVersion});a=Object.assign(a,q);S.withCredentials=!0}(q=g.fE("EOM_VISITOR_DATA"))?a["X-Goog-EOM-Visitor-Id"]=q:M?a["X-Goog-Visitor-Id"]= +M:g.fE("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.fE("VISITOR_DATA"));Z&&(a["X-Goog-PageId"]=Z);(M=e.N)&&!g.lA(e)&&(a["X-Goog-AuthUser"]=M);k&&(a.Authorization="Bearer "+k);e.W("enable_datasync_id_header_in_web_vss_pings")&&e.dG&&e.datasyncId&&(a["X-YouTube-DataSync-Id"]=e.datasyncId);q||a["X-Goog-Visitor-Id"]||k||Z||M?S.withCredentials=!0:e.W("html5_send_cpn_with_options")&&C9P.test(m)&&(S.withCredentials=!0)}Object.keys(a).length>0&&(S.headers=a);K&&(S.onFinish=K);return Object.keys(S).length>1? +S:null}; +te=function(m,e,Z,M,k,K,q,S){g.jS()&&Z.token&&(m=g.sL(m,{ctt:Z.token,cttype:Z.LD,mdx_environment:Z.mdxEnvironment}));M.W("net_pings_low_priority")&&(e||(e={}),e.priority="low");K||S&&M.W("nwl_skip_retry")?(e==null?e={}:fA1(m,M.W("html5_assert_cpn_with_regex")),q?g.fM().sendAndWrite(m,e):g.fM().sendThenWrite(m,e,S)):e?(fA1(m,M.W("html5_assert_cpn_with_regex")),M.W("net_pings_use_fetch")?pUs(m,e):g.lN(m,e)):g.hL(m,k)}; +dy7=function(m){for(var e=[],Z=0;Z500&&Z.B("vmlock",{diff:K.toFixed()});Z.Qh=k},250)); +m.G.qP()&&e&&(this.Hv=e-Math.round(g.Yq(m)*1E3));this.provider.videoData.yQ&&(this.remoteControlMode=UyK[this.provider.videoData.yQ]||0);this.provider.videoData.Ut&&(e=bkb(this.provider.videoData.Ut),e==null?0:e.length)&&(this.remoteConnectedDevices=e);if(m.V.Af()||m.W("html5_log_cpu_info"))this.ZN=new Ur,g.U(this,this.ZN)}; +g.DR=function(m,e,Z,M){var k=m.X[Z];k||(k=[],m.X[Z]=k);k.push(e.toFixed(3)+":"+M.join(":"))}; +sr=function(m,e){var Z=m.adCpn||m.provider.videoData.clientPlaybackNonce,M=m.provider.getCurrentTime(Z);g.DR(m,e,"cmt",[M.toFixed(3)]);M=m.provider.xe(Z);if(m.K&&M*1E3>m.K.wx+100&&m.K){var k=m.K;Z=k.isAd;M=M*1E3-k.wx;m.sE=e*1E3-k.Kw-M-k.Bu;k=(0,g.G)()-M;e=m.sE;M=m.provider.videoData;var K=M.isAd();if(Z||K){K=(Z?"ad":"video")+"_to_"+(K?"ad":"video");var q={};M.C&&(q.cttAuthInfo={token:M.C,videoId:M.videoId});q.startTime=k-e;g.h$(K,q);g.uj({targetVideoId:M.videoId,targetCpn:M.clientPlaybackNonce},K); +g.lj("pbs",k,K)}else k=m.provider.G.jB(),k.C!==M.clientPlaybackNonce?(k.L=M.clientPlaybackNonce,k.S=e):M.ON()||g.LD(new g.Nr("CSI timing logged before gllat",{cpn:M.clientPlaybackNonce}));m.B("gllat",{l:m.sE.toFixed(),prev_ad:+Z});delete m.K}}; +yC=function(m,e){e=e===void 0?NaN:e;e=e>=0?e:g.Yq(m.provider);var Z=m.provider.G.s6(),M=Z.mY-(m.wc||0);M>0&&g.DR(m,e,"bwm",[M,(Z.gs-(m.JY||0)).toFixed(3)]);isNaN(m.wc)&&Z.mY&&m.isOffline&&bDt(m,!1);m.wc=Z.mY;m.JY=Z.gs;isNaN(Z.bandwidthEstimate)||g.DR(m,e,"bwe",[Z.bandwidthEstimate.toFixed(0)]);m.provider.V.Af()&&Object.keys(Z.X).length!==0&&m.B("bwinfo",Z.X);if(m.provider.V.Af()||m.provider.V.W("html5_log_meminfo"))M=ra3(),Object.values(M).some(function(K){return K!==void 0})&&m.B("meminfo",M); +if(m.provider.V.Af()||m.provider.V.W("html5_log_cpu_info")){var k;(M=(k=m.ZN)==null?void 0:IAK(k))&&Object.values(M).some(function(K){return K!=null})&&m.B("cpuinfo",M)}m.AR&&g.DR(m,e,"bat",[m.AR.level, +m.AR.charging?"1":"0"]);k=m.provider.G.getVisibilityState();m.yH!==k&&(g.DR(m,e,"vis",[k]),m.yH=k);sr(m,e);(k=t2K(m.provider))&&k!==m.uw&&(g.DR(m,e,"conn",[k]),m.uw=k);G9(m,e,Z)}; +G9=function(m,e,Z){if(!isNaN(Z.ZA)){var M=Z.ZA;Z.S96E3&&(new g.eD(m.reportStats,0,m)).start()}; +HDK=function(m){m.provider.videoData.LJ&&Or(m,"prefetch");m.provider.videoData.wr&&m.B("reload",{r:m.provider.videoData.reloadReason,ct:m.provider.videoData.wr});m.provider.videoData.CR&&Or(m,"monitor");m.provider.videoData.isLivePlayback&&Or(m,"live");hX&&Or(m,"streaming");m.provider.videoData.yQ&&m.B("ctrl",{mode:m.provider.videoData.yQ},!0);if(m.provider.videoData.Ut){var e=m.provider.videoData.Ut.replace(/,/g,"_");m.B("ytp",{type:e},!0)}m.provider.videoData.RD&&(e=m.provider.videoData.RD.replace(/,/g, +"."),m.B("ytrexp",{ids:e},!0));var Z=m.provider.videoData;e=m.provider.V.W("enable_white_noise")||m.provider.V.W("enable_webgl_noop");Z=!!Z.X&&Dnm(Z.X)||!!Z.X&&f8(Z.X)||!!Z.X&&oX(Z.X)||!!Z.X&&dy(Z.X);(e||Z)&&(e=Je())&&(m.X.gpu=[e]);Qu(m.provider.videoData)&&g.DR(m,g.Yq(m.provider),"dt",["1"]);m.provider.V.Af()&&(e=(0,g.G)()-m.provider.V.wr,m.B("playerage",{secs:Math.pow(1.6,Math.round(Math.log(e/1E3)/Math.log(1.6))).toFixed()}));m.Z=!0;m.C=KO(function(){m.reportStats()},1E4)}; +LsK=function(m,e,Z){var M=g.Yq(m.provider);Dyb(m,M,e,0,Z);yC(m,M);jR(m)}; +Dyb=function(m,e,Z,M,k){var K=m.provider.V.X.cbrver;m.provider.V.X.cbr==="Chrome"&&/^96[.]/.test(K)&&Z==="net.badstatus"&&/rc\.500/.test(k)&&VC(m,3);m.provider.V.W("html5_use_ump")&&/b248180278/.test(k)&&VC(m,4);K=m.provider.getCurrentTime(m.adCpn||m.provider.videoData.clientPlaybackNonce);M=M===1?"fatal":"";Z=[Z,M,K.toFixed(3)];M&&(k+=";a6s."+LB());k&&Z.push(s1c(k));g.DR(m,e,"error",Z);m.Z=!0}; +GTI=function(m){m.U>=0||(m.provider.V.mw||m.provider.G.getVisibilityState()!==3?m.U=g.Yq(m.provider):m.tR=!0)}; +ygR=function(m,e,Z,M){if(Z!==m.S){e=10&&m.playTimeSecs<=180&&(m.X.qoealert=["1"],m.CR=!0)),Z!=="B"||m.S!=="PL"&&m.S!=="PB"||(m.isBuffering=!0),m.L=e);m.S==="PL"&&(Z==="B"||Z==="S")||m.provider.V.Af()?yC(m,e):(m.mw||Z!=="PL"||(m.mw=!0,G9(m,e,m.provider.G.s6())),sr(m,e));Z==="PL"&&g.ZZ(m.qs);var k=[Z];Z==="S"&&M&&k.push("ss."+M);g.DR(m,e,"vps",k);m.S=Z;m.wr=e;m.L= +e;m.Z=!0}}; +Or=function(m,e){var Z=m.X.cat||[];Z.push(e);m.X.cat=Z}; +bDt=function(m,e){m.isOffline=e;g.DR(m,g.Yq(m.provider),"is_offline",[m.isOffline?"1":"0"])}; +W0=function(m,e,Z,M,k,K){var q=g.Yq(m.provider);Z!==1&&Z!==3&&Z!==5||g.DR(m,q,"vps",[m.S]);var S=m.X.xvt||[];S.push("t."+q.toFixed(3)+";m."+K.toFixed(3)+";g."+e+";tt."+Z+";np.0;c."+M+";d."+k);m.X.xvt=S}; +VC=function(m,e){if(!m.XG){var Z=m.X.fcnz;Z||(Z=[],m.X.fcnz=Z);Z.push(String(e));m.XG=!0}}; +s1c=function(m){/[^a-zA-Z0-9;.!_-]/.test(m)&&(m=m.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return m}; +P0=function(m){this.provider=m;this.j=!1;this.X=0;this.Z=-1;this.Gw=NaN;this.U=0;this.segments=[];this.C=this.L=0;this.previouslyEnded=!1;this.K=this.provider.G.getVolume();this.N=this.provider.G.isMuted()?1:0;this.S=z9(this.provider)}; +mq=function(m){m.S.startTime=m.U;m.S.endTime=m.X;var e=!1;m.segments.length&&g.i7(m.segments).isEmpty()?(m.segments[m.segments.length-1].previouslyEnded&&(m.S.previouslyEnded=!0),m.segments[m.segments.length-1]=m.S,e=!0):m.segments.length&&m.S.isEmpty()||(m.segments.push(m.S),e=!0);e?m.S.endTime===0&&(m.previouslyEnded=!1):m.S.previouslyEnded&&(m.previouslyEnded=!0);m.L+=m.X-m.U;m.S=z9(m.provider);m.S.previouslyEnded=m.previouslyEnded;m.previouslyEnded=!1;m.U=m.X}; +ODP=function(m){j1b(m);m.C=KO(function(){m.update()},100); +m.Gw=g.Yq(m.provider);m.S=z9(m.provider)}; +j1b=function(m){qC(m.C);m.C=NaN}; +JgR=function(m,e,Z){Z-=m.Gw;return e===m.X&&Z>.5}; +ex=function(m,e,Z,M){this.V=e;this.Te=Z;this.segments=[];this.experimentIds=[];this.Hv=this.wr=this.isFinal=this.delayThresholdMet=this.mw=this.LJ=this.autoplay=this.autonav=!1;this.tf="yt";this.j=[];this.C=this.K=null;this.sendVisitorIdHeader=this.nB=!1;this.N=this.pageId="";this.L=Z==="watchtime";this.U=Z==="playback";this.S9=Z==="atr";this.dG=Z==="engage";this.sendVisitorIdHeader=!1;this.uri=this.S9?"/api/stats/"+Z:"//"+e.Do+"/api/stats/"+Z;M&&(this.wr=M.fs,M.rtn&&(this.C=M.rtn),this.L?(this.playerState= +M.state,M.rti>0&&(this.K=M.rti)):(this.Mm=M.mos,this.O9=M.volume,M.at&&(this.adType=M.at)),M.autonav&&(this.autonav=M.autonav),M.inview!=null&&(this.JY=M.inview),M.size&&(this.uw=M.size),M.playerwidth&&(this.playerWidth=M.playerwidth),M.playerheight&&(this.playerHeight=M.playerheight));this.lX=g.y2(e.X);this.N=g.Tx(e.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Wq=g.y2(e.Hv);this.oY=e.tR;this.experimentIds=Cxm(e.experiments);this.kG=e.yh;this.tf=e.L;this.region= +e.region;this.userAge=e.userAge;this.ZN=e.qs;this.qs=g.Xb();this.sendVisitorIdHeader=e.sendVisitorIdHeader;this.b9=e.W("vss_pings_using_networkless")||e.W("kevlar_woffle");this.HV=e.W("vss_final_ping_send_and_write");this.Qh=e.W("vss_use_send_and_write");this.pageId=e.pageId;this.aF=e.W("vss_playback_use_send_and_write");e.livingRoomAppMode&&(this.livingRoomAppMode=e.livingRoomAppMode);this.Sp=e.Z&&e.W("embeds_append_synth_ch_headers");On(e)&&(this.yh=e.j);CA(eA(e))&&this.j.push(1);this.accessToken= +g.bJ(m);m.Jd[this.Te]?this.Z=m.Jd[this.Te]:m.Jd.playback&&(this.Z=m.Jd.playback);this.adFormat=m.adFormat;this.adQueryId=m.adQueryId;this.autoplay=Us(m);this.U&&(this.LJ=(m.W("html5_enable_log_server_autoplay")||m.W("enable_cleanup_masthead_autoplay_hack_fix"))&&m.wW&&dA(m)==="adunit"?!0:!1);this.autonav=m.isAutonav||this.autonav;this.contentVideoId=Es(m);this.clientPlaybackNonce=m.clientPlaybackNonce;this.mw=m.hE;m.C&&(this.Y=m.C,this.CR=m.GT);m.mdxEnvironment&&(this.mdxEnvironment=m.mdxEnvironment); +this.X=m.bb;this.KB=m.KB;m.U&&(this.xa=m.U.itag,m.Z&&m.Z.itag!==this.xa&&(this.XG=m.Z.itag));m.X&&lR(m.X)&&(this.offlineDownloadUserChoice="1");this.eventLabel=dA(m);this.Hv=m.O9?!1:m.tf;this.NP=m.cX;if(e=If(m))this.K1=e;this.JJ=m.Ax;this.partnerId=m.partnerId;this.eventId=m.eventId;this.playlistId=m.VL||m.playlistId;this.qM=m.qM;this.yQ=m.yQ;this.Ut=m.Ut;this.jC=m.jC;this.subscribed=m.subscribed;this.videoId=m.videoId;this.videoMetadata=m.videoMetadata;this.visitorData=m.visitorData;this.osid=m.osid; +this.Ln=m.Ln;this.referrer=m.referrer;this.bC=m.z9||m.bC;this.tR=m.ML;this.xW=m.xW;this.userGenderAge=m.userGenderAge;this.hj=m.hj;this.embedsRct=m.embedsRct;this.embedsRctn=m.embedsRctn;On(this.V)&&m.mutedAutoplay&&this.j.push(2);m.vY(new g.cF(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.j.push(3);RbP(m)&&this.j.push(4);this.wc=m.Ij;m.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=m.compositeLiveIngestionOffsetToken)}; +g.ZX=function(m,e){var Z=m.sendVisitorIdHeader?m.visitorData:void 0;return g.Tk(m.V,m.accessToken).then(function(M){return bU(m.uri,m.V,m.pageId,Z,M,e,m.Sp)})}; +g.k$=function(m){var e={ns:m.tf,el:m.eventLabel,cpn:m.clientPlaybackNonce,ver:2,cmt:m.S(m.X),fmt:m.xa,fs:m.wr?"1":"0",rt:m.S(m.yH),adformat:m.adFormat,content_v:m.contentVideoId,euri:m.oY,lact:m.qs,live:m.K1,cl:(704511060).toString(),mos:m.Mm,state:m.playerState,volume:m.O9};m.subscribed&&(e.subscribed="1");Object.assign(e,m.lX);m.N==="all"?Object.assign(e,m.Wq):m.N==="once"&&m.U&&Object.assign(e,m.Wq);m.autoplay&&(e.autoplay="1");m.LJ&&(e.sautoplay="1");m.mw&&(e.dni="1");!m.L&&m.yh&&(e.epm=V2P[m.yh]); +m.isFinal&&(e["final"]="1");m.Hv&&(e.splay="1");m.KB&&(e.delay=m.KB);m.kG&&(e.hl=m.kG);m.region&&(e.cr=m.region);m.userGenderAge&&(e.uga=m.userGenderAge);m.userAge!==void 0&&m.ZN&&(e.uga=m.ZN+m.userAge);m.sE!==void 0&&(e.len=m.S(m.sE));!m.L&&m.experimentIds.length>0&&(e.fexp=m.experimentIds.toString());m.C!==null&&(e.rtn=m.S(m.C));m.bC&&(e.feature=m.bC);m.yQ&&(e.ctrl=m.yQ);m.Ut&&(e.ytr=m.Ut);m.XG&&(e.afmt=m.XG);m.offlineDownloadUserChoice&&(e.ODUC=m.offlineDownloadUserChoice);m.Bq&&(e.lio=m.S(m.Bq)); +m.L?(e.idpj=m.NP,e.ldpj=m.JJ,m.delayThresholdMet&&(e.dtm="1"),m.K!=null&&(e.rti=m.S(m.K)),m.hj&&(e.ald=m.hj),m.compositeLiveIngestionOffsetToken&&(e.clio=m.compositeLiveIngestionOffsetToken)):m.adType!==void 0&&(e.at=m.adType);m.uw&&(m.U||m.L)&&(e.size=m.uw);m.U&&m.j.length&&(e.pbstyle=m.j.join(","));m.JY!=null&&(m.U||m.L)&&(e.inview=m.S(m.JY));m.L&&(e.volume=Mu(m,g.qI(m.segments,function(M){return M.volume})),e.st=Mu(m,g.qI(m.segments,function(M){return M.startTime})),e.et=Mu(m,g.qI(m.segments,function(M){return M.endTime})), +g.Yd(m.segments,function(M){return M.playbackRate!==1})&&(e.rate=Mu(m,g.qI(m.segments,function(M){return M.playbackRate}))),g.Yd(m.segments,function(M){return M.X!=="-"})&&(e.als=g.qI(m.segments,function(M){return M.X}).join(",")),g.Yd(m.segments,function(M){return M.previouslyEnded})&&(e.pe=g.qI(m.segments,function(M){return""+ +M.previouslyEnded}).join(","))); +e.muted=Mu(m,g.qI(m.segments,function(M){return M.muted?1:0})); +g.Yd(m.segments,function(M){return M.visibilityState!==0})&&(e.vis=Mu(m,g.qI(m.segments,function(M){return M.visibilityState}))); +g.Yd(m.segments,function(M){return M.connectionType!==0})&&(e.conn=Mu(m,g.qI(m.segments,function(M){return M.connectionType}))); +g.Yd(m.segments,function(M){return M.S!==0})&&(e.blo=Mu(m,g.qI(m.segments,function(M){return M.S}))); +g.Yd(m.segments,function(M){return!!M.U})&&(e.blo=g.qI(m.segments,function(M){return M.U}).join(",")); +g.Yd(m.segments,function(M){return!!M.compositeLiveStatusToken})&&(e.cbs=g.qI(m.segments,function(M){return M.compositeLiveStatusToken}).join(",")); +g.Yd(m.segments,function(M){return M.L!=="-"})&&(e.cc=g.qI(m.segments,function(M){return M.L}).join(",")); +g.Yd(m.segments,function(M){return M.clipId!=="-"})&&(e.clipid=g.qI(m.segments,function(M){return M.clipId}).join(",")); +if(g.Yd(m.segments,function(M){return!!M.Z})){var Z="au"; +m.U&&(Z="au_d");e[Z]=g.qI(m.segments,function(M){return M.Z}).join(",")}g.jS()&&m.Y&&(e.ctt=m.Y,e.cttype=m.CR,e.mdx_environment=m.mdxEnvironment); +m.dG&&(e.etype=m.AR!==void 0?m.AR:0);m.tR&&(e.uoo=m.tR);m.livingRoomAppMode&&m.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(e.clram=WsI[m.livingRoomAppMode]||m.livingRoomAppMode);m.Z?zFb(m,e):(e.docid=m.videoId,e.referrer=m.referrer,e.ei=m.eventId,e.of=m.Ln,e.osid=m.osid,e.vm=m.videoMetadata,m.adQueryId&&(e.aqi=m.adQueryId),m.autonav&&(e.autonav="1"),m.playlistId&&(e.list=m.playlistId),m.jC&&(e.ssrt="1"),m.xW&&(e.upt=m.xW));m.U&&(m.embedsRct&&(e.rct=m.embedsRct),m.embedsRctn&&(e.rctn= +m.embedsRctn),m.compositeLiveIngestionOffsetToken&&(e.clio=m.compositeLiveIngestionOffsetToken));m.wc&&(e.host_cpn=m.wc);return e}; +zFb=function(m,e){if(e&&m.Z){var Z=new Set(["q","feature","mos"]),M=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),k=new Set(["aqi","autonav","list","ssrt","upt"]);m.Z.ns==="3pp"&&(e.ns="3pp");for(var K=g.r(Object.keys(m.Z)),q=K.next();!q.done;q=K.next())q=q.value,M.has(q)||Z.has(q)||k.has(q)&&!m.Z[q]||(e[q]=m.Z[q])}}; +Mu=function(m,e){return g.qI(e,m.S).join(",")}; +g.P93=function(m){m.indexOf("watchtime")!==-1&&g.D2("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:m}})}; +mKm=function(m,e){m.attestationResponse&&g.ZX(m).then(function(Z){Z=Z||{};Z.method="POST";Z.postParams={atr:m.attestationResponse};m.b9?m.Qh?g.fM().sendAndWrite(e,Z):g.fM().sendThenWrite(e,Z):g.lN(e,Z)})}; +g.Kx=function(m){g.Y.call(this);this.provider=m;this.C="paused";this.L=NaN;this.j=[10,10,10,40];this.K=this.N=0;this.AR=this.b9=this.S9=this.Y=this.U=!1;this.S=this.Z=NaN;this.X=new P0(m)}; +M9K=function(m){if(!m.U){m.provider.videoData.b3===16623&&g.LD(Error("Playback for EmbedPage"));var e=g.qu(m,"playback");a:{if(m.provider.V.W("web_player_use_server_vss_schedule")){var Z,M=(Z=m.provider.videoData.getPlayerResponse())==null?void 0:Z.playbackTracking,k=M==null?void 0:M.videostatsScheduledFlushWalltimeSeconds;M=M==null?void 0:M.videostatsDefaultFlushIntervalSeconds;if(k&&k.length>0&&M){Z=[];var K=m.provider.videoData.cX,q=m.provider.videoData.Ax,S=-K;k=g.r(k);for(var a=k.next();!a.done;a= +k.next())a=a.value,Z.push(a-S),S=a;Z.push(M+q-K);Z.push(M);m.j=Z;break a}}m.j=[10+m.provider.videoData.cX,10,10,40+m.provider.videoData.Ax-m.provider.videoData.cX,40]}ODP(m.X);e.C=px(m);m.S>0&&(e.X-=m.S);e.send();m.provider.videoData.Br&&(e=m.provider.V,M=m.provider.videoData,Z={html5:"1",video_id:M.videoId,cpn:M.clientPlaybackNonce,ei:M.eventId,ptk:M.Br,oid:M.RH,ptchn:M.vB,pltype:M.ST,content_v:Es(M)},M.ws&&Object.assign(Z,{m:M.ws}),e=g.tV(e.K+"ptracking",Z),Sx(m,e));m.provider.videoData.KB||(e8R(m), +Z_t(m),m.Lv());m.U=!0;e=m.X;e.X=e.provider.G.xe();e.Gw=g.Yq(e.provider);!(e.U===0&&e.X<5)&&e.X-e.U>2&&(e.U=e.X);e.j=!0;m.provider.V.W("html5_log_vss_details")&&m.provider.G.B("vssinit",{})}}; +px=function(m,e){e=e===void 0?NaN:e;var Z=g.Yq(m.provider);e=isNaN(e)?Z:e;e=Math.ceil(e);var M=m.j[m.N];m.N+11E3;!(K.length>1)&&K[0].isEmpty()||S||(q.C=px(m,k));q.send();m.K++}},(k-Z)*1E3); +return m.Z=k}; +vZ=function(m){window.clearTimeout(m.L);m.L=NaN}; +aE=function(m){m.X.update();m=m.X;m.segments.length&&m.X===m.U||mq(m);var e=m.segments;m.segments=[];return e}; +g.qu=function(m,e){var Z=KJP(m.provider);Object.assign(Z,{state:m.C});e=new ex(m.provider.videoData,m.provider.V,e,Z);e.X=m.provider.G.xe();Z=m.provider.videoData.clientPlaybackNonce;e.X=m.provider.G.tv(Z);m.provider.videoData.isLivePlayback||(e.sE=m.provider.G.getDuration(Z));m.provider.videoData.X&&(Z=m.provider.videoData.X.Zx(e.X))&&(e.Bq=Z-e.X);e.yH=g.Yq(m.provider);e.segments=[z9(m.provider)];return e}; +k87=function(m,e){var Z=g.qu(m,"watchtime");qKR(m)&&(Z.delayThresholdMet=!0,m.S9=!0);if(m.S>0){for(var M=g.r(e),k=M.next();!k.done;k=M.next())k=k.value,k.startTime-=m.S,k.endTime-=m.S;Z.X-=m.S}else Z.X=m.X.E4();Z.segments=e;return Z}; +Xf=function(m,e){var Z=gR(m,!isNaN(m.Z));e&&(m.Z=NaN);return Z}; +gR=function(m,e){var Z=k87(m,aE(m));!isNaN(m.Z)&&e&&(Z.K=m.Z);return Z}; +qKR=function(m){var e;if(e=m.provider.videoData.isLoaded()&&m.provider.videoData.KB&&m.U&&!m.S9)e=m.X,e=e.L+e.provider.G.xe()-e.U>=m.provider.videoData.KB;return!!e}; +e8R=function(m){m.provider.videoData.youtubeRemarketingUrl&&!m.b9&&(Sx(m,m.provider.videoData.youtubeRemarketingUrl),m.b9=!0)}; +Z_t=function(m){m.provider.videoData.googleRemarketingUrl&&!m.AR&&(Sx(m,m.provider.videoData.googleRemarketingUrl),m.AR=!0)}; +iX=function(m){m.provider.V.W("html5_log_vss_details")&&m.provider.G.B("vssfi",{});if(!m.MU()&&m.U){m.C="paused";var e=Xf(m);e.isFinal=!0;e.send();m.dispose()}}; +uX=function(m,e){if(!m.MU())if(g.y(e.state,2)||g.y(e.state,512)){if(m.C="paused",g.x$(e,2)||g.x$(e,512))g.x$(e,2)&&(m.X.previouslyEnded=!0),m.U&&(vZ(m),Xf(m).send(),m.Z=NaN)}else if(g.y(e.state,8)){m.C="playing";var Z=m.U&&isNaN(m.L)?px(m):NaN;!isNaN(Z)&&(g.lX(e,64)<0||g.lX(e,512)<0)&&(m=gR(m,!1),m.C=Z,m.send())}else m.C="paused"}; +pTK=function(m,e,Z){if(!m.Y){Z||(Z=g.qu(m,"atr"));Z.attestationResponse=e;try{Z.send()}catch(M){if(M.message!=="Unknown Error")throw M;}m.Y=!0}}; +Sx=function(m,e){var Z=m.provider.V;g.Tk(m.provider.V,g.bJ(m.provider.videoData)).then(function(M){var k=m.provider.V.pageId,K=m.provider.V.sendVisitorIdHeader?m.provider.videoData.visitorData:void 0,q=m.provider.V.W("vss_pings_using_networkless")||m.provider.V.W("kevlar_woffle"),S=m.provider.V.W("allow_skip_networkless");M=bU(e,Z,k,K,M);te(e,M,{token:m.provider.videoData.C,LD:m.provider.videoData.GT,mdxEnvironment:m.provider.videoData.mdxEnvironment},Z,void 0,q&&!S,!1,!0)})}; +SKt=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.Z="";this.S=0;this.compositeLiveStatusToken=this.U=void 0;this.volume=this.connectionType=0;this.muted=!1;this.X=this.clipId="-";this.previouslyEnded=!1}; +RE=function(m,e,Z){this.videoData=m;this.V=e;this.G=Z;this.X=void 0}; +g.Yq=function(m){return g.arP(m)()}; +g.arP=function(m){if(!m.X){var e=g.pz(function(M){var k=(0,g.G)();M&&k<=631152E6&&(m.G.B("ytnerror",{issue:28799967,value:""+k}),k=(new Date).getTime()+2);return k},m.V.W("html5_validate_yt_now")),Z=e(); +m.X=function(){return Math.round(e()-Z)/1E3}; +m.G.cz()}return m.X}; +KJP=function(m){var e=m.G.Qo()||{};e.fs=m.G.jW();e.volume=m.G.getVolume();e.muted=m.G.isMuted()?1:0;e.mos=e.muted;e.clipid=m.G.Y2();var Z;e.playerheight=((Z=m.G.getPlayerSize())==null?void 0:Z.height)||0;var M;e.playerwidth=((M=m.G.getPlayerSize())==null?void 0:M.width)||0;m=m.videoData;Z={};m.U&&(Z.fmt=m.U.itag,m.Z&&(m.lX?m.Z.itag!==m.U.itag:m.Z.itag!=m.U.itag)&&(Z.afmt=m.Z.itag));Z.ei=m.eventId;Z.list=m.playlistId;Z.cpn=m.clientPlaybackNonce;m.videoId&&(Z.v=m.videoId);m.C0&&(Z.infringe=1);(m.O9? +0:m.tf)&&(Z.splay=1);(M=If(m))&&(Z.live=M);m.wW&&(Z.sautoplay=1);m.uP&&(Z.autoplay=1);m.qM&&(Z.sdetail=m.qM);m.partnerId&&(Z.partnerid=m.partnerId);m.osid&&(Z.osid=m.osid);m.Qe&&(Z.cc=g.ELK(m.Qe));return Object.assign(e,Z)}; +t2K=function(m){var e=NgR();if(e)return vnm[e]||vnm.other;if(g.Km(m.V)){m=navigator.userAgent;if(/[Ww]ireless[)]/.test(m))return 3;if(/[Ww]ired[)]/.test(m))return 30}return 0}; +z9=function(m){var e=new SKt,Z;e.L=((Z=KJP(m).cc)==null?void 0:Z.toString())||"-";e.playbackRate=m.G.getPlaybackRate();Z=m.G.getVisibilityState();Z!==0&&(e.visibilityState=Z);m.V.Qh&&(e.S=1);e.U=m.videoData.U0;e.compositeLiveStatusToken=m.videoData.compositeLiveStatusToken;Z=m.G.getAudioTrack();Z.MB&&Z.MB.id&&Z.MB.id!=="und"&&(e.Z=Z.MB.id);e.connectionType=t2K(m);e.volume=m.G.getVolume();e.muted=m.G.isMuted();e.clipId=m.G.Y2()||"-";e.X=m.videoData.C3||"-";return e}; +g.hN=function(m,e){this.state=m;this.F2=e}; +g.lX=function(m,e){return g.y(m.state,e)&&!g.y(m.F2,e)?1:!g.y(m.state,e)&&g.y(m.F2,e)?-1:0}; +g.x$=function(m,e){return g.lX(m,e)>0}; +g.TR=function(m,e){g.Y.call(this);this.provider=m;this.L=!1;this.U=new Map;this.Z=new g.rv;this.provider.videoData.J5()&&!this.provider.videoData.BS&&(this.X=new g.Kx(this.provider),this.X.S=this.provider.videoData.qs/1E3,g.U(this,this.X),this.qoe=new g.L5(this.provider,e),g.U(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Zk=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.Zk,this.X));if(m.V.playerCanaryState==="canary"||m.V.playerCanaryState==="holdback")this.S= +new Er(this.provider),g.U(this,this.S)}; +$$=function(m){return!!m.X&&!!m.qoe}; +Ff=function(m){m.S&&nNG(m.S);m.qoe&>I(m.qoe)}; +gny=function(m){if(m.qoe){m=m.qoe;for(var e=m.provider.videoData,Z=m.provider.V,M=g.r(Z.aF),k=M.next();!k.done;k=M.next())Or(m,k.value);if(m.provider.W("html5_enable_qoe_cat_list"))for(M=g.r(e.td),k=M.next();!k.done;k=M.next())Or(m,k.value);else e.aF&&Or(m,m.provider.videoData.aF);e.gr()&&(M=e.X,vQ(e)&&Or(m,"manifestless"),M&&L8(M)&&Or(m,"live-segment-"+L8(M).toFixed(1)));Mw(e)?Or(m,"sabr"):m.nu(wA(e));if(tF(e)||e.NO())e.NO()&&Or(m,"ssa"),Or(m,"lifa");e.gatewayExperimentGroup&&(M=e.gatewayExperimentGroup, +M==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?M="spkadtrt":M==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(M="spkadctrl"),Or(m,M));Z.L!=="yt"&&(m.X.len=[e.lengthSeconds.toFixed(2)]);e.cotn&&!Qu(e)&&bDt(m,!0);if(Z.Af()&&((e=YQs())&&m.B("cblt",{m:e}),Z.W("html5_log_screen_diagonal"))){Z=m.B;var K,q;e=((K=window.h5vcc)==null?0:(q=K.screen)==null?0:q.getDiagonal)?window.h5vcc.screen.getDiagonal():0;Z.call(m,"cbltdiag",{v:e})}}}; +XTG=function(m){if(m.provider.G.qP()){if(m.L)return;m.L=!0}m.X&&M9K(m.X);if(m.S){m=m.S;var e=g.Yq(m.provider);m.X<0&&(m.X=e,m.delay.start());m.S=e;m.L=e}}; +i_K=function(m,e){m.X&&(m=m.X,e===58?m.X.update():m.U&&(vZ(m),Xf(m).send(),m.Z=NaN))}; +xKk=function(m,e){if(g.x$(e,1024)||g.x$(e,512)||g.x$(e,4)){if(m.S){var Z=m.S;Z.S>=0||(Z.X=-1,Z.delay.stop())}m.qoe&&(Z=m.qoe,Z.N||(Z.U=-1))}if(m.provider.videoData.enableServerStitchedDai&&m.Zk){var M;(M=m.U.get(m.Zk))==null||uX(M,e)}else m.X&&uX(m.X,e);if(m.qoe){M=m.qoe;Z=e.state;var k=g.Yq(M.provider),K=M.getPlayerState(Z);ygR(M,k,K,Z.seekSource||void 0);K=Z.wG;g.y(Z,128)&&K&&(K.Vw=K.Vw||"",Dyb(M,k,K.errorCode,K.Xk,K.Vw));(g.y(Z,2)||g.y(Z,128))&&M.reportStats(k);Z.isPlaying()&&!M.N&&(M.U>=0&&(M.X.user_intent= +[M.U.toString()]),M.N=!0);jR(M)}m.S&&(M=m.S,cgK(M),M.playerState=e.state,M.S>=0&&g.x$(e,16)&&M.seekCount++,e.state.isError()&&M.send());m.provider.G.qP()&&(m.Z=e.state)}; +lrG=function(m){if(m.provider.videoData.enableServerStitchedDai&&m.Zk){var e;(e=m.U.get(m.Zk))!=null&&mq(e.X)}else m.X&&mq(m.X.X)}; +wR=function(m){m.S&&m.S.send();if(m.qoe){var e=m.qoe;if(e.Z){e.S==="PL"&&(e.S="N");var Z=g.Yq(e.provider);g.DR(e,Z,"vps",[e.S]);e.N||(e.U>=0&&(e.X.user_intent=[e.U.toString()]),e.N=!0);e.provider.V.Af()&&e.B("finalized",{});e.b9=!0;e.reportStats(Z)}}if(m.provider.videoData.enableServerStitchedDai)for(e=g.r(m.U.values()),Z=e.next();!Z.done;Z=e.next())iX(Z.value);else m.X&&iX(m.X);m.dispose()}; +u51=function(m,e){m.X&&pTK(m.X,e)}; +R8t=function(m){if(!m.X)return null;var e=g.qu(m.X,"atr");return function(Z){m.X&&pTK(m.X,Z,e)}}; +h8m=function(m,e,Z,M){Z.adFormat=Z.Wq;var k=e.G;e=new g.Kx(new RE(Z,e.V,{getDuration:function(){return Z.lengthSeconds}, +getCurrentTime:function(){return k.getCurrentTime()}, +xe:function(){return k.xe()}, +tv:function(){return k.tv()}, +qP:function(){return k.qP()}, +s6:function(){return k.s6()}, +getPlayerSize:function(){return k.getPlayerSize()}, +getAudioTrack:function(){return Z.getAudioTrack()}, +getPlaybackRate:function(){return k.getPlaybackRate()}, +Fg:function(){return k.Fg()}, +getVisibilityState:function(){return k.getVisibilityState()}, +jB:function(){return k.jB()}, +Qo:function(){return k.Qo()}, +getVolume:function(){return k.getVolume()}, +isMuted:function(){return k.isMuted()}, +jW:function(){return k.jW()}, +Y2:function(){return k.Y2()}, +getProximaLatencyPreference:function(){return k.getProximaLatencyPreference()}, +cz:function(){k.cz()}, +B:function(K,q){k.B(K,q)}})); +e.S=M;g.U(m,e);return e}; +Tzc=function(){this.ZA=0;this.U=this.gs=this.mY=this.S=NaN;this.X={};this.bandwidthEstimate=NaN}; +nx=function(m,e,Z){g.Y.call(this);this.V=m;this.G=e;this.S=Z;this.X=new Map;this.Zk=""}; +$KG=function(m,e){m.X.has(e)&&(wR(m.X.get(e)),m.X.delete(e))}; +FJR=function(){this.X=g.bc;this.array=[]}; +nnk=function(m,e,Z){var M=[];for(e=wTP(m,e);eZ)break}return M}; +cZ=function(m,e){var Z=[];m=g.r(m.array);for(var M=m.next();!M.done&&!(M=M.value,M.contains(e)&&Z.push(M),M.start>e);M=m.next());return Z}; +c43=function(m){return m.array.slice(wTP(m,0x7ffffffffffff),m.array.length)}; +wTP=function(m,e){m=oO(m.array,function(Z){return e-Z.start||1}); +return m<0?-(m+1):m}; +Nzc=function(m,e){var Z=NaN;m=g.r(m.array);for(var M=m.next();!M.done;M=m.next())if(M=M.value,M.contains(e)&&(isNaN(Z)||M.ende&&(isNaN(Z)||M.startm.mediaTime+m.L&&e1)m.Z=!0;if((k===void 0?0:k)||isNaN(m.S))m.S=e;if(m.X)e!==m.mediaTime&&(m.X=!1);else if(e>0&&m.mediaTime===e){k=1500;if(m.V.W("html5_buffer_underrun_transition_fix")){k=g.Y4(m.V.experiments,"html5_min_playback_advance_for_steady_state_secs");var K=g.Y4(m.V.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");k=k>0&&K>0&&Math.abs(e-m.S)(M||!m.Z?k:400)}m.mediaTime=e;m.U=Z;return!1}; +frt=function(m,e){this.videoData=m;this.X=e}; +onc=function(m,e,Z){return e.Yj(Z).then(function(){return g.rh(new frt(e,e.S))},function(M){M instanceof Error&&g.LD(M); +var k=mg('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),K=ZF('audio/mp4; codecs="mp4a.40.2"'),q=k||K,S=e.isLivePlayback&&!g.ne(m.S,!0);M="fmt.noneavailable";S?M="html5.unsupportedlive":q||(M="html5.missingapi");q=S||!q?2:1;k={buildRej:"1",a:e.w$(),d:!!e.uw,drm:e.T3(),f18:e.JJ.indexOf("itag=18")>=0,c18:k};e.X&&(e.T3()?(k.f142=!!e.X.X["142"],k.f149=!!e.X.X["149"],k.f279=!!e.X.X["279"]):(k.f133=!!e.X.X["133"],k.f140=!!e.X.X["140"],k.f242=!!e.X.X["242"]),k.cAAC=K,k.cAVC=ZF('video/mp4; codecs="avc1.42001E"'), +k.cVP9=ZF('video/webm; codecs="vp9"'));e.L&&(k.drmsys=e.L.keySystem,K=0,e.L.X&&(K=Object.keys(e.L.X).length),k.drmst=K);return new g.tw(M,k,q)})}; +AN=function(m){this.data=window.Float32Array?new Float32Array(m):Array(m);this.S=this.X=m-1}; +dKK=function(m){return m.data[m.X]||0}; +Bzb=function(m){this.L=m;this.U=this.S=0;this.Z=new AN(50)}; +fx=function(m,e,Z){g.m6.call(this);this.videoData=m;this.experiments=e;this.C=Z;this.S=[];this.Z=0;this.U=!0;this.L=!1;this.j=0;Z=new EnG;m.latencyClass==="ULTRALOW"&&(Z.Z=!1);m.CR?Z.S=3:g.fI(m)&&(Z.S=2);m.latencyClass==="NORMAL"&&(Z.L=!0);var M=g.Y4(e,"html5_liveness_drift_proxima_override");if(wA(m)!==0&&M){Z.X=M;var k;((k=m.X)==null?0:QaP(k))&&Z.X--}Mw(m)&&e.dc("html5_sabr_parse_live_metadata_playback_boundaries")&&(Z.j=!0);if(Yl("trident/")||Yl("edge/"))k=g.Y4(e,"html5_platform_minimum_readahead_seconds")|| +3,Z.U=Math.max(Z.U,k);g.Y4(e,"html5_minimum_readahead_seconds")&&(Z.U=g.Y4(e,"html5_minimum_readahead_seconds"));g.Y4(e,"html5_maximum_readahead_seconds")&&(Z.C=g.Y4(e,"html5_maximum_readahead_seconds"));e.dc("html5_force_adaptive_readahead")&&(Z.Z=!0);if(e=g.Y4(e,"html5_liveness_drift_chunk_override"))Z.X=e;Fh(m)&&(Z.X=(Z.X+1)/5,m.latencyClass==="LOW"&&(Z.X*=2));this.policy=Z;this.N=this.policy.S!==1;this.X=Cx(this,YKs(this,isNaN(m.liveChunkReadahead)?3:m.liveChunkReadahead,m))}; +UKP=function(m,e){if(e)return e=m.videoData,e=YKs(m,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e),Cx(m,e);if(m.S.length){if(Math.min.apply(null,m.S)>1)return Cx(m,m.X-1);if(m.policy.Z)return Cx(m,m.X+1)}return m.X}; +b_t=function(m,e){if(!m.S.length)return!1;var Z=m.X;m.X=UKP(m,e===void 0?!1:e);if(e=Z!==m.X)m.S=[],m.Z=0;return e}; +dR=function(m,e){return e>=m.zT()-oE(m)}; +t9K=function(m,e,Z){e=dR(m,e);Z||e?e&&(m.U=!0):m.U=!1;m.N=m.policy.S===2||m.policy.S===3&&m.U}; +QSP=function(m,e){e=dR(m,e);m.L!==e&&m.Pv("livestatusshift",e);m.L=e}; +oE=function(m){var e=m.policy.X;m.L||(e=Math.max(e-1,0));return e*BZ(m)}; +YKs=function(m,e,Z){Z.CR&&e--;Fh(Z)&&(e=1);if(wA(Z)!==0&&(m=g.Y4(m.experiments,"html5_live_chunk_readahead_proxima_override"))){e=m;var M;((M=Z.X)==null?0:QaP(M))&&e++}return e}; +BZ=function(m){return m.videoData.X?L8(m.videoData.X)||5:5}; +Cx=function(m,e){e=Math.max(Math.max(1,Math.ceil(m.policy.U/BZ(m))),e);return Math.min(Math.min(8,Math.floor(m.policy.C/BZ(m))),e)}; +EnG=function(){this.U=0;this.C=Infinity;this.Z=!0;this.X=2;this.S=1;this.j=this.L=!1}; +Uv=function(m){g.Y.call(this);this.G=m;this.X=0;this.S=null;this.C=this.Z=0;this.U={};this.V=this.G.J();this.L=new g.eD(this.TK,1E3,this);this.KB=new Ev({delayMs:g.Y4(this.V.experiments,"html5_seek_timeout_delay_ms")});this.Qh=new Ev({delayMs:g.Y4(this.V.experiments,"html5_long_rebuffer_threshold_ms")});this.XG=Y$(this,"html5_seek_set_cmt");this.kG=Y$(this,"html5_seek_jiggle_cmt");this.nB=Y$(this,"html5_seek_new_elem");this.Bq=Y$(this,"html5_unreported_seek_reseek");this.S9=Y$(this,"html5_long_rebuffer_jiggle_cmt"); +this.sE=Y$(this,"html5_long_rebuffer_ssap_clip_not_match");this.b9=new Ev({delayMs:2E4});this.Hv=Y$(this,"html5_seek_new_elem_shorts");this.ZN=Y$(this,"html5_seek_new_media_source_shorts_reuse");this.tR=Y$(this,"html5_seek_new_media_element_shorts_reuse");this.wc=Y$(this,"html5_reseek_after_time_jump");this.N=Y$(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Y=Y$(this,"html5_gapless_slow_seek");this.K=Y$(this,"html5_gapless_slice_append_stuck");this.AR=Y$(this,"html5_gapless_slow_start"); +this.j=Y$(this,"html5_ads_preroll_lock_timeout");this.wr=Y$(this,"html5_ssap_ad_longrebuffer_new_element");this.CR=new Ev({delayMs:g.Y4(this.V.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ng:!this.V.W("html5_report_slow_ads_as_error")});this.mw=new Ev({delayMs:g.Y4(this.V.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ng:!this.V.W("html5_skip_slow_buffering_ad")});this.Wq=new Ev({delayMs:g.Y4(this.V.experiments,"html5_slow_start_timeout_delay_ms")});this.yh=Y$(this,"html5_slow_start_no_media_source"); +g.U(this,this.L)}; +Y$=function(m,e){var Z=g.Y4(m.V.experiments,e+"_delay_ms");m=m.V.W(e+"_cfl");return new Ev({delayMs:Z,Ng:m})}; +H_3=function(m,e){m.X=e}; +bX=function(m,e,Z,M,k,K,q,S){e.test(Z)?(m.AY(k,e,q),e.Ng||K()):(e.HB&&e.S&&!e.Z?(Z=(0,g.G)(),M?e.X||(e.X=Z):e.X=0,K=!M&&Z-e.S>e.HB,Z=e.X&&Z-e.X>e.LZ||K?e.Z=!0:!1):Z=!1,Z&&(S=Object.assign({},m.pR(e),S),S.wn=q,S.we=k,S.wsuc=M,m.G.B("workaroundReport",S),M&&(e.reset(),m.U[k]=!1)))}; +Ev=function(m){var e=m===void 0?{}:m;m=e.delayMs===void 0?0:e.delayMs;var Z=e.LZ===void 0?1E3:e.LZ;var M=e.HB===void 0?3E4:e.HB;e=e.Ng===void 0?!1:e.Ng;this.X=this.S=this.U=this.startTimestamp=0;this.Z=!1;this.L=Math.ceil(m/1E3);this.LZ=Z;this.HB=M;this.Ng=e}; +QZ=function(m){g.Y.call(this);var e=this;this.G=m;this.C=this.X=this.D=this.mediaElement=this.playbackData=null;this.Z=0;this.L=this.Y=this.U=null;this.AR=!1;this.CR=0;this.N=!1;this.timestampOffset=0;this.j=!0;this.wc=0;this.Hv=this.Wq=!1;this.K=0;this.ZN=!1;this.S9=0;this.V=this.G.J();this.videoData=this.G.getVideoData();this.policy=new DKs;this.b9=new Uv(this.G);this.KB=this.yh=this.nB=this.S=NaN;this.sE=new g.eD(function(){LJm(e,!1)},2E3); +this.mw=new g.eD(function(){tN(e)}); +this.kG=new g.eD(function(){e.AR=!0;sSR(e,{})}); +this.XG=NaN;this.Qh=new g.eD(function(){var Z=e.V.XG;Z.X+=1E4/36E5;Z.X-Z.U>1/6&&(J77(Z),Z.U=Z.X);e.Qh.start()},1E4); +g.U(this,this.b9);g.U(this,this.sE);g.U(this,this.kG);g.U(this,this.mw);g.U(this,this.Qh)}; +y4G=function(m,e){m.playbackData=e;m.videoData.isLivePlayback&&(m.C=new Bzb(function(){a:{if(m.playbackData&&m.playbackData.X.X){if(vQ(m.videoData)&&m.D){var Z=m.D.yB.gG()||0;break a}if(m.videoData.X){Z=m.videoData.X.Qh;break a}}Z=0}return Z}),m.X=new fx(m.videoData,m.V.experiments,function(){return m.GK(!0)})); +HZ(m.G)?(e=G8K(m),e.s8?(m.W("html5_sabr_enable_utc_seek_requests")&&Mw(m.videoData)&&m.QY(e.s8,e.startSeconds),m.Z=e.startSeconds):e.startSeconds>0&&m.seekTo(e.startSeconds,{DN:"seektimeline_startPlayback",seekSource:15}),m.j=!1):DX(m)||(m.Z=m.Z||(g.gA(m.videoData)?0:m.videoData.startSeconds)||0)}; +yZ=function(m,e){(m.D=e)?Lx(m,!0):GR(m)}; +jSy=function(m,e){g.ZZ(m.b9.L);m.W("html5_exponential_memory_for_sticky")&&(e.state.isPlaying()?g.ZZ(m.Qh):m.Qh.stop());if(m.mediaElement)if(e.F2.state===8&&dv(e.state)&&e.state.isBuffering()){e=m.mediaElement.getCurrentTime();var Z=m.mediaElement.kE();var M=m.W("manifestless_post_live_ufph")||m.W("manifestless_post_live")?p8(Z,Math.max(e-3.5,0)):p8(Z,e-3.5);M>=0&&e>Z.end(M)-1.1&&M+10?(jx(m.G,m.getCurrentTime()+m.videoData.limitedPlaybackDurationInSeconds),m.Hv=!0):m.videoData.isLivePlayback&&m.videoData.endSeconds>0&&(jx(m.G,m.getCurrentTime()+m.videoData.endSeconds),m.Hv=!0))}; +O_c=function(m,e){var Z=m.getCurrentTime(),M=m.isAtLiveHead(Z);if(m.C&&M){var k=m.C;if(k.X&&!(Z>=k.S&&Z50&&k.S.shift())),k=m.X,t9K(k,Z,e===void 0?!0:e),QSP(k,Z),e&&LJm(m,!0));M!==m.Wq&&(e=m.getCurrentTime()-m.KB<=500,Z=m.CR>=1E3,e||Z||(e=m.G.lw(),e.qoe&&(e=e.qoe,Z=g.Yq(e.provider), +g.DR(e,Z,"lh",[M?"1":"0"])),m.Wq=M,m.CR++,m.KB=m.getCurrentTime()))}; +LJm=function(m,e){if(m.X){var Z=m.X;var M=m.getCurrentTime();!dR(Z,M)&&Z.E7()?(Z.policy.L&&(Z.policy.X=Math.max(Z.policy.X+1,10)),Z=Infinity):Z=M0&&wv(m.mediaElement)>0&&(m.S=JN(m,m.S,!1)),!m.mediaElement||!Pm3(m))m.mw.start(750);else if(!isNaN(m.S)&&isFinite(m.S)){var e=m.yh-(m.S-m.timestampOffset);if(!(e===0||m.W("html5_enable_new_seek_timeline_logic")&&Math.abs(e)<.005))if(e=m.mediaElement.getCurrentTime()-m.S,Math.abs(e)<=m.wc||m.W("html5_enable_new_seek_timeline_logic")&&Math.abs(e)<.005)m.U&&m.U.resolve(m.mediaElement.getCurrentTime()); +else{if(m.videoData.Ve)m.videoData.Ve=!1;else if(!g.Sp(m.videoData)&&m.S>=m.GK()-.1){m.S=m.GK();m.U.resolve(m.GK());g.VZ(m.G);return}try{var Z=m.S-m.timestampOffset;m.mediaElement.seekTo(Z);m.b9.X=Z;m.yh=Z;m.Z=m.S;m.W("html5_enable_new_seek_timeline_logic")&&(m.N=!1)}catch(M){}}}}; +Pm3=function(m){if(!m.mediaElement||m.mediaElement.t7()===0||m.mediaElement.hasError())return!1;var e=m.mediaElement.getCurrentTime()>0;if(!(m.videoData.S&&m.videoData.S.X||m.videoData.isLivePlayback)&&m.videoData.T3())return e;if(m.S>=0){var Z=m.mediaElement.lW();if(Z.length||!e)return S4(Z,m.S-m.timestampOffset)}return e}; +z8G=function(m,e){m.L&&(m.L.resolve(e),m.G.Bz(),m.V.Af()&&(e=m.pR(),e["native"]=""+ +m.N,e.otgt=""+(m.S+m.timestampOffset),m.G.B("seekEnd",e)));GR(m)}; +GR=function(m){m.S=NaN;m.yh=NaN;m.U=null;m.Y=null;m.L=null;m.AR=!1;m.N=!1;m.wc=0;m.sE.stop();m.kG.stop()}; +ZBs=function(m,e,Z){var M=m.mediaElement,k=e.type;switch(k){case "seeking":var K=M.getCurrentTime()+m.timestampOffset;if(!m.U||m.N&&K!==m.S){var q=!!m.U;m.U=new Gx;m.W("html5_enable_new_seek_timeline_logic")&&m.U.then(function(a){z8G(m,a)},function(){GR(m)}); +if(m.videoData.isAd()){var S;Q2b({adCpn:m.videoData.clientPlaybackNonce,contentCpn:(S=m.videoData.Ij)!=null?S:""},e.X)}m.yh=K;H_3(m.b9,M.getCurrentTime());m.seekTo(K,{seekSource:104,DN:"seektimeline_mediaElementEvent"});Z&&mGy(Z,K*1E3,!!q);m.N=!0}break;case "seeked":m.U&&m.U.resolve(m.mediaElement.getCurrentTime());break;case "loadedmetadata":HZ(m.G)||eZ1(m);tN(m);break;case "progress":tN(m);break;case "pause":m.K=m.getCurrentTime()}m.K&&((k==="play"||k==="playing"||k==="timeupdate"||k==="progress")&& +m.getCurrentTime()-m.K>10&&(m.W("html5_enable_new_media_element_puase_jump")?(m.G.AY(new g.tw("qoe.restart",{reason:"pauseJump"})),Dn(m.G)):m.seekTo(m.K,{DN:"pauseJump"})),k!=="pause"&&k!=="play"&&k!=="playing"&&k!=="progress"&&(m.K=0))}; +Mi7=function(m){return(of(m.videoData)||!!m.videoData.liveUtcStartSeconds)&&(!!m.videoData.liveUtcStartSeconds||DX(m))&&!!m.videoData.X}; +DX=function(m){return!!m.videoData.startSeconds&&isFinite(m.videoData.startSeconds)&&m.videoData.startSeconds>1E9}; +G8K=function(m){var e=0,Z=NaN,M="";if(!m.j)return{startSeconds:e,s8:Z,source:M};m.videoData.S9?e=m.videoData.b9:g.Sp(m.videoData)&&(e=Infinity);if(g.fI(m.videoData))return{startSeconds:e,s8:Z,source:M};m.videoData.startSeconds?(M="ss",e=m.videoData.startSeconds):m.videoData.xa&&(M="stss",e=m.videoData.xa);m.videoData.liveUtcStartSeconds&&(Z=m.videoData.liveUtcStartSeconds);if(isFinite(e)&&(e>m.GK()||em.GK()||Z +0?(M.onesie="0",m.handleError(new g.tw("html5.missingapi",M)),!1):!0}; +vcI=function(m){var e=g.TM();g.$6(e,m);return t$(e,kqm())}; +pzK=function(m,e){var Z,M,k,K,q,S,a,v,X,x,l,R,h,w,N,I,C,B,b,L,Q,J,kG,TK,z,D;return g.Qs(function(W){if(W.X==1)return e.fetchType="onesie",Z=riK(e,m.getPlayerSize(),m.getVisibilityState()),M=new vt(m,Z),g.A(W,M.fetch(),2);k=W.S;K={player_response:k};e.loading=!1;q=m.OZ.w2;if(M.v_){S=g.r(M.v_.entries());for(a=S.next();!a.done;a=S.next())v=a.value,X=g.r(v),x=X.next().value,l=X.next().value,R=x,h=l,q.X.set(R,h,180),R===e.videoId&&(w=h.JX(),e.Zb=w);q.eU=M}N=g.r(M.rM.entries());for(I=N.next();!I.done;I= +N.next())C=I.value,B=g.r(C),b=B.next().value,L=B.next().value,Q=b,J=L,q.S.set(Q,J,180);mQ(e,K,!0);if(e.loading||zk(e))return W.return(Promise.resolve());q.X.WV();q.S.WV();e.Zb=[];kG={};TK="onesie.response";z=0;e.errorCode?(TK="auth",kG.ec=e.errorCode,kG.ed=e.errorDetail,kG.es=e.W4||"",z=2):(kG.successButUnplayable="1",kG.disposed=""+ +e.MU(),kG.afmts=""+ +/adaptiveFormats/.test(k),kG.cpn=e.clientPlaybackNonce);D=new g.tw(TK,kG,z);return W.return(Promise.reject(D))})}; +KW3=function(m,e){var Z,M,k,K,q,S,a,v,X,x,l;return g.Qs(function(R){switch(R.X){case 1:Z=e.isAd(),M=!Z,k=Z?1:3,K=0;case 2:if(!(K0)){R.pB(5);break}return g.A(R,g.Tq(5E3),6);case 6:q=new g.Nr("Retrying OnePlatform request",{attempt:K}),g.LD(q);case 5:return Ab(R,7),g.A(R,gc1(m,e),9);case 9:return R.return();case 7:S=f1(R);a=Hi(S);v=a.errorCode;X=m.J();x=X.W("html5_use_network_error_code_enums")?401:"401";M&&v==="manifest.net.badstatus"&&a.details.rc===x&&(M=!1,K===k-1&&(k+= +1));if(K===k-1)return l=XzK(Z,a.details),l.details.backend="op",l.details.originec=v,R.return(Promise.reject(l));if(v==="auth"||v==="manifest.net.retryexhausted")return R.return(Promise.reject(a));m.handleError(a);if(Q6(a.severity)){R.pB(4);break}case 3:K++;R.pB(2);break;case 4:return R.return(Promise.reject(XzK(Z,{backend:"op"})))}})}; +gc1=function(m,e){function Z(TK){TK.readyState===2&&m.gV("ps_c")} +var M,k,K,q,S,a,v,X,x,l,R,h,w,N,I,C,B,b,L,Q,J,kG;return g.Qs(function(TK){switch(TK.X){case 1:e.fetchType="gp";M=m.J();k=g.Tk(M,g.bJ(e));if(!k.X){K=k.getValue();TK.pB(2);break}return g.A(TK,k.X,3);case 3:K=TK.S;case 2:return q=K,S=vcI(q),a=riK(e,m.getPlayerSize(),m.getVisibilityState()),v=rz(iBI),X=g.bJ(e),x=(0,g.G)(),l=!1,R="empty",h=0,m.gV("psns"),w={iW:Z},g.A(TK,g.NG(S,a,v,void 0,w),4);case 4:N=TK.S;m.gV("psnr");if(e.MU())return TK.return();N?"error"in N&&N.error?(l=!0,R="esf:"+N.error.message, +h=N.error.code):N.errorMetadata&&(l=!0,R="its",h=N.errorMetadata.status):l=!0;if(l)return I=0,C=((0,g.G)()-x).toFixed(),B={},B=M.W("html5_use_network_error_code_enums")?{backend:"op",rc:h,rt:C,reason:R,has_kpt:e.tR?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.fE("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:M.pageId?"1":"0",has_token:X?"1":"0",has_vvt:e.Y?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.yQ||"",token_eq:X===g.bJ(e)?"1":"0"}:{backend:"op", +rc:""+h,rt:C,reason:R,has_kpt:e.tR?"1":"0",has_mdx_env:e.mdxEnvironment?"1":"0",has_omit_key_flag:g.fE("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:M.pageId?"1":"0",has_token:X?"1":"0",has_vvt:e.Y?"1":"0",is_mdx:e.isMdxPlayback?"1":"0",mdx_ctrl:e.yQ||"",token_eq:X===g.bJ(e)?"1":"0"},b="manifest.net.connect",h===429?(b="auth",I=2):h>200&&(b="manifest.net.badstatus",h===400&&(I=2)),TK.return(Promise.reject(new g.tw(b,B,I)));e.loading=!1;mQ(e,{raw_player_response:N},!0); +L=N;if(g.Pe(e.J())&&L&&L.trackingParams){var z=L.trackingParams;g.w5(g.$4(),z)}if(e.errorCode)return Q={ec:e.errorCode,ed:e.errorDetail,es:e.W4||""},TK.return(Promise.reject(new g.tw("auth",Q,2)));if(!e.loading&&!zk(e))return J=e.isAd()?"auth":"manifest.net.retryexhausted",kG=e.isAd()?2:1,TK.return(Promise.reject(new g.tw(J,{successButUnplayable:"1",hasMedia:g.CI(e)?"1":"0"},kG)));g.It(TK)}})}; +khI=function(m,e,Z){function M(h){h=Hi(h);if(Q6(h.severity))return Promise.reject(h);m.handleError(h);return!1} +function k(){return!0} +var K,q,S,a,v,X,x,l,R;return g.Qs(function(h){switch(h.X){case 1:var w=m.J(),N=m.getPlayerSize(),I=m.getVisibilityState();m.isFullscreen();var C=window.location.search;if(e.partnerId===38&&w.playerStyle==="books")C=e.videoId.indexOf(":"),C=g.tV("//play.google.com/books/volumes/"+e.videoId.slice(0,C)+"/content/media",{aid:e.videoId.slice(C+1),sig:e.WH});else if(e.partnerId===30&&w.playerStyle==="docs")C=g.tV("https://docs.google.com/get_video_info",{docid:e.videoId,authuser:e.rH,authkey:e.L$,eurl:w.tR}); +else if(e.partnerId===33&&w.playerStyle==="google-live")C=g.tV("//google-liveplayer.appspot.com/get_video_info",{key:e.videoId});else{w.L!=="yt"&&g.DA(Error("getVideoInfoUrl for invalid namespace: "+w.L));var B={html5:"1",video_id:e.videoId,cpn:e.clientPlaybackNonce,eurl:w.tR,ps:w.playerStyle,el:dA(e),hl:w.yh,list:e.playlistId,agcid:e.QF,aqi:e.adQueryId,sts:20067,lact:g.Xb()};Object.assign(B,w.X);w.forcedExperiments&&(B.forced_experiments=w.forcedExperiments);e.Y?(B.vvt=e.Y,e.mdxEnvironment&&(B.mdx_environment= +e.mdxEnvironment)):g.bJ(e)&&(B.access_token=g.bJ(e));e.adFormat&&(B.adformat=e.adFormat);e.slotPosition>=0&&(B.slot_pos=e.slotPosition);e.breakType&&(B.break_type=e.breakType);e.IS!==null&&(B.ad_id=e.IS);e.Ow!==null&&(B.ad_sys=e.Ow);e.pA!==null&&(B.encoded_ad_playback_context=e.pA);w.captionsLanguagePreference&&(B.cc_lang_pref=w.captionsLanguagePreference);w.sE&&w.sE!==2&&(B.cc_load_policy=w.sE);var b=g.uf(g.xE(),65);g.xI(w)&&b!=null&&!b&&(B.device_captions_on="1");w.mute&&(B.mute=w.mute);e.annotationsLoadPolicy&& +w.annotationsLoadPolicy!==2&&(B.iv_load_policy=e.annotationsLoadPolicy);e.xk&&(B.endscreen_ad_tracking=e.xk);(b=w.yH.get(e.videoId))&&b.G7&&(B.ic_track=b.G7);e.nB&&(B.itct=e.nB);Us(e)&&(B.autoplay="1");e.mutedAutoplay&&(B.mutedautoplay=e.mutedAutoplay);e.isAutonav&&(B.autonav="1");e.Rr&&(B.noiba="1");e.isMdxPlayback&&(B.mdx="1",B.ytr=e.Ut);e.mdxControlMode&&(B.mdx_control_mode=e.mdxControlMode);e.Mz&&(B.ytrcc=e.Mz);e.Yk&&(B.utpsa="1");e.isFling&&(B.is_fling="1");e.isInlinePlaybackNoAd&&(B.mute="1"); +e.vnd&&(B.vnd=e.vnd);e.forceAdsUrl&&(b=e.forceAdsUrl.split("|").length===3,B.force_ad_params=b?e.forceAdsUrl:"||"+e.forceAdsUrl);e.LJ&&(B.preload=e.LJ);N.width&&(B.width=N.width);N.height&&(B.height=N.height);(e.O9?0:e.tf)&&(B.splay="1");e.ypcPreview&&(B.ypc_preview="1");Es(e)&&(B.content_v=Es(e));e.CR&&(B.livemonitor=1);w.N&&(B.authuser=w.N);w.pageId&&(B.pageid=w.pageId);w.S9&&(B.ei=w.S9);w.Z&&(B.iframe="1");e.contentCheckOk&&(B.cco="1");e.racyCheckOk&&(B.rco="1");e.Ab&&(B.live_start_walltime=e.Ab); +e.PS&&(B.live_manifest_duration=e.PS);e.playerParams&&(B.player_params=e.playerParams);e.cycToken&&(B.cyc=e.cycToken);e.M7&&(B.tkn=e.M7);I!==0&&(B.vis=I);w.enableSafetyMode&&(B.enable_safety_mode="1");e.tR&&(B.kpt=e.tR);e.n6&&(B.kids_age_up_mode=e.n6);e.kidsAppInfo&&(B.kids_app_info=e.kidsAppInfo);e.Dy&&(B.upg_content_filter_mode="1");w.widgetReferrer&&(B.widget_referrer=w.widgetReferrer.substring(0,128));e.Te?(N=e.Te.latitudeE7!=null&&e.Te.longitudeE7!=null?e.Te.latitudeE7+","+e.Te.longitudeE7:",", +N+=","+(e.Te.clientPermissionState||0)+","+(e.Te.locationRadiusMeters||"")+","+(e.Te.locationOverrideToken||"")):N=null;N&&(B.uloc=N);e.qZ&&(B.internalipoverride=e.qZ);w.embedConfig&&(B.embed_config=w.embedConfig);w.dZ&&(B.co_rel="1");w.ancestorOrigins.length>0&&(B.ancestor_origins=Array.from(w.ancestorOrigins).join(","));w.homeGroupInfo!==void 0&&(B.home_group_info=w.homeGroupInfo);w.livingRoomAppMode!==void 0&&(B.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&(B.enable_privacy_filter= +"1");e.isLivingRoomDeeplink&&(B.is_living_room_deeplink="1");e.jq&&e.QI&&(B.clip=e.jq,B.clipt=e.QI);e.Ek&&(B.disable_watch_next="1");e.HX&&(B.forced_by_var="1");for(var L in B)!xGs.has(L)&&B[L]&&String(B[L]).length>512&&(g.LD(Error("GVI param too long: "+L)),B[L]="");L=w.K;g.qF(w)&&(L=oz(L.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.K);w=g.tV(L+"get_video_info",B);C&&(w=xl(w,C));C=w}K=C;S=(q=e.isAd())?1:3;a=0;case 2:if(!(a0)){h.pB(5);break}return g.A(h,g.Tq(5E3),6);case 6:X= +{playerretry:a,playerretrysrc:Z},q||(X.recover="embedded"),v=g.GD(K,X);case 5:return g.A(h,l3G(e,v).then(k,M),7);case 7:if(x=h.S)return h.return();a++;h.pB(2);break;case 4:l=q?"auth":"manifest.net.retryexhausted";R=q?2:1;if(!q&&Math.random()<1E-4)try{g.LD(new g.Nr("b/152131571",btoa(K)))}catch(Q){}return h.return(Promise.reject(new g.tw(l,{backend:"gvi"},R)))}})}; +l3G=function(m,e){function Z(N){return M(N.xhr)} +function M(N){if(!m.MU()){N=N?N.status:-1;var I=0,C=((0,g.G)()-X).toFixed();C=k.W("html5_use_network_error_code_enums")?{backend:"gvi",rc:N,rt:C}:{backend:"gvi",rc:""+N,rt:C};var B="manifest.net.connect";N===429?(B="auth",I=2):N>200&&(B="manifest.net.badstatus",N===400&&(I=2));return Promise.reject(new g.tw(B,C,I))}} +var k,K,q,S,a,v,X,x,l,R,h,w;return g.Qs(function(N){if(N.X==1){m.fetchType="gvi";k=m.J();var I={};m.X0&&(I.ytrext=m.X0);(S=g.DQ(I)?void 0:I)?(K={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:S},q=g.GD(e,{action_display_post:1})):(K={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},q=e);a={};k.sendVisitorIdHeader&&m.visitorData&&(a["X-Goog-Visitor-Id"]=m.visitorData);(v=g.Tx(k.experiments,"debug_sherlog_username"))&&(a["X-Youtube-Sherlog-Username"]=v);Object.keys(a).length> +0&&(K.headers=a);X=(0,g.G)();return g.A(N,ry(g.wh,q,K).then(void 0,Z),2)}x=N.S;if(!x||!x.responseText)return N.return(M(x));m.loading=!1;l=g.Q4(x.responseText);mQ(m,l,!0);if(m.errorCode)return R={ec:m.errorCode,ed:m.errorDetail,es:m.W4||""},N.return(Promise.reject(new g.tw("auth",R,2)));if(!m.loading&&!zk(m))return h=m.isAd()?"auth":"manifest.net.retryexhausted",w=m.isAd()?2:1,N.return(Promise.reject(new g.tw(h,{successButUnplayable:"1"},w)));g.It(N)})}; +XzK=function(m,e){return new g.tw(m?"auth":"manifest.net.retryexhausted",e,m?2:1)}; +ZG=function(m,e,Z){Z=Z===void 0?!1:Z;var M,k,K,q;g.Qs(function(S){if(S.X==1){M=m.J();if(Z&&(!R_(M)||dA(e)!=="embedded")||e.Ek||dA(e)!=="adunit"&&(g.Km(M)||g.pm(M)||g.zx(M)||g.qF(M)||g.R3(M)==="WEB_CREATOR"))return S.return();k=g.Tk(M,g.bJ(e));return k.X?g.A(S,k.X,3):(K=k.getValue(),S.pB(2))}S.X!=2&&(K=S.S);q=K;return S.return(uXK(m,e,q))})}; +uXK=function(m,e,Z){var M,k,K,q,S;return g.Qs(function(a){if(a.X==1){Ab(a,2);M=vcI(Z);var v=e.J();g.xE();var X={context:g.Os(e),videoId:e.videoId,racyCheckOk:e.racyCheckOk,contentCheckOk:e.contentCheckOk,autonavState:"STATE_NONE"};dA(e)==="adunit"&&(X.isAdPlayback=!0);v.embedConfig&&(X.serializedThirdPartyEmbedConfig=v.embedConfig);v.dZ&&(X.showContentOwnerOnly=!0);g.uf(0,141)&&(X.autonavState=g.uf(0,140)?"STATE_OFF":"STATE_ON");if(g.xI(v)){var x=g.uf(0,65);x=x!=null?!x:!1;var l=!!g.Kr("yt-player-sticky-caption"); +X.captionsRequested=x&&l}var R;if(v=(R=v.getWebPlayerContextConfig())==null?void 0:R.encryptedHostFlags)X.playbackContext={encryptedHostFlags:v};k=X;K=rz(RZK);m.gV("wn_s");return g.A(a,g.NG(M,k,K),4)}if(a.X!=2)return q=a.S,m.gV("wn_r"),!q||"error"in q&&q.error||(S=q,g.Pe(e.J())&&S.trackingParams&&(X=S.trackingParams,g.w5(g.$4(),X)),mQ(e,{raw_watch_next_response:q},!1)),C1(a,0);f1(a);g.It(a)})}; +hZc=function(m){m.gV("vir");m.gV("ps_s");g.nB("vir",void 0,"video_to_ad");var e=a3R(m);e.then(function(){m.gV("virc");g.nB("virc",void 0,"video_to_ad");m.gV("ps_r");g.nB("ps_r",void 0,"video_to_ad")},function(){m.gV("virc"); +g.nB("virc",void 0,"video_to_ad")}); +return e}; +g.qD=function(m,e,Z,M,k,K,q,S,a,v){a=a===void 0?new W4(m):a;v=v===void 0?!0:v;g.m6.call(this);var X=this;this.V=m;this.playerType=e;this.hf=Z;this.c6=M;this.getVisibilityState=K;this.visibility=q;this.OZ=S;this.videoData=a;this.RJ=v;this.logger=new g.dx("VideoPlayer");this.Fm=new Cm7(this.V);this.ai=null;this.Zj=new eR;this.Lb=null;this.vK=new iU(this.V,this.c6,this);this.Tv=!0;this.j9=this.D=null;this.vp=[];this.kY=new eM;this.VS=this.zb=null;this.O2=new eM;this.Ci=null;this.zv=this.ZM=!1;this.IH= +NaN;this.ZE=!1;this.playerState=new g.rv;this.Fz=[];this.SF=new g.z$;this.ib=new p5(this);this.mediaElement=null;this.lx=new g.eD(this.uE,15E3,this);this.G0=this.N8=!1;this.pu=NaN;this.Rj=!1;this.PW=0;this.qS=!1;this.RQ=NaN;this.rh=new WZ(new Map([["bufferhealth",function(){return Ov(X.Hq)}], +["bandwidth",function(){return X.Lc()}], +["networkactivity",function(){return X.V.schedule.S9}], +["livelatency",function(){return X.isAtLiveHead()&&X.isPlaying()?MD(X):NaN}], +["rawlivelatency",function(){return MD(X)}]])); +this.ij=0;this.loop=!1;this.playbackRate=1;this.TY=0;this.Hq=new QZ(this);this.AP=!1;this.Qw=[];this.EP=this.bN=0;this.EL=this.Hk=!1;this.gs=this.mY=0;this.CP=-1;this.i$="";this.D7=new g.eD(this.KQ,0,this);this.lV=!1;this.u9=this.rV=null;this.Qt=[this.SF,this.D7,this.lx,this.rh];this.h9=this.Iv=null;this.Cx=function(){var x=X.lw();x.provider.V.mw||x.provider.G.getVisibilityState()===3||(x.provider.V.mw=!0);lrG(x);if(x.S){var l=x.S;l.C&&l.X<0&&l.provider.G.getVisibilityState()!==3&&nNG(l)}x.qoe&&(x= +x.qoe,x.tR&&x.U<0&&x.provider.V.mw&>I(x),x.Z&&yC(x));X.D&&kY(X);X.V.HX&&!X.videoData.backgroundable&&X.mediaElement&&!X.hD()&&(X.isBackground()&&X.mediaElement.WP()?(X.B("bgmobile",{suspend:1}),X.jI(!0,!0)):X.isBackground()||Ki(X)&&X.B("bgmobile",{resume:1}))}; +this.logger.debug(function(){return"creating, type "+e}); +this.bP=new Nu(function(){return X.getCurrentTime()},function(){return X.getPlaybackRate()},function(){return X.getPlayerState()},function(x,l){x!==g.tE("endcr")||g.y(X.playerState,32)||g.VZ(X); +k(x,l,X.playerType)},function(x,l){g.gA(X.videoData)&&X.B(x,l)}); +g.U(this,this.bP);g.U(this,this.Hq);TGK(this,a);this.videoData.subscribe("dataupdated",this.Nw,this);this.videoData.subscribe("dataloaded",this.sK,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.B,this);this.videoData.subscribe("ctmpstr",this.Nr,this);this.W8();jVk(this.Cx);this.visibility.subscribe("visibilitystatechange",this.Cx);this.Y_=new g.eD(this.Nk,g.Y4(this.V.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.hP=new g.eD(this.Nk, +g.Y4(this.V.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; +wy=function(m){return m.W("html5_not_reset_media_source")&&!m.T3()&&!m.videoData.isLivePlayback&&g.BQ(m.videoData)&&!m.V.supportsGaplessShorts()}; +TGK=function(m,e){if(m.playerType===2||m.V.qZ)e.cB=!0;var Z=thm(e.Wq,e.Ko);Z&&(e.adFormat=Z);m.playerType===2&&(e.uP=!0);if(m.isFullscreen()||m.V.Z)Z=g.Kr("yt-player-autonavstate"),e.autonavState=Z||(m.V.Z?2:m.videoData.autonavState);e.endSeconds&&e.endSeconds>e.startSeconds&&jx(m,e.endSeconds)}; +SM=function(m){if(m.videoData.N){var e=m.OZ.Jf();m.videoData.yq=m.videoData.yq||(e==null?void 0:e.Cc());m.videoData.Ht=m.videoData.Ht||(e==null?void 0:e.QZ())}if(ky3(m.videoData)||!GQ(m.videoData))e=m.videoData.errorDetail,m.aE(m.videoData.errorCode||"auth",2,unescape(m.videoData.errorReason),e,e,m.videoData.W4||void 0);m.W("html5_generate_content_po_token")&&m.X4();m.W("html5_enable_d6de4")&&m.KI();if(m.W("html5_ssap_cleanup_player_switch_ad_player")||m.W("html5_ssap_cleanup_ad_player_on_new_data"))if(e= +pi(m.OZ))m.i$=e.clientPlaybackNonce}; +$Gk=function(m){wR(m.ZY);g.RB(m.ZY);for(var e=m.NW,Z=g.r(e.X.values()),M=Z.next();!M.done;M=Z.next())wR(M.value);e.X.clear();g.RB(m.NW)}; +g.ab=function(m){return m.mediaElement&&m.mediaElement.LU()?m.mediaElement.W_():null}; +vK=function(m){if(m.W("html5_check_video_data_errors_before_playback_start")&&m.videoData.errorCode)return!1;if(m.videoData.J5())return!0;m.aE("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g0=function(m,e){(e=e===void 0?!1:e)||g.gA(m.videoData)||Ff(m.lw());m.ZM=e;!vK(m)||m.kY.lY()?g.Km(m.V)&&m.videoData.isLivePlayback&&m.kY.lY()&&!m.kY.finished&&!m.ZM&&m.sK():(m.kY.start(),e=m.lw(),g.Yq(e.provider),e.qoe&&HDK(e.qoe),m.sK())}; +FWy=function(m){var e=m.videoData;hZc(m).then(void 0,function(Z){m.videoData!==e||e.MU()||(Z=Hi(Z),Z.errorCode==="auth"&&m.videoData.errorDetail?m.aE(Z.errorCode,2,unescape(m.videoData.errorReason),b_(Z.details),m.videoData.errorDetail,m.videoData.W4||void 0):m.handleError(Z))})}; +wzc=function(m,e){m.rV=e;m.D&&e_R(m.D,new g.LP(e))}; +c$1=function(m){if(!g.y(m.playerState,128))if(m.videoData.isLoaded(),m.logger.debug("finished loading playback data"),m.vp=g.cG(m.videoData.yh),g.CI(m.videoData)){m.hf.tick("bpd_s");XD(m).then(function(){m.hf.tick("bpd_c");if(!m.MU()){m.ZM&&(m.Fl(C5(C5(m.playerState,512),1)),Ki(m));var Z=m.videoData;Z.endSeconds&&Z.endSeconds>Z.startSeconds&&jx(m,Z.endSeconds);m.kY.finished=!0;ib(m,"dataloaded");m.O2.lY()&&xY(m);xyt(m.vK,m.VS)}}); +m.W("html5_log_media_perf_info")&&m.B("loudness",{v:m.videoData.K1.toFixed(3)},!0);var e=uuK(m.videoData);e&&m.B("playerResponseExperiment",{id:e},!0);ncs(m)}else ib(m,"dataloaded")}; +XD=function(m){lb(m);m.VS=null;var e=onc(m.V,m.videoData,m.hD());m.zb=e;m.zb.then(function(Z){NGR(m,Z)},function(Z){m.MU()||(Z=Hi(Z),m.visibility.isBackground()?(ub(m,"vp_none_avail"),m.zb=null,m.kY.reset()):(m.kY.finished=!0,m.aE(Z.errorCode,Z.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",b_(Z.details))))}); +return e}; +SR=function(m){m.logger.debug("Updating for format change");XD(m).then(function(){return Ki(m)}); +m.playerState.isOrWillBePlaying()&&m.playVideo()}; +NGR=function(m,e){if(!m.MU()&&!e.videoData.MU()){m.logger.debug("finished building playback data");m.VS=e;y4G(m.Hq,m.VS);if(m.videoData.isLivePlayback){var Z=r$P(m.OZ.w2,m.videoData.videoId)||m.D&&!isNaN(m.D.S9);Z=m.W("html5_onesie_live")&&Z;HZ(m)||m.videoData.XG>0&&!vQ(m.videoData)||Z||m.seekTo(m.GK(),{DN:"videoplayer_playbackData",seekSource:18})}if(m.videoData.S.X){if(m.W("html5_sabr_report_missing_url_as_error")&&lwy(m.videoData)){m.handleError(new g.tw("fmt.missing",{missabrurl:"1"},2));return}m.D? +g.LD(Error("Duplicated Loader")):(Z=g.Y4(m.V.experiments,"html5_onesie_defer_content_loader_ms"))&&IQ(m)&&r$P(m.OZ.w2,m.videoData.jG)?g.kl(function(){m.MU()||m.D||Rb(m)},Z):Rb(m)}else!m.videoData.S.X&&Qu(m.videoData)&&W61(m,new HW(m.videoData.videoId||"",4)); +h_(m);aAR(e).then(function(){var M={};m.BE(M);m.V.Af()&&m.W("html5_log_media_perf_info")&&m.B("av1Info",M);kY(m)})}}; +Tw=function(m){m.logger.debug("start readying playback");m.W("html5_enable_ssap_autoplay_debug_logging")&&m.B("ssap",{strdypb:1});m.mediaElement&&m.mediaElement.j1();g0(m);vK(m)&&!g.y(m.playerState,128)&&(m.O2.lY()||(m.O2.start(),m.videoData.AT?m.Fl(C5(m.playerState,4)):m.Fl(C5(C5(m.playerState,8),1))),xY(m))}; +xY=function(m){m.MU();m.logger.debug("try finish readying playback");if(m.O2.finished)m.logger.debug("already finished readying");else if(m.kY.finished)if(g.y(m.playerState,128))m.logger.debug("cannot finish readying because of error");else if(m.vp.length)m.logger.debug(function(){return"cannot finish readying because of pending preroll: "+m.vp}); +else if(m.bP.started||IrK(m.bP),m.s7())m.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{m.D&&(m.zv=PfG(m.D.timing));m.O2.finished||(m.O2.finished=!0);var e=m.W("html5_onesie_live")&&m.D&&!isNaN(m.D.S9);!m.videoData.isLivePlayback||m.videoData.XG>0&&!vQ(m.videoData)||e||HZ(m)||(m.logger.debug("seek to head for live"),m.seekTo(Infinity,{DN:"videoplayer_readying",seekSource:18}),m.isBackground()&&(m.G0=!0));gny(m.lw());m.logger.debug("finished readying playback"); +m.Pv("playbackready",m);g.Th("pl_c",m.hf.timerName)||(m.hf.tick("pl_c"),g.nB("pl_c",void 0,"video_to_ad"));g.Th("pbr",m.hf.timerName)||(m.hf.tick("pbr"),g.nB("pbr",void 0,"video_to_ad"))}else m.logger.debug("playback data not loaded")}; +g.VZ=function(m,e,Z){e=e===void 0?!0:e;(Z===void 0||Z)&&m.mediaElement&&m.mediaElement.pause();m.Fl(e?new g.rv(14):new g.rv)}; +jx=function(m,e){m.Lb&&$Y(m);m.Lb=new g.Ub(e*1E3,0x7ffffffffffff);m.Lb.namespace="endcr";m.addCueRange(m.Lb)}; +$Y=function(m){m.removeCueRange(m.Lb);m.Lb=null}; +w0=function(m,e,Z,M,k){var K=m.lw(k),q=g.gA(m.videoData)?K.getVideoData():m.videoData;q.U=Z;var S=FD(m);Z=new Xw(q,Z,e,S?S.itag:"",M);m.V.experiments.dc("html5_refactor_sabr_video_format_selection_logging")?(Z.videoId=k,m.h9=Z):K.Pf(Z);k=m.vK;k.S=0;k.X=0;m.Pv("internalvideoformatchange",q,e==="m")}; +FD=function(m){var e=ni(m);return aL(e)||!m.VS?null:g.u7(m.VS.X.videoInfos,function(Z){return e.Z(Z)})}; +ni=function(m){if(m.VS){var e=m.vK;var Z=m.VS;m=m.Bn();if(e.G.M9().isInline())var M=V5;else e.W("html5_exponential_memory_for_sticky")?M=sn(e.V.XG,"sticky-lifetime")<.5?"auto":vD[LR()]:M=vD[LR()],M=SN("auto",M,!1,"s");if(aL(M)){if(M=kTK(e,Z).compose(qQs(e,Z)).compose(SQm(e,Z)).compose(T9(e,Z.videoData)).compose($q(e,Z.videoData,Z)).compose(he(e,Z)).compose(uU(e,Z)),aL(m)||e.W("html5_apply_pbr_cap_for_drm"))M=M.compose(KsK(e,Z))}else e.W("html5_perf_cap_override_sticky")&&(M=M.compose(he(e,Z))),e.W("html5_ustreamer_cap_override_sticky")&& +(M=M.compose(KsK(e,Z)));M=M.compose(uU(e,Z));e=Z.videoData.aG.compose(M).compose(Z.videoData.GN).compose(m)}else e=V5;return e}; +Vwm=function(m){var e=m.vK;m=m.videoData;var Z=T9(e,m);e.W("html5_disable_client_autonav_cap_for_onesie")||Z.compose($q(e,m));return Z}; +h_=function(m){if(!m.MU()&&!g.y(m.playerState,128)&&m.videoData.S){if(m.videoData.S.X)kY(m);else{var e=ni(m),Z=m.videoData;a:{var M=m.videoData.yH;if(e.X){for(var k=g.r(M),K=k.next();!K.done;K=k.next()){K=K.value;var q=K.lP(),S=Dv[q.video.quality];if((!e.U||q.video.quality!=="auto")&&S<=e.X){M=K;break a}}M=M[M.length-1]}else M=M[0]}Z.Hv=M;w0(m,e.reason,I3c(m,m.videoData.Hv))}if(m.W("html5_check_unstarted")?m.playerState.isOrWillBePlaying():m.isPlaying())m.Hq.j=!1,m.playVideo()}}; +kY=function(m){if(m.videoData.S&&m.videoData.S.X){var e=ni(m);m.D&&YWt(m.D,e)}}; +A$7=function(m){var e;return!!(m.W("html5_native_audio_track_switching")&&g.PC&&((e=m.videoData.U)==null?0:sq(e)))}; +CjG=function(m){if(!A$7(m))return!1;var e;m=(e=m.mediaElement)==null?void 0:e.audioTracks();return!!(m&&m.length>1)}; +oc3=function(m){var e=f3R(m);if(e)return m.videoData.getAvailableAudioTracks().find(function(Z){return Z.MB.getName()===e})}; +f3R=function(m){var e;if(m=(e=m.mediaElement)==null?void 0:e.audioTracks())for(e=0;e0&&(e.aF=M.qX));e.C0=M.YH;e.JD=WJ(Z,{},M.S||void 0,hF(M));e.XG=Rf(M)&&g.zx(Z);e.xU=Z.W("html5_catch_errors_for_rollback");Mw(M)&&(e.YW=g.Y4(Z.experiments,"html5_sabr_seek_epsilon_ms"),Z.W("html5_sabr_report_partial_segment_estimated_duration")&&(e.Dy=!0),e.X=!0,e.U0=Z.W("html5_sabr_enable_utc_seek_requests"),e.Yu=Z.W("html5_sabr_enable_live_clock_offset"),e.I$=Z.W("html5_disable_client_resume_policy_for_sabr"),e.tV=Z.W("html5_trigger_loader_when_idle_network"),e.VI=Z.W("html5_sabr_parse_live_metadata_playback_boundaries"), +e.Br=Z.W("html5_enable_platform_backpressure_with_sabr"),e.zM=Z.W("html5_consume_onesie_next_request_policy_for_sabr"),e.aG=Z.W("html5_sabr_report_next_ad_break_time"),e.Aj=Z.W("html5_log_high_res_buffer_timeline"),e.Ow=Z.W("html5_gapless_sabr_btl_last_slice")&&uJ(M),vQ(M)?(e.xW=!0,e.jC=Z.W("html5_disable_variability_tracker_for_live"),e.nB=Z.W("html5_sabr_use_accurate_slice_info_params")):e.uw=Z.W("html5_probe_request_on_sabr_request_progress"),e.qM=Z.W("html5_serve_start_seconds_seek_for_post_live_sabr"), +e.Sp=Z.W("html5_flush_index_on_updated_timestamp_offset"),e.AR=Z.W("html5_enable_sabr_request_pipelining")&&!g.gA(M),e.Kf=Z.W("html5_ignore_partial_segment_from_live_readahead"),e.A0=Z.W("html5_use_non_active_broadcast_for_post_live"),e.sE=Z.W("html5_use_centralized_player_time"),e.Ot=Z.W("html5_consume_onesie_sabr_seek"),e.S9=Z.W("html5_enable_sabr_seek_loader_refactor"),e.u8=Z.W("html5_update_segment_start_time_from_media_header"),M.enableServerStitchedDai&&(e.C=!0,e.wQ=Z.W("html5_reset_server_stitch_state_for_non_sabr_seek"), +e.Jo=Z.W("html5_remove_ssdai_append_pause"),e.KB=Z.W("html5_consume_ssdai_info_with_streaming"),e.HS=Z.W("html5_process_all_cuepoints")));e.L=e.X&&Z.W("html5_sabr_live");ny(Z.S,cD.BITRATE)&&(e.JR=NaN);if(S=g.Y4(Z.experiments,"html5_request_size_max_kb"))e.kG=S*1024;Z.S.Z?e.JJ="; "+cD.EXPERIMENTAL.name+"=allowed":Z.W("html5_enable_cobalt_tunnel_mode")&&(e.JJ="; tunnelmode=true");S=M.serverPlaybackStartConfig;(S==null?0:S.enable)&&(S==null?0:S.playbackStartPolicy)&&(e.AT=!0,FC(e,S.playbackStartPolicy, +2));S=dG1(m);m.Zj.WV();a:{Z=m.OZ.w2;if(M=m.videoData.videoId)if(k=Z.X.get(M)){Z.X.remove(M);Z=k;break a}Z=void 0}m.D=new g.N0(m,m.V.schedule,e,m.videoData.X,m.videoData.S,ni(m),S,m.videoData.enableServerStitchedDai,Z,m.videoData.sE);e=m.videoData.W("html5_disable_preload_for_ssdai_with_preroll")&&m.videoData.isDaiEnabled()&&IQ(m)?!0:m.ZM&&g.Km(m.V)&&m.videoData.isLivePlayback;m.D.initialize(m.getCurrentTime(),ni(m),e);m.videoData.probeUrl&&(m.D.Hv=m.videoData.probeUrl);if(m.vp.length||m.ZM)m.videoData.cotn|| +cK(m,!1);yZ(m.Hq,m.D);m.rV&&e_R(m.D,new g.LP(m.rV));m.u9&&(m.D.aH(m.u9),m.Hq.j=!1);g.LI(m.videoData)&&(m=m.D,m.policy.Q$=m.policy.C3)}; +lb=function(m){m.D&&(m.D.dispose(),m.D=null,yZ(m.Hq,null));wy(m)?BGm(m):ND(m)}; +BGm=function(m){if(m.j9)if(m.logger.debug("release media source"),m.uH(),m.j9.L)try{m.V.Af()&&m.B("rms",{l:"vprms",sr:wy(m),rs:cJ(m.j9)});m.j9.clear();var e;(e=m.mediaElement)!=null&&(e.S=m.j9);m.j9=null}catch(Z){e=new g.Nr("Error while clearing Media Source in VideoPlayer: "+Z.name+", "+Z.message),e=Hi(e),m.handleError(e),ND(m)}else ND(m)}; +ND=function(m,e){e=e===void 0?!1:e;m.j9&&(m.logger.debug("remove media source"),ECP(m.j9),m.uH(e),m.j9.dispose(),m.j9=null)}; +Ecm=function(m,e){e=e===void 0?!1:e;if(m.j9)return m.j9.U;m.logger.debug("update media source");a:{e=e===void 0?!1:e;try{g.ti()&&m.videoData.yg()&&uGK(m.mediaElement);var Z=m.mediaElement.bK(m.yk(),m.Ic())}catch(k){if(v0(m.ib,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",k);m.aE("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}r0(m,Z,!1,!1,e)}var M;return((M=m.bK())==null?void 0:M.U)||null}; +r0=function(m,e,Z,M,k){function K(q){try{Ytc(m,q,Z,M)}catch(S){g.LD(S),m.handleError(new g.tw("fmt.unplayable",{msi:"1",ename:S&&typeof S==="object"&&"name"in S?String(S.name):void 0},1))}} +Z=Z===void 0?!1:Z;M=M===void 0?!1:M;UGt(m,k===void 0?!1:k);m.j9=e;wy(m)&&cJ(m.j9)==="open"?K(m.j9):C2k(m.j9,K)}; +UGt=function(m,e){e=e===void 0?!1:e;if(m.D){var Z=m.getCurrentTime()-m.cq();m.D.seek(Z,{qW:e}).cS(function(){})}else Rb(m)}; +Ytc=function(m,e,Z,M){Z=Z===void 0?!1:Z;M=M===void 0?!1:M;if(m.j9&&(!e||m.j9===e)){m.logger.debug("media source opened");var k=m.getDuration();!k&&vQ(m.videoData)&&(k=25200);if(m.j9.isView){var K=k;m.logger.debug(function(){return"Set media source duration to "+K+", video duration "+k}); +K>m.j9.getDuration()&&bBP(m,K)}else bBP(m,k);Eeb(m.D,m.j9,Z,M);m.Pv("mediasourceattached")}}; +bBP=function(m,e){if(m.j9){m.j9.Ky(e);var Z;(Z=m.D)!=null&&Z.policy.sE&&(Z.L=e)}}; +Y9=function(m,e){w0(m,e.reason,e.X.info,e.token,e.videoId)}; +W61=function(m,e){m.Pv("localmediachange",e)}; +Dn=function(m,e,Z,M){e=e===void 0?!1:e;Z=Z===void 0?!1:Z;M=M===void 0?!1:M;var k,K,q;return g.Qs(function(S){if(S.X==1){m.D&&m.D.TU();m.D&&m.D.MU()&&lb(m);if(m.W("html5_enable_vp9_fairplay")&&m.T3()&&(k=m.videoData.X)!=null)for(var a in k.X)k.X.hasOwnProperty(a)&&(k.X[a].X=null,k.X[a].S=!1);m.Fl(C5(m.playerState,2048));m.W("html5_ssap_keep_media_on_finish_segment")&&g.gA(m.videoData)?m.Pv("newelementrequired",M):m.Pv("newelementrequired");return e?g.A(S,XD(m),2):S.pB(2)}m.videoData.gr()&&((K=m.D)== +null?0:K.S9)&&!HZ(m)&&((q=m.isAtLiveHead())&&g.Sp(m.videoData)?m.seekTo(Infinity,{DN:"videoPlayer_getNewElement"}):m.videoData.QH&&m.D&&(a=m.D,a.CB.gr&&(a.CB.QH||a.CB.Z||a.CB.isPremiere?(a.seek(0,{DN:"loader_resetSqless"}),a.videoTrack.j=!0,a.audioTrack.j=!0,a.videoTrack.L=!0,a.audioTrack.L=!0):y3(a.CB)&&o9(a))));Z&&m.seekTo(0,{seekSource:105});g.y(m.playerState,8)&&(m.W("html5_ssap_keep_media_on_finish_segment")&&g.gA(m.videoData)?m.playVideo(!1,M):m.playVideo());g.It(S)})}; +Ib=function(m,e){m.B("hgte",{ne:+e});m.videoData.N=!1;e&&Dn(m);m.D&&oQ(m.D)}; +tiI=function(m,e){m.B("newelem",{r:e});Dn(m)}; +A_=function(m,e){m.hf.Z.YJ();g.y(m.playerState,32)||(m.Fl(C5(m.playerState,32,e==null?void 0:e.seekSource)),g.y(m.playerState,8)&&m.pauseVideo(!0),m.Pv("beginseeking",m));m.gm()}; +Ci=function(m,e){e=e==null?void 0:e.seekSource;g.y(m.playerState,32)?(m.Fl(oW(m.playerState,16,32,e)),m.Pv("endseeking",m)):g.y(m.playerState,2)||m.Fl(C5(m.playerState,16,e));m.hf.Z.LH(m.videoData,m.playerState.isPaused())}; +Q0I=function(m,e){m.V.experiments.dc("enable_adb_handling_in_sabr")&&(m.pauseVideo(!0),m.OP(),e&&m.aE("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +HBR=function(m){var e=0,Z="";if(m.rV){if(m.rV.SW)return"D,";e=m.rV.bB();Z=m.rV.hT().substring(0,4)}else m.u9&&(e=m.u9.bB(),Z=m.u9.hT().substring(0,4));return e>0?(m="AD"+e+", ",Z&&(m+=Z+", "),m):""}; +ib=function(m,e){m.Pv("internalvideodatachange",e===void 0?"dataupdated":e,m,m.videoData)}; +DGI=function(m){for(var e=g.r("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),Z=e.next();!Z.done;Z=e.next())m.SF.ZG(m.mediaElement,Z.value,m.Tl,m);m.V.Jd&&m.mediaElement.LU()&&(m.SF.ZG(m.mediaElement,"webkitplaybacktargetavailabilitychanged",m.eD,m),m.SF.ZG(m.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",m.GV,m))}; +LWG=function(m){qC(m.IH);fi(m)||(m.IH=KO(function(){return fi(m)},100))}; +fi=function(m){var e=m.mediaElement;e&&m.N8&&!m.videoData.AR&&!g.Th("vfp",m.hf.timerName)&&e.t7()>=2&&!e.isEnded()&&vJ(e.kE())>0&&m.hf.tick("vfp");return(e=m.mediaElement)&&!m.videoData.AR&&e.getDuration()>0&&(e.isPaused()&&e.t7()>=2&&vJ(e.kE())>0&&(g.Th("pbp",m.hf.timerName)||m.hf.tick("pbp"),!m.videoData.AT||m.ZE||e.isSeeking()||(m.ZE=!0,m.Pv("onPlaybackPauseAtStart"))),e=e.getCurrentTime(),IE(m.Fm,e))?(s0c(m),!0):!1}; +s0c=function(m){qC(m.IH);m.lx.stop();m.videoData.AR=!0;m.V.q_=!0;m.V.kG=0;var e=m.ib;if(e.videoData.U){var Z=e.Xq.S,M=e.videoData.U.T$;Z.S.has(M)&&(Z.S.delete(M),ce(Z))}e.X.stop();g.Gh7(m);g.y(m.playerState,8)&&m.Fl(f5(m.playerState,65));m.ZM=!1;XTG(m.lw());g.ZZ(m.Y_);m.Pv("playbackstarted");(m=g.zK("yt.scheduler.instance.clearPriorityThreshold"))?m():EZ(0,0)}; +g.Gh7=function(m){var e=pi(m.OZ),Z={},M={};!g.Th("pbs",m.hf.timerName)&&J4.measure&&J4.getEntriesByName&&(J4.getEntriesByName("mark_nr")[0]?$c("mark_nr"):$c());e.videoId&&(Z.videoId=e.videoId);e.clientPlaybackNonce&&!m.W("web_player_early_cpn")&&(Z.clientPlaybackNonce=e.clientPlaybackNonce);m.mediaElement&&m.mediaElement.isPaused()&&(M.isPausedOnLoad=!0);M.itag=e.U?Number(e.U.itag):-1;e.LJ&&(M.preloadType=String(m.zv?2:1));Z.liveStreamMode=y$s[If(e)];Z.playerInfo=M;m.hf.infoGel(Z);if(m.D){e=m.D.timing; +window&&window.performance&&window.performance.getEntriesByName&&(e.U&&(Z=window.performance.getEntriesByName(e.U),Z.length&&(Z=Z[0],e.tick("vri",Z.fetchStart),e.tick("vdns",Z.domainLookupEnd),e.tick("vreq",Z.requestStart),e.tick("vrc",Z.responseEnd))),e.S&&(Z=window.performance.getEntriesByName(e.S),Z.length&&(Z=Z[0],e.tick("ari",Z.fetchStart),e.tick("adns",Z.domainLookupEnd),e.tick("areq",Z.requestStart),e.tick("arc",Z.responseEnd))));e=e.ticks;for(var k in e)e.hasOwnProperty(k)&&m.hf.tick(k,e[k])}}; +j0P=function(m,e,Z,M){e=(e+(m.CP===3?.3:0))/Z;Z=Math.floor(e*4);Z>m.CP&&(m.B("vpq",{q:Z,cpn:M||m.videoData.clientPlaybackNonce,ratio:e.toFixed(3)}),m.CP=Z)}; +OBm=function(m){m.lw().qm();if(g.Sp(m.videoData)&&Date.now()>m.TY+6283){if(!(!m.isAtLiveHead()||m.videoData.X&&Q3(m.videoData.X))){var e=m.lw();if(e.qoe){e=e.qoe;var Z=e.provider.G.s6(),M=g.Yq(e.provider);G9(e,M,Z);Z=Z.U;isNaN(Z)||g.DR(e,M,"e2el",[Z.toFixed(3)])}}m.W("html5_alc_live_log_rawlat")?(e=m.videoData,e=g.uA(e.J())?!0:g.XP(e.J())?e.Ot==="6":!1):e=g.uA(m.V);e&&m.B("rawlat",{l:PZ(m.rh,"rawlivelatency").toFixed(3)});m.TY=Date.now()}m.videoData.U&&sq(m.videoData.U)&&(e=g.ab(m))&&e.videoHeight!== +m.EP&&(m.EP=e.videoHeight,w0(m,"a",I3c(m,m.videoData.Hv)))}; +I3c=function(m,e){if(e.X.video.quality==="auto"&&sq(e.lP())&&m.videoData.yH)for(var Z=g.r(m.videoData.yH),M=Z.next();!M.done;M=Z.next())if(M=M.value,M.getHeight()===m.EP&&M.X.video.quality!=="auto")return M.lP();return e.lP()}; +MD=function(m){if(!g.Sp(m.videoData))return NaN;var e=0;m.D&&m.videoData.X&&(e=vQ(m.videoData)?m.D.yB.gG()||0:m.videoData.X.Qh);return(0,g.G)()/1E3-m.Zx()-e}; +J$3=function(m){m.mediaElement&&m.mediaElement.hD()&&(m.RQ=(0,g.G)());m.V.Ta?g.kl(function(){ob(m)},0):ob(m)}; +ob=function(m){var e;if((e=m.j9)==null||!e.Xh()){if(m.mediaElement)try{m.Ci=m.mediaElement.playVideo()}catch(M){ub(m,"err."+M)}if(m.Ci){var Z=m.Ci;Z.then(void 0,function(M){m.logger.debug(function(){return"playMediaElement failed: "+M}); +if(!g.y(m.playerState,4)&&!g.y(m.playerState,256)&&m.Ci===Z)if(M&&M.name==="AbortError"&&M.message&&M.message.includes("load"))m.logger.debug(function(){return"ignore play media element failure: "+M.message}); +else{var k="promise";M&&M.name&&(k+=";m."+M.name);ub(m,k);m.AP=!0;m.videoData.O9=!0}})}}}; +ub=function(m,e){g.y(m.playerState,128)||(m.Fl(oW(m.playerState,1028,9)),m.B("dompaused",{r:e}),m.Pv("onAutoplayBlocked"))}; +Ki=function(m,e){e=e===void 0?!1:e;if(!m.mediaElement||!m.videoData.S)return!1;var Z=e;Z=Z===void 0?!1:Z;var M=null;var k;if((k=m.videoData.S)==null?0:k.X){M=Ecm(m,Z);var K;(K=m.D)==null||K.resume()}else lb(m),m.videoData.Hv&&(M=m.videoData.Hv.TF());k=m.mediaElement.WP();Z=!1;k&&M!==null&&M.i9===k.i9||(ViK(m,M),Z=!0);g.y(m.playerState,2)||(M=m.Hq,e=e===void 0?!1:e,M.L||!(M.Z>0)||M.mediaElement&&M.mediaElement.getCurrentTime()>0||(e={DN:"seektimeline_resumeTime",qW:e},M.videoData.AR||(e.seekSource= +15),M.seekTo(M.Z,e)));a:{e=Z;if(Mw(m.videoData)){if(!m.videoData.T3())break a}else if(!g.Nw(m.videoData))break a;if(m.mediaElement)if((M=m.videoData.L)&&m.mediaElement.LU()){k=m.mediaElement.W_();if(m.ai)if(k!==m.ai.element)d0(m);else if(e&&M.flavor==="fairplay"&&!QA())d0(m);else break a;if(m.W("html5_report_error_for_unsupported_tvos_widevine")&&QA()&&M.flavor==="widevine")m.aE("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{m.ai=new Mm(k,m.videoData,m.V);m.ai.subscribe("licenseerror", +m.Yf,m);m.ai.subscribe("qualitychange",m.t1,m);m.ai.subscribe("heartbeatparams",m.B1,m);m.ai.subscribe("keystatuseschange",m.Bd,m);m.ai.subscribe("ctmp",m.B,m);m.W("html5_widevine_use_fake_pssh")&&!m.videoData.isLivePlayback&&M.flavor==="widevine"&&m.ai.eV(new QP(WWc,"cenc",!1));e=g.r(m.Zj.keys);for(M=e.next();!M.done;M=e.next())M=m.Zj.get(M.value),m.ai.eV(M);m.W("html5_eme_loader_sync")||m.Zj.WV()}}else m.aE("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return Z}; +ViK=function(m,e){m.hf.tick("vta");g.nB("vta",void 0,"video_to_ad");m.getCurrentTime()>0&&J4c(m.Hq,m.getCurrentTime());m.mediaElement.j1(e);m.j9&&EZ(0,4);!m.videoData.AR&&m.playerState.isOrWillBePlaying()&&m.lx.start();if(A$7(m)){var Z;if(e=(Z=m.mediaElement)==null?void 0:Z.audioTracks())e.onchange=function(){m.Pv("internalaudioformatchange",m.videoData,!0)}}}; +d0=function(m){m.ai&&(m.ai.dispose(),m.ai=null)}; +Ey=function(m,e){e=e===void 0?!1:e;g.Sp(m.videoData)&&(m.isAtLiveHead()&&!m.playerState.isPaused()||m.E7()||g.fI(m.videoData))?m=m.getCurrentTime():g.gA(m.videoData)&&m.u9?(e=m.u9,m=m.getCurrentTime(),m=(m=BK(e,m*1E3))?(m.YE()-m.AJ())/1E3:0):m=m.GK(e);return m}; +zZs=function(m){var e=e===void 0?!1:e;m.logger.debug("reattachVideoSource");m.mediaElement&&(m.j9?(d0(m),ND(m),Ecm(m,e)):(m.videoData.Hv&&m.videoData.Hv.B3(),m.mediaElement.stopVideo()),m.playVideo())}; +YY=function(m,e){m.V.W("html5_log_rebuffer_reason")&&(e={r:e,lact:g.Xb()},m.mediaElement&&(e.bh=n5(m.mediaElement)),m.B("bufreason",e))}; +Uy=function(m,e,Z,M,k,K,q){var S;if((S=m.videoData.X)==null?0:S.isLive){var a=Z.playerType===2?Z:e,v=e.videoData.videoId,X=Z.videoData.videoId;if(v&&X){S=m.lw();if(S.qoe){var x=S.qoe,l=e.cpn,R=Z.cpn,h=a.videoData.Wq,w=x.provider.videoData.clientPlaybackNonce,N=x.provider.videoData.videoId,I=R!==w&&X!==N;w=l!==w&&v!==N;x.reportStats();x.adCpn&&x.adCpn!==l||(x.adCpn=w?l:"",x.Y=w?v:"",x.adFormat=w?h:void 0,W0(x,2,q?4:K?2:0,R,X,k),x.reportStats(),x.adCpn=I?R:"",x.Y=I?X:"",x.adFormat=I?h:void 0,W0(x,2, +q?5:K?3:1,l,v,M),x.reportStats())}M=e.cpn;if(S.U.has(M)){if(K=S.U.get(M),Xf(K,!0).send(),vZ(K),M!==S.provider.videoData.clientPlaybackNonce){iX(K);var C;(C=S.X)==null||aE(C);S.U.delete(M)}}else S.Zk=S.provider.videoData.clientPlaybackNonce,S.Zk&&S.X&&(S.U.set(S.Zk,S.X),Xf(S.X).send(),vZ(S.X));C=Z.cpn;a=a.videoData;k-=m.R$();if(S.U.has(C)){k=S.U.get(C);var B=k.U&&isNaN(k.L)?px(k):NaN;k=gR(k,!1);isNaN(B)||(k.C=B);k.send()}else k=h8m(S,S.provider,a,k),S.U.set(C,k),uX(k,new g.hN(C5(new g.rv,8),new g.rv)), +M9K(k),(B=S.X)==null||vZ(B);S.Zk=C;m.W("html5_unify_csi_server_stitched_transition_logging")?Pj3(e.cpn,Z.cpn,m.videoData.clientPlaybackNonce,Z.videoData):(S=m.videoData.clientPlaybackNonce,m=Z.videoData,e=(e.cpn===S?"video":"ad")+"_to_"+(Z.cpn===S?"video":"ad"),S={},m.C&&(S.cttAuthInfo={token:m.C,videoId:m.videoId}),g.h$(e,S),g.uj({targetVideoId:m.videoId,targetCpn:Z.cpn,isSsdai:!0},e),g.lj("pbs",(0,g.G)(),e))}}}; +mJK=function(m,e){if(m.V.Af()&&m.mediaElement){var Z=m.mediaElement.pR();Z.omt=(m.mediaElement.getCurrentTime()+m.cq()).toFixed(3);Z.ps=m.playerState.state.toString(16);Z.rt=(g.Yq(m.lw().provider)*1E3).toFixed();Z.e=e;m.Qw[m.bN++%5]=Z}try{if(e==="timeupdate"||e==="progress")return}catch(M){}m.logger.debug(function(){return"video element event "+e})}; +eXy=function(m){if(m.V.Af()){m.Qw.sort(function(M,k){return+M.rt-+k.rt}); +for(var e=g.r(m.Qw),Z=e.next();!Z.done;Z=e.next())Z=Z.value,m.B("vpe",Object.assign({t:Z.rt},Z));m.Qw=[];m.bN=0}}; +Zcc=function(m){if(Yl("cobalt")&&Yl("nintendo switch")){var e=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;m.B("nxdock",{d:e})}}; +Me3=function(m,e,Z,M,k){m.B("xvt",{m:e,g:1,tt:Z?1:0,np:M?1:0,c:k})}; +cK=function(m,e){var Z;(Z=m.D)==null||CP(Z,e)}; +IQ=function(m){return g.Ti(m.vp,"ad")}; +JYK=function(m,e){return g.gA(m.videoData)&&m.u9?m.u9.handleError(e,void 0):!1}; +ncs=function(m){if(qw(m.videoData,"html5_set_debugging_opt_in")&&(m=g.xE(),!g.uf(0,183))){var e="f"+(Math.floor(183/31)+1),Z=lf(e)||0;Z|=268435456;Z===0?delete Ts[e]:(Z=Z.toString(16),Ts[e]=Z.toString());m.save()}}; +kp7=function(m){return g.gA(m.videoData)&&m.u9?x9(m.u9):m.videoData.GK()}; +pwt=function(m,e){m.OZ.SO()||(m.B("sgap",{f:e}),m.OZ.clearQueue(!1,e==="pe"))}; +HZ=function(m){return m.W("html5_disable_video_player_initiated_seeks")&&Mw(m.videoData)}; +Ket=function(m){BB.call(this,m);var e=this;this.events=new g.z$(m);g.U(this,this.events);Vu(this.api,"isLifaAdPlaying",function(){return e.api.isLifaAdPlaying()}); +this.events.ZG(m,"serverstitchedvideochange",function(){e.api.isLifaAdPlaying()?(e.playbackRate=e.api.getPlaybackRate(),e.api.setPlaybackRate(1)):e.api.setPlaybackRate(e.playbackRate)}); +this.playbackRate=this.api.Jf()?this.api.getPlaybackRate():1}; +bb=function(m){BB.call(this,m);var e=this;this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"videodatachange",function(){e.updateMetadata()}); +this.events.ZG(m,"presentingplayerstatechange",function(){qF7(e)})}; +t_=function(m,e){try{navigator.mediaSession.setActionHandler(m,e)}catch(Z){}}; +pjy=function(m){t_("play",function(){m.api.playVideo()}); +t_("pause",function(){m.api.pauseVideo()}); +t_("seekbackward",function(){m.api.seekBy(-5*m.api.getPlaybackRate())}); +t_("seekforward",function(){m.api.seekBy(5*m.api.getPlaybackRate())}); +t_("seekto",function(e){(e=e.seekTime)&&m.api.seekTo(e)})}; +SFk=function(m){var e,Z,M,k;return(e=m.api.getVideoData().getWatchNextResponse())==null?void 0:(Z=e.playerOverlays)==null?void 0:(M=Z.playerOverlayRenderer)==null?void 0:(k=M.browserMediaSession)==null?void 0:k.browserMediaSessionRenderer}; +aWc=function(m){var e=[];if(!m||!m.thumbnails)return e;m=g.r(m.thumbnails);for(var Z=m.next();!Z.done;Z=m.next())Z=Z.value,Z.url&&(!Z.width||Z.width<=0||!Z.height||Z.height<=0||g.Bi(Z.url)&&e.push({src:Z.url||"",sizes:Z.width+"x"+Z.height,type:"image/jpeg"}));return e}; +qF7=function(m){m=m.api.getPlayerStateObject();m=m.isCued()||m.isError()?"none":m.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=m}; +vBG=function(m){var e=m.api.getProgressState().seekableEnd;e&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:e,playbackRate:m.api.getPlaybackRate(),position:m.api.getCurrentTime()})}; +Ql=function(m){BB.call(this,m);var e=this;this.S=new Map;this.U=this.X=void 0;this.compositeVideoState=null;this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"modulecreated",function(Z){var M;a:{var k,K,q,S=(k=e.api.getVideoData())==null?void 0:(K=k.getPlayerResponse())==null?void 0:(q=K.overlay)==null?void 0:q.playerControlsOverlayRenderer;if(S&&(k=g.t(S.compositeVideoOverlay,gBc),k==null?0:(M=k.sources)==null?0:M.length))for(M=g.r(k==null?void 0:k.sources),k=M.next();!k.done;k=M.next())if(k= +k.value,k.isActive){M=k;break a}M=void 0}Z==="captions"&&(M==null?void 0:M.topLeftCornerX)!==void 0&&(M==null?void 0:M.topLeftCornerY)!==void 0&&(M==null?void 0:M.width)!==void 0&&(M==null?void 0:M.height)!==void 0&&e.api.LL({top:M.topLeftCornerY,right:1-M.topLeftCornerX-M.width,bottom:1-M.topLeftCornerY-M.height,left:M.topLeftCornerX})}); +this.events.ZG(m,"videodatachange",function(Z){var M=e.api.getVideoData();e.X=void 0;e.S.clear();e.api.Q_("compositeembargo",1);var k=M==null?void 0:M.rd.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(k==null?0:k.length)?XjP(e,k.filter(function(K){return icc(e,K)})):(M==null?0:M.cueRanges)&&XjP(e,M.cueRanges.filter(function(K){return icc(e,K)})); +Z==="dataupdated"&&(M==null?void 0:M.compositeLiveStatusToken)!==e.U&&(e.U=M==null?void 0:M.compositeLiveStatusToken,e.api.dW())}); +this.events.ZG(m,g.tE("compositeembargo"),function(Z){var M;if(((M=e.X)==null?void 0:M.id)!==Z.id&&(e.api.C6(!0),e.S.has(Z.id))){var k=e.S.get(Z.id);M=e.api.getVideoData();k=g.r(k);for(var K=k.next();!K.done;K=k.next()){var q=void 0;K=(q=K.value.compositeEmbargo)==null?void 0:q.embargoStatusToken;M.U0!==K&&(M.U0=K,e.api.dW());xJK(e,Z)}}}); +this.events.ZG(m,"crx_compositeembargo",function(Z){var M;if(((M=e.X)==null?void 0:M.id)===Z.id&&(e.api.C6(!1),e.S.has(Z.id))){if(Z=e.api.getVideoData())Z.U0=void 0;e.api.dW();xJK(e)}}); +this.events.ZG(m,"heartbeatRequest",function(Z){e.compositeVideoState!==null&&(Z.playbackState||(Z.playbackState={}),Z.playbackState.compositeVideoState=e.compositeVideoState)}); +this.events.ZG(m,"onPlaybackAudioChange",function(){e.api.dW()}); +Vu(m,"setCompositeParam",function(Z){e.compositeVideoState=Z})}; +xJK=function(m,e){var Z;((Z=m.X)==null?void 0:Z.id)!==(e==null?void 0:e.id)&&(m.X&&(m.S.delete(m.X.id),m.api.n0([m.X],1)),m.X=e)}; +XjP=function(m,e){e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next()){var M=Z.value,k=void 0;Z=Number((k=M.playbackRelativePosition)==null?void 0:k.utcTimeMs)/1E3;var K=void 0;k=Z+Number((K=M.duration)==null?void 0:K.seconds);K="composite_embargo_"+Z;M.onEnter&&(M=M.onEnter.filter(m.Z),M.length&&(m.S.set(K,M),m.api.addUtcCueRange(K,Z,k,"compositeembargo",!1)))}}; +icc=function(m,e){var Z;return(Z=e.onEnter)==null?void 0:Z.some(m.Z)}; +HK=function(m){BB.call(this,m);var e=this;Vu(m,"getAvailableQualityData",function(){return e.getAvailableQualityData()}); +Vu(m,"getAvailableQualityDataAndMessaging",function(){return e.getAvailableQualityDataAndMessaging()})}; +lW1=function(m,e,Z){var M=[],k=e?156595:151874;m=g.r(m);for(var K=m.next();!K.done;K=m.next()){var q=K.value;K=q.video;q={formatId:q.id,qualityLabel:K.qualityLabel,quality:K.quality,isPlayable:e};if(K=Z.get(K.qualityLabel))q.paygatedQualityDetails={paygatedIndicatorText:K.paygatedIndicatorText,endpoint:K.endpoint,veType:k,trackingParams:K.trackingParams};M.push(q)}return M}; +u_1=function(m){for(var e=0,Z=0;Z1?2:1,m.Z.height=m.heightPx*Z,m.Z.style.height= +m.heightPx+"px",m.S.scale(1,Z)));e=g.r(e);for(M=e.next();!M.done;M=e.next()){Z=m;var k=m.index,K=M.value;for(M=0;M+20&&g.vc(e.U.element);M.classList.add("ytp-timely-actions-overlay");e.U.element.appendChild(M)}); +g.U(this,this.U);g.uc(this.api,this.U.element,4)}; +Bo1=function(m){m.timelyActions&&(m.Z=m.timelyActions.reduce(function(e,Z){if(Z.cueRangeId===void 0)return e;e[Z.cueRangeId]=0;return e},{}))}; +eo=function(m,e){if(m.timelyActions){m=g.r(m.timelyActions);for(var Z=m.next();!Z.done;Z=m.next())if(Z=Z.value,Z.cueRangeId===e)return Z}}; +EBt=function(m,e){if((m=eo(m,e))&&m.onCueRangeExit)return g.x4(m.onCueRangeExit)}; +YF3=function(m){if(m.X!==void 0){var e=(e=eo(m,m.X))&&e.onCueRangeEnter?g.x4(e.onCueRangeEnter):void 0;var Z=eo(m,m.X);if(Z&&Z.additionalTrigger){var M=!1;for(var k=g.r(Z.additionalTrigger),K=k.next();!K.done;K=k.next())K=K.value,K.type&&K.args&&m.C[K.type]!==void 0&&(M=M||m.C[K.type](K.args))}else M=!0;e&&M&&(m.api.jr("innertubeCommand",e),m.setTimeout(Z),m.Z[m.X]!==void 0&&m.Z[m.X]++)}}; +oBc=function(m,e){return m.S===void 0?!1:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===5E3?m.S===72:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(e.seekLengthMilliseconds)===1E4?m.S===74:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===5E3?m.S===71:e.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(e.seekLengthMilliseconds)===1E4?m.S===73:!1}; +dJ3=function(m){if(m=m.getWatchNextResponse()){var e,Z;m=(e=m.playerOverlays)==null?void 0:(Z=e.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel;e=g.t(m,UJ7);if(e!=null&&e.timelyActions)return e==null?void 0:e.timelyActions.map(function(M){return g.t(M,bcI)}).filter(function(M){return!!M})}}; +tey=function(m){BB.call(this,m);var e=this;WQ(this.api,"getPlaybackRate",function(){return e.api.getPlaybackRate()}); +WQ(this.api,"setPlaybackRate",function(Z){typeof Z==="number"&&e.api.setPlaybackRate(Z)})}; +QlR=function(m){m=m.Ya();if(!m)return!1;m=g.D_(m).exp||"";return m.includes("xpv")||m.includes("xpe")}; +Hc1=function(m){m=g.r(m.X(!0));for(var e=m.next();!e.done;e=m.next())if(QlR(e.value))return!0;return!1}; +DJR=function(m,e){m=g.r(m.X(!0));for(var Z=m.next();!Z.done;Z=m.next())if(Z=Z.value,QlR(Z)){var M={potc:"1",pot:e};Z.url&&(Z.url=g.sL(Z.url,M))}}; +Le3=function(m){var e=!1;m.V3(150);m.wpc.f().finally(function(){e=!0}); +return{isReady:function(){return e}, +Gc:function(Z){return m.Gc({aU:Z.aU,Js:!0,xJ:!0,qO:Z.qO?{gQ:Z.qO.gQ,Gk:Z.qO.Gk,Dj:Z.qO.Dj}:void 0})}, +ready:function(){return g.Qs(function(Z){if(Z.X==1)return Ab(Z,2),g.A(Z,m.wpc.f(),4);if(Z.X!=2)return C1(Z,0);f1(Z);g.It(Z)})}, +start:function(){}}}; +MW=function(m){BB.call(this,m);var e=this;this.useLivingRoomPoToken=!1;this.L=new g.TF;this.hf=null;this.C=!1;this.S=null;this.U=!1;var Z=m.J().getWebPlayerContextConfig();this.events=new g.z$(m);g.U(this,this.events);this.events.ZG(m,"spsumpreject",function(M,k,K){e.U=k;M&&e.C&&!e.S&&(e.W("html5_generate_content_po_token")&&K?e.X4(K):e.W("html5_generate_session_po_token")&&slG(e));e.S||e.api.B("stp",{s:+e.C,b:+e.U})}); +this.events.ZG(m,"poTokenVideoBindingChange",function(M){e.X4(M)}); +this.useLivingRoomPoToken=!(Z==null||!Z.useLivingRoomPoToken);m.addEventListener("csiinitialized",function(){e.hf=m.jB();var M=(e.W("html5_generate_session_po_token")||e.W("html5_generate_content_po_token"))&&!e.useLivingRoomPoToken;try{if(e.W("html5_use_shared_owl_instance"))GpK(e);else if(M){e.hf.TO("pot_isc");yKt(e);var k=g.Y4(e.api.J().experiments,"html5_webpo_kaios_defer_timeout_ms");k?g.kl(function(){Zy(e)},k):e.W("html5_webpo_idle_priority_job")?g.fr(g.BC(),function(){Zy(e)}):Zy(e)}}catch(K){K instanceof +Error&&g.LD(K)}}); +m.addEventListener("trackListLoaded",this.N.bind(this));m.H3(this)}; +jl1=function(m){var e=g.Tx(m.experiments,"html5_web_po_request_key");return e?e:g.Km(m)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; +kr=function(m,e){if(m.W("html5_webpo_bge_ctmp")){var Z,M={hwpo:!!m.X,hwpor:!((Z=m.X)==null||!Z.isReady())};m.api.B(e,M)}}; +GpK=function(m){var e,Z;g.Qs(function(M){if(M.X==1)return kr(m,"swpo_i"),m.j=P6I(),KF(m),g.A(M,g.rg(),2);if(M.X!=3)return e=M.S,kr(m,"swpo_co"),g.A(M,r2P(e),3);Z=M.S;m.X=Le3(Z);kr(m,"swpo_cc");m.X.ready().then(function(){m.L.resolve();kr(m,"swpo_re")}); +g.kl(function(){Zy(m);kr(m,"swpo_si")},0); +g.It(M)})}; +yKt=function(m){function e(v){g.LD(v)} +function Z(v){(v=OcK[v])&&m.hf.TO(v)} +var M=m.api.J(),k=jl1(M);try{var K=TXm(k),q=A7P(M.experiments),S=M.experiments.dc("html5_web_po_disable_remote_logging"),a=new FQ({l3:k,E0:Z,onError:e,eU:K,El:q,jX:function(){m.api.B("itr",{})}, +oI:S});m.X=a;m.X.ready().then(function(){m.L.resolve()}); +g.U(m,a)}catch(v){v instanceof Error&&g.LD(v)}}; +Zy=function(m){var e=m.api.J();m.hf.TO("pot_ist");var Z;(Z=m.X)==null||Z.start();m.W("html5_bandaid_attach_content_po_token")||(KF(m),slG(m),e=g.Y4(e.experiments,"html5_session_po_token_interval_time_ms")||0,e>0&&(m.Z=KO(function(){KF(m)},e)),m.C=!0)}; +KF=function(m){var e,Z,M,k;g.Qs(function(K){if(!m.W("html5_generate_session_po_token")||m.useLivingRoomPoToken)return K.return();e=m.api.J();Z=g.fE("EOM_VISITOR_DATA")||g.fE("VISITOR_DATA");M=e.dG?e.datasyncId:Z;k=g.Tx(e.experiments,"html5_mock_content_binding_for_session_token")||e.livingRoomPoTokenId||M;e.tf=qW(m,k);g.It(K)})}; +qW=function(m,e){if(!m.X)return m.j?m.j(e):"";try{var Z=m.X.isReady();m.hf.TO(Z?"pot_cms":"pot_csms");var M="";M=m.W("html5_web_po_token_disable_caching")?m.X.Gc({aU:e}):m.X.Gc({aU:e,qO:{gQ:e,i4:150,Gk:!0,Dj:!0}});m.hf.TO(Z?"pot_cmf":"pot_csmf");if(Z){var k;(k=m.S)==null||k.resolve();m.S=null;if(m.U){m.U=!1;var K,q=(K=g.qq(m.api.app))==null?void 0:K.D;q&&K53(q,!1)}}return M}catch(S){return g.LD(S),""}}; +slG=function(m){m.X&&(m.S=new Gx,m.X.ready().then(function(){m.hf.TO("pot_if");KF(m)}))}; +pF=function(m){g.Y.call(this);this.features=[];var e=this.X,Z=new PB(m),M=new Eb(m),k=new HK(m),K=new MW(m);var q=g.uA(m.J())?void 0:new VW(m);var S=new Ql(m),a=new fWm(m),v=new tey(m),X=new zM(m);var x=navigator.mediaSession&&window.MediaMetadata&&m.J().BX?new bb(m):void 0;var l=m.W("html5_enable_drc")?new JE(m):void 0;var R=new HB(m);var h=m.W("html5_enable_d6de4")?new DG(m):void 0;var w=On(m.J())?new vdK(m):void 0;var N=new yl(m),I=new yW(m),C=new Ket(m);var B=m.W("web_enable_timely_actions")? +new mV(m):void 0;e.call(this,Z,M,k,K,q,S,a,v,X,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,x,l,R,void 0,void 0,h,void 0,w,void 0,N,I,C,void 0,void 0,B,new jg(m))}; +So=function(){this.S=this.X=NaN}; +aF=function(m,e){this.V=m;this.timerName="";this.U=!1;this.S=NaN;this.Z=new So;this.X=e||null;this.U=!1}; +g.JKs=function(m,e,Z){if(e.Xq.bb&&!m.U){m.U=!0;m.C=e.clientPlaybackNonce;g.fE("TIMING_ACTION")||g.CE("TIMING_ACTION",m.V.csiPageType);m.V.csiServiceName&&g.CE("CSI_SERVICE_NAME",m.V.csiServiceName);if(m.X){for(var M=m.X.jB(),k=g.r(Object.keys(M)),K=k.next();!K.done;K=k.next())K=K.value,g.lj(K,M[K],m.timerName);M=EL(KB)(m.X.s1);g.uj(M,m.timerName);M=m.X;M.S={};M.s1={}}g.uj({playerInfo:{visibilityState:EL(kc)()},playerType:"LATENCY_PLAYER_HTML5"},m.timerName);m.L!==e.clientPlaybackNonce||Number.isNaN(m.S)|| +(g.Th("_start",m.timerName)?Z=EL(Si)("_start",m.timerName)+m.S:g.LD(new g.Nr("attempted to log gapless pbs before CSI timeline started",{cpn:e.clientPlaybackNonce})));Z&&!g.Th("pbs",m.timerName)&&m.tick("pbs",Z)}}; +Pj3=function(m,e,Z,M,k,K){m=(m===Z?"video":"ad")+"_to_"+(e===Z?"video":"ad");if(m!=="video_to_ad"||K!=null&&K.AR){K=m==="ad_to_video"?K:M;Z=K==null?void 0:K.b1;var q={};if(M==null?0:M.C)q.cttAuthInfo={token:M.C,videoId:M.videoId};k&&(q.startTime=k);g.h$(m,q);var S,a,v;M={targetVideoId:(S=M==null?void 0:M.videoId)!=null?S:"empty_video",targetCpn:e,adVideoId:(a=K==null?void 0:K.videoId)!=null?a:"empty_video",adClientPlaybackNonce:(v=Z==null?void 0:Z.cpn)!=null?v:K==null?void 0:K.clientPlaybackNonce}; +Z&&(M.adBreakType=Z.adBreakType,M.adType=Z.adType);g.uj(M,m);g.lj("pbs",(0,g.G)(),m)}}; +VeR=function(m){dfG();ooP();m.timerName=""}; +Wek=function(m){if(m.X){var e=m.X;e.S={};e.s1={}}m.U=!1;m.L=void 0;m.S=NaN}; +qX=function(m,e){g.m6.call(this);this.Xq=m;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.X=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.K={};if(m=e.session_data)this.sessionData=bw(m,"&");this.index=Math.max(0,Number(e.index)||0);this.loop=!!e.loop;this.startSeconds=Number(e.startSeconds)||0;this.title=e.playlist_title||"";this.description=e.playlist_description||"";this.author=e.author|| +e.playlist_author||"";e.video_id&&(this.items[this.index]=e);if(m=e.api)typeof m==="string"&&m.length===16?e.list="PL"+m:e.playlist=m;if(m=e.list)switch(e.listType){case "user_uploads":this.listId=new EG("UU","PLAYER_"+m);break;default:var Z=e.playlist_length;Z&&(this.length=Number(Z)||0);this.listId=new EG(m.substring(0,2),m.substring(2));if(m=e.video)this.items=m.slice(0),this.loaded=!0}else if(e.playlist){m=e.playlist.toString().split(",");this.index>0&&(this.items=[]);m=g.r(m);for(Z=m.next();!Z.done;Z= +m.next())(Z=Z.value)&&this.items.push({video_id:Z});this.length=this.items.length;if(m=e.video)this.items=m.slice(0),this.loaded=!0}this.setShuffle(!!e.shuffle);if(m=e.suggestedQuality)this.quality=m;this.K=fm(e,"playlist_");this.S=(e=e.thumbnail_ids)?e.split(","):[]}; +SK=function(m){return!!(m.playlist||m.list||m.api)}; +lc=function(m,e){return m.loop||!!e||m.index+1=11;m=m.api.J().AR&&Ez;return!(!e&&!m)}; +tQb=function(m,e){return!m.api.isInline()&&!Utm(m,g.JS(e))&&FE(e)}; +sz=function(m){m.GW.U8();if(m.sX&&m.y3)m.y3=!1;else if(!m.api.J().Sp&&!m.P9()){var e=m.api.getPlayerStateObject();g.y(e,2)&&ic(m.api);!m.api.J().Ot||e.isCued()||g.y(e,1024)?(Qzk(m),m.gh()):m.rC.isActive()?m.rC.stop():m.rC.start()}}; +jK=function(m,e){var Z;if((Z=m.api.getVideoData())==null?0:Z.mutedAutoplay){var M,k;if((M=e.target)==null?0:(k=M.className)==null?0:k.includes("ytp-info-panel"))return!1}return FE(e)&&m.api.isMutedByMutedAutoplay()?(m.api.unMute(),Qzk(m),m.api.getPresentingPlayerType()===2&&m.api.playVideo(),e=m.api.getPlayerStateObject(),!g.y(e,4)||g.y(e,8)||g.y(e,2)||m.gh(),!0):!1}; +Qzk=function(m){m=m.api.jB();!g.Th("rfg",m.timerName)||g.Th("grc",m.timerName)||g.fE("TIMING_ACTION")!=="blz_watch_tap"&&!g.fE("TIMING_PLAYBACK_REQUIRES_TAP")&&g.fE("TIMING_ACTION")!=="watch"||m.tick("grc")}; +HRc=function(m,e,Z){m.api.isFullscreen()?Z<1-e&&m.api.toggleFullscreen():Z>1+e&&m.api.toggleFullscreen()}; +Gn=function(m){var e=!!m.e7&&!XE(m.api)&&!m.DB;var Z=m.api.getPresentingPlayerType()===2,M=m.api.J();Z?Dtt&&M.W("enable_visit_advertiser_support_on_ipad_mweb")?e=!1:(Z=wH(m.api.QW()),e=e&&Z.jt()):e=e&&(M.xU||m.api.isFullscreen()||M.d7);m.Qg!==e&&(m.Qg=e,g.gU(m.api.getRootNode(),"ytp-hide-info-bar",!e))}; +E4K=function(m){var e=UC()&&EC()>=67&&!m.api.J().AR,Z=Yl("tizen"),M=m.api.J().W("mweb_enable_custom_control_shared")||m.api.J().W("mweb_enable_custom_control_visitor");m=m.api.J().disableOrganicUi;return!Z&&!g.F7&&!e&&!M&&!m}; +g.Oz=function(m){g.iW.call(this,m);this.chrome=null;this.load()}; +L1K=function(){for(var m=J0.length;m<4;m++){var e=g.SU("VIDEO");e.load();J0.push(new g.Vl(e))}}; +Ve=function(m,e,Z,M){var k=Z.getVideoData(),K=e.getVideoData();if(Z.getPlayerState().isError())return{msg:"player-error"};var q=K.S;if(e.xe()>M/1E3+1)return{msg:"in-the-past"};if(K.isLivePlayback&&!isFinite(M))return{msg:"live-infinite"};(M=e.fJ())&&M.isView()&&(M=M.mediaElement);if(M&&M.qz().length>12&&g.Nw(k))return{msg:"played-ranges"};if(!k.S)return null;if(!q)return{msg:"no-pvd-formats"};if(!k.S.X||!q.X)return{msg:"non-dash"};M=q.videoInfos[0];var S=k.S.videoInfos[0];m.j&&uJ(K)&&(M=e.yk(),S= +Z.yk());if(!M||!S)return{msg:"no-video-info"};if(m.U&&(DT(M)||DT(S)))return{msg:"av1"};e=m.X&&K.ON()&&uO();if(S.containerType!==M.containerType)if(e)K.B("sgap",{ierr:"container"});else return{msg:"container"};if(m.S&&!e&&(S.T$!==M.T$||S.T$===""||M.T$===""))return{msg:"codec"};if(m.Z&&S.video&&M.video&&Math.abs(S.video.width/S.video.height-M.video.width/M.video.height)>.01)return{msg:"ratio"};if(g.Nw(K)&&g.Nw(k))return{msg:"content-protection"};q=q.X[0];k=k.S.X[0];Z=q.audio;var a=k.audio;if(Z.sampleRate!== +a.sampleRate&&!e4)if(e)K.B("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:q.itag,cr:Z.sampleRate,ni:k.itag,nr:a.sampleRate};return(Z.numChannels||2)!==(a.numChannels||2)?{msg:"channel-count"}:m.L&&K.ON()&&M.video.fps!==S.video.fps?{msg:"fps"}:null}; +szI=function(m,e,Z){var M=m.getVideoData(),k=e.getVideoData();if(!M.J().supportsGaplessShorts())return{nq:"env"};if(Z.C){if(M.uP&&!M.isAd()||k.uP&&!k.isAd())return{nq:"autoplay"}}else if(M.uP||k.uP)return{nq:"autoplay"};if(!M.N)return{nq:"client"};if(!m.SO())return{nq:"no-empty"};m=Ve(Z,m,e,Infinity);return m!=null?{nq:m.msg}:null}; +Wv=function(m){g.Y.call(this);this.app=m;this.Z=this.U=this.aO=this.X=null;this.S=1;this.events=new g.z$(this);this.events.ZG(this.app.Fq,"crx_gaplessshortslooprange",this.j);g.U(this,this.events)}; +GEG=function(){this.Z=this.C=this.U=this.j=this.L=this.S=this.X=!1}; +ywI=function(m){var e=new GEG;e.X=m.W("h5_gapless_support_types_diff");e.L=m.W("h5_gapless_error_on_fps_diff");e.j=m.W("html5_gapless_use_format_info_fix");e.U=m.W("html5_gapless_disable_on_av1")&&!m.W("html5_gapless_enable_on_av1");e.S=m.W("html5_gapless_check_codec_diff_strictly");e.C=m.W("html5_gapless_on_ad_autoplay");e.Z=m.W("html5_gapless_disable_diff_aspect_radio");return e}; +g.zn=function(m,e,Z,M){M=M===void 0?!1:M;Fw.call(this);this.mediaElement=m;this.start=e;this.end=Z;this.X=M}; +Pv=function(m,e,Z,M,k,K){K=K===void 0?0:K;g.Y.call(this);var q=this;this.policy=m;this.X=e;this.S=Z;this.OZ=k;this.L=K;this.Z=this.U=null;this.currentVideoDuration=this.C=-1;this.j=!1;this.zw=new Gx;this.lk=M-e.cq()*1E3;this.zw.then(void 0,function(){}); +this.timeout=new g.eD(function(){q.XJ("timeout")},1E4); +g.U(this,this.timeout);this.N=isFinite(M);this.status={status:0,error:null}}; +Jw7=function(m){var e,Z,M,k,K,q,S,a,v,X;return g.Qs(function(x){if(x.X==1){if(m.MU())return x.return(Promise.reject(Error(m.status.error||"disposed")));m.timeout.start();e=g.mH.JI();return g.A(x,m.zw,2)}g.mH.Od("gtfta",e);Z=m.X.fJ();if(Z.isEnded())return m.XJ("ended_in_finishTransition"),x.return(Promise.reject(Error(m.status.error||"")));if(!m.Z||!Tu(m.Z))return m.XJ("next_mse_closed"),x.return(Promise.reject(Error(m.status.error||"")));if(m.S.bK()!==m.Z)return m.XJ("next_mse_mismatch"),x.return(Promise.reject(Error(m.status.error|| +"")));M=jzy(m);k=M.ER;K=M.qG;q=M.Qb;m.X.A7(!1,!0);S=OR3(Z,k,q,!m.S.getVideoData().isAd());m.S.setMediaElement(S);(a=m.X.MS())&&m.S.wX(a.l8,a.Le);m.N&&(m.S.seekTo(m.S.getCurrentTime()+.001,{DA:!0,WQ:3,DN:"gapless_pseudo"}),S.play(),g.rh());v=Z.pR();v.cpn=m.X.getVideoData().clientPlaybackNonce;v.st=""+k;v.et=""+q;m.S.B("gapless",v);m.X.B("gaplessTo",{cpn:m.S.getVideoData().clientPlaybackNonce});X=m.X.getPlayerType()===m.S.getPlayerType();Me3(m.X,K,!1,X,m.S.getVideoData().clientPlaybackNonce);Me3(m.S, +m.S.getCurrentTime(),!0,X,m.X.getVideoData().clientPlaybackNonce);m.S.lV=!0;g.LW(function(){!m.S.getVideoData().AR&&m.S.getPlayerState().isOrWillBePlaying()&&s0c(m.S)}); +e8(m,6);m.dispose();return x.return(Promise.resolve())})}; +zo3=function(m){if(m.S.getVideoData().S){var e=m.OZ.J().W("html5_gapless_suspend_next_loader")&&m.L===1;r0(m.S,m.Z,e,VQy(m));e8(m,3);W1b(m);var Z=Zi(m);e=Z.NC;Z=Z.Pk;e.subscribe("updateend",m.Wx,m);Z.subscribe("updateend",m.Wx,m);m.Wx(e);m.Wx(Z)}}; +W1b=function(m){m.X.unsubscribe("internalvideodatachange",m.nV,m);m.S.unsubscribe("internalvideodatachange",m.nV,m);m.OZ.J().W("html5_gapless_use_format_info_fix")&&(m.X.unsubscribe("internalvideoformatchange",m.nV,m),m.S.unsubscribe("internalvideoformatchange",m.nV,m));m.X.unsubscribe("mediasourceattached",m.nV,m);m.S.unsubscribe("statechange",m.Uf,m)}; +OR3=function(m,e,Z,M){m=m.isView()?m.mediaElement:m;return new g.zn(m,e,Z,M)}; +e8=function(m,e){e<=m.status.status||(m.status={status:e,error:null},e===5&&m.zw.resolve())}; +VQy=function(m){return m.OZ.J().W("html5_gapless_no_clear_buffer_timeline")&&m.L===1&&Mw(m.X.getVideoData())}; +jzy=function(m){var e=m.X.fJ();e=e.isView()?e.start:0;var Z=m.X.getVideoData().isLivePlayback?Infinity:Ey(m.X,!0);Z=Math.min(m.lk/1E3,Z)+e;var M=m.N?100:0;m=Z-m.S.xe()+M;return{Gr:e,ER:m,qG:Z,Qb:Infinity}}; +Zi=function(m){return{NC:m.U.X.Ss,Pk:m.U.S.Ss}}; +ME=function(m){g.Y.call(this);var e=this;this.app=m;this.L=this.S=this.X=null;this.N=!1;this.U=this.Z=null;this.j=ywI(this.app.J());this.C=function(){g.LW(function(){P_b(e)})}}; +mMb=function(m,e,Z,M,k){M=M===void 0?0:M;k=k===void 0?0:k;m.SO()||k0(m);m.Z=new Gx;m.X=e;var K=Z,q=k===0;q=q===void 0?!0:q;var S=m.app.Jf(),a=S.getVideoData().isLivePlayback?Infinity:Ey(S,!0)*1E3;K>a&&(K=a-200,m.N=!0);q&&S.getCurrentTime()>=K/1E3?m.C():(m.S=S,q&&(q=K,K=m.S,m.app.Fq.addEventListener(g.tE("vqueued"),m.C),q=isFinite(q)||q/1E3>K.getDuration()?q:0x8000000000000,m.L=new g.Ub(q,0x8000000000000,{namespace:"vqueued"}),K.addCueRange(m.L)));q=M/=1E3;K=e.getVideoData().X;M&&K&&m.S&&(S=M,a=0, +e.getVideoData().isLivePlayback&&(q=Math.min(Z/1E3,Ey(m.S,!0)),a=Math.max(0,q-m.S.getCurrentTime()),S=Math.min(M,Ey(e)+a)),q=Kus(K,S)||M,q!==M&&m.X.B("qvaln",{st:M,at:q,rm:a,ct:S}));e=q;M=m.X;M.getVideoData().LJ=!0;M.getVideoData().N=!0;g0(M,!0);K={};m.S&&(K=m.S.pF(),q=m.S.getVideoData().clientPlaybackNonce,K={crt:(K*1E3).toFixed(),cpn:q});M.B("queued",K);e!==0&&M.seekTo(e+.01,{DA:!0,WQ:3,DN:"videoqueuer_queued"});m.U=new Pv(m.j,m.app.Jf(),m.X,Z,m.app,k);Z=m.U;Z.status.status!==Infinity&&(e8(Z,1), +Z.X.subscribe("internalvideodatachange",Z.nV,Z),Z.S.subscribe("internalvideodatachange",Z.nV,Z),Z.OZ.J().W("html5_gapless_use_format_info_fix")&&(Z.X.subscribe("internalvideoformatchange",Z.nV,Z),Z.S.subscribe("internalvideoformatchange",Z.nV,Z)),Z.X.subscribe("mediasourceattached",Z.nV,Z),Z.S.subscribe("statechange",Z.Uf,Z),Z.X.subscribe("newelementrequired",Z.kP,Z),Z.nV());return m.Z}; +P_b=function(m){var e,Z,M,k,K,q,S,a,v;g.Qs(function(X){switch(X.X){case 1:if(m.MU()||!m.Z||!m.X)return X.return();m.N&&g.VZ(m.app.Jf(),!0,!1);Z=m.app.J().W("html5_force_csdai_gapful_transition")&&((e=m.app.Jf())==null?void 0:e.getVideoData().isDaiEnabled());M=null;if(!m.U||Z){X.pB(2);break}Ab(X,3);return g.A(X,Jw7(m.U),5);case 5:C1(X,2);break;case 3:M=k=f1(X);case 2:if(!m.X)return X.return();g.mH.J6("vqsp",function(){K$(m.app,m.X)}); +if(!m.X)return X.return();K=m.X.fJ();m.app.J().W("html5_gapless_seek_on_negative_time")&&K&&K.getCurrentTime()<-.01&&m.X.seekTo(0);g.mH.J6("vqpv",function(){m.app.playVideo()}); +if(M||Z)m.X?(q=M?M.message:"forced",(S=m.S)==null||S.B("gapfulfbk",{r:q}),tiI(m.X,q)):(a=m.S)==null||a.B("gapsp",{});v=m.Z;k0(m);v&&v.resolve();return X.return(Promise.resolve())}})}; +k0=function(m,e){e=e===void 0?!1:e;if(m.S){if(m.L){var Z=m.S;m.app.Fq.removeEventListener(g.tE("vqueued"),m.C);Z.removeCueRange(m.L)}m.S=null;m.L=null}m.U&&(m.U.status.status!==6&&(Z=m.U,Z.status.status!==Infinity&&Z.L!==1&&Z.XJ("Canceled")),m.U=null);m.Z=null;m.X&&!e&&m.X!==g.qq(m.app,1)&&m.X!==m.app.Jf()&&m.X.dispose();m.X&&e&&ND(m.X);m.X=null;m.N=!1}; +enb=function(m){var e;return((e=m.U)==null?void 0:e.currentVideoDuration)||-1}; +ZyI=function(m,e,Z){if(m.SO())return"qie";if(m.X==null||m.X.MU()||m.X.getVideoData()==null)return"qpd";if(e.videoId!==m.X.fE())return"vinm";if(enb(m)<=0)return"ivd";if(Z!==1)return"upt";if((Z=m.U)==null)m=void 0;else if(Z.getStatus().status!==5)m="niss";else if(Ve(Z.policy,Z.X,Z.S,Z.lk)!=null)m="pge";else{e=Zi(Z);m=e.NC;var M=e.Pk;e=g.Y4(Z.OZ.J().experiments,"html5_shorts_gapless_next_buffer_in_seconds");Z=Z.C+e;M=S4(M.v0(),Z);m=S4(m.v0(),Z);m=!(e>0)||M&&m?null:"neb"}return m!=null?m:null}; +qE=function(){g.m6.call(this);var m=this;this.fullscreen=0;this.Z=this.U=this.pictureInPicture=this.X=this.S=this.inline=!1;this.L=function(){m.Cx()}; +jVk(this.L);this.C=this.getVisibilityState(this.hD(),this.isFullscreen(),this.ya(),this.isInline(),this.S8(),this.y7(),this.ox(),this.Ly())}; +aW=function(m){return!(m.ya()||m.isInline()||m.isBackground()||m.S8()||m.y7()||m.ox()||m.Ly())}; +qus=function(m){var e=m.experiments,Z=e.dc.bind(e);p$=Z("html5_use_async_stopVideo");MN7=Z("html5_pause_for_async_stopVideo");S8=Z("html5_not_reset_media_source");Z("html5_listen_for_audio_output_changed")&&($yI=!0);$v=Z("html5_not_reset_media_source");kBK=Z("html5_not_reset_media_source");xv=Z("html5_retain_source_buffer_appends_for_debugging");g.KFc=Z("web_enable_auto_pip")||Z("web_enable_pip_on_miniplayer");Z("html5_mediastream_applies_timestamp_offset")&&(Jf=!0);var M=g.Y4(e,"html5_cobalt_override_quic"); +M&&QC("QUIC",+(M>0));(M=g.Y4(e,"html5_cobalt_audio_write_ahead_ms"))&&QC("Media.AudioWriteDurationLocal",M);(M=Z("html5_cobalt_enable_decode_to_texture"))&&QC("Media.PlayerConfiguration.DecodeToTexturePreferred",M?1:0);(m.Af()||Z("html5_log_cpu_info"))&&ENP();Error.stackTraceLimit=50;var k=g.Y4(e,"html5_idle_rate_limit_ms");k&&Object.defineProperty(window,"requestIdleCallback",{value:function(K){return window.setTimeout(K,k)}}); +Y6G(m.S);m7=Z("html5_use_ump_request_slicer");XlR=Z("html5_record_now");Z("html5_disable_streaming_xhr")&&(hX=!1);Z("html5_byterate_constraints")&&(qM=!0);Z("html5_use_non_active_broadcast_for_post_live")&&(RD=!0);Z("html5_sunset_aac_high_codec_family")&&(tM["141"]="a")}; +pDs=function(m){return m.slice(12).replace(/_[a-z]/g,function(e){return e.toUpperCase().replace("_","")}).replace("Dot",".")}; +SuP=function(m){var e={},Z;for(Z in m.experiments.flags)if(Z.startsWith("cobalt_h5vcc")){var M=pDs(Z),k=g.Y4(m.experiments,Z);M&&k&&(e[M]=QC(M,k))}return e}; +ai=function(m,e,Z,M,k){k=k===void 0?[]:k;g.Y.call(this);this.V=m;this.fR=e;this.Z=Z;this.segments=k;this.X=void 0;this.S=new Map;k.length&&(this.X=k[0])}; +aJR=function(m,e){e.Z===m&&(m.X=e,m.segments.push(e))}; +v2t=function(m){if(!(m.segments.length<2)){var e=m.segments.shift();if(e){var Z=e.X,M=[];if(Z.size){Z=g.r(Z.values());for(var k=Z.next();!k.done;k=Z.next()){k=g.r(k.value);for(var K=k.next();!K.done;K=k.next()){K=K.value;for(var q=g.r(K.segments),S=q.next();!S.done;S=q.next())(S=Tb(S.value))&&M.push(S);K.WV()}}}(Z=Tb(e))&&M.push(Z);M=g.r(M);for(Z=M.next();!Z.done;Z=M.next())m.S.delete(Z.value);e.dispose()}}}; +FU=function(m,e,Z,M){if(!m.X||e>Z)return!1;e=new ai(m.V,e,Z,m.X,M);M=g.r(M);for(Z=M.next();!Z.done;Z=M.next()){Z=Z.value;var k=Tb(Z);k&&k!==Tb(m.X)&&m.S.set(k,[Z])}m=m.X;m.X.has(e.AJ())?m.X.get(e.AJ()).push(e):m.X.set(e.AJ(),[e]);return!0}; +h1=function(m,e){return m.S.get(e)}; +ubb=function(m,e,Z){m.S.set(e,Z)}; +$9=function(m,e,Z,M,k,K){return new vE(Z,Z+(M||0),!M,e,m,k,K)}; +vE=function(m,e,Z,M,k,K,q){g.Y.call(this);this.fR=m;this.U=e;this.S=Z;this.type=M;this.Z=k;this.videoData=K;this.Ll=q;this.X=new Map;cQ(K)}; +Tb=function(m){return m.videoData.clientPlaybackNonce}; +xIy=function(m){if(m.X.size)for(var e=g.r(m.X.values()),Z=e.next();!Z.done;Z=e.next()){Z=g.r(Z.value);for(var M=Z.next();!M.done;M=Z.next())M.value.dispose()}m.X.clear()}; +g2s=function(m){this.end=this.start=m}; +g.gO=function(m,e,Z){g.Y.call(this);var M=this;this.api=m;this.V=e;this.G=Z;this.b9=new Map;this.kG=new Map;this.Qh=new Map;this.S=new Map;this.U=[];this.N=[];this.Z=new Map;this.lX=new Map;this.Y=new Map;this.wr=NaN;this.XG=this.tR=this.Wq=null;this.mw=new g.eD(function(){XD7(M,M.wr,M.Wq||void 0)}); +this.events=new g.z$(this);this.CR=15E3;this.S9=new g.eD(function(){M.Hv=!0;var k=M.G,K=M.CR;k.B("sdai",{aftimeout:K});k.AY(new g.tw("ad.fetchtimeout",{timeout:K}));iy7(M);M.IQ(!1)},this.CR); +this.Hv=!1;this.L=new Map;this.KB=[];this.j=null;this.yH=new Set;this.xa=[];this.Bq=[];this.X=void 0;this.nB=0;this.yh=!0;this.AR=!1;this.sE=[];this.uw=new Set;this.LJ=new Set;this.JY=new Set;this.K0=0;this.ZN=new Set;this.tf=0;this.SW=this.Te=!1;this.UZ=this.C="";this.qs=null;this.G.getPlayerType();wzc(this.G,this);this.wc=this.V.Af();g.U(this,this.mw);g.U(this,this.events);g.U(this,this.S9);this.events.ZG(this.api,g.tE("serverstitchedcuerange"),this.onCueRangeEnter);this.events.ZG(this.api,"crx_serverstitchedcuerange", +this.onCueRangeExit)}; +XH=function(m,e,Z){return{ssvc:e,cpn:(Z==null?void 0:Z.cpn)||"",vid:(Z==null?void 0:Z.videoData.videoId)||"",ct:(m.G.getCurrentTime()||0).toFixed(3),cmt:(m.G.xe()||0).toFixed(3)}}; +id=function(m,e){m.api.o4();m.api.Pv("serverstitchedvideochange",e.IE,e.sW)}; +x0=function(m,e,Z){var M=m.AR;var k={cpn:m.G.getVideoData().clientPlaybackNonce,durationMs:0,fR:0,playerType:1,aY:0,videoData:m.G.getVideoData(),errorCount:0};var K=m.C;m.C="";var q=e.Vn-Z.Vn;Math.abs(q)>.5&&m.G.B("sdai",{ttdtb:1,delta:q,cpn:k.cpn,enter:e.adCpn,exit:Z.adCpn,seek:M,skip:K});m.api.W("html5_ssdai_enable_media_end_cue_range")&&m.api.Yr();if(e.isAd&&Z.isAd){k=!!K;if(e.adCpn&&Z.adCpn){var S=m.Z.get(e.adCpn);var a=m.Z.get(Z.adCpn)}k?m.G.B("sdai",{igtransskip:1,enter:e.adCpn,exit:Z.adCpn, +seek:M,skip:K}):g.xM3(m,a,S,Z.Vn,e.Vn,M,k)}else if(!e.isAd&&Z.isAd){m.UZ=k.cpn;m.api.Pv("serverstitchedvideochange");S=XH(m,"a2c");m.G.B("sdai",S);m.K0=0;if(S=Z.S0)m.nB=S.end;var v;Z.adCpn&&(v=m.Z.get(Z.adCpn));v&&Uy(m.G,v,k,Z.Vn,e.Vn,M,!!K)}else if(e.isAd&&!Z.isAd){var X;e.adCpn&&(X=m.Z.get(e.adCpn));X&&(m.nB=0,m.UZ=X.cpn,id(m,X),v=XH(m,"c2a",X),m.G.B("sdai",v),m.K0=1,Uy(m.G,k,X,Z.Vn,e.Vn,M,!!K))}}; +ld=function(m,e,Z){Z=Z===void 0?0:Z;var M=(e+Z)*1E3,k=g.fq(m.N,{fR:M},function(S,a){return S.fR-a.fR}); +k=k<0?(k+2)*-1:k;if(k>=0)if(Mw(m.G.getVideoData())&&m.V.W("html5_ssdai_overdecorate")||m.V.W("html5_cabr_ssdai_overdecorate")){M=e*1E3;for(var K=k;K<=k+1&&K=q.fR-Z*1E3&&M<=q.aY+Z*1E3)return{Tg:q,t_:e}}}else if(m=m.N[k],m.aY>=M)return{Tg:m,t_:e};return{Tg:void 0,t_:e}}; +u2y=function(m,e){var Z="";(e=lJG(m,e))&&(Z=e.getId());return Z?m.Z.get(Z):void 0}; +lJG=function(m,e){if(m.UZ){var Z=m.S.get(m.UZ);if(Z&&Z.start-200<=e&&Z.end+200>=e)return Z}m=g.r(m.S.values());for(Z=m.next();!Z.done;Z=m.next())if(Z=Z.value,Z.start<=e&&Z.end>=e)return Z}; +XD7=function(m,e,Z){var M=m.XG||m.api.Jf().getPlayerState();ud(m,!0);m.G.seekTo(e,Z);m=m.api.Jf();e=m.getPlayerState();M.isOrWillBePlaying()&&!e.isOrWillBePlaying()?m.playVideo():M.isPaused()&&!e.isPaused()&&m.pauseVideo()}; +ud=function(m,e){m.wr=NaN;m.Wq=null;m.mw.stop();m.tR&&e&&Ci(m.tR);m.XG=null;m.tR=null}; +Ri=function(m){var e=e===void 0?-1:e;var Z=Z===void 0?Infinity:Z;for(var M=[],k=g.r(m.N),K=k.next();!K.done;K=k.next())K=K.value,(K.fRZ)&&M.push(K);m.N=M;M=g.r(m.S.values());for(k=M.next();!k.done;k=M.next())k=k.value,k.start>=e&&k.end<=Z&&(m.G.removeCueRange(k),m.S.delete(k.getId()),m.G.B("sdai",{rmAdCR:1}));M=ld(m,e/1E3);e=M.Tg;M=M.t_;if(e&&(M=M*1E3-e.fR,k=e.fR+M,e.durationMs=M,e.aY=k,M=m.S.get(e.cpn))){k=g.r(m.U);for(K=k.next();!K.done;K=k.next())K=K.value,K.start===M.end?K.start=e.fR+ +e.durationMs:K.end===M.start&&(K.end=e.fR);M.start=e.fR;M.end=e.fR+e.durationMs}if(e=ld(m,Z/1E3).Tg){var q;M="playback_timelinePlaybackId_"+e.IE+"_video_id_"+((q=e.videoData)==null?void 0:q.videoId)+"_durationMs_"+e.durationMs+"_enterTimeMs_"+e.fR+"_parentReturnTimeMs_"+e.aY;m.oF("Invalid_clearEndTimeMs_"+Z+"_that_falls_during_"+M+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +Rnb=function(m){m.b9.clear();m.kG.clear();m.Qh.clear();m.S.clear();m.U=[];m.N=[];m.Z.clear();m.lX.clear();m.Y.clear();m.L.clear();m.KB=[];m.j=null;m.yH.clear();m.xa=[];m.Bq=[];m.sE=[];m.uw.clear();m.LJ.clear();m.JY.clear();m.ZN.clear();m.Hv=!1;m.X=void 0;m.nB=0;m.yh=!0;m.AR=!1;m.K0=0;m.tf=0;m.Te=!1;m.SW=!1;m.C="";m.S9.isActive()&&g.ht(m)}; +hn3=function(m,e,Z,M,k,K){if(!m.SW)if(g.Tv(m,Z))m.wc&&m.G.B("sdai",{gdu:"undec",seg:Z,itag:k});else if(e=g.$0(m,e,Z,M,K),!(m.G.getVideoData().NO()&&(e==null?0:e.xv)))return e}; +g.$0=function(m,e,Z,M,k){var K=m.L.get(Z);if(!K){if(K=FH(m,e))return K;e=wO(m,Z-1,M!=null?M:2);if(k)return m.G.B("sdai",{misscue:k,sq:Z,type:M,prevsstate:e==null?void 0:e.Fb,prevrecord:m.L.has(Z-1)}),m.L.get(Z-1);if((e==null?void 0:e.Fb)===2)return m.G.B("sdai",{adnf:1,sq:Z,type:M,prevrecord:m.L.has(Z-1)}),m.L.get(Z-1)}return K}; +FH=function(m,e){e+=m.R$();if(m.V.W("html5_lifa_overdecorate_fix"))a:{var Z=1;Z=Z===void 0?0:Z;var M=e*1E3;m=g.r(m.N);for(var k=m.next();!k.done;k=m.next()){k=k.value;var K=k.sW?k.sW*1E3:k.fR;if(M>=k.fR-Z*1E3&&M<=K+k.durationMs+Z*1E3){e={Tg:k,t_:e};break a}}e={Tg:void 0,t_:e}}else e=ld(m,e,1);return e.Tg}; +T6k=function(m,e){e=e===void 0?"":e;var Z=AX(e)||void 0;if(!e||!Z){var M;m.G.B("sdai",{adcfg:(M=e)==null?void 0:M.length,dcfg:Z==null?void 0:Z.length})}return Z}; +g.$MK=function(m){if(m.sE.length)for(var e=g.r(m.sE),Z=e.next();!Z.done;Z=e.next())m.onCueRangeExit(Z.value);e=g.r(m.S.values());for(Z=e.next();!Z.done;Z=e.next())m.G.removeCueRange(Z.value);e=g.r(m.U);for(Z=e.next();!Z.done;Z=e.next())m.G.removeCueRange(Z.value);m.S.clear();m.U=[];m.b9.clear();m.kG.clear();m.Qh.clear();m.X||(m.yh=!0)}; +g.xM3=function(m,e,Z,M,k,K,q){if(e&&Z){m.UZ=Z.cpn;id(m,Z);var S=XH(m,"a2a",Z);m.G.B("sdai",S);m.K0++;Uy(m.G,e,Z,M||0,k||0,!!K,!!q)}else m.G.B("sdai",{misspbkonadtrans:1,enter:(Z==null?void 0:Z.cpn)||"",exit:(e==null?void 0:e.cpn)||"",seek:K,skip:q})}; +wO=function(m,e,Z){if(Z===1){if(m.b9.has(e))return m.b9.get(e)}else{if(Z===2&&m.kG.has(e))return m.kG.get(e);if(Z===3&&m.Qh.has(e))return m.Qh.get(e)}}; +n$=function(m,e,Z,M){if(M)for(M=0;MZ){var K=k.end;k.end=e;FF7(m,Z,K)}else if(k.start>=e&&k.startZ)k.start=Z;else if(k.end>e&&k.end<=Z&&k.start=e&&k.end<=Z){m.G.removeCueRange(k);if(m.sE.includes(k))m.onCueRangeExit(k);m.U.splice(M,1);continue}M++}else FF7(m,e,Z)}; +FF7=function(m,e,Z){e=m.M1(e,Z);Z=!0;g.EM(m.U,e,function(q,S){return q.start-S.start}); +for(var M=0;M0){var k=m.U[M],K=m.U[M-1];if(Math.round(K.end/1E3)>=Math.round(k.start/1E3)){K.end=k.end;k!==e?m.G.removeCueRange(k):Z=!1;m.U.splice(M,1);continue}}M++}if(Z)for(m.G.addCueRange(e),e=m.G.Kn("serverstitchedcuerange",36E5),e=g.r(e),Z=e.next();!Z.done;Z=e.next())m.S.delete(Z.value.getId())}; +cE=function(m,e,Z){if(Z===void 0||!Z){Z=g.r(m.KB);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;if(e>=M.start&&e<=M.end)return;if(e===M.end+1){M.end+=1;return}}m.KB.push(new g2s(e))}}; +g.Tv=function(m,e){m=g.r(m.KB);for(var Z=m.next();!Z.done;Z=m.next())if(Z=Z.value,e>=Z.start&&e<=Z.end)return!0;return!1}; +NE=function(m,e){var Z=[];m=m.Y.get(e);if(!m)return[];m=g.r(m);for(e=m.next();!e.done;e=m.next())e=e.value,e.cpn&&Z.push(e.cpn);return Z}; +wD7=function(m,e,Z){var M=0;m=m.Y.get(Z);if(!m)return-1;m=g.r(m);for(Z=m.next();!Z.done;Z=m.next()){if(Z.value.cpn===e)return M;M++}return-1}; +n2R=function(m,e){var Z=[];m=m.Y.get(e);if(!m)return[];m=g.r(m);for(var M=m.next();!M.done;M=m.next())e=void 0,(M=(e=M.value.videoData)==null?void 0:e.videoId)&&Z.push(M);return Z}; +cZI=function(m,e){var Z=0;m=m.Y.get(e);if(!m)return 0;m=g.r(m);for(e=m.next();!e.done;e=m.next())e=e.value,e.durationMs!==0&&e.aY!==e.fR&&Z++;return Z}; +N6R=function(m,e,Z){var M=!1;if(Z&&(Z=m.Y.get(Z))){Z=g.r(Z);for(var k=Z.next();!k.done;k=Z.next())k=k.value,k.durationMs!==0&&k.aY!==k.fR&&(k=k.cpn,e===k&&(M=!0),M&&!m.LJ.has(k)&&(m.G.B("sdai",{decoratedAd:k}),m.LJ.add(k)))}}; +iy7=function(m){m.wc&&m.G.B("sdai",{adf:"0_"+((new Date).getTime()/1E3-m.tf)+"_isTimeout_"+m.Hv})}; +g.ht=function(m){m.Hv=!1;m.S9.isActive()&&iy7(m);m.S9.stop();m.IQ(!1)}; +rO=function(m,e,Z){g.Y.call(this);var M=this;this.api=m;this.timeline=e;this.G=Z;this.NV=new Map;this.JT=new Map;this.Ke=new Map;this.events=new g.z$(this);this.K0=0;this.Oj=this.UZ="";this.f5=[];this.HK=new Set;this.kf=new g.eD(function(){M.api.playVideo(1,M.api.W("html5_ssap_keep_media_on_finish_segment"));M.api.B("ssap",{nve:""+M.UZ});rZK(M,4)},3E4); +this.fu="";this.Vd=new Set;this.UY=!0;this.AS=new Map;this.jY=new Set;this.bl=this.yd=!1;this.nW="";this.bM=null;this.G.getPlayerType();IJ3(this);e.U=void 0;this.events.ZG(this.api,g.tE("ssap"),this.onCueRangeEnter);this.events.ZG(this.api,"internalAbandon",this.ol);this.api.W("html5_ssap_timeline_handle_error_and_abandon")&&this.events.ZG(this.api,"presentingplayerstatechange",this.UB);g.U(this,this.kf);this.Z0=g.Y4(m.J().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.k5=m.W("html5_disable_ssap_append_pause"); +this.yd=AZy(this)}; +l6t=function(m,e,Z,M){for(var k=m.G.NW,K=g.r(M),q=K.next();!q.done;q=K.next()){var S=q.value;S.S||((q=Tb(S),S=S.getVideoData(),q&&S&&k.W8(q,S,2),S)?q||(S=void 0,m.api.B("ssap",{macac:q,maccc:(S=m.timeline.X)==null?void 0:Tb(S)})):(S=void 0,m.api.B("ssap",{mvac:q,mvcc:(S=m.timeline.X)==null?void 0:Tb(S)})))}return FU(m.timeline,e,Z,M)}; +CRb=function(m,e){if(!m.HK.has(m.UZ)){var Z=0,M=0,k=h1(m.timeline,m.UZ);if(k==null?0:k.length)for(k=g.r(k),k=k.next();!k.done;k=k.next()){M=k.value;Z=M.AJ();M=M.YE();break}if(!(M>0&&M>e*1E3+m.Z0)&&(M=Ii(m,Z))){e=!1;Z=void 0;M=g.r(M.segments);for(k=M.next();!k.done;k=M.next()){k=k.value;if(e){Z=k;break}Tb(k)===m.UZ&&(e=!0)}M=void 0;if(Z)M=Tb(Z);else if(e){var K;M=(K=m.timeline.X)==null?void 0:Tb(K)}if(M)m.finishSegmentByCpn(m.UZ,M,2,void 0);else{var q;m.api.B("ssap",{mfnc:1,mfncc:(q=m.timeline.X)== +null?void 0:Tb(q)})}}}}; +AZy=function(m){return m.api.W("html5_force_ssap_gapful_switch")||m.api.W("html5_ssap_enable_legacy_browser_logic")&&!uO()}; +o2s=function(m,e,Z,M){m.Ke.set(e,M);fJ3(m,e,Z);At(m,Z)}; +q5=function(m,e){m=h1(m.timeline,e);return(m==null?0:m.length)?m[0].AJ():0}; +pS=function(m,e){var Z=Z===void 0?!1:Z;var M=m.timeline.X;if(!M)return{clipId:"",Lx:0};var k=BK(m,e,Z);if(k)return{clipId:Tb(k)||"",Lx:k.AJ()};m.api.B("mci",{cs:Tb(M),mt:e,tl:YW(m),invt:!!Z});return{clipId:"",Lx:0}}; +x9=function(m){var e=m.timeline.X;if(!e)return 0;m=0;if(e.X.size===0)return(e.YE()-e.AJ())/1E3;e=e.X.values();e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next()){Z=g.r(Z.value);for(var M=Z.next();!M.done;M=Z.next())M=M.value,m+=(M.YE()-M.AJ())/1E3}return m}; +dM1=function(m,e){return(m=C$(m,e*1E3))?m.AJ():0}; +B6K=function(m,e){var Z=h1(m.timeline,e);e=0;if(Z==null?0:Z.length)for(m=g.r(Z),Z=m.next();!Z.done;Z=m.next())Z=Z.value,e+=(Z.YE()-Z.AJ())/1E3;else return x9(m);return e}; +C$=function(m,e){if(m=h1(m.timeline,m.UZ)){m=g.r(m);for(var Z=m.next();!Z.done;Z=m.next())if(Z=Z.value,Z.AJ()<=e&&Z.YE()>=e)return Z}}; +E23=function(m){var e=m.G.getVideoData();m.UZ&&(m=m.NV.get(m.UZ))&&(e=m);return e}; +Ii=function(m,e,Z){Z=Z===void 0?!1:Z;var M=m.timeline.X;if(M){M=M.X;var k=Array.from(M.keys());g.dX(k);e=g.fq(k,e);e=M.get(k[e<0?(e+2)*-1:e]);if(!Z&&e){Z=g.r(e);for(e=Z.next();!e.done;e=Z.next())if(e=e.value,e.AJ()!==e.YE())return e;return m.timeline}return e&&e.length>0?e[e.length-1]:void 0}}; +BK=function(m,e,Z){Z=Z===void 0?!1:Z;var M=Ii(m,e,Z);if(M){if(m=M.segments,m.length){for(var k=g.r(m),K=k.next();!K.done;K=k.next())if(K=K.value,K.AJ()<=e&&K.YE()>e)return K;if(Z&&M.AJ()===M.YE())return m[0]}}else m.api.B("ssap",{ctnf:1})}; +rZK=function(m,e){var Z;if(m.fu)for(Z=m.f5.shift();Z&&Z!==m.fu;)Z=m.f5.shift();else Z=m.f5.shift();if(Z){if(m.HK.has(Z))YuK(m,Z);else if(e===3||e===4)m.kf.stop(),m.api.playVideo(1,m.api.W("html5_ssap_keep_media_on_finish_segment"));m.Ke.set(m.UZ,e);m.api.B("ssap",{onvftn:1});At(m,Z);return!1}m.api.B("ssap",{onvftv:1});m.kf.stop();return!0}; +YuK=function(m,e){e=h1(m.timeline,e);if(e==null?0:e.length)m.api.pauseVideo(),m.kf.start(e[0].Ll)}; +At=function(m,e){var Z=m.G.getVideoData(),M=Z.clientPlaybackNonce;m.bM&&(m.events.gy(m.bM),m.bM=null,m.G.CP=-1);var k=m.UZ,K=!1;if(k==="")k=M,K=!0;else if(k===void 0){var q=m.G.NW.Zk;q&&m.timeline.S.has(q)&&(k=q);m.api.B("ssap",{mcc:k+";"+e});m.G.AY(new g.tw("ssap.timelineerror",{e:"missing_current_cpn",pcpn:k,ccpn:e}))}if(k===e)K&&Z&&UMR(m,Z,K);else{q=m.Ke.get(k);if(!K&&(!q||q!==3&&q!==5&&q!==6&&q!==7)){var S=m.api.Yr(m.UZ);m.api.B("ssap",{nmec:S,cpc:m.UZ,ec:e})}q&&q!==2||f$(m);m.UZ=e;f$(m);e=h1(m.timeline, +m.UZ);if(e==null?0:e.length){e=e[0];S=e.getType();k!==M&&(m.Oj=k,Z=m.NV.get(k));q?m.Ke.delete(k):q=K?1:2;m.api.W("html5_ssap_pacf_qoe_ctmp")&&S===2&&!e.S&&(m.bM=m.events.ZG(m.api,"onVideoProgress",m.J8));m.api.B("ssapt",{ostro:q,pcpn:k,ccpn:m.UZ});a:{var a=m.UZ;if(!m.JT.has(a))for(var v=g.r(m.JT),X=v.next();!X.done;X=v.next()){var x=g.r(X.value);X=x.next().value;x=x.next().value;if(x.getId().includes(a)){a=X;break a}}}X=a;v=m.api.J().W("html5_ssap_insert_su_before_nonvideo")&&X!==m.UZ;x=m.G.NW;if(x.Zk!== +X){var l=x.lw(x.Zk);a=x.lw(X);x.Zk=X;a!==l&&(l.qoe&&(X=l.qoe,X.provider.V.Af()&&X.B("ssap",{qoesus:"1",vid:X.provider.videoData.videoId}),v&&(v=g.Yq(X.provider),ygR(X,v,"SU")),isNaN(X.C)||qC(X.C)),a.resume())}a=Math.max(0,oi(m,k));v=m.G.getCurrentTime();v=Math.max(0,v-q5(m,m.UZ)/1E3);X=e.getVideoData();var R=q===3||q===5||q===6||q===7;m.api.W("html5_ssap_skip_illegal_seeking")&&(x=m.G.getPlayerState(),x=!g.y(x,8)&&g.y(x,16),R=R||x,x&&m.api.B("ssap",{iis:1}));x=m.G.NW;l=k;var h=m.UZ,w=m.G.getPlayerState(); +if(l!==h){var N=x.lw(l),I=x.lw(h),C,B=l===((C=N.getVideoData())==null?void 0:C.clientPlaybackNonce),b;C=h===((b=I.getVideoData())==null?void 0:b.clientPlaybackNonce);var L;b=B?((L=N.getVideoData())==null?void 0:L.videoId)||"":"nvd";var Q;L=C?((Q=I.getVideoData())==null?void 0:Q.videoId)||"":"nvd";B&&(Q=N.qoe)!=null&&(W0(Q,4,R?4:0,h,L,a),Q.reportStats());C&&(Ff(I),(Q=I.qoe)!=null&&(W0(Q,4,R?5:1,l,b,v),Q.reportStats()),xKk(I,new g.hN(w,I.Z)),XTG(I));$KG(x,l)}m.api.B("ssapt",{ostri:q,pcpn:k,ccpn:m.UZ}); +var J;Pj3(k,m.UZ,M,X,(J=m.AS.get(k))!=null?J:(0,g.G)(),Z);m.AS.delete(k);K?Z=void 0:Z||m.api.B("ssap",{pvdm:k+";"+m.UZ,pvdmc:m.UZ===M?"1":"0"});m.api.B("ssap",{tpac:k+";"+m.UZ,tpcc:M,tpv:(X==null?0:X.J5())?"1":"0"},!1,1);m.api.J().W("html5_ssap_cleanup_player_switch_ad_player")&&m.api.o4();m.api.Pv("videodatachange","newdata",X,S,Z,q);e.S||m.G.getVideoData().Pv("dataupdated");m.HK.delete(k);m.fu="";X&&S===1?UMR(m,X):m.G.B("ssap",{nis:m.UZ});S===2?m.K0++:m.K0=0}}}; +UMR=function(m,e,Z){Z=Z===void 0?!1:Z;if(e.startSeconds&&m.UY){var M=e.startSeconds;e=h1(m.timeline,e.clientPlaybackNonce);if(e==null?0:e.length)M+=e[0].AJ()/1E3,m.api.W("htm5_ssap_ignore_initial_seek_if_too_big")&&M>=m.E4()||(m.G.seekTo(M,{fZ:!0}),m.UY=!1,m.G.B("ssap",{is:m.UZ,co:Z?"1":"0",tse:M.toFixed()}))}}; +fJ3=function(m,e,Z){e=h1(m.timeline,e);if(e!=null&&e.length&&(e=Ii(m,e[0].AJ()))){e=g.r(e.segments);for(var M=e.next();!M.done;M=e.next()){M=M.value;if(Tb(M)===Z)break;if(M=Tb(M)){var k=m.JT.get(M);k&&m.G.removeCueRange(k);m.JT.delete(M)}}}}; +gs=function(m){return m.G.getVideoData().clientPlaybackNonce}; +nUR=function(m,e){if(m.yd&&m.UZ!==e)return!1;if(m.k5)return!0;if(e=m.JT.get(e))if(e=e.getId().split(","),e.length>1)for(var Z=0;Z0?m:0)}; +oi=function(m,e){e=e||m.UZ;var Z=m.NV.get(e);return Z?Z.bb:e!==gs(m)?0:m.G.getVideoData().bb}; +YW=function(m){var e=m.UZ;e||(e=m.G.getVideoData().clientPlaybackNonce);var Z,M,k=Array.from((M=(Z=m.timeline.X)==null?void 0:Z.X.values())!=null?M:[]);Z=[];if(k==null?0:k.length)for(M=g.r(k),k=M.next();!k.done;k=M.next())if(k=k.value,k.length&&k[0]&&(k=k[0].segments,k.length)){k=g.r(k);for(var K=k.next();!K.done;K=k.next()){var q=K.value;K="st."+q.AJ()+";";K+="et."+q.YE()+";";var S=Tb(q);S&&(K+="cpn."+S+";",K+="a."+(e===S?1:0)+";");if(q=q.getVideoData())S=void 0,K+="vid."+((S=q.videoId)!=null?S: +"nvd");Z.push(K)}}return(Z.length?Z.join(","):"empty."+e)+";cpcpn."+m.hT()}; +IJ3=function(m){m.G.ZL(Array.from(m.JT.values()));m.JT.clear()}; +dO=function(m,e,Z){g.Y.call(this);var M=this;this.api=m;this.V=e;this.X=Z;this.Y=new Map;this.S=[];this.U=this.C=null;this.K=NaN;this.L=this.Z=this.N=null;this.j=new g.eD(function(){byy(M,M.K,M.N||void 0)}); +this.AR=[];this.S9=new g.eD(function(){var k=M.AR.pop();if(k){var K=k.IE,q=k.playerVars;k=k.playerType;q&&(q.prefer_gapless=!0,M.api.preloadVideoByPlayerVars(q,k,NaN,"",K),M.AR.length&&g.ZZ(M.S9,4500))}}); +this.events=new g.z$(this);Z.getPlayerType();g.U(this,this.j);g.U(this,this.S9);g.U(this,this.events);this.events.ZG(this.api,g.tE("childplayback"),this.onCueRangeEnter);this.events.ZG(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.ZG(this.api,"presentingplayerstatechange",this.UB)}; +tNs=function(m,e,Z,M){m.U=M;m.api.VJ(m.X,Z,e)}; +QLb=function(m,e,Z,M){m.U=M;M=e.IE;var k=e.playerVars,K=e.playerType;m.C=e;k&&(m.V.W("html5_enable_ssap_entity_id")&&(k.cached_load=!0),m.api.enqueueVideoByPlayerVars(k,K,Z,M))}; +BE=function(m){m.C=null;m.U=null;m.api.SO()||m.api.clearQueue()}; +Hy3=function(m,e){Ex(m,e)||Y0(m,"childPlaybackIsNotPresenting");return e.aY===e.fR+e.durationMs?(m=m.api.Jf(),e.fR+m.getCurrentTime()*1E3):e.aY}; +Ux=function(m,e){var Z=0;m=g.r(m.S);for(var M=m.next();!M.done;M=m.next()){M=M.value;var k=M.fR/1E3+Z,K=k+M.durationMs/1E3;if(k>e)break;if(K>e)return{Tg:M,t_:e-k};Z=K-M.aY/1E3}return{Tg:null,t_:e-Z}}; +byy=function(m,e,Z){Z=Z===void 0?{}:Z;var M=m.L||m.api.Jf().getPlayerState();bd(m,!0);e=isFinite(e)?e:m.X.zT();var k=Ux(m,e);e=k.Tg;k=k.t_;var K=e&&!Ex(m,e)||!e&&m.X!==m.api.Jf(),q=k*1E3;q=m.U&&m.U.start<=q&&q<=m.U.end;!K&&q||BE(m);e?(K=Ex(m,e),K||(e.playerVars.prefer_gapless=!0,m.V.W("html5_enable_ssap_entity_id")&&(e.playerVars.cached_load=!0),q=new W4(m.V,e.playerVars),q.IE=e.IE,m.api.Cy(q,e.playerType)),q=m.api.Jf(),K||q.addCueRange(e.R4.S0),q.seekTo(k,Object.assign({},{DN:"application_timelinemanager"}, +Z)),DMc(m,M)):tt(m,k,Z,M)}; +tt=function(m,e,Z,M){var k=m.X,K=m.api.Jf();k!==K&&m.api.TH();k.seekTo(e,Object.assign({},{DN:"application_timelinemanager"},Z));DMc(m,M)}; +DMc=function(m,e){m=m.api.Jf();var Z=m.getPlayerState();e.isOrWillBePlaying()&&!Z.isOrWillBePlaying()?m.playVideo():e.isPaused()&&!Z.isPaused()&&m.pauseVideo()}; +bd=function(m,e){m.K=NaN;m.N=null;m.j.stop();m.Z&&e&&Ci(m.Z);m.L=null;m.Z=null}; +Ex=function(m,e){m=m.api.Jf();return!!m&&m.getVideoData().IE===e.IE}; +LF7=function(m){var e=m.S.find(function(k){return Ex(m,k)}); +if(e){var Z=m.api.Jf();BE(m);var M=new g.rv(8);e=Hy3(m,e)/1E3;tt(m,e,{},M);Z.B("forceParentTransition",{childPlayback:1});m.X.B("forceParentTransition",{parentPlayback:1})}}; +sLK=function(m){var e=e===void 0?-1:e;var Z=Z===void 0?Infinity:Z;for(var M=g.r(m.Y),k=M.next();!k.done;k=M.next()){var K=g.r(k.value);k=K.next().value;K=K.next().value;K.lk>=e&&K.target&&K.target.aY<=Z&&(m.X.removeCueRange(k),m.Y.delete(k))}M=[];k=g.r(m.S);for(K=k.next();!K.done;K=k.next())if(K=K.value,K.fR>=e&&K.aY<=Z){var q=m;q.C===K&&BE(q);Ex(q,K)&&q.api.TH()}else M.push(K);m.S=M;M=Ux(m,e/1E3);e=M.Tg;M=M.t_;e&&(M*=1E3,k=e.aY===e.fR+e.durationMs?e.fR+M:e.aY,e.durationMs=M,e.aY=k,K={S0:new g.Ub(Math.max(0, +M-5E3),0x8000000000000,{namespace:"childplayback",priority:9}),lk:M,target:null},k=e.R4,e.R4=K,Ex(m,e)&&(K=m.api.Jf(),k.S0===m.U&&BE(m),K.removeCueRange(k.S0),K.addCueRange(e.R4.S0)),Ex(m,e)&&m.api.Jf().getCurrentTime()*1E3>M&&(e=Hy3(m,e)/1E3,M=m.api.Jf().getPlayerState(),tt(m,e,{},M)));(e=Ux(m,Z/1E3).Tg)&&Y0(m,"Invalid clearEndTimeMs="+Z+" that falls during playback={timelinePlaybackId="+(e.IE+" video_id="+e.playerVars.video_id+" durationMs="+e.durationMs+" enterTimeMs="+e.fR+" parentReturnTimeMs="+ +e.aY+"}.Child playbacks can only have duration updated not their start."))}; +Y0=function(m,e){m.X.B("timelineerror",{e:e,cpn:void 0,videoId:void 0})}; +yZK=function(m){m&&m!=="web"&&GBK.includes(m)}; +Di=function(m,e){g.Y.call(this);var Z=this;this.data=[];this.U=m||NaN;this.S=e||null;this.X=new g.eD(function(){Qp(Z);HE(Z)}); +g.U(this,this.X)}; +jLs=function(m){Qp(m);return m.data.map(function(e){return e.value})}; +Qp=function(m){var e=(0,g.G)();m.data.forEach(function(Z){Z.expireK?{width:e.width,height:e.width/k,aspectRatio:k}:kk?m.width=m.height*Z:ZS;if(Ox(m)){var a=WFI(m);var v=isNaN(a)||tR||C9&&g.PC||S;g.bE&&!b7(601)?a=M.aspectRatio:v=v||k.controlsType==="3";v?S?(v=k.W("place_shrunken_video_on_left_of_player")?16:m.getPlayerSize().width-e.width-16,a=Math.max((m.getPlayerSize().height- +e.height)/2,0),v=new g.oa(v,a,e.width,e.height),m.l7.style.setProperty("border-radius","12px")):v=new g.oa(0,0,e.width,e.height):(Z=M.aspectRatio/a,v=new g.oa((e.width-M.width/Z)/2,(e.height-M.height)/2,M.width/Z,M.height),Z===1&&g.PC&&(a=v.width-e.height*a,a>0&&(v.width+=a,v.height+=a)));g.gU(m.element,"ytp-fit-cover-video",Math.max(v.width-M.width,v.height-M.height)<1);if(q||m.SZ)m.l7.style.display="";m.j7=!0}else{v=-e.height;g.bE?v*=window.devicePixelRatio:g.WE&&(v-=window.screen.height);v=new g.oa(0, +v,e.width,e.height);if(q||m.SZ)m.l7.style.display="none";m.j7=!1}dg(m.eY,v)||(m.eY=v,g.qF(k)?(m.l7.style.setProperty("width",v.width+"px","important"),m.l7.style.setProperty("height",v.height+"px","important")):y7(m.l7,v.getSize()),v=new g.wk(v.left,v.top),k=m.l7,a=Math.round(v.x),a instanceof g.wk?(q=a.x,v=a.y):(q=a,v=Math.round(v.y)),k.style.left=Gt(q,!1),k.style.top=Gt(v,!1));e=new g.oa((e.width-M.width)/2,(e.height-M.height)/2,M.width,M.height);dg(m.gE,e)||(m.gE=e);g.Eo(m.l7,"transform",Z===1? +"":"scaleX("+Z+")");K&&S!==m.Ey&&(S&&(m.l7.addEventListener(Gv,m.Az),m.l7.addEventListener("transitioncancel",m.Az),m.l7.classList.add(Jw.VIDEO_CONTAINER_TRANSITIONING)),m.Ey=S,m.app.Fq.Pv("playerUnderlayVisibilityChange",m.Ey?"transitioning":"hidden"))}; +mot=function(){this.csn=g.ru();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.X=new Set;this.S=new Set}; +eSs=function(m){if(m.csn!==g.ru())if(m.csn==="UNDEFINED_CSN")m.csn=g.ru();else{var e=g.ru(),Z=ch();if(e&&Z){m.csn=e;for(var M=g.r(m.elements),k=M.next();!k.done;k=M.next())(k=k.value.visualElement)&&k.isClientVe()&&e&&Z&&(g.SC("combine_ve_grafts")?FB(g.$4(),k,Z):EL(MK)(void 0,e,Z,k))}if(e)for(m=g.r(m.X),Z=m.next();!Z.done;Z=m.next())(Z=Z.value.visualElement)&&Z.isClientVe()&&X5(e,Z)}}; +g.mT=function(m,e,Z,M){g.Y.call(this);var k=this;this.logger=new g.dx("App");this.Rx=this.uR=!1;this.iU={};this.yw={};this.yY=[];this.Pa=!1;this.Z8=null;this.b2=!1;this.hx=!0;this.xi=!1;this.Jl=this.G6=null;this.hM=!0;this.mediaElement=this.hY=null;this.B2=NaN;this.uh=!1;this.jT=this.Ug=this.u9=this.MP=this.screenLayer=this.aO=this.playlist=null;this.logger.debug("constructor begin");this.config=$ac(e||{});this.webPlayerContextConfig=Z;wUm();e=this.config.args||{};this.V=new SA(e,Z,Z?Z.canaryState: +this.config.assets.player_canary_state,M,this);g.U(this,this.V);qus(this.V);M=SuP(this.V);this.V.U&&!Zlb&&(window.addEventListener(yQ?"touchstart":"click",L1K,{capture:!0,passive:!0}),Zlb=!0);this.W("html5_onesie")&&(this.GH=new G_(this.V),g.U(this,this.GH));this.pW=zy(!1,e.player_wide);this.visibility=new qE;g.U(this,this.visibility);this.W("web_log_theater_mode_visibility")&&this.uD(zy(!1,e.player_wide));this.uR=zy(!1,e.external_list);this.events=new g.z$(this);g.U(this,this.events);this.W("start_client_gcf")&& +(ul(Fb(),{YI:kU,cQ:KK()}),this.Un=Fb().resolve(kU),JcK(this.Un));this.sG=new PQ;g.U(this,this.sG);this.Vo=new mot;e=new mv;this.Fq=new g.g4(this,e);g.U(this,this.Fq);this.template=new g.yp(this);g.U(this,this.template);this.appState=1;this.lR=Mut(this);g.U(this,e);e={};this.XQ=(e.internalvideodatachange=this.il,e.playbackready=this.oM,e.playbackstarted=this.p8,e.statechange=this.dU,e);this.gq=new pF(this.Fq);this.sJ=k7c(this);e=this.W("html5_load_wasm");var K=this.W("html5_allow_asmjs");if(e&&zv|| +K)this.V.xa=$tm(this.sJ,K),g5(vi(this.V.xa,function(a){k.V.CJ=a;var v;(v=g.qq(k))==null||v.B("wasm",{a:a.Qp})}),function(a){g.LD(a); +a="message"in a&&a.message||a.toString()||"";var v;(v=g.qq(k))==null||v.B("wasm",{e:a})}); +else if(e&&!zv){var q;(q=g.qq(this))==null||q.B("wasm",{e:"wasm unavailable"})}this.hf=new aF(this.V,this.sJ);this.Fq.Pv("csiinitialized");this.DG=KCk(this);this.DG.setPlaybackRate(this.V.Z?1:q_G(this,Number(g.Kr("yt-player-playback-rate"))||1));ev(this.DG,this.XQ,this);SM(this.DG);q={};this.Ep=(q.airplayactivechange=this.onAirPlayActiveChange,q.airplayavailabilitychange=this.onAirPlayAvailabilityChange,q.beginseeking=this.YJ,q.sabrCaptionsDataLoaded=this.FU,q.endseeking=this.LH,q.internalAbandon= +this.ol,q.internalaudioformatchange=this.Ou,q.internalvideodatachange=this.onVideoDataChange,q.internalvideoformatchange=this.Pf,q.liveviewshift=this.aM,q.playbackstalledatstart=this.BR,q.progresssync=this.A8,q.onAbnormalityDetected=this.OP,q.onSnackbarMessage=this.onSnackbarMessage,q.onLoadProgress=this.onLoadProgress,q.SEEK_COMPLETE=this.rJ,q.SEEK_TO=this.e$,q.onVideoProgress=this.onVideoProgress,q.onLoadedMetadata=this.onLoadedMetadata,q.onAutoplayBlocked=this.onAutoplayBlocked,q.onPlaybackPauseAtStart= +this.YV,q.playbackready=this.XU,q.statechange=this.KK,q.newelementrequired=this.nK,q.heartbeatparams=this.B1,q.videoelementevent=this.Tl,q.drmoutputrestricted=this.onDrmOutputRestricted,q.signatureexpired=this.yO,q.nonfatalerror=this.OM,q.reloadplayer=this.gi,q);this.E3=new g.z$(this);g.U(this,this.E3);q=10;g.Km(this.V)&&(q=3);g.lA(this.V)&&(q=g.Y4(this.V.experiments,"tvhtml5_unplugged_preload_cache_size"));this.w2=new sx;g.U(this,this.w2);this.Bt=new Di(q,function(a){a!==g.qq(k,a.getPlayerType())&& +a.dispose()}); +g.U(this,this.Bt);this.r0=this.v8=-1;this.qk=new g.eD(this.template.resize,16,this.template);g.U(this,this.qk);this.rV=new dO(this.Fq,this.V,this.DG);this.WX=new ai(this.V);this.Nm=new ME(this);g.U(this,this.Nm);this.CL=new Wv(this);g.U(this,this.CL);yZK(this.V.X.c);this.events.ZG(this.Fq,g.tE("appapi"),this.cN);this.events.ZG(this.Fq,"crx_appapi",this.Vt);this.events.ZG(this.Fq,g.tE("appprogressboundary"),this.Ui);this.events.ZG(this.Fq,"crx_applooprange",this.kZ);this.events.ZG(this.Fq,"presentingplayerstatechange", +this.UB);this.events.ZG(this.Fq,"resize",this.Ls);this.template.e9(g.PF(document,m));this.events.ZG(this.Fq,"offlineslatestatechange",this.iE);this.sJ.hR.J().lX&&cv(this.sJ,"offline");this.V.uw&&g.XS("ux",g.Oz);m=g.Y4(this.V.experiments,"html5_defer_fetch_att_ms");this.XT=new g.eD(this.ek,m,this);g.U(this,this.XT);pi(this).J5()&&(g.Kr("yt-remote-session-screen-id")&&pi(this).yh.push("remote"),PE(this));this.hf.tick("fs");pdR(this);if(this.V.Af()&&this.V.W("html5_record_h5vcc_flags")){var S;(S=g.qq(this))== +null||S.B("h5vcc",M)}this.V.uw&&cv(this.sJ,"ux",!0);On(this.sJ.hR.J())&&cv(this.sJ,"embed");this.W("web_player_sentinel_is_uniplayer")||g.LD(new g.Nr("Player experiment flags missing","web_player_sentinel_is_uniplayer"));S=this.W("web_player_sentinel_yt_experiments_sync");m=g.SC("web_player_sentinel_yt_experiments_sync");S!==m&&g.LD(new g.Nr("b/195699950",{yt:S,player:m}));Z||g.LD(new g.Nr("b/179532961"));this.Bk=S_y(this);if(Z=g.Y4(this.V.experiments,"html5_block_pip_safari_delay"))this.g0=new g.eD(this.IK, +Z,this),g.U(this,this.g0);Iy=this.V.nB;Z=g.Y4(this.V.experiments,"html5_performance_impact_profiling_timer_ms");Z>0&&(this.Up=new g.Rw(Z),g.U(this,this.Up),this.events.ZG(this.Up,"tick",function(){k.AN&&aLI.Od("apit",k.AN);k.AN=aLI.JI()})); +this.Fq.Pv("applicationInitialized");this.logger.debug("constructor end")}; +S_y=function(m){function e(Z){Z.stack&&Z.stack.indexOf("player")!==-1&&(Z={n:Z.name,m:Z.message},(m.aO||m.DG).lw().AY("player.exception",b_(Z)))} +j2.subscribe("handleError",e);di.push(e);return function(){j2.unsubscribe("handleError",e);var Z=di.indexOf(e);Z!==-1&&di.splice(Z,1)}}; +KCk=function(m){var e=new W4(m.V,m.config.args);m.Fq.Pv("initialvideodatacreated",e);return m.Ho(1,e)}; +vDk=function(m,e){if(m.DG!==e){e.getVideoData().autonavState=m.DG.getVideoData().autonavState;Z6(m.DG,m.XQ,m);var Z=m.DG.getPlaybackRate();m.DG.dispose();m.DG=e;m.DG.setPlaybackRate(Z);ev(e,m.XQ,m);PE(m)}}; +k7c=function(m){var e="",Z=JZc(m);Z.indexOf("//")===0&&(Z=m.V.protocol+":"+Z);var M=Z.lastIndexOf("/base.js");M!==-1&&(e=Z.substring(0,M+1));if(Z=Error().stack)if(Z=Z.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Z=Z[1],Z.includes(e)||g.LD(Error("Player module URL mismatch: "+(Z+" vs "+e+".")));e=new g.FS(m.Fq,e);gDP(m,e);return e}; +gDP=function(m,e){var Z={};Z=(Z.destroyed=function(){m.onApiChange()},Z); +e.U=Z}; +Mut=function(m){if(m.V.storeUserVolume){m=g.Kr("yt-player-volume")||{};var e=m.volume;m={volume:isNaN(e)?100:g.Fr(Math.floor(e),0,100),muted:!!m.muted}}else m={volume:100,muted:m.V.mute};return m}; +es=function(m){m.mediaElement=m.V.deviceIsAudioOnly?new g.Vl(g.SU("AUDIO")):J0.pop()||new g.Vl(g.SU("VIDEO"));g.U(m,m.mediaElement);m.aO&&m.aO.setMediaElement(m.mediaElement);try{m.V.Te?(m.Ug&&m.events.gy(m.Ug),m.Ug=m.events.ZG(m.mediaElement,"volumechange",m.RM)):(m.mediaElement.dE(m.lR.muted),m.mediaElement.setVolume(m.lR.volume/100))}catch(k){m.XJ("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g, +"_")));return}g.m2(m.E3);XdG(m);var e=m.template,Z=m.mediaElement.W_();e.l7=Z;e.Vs=!1;e.l7.parentNode||g.gN(e.EK,e.l7,0);e.eY=new g.oa(0,0,0,0);PRK(e);j8(e);Z=e.l7;g.SD(Z,"video-stream");g.SD(Z,Jw.MAIN_VIDEO);var M=e.app.J();M.FF&&Z.setAttribute("data-no-fullscreen","true");M.W("html5_local_playsinline")?"playsInline"in PY()&&(Z.playsInline=!0):M.oW&&(Z.setAttribute("webkit-playsinline",""),Z.setAttribute("playsinline",""));M.n6&&e.l7&&e.ZG(Z,"click",Z.play,Z);try{m.mediaElement.j1()}catch(k){m.XJ("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(k&&typeof k==="object"&&"message"in k&&typeof k.message==="string"&&k.message.replace(/[;:,]/g,"_")))}}; +K$=function(m,e,Z){if(m.aO!==e){m.logger.debug(function(){return"start set presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId}); +var M=null;if(m.aO){M=m.aO.getPlayerState();m.logger.debug("set presenting player, destroy modules");A0(m.sJ,3);ZY(m,"cuerangesremoved",m.aO.z_());m.Nm&&!e.isGapless()&&m.aO.isGapless()&&m.mediaElement&&m.mediaElement.stopVideo();var k=wy(e)&&wy(m.aO);m.hf.Uk("iv_s");ilb(m,k)}e.getPlayerType()===1&&vDk(m,e);xoI(m,e);m.aO=e;m.mediaElement&&e.setMediaElement(m.mediaElement);ev(e,m.Ep,m);if(e.tZ())M$(m,"setPresenting",!1);else{m.onVideoDataChange("newdata",e,e.getVideoData());M&&!wh3(M,e.getPlayerState())&& +m.KK(new g.hN(e.getPlayerState(),M));Z=Z&&m.W("html5_player_preload_ad_fix")&&e.getPlayerType()===1;if(e.kY.finished&&!Z)m.onVideoDataChange("dataloaded",e,e.getVideoData());(Z=(Z=e.getVideoData().U)&&Z.video)&&m.Fq.ke("onPlaybackQualityChange",Z.quality);ZY(m,"cuerangesadded",m.aO.z_());Z=e.getPlayerState();g.y(Z,2)?lLK(m):g.y(Z,8)?e.playVideo():e.NS()&&e.pauseVideo();if(e.getPlayerType()===2){var K;e.getVideoData().Ij=(K=g.qq(m,1))==null?void 0:K.getVideoData().clientPlaybackNonce}e.getPlayerType()!== +2||m.Ex()||(K=e.getVideoData(),m.DG.vt(K.clientPlaybackNonce,K.Wq||"",K.breakType||0,K.K1,K.videoId||""));m.logger.debug("finish set presenting player")}}}; +lLK=function(m){if(!u8K(m)){var e=m.DG.fJ();e&&(e=e.fn(),e instanceof Promise&&e.catch(function(){})); +k8(m,B0(m.getPlayerStateObject()))}}; +XdG=function(m){var e=m.mediaElement;M4()?m.E3.ZG(e,"webkitpresentationmodechanged",m.wi):window.document.pictureInPictureEnabled&&(m.E3.ZG(e,"enterpictureinpicture",function(){m.Hf(!0)}),m.E3.ZG(e,"leavepictureinpicture",function(){m.Hf(!1)})); +Gy&&(m.E3.ZG(e,"webkitbeginfullscreen",function(){m.t6(3)}),m.E3.ZG(e,"webkitendfullscreen",function(){m.t6(0)}))}; +xoI=function(m,e){var Z=e.getPlayerType();if(e!==m.DG&&e!==m.iU[Z]){var M;(M=m.iU[Z])==null||M.dispose();m.iU[Z]=e}}; +ilb=function(m,e){e=e===void 0?!0:e;m.logger.debug("start clear presenting player");m.jT&&m.jT.X(m.mediaElement)&&(m.A7(),es(m));m.aO&&(m.aO.A7(!e),Z6(m.aO,m.Ep,m),m.aO.getPlayerType()!==1&&m.aO.dispose());m.aO=null;m.logger.debug("finish clear presenting player")}; +g.qq=function(m,e){if(e)if(e===1)m=m.DG;else if(m.getVideoData().enableServerStitchedDai&&e===2)m=m.getVideoData().enablePreroll?m.iU[2]||m.aO:m.aO;else if(g.gA(m.getVideoData())&&e===2){if(e=m.W("html5_ssap_return_content_player_during_preroll"))if(e=m.u9)e=m.u9,e=e.UZ===""?!0:e.Xe();m=e?m.aO:m.iU[2]||m.aO}else m=m.iU[e]||null;else m=m.aO;return m}; +Kb=function(m,e,Z,M){m=m.Ho(e,Z,M);SM(m);return m}; +g.q$=function(m,e){return m.Ex(e)?m.DG:e}; +pb=function(m,e){var Z=m.aO;return Z&&e===m.DG&&m.Ex(e)&&m.Ex(Z)?Z:e}; +hSk=function(m){m.logger.debug("start application playback");if(m.DG.getPlayerState().isError())m.logger.debug("start application playback done, player in error state");else{var e=Ss(m),Z=pi(m);Z.zq?m.XJ("html5.nopurchaseflow",2,"PURCHASE_NOT_FOUND"):(Z.isLoaded(),e&&m.Rw(6),RSt(m),NX(m.sJ)||aC(m))}}; +aC=function(m){if(!Ss(m)){var e=wH(m.sJ);e&&!e.created&&nu(m.sJ)&&(m.logger.debug("reload ad module"),e.create())}}; +RSt=function(m){m.logger.debug("start presenter playback");var e=m.getVideoData(),Z=m.sJ;NX(Z)||Z.cW();!zv&&Z.hR.W("html5_allow_asmjs")&&T5s(Z);cv(Z,"embed");cv(Z,"inline_preview");cv(Z,"kids");cv(Z,"remote");cv(Z,"miniplayer");cv(Z,"offline");cv(Z,"unplugged");cv(Z,"ypc",!1,!0);cv(Z,"ypc_clickwrap",!1,!0);cv(Z,"yto",!1,!0);RoI(Z)||(cv(Z,"captions",!0),cv(Z,"endscreen"),g.gA(Z.hR.getVideoData())&&!Z.hR.yZ().U||Z.LP(),cv(Z,"creatorendscreen",!0));Z.oK();m.Fq.Pv("videoready",e)}; +pi=function(m){return m.DG.getVideoData()}; +vX=function(m){m=pi(m);m.J5();return YO(m)}; +pdR=function(m){m.logger.debug("start prepare initial playback");if(m.W("html5_enable_ssap_autoplay_debug_logging")){var e;(e=m.DG)==null||e.B("ssap",{preppb:1})}m.TA();var Z=m.config.args;es(m);e=pi(m);m.Fq.ke("onVolumeChange",m.lR);if(Z&&SK(Z)){var M=gY(m.V);M&&!m.uR&&(Z.fetch=0);var k=On(m.V);k&&!m.uR&&(Z.fetch=0);gp(m,Z);On(m.V)&&m.hf.tick("ep_pr_s");if(!M||m.uR)if(k&&!m.uR)Xl(m);else if(!e.J5())m.playlist.onReady(function(){ia(m)})}K$(m,m.DG); +g.y(m.DG.getPlayerState(),128)||(Z=cQK(!m.V.deviceIsAudioOnly),Z==="fmt.noneavailable"?m.XJ("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):Z==="html5.missingapi"?m.XJ(Z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):e&&e.J5()&&vX(m)&&(m.V.C0||m.V.LJ)?x8(m):e.mH?m.Fq.mutedAutoplay():g.Kr("yt-player-playback-on-reload")?(g.D2("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!m.V.N}),g.kE("yt-player-playback-on-reload",!1),x8(m)):m.V.C==="leanback"||Tqy(m),g.xI(m.V)||g.R3(m.V)=== +"MWEB"?(g.fr(g.BC(),function(){la(m)}),g.fr(g.BC(),function(){Jy7()})):(la(m),Jy7()),m.logger.debug("finish prepare initial playback"))}; +la=function(m){if(!m.W("use_rta_for_player"))if(m.W("fetch_att_independently"))g.ZZ(m.XT);else{var e=m.getVideoData().botguardData;e&&g.Ud(e,m.V,m.getVideoData().P4||"")}}; +Tqy=function(m){m.logger.debug("start initialize to CUED mode");m.Fq.Pv("initializingmode");m.Rw(2);m.W("embeds_web_enable_defer_loading_remote_js")&&R_(m.V)?g.fr(g.BC(),function(){cv(m.sJ,"remote")}):cv(m.sJ,"remote"); +cv(m.sJ,"miniplayer");m.logger.debug("initialized to CUED mode")}; +x8=function(m){m.logger.debug("start initialize application playback");if(g.y(m.DG.getPlayerState(),128))return!1;var e=m.DG.getVideoData();vX(m)&&m.V.LJ&&(J0.length&&m.Rx?(ua(m,{muted:!1,volume:m.lR.volume},!1),RC(m,!1)):J0.length||m.lR.muted||(ua(m,{muted:!0,volume:m.lR.volume},!1),RC(m,!0)));vX(m)&&On(m.V)&&e.mutedAutoplay&&(ua(m,{muted:!0,volume:m.lR.volume},!1),RC(m,!0));e.EV&&ua(m,{muted:!0,volume:m.lR.volume},!1);hT(m,1,e,!1);m.Fq.Pv("initializingmode");K$(m,m.DG);m.Rw(3);if(!m.V.HS||!m.Pa|| +m.jT&&m.jT.X(m.mediaElement)&&m.Pa)m.A7(),es(m),m.DG.setMediaElement(m.mediaElement);Tw(m.DG);if(g.y(m.DG.getPlayerState(),128))return!1;e.AT||k8(m,3);return m.Pa=!0}; +Ss=function(m){m=x6(m.sJ);return!!m&&m.loaded}; +$o1=function(m,e){if(!m.hY)return!1;var Z=m.hY.startTimeMs*.001-1,M=m.hY.endTimeMs*.001;m.hY.type==="repeatChapter"&&M--;return Math.abs(e-Z)<=1E-6||Math.abs(e-M)<=1E-6||e>=Z&&e<=M}; +FC7=function(m){var e,Z=(e=g.qq(m))==null?void 0:e.D;m.aO&&uJ(m.getVideoData())&&Z&&Z.policy.tR&&(e=T4(m)*1E3-m.getVideoData().jn,m.W("html5_gapless_new_slr")?(m=m.CL,$8(m.app,"gaplessshortslooprange"),e=new g.Ub(0,e,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(m=m.app.Jf())&&m.addCueRange(e)):m.setLoopRange({startTimeMs:0,endTimeMs:e,type:"shortsLoop"}))}; +wdk=function(m){if(!(g.y(m.DG.getPlayerState(),64)&&pi(m).isLivePlayback&&m.hY.startTimeMs<5E3)){if(m.hY.type==="repeatChapter"){var e,Z=(e=YCR(m.QW()))==null?void 0:e.Am(),M;e=(M=m.getVideoData())==null?void 0:M.oN;if(Z instanceof g.ye&&e){M=m.hY.startTimeMs;for(var k=0,K=g.r(e),q=K.next();!(q.done||q.value.startTime>M);q=K.next())k++;Z.renderChapterSeekingAnimation(0,e[k===0?k:k-1].title)}isNaN(Number(m.hY.loopCount))?m.hY.loopCount=0:m.hY.loopCount++;m.hY.loopCount===1&&m.Fq.jr("innertubeCommand", +m.getVideoData().Cm)}Z={DN:"application_loopRangeStart"};if(m.hY.type==="clips"||m.hY.type==="shortsLoop")Z.seekSource=58;m.DG.seekTo(m.hY.startTimeMs*.001,Z)}}; +q_G=function(m,e){var Z=m.Fq.getAvailablePlaybackRates();e=Number(e.toFixed(2));m=Z[0];Z=Z[Z.length-1];e<=m?e=m:e>=Z?e=Z:(m=Math.floor(e*100+.001)%5,e=m===0?e:Math.floor((e-m*.01)*100+.001)/100);return e}; +T4=function(m,e){e=g.qq(m,e);if(!e)return 0;e=g.q$(m,e);return Fl(m,Ey(e),e)}; +Fl=function(m,e,Z){if(m.Ex(Z)){Z=Z.getVideoData();if(wp(m))Z=e;else{m=m.rV;for(var M=g.r(m.S),k=M.next();!k.done;k=M.next())if(k=k.value,Z.IE===k.IE){e+=k.fR/1E3;break}M=e;m=g.r(m.S);for(k=m.next();!k.done;k=m.next()){k=k.value;if(Z.IE===k.IE)break;var K=k.fR/1E3;if(K1&&(k=!1);if(!m.uh||k!==e){Z=Z.lock(k?"portrait":"landscape");if(Z!=null)Z["catch"](function(){}); +m.uh=!0}}else m.uh&&(m.uh=!1,Z.unlock())}; +ZY=function(m,e,Z){m.Fq.Pv(e,Z);var M=g.Km(m.V)||g.qF(m.V)||g.zx(m.V);if(Z&&M){switch(e){case "cuerangemarkersupdated":var k="onCueRangeMarkersUpdated";break;case "cuerangesadded":k="onCueRangesAdded";break;case "cuerangesremoved":k="onCueRangesRemoved"}k&&m.Fq.jr(k,Z.map(function(K){return{getId:function(){return this.id}, +end:K.end,id:K.getId(),namespace:K.namespace==="ad"?"ad":"",start:K.start,style:K.style,visible:K.visible}}))}}; +dp=function(m,e,Z,M,k,K){Z=Z===void 0?!0:Z;var q=g.qq(m,k);q&&(q.getPlayerType()===2&&!m.Ex(q)||g.fI(q.getVideoData()))||(m.getPresentingPlayerType()===3?x6(m.sJ).RP("control_seek",e,Z):(q===m.DG&&m.hY&&!$o1(m,e)&&m.setLoopRange(null),m.seekTo(e,Z,M,k,K)))}; +M$=function(m,e,Z,M){Z&&(m.A7(),es(m));Z=g.qq(m);Z.AY(new g.tw("staleconfig",{reason:e}));var k=m.getVideoData(),K={};K.video_id=k.videoId;K.adformat=k.adFormat;k.isLivePlayback?vQ(k)&&g.uA(m.V)&&(K.live_utc_start=Z.Zx(),K.resume="1"):(K.start=Z.getCurrentTime(),K.resume="1");k.Y&&(K.vvt=k.Y);k.C&&(K.vss_credentials_token=k.C,K.vss_credentials_token_type=k.GT);k.oauthToken&&(K.oauth_token=k.oauthToken);k.HX&&(K.force_gvi=k.HX);K.autoplay=1;K.reload_count=k.wr+1;K.reload_reason=e;k.ML&&(K.unplugged_partner_opt_out= +k.ML);k.oY&&(K.ypc_is_premiere_trailer=k.oY);k.playerParams&&(K.player_params=k.playerParams);m.loadVideoByPlayerVars(K,void 0,!0,void 0,void 0,M);e==="signature"&&m.MP&&aC(m)}; +EDs=function(m){var e=m.getVideoData().C0,Z=m.V.Qh,M=m.isInline()&&!m.getVideoData().HP,k=m.mediaElement;e||Z||M?k.Jg():(k.zA(),ua(m,m.lR))}; +cX=function(m){var e=wH(m.QW());e&&e.created&&(m.logger.debug("reset ad module"),e.destroy())}; +wp=function(m){return m.getVideoData().enableServerStitchedDai&&!!m.MP}; +Y_c=function(m,e){e.bounds=m.getBoundingClientRect();for(var Z=g.r(["display","opacity","visibility","zIndex"]),M=Z.next();!M.done;M=Z.next())M=M.value,e[M]=Q7(m,M);e.hidden=!!m.hidden}; +JZc=function(m){if(m.webPlayerContextConfig){var e=m.webPlayerContextConfig.trustedJsUrl;return e?eS(e).toString():m.webPlayerContextConfig.jsUrl}return m.config.assets&&m.config.assets.js?m.config.assets.js:""}; +nb=function(m,e){if(m.W("html5_ssap_enable_api_timing_logging")&&g.gA(pi(m))&&!m.WX.U){var Z;(Z=g.qq(m))==null||Z.B("ssap",{ptnu:e})}}; +Uo7=function(m){return m.name==="TypeError"&&m.stack.includes("/s/player/")&&EC()<=105}; +e3=[];at=typeof Object.defineProperties=="function"?Object.defineProperty:function(m,e,Z){if(m==Array.prototype||m==Object.prototype)return m;m[e]=Z.value;return m}; +g.S3=m7t(this);gc("Symbol",function(m){function e(K){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new Z(M+(K||"")+"_"+k++,K)} +function Z(K,q){this.X=K;at(this,"description",{configurable:!0,writable:!0,value:q})} +if(m)return m;Z.prototype.toString=function(){return this.X}; +var M="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",k=0;return e}); +gc("Symbol.iterator",function(m){if(m)return m;m=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Z=0;Z=K}}); +gc("String.prototype.endsWith",function(m){return m?m:function(e,Z){var M=L1(this,e,"endsWith");e+="";Z===void 0&&(Z=M.length);Z=Math.max(0,Math.min(Z|0,M.length));for(var k=e.length;k>0&&Z>0;)if(M[--Z]!=e[--k])return!1;return k<=0}}); +gc("Array.prototype.entries",function(m){return m?m:function(){return sR(this,function(e,Z){return[e,Z]})}}); +gc("Math.imul",function(m){return m?m:function(e,Z){e=Number(e);Z=Number(Z);var M=e&65535,k=Z&65535;return M*k+((e>>>16&65535)*k+M*(Z>>>16&65535)<<16>>>0)|0}}); +gc("globalThis",function(m){return m||g.S3}); +gc("Math.trunc",function(m){return m?m:function(e){e=Number(e);if(isNaN(e)||e===Infinity||e===-Infinity||e===0)return e;var Z=Math.floor(Math.abs(e));return e<0?-Z:Z}}); +gc("Number.isNaN",function(m){return m?m:function(e){return typeof e==="number"&&isNaN(e)}}); +gc("Array.prototype.keys",function(m){return m?m:function(){return sR(this,function(e){return e})}}); +gc("Array.prototype.values",function(m){return m?m:function(){return sR(this,function(e,Z){return Z})}}); +gc("Math.clz32",function(m){return m?m:function(e){e=Number(e)>>>0;if(e===0)return 32;var Z=0;(e&4294901760)===0&&(e<<=16,Z+=16);(e&4278190080)===0&&(e<<=8,Z+=8);(e&4026531840)===0&&(e<<=4,Z+=4);(e&3221225472)===0&&(e<<=2,Z+=2);(e&2147483648)===0&&Z++;return Z}}); +gc("Object.fromEntries",function(m){return m?m:function(e){var Z={};if(!(Symbol.iterator in e))throw new TypeError(""+e+" is not iterable");e=e[Symbol.iterator].call(e);for(var M=e.next();!M.done;M=e.next()){M=M.value;if(Object(M)!==M)throw new TypeError("iterable for fromEntries should yield objects");Z[M[0]]=M[1]}return Z}}); +gc("String.prototype.replaceAll",function(m){return m?m:function(e,Z){if(e instanceof RegExp&&!e.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return e instanceof RegExp?this.replace(e,Z):this.replace(new RegExp(String(e).replace(/([-()\[\]{}+?*.$\^|,:#k)M=k;M=Number(M);M<0&&(M=Math.max(0,k+M));for(Z=Number(Z||0);Z1342177279)throw new RangeError("Invalid count value");e|=0;for(var M="";e;)if(e&1&&(M+=Z),e>>>=1)Z+=Z;return M}}); +gc("Promise.prototype.finally",function(m){return m?m:function(e){return this.then(function(Z){return Promise.resolve(e()).then(function(){return Z})},function(Z){return Promise.resolve(e()).then(function(){throw Z; +})})}}); +gc("Math.sign",function(m){return m?m:function(e){e=Number(e);return e===0||isNaN(e)?e:e>0?1:-1}}); +gc("Array.prototype.findIndex",function(m){return m?m:function(e,Z){return Dk(this,e,Z).iT}}); +gc("String.prototype.padStart",function(m){return m?m:function(e,Z){var M=L1(this,null,"padStart");e-=M.length;Z=Z!==void 0?String(Z):" ";return(e>0&&Z?Z.repeat(Math.ceil(e/Z.length)).substring(0,e):"")+M}}); +gc("Array.prototype.copyWithin",function(m){function e(Z){Z=Number(Z);return Z===Infinity||Z===-Infinity?Z:Z|0} +return m?m:function(Z,M,k){var K=this.length;Z=e(Z);M=e(M);k=k===void 0?K:e(k);Z=Z<0?Math.max(K+Z,0):Math.min(Z,K);M=M<0?Math.max(K+M,0):Math.min(M,K);k=k<0?Math.max(K+k,0):Math.min(k,K);if(ZM;)--k in this?this[--Z]=this[k]:delete this[--Z];return this}}); +gc("Int8Array.prototype.copyWithin",ys);gc("Uint8Array.prototype.copyWithin",ys);gc("Uint8ClampedArray.prototype.copyWithin",ys);gc("Int16Array.prototype.copyWithin",ys);gc("Uint16Array.prototype.copyWithin",ys);gc("Int32Array.prototype.copyWithin",ys);gc("Uint32Array.prototype.copyWithin",ys);gc("Float32Array.prototype.copyWithin",ys);gc("Float64Array.prototype.copyWithin",ys);gc("Array.prototype.at",function(m){return m?m:j3}); +gc("Int8Array.prototype.at",OR);gc("Uint8Array.prototype.at",OR);gc("Uint8ClampedArray.prototype.at",OR);gc("Int16Array.prototype.at",OR);gc("Uint16Array.prototype.at",OR);gc("Int32Array.prototype.at",OR);gc("Uint32Array.prototype.at",OR);gc("Float32Array.prototype.at",OR);gc("Float64Array.prototype.at",OR);gc("String.prototype.at",function(m){return m?m:j3}); +gc("WeakSet",function(m){function e(Z){this.X=new WeakMap;if(Z){Z=g.r(Z);for(var M;!(M=Z.next()).done;)this.add(M.value)}} +if(function(){if(!m||!Object.seal)return!1;try{var Z=Object.seal({}),M=Object.seal({}),k=new m([Z]);if(!k.has(Z)||k.has(M))return!1;k.delete(Z);k.add(M);return!k.has(Z)&&k.has(M)}catch(K){return!1}}())return m; +e.prototype.add=function(Z){this.X.set(Z,!0);return this}; +e.prototype.has=function(Z){return this.X.has(Z)}; +e.prototype.delete=function(Z){return this.X.delete(Z)}; +return e}); +gc("Number.parseInt",function(m){return m||parseInt});var zq,Md,kKP;zq=zq||{};g.Jb=this||self;Md="closure_uid_"+(Math.random()*1E9>>>0);kKP=0;g.Y.prototype.uF=!1;g.Y.prototype.MU=function(){return this.uF}; +g.Y.prototype.dispose=function(){this.uF||(this.uF=!0,this.LB())}; +g.Y.prototype[Symbol.dispose]=function(){this.dispose()}; +g.Y.prototype.addOnDisposeCallback=function(m,e){this.uF?e!==void 0?m.call(e):m():(this.Mm||(this.Mm=[]),e&&(m=m.bind(e)),this.Mm.push(m))}; +g.Y.prototype.LB=function(){if(this.Mm)for(;this.Mm.length;)this.Mm.shift()()};var Fo;g.T(wm,g.Y);wm.prototype.share=function(){if(this.MU())throw Error("E:AD");this.U++;return this}; +wm.prototype.dispose=function(){--this.U||g.Y.prototype.dispose.call(this)}; +Fo=Symbol.dispose;Nd.prototype.EH=function(m,e){this.X.EH("/client_streamz/bg/frs",m,e)}; +rm.prototype.EH=function(m,e,Z,M,k,K){this.X.EH("/client_streamz/bg/wrl",m,e,Z,M,k,K)}; +IB.prototype.X=function(m,e){this.S.q7("/client_streamz/bg/ec",m,e)}; +Am.prototype.EH=function(m,e,Z,M){this.X.EH("/client_streamz/bg/el",m,e,Z,M)}; +Cz.prototype.X=function(m,e,Z){this.S.q7("/client_streamz/bg/cec",m,e,Z)}; +fz.prototype.X=function(m,e,Z){this.S.q7("/client_streamz/bg/po/csc",m,e,Z)}; +oB.prototype.X=function(m,e,Z){this.S.q7("/client_streamz/bg/po/ctav",m,e,Z)}; +Bk.prototype.X=function(m,e,Z){this.S.q7("/client_streamz/bg/po/cwsc",m,e,Z)};g.aB(g.E2,Error);g.E2.prototype.name="CustomError";var Y8,U5,DoG;Y8=void 0;DoG=typeof TextDecoder!=="undefined";g.LCR=typeof String.prototype.isWellFormed==="function";g.s6G=typeof TextEncoder!=="undefined";var jt7,O1b,JbP,V3s,WIm,zmc,ybR;g.GC=String.prototype.trim?function(m){return m.trim()}:function(m){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(m)[1]}; +jt7=/&/g;O1b=//g;V3s=/"/g;WIm=/'/g;zmc=/\x00/g;ybR=/[\x00&<>"']/;var ba;ba=Py(1,!0);g.Wk=Py(610401301,!1);Py(899588437,!1);Py(188588736,!0);g.G73=Py(691955189,!0);Py(651175828,!1);Py(653718497,ba);Py(660014094,ba);Py(2147483644,!1);Py(2147483645,!1);Py(2147483646,ba);Py(2147483647,!0);var yJI;yJI=g.Jb.navigator;g.zC=yJI?yJI.userAgentData||null:null;var h2;h2=Array.prototype.indexOf?function(m,e){return Array.prototype.indexOf.call(m,e,void 0)}:function(m,e){if(typeof m==="string")return typeof e!=="string"||e.length!=1?-1:m.indexOf(e,0); +for(var Z=0;ZparseFloat(Qk)){tT=String(DY);break a}}tT=Qk}var UM=tT,x71={};var pe,Gy,yA,epy,e4;pe=Ms();Gy=S7()||g.mz("iPod");yA=g.mz("iPad");epy=g.mz("Android")&&!(kR()||Ms()||Zp()||g.mz("Silk"));e4=kR();g.PC=g.Kq()&&!g.aO();var Qv={},OM=null;var PG=typeof Uint8Array!=="undefined",J2=!g.qR&&typeof btoa==="function",WG=/[-_.]/g,uKb={"-":"+",_:"/",".":"="},Kd={};Ma.prototype.isEmpty=function(){return this.X==null}; +Ma.prototype.sizeBytes=function(){var m=g.pd(this);return m?m.length:0}; +var k3;var Qx;var a4=typeof Symbol==="function"&&typeof Symbol()==="symbol",Lb=lu(),t8=lu("2ex"),vr=lu("1oa");var rM,R4,dM,uu;Math.max.apply(Math,g.Rt(Object.values({VG:1,yG:2,GC:4,m9:8,Zi:16,S4:32,xO:64,eA:128,xo:256,Jy:512,cA:1024,GD:2048,Wm:4096,yT:8192,Km:16384})));rM=a4?function(m,e){m[Lb]|=e}:function(m,e){m.im!==void 0?m.im|=e:Object.defineProperties(m,{im:{value:e, +configurable:!0,writable:!0,enumerable:!1}})}; +R4=a4?function(m,e){m[Lb]&=~e}:function(m,e){m.im!==void 0&&(m.im&=~e)}; +g.FT=a4?function(m){return m[Lb]|0}:function(m){return m.im|0}; +dM=a4?function(m){return m[Lb]}:function(m){return m.im}; +uu=a4?function(m,e){m[Lb]=e}:function(m,e){m.im!==void 0?m.im=e:Object.defineProperties(m,{im:{value:e, +configurable:!0,writable:!0,enumerable:!1}})};var v_={},Tcb={},P_,VuK=[],xi;uu(VuK,55);P_=Object.freeze(VuK);xi=Object.freeze({});var $77=IR(function(m){return typeof m==="number"}),Al=IR(function(m){return typeof m==="string"}),FIk=IR(function(m){return typeof m==="boolean"}),KR=IR(function(m){return m!=null&&typeof m==="object"&&typeof m.then==="function"}),k4=IR(function(m){return!!m&&(typeof m==="object"||typeof m==="function")});var Cd=typeof g.Jb.BigInt==="function"&&typeof g.Jb.BigInt(0)==="bigint";var kV=IR(function(m){return Cd?m>=WCk&&m<=zSG:m[0]==="-"?oR(m,PzI):oR(m,mLG)}),PzI=Number.MIN_SAFE_INTEGER.toString(),WCk=Cd?BigInt(Number.MIN_SAFE_INTEGER):void 0,mLG=Number.MAX_SAFE_INTEGER.toString(),zSG=Cd?BigInt(Number.MAX_SAFE_INTEGER):void 0;var d7P;d7P=typeof Uint8Array.prototype.slice==="function";g.dK=0;g.BU=0;var wyK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Rs=void 0,h8=void 0,XW=void 0,xV=void 0,$V=void 0;var FW,n7,c_;g.p=U4.prototype;g.p.init=function(m,e,Z,M){M=M===void 0?{}:M;this.t9=M.t9===void 0?!1:M.t9;m&&(m=g.Yi(m),this.S=m.buffer,this.L=m.fF,this.Z=e||0,this.U=Z!==void 0?this.Z+Z:this.S.length,this.X=this.Z)}; +g.p.free=function(){this.clear();Du.length<100&&Du.push(this)}; +g.p.clear=function(){this.S=null;this.L=!1;this.X=this.U=this.Z=0;this.t9=!1}; +g.p.reset=function(){this.X=this.Z}; +g.p.W0=function(){var m=this.C;m||(m=this.S,m=this.C=new DataView(m.buffer,m.byteOffset,m.byteLength));return m}; +var Du=[];s4.prototype.free=function(){this.X.clear();this.S=this.Z=-1;s5.length<100&&s5.push(this)}; +s4.prototype.reset=function(){this.X.reset();this.U=this.X.X;this.S=this.Z=-1}; +var s5=[];var Wr;g.p=g.Js.prototype;g.p.toJSON=function(){return z0(this)}; +g.p.mI=function(){try{return Wr=!0,JSON.stringify(z0(this),CPR)}finally{Wr=!1}}; +g.p.clone=function(){var m=this.RO;return wM(this.constructor,B_(m,dM(m),!1))}; +g.p.fF=function(){return!!((0,g.FT)(this.RO)&2)}; +g.p.j3=v_;var mx=g.Pr(),etG=g.Pr();var EGt,YRR,ar,Xc,k1;EGt=Zx(function(m,e,Z,M,k){if(m.S!==2)return!1;j5(m,g9(e,M,Z),k);return!0}); +YRR=Zx(function(m,e,Z,M,k){if(m.S!==2)return!1;j5(m,g9(e,M,Z,!0),k);return!0}); +ar=Symbol();Xc=Symbol();var G4=g.iK(function(m,e,Z){if(m.S!==2)return!1;var M=g.ts(m.X)>>>0;m=m.X;var k=Q0(m,M);m=m.S;if(DoG){var K=m,q;(q=U5)||(q=U5=new TextDecoder("utf-8",{fatal:!0}));M=k+M;K=k===0&&M===K.length?K:K.subarray(k,M);try{var S=q.decode(K)}catch(x){if(Y8===void 0){try{q.decode(new Uint8Array([128]))}catch(l){}try{q.decode(new Uint8Array([97])),Y8=!0}catch(l){Y8=!1}}!Y8&&(U5=void 0);throw x;}}else{S=k;M=S+M;k=[];for(var a=null,v,X;S=M?Yw():(X=m[S++],v<194||(X&192)!==128? +(S--,Yw()):k.push((v&31)<<6|X&63)):v<240?S>=M-1?Yw():(X=m[S++],(X&192)!==128||v===224&&X<160||v===237&&X>=160||((q=m[S++])&192)!==128?(S--,Yw()):k.push((v&15)<<12|(X&63)<<6|q&63)):v<=244?S>=M-2?Yw():(X=m[S++],(X&192)!==128||(v<<28)+(X-144)>>30!==0||((q=m[S++])&192)!==128||((K=m[S++])&192)!==128?(S--,Yw()):(v=(v&7)<<18|(X&63)<<12|(q&63)<<6|K&63,v-=65536,k.push((v>>10&1023)+55296,(v&1023)+56320))):Yw(),k.length>=8192&&(a=U2(a,k),k.length=0);S=U2(a,k)}g.x1(e,Z,S);return!0},function(m,e,Z){m.G1(Z,g.Sd(e))}, +g.Pr()),ZVb,yk=void 0; +yk=yk===void 0?mx:yk;ZVb=new ef(function(m,e,Z,M,k){if(m.S!==2)return!1;M=Is(void 0,M,!0);ki(e,dM(e),Z,!0).push(M);j5(m,M,k);return!0},function(m,e,Z,M,k){if(Array.isArray(e))for(var K=0;K>>0);return!0},function(m,e,Z){m.yf(Z,WU(e))},g.Pr()),Mct=g.iK(function(m,e,Z){if(m.S!==0)return!1; +g.x1(e,Z,g.ts(m.X));return!0},function(m,e,Z){m.Ee(Z,g.VE(e))},g.Pr());g.T(uK,g.Js);g.T(Rr,g.Js);var Vk=[1,2,3];g.T(hc,g.Js);var k$K=[1,2,3];g.T(TA,g.Js);g.T(g.$1,g.Js);g.$1.prototype.gO=Zk(0);g.T(Fc,g.Js);var rr=globalThis.trustedTypes,Ir;Co.prototype.toString=function(){return this.X+""};g.dr.prototype.toString=function(){return this.X}; +var bK=new g.dr("about:invalid#zClosurez");var Uf=[Y1("data"),Y1("http"),Y1("https"),Y1("mailto"),Y1("ftp"),new Ef(function(m){return/^[^:]*([/?#]|$)/.test(m)})],D77=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Lo.prototype.toString=function(){return this.X};g.sf.prototype.toString=function(){return this.X+""};Jc.prototype.toString=function(){return this.X+""};var eb={};g.Kj7=String.prototype.repeat?function(m,e){return m.repeat(e)}:function(m,e){return Array(e+1).join(m)};g.p=gk.prototype;g.p.isEnabled=function(){if(!g.Jb.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{L5:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.p.set=function(m,e,Z){var M=!1;if(typeof Z==="object"){var k=Z.XR;M=Z.Rz||!1;var K=Z.domain||void 0;var q=Z.path||void 0;var S=Z.L5}if(/[;=\s]/.test(m))throw Error('Invalid cookie name "'+m+'"');if(/[;\r\n]/.test(e))throw Error('Invalid cookie value "'+e+'"');S===void 0&&(S=-1);Z=K?";domain="+K:"";q=q?";path="+q:"";M=M?";secure":"";S=S<0?"":S==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+S*1E3)).toUTCString();this.X.cookie=m+"="+e+Z+q+S+M+(k!=null?";samesite="+ +k:"")}; +g.p.get=function(m,e){for(var Z=m+"=",M=(this.X.cookie||"").split(";"),k=0,K;k=0;e--)this.remove(m[e])}; +var Ai=new gk(typeof document=="undefined"?null:document);ue.prototype.compress=function(m){var e,Z,M,k;return g.Qs(function(K){switch(K.X){case 1:return e=new CompressionStream("gzip"),Z=(new Response(e.readable)).arrayBuffer(),M=e.writable.getWriter(),g.A(K,M.write((new TextEncoder).encode(m)),2);case 2:return g.A(K,M.close(),3);case 3:return k=Uint8Array,g.A(K,Z,4);case 4:return K.return(new k(K.S))}})}; +ue.prototype.isSupported=function(m){return m<1024?!1:typeof CompressionStream!=="undefined"};g.T(Rp,g.Js);hv.prototype.setInterval=function(m){this.intervalMs=m;this.H0&&this.enabled?(this.stop(),this.start()):this.H0&&this.stop()}; +hv.prototype.start=function(){var m=this;this.enabled=!0;this.H0||(this.H0=setTimeout(function(){m.tick()},this.intervalMs),this.S=this.X())}; +hv.prototype.stop=function(){this.enabled=!1;this.H0&&(clearTimeout(this.H0),this.H0=void 0)}; +hv.prototype.tick=function(){var m=this;if(this.enabled){var e=Math.max(this.X()-this.S,0);e0&&(this.U.splice(0,e),this.L+=e);this.U.push(m);this.Jb||this.X.enabled||this.X.start()}}; +g.p.flush=function(m,e){var Z=this;if(this.U.length===0)m&&m();else{var M=Date.now();if(this.b9>M&&this.K0&&(Z.K=Date.now(),Z.b9=Z.K+R),h=WX.X?WX.S(h,WX.X,175237375,!0):WX.S(h,175237375,null,!0),h=h===null?void 0:h)&&(h=l6(h,1,-1),h!==-1&&(Z.Z=new g.Jy(h<1?1:h,3E5,.1),Z.X.setInterval(Z.Z.getValue())))}m&&m();Z.N=0},x=function(R,h){var w=Xo(k,Qr,3); +var N=K7(UD(k,14));N=N==null?void 0:N;g.Vr(Z.Z);Z.X.setInterval(Z.Z.getValue());R===401&&K&&(Z.S9=K);N&&(Z.L+=N);h===void 0&&(h=Z.isRetryable(R));h&&(Z.U=w.concat(Z.U),Z.Jb||Z.X.enabled||Z.X.start());e&&e("net-send-failed",R);++Z.N},l=function(){Z.network&&Z.network.send(v,X,x)}; +a?a.then(function(R){v.DM["Content-Encoding"]="gzip";v.DM["Content-Type"]="application/binary";v.body=R;v.tC=2;l()},function(){l()}):l()}}}}; +g.p.U4=function(){Om(this.S,!0);this.flush();Om(this.S,!1)}; +g.p.isRetryable=function(m){return 500<=m&&m<600||m===401||m===0};eZ.prototype.send=function(m,e,Z){var M=this,k,K,q,S,a,v,X,x,l,R;return g.Qs(function(h){switch(h.X){case 1:return K=(k=M.cD?new AbortController:void 0)?setTimeout(function(){k.abort()},m.timeoutMillis):void 0,Ab(h,2,3),q=Object.assign({},{method:m.requestType, +headers:Object.assign({},m.DM)},m.body&&{body:m.body},m.withCredentials&&{credentials:"include"},{signal:m.timeoutMillis&&k?k.signal:null}),g.A(h,fetch(m.url,q),5);case 5:S=h.S;if(S.status!==200){(a=Z)==null||a(S.status);h.pB(3);break}if((v=e)==null){h.pB(7);break}return g.A(h,S.text(),8);case 8:v(h.S);case 7:case 3:ot(h);clearTimeout(K);dc(h,0);break;case 2:X=f1(h);switch((x=X)==null?void 0:x.name){case "AbortError":(l=Z)==null||l(408);break;default:(R=Z)==null||R(400)}h.pB(3)}})}; +eZ.prototype.LN=function(){return 4};g.T(ZD,g.Y);ZD.prototype.Tz=function(){this.Z=!0;return this}; +ZD.prototype.build=function(){this.network||(this.network=new eZ);var m=new mt({logSource:this.logSource,Sf:this.Sf?this.Sf:le,sessionIndex:this.sessionIndex,SN:this.qY,Pt:this.U,Jb:!1,Tz:this.Z,Z4:this.Z4,network:this.network});g.U(this,m);if(this.S){var e=this.S,Z=sm(m.S);As(Z,7,e)}Math.random()<.5&&(m.C=new ue);this.componentId&&(m.componentId=this.componentId);this.Wf&&(m.Wf=this.Wf);this.pageId&&(m.pageId=this.pageId);this.X&&((Z=this.X)?(m.experimentIds||(m.experimentIds=new Rp),e=m.experimentIds, +Z=Z.mI(),As(e,4,Z)):m.experimentIds&&Df(m.experimentIds,4));Mqm(m.S);this.network.EC&&this.network.EC(this.logSource);this.network.WJ&&this.network.WJ(m);return m};g.T(KW,g.Y); +KW.prototype.flush=function(m){m=m||[];if(m.length){for(var e=new Fc,Z=[],M=0;M-1?(e=m[q],Z||(e.Se=!1)):(e=new abI(e,this.src,K,!!M,k),e.Se=Z,m.push(e));return e}; +g.p.remove=function(m,e,Z,M){m=m.toString();if(!(m in this.listeners))return!1;var k=this.listeners[m];e=R2(k,e,Z,M);return e>-1?(xm(k[e]),g.FR(k,e),k.length==0&&(delete this.listeners[m],this.X--),!0):!1}; +g.p.WV=function(){var m=0,e;for(e in this.listeners){for(var Z=this.listeners[e],M=0;M-1?m[k]:null}; +g.p.hasListener=function(m,e){var Z=m!==void 0,M=Z?m.toString():"",k=e!==void 0;return g.op(this.listeners,function(K){for(var q=0;q>>0);g.aB(g.fW,g.Y);g.fW.prototype[XZ]=!0;g.p=g.fW.prototype;g.p.addEventListener=function(m,e,Z,M){g.TI(this,m,e,Z,M)}; +g.p.removeEventListener=function(m,e,Z,M){r7(this,m,e,Z,M)}; +g.p.dispatchEvent=function(m){var e=this.tW;if(e){var Z=[];for(var M=1;e;e=e.tW)Z.push(e),++M}e=this.oJ;M=m.type||m;if(typeof m==="string")m=new vL(m,e);else if(m instanceof vL)m.target=m.target||e;else{var k=m;m=new vL(M,e);g.Jv(m,k)}k=!0;var K;if(Z)for(K=Z.length-1;!m.S&&K>=0;K--){var q=m.currentTarget=Z[K];k=o2(q,M,!0,m)&&k}m.S||(q=m.currentTarget=e,k=o2(q,M,!0,m)&&k,m.S||(k=o2(q,M,!1,m)&&k));if(Z)for(K=0;!m.S&&K0){this.S--;var m=this.X;this.X=m.next;m.next=null}else m=this.U();return m};var Ym;bF.prototype.add=function(m,e){var Z=s8.get();Z.set(m,e);this.S?this.S.next=Z:this.X=Z;this.S=Z}; +bF.prototype.remove=function(){var m=null;this.X&&(m=this.X,this.X=this.X.next,this.X||(this.S=null),m.next=null);return m}; +var s8=new d7(function(){return new tH},function(m){return m.reset()}); +tH.prototype.set=function(m,e){this.X=m;this.scope=e;this.next=null}; +tH.prototype.reset=function(){this.next=this.scope=this.X=null};var QF,HL=!1,DD=new bF;JH.prototype.reset=function(){this.context=this.S=this.U=this.X=null;this.Z=!1}; +var VF=new d7(function(){return new JH},function(m){m.reset()}); +g.O8.prototype.then=function(m,e,Z){return iS(this,E8(typeof m==="function"?m:null),E8(typeof e==="function"?e:null),Z)}; +g.O8.prototype.$goog_Thenable=!0;g.p=g.O8.prototype;g.p.cS=function(m,e){return iS(this,null,E8(m),e)}; +g.p.catch=g.O8.prototype.cS;g.p.cancel=function(m){if(this.X==0){var e=new g.XV(m);g.LW(function(){Zt(this,e)},this)}}; +g.p.K9=function(m){this.X=0;jZ(this,2,m)}; +g.p.Oa=function(m){this.X=0;jZ(this,3,m)}; +g.p.U_=function(){for(var m;m=MY(this);)kM(this,m,this.X,this.j);this.C=!1}; +var uS=b6;g.aB(g.XV,g.E2);g.XV.prototype.name="cancel";g.aB(g.Rw,g.fW);g.p=g.Rw.prototype;g.p.enabled=!1;g.p.BI=null;g.p.setInterval=function(m){this.e2=m;this.BI&&this.enabled?(this.stop(),this.start()):this.BI&&this.stop()}; +g.p.Jq=function(){if(this.enabled){var m=g.Sq()-this.xn;m>0&&m0&&(this.getStatus(),this.C=setTimeout(this.tq.bind(this), +this.Y)),this.getStatus(),this.K=!0,this.X.send(m),this.K=!1}catch(q){this.getStatus(),WS(this,q)}}; +g.p.tq=function(){typeof zq!="undefined"&&this.X&&(this.L="Timed out after "+this.Y+"ms, aborting",this.U=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.p.abort=function(m){this.X&&this.S&&(this.getStatus(),this.S=!1,this.Z=!0,this.X.abort(),this.Z=!1,this.U=m||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),VJ(this))}; +g.p.LB=function(){this.X&&(this.S&&(this.S=!1,this.Z=!0,this.X.abort(),this.Z=!1),VJ(this,!0));yJ.VQ.LB.call(this)}; +g.p.tM=function(){this.MU()||(this.S9||this.K||this.Z?eW(this):this.mB())}; +g.p.mB=function(){eW(this)}; +g.p.isActive=function(){return!!this.X}; +g.p.isComplete=function(){return PS(this)==4}; +g.p.getStatus=function(){try{return PS(this)>2?this.X.status:-1}catch(m){return-1}}; +g.p.getResponseHeader=function(m){if(this.X&&this.isComplete())return m=this.X.getResponseHeader(m),m===null?void 0:m}; +g.p.getLastError=function(){return typeof this.L==="string"?this.L:String(this.L)};kS.prototype.send=function(m,e,Z){e=e===void 0?function(){}:e; +Z=Z===void 0?function(){}:Z; +cmK(m.url,function(M){M=M.target;m_(M)?e(Z4(M)):Z(M.getStatus())},m.requestType,m.body,m.DM,m.timeoutMillis,m.withCredentials)}; +kS.prototype.LN=function(){return 1};qe.prototype.done=function(){this.logger.Lu(this.event,Kk()-this.startTime)}; +g.T(pk,wm);g.T(ak,pk);g.p=ak.prototype;g.p.UA=function(){}; +g.p.Iw=function(){}; +g.p.Lu=function(){}; +g.p.oF=function(){}; +g.p.jH=function(){}; +g.p.An=function(m,e,Z){return Z}; +g.p.Aw=function(){}; +g.p.S3=function(){}; +g.p.Uq=function(){}; +g.p.Wh=function(){}; +g.T(vb,pk);g.p=vb.prototype;g.p.update=function(m){this.logger.dispose();this.logger=m}; +g.p.Iw=function(m){this.logger.Iw(m)}; +g.p.Lu=function(m,e){this.logger.Lu(m,e)}; +g.p.oF=function(m){this.logger.oF(m)}; +g.p.jH=function(){this.logger.jH()}; +g.p.An=function(m,e,Z){return this.logger.An(m,e,Z)}; +g.p.Aw=function(m){this.logger.Aw(m)}; +g.p.S3=function(m){this.logger.S3(m)}; +g.p.Uq=function(m){this.logger.Uq(m)}; +g.p.Wh=function(m){this.logger.Wh(m)}; +g.p.UA=function(m){this.logger.UA(m)}; +g.T(X6,g.Y);g.T(iB,pk);g.p=iB.prototype;g.p.UA=function(m){this.metrics.y4.EH(m,this.AD)}; +g.p.Iw=function(m){this.metrics.eventCount.X(m,this.AD)}; +g.p.Lu=function(m,e){this.metrics.rq.EH(e,m,this.yD,this.AD)}; +g.p.oF=function(m){this.metrics.errorCount.X(m,this.yD,this.AD)}; +g.p.An=function(m,e,Z){function M(q){if(!k.MU()){var S=Kk()-K;k.metrics.Lz.EH(S,m,e,q,k.yD,k.AD)}} +var k=this,K=Kk();Z.then(function(){M(0)},function(q){q instanceof cS?M(q.code):M(-1)}); +return Z}; +g.p.Aw=function(m){this.metrics.M3.X(m,this.yD,this.AD)}; +g.p.S3=function(m){this.metrics.zQ.X(m,this.yD,this.AD)}; +g.p.Uq=function(m){this.metrics.W$.X(m,this.yD,this.AD)}; +g.T(xS,iB);xS.prototype.Wh=function(m){var e=this;this.X.dispose();this.S&&this.service.dispose();this.service=this.options.aS("38",this.options.El.concat(m));this.X=new X6(function(){return void e.service.pI()},this.options.rz); +this.metrics=gW(this.service)}; +xS.prototype.jH=function(){Am1(this.X)};g.T(lB,g.Js);g.T(uB,g.Js);g.T(Rk,g.Js);var aTG=lK(Rk),C63=function(m){return IR(function(e){return e instanceof m&&!((0,g.FT)(e.RO)&2)})}(Rk);g.T(xw,g.Js);g.T(hp,g.Js);var fbR=lK(hp);g.T(F6,g.Y);F6.prototype.snapshot=function(m){if(this.MU())throw Error("Already disposed");this.logger.Iw("n");var e=this.logger.share();return this.U.then(function(Z){var M=Z.JC;return new Promise(function(k){var K=new qe(e,"n");M(function(q){K.done();e.UA(q.length);e.jH();e.dispose();k(q)},[m.aU, +m.z0,m.Ro,m.KZ])})})}; +F6.prototype.XY=function(m){var e=this;if(this.MU())throw Error("Already disposed");this.logger.Iw("n");var Z=SW(this.logger,function(){return e.Z([m.aU,m.z0,m.Ro,m.KZ])},"n"); +this.logger.UA(Z.length);this.logger.jH();return Z}; +F6.prototype.WB=function(m){this.U.then(function(e){var Z;(Z=e.RT)==null||Z(m)})}; +F6.prototype.T0=function(){return this.logger.share()}; +g.T(wW,Error);g.T(Ik,g.Js);g.T(Ap,g.Js);Ck.prototype.OW=function(m,e){var Z=this,M,k,K,q,S;return g.Qs(function(a){if(a.X==1){var v=new Ik;M=CG(v,1,Z.l3);m&&CG(M,2,m);e&&CG(M,3,e);k=Z.X();return g.A(a,Z.client.create(M,k),2)}K=a.S;q=SV(e5(K,2));if(q.length){v=a.return;var X=new Uint8Array(q.length);for(var x=0;x0;)e[Z++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(m%62),m=Math.floor(m/62);return e.join("")}};var GF;g.T(y8,g.Y);y8.prototype.Gc=function(m,e){var Z=this.e8(m);e==null||e(Z);return SW(this.logger,function(){return g.HG(Z,2)},this.X)}; +GF=Symbol.dispose;g.T(V8,y8);V8.prototype.e8=function(m,e){var Z=this;++this.L>=this.C&&this.U.resolve();var M=m();m=SW(this.logger,function(){return Z.Z(M)},"C"); +if(m===void 0)throw new wW(17,"YNJ:Undefined");if(!(m instanceof Uint8Array))throw new wW(18,"ODM:Invalid");e==null||e(m);return m}; +g.T(Wb,y8);Wb.prototype.e8=function(){return this.Z}; +g.T(zF,y8);zF.prototype.e8=function(){var m=this;return SW(this.logger,function(){return j7(m.Z)},"d")}; +zF.prototype.Gc=function(){return this.Z}; +g.T(Pb,y8);Pb.prototype.e8=function(){if(this.Z)return this.Z;this.Z=en(this,function(m){return"_"+z9K(m)}); +return en(this,function(m){return m})}; +g.T(Zh,y8);Zh.prototype.e8=function(m){var e=m();if(e.length>118)throw new wW(19,"DFO:Invalid");m=Math.floor(Date.now()/1E3);var Z=[Math.random()*255,Math.random()*255],M=Z.concat([this.Z&255,this.clientState],[m>>24&255,m>>16&255,m>>8&255,m&255]);m=new Uint8Array(2+M.length+e.length);m[0]=34;m[1]=M.length+e.length;m.set(M,2);m.set(e,2+M.length);e=m.subarray(2);for(M=Z=Z.length;M150))try{this.cache=new jBb(m,this.logger)}catch(e){this.reportError(new wW(22,"GBJ:init",e))}}; +Mb.prototype.reportError=function(m){this.logger.oF(m.code);this.onError(m);return m}; +(function(m){return IR(function(e){if(!k4(e))return!1;for(var Z=g.r(Object.entries(m)),M=Z.next();!M.done;M=Z.next()){var k=g.r(M.value);M=k.next().value;k=k.next().value;if(!(M in e)){if(k.nX===!0)continue;return!1}if(!k(e[M]))return!1}return!0})})({PV:function(m){return IR(function(e){return e instanceof m})}(ok)},"");g.T(pH,g.Js);var g7P=lK(pH);Sn.prototype.getMetadata=function(){return this.metadata};aY.prototype.getMetadata=function(){return this.metadata}; +aY.prototype.getStatus=function(){return this.status};v1.prototype.j=function(m,e){e=e===void 0?{}:e;return new Sn(m,this,e)}; +v1.prototype.getName=function(){return this.name};var XYK=new v1("/google.internal.waa.v1.Waa/Create",Ik,pH,function(m){return m.mI()},g7P);g.T(gB,g.Js);var Y2I=new v1("/google.internal.waa.v1.Waa/GenerateIT",Ap,gB,function(m){return m.mI()},lK(gB));var xsK=new Set(["SAPISIDHASH","APISIDHASH"]);var XG3=Promise;g.T(X$,g.Js);X$.prototype.getValue=function(){var m=UD(this,2);if(Array.isArray(m)||m instanceof g.Js)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return e5(this,2)};g.T(it,g.Js);var qMm=lK(it);xK.prototype.uK=function(m,e){m=="data"?this.U.push(e):m=="metadata"?this.L.push(e):m=="status"?this.C.push(e):m=="end"?this.Z.push(e):m=="error"&&this.S.push(e);return this}; +xK.prototype.removeListener=function(m,e){m=="data"?$K(this.U,e):m=="metadata"?$K(this.L,e):m=="status"?$K(this.C,e):m=="end"?$K(this.Z,e):m=="error"&&$K(this.S,e);return this}; +xK.prototype.cancel=function(){this.X.abort()}; +xK.prototype.cancel=xK.prototype.cancel;xK.prototype.removeListener=xK.prototype.removeListener;xK.prototype.on=xK.prototype.uK;g.aB(F$,NY);F$.prototype.X=function(){var m=new wB(this.Z,this.U);this.S&&m.setCredentialsMode(this.S);return m}; +F$.prototype.setCredentialsMode=function(m){this.S=m}; +g.aB(wB,g.fW);g.p=wB.prototype;g.p.open=function(m,e){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Y=m;this.K=e;this.readyState=1;c1(this)}; +g.p.send=function(m){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.X=!0;var e={headers:this.N,method:this.Y,credentials:this.L,cache:void 0};m&&(e.body=m);(this.AR||g.Jb).fetch(new Request(this.K,e)).then(this.Au.bind(this),this.Fj.bind(this))}; +g.p.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.U&&this.U.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.X&&this.readyState!=4&&(this.X=!1,Nb(this));this.readyState=0}; +g.p.Au=function(m){if(this.X&&(this.Z=m,this.S||(this.status=this.Z.status,this.statusText=this.Z.statusText,this.S=m.headers,this.readyState=2,c1(this)),this.X&&(this.readyState=3,c1(this),this.X)))if(this.responseType==="arraybuffer")m.arrayBuffer().then(this.rj.bind(this),this.Fj.bind(this));else if(typeof g.Jb.ReadableStream!=="undefined"&&"body"in m){this.U=m.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= +[]}else this.response=this.responseText="",this.j=new TextDecoder;nH(this)}else m.text().then(this.UQ.bind(this),this.Fj.bind(this))}; +g.p.XO=function(m){if(this.X){if(this.C&&m.value)this.response.push(m.value);else if(!this.C){var e=m.value?m.value:new Uint8Array(0);if(e=this.j.decode(e,{stream:!m.done}))this.response=this.responseText+=e}m.done?Nb(this):c1(this);this.readyState==3&&nH(this)}}; +g.p.UQ=function(m){this.X&&(this.response=this.responseText=m,Nb(this))}; +g.p.rj=function(m){this.X&&(this.response=m,Nb(this))}; +g.p.Fj=function(){this.X&&Nb(this)}; +g.p.setRequestHeader=function(m,e){this.N.append(m,e)}; +g.p.getResponseHeader=function(m){return this.S?this.S.get(m.toLowerCase())||"":""}; +g.p.getAllResponseHeaders=function(){if(!this.S)return"";for(var m=[],e=this.S.entries(),Z=e.next();!Z.done;)Z=Z.value,m.push(Z[0]+": "+Z[1]),Z=e.next();return m.join("\r\n")}; +g.p.setCredentialsMode=function(m){this.L=m}; +Object.defineProperty(wB.prototype,"withCredentials",{get:function(){return this.L==="include"}, +set:function(m){this.setCredentialsMode(m?"include":"same-origin")}});g.rB.prototype.toString=function(){var m=[],e=this.Z;e&&m.push(B1(e,iVG,!0),":");var Z=this.X;if(Z||e=="file")m.push("//"),(e=this.N)&&m.push(B1(e,iVG,!0),"@"),m.push(ku(Z).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Z=this.C,Z!=null&&m.push(":",String(Z));if(Z=this.S)this.X&&Z.charAt(0)!="/"&&m.push("/"),m.push(B1(Z,Z.charAt(0)=="/"?xL1:lTs,!0));(Z=this.U.toString())&&m.push("?",Z);(Z=this.L)&&m.push("#",B1(Z,uIK));return m.join("")}; +g.rB.prototype.resolve=function(m){var e=this.clone(),Z=!!m.Z;Z?IY(e,m.Z):Z=!!m.N;Z?e.N=m.N:Z=!!m.X;Z?A3(e,m.X):Z=m.C!=null;var M=m.S;if(Z)CH(e,m.C);else if(Z=!!m.S){if(M.charAt(0)!="/")if(this.X&&!this.S)M="/"+M;else{var k=e.S.lastIndexOf("/");k!=-1&&(M=e.S.slice(0,k+1)+M)}k=M;if(k==".."||k==".")M="";else if(k.indexOf("./")!=-1||k.indexOf("/.")!=-1){M=g.Hk(k,"/");k=k.split("/");for(var K=[],q=0;q1||K.length==1&&K[0]!="")&& +K.pop(),M&&q==k.length&&K.push("")):(K.push(S),M=!0)}M=K.join("/")}else M=k}Z?e.S=M:Z=m.U.toString()!=="";Z?fH(e,m.U.clone()):Z=!!m.L;Z&&(e.L=m.L);return e}; +g.rB.prototype.clone=function(){return new g.rB(this)}; +var iVG=/[#\/\?@]/g,lTs=/[#\?:]/g,xL1=/[#\?]/g,SMI=/[#\?@]/g,uIK=/#/g;g.p=dB.prototype;g.p.add=function(m,e){EN(this);this.U=null;m=YK(this,m);var Z=this.X.get(m);Z||this.X.set(m,Z=[]);Z.push(e);this.S=this.S+1;return this}; +g.p.remove=function(m){EN(this);m=YK(this,m);return this.X.has(m)?(this.U=null,this.S=this.S-this.X.get(m).length,this.X.delete(m)):!1}; +g.p.clear=function(){this.X=this.U=null;this.S=0}; +g.p.isEmpty=function(){EN(this);return this.S==0}; +g.p.forEach=function(m,e){EN(this);this.X.forEach(function(Z,M){Z.forEach(function(k){m.call(e,k,M,this)},this)},this)}; +g.p.O1=function(){EN(this);for(var m=Array.from(this.X.values()),e=Array.from(this.X.keys()),Z=[],M=0;M0?String(m[0]):e}; +g.p.toString=function(){if(this.U)return this.U;if(!this.X)return"";for(var m=[],e=Array.from(this.X.keys()),Z=0;Z>>3;K.U!=1&&K.U!=2&&K.U!=15&&LH(K,q,S,"unexpected tag");K.X=1;K.S=0;K.Z=0} +function Z(a){K.Z++;K.Z==5&&a&240&&LH(K,q,S,"message length too long");K.S|=(a&127)<<(K.Z-1)*7;a&128||(K.X=2,K.N=0,typeof Uint8Array!=="undefined"?K.L=new Uint8Array(K.S):K.L=Array(K.S),K.S==0&&k())} +function M(a){K.L[K.N++]=a;K.N==K.S&&k()} +function k(){if(K.U<15){var a={};a[K.U]=K.L;K.j.push(a)}K.X=0} +for(var K=this,q=m instanceof Array?m:new Uint8Array(m),S=0;S0?m:null};sN.prototype.isInputValid=function(){return this.X===null}; +sN.prototype.H_=function(){return this.X}; +sN.prototype.TN=function(){return!1}; +sN.prototype.parse=function(m){this.X!==null&&GN(this,m,"stream already broken");var e=null;try{var Z=this.U;Z.U||H1(Z,m,"stream already broken");Z.X+=m;var M=Math.floor(Z.X.length/4);if(M==0)var k=null;else{try{var K=yv(Z.X.slice(0,M*4))}catch(q){H1(Z,Z.X,q.message)}Z.S+=M*4;Z.X=Z.X.slice(M*4);k=K}e=k===null?null:this.Z.parse(k)}catch(q){GN(this,m,q.message)}this.S+=m.length;return e};var htb={INIT:0,Sx:1,Nv:2,Mg:3,LA:4,gp:5,STRING:6,nL:7,QL:8,d4:9,Hg:10,qf:11,T9:12,Nc:13,Jt:14,x8:15,Gh:16,yL:17,cg:18,Sm:19,T2:20};g.p=jn.prototype;g.p.isInputValid=function(){return this.L!=3}; +g.p.H_=function(){return this.K}; +g.p.done=function(){return this.L===2}; +g.p.TN=function(){return!1}; +g.p.parse=function(m){function e(){for(;l0;)if(h=m[l++], +K.N===4?K.N=0:K.N++,!h)break a;if(h==='"'&&!K.j){K.X=M();break}if(h==="\\"&&!K.j&&(K.j=!0,h=m[l++],!h))break;if(K.j)if(K.j=!1,h==="u"&&(K.N=1),h=m[l++])continue;else break;S.lastIndex=l;h=S.exec(m);if(!h){l=m.length+1;break}l=h.index+1;h=m[h.index];if(!h)break}K.U+=l-w;continue;case a.d4:if(!h)continue;h==="r"?K.X=a.Hg:ON(K,m,l);continue;case a.Hg:if(!h)continue;h==="u"?K.X=a.qf:ON(K,m,l);continue;case a.qf:if(!h)continue;h==="e"?K.X=M():ON(K,m,l);continue;case a.T9:if(!h)continue;h==="a"?K.X=a.Nc: +ON(K,m,l);continue;case a.Nc:if(!h)continue;h==="l"?K.X=a.Jt:ON(K,m,l);continue;case a.Jt:if(!h)continue;h==="s"?K.X=a.x8:ON(K,m,l);continue;case a.x8:if(!h)continue;h==="e"?K.X=M():ON(K,m,l);continue;case a.Gh:if(!h)continue;h==="u"?K.X=a.yL:ON(K,m,l);continue;case a.yL:if(!h)continue;h==="l"?K.X=a.cg:ON(K,m,l);continue;case a.cg:if(!h)continue;h==="l"?K.X=M():ON(K,m,l);continue;case a.Sm:h==="."?K.X=a.T2:ON(K,m,l);continue;case a.T2:if("0123456789.eE+-".indexOf(h)!==-1)continue;else l--,K.U--,K.X= +M();continue;default:ON(K,m,l)}}} +function M(){var h=q.pop();return h!=null?h:a.Sx} +function k(h){K.S>1||(h||(h=x===-1?K.Z+m.substring(X,l):m.substring(x,l)),K.Y?K.C.push(h):K.C.push(JSON.parse(h)),x=l)} +for(var K=this,q=K.AR,S=K.S9,a=htb,v=m.length,X=0,x=-1,l=0;l0?(R=K.C,K.C=[],R):null}return null};J3.prototype.isInputValid=function(){return this.L===null}; +J3.prototype.H_=function(){return this.L}; +J3.prototype.TN=function(){return!1}; +J3.prototype.parse=function(m){function e(a){K.S=6;K.L="The stream is broken @"+K.X+"/"+q+". Error: "+a+". With input:\n";throw Error(K.L);} +function Z(){K.U=new jn({Ka:!0,HF:!0})} +function M(a){if(a)for(var v=0;v1)&&e("extra status: "+a);K.C=!0;var v={};v[2]=a[0];K.Z.push(v)}} +for(var K=this,q=0;q0?(m=K.Z,K.Z=[],m):null};Vc.prototype.getStatus=function(){return this.L}; +Vc.prototype.Y=function(m){m=m.target;try{if(m==this.X)a:{var e=PS(this.X),Z=this.X.U,M=this.X.getStatus(),k=Z4(this.X);m=[];if(Me(this.X)instanceof Array){var K=Me(this.X);K.length>0&&K[0]instanceof Uint8Array&&(this.K=!0,m=K)}if(!(e<3||e==3&&!k&&m.length==0))if(M=M==200||M==206,e==4&&(Z==8?W1(this,7):Z==7?W1(this,8):M||W1(this,3)),this.S||(this.S=gRK(this.X),this.S==null&&W1(this,5)),this.L>2)zN(this);else{if(m.length>this.U){var q=m.length;Z=[];try{if(this.S.TN())for(var S=0;Sthis.U){S=k.slice(this.U);this.U=k.length;try{var v=this.S.parse(S);v!=null&&this.Z&&this.Z(v)}catch(X){W1(this,5);zN(this);break a}}e==4?(k.length!=0||this.K?W1(this,2):W1(this,4), +zN(this)):W1(this,1)}}}catch(X){W1(this,6),zN(this)}};g.p=P1.prototype;g.p.uK=function(m,e){var Z=this.S[m];Z||(Z=[],this.S[m]=Z);Z.push(e);return this}; +g.p.addListener=function(m,e){this.uK(m,e);return this}; +g.p.removeListener=function(m,e){var Z=this.S[m];Z&&g.wX(Z,e);(m=this.X[m])&&g.wX(m,e);return this}; +g.p.once=function(m,e){var Z=this.X[m];Z||(Z=[],this.X[m]=Z);Z.push(e);return this}; +g.p.n8=function(m){var e=this.S.data;e&&mS(m,e);(e=this.X.data)&&mS(m,e);this.X.data=[]}; +g.p.oT=function(){switch(this.U.getStatus()){case 1:eO(this,"readable");break;case 5:case 6:case 4:case 7:case 3:eO(this,"error");break;case 8:eO(this,"close");break;case 2:eO(this,"end")}};Zq.prototype.serverStreaming=function(m,e,Z,M){var k=this,K=m.substring(0,m.length-M.name.length);return Mn(function(q){var S=q.CK,a=q.getMetadata(),v=kC(k,!1);a=Kp(k,a,v,K+S.getName());var X=qn(v,S.S,!0);q=S.X(q.qj);v.send(a,"POST",q);return X},this.Z).call(this,M.j(e,Z))};pp.prototype.create=function(m,e){return fk(this.X,this.S+"/$rpc/google.internal.waa.v1.Waa/Create",m,e||{},XYK)};var T_t=1,u2=new WeakMap;g.T(SO,g.Y);SO.prototype.signal=function(){var m=new vN(!1);this.signals.add(m);g.U(this,m);return m}; +SO.prototype.vZ=function(m){return aa(this,m).vZ()}; +g.T(vN,g.Y);g.p=vN.prototype;g.p.hg=function(){var m=this,e=T_t++;gg(function(){lpG(m,e)}); +return e}; +g.p.detach=function(m){var e=this;gg(function(){var Z=e.slots.get(m);Z&&Z.nj()})}; +g.p.value=function(m){return this.promise(!0,m)}; +g.p.vZ=function(){return this.Nd}; +g.p.next=function(m){return this.promise(!1,m)}; +g.p.promise=function(m,e){var Z=this,M=R91();gg(function(){if(Z.MU())M.reject(new g.XV("Signal initially disposed"));else if(e&&e.MU())M.reject(new g.XV("Owner initially disposed"));else if(m&&Z.MG&&Z.DP)M.resolve(Z.Nd);else if(Z.eH.add(M),g.ea(M.promise,function(){Z.eH.delete(M)}),e){var k=function(){M.reject(new g.XV("Owner asynchronously disposed"))}; +g.ea(M.promise,function(){var K=u2.get(e);K&&g.wX(K,k)}); +Rrb(e,k)}}); +return M.promise}; +g.p.LB=function(){var m=this;g.Y.prototype.LB.call(this);gg(function(){for(var e=g.r(m.slots.values()),Z=e.next();!Z.done;Z=e.next())Z=Z.value.nj,Z();m.slots.clear();e=g.r(m.eH);for(Z=e.next();!Z.done;Z=e.next())Z.value.reject(new g.XV("Signal asynchronously disposed"));m.eH.clear()})}; +var i2=[],xC=!1;g.T(Ra,g.Y);Ra.prototype.start=function(){var m=this;if(this.MU())throw new Tt("Cannot start a disposed timer.");if(!this.C){this.Z=0;if(this.j){var e=Date.now();this.handle=setInterval(function(){m.Z=m.milliseconds>0?Math.trunc((Date.now()-e)/m.milliseconds):m.Z+1;var Z;(Z=m.S)==null||Z.resolve();m.S=void 0;if(m.U){var M;(M=m.X)!=null&&XQ(aa(M,m.U),m)}m.z$.qD(m)},this.milliseconds)}else this.handle=setTimeout(function(){m.state=3; +m.handle=void 0;m.Z=1;var Z;(Z=m.S)==null||Z.resolve();m.S=void 0;if(m.U){var M;(M=m.X)!=null&&XQ(aa(M,m.U),m)}m.z$.qD(m)},this.milliseconds); +this.state=1}}; +Ra.prototype.cancel=function(){if(this.C){this.clear();this.state=2;var m;(m=this.S)==null||m.reject(new hQ);var e;(e=this.z$.yb)==null||e.call(this);if(this.L){var Z;(Z=this.X)!=null&&XQ(aa(Z,this.L))}}}; +Ra.prototype.LB=function(){this.clear();var m;(m=this.S)==null||m.reject(new Tt);this.state=4;g.Y.prototype.LB.call(this)}; +Ra.prototype.clear=function(){this.j?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.S3.Object.defineProperties(Ra.prototype,{C:{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.Z}}, +N:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.S!=null||(this.S=new g.TF),this.S.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new hQ("Timer has been cancelled."));case 4:return Promise.reject(new Tt("Timer has been disposed."));default:g.Ld(this.state)}}}, +qD:{configurable:!0,enumerable:!0,get:function(){if(this.MU())throw new Tt("Cannot attach a signal to a disposed timer.");this.U||(this.X!=null||(this.X=new SO(this)),this.U=this.X.signal());return this.U}}, +yb:{configurable:!0,enumerable:!0,get:function(){if(this.MU())throw new Tt("Cannot attach a signal to a disposed timer.");this.L||(this.X!=null||(this.X=new SO(this)),this.L=this.X.signal());return this.L}}}); +g.T(hQ,g.E2);g.T(Tt,g.E2);g.T(FQ,Mb);g.p=FQ.prototype;g.p.isReady=function(){return!!this.X}; +g.p.ready=function(){var m=this;return g.Qs(function(e){return g.A(e,m.U.promise,0)})}; +g.p.OW=function(m){return np(this,this.logger.An("c",m===void 0?1:m,this.eU.OW(cb().X,null)),new wW(10,"JVZ:Timeout"))}; +g.p.prefetch=function(){this.state===1&&(this.BY=this.OW())}; +g.p.start=function(){if(this.state===1){this.state=2;var m=new qe(this.logger,"r");this.ready().finally(function(){return void m.done()}); +Fzc(this)}}; +g.p.e8=function(m){cN(this,m);return KH(this,$C(m),!1)}; +g.p.Gc=function(m){cN(this,m);return KH(this,$C(m),!0)};g.T(AQ,g.Y);AQ.prototype.V3=function(m){this.wpc.c(m)}; +AQ.prototype.e8=function(m){return this.wpc.m(Ia(m))}; +AQ.prototype.Gc=function(m){return this.wpc.mws(Ia(m))}; +g.T(Nn,g.Y);Nn.prototype.snapshot=function(m){return this.PV.s(Object.assign({},m.aU&&{c:m.aU},m.z0&&{s:m.z0},m.KZ!==void 0&&{p:m.KZ}))}; +Nn.prototype.WB=function(m){this.PV.e(m)}; +Nn.prototype.T0=function(){return this.PV.l()};g.z4=document;g.PA=window;g.$Lt=g.yF(function(){var m=!1;try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}}); +g.Jb.addEventListener("test",null,e)}catch(Z){}return m});var Ipt={B$:"allow-forms",o3:"allow-modals",pz:"allow-orientation-lock",dF:"allow-pointer-lock",H$:"allow-popups",q3:"allow-popups-to-escape-sandbox",v$:"allow-presentation",nz:"allow-same-origin",TB:"allow-scripts",N3:"allow-top-navigation",J2:"allow-top-navigation-by-user-activation"},C7m=g.yF(function(){return A2c()});g.p=g.oa.prototype;g.p.clone=function(){return new g.oa(this.left,this.top,this.width,this.height)}; +g.p.contains=function(m){return m instanceof g.wk?m.x>=this.left&&m.x<=this.left+this.width&&m.y>=this.top&&m.y<=this.top+this.height:this.left<=m.left&&this.left+this.width>=m.left+m.width&&this.top<=m.top&&this.top+this.height>=m.top+m.height}; +g.p.getSize=function(){return new g.cF(this.width,this.height)}; +g.p.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.p.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.p.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.p.scale=function(m,e){e=typeof e==="number"?e:m;this.left*=m;this.width*=m;this.top*=e;this.height*=e;return this};var YC={};var Zdc=(new Date).getTime();var dss=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.T(V7,g.fW);V7.prototype.dispose=function(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.PE.f0(this.L);delete V7.instance}; +V7.prototype.UH=function(){return this.X}; +V7.prototype.TK=function(){var m=this;this.L=this.PE.T_(function(){var e;return g.Qs(function(Z){if(Z.X==1)return m.X?((e=window.navigator)==null?0:e.onLine)?Z.pB(3):g.A(Z,JQ(m),3):g.A(Z,JQ(m),3);m.TK();g.It(Z)})},3E4)};zt.prototype.set=function(m,e){e=e===void 0?!0:e;0<=m&&m<52&&Number.isInteger(m)&&this.data[m]!==e&&(this.data[m]=e,this.X=-1)}; +zt.prototype.get=function(m){return!!this.data[m]};g.aB(g.eD,g.Y);g.p=g.eD.prototype;g.p.vC=0;g.p.LB=function(){g.eD.VQ.LB.call(this);this.stop();delete this.X;delete this.S}; +g.p.start=function(m){this.stop();this.vC=g.hV(this.U,m!==void 0?m:this.e2)}; +g.p.stop=function(){this.isActive()&&g.Jb.clearTimeout(this.vC);this.vC=0}; +g.p.isActive=function(){return this.vC!=0}; +g.p.OX=function(){this.vC=0;this.X&&this.X.call(this.S)};g.Fjs=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Xd.prototype.next=function(){return wYy}; +var wYy={done:!0,value:void 0};Xd.prototype.bH=function(){return this};ix.prototype.bH=function(){return new xz(this.X())}; +ix.prototype[Symbol.iterator]=function(){return new lx(this.X())}; +ix.prototype.S=function(){return new lx(this.X())}; +g.T(xz,Xd);xz.prototype.next=function(){return this.X.next()}; +xz.prototype[Symbol.iterator]=function(){return new lx(this.X)}; +xz.prototype.S=function(){return new lx(this.X)}; +g.T(lx,ix);lx.prototype.next=function(){return this.U.next()};(function(){if(doK){var m=/Windows NT ([0-9.]+)/;return(m=m.exec(g.Vf()))?m[1]:"0"}return C9?(m=/1[0|1][_.][0-9_.]+/,(m=m.exec(g.Vf()))?m[0].replace(/_/g,"."):"10"):OC?(m=/Android\s+([^\);]+)(\)|;)/,(m=m.exec(g.Vf()))?m[1]:""):j6P||Dtt||Olm?(m=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(m=m.exec(g.Vf()))?m[1].replace(/_/g,"."):""):""})();var bq3=function(){if(pe)return ux(/Firefox\/([0-9.]+)/);if(g.qR||tR||jP)return UM;if(e4){if(g.aO()||g.vG()){var m=ux(/CriOS\/([0-9.]+)/);if(m)return m}return ux(/Chrome\/([0-9.]+)/)}if(g.PC&&!g.aO())return ux(/Version\/([0-9.]+)/);if(Gy||yA){if(m=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vf()))return m[1]+"."+m[2]}else if(epy)return(m=ux(/Android\s+([0-9.]+)/))?m:ux(/Version\/([0-9.]+)/);return""}();g.aB(h7,g.Y);g.p=h7.prototype;g.p.subscribe=function(m,e,Z){var M=this.S[m];M||(M=this.S[m]=[]);var k=this.C;this.X[k]=m;this.X[k+1]=e;this.X[k+2]=Z;this.C=k+3;M.push(k);return k}; +g.p.unsubscribe=function(m,e,Z){if(m=this.S[m]){var M=this.X;if(m=m.find(function(k){return M[k+1]==e&&M[k+2]==Z}))return this.eO(m)}return!1}; +g.p.eO=function(m){var e=this.X[m];if(e){var Z=this.S[e];this.Z!=0?(this.U.push(m),this.X[m+1]=function(){}):(Z&&g.wX(Z,m),delete this.X[m],delete this.X[m+1],delete this.X[m+2])}return!!e}; +g.p.Pv=function(m,e){var Z=this.S[m];if(Z){var M=Array(arguments.length-1),k=arguments.length,K;for(K=1;K0&&this.Z==0)for(;Z=this.U.pop();)this.eO(Z)}}return K!=0}return!1}; +g.p.clear=function(m){if(m){var e=this.S[m];e&&(e.forEach(this.eO,this),delete this.S[m])}else this.X.length=0,this.S={}}; +g.p.LB=function(){h7.VQ.LB.call(this);this.clear();this.U.length=0};g.Tc.prototype.set=function(m,e){e===void 0?this.X.remove(m):this.X.set(m,u$(e))}; +g.Tc.prototype.get=function(m){try{var e=this.X.get(m)}catch(Z){return}if(e!==null)try{return JSON.parse(e)}catch(Z){throw"Storage: Invalid value was encountered";}}; +g.Tc.prototype.remove=function(m){this.X.remove(m)};g.aB(fQ,g.Tc);fQ.prototype.set=function(m,e){fQ.VQ.set.call(this,m,Yz(e))}; +fQ.prototype.S=function(m){m=fQ.VQ.get.call(this,m);if(m===void 0||m instanceof Object)return m;throw"Storage: Invalid value was encountered";}; +fQ.prototype.get=function(m){if(m=this.S(m)){if(m=m.data,m===void 0)throw"Storage: Invalid value was encountered";}else m=void 0;return m};g.aB(U6,fQ);U6.prototype.set=function(m,e,Z){if(e=Yz(e)){if(Z){if(Zg.Sq())U6.prototype.remove.call(this,m);else return e}};g.aB(bx,U6);g.aB(t7,QOP);t7.prototype[Symbol.iterator]=function(){return UsI(this.bH(!0)).S()}; +t7.prototype.clear=function(){var m=Array.from(this);m=g.r(m);for(var e=m.next();!e.done;e=m.next())this.remove(e.value)};g.aB(QY,t7);g.p=QY.prototype;g.p.isAvailable=function(){var m=this.X;if(m)try{m.setItem("__sak","1");m.removeItem("__sak");var e=!0}catch(Z){e=Z instanceof DOMException&&(Z.name==="QuotaExceededError"||Z.code===22||Z.code===1014||Z.name==="NS_ERROR_DOM_QUOTA_REACHED")&&m&&m.length!==0}else e=!1;return this.S=e}; +g.p.set=function(m,e){HR(this);try{this.X.setItem(m,e)}catch(Z){if(this.X.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}}; +g.p.get=function(m){HR(this);m=this.X.getItem(m);if(typeof m!=="string"&&m!==null)throw"Storage mechanism: Invalid value was encountered";return m}; +g.p.remove=function(m){HR(this);this.X.removeItem(m)}; +g.p.bH=function(m){HR(this);var e=0,Z=this.X,M=new Xd;M.next=function(){if(e>=Z.length)return wYy;var k=Z.key(e++);if(m)return{value:k,done:!1};k=Z.getItem(k);if(typeof k!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:k,done:!1}}; +return M}; +g.p.clear=function(){HR(this);this.X.clear()}; +g.p.key=function(m){HR(this);return this.X.key(m)};g.aB(DZ,QY);g.aB(LQ,QY);g.aB(s6,t7);s6.prototype.set=function(m,e){this.S.set(this.X+m,e)}; +s6.prototype.get=function(m){return this.S.get(this.X+m)}; +s6.prototype.remove=function(m){this.S.remove(this.X+m)}; +s6.prototype.bH=function(m){var e=this.S[Symbol.iterator](),Z=this,M=new Xd;M.next=function(){var k=e.next();if(k.done)return k;for(k=k.value;k.slice(0,Z.X.length)!=Z.X;){k=e.next();if(k.done)return k;k=k.value}return{value:m?k.slice(Z.X.length):Z.S.get(k),done:!1}}; +return M};yY.prototype.getValue=function(){return this.S}; +yY.prototype.clone=function(){return new yY(this.X,this.S)};g.p=jD.prototype;g.p.n1=function(m,e){var Z=this.X;Z.push(new yY(m,e));m=Z.length-1;e=this.X;for(Z=e[m];m>0;){var M=m-1>>1;if(e[M].X>Z.X)e[m]=e[M],m=M;else break}e[m]=Z}; +g.p.remove=function(){var m=this.X,e=m.length,Z=m[0];if(!(e<=0)){if(e==1)m.length=0;else{m[0]=m.pop();m=0;e=this.X;for(var M=e.length,k=e[m];m>1;){var K=m*2+1,q=m*2+2;K=qk.X)break;e[m]=e[K];m=K}e[m]=k}return Z.getValue()}}; +g.p.jf=function(){for(var m=this.X,e=[],Z=m.length,M=0;M>>16&65535|0;for(var K;Z!==0;){K=Z>2E3?2E3:Z;Z-=K;do k=k+e[M++]|0,m=m+k|0;while(--K);k%=65521;m%=65521}return k|m<<16|0};for(var BM={},PX,IT1=[],mU=0;mU<256;mU++){PX=mU;for(var AMP=0;AMP<8;AMP++)PX=PX&1?3988292384^PX>>>1:PX>>>1;IT1[mU]=PX}BM=function(m,e,Z,M){Z=M+Z;for(m^=-1;M>>8^IT1[(m^e[M])&255];return m^-1};var Fm={};Fm={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 gJ=[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],xL=[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],y2K=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],NB=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rJ=Array(576);WR(rJ);var II=Array(60);WR(II);var iV=Array(512);WR(iV);var vM=Array(256);WR(vM);var Xm=Array(29);WR(Xm);var lV=Array(30);WR(lV);var Lh,sh,GW,Dc=!1;var th;th=[new bV(0,0,0,0,function(m,e){var Z=65535;for(Z>m.LV-5&&(Z=m.LV-5);;){if(m.sZ<=1){Eh(m);if(m.sZ===0&&e===0)return 1;if(m.sZ===0)break}m.YG+=m.sZ;m.sZ=0;var M=m.RF+Z;if(m.YG===0||m.YG>=M)if(m.sZ=m.YG-M,m.YG=M,Ah(m,!1),m.dV.Dm===0)return 1;if(m.YG-m.RF>=m.vI-262&&(Ah(m,!1),m.dV.Dm===0))return 1}m.n1=0;if(e===4)return Ah(m,!0),m.dV.Dm===0?3:4;m.YG>m.RF&&Ah(m,!1);return 1}), +new bV(4,4,8,4,YL),new bV(4,5,16,8,YL),new bV(4,6,32,32,YL),new bV(4,4,16,16,Uh),new bV(8,16,32,32,Uh),new bV(8,16,128,128,Uh),new bV(8,32,128,256,Uh),new bV(32,128,258,1024,Uh),new bV(32,258,258,4096,Uh)];var HM={};HM=function(){this.input=null;this.ix=this.xF=this.jV=0;this.output=null;this.Mc=this.Dm=this.f2=0;this.msg="";this.state=null;this.nk=2;this.Ii=0};var jh=Object.prototype.toString; +Qt.prototype.push=function(m,e){var Z=this.dV,M=this.options.chunkSize;if(this.ended)return!1;var k=e===~~e?e:e===!0?4:0;typeof m==="string"?Z.input=VY(m):jh.call(m)==="[object ArrayBuffer]"?Z.input=new Uint8Array(m):Z.input=m;Z.jV=0;Z.xF=Z.input.length;do{Z.Dm===0&&(Z.output=new J7.gR(M),Z.f2=0,Z.Dm=M);m=Gim(Z,k);if(m!==1&&m!==0)return this.Vu(m),this.ended=!0,!1;if(Z.Dm===0||Z.xF===0&&(k===4||k===2))if(this.options.Ao==="string"){var K=J7.aL(Z.output,Z.f2);e=K;K=K.length;if(K<65537&&(e.subarray&& +rMk||!e.subarray))e=String.fromCharCode.apply(null,J7.aL(e,K));else{for(var q="",S=0;S0||Z.Dm===0)&&m!==1);if(k===4)return(Z=this.dV)&&Z.state?(M=Z.state.status,M!==42&&M!==69&&M!==73&&M!==91&&M!==103&&M!==113&&M!==666?m=wJ(Z,-2):(Z.state=null,m=M===113?wJ(Z,-3):0)):m=-2,this.Vu(m),this.ended=!0,m===0;k===2&&(this.Vu(0),Z.Dm=0);return!0}; +Qt.prototype.Vu=function(m){m===0&&(this.result=this.options.Ao==="string"?this.chunks.join(""):J7.Xv(this.chunks));this.chunks=[];this.err=m;this.msg=this.dV.msg};var WM="@@redux/INIT"+Vt(),J2R="@@redux/REPLACE"+Vt();var PM=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Cob=[0,js,-3,JT];g.T(KE,g.Js);KE.prototype.getType=function(){return NH(this,11)};var YYc=function(){var m=[0,Mct,O5,G4,js,G4,-1,JT,js,JT,-1,Mct,JT,O5,ZVb,Cob,G4,-1,JT];return function(e,Z){if(s5.length){var M=s5.pop();LG(M,Z);M.X.init(e,void 0,void 0,Z);e=M}else e=new s4(e,Z);try{var k=new KE,K=k.RO;gr(m)(K,e);var q=k}finally{e.free()}return q}}();var V7I=1703436965;g.Pj=new g.pE("adSlotRenderer");var GX3=new g.pE("rawColdConfigGroup");var sp3=new g.pE("rawHotConfigGroup");g.eT=new g.pE("commandExecutorCommand");g.T(SS,g.Js);var kWk={ag:0,Sj:1,Ml:32,FE:61,VK:67,wI:86,Wc:42,bf:60,rI:62,QK:73,I2:76,ej:88,GZ:90,Bc:99,lf:98,yK:100,jj:102,o2:41,dI:69,Hc:70,ql:71,r_:2,Uc:27,ANDROID:3,Dl:54,uq:14,PL:91,zB:55,R3:24,fz:20,Kz:18,iq:21,rD:30,Zh:29,gD:28,iI:101,lA:34,Sz:36,Oo:38,IOS:5,AB:15,IA:92,Z6:40,lQ:25,L_:17,WA:19,M$:64,sz:66,bQ:26,QG:22,FH:33,Ez:68,wL:35,C_:53,jd:37,gL:39,V0:7,Bm:57,pM:43,Hm:59,dg:93,Ai:74,qE:75,kz:85,nM:65,NE:80,Jr:8,Gi:10,DK:58,xz:63,Ti:72,UF:23,TZ:11,Nl:13,kO:12,y0:16,La:56,Eh:31,hQ:77,qx:84,Ca:87,nS:89, +vj:94,zC:95};g.T(a8,g.Js);a8.prototype.U=function(m){As(this,5,m)};g.T(vA,g.Js);g.T(gi,g.Js);g.T(X1,g.Js);X1.prototype.getPlayerType=function(){return NH(this,36)}; +X1.prototype.setHomeGroupInfo=function(m){return lC(this,gi,81,m)}; +X1.prototype.clearLocationPlayabilityToken=function(){return Df(this,89)};g.T(iw,g.Js);iw.prototype.getValue=function(){return cr(this,S5(this,a1)===2?2:-1)}; +var a1=[2,3,4,5,6];g.T(xA,g.Js);xA.prototype.setTrackingParams=function(m){return Df(this,1,$3(m,!1))};g.T(lw,g.Js);g.T(uw,g.Js);g.T(R8,g.Js);R8.prototype.setToken=function(m){return As(this,2,m)};g.T(hW,g.Js);hW.prototype.setSafetyMode=function(m){return fG(this,5,m)};g.T(TD,g.Js);TD.prototype.F0=function(m){return lC(this,X1,1,m)};g.fT1=new g.pE("openPopupAction");var o7K=new g.pE("webCommandMetadata");var EAt=new g.pE("metadataBadgeRenderer");var GIt=new g.pE("innertubeCommand");var l1G={l5:"EMBEDDED_PLAYER_MODE_UNKNOWN",Z1:"EMBEDDED_PLAYER_MODE_DEFAULT",g9:"EMBEDDED_PLAYER_MODE_PFP",mA:"EMBEDDED_PLAYER_MODE_PFL"};var qCc=new g.pE("channelThumbnailEndpoint");var Kkb=new g.pE("embeddedPlayerErrorMessageRenderer");var ebc=new g.pE("embeddedPlayerOverlayVideoDetailsRenderer"),pO7=new g.pE("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),SC3=new g.pE("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var oA1=new g.pE("embedsInfoPanelRenderer");var dLb=new g.pE("interactionLoggingCommandMetadata");var zDy={gI:"WEB_DISPLAY_MODE_UNKNOWN",Uh:"WEB_DISPLAY_MODE_BROWSER",ZJ:"WEB_DISPLAY_MODE_MINIMAL_UI",m4:"WEB_DISPLAY_MODE_STANDALONE",A4:"WEB_DISPLAY_MODE_FULLSCREEN"};g.T($A,g.Js);$A.prototype.getPlayerType=function(){return NH(this,7)}; +$A.prototype.fE=function(){return cr(this,19)}; +$A.prototype.setVideoId=function(m){return As(this,19,m)};g.T(F1,g.Js);g.T(wi,g.Js);g.T(nE,g.Js); +var B_t=[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];g.T(cA,g.Js);g.T(Nh,g.Js);Nh.prototype.fE=function(){return F4(this,S5(this,Ww)===1?1:-1)}; +Nh.prototype.setVideoId=function(m){return pG(this,1,Ww,p7(m))}; +Nh.prototype.getPlaylistId=function(){return F4(this,S5(this,Ww)===2?2:-1)}; +var Ww=[1,2];g.T(ri,g.Js);var bEk=new g.pE("changeKeyedMarkersVisibilityCommand");var tSG=new g.pE("loadMarkersCommand");var bcI=new g.pE("timelyActionViewModel");var UJ7=new g.pE("timelyActionsOverlayViewModel");var ZOk=new g.pE("musicEmbeddedPlayerOverlayVideoDetailsRenderer");g.xO=new g.pE("urlEndpoint");g.iJ=new g.pE("watchEndpoint");var E7t=new g.pE("watchPlaylistEndpoint");var gBc=new g.pE("compositeVideoOverlayRenderer");var PwP=new g.pE("paidContentOverlayRenderer");var $hK=new g.pE("playerMutedAutoplayOverlayRenderer"),Fh7=new g.pE("playerMutedAutoplayEndScreenRenderer");var sIm=new g.pE("unserializedPlayerResponse"),wA7=new g.pE("unserializedPlayerResponse");g.Zd=new g.pE("buttonRenderer");g.M1=new g.pE("toggleButtonRenderer");var Yqs=new g.pE("resolveUrlCommandMetadata");var awI=new g.pE("subscribeButtonRenderer");var qhI={N$:"LIVING_ROOM_APP_MODE_UNSPECIFIED",kX:"LIVING_ROOM_APP_MODE_MAIN",vA:"LIVING_ROOM_APP_MODE_KIDS",n_:"LIVING_ROOM_APP_MODE_MUSIC",TC:"LIVING_ROOM_APP_MODE_UNPLUGGED",q$:"LIVING_ROOM_APP_MODE_GAMING"};var Cw3=new g.pE("autoplaySwitchButtonRenderer");var dhy=new g.pE("desktopOverlayConfigRenderer");var YLs=new g.pE("watchToWatchTransitionRenderer");var MCK=new g.pE("playlistPanelRenderer");var vKK=new g.pE("cipher");var GWK=new g.pE("playerVars");var nAP=new g.pE("playerVars");var kJ=g.Jb.window,ULG,bV7,AW=(kJ==null?void 0:(ULG=kJ.yt)==null?void 0:ULG.config_)||(kJ==null?void 0:(bV7=kJ.ytcfg)==null?void 0:bV7.data_)||{};g.Wy("yt.config_",AW);var di=[];var eN1=/^[\w.]*$/,ma3={q:!0,search_query:!0},P7R=String(bw);g.WA=new function(){var m=window.document;this.X=window;this.S=m}; +g.Wy("yt.ads_.signals_.getAdSignalsString",function(m){return g.tW(g.mk(m))});g.Sq();var eC="XMLHttpRequest"in g.Jb?function(){return new XMLHttpRequest}:null;var tcb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.Rt(tcb);var iN={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"},qUP="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.Rt(tcb)),Ty=!1,kms=xl,SUt=Xu;g.T(g.Fu,g.E2);cO.prototype.then=function(m,e,Z){return this.X?this.X.then(m,e,Z):this.U===1&&m?(m=m.call(Z,this.S))&&typeof m.then==="function"?m:g.rh(m):this.U===2&&e?(m=e.call(Z,this.S))&&typeof m.then==="function"?m:g.NC(m):this}; +cO.prototype.getValue=function(){return this.S}; +cO.prototype.$goog_Thenable=!0;var Iy=!1;g.bE=Gy||yA;var xab=/^([0-9\.]+):([0-9\.]+)$/;var LIt=g.$G(["data-"]),dn={};var QDI=0,Bl=g.Uo?"webkit":g.b2?"moz":g.qR?"ms":jP?"o":"",HVP=g.zK("ytDomDomGetNextId")||function(){return++QDI}; +g.Wy("ytDomDomGetNextId",HVP);var hN1={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};DN.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +DN.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +DN.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};g.sa=g.Jb.ytEventsEventsListeners||{};g.Wy("ytEventsEventsListeners",g.sa);var Go=g.Jb.ytEventsEventsCounter||{count:0};g.Wy("ytEventsEventsCounter",Go);var Pl=g.yF(function(){var m=!1;try{var e=Object.defineProperty({},"passive",{get:function(){m=!0}}); +window.addEventListener("test",null,e)}catch(Z){}return m}),yo=g.yF(function(){var m=!1; +try{var e=Object.defineProperty({},"capture",{get:function(){m=!0}}); +window.addEventListener("test",null,e)}catch(Z){}return m});var K2;K2=window;g.G=K2.ytcsi&&K2.ytcsi.now?K2.ytcsi.now:K2.performance&&K2.performance.timing&&K2.performance.now&&K2.performance.timing.navigationStart?function(){return K2.performance.timing.navigationStart+K2.performance.now()}:function(){return(new Date).getTime()};g.aB(Vo,g.Y);Vo.prototype.K=function(m){m.X===void 0&&LA(m);var e=m.X;m.S===void 0&&LA(m);this.X=new g.wk(e,m.S)}; +Vo.prototype.uC=function(){return this.X||new g.wk}; +Vo.prototype.Y=function(){if(this.X){var m=(0,g.G)();if(this.Z!=0){var e=this.C,Z=this.X,M=e.x-Z.x;e=e.y-Z.y;M=Math.sqrt(M*M+e*e)/(m-this.Z);this.S[this.U]=Math.abs((M-this.L)/this.L)>.5?1:0;for(Z=e=0;Z<4;Z++)e+=this.S[Z]||0;e>=3&&this.j();this.L=M}this.Z=m;this.C=this.X;this.U=(this.U+1)%4}}; +Vo.prototype.LB=function(){qC(this.N);g.Oa(this.AR)};g.T(g.Wl,g.Y);g.Wl.prototype.ZG=function(m,e,Z,M,k){Z=EL((0,g.qd)(Z,M||this.C));Z={target:m,name:e,callback:Z};var K;k&&Pl()&&(K={passive:!0});m.addEventListener(e,Z.callback,K);this.U.push(Z);return Z}; +g.Wl.prototype.gy=function(m){for(var e=0;e=L.eC)||N.X.version>=Q||N.X.objectStoreNames.contains(b)||C.push(b)}a=C;if(a.length===0){w.pB(5);break}v=Object.keys(Z.options.Qq);X= +S.objectStoreNames();if(Z.LZ.options.version+1)throw l.close(),Z.U=!1,dj(Z,R);return w.return(l);case 8:throw e(),x instanceof Error&&!g.SC("ytidb_async_stack_killswitch")&& +(x.stack=x.stack+"\n"+q.substring(q.indexOf("\n")+1)),m3(x,Z.name,"",(h=Z.options.version)!=null?h:-1);}})} +function e(){Z.X===M&&(Z.X=void 0)} +var Z=this;if(!this.U)throw dj(this);if(this.X)return this.X;var M,k={blocking:function(K){K.close()}, +closed:e,N6:e,upgrade:this.options.upgrade};return this.X=M=m()};var EY=new oe("YtIdbMeta",{Qq:{databases:{eC:1}},upgrade:function(m,e){e(1)&&iE(m,"databases",{keyPath:"actualName"})}});var HV,QO=new function(){}(new function(){});new g.TF;g.T(JR,oe);JR.prototype.S=function(m,e,Z){Z=Z===void 0?{}:Z;return(this.options.shared?XoK:J8s)(m,e,Object.assign({},Z))}; +JR.prototype.delete=function(m){m=m===void 0?{}:m;return(this.options.shared?OY:iom)(this.name,m)};var vP={},ycG=VO("ytGcfConfig",{Qq:(vP.coldConfigStore={eC:1},vP.hotConfigStore={eC:1},vP),shared:!1,upgrade:function(m,e){e(1)&&(FA(iE(m,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),FA(iE(m,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.T(MN,g.Y);MN.prototype.LB=function(){for(var m=g.r(this.S),e=m.next();!e.done;e=m.next()){var Z=this.X;e=Z.indexOf(e.value);e>=0&&Z.splice(e,1)}this.S.length=0;g.Y.prototype.LB.call(this)};kU.prototype.U=function(m){this.hotHashData=m;g.Wy("yt.gcf.config.hotHashData",this.hotHashData||null)};var DLK=typeof TextEncoder!=="undefined"?new TextEncoder:null,Wa=DLK?function(m){return DLK.encode(m)}:function(m){m=Qf(m); +for(var e=new Uint8Array(m.length),Z=0;Z-1&&m.plugins.splice(e,1)})}; +g.p.transition=function(m,e){var Z=this;RV&&gL(this.state);var M=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(q){return q===Z.state&&K.Ao===m}):K.from===Z.state&&K.Ao===m}); +if(M){this.S&&(fQK(this.S),this.S=void 0);BkR(this,m,e);this.state=m;RV&&cn(this.state);M=M.action.bind(this);var k=this.plugins.filter(function(K){return K[m]}).map(function(K){return K[m]}); +M(ouG(this,k),e)}else throw Error("no transition specified from "+this.state+" to "+m);}; +g.p.RI=function(m){var e=g.Hy.apply(1,arguments);g.BC();for(var Z=g.r(m),M=Z.next(),k={};!M.done;k={XN:void 0},M=Z.next())k.XN=M.value,od(function(K){return function(){$b(K.XN.name);wL(function(){return K.XN.callback.apply(K.XN,g.Rt(e))}); +Fg(K.XN.name)}}(k))}; +g.p.zs=function(m){var e=g.Hy.apply(1,arguments),Z,M,k,K;return g.Qs(function(q){q.X==1&&(g.BC(),Z=g.r(m),M=Z.next(),k={});if(q.X!=3){if(M.done)return q.pB(0);k.bY=M.value;k.zN=void 0;K=function(S){return function(){$b(S.bY.name);var a=wL(function(){return S.bY.callback.apply(S.bY,g.Rt(e))}); +KR(a)?S.zN=g.SC("web_lifecycle_error_handling_killswitch")?a.then(function(){Fg(S.bY.name)}):a.then(function(){Fg(S.bY.name)},function(v){xb(v); +Fg(S.bY.name)}):Fg(S.bY.name)}}(k); +od(K);return k.zN?g.A(q,k.zN,3):q.pB(3)}k={bY:void 0,zN:void 0};M=Z.next();return q.pB(2)})}; +g.p.hO=function(m){var e=g.Hy.apply(1,arguments),Z=this,M=m.map(function(k){return{Qx:function(){$b(k.name);wL(function(){return k.callback.apply(k,g.Rt(e))}); +Fg(k.name)}, +priority:Tz(Z,k)}}); +M.length&&(this.S=new u4(M))}; +g.S3.Object.defineProperties(hY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var cw;g.T(nT,hY);nT.prototype.L=function(m,e){var Z=this;this.X=g.fr(0,function(){Z.currentState==="application_navigating"&&Z.transition("none")},5E3); +m(e==null?void 0:e.event)}; +nT.prototype.C=function(m,e){this.X&&(WN.f0(this.X),this.X=null);m(e==null?void 0:e.event)};var i9=[];g.Wy("yt.logging.transport.getScrapedGelPayloads",function(){return i9});rL.prototype.storePayload=function(m,e){m=IV(m);this.store[m]?this.store[m].push(e):(this.X={},this.store[m]=[e]);g.SC("more_accurate_gel_parser")&&(e=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(e));return m}; +rL.prototype.smartExtractMatchingEntries=function(m){if(!m.keys.length)return[];for(var e=CT(this,m.keys.splice(0,1)[0]),Z=[],M=0;M=k.length?(e.append(k),m-=k.length):m?(e.append(new Uint8Array(k.buffer,k.byteOffset,m)),Z.append(new Uint8Array(k.buffer,k.byteOffset+m,k.length-m)),m=0):Z.append(k);return{ys:e,Gg:Z}}; +g.p.isFocused=function(m){return m>=this.jR&&m=64&&(this.C.set(m.subarray(0,64-this.S),this.S),e=64-this.S,this.S=0,FtK(this,this.C,0));for(;e+64<=Z;e+=64)FtK(this,m,e);e=0;var oN7=window;var n2;var vvb=g.Vf(),gvR=vvb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!gvR||gvR.length<2)n2=void 0;else{var cP=vvb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);n2=cP&&cP.length===6?Number(cP[5].replace("_",".")):0}var kO=n2,Ez=kO>=0;var Iz;g.r5=new zp;Iz=0;var Aw={m8:function(m,e){m.splice(0,e)}, +t2:function(m,e){var Z=m[0];m[0]=m[e%m.length];m[e%m.length]=Z}, +Zy:function(m){m.reverse()}};var ZE={JB:1,xX:2,D6:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var PN3=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),XSK=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"), +mcc=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),TDk=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"), +RVI=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),xYK=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"), +eB1=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),ltK=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),iac=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"), +PxI=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)");var xGs=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var hX=cVc()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!tR?!0:!1;var mBK={c$:"adunit",OF:"detailpage",r9:"editpage",Ay:"embedded",p_:"leanback",Be:"previewpage",o5:"profilepage",uI:"unplugged",GG:"playlistoverview",ZK:"sponsorshipsoffer",Pm:"shortspage",Nx:"handlesclaiming",i5:"immersivelivepage",fm:"creatormusic",Yo:"immersivelivepreviewpage",F3:"admintoolyurt",Xc:"shortsaudiopivot"};var XJb=["h","H"],i83=["9","("],x4s=["9h","(h"],lFs=["8","*"],usI=["a","A"],RKR=["o","O"],hKc=["m","M"],TyR=["mac3","MAC3"],$47=["meac3","MEAC3"],N1={},gzm=(N1.h=XJb,N1.H=XJb,N1["9"]=i83,N1["("]=i83,N1["9h"]=x4s,N1["(h"]=x4s,N1["8"]=lFs,N1["*"]=lFs,N1.a=usI,N1.A=usI,N1.o=RKR,N1.O=RKR,N1.m=hKc,N1.M=hKc,N1.mac3=TyR,N1.MAC3=TyR,N1.meac3=$47,N1.MEAC3=$47,N1),FgK=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),VWP=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var rl={},Dv=(rl.auto=0,rl.tiny=144,rl.light=144,rl.small=240,rl.medium=360,rl.large=480,rl.hd720=720,rl.hd1080=1080,rl.hd1440=1440,rl.hd2160=2160,rl.hd2880=2880,rl.highres=4320,rl),vD={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var I$={},Jw=(I$.STOP_EVENT_PROPAGATION="html5-stop-propagation",I$.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",I$.IV_DRAWER_OPEN="ytp-iv-drawer-open",I$.MAIN_VIDEO="html5-main-video",I$.VIDEO_CONTAINER="html5-video-container",I$.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",I$.HOUSE_BRAND="house-brand",I$);var fty={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Yck={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},Ues={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"},UyK={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var xhK={XS:1,LS:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var Ao={},Yv=(Ao.FAIRPLAY="fairplay",Ao.PLAYREADY="playready",Ao.WIDEVINE="widevine",Ao.CLEARKEY=null,Ao.FLASHACCESS=null,Ao.UNKNOWN=null,Ao.WIDEVINE_CLASSIC=null,Ao);k2.prototype.getLanguageInfo=function(){return this.MB}; +k2.prototype.getXtags=function(){if(!this.xtags){var m=this.id.split(";");m.length>1&&(this.xtags=m[1])}return this.xtags}; +k2.prototype.toString=function(){return this.MB.name}; +k2.prototype.getLanguageInfo=k2.prototype.getLanguageInfo;Ky.prototype.isLocked=function(){return this.U&&!!this.S&&this.S===this.X}; +Ky.prototype.compose=function(m){if(m.U&&aL(m))return V5;if(m.U||aL(this))return m;if(this.U||aL(m))return this;var e=this.S&&m.S?Math.max(this.S,m.S):this.S||m.S,Z=this.X&&m.X?Math.min(this.X,m.X):this.X||m.X;e=Math.min(e,Z);var M=0;qM&&(M=this.JR!==0&&m.JR!==0?Math.min(this.JR,m.JR):this.JR===0?m.JR:this.JR);return qM&&e===this.S&&Z===this.X&&M===this.JR||!qM&&e===this.S&&Z===this.X?this:qM?new Ky(e,Z,!1,Z===this.X&&M===this.JR?this.reason:m.reason,M):new Ky(e,Z,!1,Z===this.X?this.reason:m.reason)}; +Ky.prototype.Z=function(m){return!m.video||qM&&this.JR!==0&&this.JR=0}; +g.p.tX=function(){var m=this.segments[this.segments.length-1];return m?m.endTime:NaN}; +g.p.Rs=function(){return this.segments[0].startTime}; +g.p.mp=function(){return this.segments.length}; +g.p.aW=function(){return 0}; +g.p.fd=function(m){return(m=this.KU(m))?m.Wv:-1}; +g.p.mj=function(m){return(m=this.tE(m))?m.sourceURL:""}; +g.p.getStartTime=function(m){return(m=this.tE(m))?m.startTime:0}; +g.p.Rp=function(m){return this.getStartTime(m)+this.getDuration(m)}; +g.p.lJ=Zk(2);g.p.isLoaded=function(){return this.segments.length>0}; +g.p.tE=function(m){if(this.X&&this.X.Wv===m)return this.X;m=g.fq(this.segments,new Eu(m,0,0,0,""),function(e,Z){return e.Wv-Z.Wv}); +return this.X=m>=0?this.segments[m]:null}; +g.p.KU=function(m){if(this.X&&this.X.startTime<=m&&m=0?this.segments[m]:this.segments[Math.max(0,-m-2)]}; +g.p.append=function(m){if(m.length)if(m=g.cG(m),this.segments.length){var e=this.segments.length?g.i7(this.segments).endTime:0,Z=m[0].Wv-this.ze();Z>1&&g.$R(this.segments);for(Z=Z>0?0:-Z+1;Zm.Wv&&this.index.a_()<=m.Wv+1}; +g.p.update=function(m,e,Z){this.index.append(m);gK1(this.index,Z);m=this.index;m.S=e;m.U="update"}; +g.p.Dx=function(){return this.BZ()?!0:AJ.prototype.Dx.call(this)}; +g.p.sb=function(m,e){var Z=this.index.mj(m),M=this.index.getStartTime(m),k=this.index.getDuration(m),K;e?k=K=0:K=this.info.JR>0?this.info.JR*k:1E3;return new DL([new Bd(3,this,void 0,"liveCreateRequestInfoForSegment",m,M,k,0,K,!e)],Z)}; +g.p.w0=function(){return this.BZ()?0:this.initRange.length}; +g.p.KH=function(){return!1};uo.prototype.update=function(m){var e=void 0;this.S&&(e=this.S);var Z=new uo,M=Array.from(m.getElementsByTagName("S"));if(M.length){var k=+x7(m,"timescale")||1,K=(+M[0].getAttribute("t")||0)/k,q=+x7(m,"startNumber")||0;Z.Z=K;var S=e?e.startSecs+e.C1:0,a=Date.parse(mnK(x7(m,"yt:segmentIngestTime")))/1E3;Z.L=m.parentElement.tagName==="SegmentTemplate";Z.L&&(Z.j=x7(m,"media"));m=e?q-e.Wv:1;Z.C=m>0?0:-m+1;m=g.r(M);for(M=m.next();!M.done;M=m.next()){M=M.value;for(var v=+M.getAttribute("d")/k,X=(+M.getAttribute("yt:sid")|| +0)/k,x=+M.getAttribute("r")||0,l=0;l<=x;l++)if(e&&q<=e.Wv)q++;else{var R=new zEK(q,S,v,a+X,K);Z.X.push(R);var h=M;var w=k,N=R.startSecs;R=h.getAttribute("yt:cuepointTimeOffset");var I=h.getAttribute("yt:cuepointDuration");if(R&&I){R=Number(R);N=-R/w+N;w=Number(I)/w;I=h.getAttribute("yt:cuepointContext")||null;var C=h.getAttribute("yt:cuepointIdentifier")||"";h=h.getAttribute("yt:cuepointEvent")||"";h=new g.yi(N,w,I,C,nvG[h]||"unknown",R)}else h=null;h&&Z.U.push(h);q++;S+=v;K+=v;a+=v+X}}Z.X.length&& +(Z.S=g.i7(Z.X))}this.C=Z.C;this.S=Z.S||this.S;g.Ns(this.X,Z.X);g.Ns(this.U,Z.U);this.L=Z.L;this.j=Z.j;this.Z===-1&&(this.Z=Z.getStreamTimeOffset())}; +uo.prototype.getStreamTimeOffset=function(){return this.Z===-1?0:this.Z};g.T(hM,g.Y2);g.p=hM.prototype;g.p.Cq=function(){return this.h5}; +g.p.OU=function(m,e){m=T$(this,m);return m>=0&&(e||!this.segments[m].pending)}; +g.p.a_=function(){return this.kQ?this.segments.length?this.KU(this.Rs()).Wv:-1:g.Y2.prototype.a_.call(this)}; +g.p.Rs=function(){if(this.QH)return 0;if(!this.kQ)return g.Y2.prototype.Rs.call(this);if(!this.segments.length)return 0;var m=Math.max(g.i7(this.segments).endTime-this.lK,0);return this.X5>0&&this.KU(m).Wv0)return this.OH/1E3;if(!this.segments.length)return g.Y2.prototype.tX.call(this);var m=this.ze();if(!this.kQ||m<=this.segments[this.segments.length-1].Wv)m=this.segments[this.segments.length-1];else{var e=this.segments[this.segments.length-1];m=new Eu(m,Math.max(0,e.startTime-(e.Wv-m)*this.h5),this.h5,0,"sq/"+m,void 0,void 0,!0)}return this.QH?Math.min(this.lK,m.endTime):m.endTime}; +g.p.mp=function(){return this.kQ?this.segments.length?this.ze()-this.a_()+1:0:g.Y2.prototype.mp.call(this)}; +g.p.ze=function(){var m=Math.min(this.xE,Math.max(g.Y2.prototype.ze.call(this),this.bU)),e=this.lK*1E3;e=this.OH>0&&this.OH0&&this.bU>0&&!e&&(e=this.KU(this.lK))&&(m=Math.min(e.Wv-1,m));return m}; +g.p.Vk=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.p.lz=function(m){var e=T$(this,m.Wv);if(e>=0)this.segments[e]=m;else if(this.segments.splice(-(e+1),0,m),this.xd&&m.Wv%(300/this.h5)===0){var Z=this.segments[0].Wv,M=Math.floor(this.xd/this.h5);m=m.Wv-M;e=-(e+1)-M;e>0&&m>Z&&(this.segments=this.segments.slice(e))}}; +g.p.KP=function(){return this.bU}; +g.p.uj=function(m){return RD?!this.S&&m>=0&&this.ze()<=m:g.Y2.prototype.uj.call(this,m)}; +g.p.KU=function(m){if(!this.kQ)return g.Y2.prototype.KU.call(this,m);if(!this.segments.length)return null;var e=this.segments[this.segments.length-1];if(m=e.endTime)e=e.Wv+Math.floor((m-e.endTime)/this.h5+1);else{e=oO(this.segments,function(M){return m=M.endTime?1:0}); +if(e>=0)return this.segments[e];var Z=-(e+1);e=this.segments[Z-1];Z=this.segments[Z];e=Math.floor((m-e.endTime)/((Z.startTime-e.endTime)/(Z.Wv-e.Wv-1))+1)+e.Wv}return this.tE(e)}; +g.p.tE=function(m){if(!this.kQ)return g.Y2.prototype.tE.call(this,m);if(!this.segments.length)return null;var e=T$(this,m);if(e>=0)return this.segments[e];var Z=-(e+1);e=this.h5;if(Z===0)var M=Math.max(0,this.segments[0].startTime-(this.segments[0].Wv-m)*e);else Z===this.segments.length?(M=this.segments[this.segments.length-1],M=M.endTime+(m-M.Wv-1)*e):(M=this.segments[Z-1],e=this.segments[Z],e=(e.startTime-M.endTime)/(e.Wv-M.Wv-1),M=M.endTime+(m-M.Wv-1)*e);return new Eu(m,M,e,0,"sq/"+m,void 0,void 0, +!0)}; +var RD=!1;g.T($7,io);g.p=$7.prototype;g.p.cZ=function(){return!0}; +g.p.Dx=function(){return!0}; +g.p.MY=function(m){return this.Y3()&&m.U&&!m.Z||!m.X.index.uj(m.Wv)}; +g.p.dQ=function(){}; +g.p.Ih=function(m,e){return typeof m!=="number"||isFinite(m)?io.prototype.Ih.call(this,m,e===void 0?!1:e):new DL([new Bd(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.gN,void 0,this.gN*this.info.JR)],"")}; +g.p.sb=function(m,e){var Z=Z===void 0?!1:Z;if(this.index.OU(m))return io.prototype.sb.call(this,m,e);var M=this.index.getStartTime(m),k=Math.round(this.gN*this.info.JR),K=this.gN;e&&(K=k=0);return new DL([new Bd(Z?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",m,M,K,void 0,k,!e)],m>=0?"sq/"+m:"")};g.T(FI,AJ);g.p=FI.prototype;g.p.PX=function(){return!1}; +g.p.Y3=function(){return!1}; +g.p.cZ=function(){return!1}; +g.p.dQ=function(){return new DL([new Bd(1,this,void 0,"otfInit")],this.Z)}; +g.p.lH=function(){return null}; +g.p.nA=function(m){this.MY(m);return SoI(this,bz(m),!1)}; +g.p.Ih=function(m,e){e=e===void 0?!1:e;m=this.index.fd(m);e&&(m=Math.min(this.index.ze(),m+1));return SoI(this,m,!0)}; +g.p.Nn=function(m){m.info.type===1&&(this.X||(this.X=MJ(m.X)),m.S&&m.S.uri==="http://youtube.com/streaming/otf/durations/112015"&&aqG(this,m.S))}; +g.p.MY=function(m){return m.U===0?!0:this.index.ze()>m.Wv&&this.index.a_()<=m.Wv+1}; +g.p.w0=function(){return 0}; +g.p.KH=function(){return!1};w_.prototype.W0=function(){return this.X.W0()};g.p=g.CV.prototype;g.p.OU=function(m){return m<=this.ze()}; +g.p.aW=function(m){return this.offsets[m]}; +g.p.getStartTime=function(m){return this.MO[m]/this.X}; +g.p.Rp=function(m){return this.getStartTime(m)+this.getDuration(m)}; +g.p.lJ=Zk(1);g.p.Zx=function(){return NaN}; +g.p.getDuration=function(m){m=this.mC(m);return m>=0?m/this.X:-1}; +g.p.mC=function(m){return m+1=0}; +g.p.tX=function(){return this.S?this.MO[this.count]/this.X:NaN}; +g.p.Rs=function(){return 0}; +g.p.mp=function(){return this.count}; +g.p.mj=function(){return""}; +g.p.fd=function(m){m=g.fq(this.MO.subarray(0,this.count),m*this.X);return m>=0?m:Math.max(0,-m-2)}; +g.p.isLoaded=function(){return this.ze()>=0}; +g.p.It=function(m,e){if(m>=this.ze())return 0;var Z=0;for(e=this.getStartTime(m)+e;mthis.getStartTime(m);m++)Z=Math.max(Z,R2R(this,m)/this.getDuration(m));return Z}; +g.p.resize=function(m){m+=2;var e=this.offsets;this.offsets=new Float64Array(m+1);var Z=this.MO;this.MO=new Float64Array(m+1);for(m=0;m0&&m&&(Z=Z.range.end+1,m=Math.min(m,this.info.contentLength-Z),m>0&&M.push(new Bd(4,this,o6(Z,m),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)));return new DL(M)}; +g.p.Nn=function(m){if(m.info.type===1){if(this.X)return;this.X=MJ(m.X)}else if(m.info.type===2){if(this.Z||this.index.ze()>=0)return;if(g.cY(this.info)){var e=this.index,Z=m.W0();m=m.info.range.start;var M=g.WD(Z,0,1936286840);Z=$by(M);e.X=Z.AX;var k=Z.Nb;e.offsets[0]=Z.Mq+m+M.size;e.MO[0]=k;e.S=!0;m=Z.UX.length;for(M=0;M=q.X.byteLength);){var S=gq(q,!1);if(S===2807729)K.Ch=xD(q);else if(S===2807730)K.Io=xD(q);else if(S===17545){var a=gq(q,!0);S=q;var v=0;a===4?v=S.X.getFloat32(S.pos):a===8&&(v=S.X.getFloat64(S.pos));S.pos+=a;K.duration=v}else lz(q)}m.pos=k;m=K}else m.pos=k,m=null;else m.pos= +k,m=null;if(m!==null){e.X=m.Io/m.Ch;k=new pl(M);M=k;q=m.VX;k=M.pos;K=[];if(vd(M,475249515)){for(S=a6(M);vd(S,187);)if(a=a6(S),vd(a,179)&&(v=xD(a),vd(a,183))){a=a6(a);for(var X=q;vd(a,241);)X=xD(a)+q;K.push({gY:X,Im:v})}if(K.length>0&&Z===K[0].gY)for(Z=0;Z=this.index.aW(Z+1);)Z++;return d_(this,Z,e,m.U).qU}; +g.p.MY=function(m){m.SB();return this.Dx()?!0:m.range.end+1this.info.contentLength&&(e=new Cl(e.start,this.info.contentLength-1)),new DL([new Bd(4,m.X,e,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,m.clipId)]);m.type===4&&(m=this.Ew(m),m=m[m.length-1]);var Z=0,M=m.range.start+m.S+m.U;m.type===3&&(m.SB(),Z=m.Wv,M===m.range.end+1&&(Z+=1));return d_(this,Z,M,e)}; +g.p.nA=function(){return null}; +g.p.Ih=function(m,e,Z){e=e===void 0?!1:e;m=this.index.fd(m);e&&(m=Math.min(this.index.ze(),m+1));return d_(this,m,this.index.aW(m),0,Z)}; +g.p.PX=function(){return!0}; +g.p.Y3=function(){return!0}; +g.p.cZ=function(){return!1}; +g.p.w0=function(){return this.indexRange.length+this.initRange.length}; +g.p.KH=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};BY.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var o$={},yQk=(o$.COLOR_PRIMARIES_BT709="bt709",o$.COLOR_PRIMARIES_BT2020="bt2020",o$.COLOR_PRIMARIES_UNKNOWN=null,o$.COLOR_PRIMARIES_UNSPECIFIED=null,o$),dl={},Tgb=(dl.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",dl.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",dl.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",dl.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",dl.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,dl.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,dl);var BP={},cD=(BP.WIDTH={name:"width",video:!0,valid:640,YQ:99999},BP.HEIGHT={name:"height",video:!0,valid:360,YQ:99999},BP.FRAMERATE={name:"framerate",video:!0,valid:30,YQ:9999},BP.BITRATE={name:"bitrate",video:!0,valid:3E5,YQ:2E9},BP.EOTF={name:"eotf",video:!0,valid:"bt709",YQ:"catavision"},BP.CHANNELS={name:"channels",video:!1,valid:2,YQ:99},BP.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",YQ:"invalidformat"},BP.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +YQ:"nope"},BP.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",YQ:"av99.0.05M.08"},BP.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",YQ:"invalid"},BP);var O={},tM=(O["0"]="f",O["160"]="h",O["133"]="h",O["134"]="h",O["135"]="h",O["136"]="h",O["137"]="h",O["264"]="h",O["266"]="h",O["138"]="h",O["298"]="h",O["299"]="h",O["304"]="h",O["305"]="h",O["214"]="h",O["216"]="h",O["374"]="h",O["375"]="h",O["140"]="a",O["141"]="ah",O["327"]="sa",O["258"]="m",O["380"]="mac3",O["328"]="meac3",O["161"]="H",O["142"]="H",O["143"]="H",O["144"]="H",O["222"]="H",O["223"]="H",O["145"]="H",O["224"]="H",O["225"]="H",O["146"]="H",O["226"]="H",O["227"]="H",O["147"]="H", +O["384"]="H",O["376"]="H",O["385"]="H",O["377"]="H",O["149"]="A",O["261"]="M",O["381"]="MAC3",O["329"]="MEAC3",O["598"]="9",O["278"]="9",O["242"]="9",O["243"]="9",O["244"]="9",O["775"]="9",O["776"]="9",O["777"]="9",O["778"]="9",O["779"]="9",O["780"]="9",O["781"]="9",O["782"]="9",O["783"]="9",O["247"]="9",O["248"]="9",O["353"]="9",O["355"]="9",O["356"]="9",O["271"]="9",O["577"]="9",O["313"]="9",O["579"]="9",O["272"]="9",O["302"]="9",O["303"]="9",O["407"]="9",O["408"]="9",O["308"]="9",O["315"]="9", +O["330"]="9h",O["331"]="9h",O["332"]="9h",O["333"]="9h",O["334"]="9h",O["335"]="9h",O["336"]="9h",O["337"]="9h",O["338"]="so",O["600"]="o",O["250"]="o",O["251"]="o",O["774"]="o",O["194"]="*",O["195"]="*",O["220"]="*",O["221"]="*",O["196"]="*",O["197"]="*",O["279"]="(",O["280"]="(",O["317"]="(",O["318"]="(",O["273"]="(",O["274"]="(",O["357"]="(",O["358"]="(",O["275"]="(",O["359"]="(",O["360"]="(",O["276"]="(",O["583"]="(",O["584"]="(",O["314"]="(",O["585"]="(",O["561"]="(",O["277"]="(",O["361"]="(h", +O["362"]="(h",O["363"]="(h",O["364"]="(h",O["365"]="(h",O["366"]="(h",O["591"]="(h",O["592"]="(h",O["367"]="(h",O["586"]="(h",O["587"]="(h",O["368"]="(h",O["588"]="(h",O["562"]="(h",O["409"]="(",O["410"]="(",O["411"]="(",O["412"]="(",O["557"]="(",O["558"]="(",O["394"]="1",O["395"]="1",O["396"]="1",O["397"]="1",O["398"]="1",O["399"]="1",O["720"]="1",O["721"]="1",O["400"]="1",O["401"]="1",O["571"]="1",O["402"]="1",O["694"]="1h",O["695"]="1h",O["696"]="1h",O["697"]="1h",O["698"]="1h",O["699"]="1h",O["700"]= +"1h",O["701"]="1h",O["702"]="1h",O["703"]="1h",O["386"]="3",O["387"]="w",O["406"]="6",O["787"]="1",O["788"]="1",O["645"]="(",O["646"]="(",O["647"]="(",O["648"]="(",O["649"]="(",O["650"]="(",O["651"]="(",O["652"]="(",O["653"]="(",O["654"]="(",O["655"]="(",O["656"]="(",O["657"]="(",O["658"]="(",O["659"]="(",O["660"]="(",O["661"]="(",O["662"]="(",O["663"]="(",O["664"]="(",O["665"]="(",O["666"]="(",O["667"]="(",O["668"]="(",O["669"]="(",O["670"]="(",O["671"]="(",O["672"]="(",O["673"]="(",O["674"]="(h", +O["675"]="(h",O["676"]="(h",O["677"]="(h",O["678"]="(h",O["679"]="(h",O["680"]="(h",O["681"]="(h",O["682"]="(h",O["683"]="(h",O["684"]="(h",O["685"]="(h",O["686"]="(h",O["687"]="(h",O["688"]="A",O["689"]="A",O["690"]="A",O["691"]="MEAC3",O["773"]="i",O["806"]="I",O["805"]="I",O);var Uq="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Y7.prototype.isHdr=function(){return this.S==="smpte2084"||this.S==="arib-std-b67"};QB.prototype.KJ=function(){return this.containerType===2}; +QB.prototype.isEncrypted=function(){return!!this.wV}; +QB.prototype.F5=function(){return!!this.audio}; +QB.prototype.wy=function(){return!!this.video};WY.prototype.getName=function(){return this.name}; +WY.prototype.getId=function(){return this.id}; +WY.prototype.getIsDefault=function(){return this.isDefault}; +WY.prototype.toString=function(){return this.name}; +WY.prototype.getName=WY.prototype.getName;WY.prototype.getId=WY.prototype.getId;WY.prototype.getIsDefault=WY.prototype.getIsDefault;g.T(g.z$,g.Wl);g.z$.prototype.ZG=function(m,e,Z,M,k){return g.Wl.prototype.ZG.call(this,m,e,Z,M,k)};g.T(iO,g.m6);g.p=iO.prototype;g.p.appendBuffer=function(m,e,Z){if(this.Ss.PY()!==this.appendWindowStart+this.start||this.Ss.Jv()!==this.appendWindowEnd+this.start||this.Ss.cq()!==this.timestampOffset+this.start)this.Ss.supports(1),this.Ss.oL(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ss.Fh(this.timestampOffset+this.start);this.Ss.appendBuffer(m,e,Z)}; +g.p.abort=function(){this.Ss.abort()}; +g.p.remove=function(m,e){this.Ss.remove(m+this.start,e+this.start)}; +g.p.WV=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.p.clear=function(){this.Ss.clear()}; +g.p.oL=function(m,e){this.appendWindowStart=m;this.appendWindowEnd=e}; +g.p.kB=function(){return this.timestampOffset+this.start}; +g.p.PY=function(){return this.appendWindowStart}; +g.p.Jv=function(){return this.appendWindowEnd}; +g.p.Fh=function(m){this.timestampOffset=m}; +g.p.cq=function(){return this.timestampOffset}; +g.p.v0=function(m){m=this.Ss.v0(m===void 0?!1:m);return Xs(m,this.start,this.end)}; +g.p.cK=function(){return this.Ss.cK()}; +g.p.bJ=function(){return this.Ss.bJ()}; +g.p.Xh=function(){return this.Ss.Xh()}; +g.p.ll=function(){return this.Ss.ll()}; +g.p.pU=function(){this.Ss.pU()}; +g.p.r8=function(m){return this.Ss.r8(m)}; +g.p.cn=function(){return this.Ss.cn()}; +g.p.Yx=function(){return this.Ss.Yx()}; +g.p.s4=function(){return this.Ss.s4()}; +g.p.Q6=function(m,e,Z){this.Ss.Q6(m,e,Z)}; +g.p.FY=function(m,e,Z){this.Ss.FY(m,e,Z)}; +g.p.MA=function(m,e){return this.Ss.MA(m,e)}; +g.p.supports=function(m){return this.Ss.supports(m)}; +g.p.Lq=function(){return this.Ss.Lq()}; +g.p.isView=function(){return!0}; +g.p.U1=function(){return this.Ss.U1()?this.isActive:!1}; +g.p.isLocked=function(){return this.PP&&!this.isActive}; +g.p.pR=function(m){m=this.Ss.pR(m);m.vw=this.start+"-"+this.end;return m}; +g.p.Xj=function(){return this.Ss.Xj()}; +g.p.S2=function(){return this.Ss.S2()}; +g.p.B9=function(){return this.Ss.B9()}; +g.p.LB=function(){Z6(this.Ss,this.n7);g.m6.prototype.LB.call(this)};var Jf=!1;g.T(lO,g.m6);g.p=lO.prototype;g.p.appendBuffer=function(m,e,Z){this.wv=!1;Z&&(this.O6=Z);if(m.length){var M;((M=this.Pq)==null?0:M.appendBuffer)?this.Pq.appendBuffer(m):this.Pq?this.Pq.append(m):this.Qn&&this.Qn.webkitSourceAppend(this.id,m)}e&&(e.isEncrypted()&&(this.wS=this.O6),e.type===3&&(this.e0=e),this.Kq.push(e.EZ()),this.Kq.length>4&&this.Kq.shift());this.GR&&(this.GR.length>=2||m.length>1048576?delete this.GR:this.GR.push(m))}; +g.p.abort=function(){try{this.Pq?this.Pq.abort():this.Qn&&this.Qn.webkitSourceAbort(this.id)}catch(m){kBK&&g.DA(new g.Nr("Error while abort the source buffer: "+m.name+", "+m.message))}this.O6=this.e0=null}; +g.p.remove=function(m,e,Z){this.wv=!1;var M;if((M=this.Pq)==null?0:M.remove)Z&&Z({b:q4(this.v0()),s:m,e:e}),this.Pq.remove(m,e)}; +g.p.WV=function(){this.remove(this.PY(),this.Jv())}; +g.p.clear=function(){this.Xh()||(this.abort(),this.WV(),this.wS=this.O6=this.e0=null,this.appendWindowStart=this.timestampOffset=0,this.Z2=K8([],[]),this.wv=!1,this.GR=xv?[]:void 0,this.m_=!0)}; +g.p.PY=function(){if(Jf&&this.wy)return this.appendWindowStart;var m;return((m=this.Pq)==null?void 0:m.appendWindowStart)||0}; +g.p.Jv=function(){var m;return((m=this.Pq)==null?void 0:m.appendWindowEnd)||0}; +g.p.oL=function(m,e){this.Pq&&(Jf&&this.wy?(this.appendWindowStart=m,this.Pq.appendWindowEnd=e):m>this.PY()?(this.Pq.appendWindowEnd=e,this.Pq.appendWindowStart=m):(this.Pq.appendWindowStart=m,this.Pq.appendWindowEnd=e))}; +g.p.kB=function(){return this.timestampOffset}; +g.p.Fh=function(m){Jf?this.timestampOffset=m:this.supports(1)&&(this.Pq.timestampOffset=m)}; +g.p.cq=function(){return Jf?this.timestampOffset:this.supports(1)?this.Pq.timestampOffset:0}; +g.p.v0=function(m){if(m===void 0?0:m)return this.wv||this.cK()||(this.Z2=this.v0(!1),this.wv=!0),this.Z2;try{return this.Pq?this.Pq.buffered:this.Qn?this.Qn.webkitSourceBuffered(this.id):K8([0],[Infinity])}catch(e){return K8([],[])}}; +g.p.cK=function(){var m;return((m=this.Pq)==null?void 0:m.updating)||!1}; +g.p.Xh=function(){return this.m_}; +g.p.ll=function(){return!this.m_&&this.cK()}; +g.p.pU=function(){this.m_=!1}; +g.p.r8=function(m){var e=m==null?void 0:m.T$;m=m==null?void 0:m.containerType;return!e&&!m||e===this.T$&&m===this.containerType}; +g.p.cn=function(){return this.O6}; +g.p.Yx=function(){return this.wS}; +g.p.MA=function(m,e){return this.containerType!==m||this.T$!==e}; +g.p.Q6=function(m,e,Z){if(this.containerType!==m||Z&&this.MA(m,Z))this.supports(4),uO()&&this.Pq.changeType(e),Z&&(this.T$=Z);this.containerType=m}; +g.p.FY=function(m,e,Z){this.containerType&&this.MA(m,e)&&uO()&&this.Pq.changeType(Z);this.containerType=m;this.T$=e}; +g.p.Lq=function(){return this.e0}; +g.p.isView=function(){return!1}; +g.p.supports=function(m){switch(m){case 1:var e;return((e=this.Pq)==null?void 0:e.timestampOffset)!==void 0;case 0:var Z;return!((Z=this.Pq)==null||!Z.appendBuffer);case 2:var M;return!((M=this.Pq)==null||!M.remove);case 3:var k,K;return!!(((k=this.Pq)==null?0:k.addEventListener)&&((K=this.Pq)==null?0:K.removeEventListener));case 4:return!(!this.Pq||!this.Pq.changeType);default:return!1}}; +g.p.U1=function(){return!this.cK()}; +g.p.isLocked=function(){return!1}; +g.p.pR=function(m){m.to=this.cq();m.up=this.cK();var e,Z=((e=this.Pq)==null?void 0:e.appendWindowStart)||0,M;e=((M=this.Pq)==null?void 0:M.appendWindowEnd)||Infinity;m.aw=Z.toFixed(3)+"-"+e.toFixed(3);return m}; +g.p.bJ=function(){var m;return((m=this.Pq)==null?void 0:m.writeHead)||0}; +g.p.Xj=function(){for(var m={},e=0;e0||m.getElementsByTagName("SegmentTemplate").length>0){this.gr=this.S=!0;this.timeline||(this.timeline=new Zp1);qoG(this.timeline,m);this.Pv("refresh");for(m=0;m=0?X=fl(l):x=x+"?range="+l}a.call(S,new Eu(v.Wv,v.startSecs,v.C1,v.X,x,X,v.S))}M=k}Z.update(M,this.isLive,this.nB)}pN1(this.timeline);return!0}this.duration=PtI(x7(m,"mediaPresentationDuration")); +a:{for(m=0;m0))return this.GK()-m}}m=this.X;for(var e in m){var Z=m[e].index;if(Z.isLoaded()&&!Oq(m[e].info.mimeType))return Z.Rs()}return 0}; +g.p.getStreamTimeOffset=function(){return this.j}; +g.p.Zx=function(m){for(var e in this.X){var Z=this.X[e].index;if(Z.isLoaded()){var M=Z.fd(m),k=Z.Zx(M);if(k)return k+m-Z.getStartTime(M)}}return NaN}; +var j4=null,cB7,Oj=!((cB7=navigator.mediaCapabilities)==null||!cB7.decodingInfo),z2m={commentary:1,alternate:2,dub:3,main:4};var RW=new Set,JB=new Map;zu.prototype.clone=function(m){return new zu(this.flavor,m,this.S,this.experiments)}; +zu.prototype.pR=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +zu.prototype.lP=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 EP={},a3=(EP.playready=["com.youtube.playready","com.microsoft.playready"],EP.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],EP),YJ={},AYP=(YJ.widevine="DRM_SYSTEM_WIDEVINE",YJ.fairplay="DRM_SYSTEM_FAIRPLAY",YJ.playready="DRM_SYSTEM_PLAYREADY",YJ),UP={},Nyk=(UP.widevine=1,UP.fairplay=2,UP.playready=3,UP);gI.prototype.EH=function(m,e){e=e===void 0?1:e;this.TT+=e;this.S+=m;m/=e;for(var Z=0;Z0)M+="."+ve[k].toFixed(0)+"_"+Z.X[k].toFixed(0);else break;Z=M}Z&&(m[e]=Z)}this.X=new iQG;return m}; +g.p.toString=function(){return""};g.p=TU3.prototype;g.p.isActive=function(){return!1}; +g.p.qJ=function(){}; +g.p.Eu=function(){}; +g.p.SE=function(m,e){return e}; +g.p.JI=function(){}; +g.p.Od=function(){}; +g.p.J6=function(m,e){return e()}; +g.p.h$=function(){return{}}; +g.p.toString=function(){return""};var b3,rBc,IFR,ABK,COs,fF7,to,uW,fS,aLI,uT;b3=new TU3;rBc=!!+o8("html5_enable_profiler");IFR=!!+o8("html5_onesie_enable_profiler");ABK=!!+o8("html5_offline_encryption_enable_profiler");COs=!!+o8("html5_performance_impact_profiling_timer_ms");fF7=!!+o8("html5_drm_enable_profiler");to=rBc||IFR||ABK||COs||fF7?new lZb:b3;g.mH=rBc?to:b3;uW=IFR?to:b3;fS=ABK?to:b3;aLI=COs?to:b3;uT=fF7?to:b3;var lT;g.T(iT,g.Y); +iT.prototype.initialize=function(m,e){for(var Z=this,M=g.r(Object.keys(m)),k=M.next();!k.done;k=M.next()){k=g.r(m[k.value]);for(var K=k.next();!K.done;K=k.next())if(K=K.value,K.wV)for(var q=g.r(Object.keys(K.wV)),S=q.next();!S.done;S=q.next()){var a=S.value;S=a;a=a3[a];!a&&this.W("html5_enable_vp9_fairplay")&&S==="fairplay"&&(a=["com.youtube.fairplay.sbdl"]);if(a){a=g.r(a);for(var v=a.next();!v.done;v=a.next())v=v.value,this.U[v]=this.U[v]||new zu(S,v,K.wV[S],this.Xq.experiments),this.X[S]=this.X[S]|| +{},this.X[S][K.mimeType]=!0}}}QA()&&(this.U["com.youtube.fairplay"]=new zu("fairplay","com.youtube.fairplay","",this.Xq.experiments),this.W("html5_enable_vp9_fairplay")||(this.X.fairplay=this.X.fairplay||{},this.X.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.X.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=XRI(e,this.useCobaltWidevine,this.W("html5_enable_safari_fairplay"),this.W("html5_enable_vp9_fairplay")).filter(function(X){return!!Z.U[X]})}; +iT.prototype.W=function(m){return this.Xq.experiments.dc(m)};var y$s={"":"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"};r7K.prototype.W=function(m){return this.experiments.dc(m)};var Mht={RED:"red",vc:"white"};IZK.prototype.dc=function(m){m=this.flags[m];JSON.stringify(m);return m==="true"};var fZK=Promise.resolve(),Ezb=window.queueMicrotask?window.queueMicrotask.bind(window):ozm;$k.prototype.canPlayType=function(m,e){m=m.canPlayType?m.canPlayType(e):!1;g.bE?m=m||ov1[e]:We===2.2?m=m||d4K[e]:UC()&&(m=m||Byb[e]);return!!m}; +$k.prototype.isTypeSupported=function(m){return this.Y?window.cast.receiver.platform.canDisplayType(m):ZF(m)}; +var d4K={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Byb={"application/x-mpegURL":"maybe"},ov1={"application/x-mpegURL":"maybe"};g.T(NR,g.m6);NR.prototype.add=function(m,e){if(!this.items[m]&&(e.f$||e.hH||e.G7)){var Z=this.items,M=e;Object.isFrozen&&!Object.isFrozen(e)&&(M=Object.create(e),Object.freeze(M));Z[m]=M;this.Pv("vast_info_card_add",m)}}; +NR.prototype.remove=function(m){var e=this.get(m);delete this.items[m];return e}; +NR.prototype.get=function(m){return this.items[m]||null}; +NR.prototype.isEmpty=function(){return g.DQ(this.items)};g.T(rI,ya);rI.prototype.X=function(m,e){return ya.prototype.X.call(this,m,e)}; +rI.prototype.S=function(m,e,Z){var M=this;return g.Qs(function(k){return k.X==1?g.A(k,ya.prototype.S.call(M,m,e,Z),2):k.return(k.S)})}; +g.T(I3,je);I3.prototype.encrypt=function(m,e){return je.prototype.encrypt.call(this,m,e)};var Ce;fe.prototype.add=function(m){if(this.pos+20>this.data.length){var e=new Uint8Array(this.data.length*2);e.set(this.data);this.data=e}for(;m>31;)this.data[this.pos++]=Ce[(m&31)+32],m>>=5;this.data[this.pos++]=Ce[m|0]}; +fe.prototype.mI=function(){return g.Se(this.data.subarray(0,this.pos))}; +fe.prototype.reset=function(){this.pos=0};o3.prototype.Ld=function(m,e){var Z=Math.pow(this.alpha,m);this.X=e*(1-Z)+Z*this.X;this.S+=m}; +o3.prototype.gG=function(){return this.X/(1-Math.pow(this.alpha,this.S))};dI.prototype.Ld=function(m,e){for(var Z=0;Z<10;Z++){var M=this.X[Z],k=M+(Z===0?m:0),K=1*Math.pow(2,Z);if(k<=K)break;M=Math.min(1,(k-K*.5)/M);for(k=0;k<16;k++)K=this.values[Z*16+k]*M,this.values[(Z+1)*16+k]+=K,this.X[Z+1]+=K,this.values[Z*16+k]-=K,this.X[Z]-=K}M=Z=0;k=8192;e>8192&&(Z=Math.ceil(Math.log(e/8192)/Math.log(2)),M=8192*Math.pow(2,Z-1),k=M*2);Z+2>16?this.values[15]+=m:(e=(e-M)/(k-M),this.values[Z]+=m*(1-e),this.values[Z+1]+=m*e);this.X[0]+=m}; +dI.prototype.gG=function(){var m=m===void 0?this.S:m;var e=e===void 0?.02:e;var Z=Z===void 0?.98:Z;for(var M=this.U,k=0;k<16;k++)M[k]=this.values[k];k=this.X[0];for(var K=1;K<11;K++){var q=this.X[K];if(q===0)break;for(var S=Math.min(1,(m-k)/q),a=0;a<16;a++)M[a]+=this.values[K*16+a]*S;k+=q*S;if(S<1)break}for(K=m=q=0;K<16;K++){S=q+M[K]/k;m+=Math.max(0,Math.min(S,Z)-Math.max(q,e))*(K>0?8192*Math.pow(2,K-1):0);if(S>Z)break;q=S}return m/(Z-e)};Be.prototype.Ld=function(m,e){m=Math.min(this.X,Math.max(1,Math.round(m*this.resolution)));m+this.S>=this.X&&(this.U=!0);for(;m--;)this.values[this.S]=e,this.S=(this.S+1)%this.X;this.TW=!0}; +Be.prototype.percentile=function(m){var e=this;if(!this.U&&this.S===0)return 0;this.TW&&(g.dX(this.L,function(Z,M){return e.values[Z]-e.values[M]}),this.TW=!1); +return this.values[this.L[Math.round(m*((this.U?this.X:this.S)-1))]]||0}; +Be.prototype.gG=function(){return this.C?(this.percentile(this.Z-this.C)+this.percentile(this.Z)+this.percentile(this.Z+this.C))/3:this.percentile(this.Z)};g.T(En,g.Y);En.prototype.Hv=function(){var m;(m=this.wc)==null||m.start();if(Le(this)&&this.policy.N){var e;(e=this.OZ)==null||e.Il()}};OQt.prototype.W=function(m){return this.experiments.dc(m)};g.T(VDm,g.Y);Gx.prototype.then=function(m,e){return this.promise.then(m,e)}; +Gx.prototype.resolve=function(m){this.wE(m)}; +Gx.prototype.reject=function(m){this.ZZ(m)};var Sh3={Ym:"caoe",Xt:"capsv",jz:"cbrand",QC:"cbr",EF:"cbrver",pm:"cchip",nm:"ccappver",T8:"ccrv",w9:"cfrmver",XH:"c",Sd:"cver",PA:"ctheme",hB:"cplayer",YX:"cmodel",AQ:"cnetwork",lc:"cos",Lp:"cosver",Qj:"cplatform",tQ:"crqyear"};g.T(SA,g.Y);g.p=SA.prototype;g.p.W=function(m){return this.experiments.dc(m)}; +g.p.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.p.getVideoUrl=function(m,e,Z,M,k,K,q){e={list:e};Z&&(k?e.time_continue=Z:e.t=Z);Z=q?"music.youtube.com":"www.youtube.com";k=Z==="www.youtube.com";!K&&M&&k?M="https://youtu.be/"+m:g.qF(this)?(M="https://"+Z+"/fire",e.v=m):(!M&&k&&(Z="m.youtube.com"),M=this.protocol+"://"+Z+"/watch",e.v=m,g.bE&&(m=I8())&&(e.ebc=m));return g.tV(M,e)}; +g.p.getVideoEmbedCode=function(m,e,Z,M){e="https://www.youtube.com/embed/"+e;M&&(e=g.tV(e,{list:M}));M=Z.width;Z=Z.height;e=g.qg(e);m=g.qg(m!=null?m:"YouTube video player");return'')}; +g.p.supportsGaplessAudio=function(){return e4&&!g.bE&&EC()>=74||pe&&b7(68)?!0:!1}; +g.p.supportsGaplessShorts=function(){return!this.W("html5_enable_short_gapless")||this.BS||g.PC?!1:!0}; +g.p.getPlayerType=function(){return this.X.cplayer}; +g.p.Af=function(){return this.Wq}; +g.p.ow=function(){this.W("html5_enable_lawnmower_messaging")}; +var pMP=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],act=[19];var Qy={},iht=(Qy["140"]={numChannels:2},Qy["141"]={numChannels:2},Qy["251"]={audioSampleRate:48E3,numChannels:2},Qy["774"]={audioSampleRate:48E3,numChannels:2},Qy["380"]={numChannels:6},Qy["328"]={numChannels:6},Qy),HP={},gLy=(HP["1"]='video/mp4; codecs="av01.0.08M.08"',HP["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',HP["9"]='video/webm; codecs="vp9"',HP["("]='video/webm; codecs="vp9"',HP["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',HP.h='video/mp4; codecs="avc1.64001e"', +HP.H='video/mp4; codecs="avc1.64001e"',HP.o='audio/webm; codecs="opus"',HP.a='audio/mp4; codecs="mp4a.40.2"',HP.ah='audio/mp4; codecs="mp4a.40.2"',HP.mac3='audio/mp4; codecs="ac-3"; channels=6',HP.meac3='audio/mp4; codecs="ec-3"; channels=6',HP),Dd={},XMb=(Dd["337"]={width:3840,height:2160,bitrate:3E7,fps:30},Dd["336"]={width:2560,height:1440,bitrate:15E6,fps:30},Dd["335"]={width:1920,height:1080,bitrate:75E5,fps:30},Dd["702"]={width:7680,height:4320,bitrate:4E7,fps:60},Dd["701"]={width:3840,height:2160, +bitrate:2E7,fps:60},Dd["700"]={width:2560,height:1440,bitrate:1E7,fps:60},Dd["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},Dd["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},Dd["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},Dd["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},Dd["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"}, +Dd["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},Dd["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},Dd["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},Dd["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},Dd["315"]={width:3840,height:2160,bitrate:2E7,fps:60},Dd["308"]={width:2560,height:1440,bitrate:1E7,fps:60},Dd["303"]={width:1920,height:1080,bitrate:5E6,fps:60}, +Dd["302"]={width:1280,height:720,bitrate:25E5,fps:60},Dd["299"]={width:1920,height:1080,bitrate:75E5,fps:60},Dd["298"]={width:1280,height:720,bitrate:35E5,fps:60},Dd["571"]={width:7680,height:4320,bitrate:3E7,fps:60},Dd["401"]={width:3840,height:2160,bitrate:15E6,fps:60},Dd["400"]={width:2560,height:1440,bitrate:75E5,fps:60},Dd["399"]={width:1920,height:1080,bitrate:2E6,fps:60},Dd["398"]={width:1280,height:720,bitrate:1E6,fps:60},Dd["397"]={width:854,height:480,bitrate:4E5,fps:30},Dd["396"]={width:640, +height:360,bitrate:25E4,fps:30},Dd["787"]={width:1080,height:608,bitrate:2E5,fps:30},Dd["788"]={width:1080,height:608,bitrate:4E5,fps:30},Dd["313"]={width:3840,height:2160,bitrate:8E6,fps:30},Dd["271"]={width:2560,height:1440,bitrate:4E6,fps:30},Dd["248"]={width:1920,height:1080,bitrate:2E6,fps:30},Dd["247"]={width:1280,height:720,bitrate:15E5,fps:30},Dd["244"]={width:854,height:480,bitrate:52E4,fps:30},Dd["243"]={width:640,height:360,bitrate:28E4,fps:30},Dd["137"]={width:1920,height:1080,bitrate:4E6, +fps:30},Dd["136"]={width:1280,height:720,bitrate:3E6,fps:30},Dd["135"]={width:854,height:480,bitrate:1E6,fps:30},Dd["385"]={width:1920,height:1080,bitrate:6503313,fps:60},Dd["376"]={width:1280,height:720,bitrate:5706960,fps:60},Dd["384"]={width:1280,height:720,bitrate:3660979,fps:60},Dd["225"]={width:1280,height:720,bitrate:5805E3,fps:30},Dd["224"]={width:1280,height:720,bitrate:453E4,fps:30},Dd["145"]={width:1280,height:720,bitrate:2682052,fps:30},Dd);g.p=FP.prototype;g.p.lP=function(){return this.X}; +g.p.TF=function(){return null}; +g.p.lT=function(){var m=this.TF();return m?(m=g.D_(m.i9),Number(m.expire)):NaN}; +g.p.B3=function(){}; +g.p.getHeight=function(){return this.X.video.height};Rp3.prototype.build=function(){$Bb(this);var m=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],e={};a:if(this.X)var Z=this.X;else{Z="";for(var M=g.r(this.U),k=M.next();!k.done;k=M.next())if(k=k.value,k.MB){if(k.MB.getIsDefault()){Z=k.MB.getId();break a}Z||(Z=k.MB.getId())}}M=g.r(this.U);for(k=M.next();!k.done;k=M.next())if(k=k.value,this.C||!k.MB||k.MB.getId()===Z)e[k.itag]||(e[k.itag]=[]),e[k.itag].push(k);Z=g.r(this.S);for(M=Z.next();!M.done;M=Z.next())if(M=M.value,k=e[M.X]){k=g.r(k);for(var K=k.next();!K.done;K= +k.next()){var q=m,S=q.push;K=K.value;var a="#EXT-X-MEDIA:TYPE=AUDIO,",v="YES",X="audio";if(K.MB){X=K.MB;var x=X.getId().split(".")[0];x&&(a+='LANGUAGE="'+x+'",');(this.X?this.X===X.getId():X.getIsDefault())||(v="NO");X=X.getName()}x="";M!==null&&(x=M.itag.toString());x=nm(this,K.url,x);a=a+('NAME="'+X+'",DEFAULT='+(v+',AUTOSELECT=YES,GROUP-ID="'))+(TJK(K,M)+'",URI="'+(x+'"'));S.call(q,a)}}Z=g.r(this.L);for(M=Z.next();!M.done;M=Z.next())M=M.value,k=Evt,M=(q=M.MB)?'#EXT-X-MEDIA:URI="'+nm(this,M.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+k+'",LANGUAGE="'+q.getId()+'",NAME="'+q.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,M&&m.push(M);Z=this.L.length>0?Evt:void 0;M=g.r(this.S);for(k=M.next();!k.done;k=M.next())k=k.value,S=e[k.X],q=void 0,((q=S)==null?void 0:q.length)>0&&(q=k,S=S[0],S="#EXT-X-STREAM-INF:BANDWIDTH="+(q.bitrate+S.bitrate)+',CODECS="'+(q.codecs+","+S.codecs+'",RESOLUTION=')+(q.width+"x"+q.height+',AUDIO="')+(TJK(S,q)+'",')+(Z?'SUBTITLES="'+Z+'",':"")+"CLOSED-CAPTIONS=NONE",q.fps>1&&(S+= +",FRAME-RATE="+q.fps),q.rp&&(S+=",VIDEO-RANGE="+q.rp),m.push(S),m.push(nm(this,k.url,"")));return m.join("\n")}; +var Evt="text";g.T(c4,FP);c4.prototype.lT=function(){return this.expiration}; +c4.prototype.TF=function(){if(!this.i9||this.i9.MU()){var m=this.S.build();m="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(m);this.i9=new RX(m)}return this.i9};g.T(NF,FP);NF.prototype.TF=function(){return new RX(this.S.Ya())}; +NF.prototype.B3=function(){this.S=d6(this.S)};g.T(rY,FP);rY.prototype.TF=function(){return new RX(this.S)};var L2={},fc1=(L2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",L2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",L2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",L2);g.p=g.I_.prototype;g.p.getId=function(){return this.id}; +g.p.getName=function(){return this.name}; +g.p.isServable=function(){return this.X}; +g.p.Ya=function(){return this.url}; +g.p.getXtags=function(){return this.xtags}; +g.p.toString=function(){return this.languageCode+": "+g.Cm(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.p.J5=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Yh7={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},UBK={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},bhk=/^(\d*)_((\d*)_?(\d*))$/;var QII={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},HhR={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var sP={},h7G=(sP.ALWAYS=1,sP.BY_REQUEST=3,sP.UNKNOWN=void 0,sP),GU={},cWs=(GU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",GU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",GU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",GU.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",GU);var KtP=function(m){for(var e=Object.keys(m),Z={},M=0;MM-e?-1:m}; +g.p.L3=function(){return this.X.ze()}; +g.p.yU=function(){return this.X.a_()}; +g.p.Xp=function(m){this.X=m};g.T(JC,jA);JC.prototype.S=function(m,e){return jA.prototype.S.call(this,"$N|"+m,e)}; +JC.prototype.U=function(m,e,Z){return new OG(m,e,Z,this.isLive)};var AWK=[],Xh=new Set;g.T(W4,g.m6);g.p=W4.prototype;g.p.J=function(){return this.Xq}; +g.p.W=function(m){return this.Xq.W(m)}; +g.p.JZ=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.p.hasSupportedAudio51Tracks=function(){var m;return!((m=this.NP)==null||!m.CR)}; +g.p.getUserAudio51Preference=function(){var m=1;g.lA(this.Xq)&&this.W("html5_ytv_surround_toggle_default_off")?m=0:g.XP(this.Xq)&&this.isLivePlayback&&this.T3()&&(m=0);var e;return(e=g.Kr("yt-player-audio51"))!=null?e:m}; +g.p.Vb=function(){this.MU()||(this.X.S||this.X.unsubscribe("refresh",this.Vb,this),this.eh(-1))}; +g.p.eh=function(m){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var e=g.JQk(this.X,this.Po);if(e.length>0){for(var Z=g.r(e),M=Z.next();!M.done;M=Z.next())M=M.value,M.startSecs=Math.max(M.startSecs,this.Rs());this.Pv("cuepointupdated",e,m);this.Po+=e.length;if(vQ(this)&&this.Xq.Af())for(e=g.r(e),Z=e.next();!Z.done;Z=e.next())Z=Z.value,this.B("cuepoint",{segNum:m,event:Z.event,startSecs:Z.startSecs,id:Z.identifier.slice(-16)}),Z.event==="start"&&(Z=Z.startSecs,this.u8.start=this.bb, +this.u8.end=Z+3)}}}; +g.p.T3=function(){return this.mX!==void 0?this.mX:this.mX=!!this.wV||!!this.X&&hZ(this.X)}; +g.p.Yj=function(m){var e=this;if(this.MU())return g.NC();this.yH=this.Hv=this.S=null;qw(this,"html5_high_res_logging_always")&&(this.Xq.Wq=!0);return yWm(this,m).then(void 0,function(){return j8G(e,m)}).then(void 0,function(){return OEc(e)}).then(void 0,function(){return VSK(e)})}; +g.p.o9=function(){this.B("ssap",{npa:0})}; +g.p.zW=function(){if(this.cotn)return null;var m=g.uA(this.Xq)||this.W("web_l3_storyboard");if(!this.oW)if(this.playerResponse&&this.playerResponse.storyboards){var e=this.playerResponse.storyboards,Z=e.playerStoryboardSpecRenderer;Z&&Z.spec?this.oW=new jA(Z.spec,this.lengthSeconds,void 0,!1,m):(e=e.playerLiveStoryboardSpecRenderer)&&e.spec&&this.X&&(Z=EA(this.X.X).index)&&(this.oW=new JC(e.spec,this.X.isLive,Z,m))}else this.Jo?this.oW=new jA(this.Jo,this.lengthSeconds,void 0,!1,m):this.VI&&this.X&& +(e=EA(this.X.X).index)&&(this.oW=new JC(this.VI,this.X.isLive,e,m));return this.oW}; +g.p.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var m=this.playerResponse.storyboards;return(m=m.playerStoryboardSpecRenderer||m.playerLiveStoryboardSpecRenderer)&&m.spec||null}return this.Jo||this.VI}; +g.p.GK=function(){return this.X&&!isNaN(this.X.GK())?this.X.GK():vQ(this)?0:this.lengthSeconds}; +g.p.Rs=function(){return this.X&&!isNaN(this.X.Rs())?this.X.Rs():0}; +g.p.getPlaylistSequenceForTime=function(m){if(this.X&&this.U){var e=this.X.X[this.U.id];if(!e)return null;var Z=e.index.fd(m);e=e.index.getStartTime(Z);return{sequence:Z,elapsed:Math.floor((m-e)*1E3)}}return null}; +g.p.J5=function(){return!this.MU()&&!(!this.videoId&&!this.BS)}; +g.p.w$=function(){var m,e,Z;return!!this.adaptiveFormats||!!((m=this.playerResponse)==null?0:(e=m.streamingData)==null?0:(Z=e.adaptiveFormats)==null?0:Z.length)}; +g.p.isLoaded=function(){return zk(this)&&!this.dG&&!this.kU}; +g.p.zg=function(m){m||(m="hqdefault.jpg");var e=this.K[m];return e||m==="pop1.jpg"||m==="pop2.jpg"||m==="sddefault.jpg"||m==="hq720.jpg"||m==="maxresdefault.jpg"?e:v4(this.Xq,this.videoId,m)}; +g.p.gr=function(){return this.isLivePlayback||this.QH||this.S9||!(!this.liveUtcStartSeconds||!this.PS)}; +g.p.isOtf=function(){return!!this.X&&(this.X.isOtf||!this.QH&&!this.isLivePlayback&&this.X.S)}; +g.p.getAvailableAudioTracks=function(){return this.S?this.S.getAvailableAudioTracks().length>0?this.S.getAvailableAudioTracks():this.yI||[]:[]}; +g.p.getAudioTrack=function(){var m=this;if(this.Z&&!sq(this.Z))return g.u7(this.getAvailableAudioTracks(),function(M){return M.id===m.Z.id})||this.zM; +if(this.yI){if(!this.I$)for(var e=g.r(this.yI),Z=e.next();!Z.done;Z=e.next())if(Z=Z.value,Z.MB.getIsDefault()){this.I$=Z;break}return this.I$||this.zM}return this.zM}; +g.p.getPlayerResponse=function(){return this.playerResponse}; +g.p.getWatchNextResponse=function(){return this.Qh}; +g.p.getHeartbeatResponse=function(){return this.ud}; +g.p.sj=function(){return this.watchUrl?this.watchUrl:this.Xq.getVideoUrl(this.videoId)}; +g.p.yg=function(){return!!this.X&&(f8(this.X)||oX(this.X)||dy(this.X))}; +g.p.getEmbeddedPlayerResponse=function(){return this.wc}; +g.p.ON=function(){return(this.eventLabel||this.Xq.C)==="shortspage"}; +g.p.isAd=function(){return this.Og||!!this.adFormat}; +g.p.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.p.NO=function(){var m,e,Z;return this.isDaiEnabled()&&!!((m=this.playerResponse)==null?0:(e=m.playerConfig)==null?0:(Z=e.daiConfig)==null?0:Z.ssaEnabledPlayback)}; +g.p.Je=function(){return TiG(this)?this.FL:this.Hw||this.oY}; +g.p.Gq=function(){return this.xH||this.oY}; +g.p.aj=function(){return qw(this,"html5_samsung_vp9_live")}; +g.p.useInnertubeDrmService=function(){return!0}; +g.p.B=function(m,e,Z){this.Pv("ctmp",m,e,Z)}; +g.p.Nr=function(m,e,Z){this.Pv("ctmpstr",m,e,Z)}; +g.p.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.p.getGetAdBreakContext=function(m,e){m=m===void 0?NaN:m;e=e===void 0?NaN:e;var Z={isSabr:Mw(this)},M,k=(M=this.getHeartbeatResponse())==null?void 0:M.adBreakHeartbeatParams;k&&(Z.adBreakHeartbeatParams=k);if(this.W("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.X&&!isNaN(m)&&!isNaN(e)){e=m-e;for(var K in this.X.X)if(M=this.X.X[K],M.info.wy()||M.info.F5())if(M=M.index,M.isLoaded()){K=M.fd(e);M=M.Zx(K)+e-M.getStartTime(K);this.B("gabc",{t:m.toFixed(3),mt:e.toFixed(3),sg:K,igt:M.toFixed(3)}); +Z.livePlaybackPosition={utcTimeMillis:""+(M*1E3).toFixed(0)};break}}return Z}; +g.p.vY=function(m,e){if(!On(this.Xq))return!1;var Z;if(((Z=this.Xq.getWebPlayerContextConfig())==null?0:Z.embedsEnableEmc3ds)||(this.Xq.j||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||e)return!1;var M,k;return!!(((M=this.embeddedPlayerConfig)==null?0:(k=M.embeddedPlayerFlags)==null?0:k.isShortsExperienceEligible)&&m.width<=m.height)}; +g.p.LB=function(){g.m6.prototype.LB.call(this);this.S1=null;delete this.AC;delete this.accountLinkingConfig;delete this.X;this.S=this.ud=this.playerResponse=this.Qh=null;this.JJ=this.adaptiveFormats="";delete this.botguardData;this.Eg=this.suggestions=this.ZD=null};var nlk={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ci3={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},wOy={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Thb={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"},Fks={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},$Cb={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"};g.T(JF,g.Y);g.p=JF.prototype;g.p.handleExternalCall=function(m,e,Z){var M=this.state.j[m],k=this.state.N[m],K=M;if(k)if(Z)K=k;else if(!M)throw Error('API call from an untrusted origin: "'+Z+'"');this.logApiCall(m,Z);if(K){Z=!1;M=g.r(e);for(k=M.next();!k.done;k=M.next())if(String(k.value).includes("javascript:")){Z=!0;break}Z&&g.LD(Error('Dangerous call to "'+m+'" with ['+e+"]."));return K.apply(this,e)}throw Error('Unknown API method: "'+m+'".');}; +g.p.logApiCall=function(m,e,Z){var M=this.app.J();M.cX&&!this.state.K.has(m)&&(this.state.K.add(m),g.D2("webPlayerApiCalled",{callerUrl:M.loaderUrl,methodName:m,origin:e||void 0,playerStyle:M.playerStyle||void 0,embeddedPlayerMode:M.j,errorCode:Z}))}; +g.p.Pv=function(m){var e=g.Hy.apply(1,arguments);this.state.U.Pv.apply(this.state.U,[m].concat(g.Rt(e)));if(m==="videodatachange"||m==="resize"||m==="cardstatechange")this.state.X.Pv.apply(this.state.X,[m].concat(g.Rt(e))),this.state.Z.Pv.apply(this.state.Z,[m].concat(g.Rt(e)))}; +g.p.jr=function(m){var e=g.Hy.apply(1,arguments);this.state.U.Pv.apply(this.state.U,[m].concat(g.Rt(e)));this.state.X.Pv.apply(this.state.X,[m].concat(g.Rt(e)))}; +g.p.Ns=function(m){var e=g.Hy.apply(1,arguments);this.state.U.Pv.apply(this.state.U,[m].concat(g.Rt(e)));this.state.X.Pv.apply(this.state.X,[m].concat(g.Rt(e)));this.state.Z.Pv.apply(this.state.Z,[m].concat(g.Rt(e)))}; +g.p.ke=function(m){var e=g.Hy.apply(1,arguments);this.state.U.Pv.apply(this.state.U,[m].concat(g.Rt(e)));this.state.X.Pv.apply(this.state.X,[m].concat(g.Rt(e)));this.state.Z.Pv.apply(this.state.Z,[m].concat(g.Rt(e)));this.state.L.Pv.apply(this.state.L,[m].concat(g.Rt(e)))}; +g.p.W=function(m){return this.app.J().W(m)}; +g.p.LB=function(){if(this.state.element){var m=this.state.element,e;for(e in this.state.S)this.state.S.hasOwnProperty(e)&&(m[e]=null);this.state.element=null}g.Y.prototype.LB.call(this)};g.T(PQ,h7);PQ.prototype.Pv=function(m){var e=g.Hy.apply(1,arguments);if(this.L.has(m))return this.L.get(m).push(e),!0;var Z=!1;try{for(e=[e],this.L.set(m,e);e.length;)Z=h7.prototype.Pv.call.apply(h7.prototype.Pv,[this,m].concat(g.Rt(e.shift())))}finally{this.L.delete(m)}return Z};g.T(mv,g.Y);mv.prototype.LB=function(){this.L.dispose();this.Z.dispose();this.X.dispose();this.U.dispose();this.K=this.S=this.N=this.j=this.C=void 0};var Vp=16/9,Yjy=[.25,.5,.75,1,1.25,1.5,1.75,2],U4P=Yjy.concat([3,4,5,6,7,8,9,10,15]);var olR=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.T(Zm,JF);g.p=Zm.prototype;g.p.getApiInterface=function(){return Array.from(this.state.C)}; +g.p.n$=function(m,e){this.state.L.subscribe(m,e)}; +g.p.d1=function(m,e){this.state.L.unsubscribe(m,e)}; +g.p.getPlayerState=function(m){return nDs(this.app,m)}; +g.p.oX=function(){return nDs(this.app)}; +g.p.Ua=function(m,e,Z){KZ(this)&&(AT(this.app,!0,1),dp(this.app,m,e,Z,1))}; +g.p.getCurrentTime=function(m,e,Z){var M=this.getPlayerState(m);if(this.app.getAppState()===2&&M===5){var k;return((k=this.app.getVideoData())==null?void 0:k.startSeconds)||0}return this.W("web_player_max_seekable_on_ended")&&M===0?T4(this.app,m):m?this.app.getCurrentTime(m,e,Z):this.app.getCurrentTime(m)}; +g.p.E_=function(){return this.app.getCurrentTime(1)}; +g.p.Gu=function(){return this.app.getDuration(1)}; +g.p.zp=function(m,e){m=g.Fr(Math.floor(m),0,100);isFinite(m)&&ua(this.app,{volume:m,muted:this.isMuted()},e)}; +g.p.C9=function(m){this.zp(m,!1)}; +g.p.VA=function(m){ua(this.app,{muted:!0,volume:this.getVolume()},m)}; +g.p.sM=function(){this.VA(!1)}; +g.p.lM=function(m){k6(this.app)&&!this.W("embeds_enable_emc3ds_muted_autoplay")||ua(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},m)}; +g.p.f9=function(){k6(this.app)&&this.W("embeds_enable_emc3ds_muted_autoplay")||this.lM(!1)}; +g.p.getPlayerMode=function(){var m={};this.app.getVideoData().hE&&(m.pfp={enableIma:jp(this.app.getVideoData())&&pi(this.app).allowImaMonetization,autoplay:YO(pi(this.app)),mutedAutoplay:pi(this.app).mutedAutoplay});return m}; +g.p.Yp=function(){var m=this.app.getPresentingPlayerType();if(this.W("html5_enable_ssap_autoplay_debug_logging")){var e;(e=g.qq(this.app))==null||e.B("ssap",{pbintl:m})}if(m===2&&!this.app.Ex()&&(e=wH(this.app.QW()),!e.FD()||e.LY()))return;m===3?x6(this.app.QW()).RP("control_play"):this.app.J().W("html5_ssap_ignore_play_for_ad")&&g.gA(pi(this.app))&&m===2||this.app.playVideo(m)}; +g.p.XI=function(){AT(this.app,!0,1);this.Yp()}; +g.p.pauseVideo=function(m){var e=this.app.getPresentingPlayerType();if(e!==2||this.app.Ex()||wH(this.app.QW()).FD())e===3?x6(this.app.QW()).RP("control_pause"):this.app.pauseVideo(e,m)}; +g.p.oB=function(){var m=this.app;m.Fq.Pv("pageTransition");m.stopVideo(!0)}; +g.p.clearVideo=function(){}; +g.p.getAvailablePlaybackRates=function(){var m=this.app.J();return m.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(m.Z?m.ancestorOrigins[0]:window.location.origin)||m.VD?U4P:Yjy:[1]}; +g.p.getPlaybackQuality=function(m){return(m=g.qq(this.app,m))?m.getPlaybackQuality():"unknown"}; +g.p.le=function(){}; +g.p.getAvailableQualityLevels=function(m){return(m=g.qq(this.app,m))?(m=g.qI(m.iH(),function(e){return e.quality}),m.length&&(m[0]==="auto"&&m.shift(),m=m.concat(["auto"])),m):[]}; +g.p.j6=function(){return this.getAvailableQualityLevels(1)}; +g.p.kT=function(){return this.Bl()}; +g.p.nQ=function(){return 1}; +g.p.getVideoLoadedFraction=function(m){return this.app.getVideoLoadedFraction(m)}; +g.p.Bl=function(){return this.getVideoLoadedFraction()}; +g.p.JG=function(){return 0}; +g.p.getSize=function(){var m=this.app.YA().getPlayerSize();return{width:m.width,height:m.height}}; +g.p.setSize=function(){this.app.YA().resize()}; +g.p.loadVideoById=function(m,e,Z,M){if(!m)return!1;m=eg(m,e,Z);return this.app.loadVideoByPlayerVars(m,M)}; +g.p.aN=function(m,e,Z){m=this.loadVideoById(m,e,Z,1);AT(this.app,m,1)}; +g.p.cueVideoById=function(m,e,Z,M){m=eg(m,e,Z);this.app.cueVideoByPlayerVars(m,M)}; +g.p.Q2=function(m,e,Z){this.cueVideoById(m,e,Z,1)}; +g.p.loadVideoByUrl=function(m,e,Z,M){m=fws(m,e,Z);return this.app.loadVideoByPlayerVars(m,M)}; +g.p.RN=function(m,e,Z){m=this.loadVideoByUrl(m,e,Z,1);AT(this.app,m,1)}; +g.p.cueVideoByUrl=function(m,e,Z,M){m=fws(m,e,Z);this.app.cueVideoByPlayerVars(m,M)}; +g.p.ev=function(m,e,Z){this.cueVideoByUrl(m,e,Z,1)}; +g.p.Dd=function(){var m=this.app.J(),e=pi(this.app),Z=void 0;e.isLivePlayback||(Z=Math.floor(this.app.getCurrentTime(1)));return m.getVideoUrl(e.videoId,this.getPlaylistId()||void 0,Z)}; +g.p.e6=function(){return this.app.getDebugText()}; +g.p.getVideoEmbedCode=function(){var m=this.app.J(),e=pi(this.app);return m.getVideoEmbedCode(e.isPrivate?"":e.title,pi(this.app).videoId,this.app.YA().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.p.vD=function(m,e,Z){return fb(this.app,m,e,Z)}; +g.p.removeCueRange=function(m){return Czy(this.app,m)}; +g.p.loadPlaylist=function(m,e,Z,M){this.app.loadPlaylist(m,e,Z,M)}; +g.p.Ju=function(m,e,Z,M){this.loadPlaylist(m,e,Z,M);AT(this.app,!0,1)}; +g.p.cuePlaylist=function(m,e,Z,M){this.app.cuePlaylist(m,e,Z,M)}; +g.p.nextVideo=function(m,e){this.app.nextVideo(m,e)}; +g.p.bE=function(){this.nextVideo();AT(this.app,!0,1)}; +g.p.previousVideo=function(m){this.app.previousVideo(m)}; +g.p.MK=function(){this.previousVideo();AT(this.app,!0,1)}; +g.p.playVideoAt=function(m){this.app.playVideoAt(m)}; +g.p.Y6=function(m){this.playVideoAt(m);AT(this.app,!0,1)}; +g.p.setShuffle=function(m){var e=this.app.getPlaylist();e&&e.setShuffle(m)}; +g.p.setLoop=function(m){var e=this.app.getPlaylist();e&&(e.loop=m)}; +g.p.HH=function(){var m=this.app.getPlaylist();if(!m)return null;for(var e=[],Z=0;ZM?M:l);return{airingStart:k,airingEnd:q,allowSeeking:this.app.JZ(),clipEnd:e.clipEnd, +clipStart:e.clipStart,current:K,displayedStart:-1,duration:m,ingestionTime:S,isAtLiveHead:a,loaded:v,seekableStart:X,seekableEnd:x,offset:Z,viewerLivestreamJoinMediaTime:M}}; +g.p.isInline=function(){return this.app.isInline()}; +g.p.setInline=function(m){this.app.setInline(m)}; +g.p.xT=function(){return g.qq(this.app,1).pR(!0)}; +g.p.toggleSubtitles=function(){var m=wZ(this.app.QW());m&&m.aB()}; +g.p.getPlayerSize=function(){var m=this.app.YA().getPlayerSize();return{width:m.width,height:m.height}}; +g.p.setCenterCrop=function(m){this.app.YA().setCenterCrop(m)}; +g.p.getLoopVideo=function(){return this.app.getLoopVideo()}; +g.p.setLoopVideo=function(m){this.app.setLoopVideo(m)}; +var UC1="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var yy={},bOt=(yy["api.invalidparam"]=2,yy.auth=150,yy["drm.auth"]=150,yy["heartbeat.net"]=150,yy["heartbeat.servererror"]=150,yy["heartbeat.stop"]=150,yy["html5.unsupportedads"]=5,yy["fmt.noneavailable"]=5,yy["fmt.decode"]=5,yy["fmt.unplayable"]=5,yy["html5.missingapi"]=5,yy["html5.unsupportedlive"]=5,yy["drm.unavailable"]=5,yy["mrm.blocked"]=151,yy["embedder.identity.denied"]=152,yy);g.T(vB,pZ);g.p=vB.prototype;g.p.isExternalMethodAvailable=function(m,e){return this.state.j[m]?!0:!(!this.state.N[m]||!e)}; +g.p.getBandwidthEstimate=function(){return Dg(this.app.J().schedule)}; +g.p.reportPlaybackIssue=function(m){m=m===void 0?"":m;var e=g.qq(this.app);e&&(m={gpu:Je(),d:m},e.handleError(new g.tw("feedback",m)))}; +g.p.getInternalApi=function(){return Object.assign({},this.state.S)}; +g.p.getInternalApiInterface=function(){return g.UA(this.state.S)}; +g.p.queueNextVideo=function(m,e,Z,M,k){Z=Z===void 0?NaN:Z;this.app.queueNextVideo(m,e,Z,M===void 0?"":M,k===void 0?"":k)}; +g.p.BH=function(m){m=this.app.getPlayerStateObject(m);return{isBuffering:g.y(m,1),isCued:m.isCued(),isDomPaused:g.y(m,1024),isEnded:g.y(m,2),isError:g.y(m,128),isOrWillBePlaying:m.isOrWillBePlaying(),isPaused:m.isPaused(),isPlaying:m.isPlaying(),isSeeking:g.y(m,16),isUiSeeking:g.y(m,32),isUnstarted:g.y(m,64)}}; +g.p.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; +g.p.startSeekCsiAction=function(){this.app.jB().Z.X=(0,g.G)()}; +g.p.Fs=function(m,e,Z){return this.getCurrentTime(m===void 0?1:m,e,Z)}; +g.p.seekToStreamTime=function(m,e,Z,M){var k=this.app;e=e===void 0?!0:e;var K=g.qq(k,1),q=0;K&&K.getStreamTimeOffset()&&!K.cq()&&(q=K.getStreamTimeOffset());dp(k,m-q,e,Z,1,M)}; +g.p.getStreamTimeOffset=function(){var m=g.qq(this.app,1);return m?m.getStreamTimeOffset():0}; +g.p.seekToLiveHead=function(m,e){var Z=g.qq(this.app,1);Z&&(Z=Z.getVideoData())&&Z.isLivePlayback&&dp(this.app,Infinity,m,e,1)}; +g.p.requestSeekToWallTimeSeconds=function(m,e){var Z=g.qq(this.app,1);Z&&Z.QY(m,e)}; +g.p.rP=function(m,e,Z,M,k){this.seekTo(m,e,Z,M===void 0?1:M,k)}; +g.p.PJ=function(m,e,Z,M){this.seekBy(m,e,Z,M,1)}; +g.p.setVolume=function(m,e){this.zp(m,e===void 0?!0:e)}; +g.p.mute=function(m){this.VA(m===void 0?!0:m)}; +g.p.unMute=function(m){this.lM(m===void 0?!0:m)}; +g.p.syncVolume=function(){var m=Mut(this.app);ua(this.app,{volume:m.volume,muted:m.muted},!1)}; +g.p.getAvailableQualityLabels=function(){var m=g.qq(this.app,1);return m?g.qI(m.iH(),function(e){return e.qualityLabel}):[]}; +g.p.channelSubscribed=function(){this.jr("SUBSCRIBE",pi(this.app).h0)}; +g.p.channelUnsubscribed=function(){this.jr("UNSUBSCRIBE",pi(this.app).h0)}; +g.p.setScreenLayer=function(m){this.app.setScreenLayer(m)}; +g.p.getCurrentPlaylistSequence=function(){return g.qq(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; +g.p.getPlaylistSequenceForTime=function(m){return g.qq(this.app).getPlaylistSequenceForTime(m)}; +g.p.shouldSendVisibilityState=function(){return!0}; +g.p.confirmYpcRental=function(){var m=g.qq(this.app,1);m&&m.ZQ("ypc_clickwrap")}; +g.p.setHomeGroupInfo=function(m){this.app.J().homeGroupInfo=m}; +g.p.setConnectedRemoteApps=function(m){this.app.J().JJ=m}; +g.p.setLivingRoomAppMode=function(m){this.app.J().livingRoomAppMode=PO("LIVING_ROOM_APP_MODE_UNSPECIFIED",m,qhI)}; +g.p.setEnablePrivacyFilter=function(m){this.app.J().enablePrivacyFilter=m===void 0?!1:m}; +g.p.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; +g.p.addUtcCueRange=function(m,e,Z,M,k){return AJb(this.app,m,e,Z,M,k)}; +g.p.Tu=function(m){m=m===void 0?1:m;var e=this.VN(m);if(m=g.qq(this.app,m)){m=m.getVideoData();e.hasProgressBarBoundaries=m.hasProgressBarBoundaries();e.isPremiere=m.isPremiere;e.itct=m.nB;e.playerResponseCpn=m.playerResponseCpn;var Z;var M=m.hasProgressBarBoundaries()&&((Z=m.progressBarStartPosition)==null?0:Z.utcTimeMillis)?g.ap(m.progressBarStartPosition.utcTimeMillis):null;e.progressBarStartPositionUtcTimeMillis=M;var k;Z=m.hasProgressBarBoundaries()&&((k=m.progressBarEndPosition)==null?0:k.utcTimeMillis)? +g.ap(m.progressBarEndPosition.utcTimeMillis):null;e.progressBarEndPositionUtcTimeMillis=Z;e.ypcOriginalItct=m.uv;e.ypcPreview=m.ypcPreview;e.paidContentOverlayText=Why(m);e.paidContentOverlayDurationMs=z73(m);m.X&&lR(m.X)&&(e.usingLocalMedia="true");e.transitionEndpointAtEndOfStream=m.transitionEndpointAtEndOfStream}return e}; +g.p.getAdState=function(){return this.app.getAdState()}; +g.p.isNotServable=function(m){if(m!==this.app.config.args.video_id)return!1;var e=(m=(m=g.qq(this.app,1))?m.getPlayerState():null)?m.wG:null;return!!(m&&e&&g.y(m,128)&&tCK(e.errorCode)===5)}; +g.p.supportsGaplessAudio=function(){return this.app.J().supportsGaplessAudio()}; +g.p.supportsGaplessShorts=function(){return this.app.J().supportsGaplessShorts()}; +g.p.enqueueVideoByPlayerVars=function(m,e,Z,M){Z=Z===void 0?Infinity:Z;this.app.enqueueVideoByPlayerVars(m,e,Z,M===void 0?"":M)}; +g.p.clearQueue=function(){this.app.clearQueue()}; +g.p.Am=function(){return g.Mq(this)}; +g.p.sendAbandonmentPing=function(){var m=g.qq(this.app);m&&m.sendAbandonmentPing()}; +g.p.setAutonavState=function(m,e){e=e===void 0?!1:e;if(this.W("web_player_autonav_use_server_provided_state")&&!e&&(e=pi(this.app),e==null?0:f_P(e))){if(this.W("web_player_autonav_server_provided_state_pause_killswitch"))return;if(m===3)e.autonavState!==3&&(e.Zp=e.autonavState);else if(e.Zp!==void 0)m=e.Zp,e.Zp=void 0;else return}e=this.app;pi(e).autonavState=m;g.kE("yt-player-autonavstate",m);e.Fq.Pv("autonavchange",m)}; +g.p.setAutonav=function(m,e){this.setAutonavState(m?2:1,e===void 0?!1:e)}; +g.p.setLoopRange=function(m){this.app.setLoopRange(m)}; +g.p.getLoopRange=function(){return this.app.getLoopRange()}; +g.p.hasSupportedAudio51Tracks=function(){var m;return!((m=g.qq(this.app,1))==null||!m.hasSupportedAudio51Tracks())}; +g.p.setUserAudio51Preference=function(m,e){e=e===void 0?!1:e;var Z=g.qq(this.app,1);Z&&Z.setUserAudio51Preference(m,e)}; +g.p.getUserAudio51Preference=function(){var m,e;return(e=(m=g.qq(this.app,1))==null?void 0:m.getUserAudio51Preference())!=null?e:1}; +g.p.setProximaLatencyPreference=function(m){var e=g.qq(this.app,1);e&&e.setProximaLatencyPreference(m)}; +g.p.getProximaLatencyPreference=function(){var m=g.qq(this.app,1);return m?m.getProximaLatencyPreference():0}; +g.p.isProximaLatencyEligible=function(){var m=g.qq(this.app,1);return m?m.isProximaLatencyEligible():!1}; +g.p.getAppState=function(){return this.app.getAppState()}; +g.p.updateLastActiveTime=function(){Sv()}; +g.p.setBlackout=function(m){this.app.setBlackout(m)}; +g.p.setUserEngagement=function(m){this.app.J().y$!==m&&(this.app.J().y$=m,(m=g.qq(this.app,1))&&h_(m))}; +g.p.updateSubtitlesUserSettings=function(m,e){e=e===void 0?!0:e;wZ(this.app.QW()).vk(m,e)}; +g.p.getCaptionWindowContainerId=function(){var m=wZ(this.app.QW());return m?m.getCaptionWindowContainerId():""}; +g.p.toggleSubtitlesOn=function(){var m=wZ(this.app.QW());m&&m.eZ()}; +g.p.isSubtitlesOn=function(){var m=wZ(this.app.QW());return m?m.isSubtitlesOn():!1}; +g.p.getPlayerResponse=function(m){return(m=g.qq(this.app,m))?m.getVideoData().getPlayerResponse():null}; +g.p.Vm=function(){return this.getPlayerResponse(1)}; +g.p.getEmbeddedPlayerResponse=function(){var m=g.qq(this.app,1);return m?m.getVideoData().getEmbeddedPlayerResponse():null}; +g.p.getWatchNextResponse=function(m){return(m=g.qq(this.app,m))?m.getVideoData().getWatchNextResponse():null}; +g.p.tG=function(){return this.getWatchNextResponse(1)}; +g.p.getHeartbeatResponse=function(m){return(m=g.qq(this.app,m))?m.getVideoData().getHeartbeatResponse():null}; +g.p.ym=function(){return this.getHeartbeatResponse(1)}; +g.p.getStoryboardFrame=function(m,e){var Z=this.app.zW();if(!Z)return null;e=Z.levels[e];if(!e)return null;m>=e.yU()&&e.L3();Z=Math.floor(m/(e.columns*e.rows));var M=e.columns*e.rows,k=m%M;m=k%e.columns;k=Math.floor(k/e.columns);var K=e.L3()+1-M*Z;if(Kq&&q!==0&&e.X===q)))){var S;K=lU(m,(S=k.X)==null?void 0:S.videoInfos);S=m.G.getPlaybackRate();S>1&&K&&(S=BUc(m.V.S,k.X.videoInfos,S),e.X!==0&&S=480;if(m.W("html5_exponential_memory_for_sticky")){a=m.V.XG;v=1;var X=X===void 0?!1:X;Wuy(a,"sticky-lifetime");a.values["sticky-lifetime"]&&a.E2["sticky-lifetime"]||(a.values["sticky-lifetime"]=0,a.E2["sticky-lifetime"]=0);X&&sn(a,"sticky-lifetime")>.0625&&(v=a.E2["sticky-lifetime"]*2);a.values["sticky-lifetime"]+=1*Math.pow(2, +a.X/v);a.E2["sticky-lifetime"]=v;a.Z.start()}if(m.W("html5_perf_cap_override_sticky")){X=m.U;a=m.W("html5_perserve_av1_perf_cap");a=a===void 0?!1:a;if(a===void 0?0:a){var x=GE(),l=g.r(Object.keys(x));for(v=l.next();!v.done;v=l.next())v=v.value,v.indexOf("1")!==0&&delete x[v];g.kE("yt-player-performance-cap",x,2592E3)}else try{x=Mr(),l=Z2(),x&&x.remove("yt-player-performance-cap"),l&&l.remove("yt-player-performance-cap")}catch(R){}It7(a);if(a){x=g.r(JB.keys());for(l=x.next();!l.done;l=x.next())l=l.value, +l.startsWith("1")||JB.delete(l);x=g.r(RW.values());for(l=x.next();!l.done;l=x.next())l=l.value,l.startsWith("1")||RW.delete(l);x=g.r(X.keys());for(l=x.next();!l.done;l=x.next())l=l.value,l.startsWith("1")||X.delete(l)}else JB.clear(),RW.clear(),X.clear()}}M.D&&(x=M.D,Z=Z||"",x.policy.X?w2(x.S.X,Z):w2(x.X.L,Z));h_(M)}}; +g.p.L9=function(m,e,Z){this.setPlaybackQualityRange(m,e,Z,1)}; +g.p.onAdUxClicked=function(m,e){this.Pv("aduxclicked",m,e)}; +g.p.showAirplayPicker=function(){this.app.showAirplayPicker()}; +g.p.dispatchReduxAction=function(m){Q8P.dispatch(m)}; +g.p.highlightSettingsMenuItem=function(m){this.Pv("highlightSettingsMenu",m)}; +g.p.openSettingsMenuItem=function(m){this.Pv("openSettingsMenuItem",m)}; +g.p.kq=function(m,e){this.state.X.subscribe(m,e)}; +g.p.pw=function(m,e){this.state.X.unsubscribe(m,e)}; +g.p.FZ=function(m,e){this.cueVideoByPlayerVars(m,e===void 0?1:e)}; +g.p.u4=function(m,e,Z,M){this.loadVideoByPlayerVars(m,e,Z===void 0?1:Z,M)}; +g.p.g1=function(m,e,Z,M){this.preloadVideoByPlayerVars(m,e===void 0?1:e,Z,M)}; +g.p.getFeedbackProductData=function(){return this.app.getFeedbackProductData()}; +g.p.nN=function(){return g.Mq(this).nN()}; +g.p.Dw=function(){return g.Mq(this).Dw()}; +g.p.P9=function(){this.Am().P9()}; +g.p.renderChapterSeekingAnimation=function(m,e,Z){this.Am().renderChapterSeekingAnimation(m,e,Z)}; +g.p.getWebPlayerContextConfig=function(){return this.app.J().getWebPlayerContextConfig()}; +g.p.notifyShortsAdSwipeEvent=function(){this.Pv("shortsadswipe")}; +g.p.a$=function(){var m=g.qq(this.app);return m?m.a$():""};g.T(g.g4,vB);g.p=g.g4.prototype;g.p.In=function(m,e,Z,M,k,K,q){return this.app.In(m,e,Z,M,k,K,q)}; +g.p.Dt=function(){return this.app.Dt()}; +g.p.QW=function(){return this.app.QW()}; +g.p.getRootNode=function(){return this.YA().element}; +g.p.J=function(){return this.app.J()}; +g.p.Z3=Zk(4);g.p.R_=function(m){return this.app.R_(m)}; +g.p.v9=function(){var m;return((m=g.Mq(this))==null?void 0:m.v9())||null}; +g.p.getPlayerStateObject=function(m){return this.app.getPlayerStateObject(m)}; +g.p.YA=function(){return this.app.YA()}; +g.p.getPlaylist=function(){return this.app.getPlaylist()}; +g.p.getVideoData=function(m){var e=g.qq(this.app,m);if(!e)return null;e=e.getVideoData();var Z;if(e.enableServerStitchedDai&&m===2||g.gA(e)&&m!==1)a:{var M=this.app;nb(M,"gssvd");e=M.getVideoData();if(M.MP){m=M.MP;M=M.getCurrentTime();if(m.SW)var k=void 0;else{var K=void 0;m.UZ&&(K=m.Z.get(m.UZ));if(!K){K=u2y(m,M*1E3);var q=(k=K)==null?void 0:k.cpn;m.UZ?q&&m.UZ!==q&&m.G.B("sdai",{cpcnm:q+"_"+m.UZ,cmt:M.toFixed(3)}):m.G.B("sdai",{cpcna:q,cmt:M.toFixed(3)})}k=(Z=K)==null?void 0:Z.videoData}e=k||e}else if(M.u9&& +M.aO){Z=M.u9.getVideoData(m);break a}Z=e}else Z=e;return Z}; +g.p.zW=function(m){return this.app.zW(m)}; +g.p.Ly=function(){return this.app.Ly()}; +g.p.isHdr=function(){var m=g.qq(this.app);return m?m.isHdr():!1}; +g.p.vY=function(){var m=g.Mq(this),e=this.getVideoData();m=m?m.pN:this.getPlayerSize();var Z=!!this.getPlaylist();return!(!e||!e.vY(new g.cF(m.width,m.height),Z))}; +g.p.DX=Zk(8);g.p.aE=function(m,e,Z,M,k){this.app.XJ(m,e,Z,M,k)}; +g.p.eP=Zk(10);g.p.playVideo=function(m,e){try{if(this.getPresentingPlayerType()===3){x6(this.app.QW()).RP("control_play");return}if(!m&&this.getPresentingPlayerType()===2){var Z=wH(this.app.QW());if(Z&&Z.LY())return}}catch(M){g.DA(M)}this.app.playVideo(m,e)}; +g.p.stopVideo=function(m){g.qq(this.app,m).stopVideo()}; +g.p.jI=function(m){g.qq(this.app,m).jI()}; +g.p.addEventListener=function(m,e){this.state.U.subscribe(m,e)}; +g.p.removeEventListener=function(m,e){this.state.U.unsubscribe(m,e)}; +g.p.d8=Zk(12);g.p.setPlaybackQuality=function(m,e){this.setPlaybackQualityRange(m,m,e)}; +g.p.iH=function(){var m={},e=g.qq(this.app).iH();e=g.r(e);for(var Z=e.next();!Z.done;Z=e.next())Z=Z.value,m[Z.quality]=Z;return m}; +g.p.U6=function(){return g.qq(this.app).U6()}; +g.p.getVideoUrl=function(m,e,Z,M){var k=this.getPresentingPlayerType(),K=k===2;if(M&&K||k===3)K=!1,k=1;M=this.getVideoData(k);if(!M)return"";var q;m||M.isLivePlayback||(q=Math.floor(this.getCurrentTime(k)));m=K?void 0:this.getPlaylistId()||void 0;e&&m==="WL"&&(m=void 0);return this.app.getVideoUrl(M.videoId,m,q,e,Z)}; +g.p.C6=function(m){var e=g.qq(this.app);e&&e.C6(m)}; +g.p.eB=Zk(16);g.p.kH=Zk(20);g.p.j8=Zk(22);g.p.dW=function(){var m=g.qq(this.app);m&&m.dW()}; +g.p.xZ=function(m){this.Ns("onVideoAreaChange");this.Ns(m?"onShowControls":"onHideControls")}; +g.p.QV=Zk(24);g.p.NJ=function(){var m=this.QW().i7.get("heartbeat");return!!m&&m.NJ()}; +g.p.JZ=function(){var m=this.J();if(m.Sp||m.disableSeek)return!1;var e=g.qq(this.app);if(!e)return!1;var Z=e.getVideoData();if(!Z.J5()||g.fI(Z)||this.getPresentingPlayerType()===2&&!this.app.Ex()||Z.NO()&&this.getPresentingPlayerType(!0)===2||e.s7()&&this.getPresentingPlayerType()!==3)return!1;m=eA(m);return CA(m)&&!Z.BX||k6(this.app)?!1:!0}; +g.p.qS=function(){var m;return((m=g.qq(this.app))==null?void 0:m.qS)||!1}; +g.p.isLifaAdPlaying=function(){var m,e=(m=this.getVideoData())==null?void 0:m.NO();return this.getPresentingPlayerType(e)===2}; +g.p.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()}; +g.p.Rf=function(){var m=g.qq(this.app);m&&m.Rf()}; +g.p.sendVideoStatsEngageEvent=function(m,e,Z){this.app.sendVideoStatsEngageEvent(m,Z,e)}; +g.p.IF=function(m,e,Z){this.app.Ed(m,e,Z)}; +g.p.n0=function(m,e){this.app.ZL(m,e)}; +g.p.Q_=function(m,e){$8(this.app,m,e)}; +g.p.Ej=function(m){var e=g.qq(this.app);return e?e.bP.Ej(m):!1}; +g.p.Yr=function(m){return this.app.Yr(m)}; +g.p.ZQ=function(m,e){(e=g.qq(this.app,e))&&e.ZQ(m)}; +g.p.s7=function(){var m=g.qq(this.app);return m?m.s7():!0}; +g.p.w$=function(){var m=this.getVideoData();return!!m&&(m.w$()||!!m.hlsFormats||!!m.uw)}; +g.p.getPlaybackRate=function(){return g.qq(this.app,1).getPlaybackRate()}; +g.p.setPlaybackRate=function(m,e){this.app.setPlaybackRate(m,e)}; +g.p.fJ=function(){return this.app.fJ()}; +g.p.jB=function(){return this.app.jB()}; +g.p.QQ=Zk(29);g.p.createClientVe=function(m,e,Z,M){this.J().Y&&this.app.Vo.createClientVe(m,e,Z,M===void 0?!1:M)}; +g.p.createServerVe=function(m,e,Z){this.J().Y&&this.app.Vo.createServerVe(m,e,Z===void 0?!1:Z)}; +g.p.setTrackingParams=function(m,e){this.J().Y&&this.app.Vo.setTrackingParams(m,e)}; +g.p.logClick=function(m,e){this.J().Y&&(this.app.Vo.click(m,e),this.Pv("veClickLogged",m))}; +g.p.logVisibility=function(m,e,Z){this.J().Y&&this.app.Vo.kC(m,e,Z)}; +g.p.hasVe=function(m){return this.J().Y?this.app.Vo.hasVe(m):!1}; +g.p.destroyVe=function(m){this.J().Y&&this.app.Vo.destroyVe(m)}; +g.p.Jf=function(){return g.qq(this.app)}; +g.p.getPresentingPlayerType=function(m){return this.app.getPresentingPlayerType(m)}; +g.p.TH=function(){this.app.TH()}; +g.p.Ho=function(m,e){return this.app.Ho(m,e)}; +g.p.Rw=function(m){this.app.Rw(m)}; +g.p.Z5=function(){this.app.Z5()}; +g.p.yZ=function(){return this.app.yZ()}; +g.p.addPlayerResponseForAssociation=function(m){this.app.addPlayerResponseForAssociation(m)}; +g.p.finishSegmentByCpn=function(m,e,Z){return this.app.finishSegmentByCpn(m,e,Z)}; +g.p.V7=function(){return this.app.V7()}; +g.p.rW=Zk(32);g.p.LL=function(m){var e;(e=wZ(this.QW()))==null||e.LL(m)}; +g.p.lU=Zk(35);g.p.VJ=function(m,e,Z){this.app.VJ(m,e,Z===void 0?0:Z)}; +g.p.SO=function(){return this.app.SO()}; +g.p.Ex=function(){return this.app.Ex()}; +g.p.Cy=function(m,e,Z){return this.app.Cy(m,e,Z)}; +g.p.B=function(m,e,Z,M){Z=Z===void 0?!1:Z;var k;(k=g.qq(this.app,M))==null||k.B(m,e,Z)}; +g.p.uu=Zk(36);g.p.aP=Zk(37);g.p.PB=Zk(38);g.p.U3=Zk(40);g.p.QD=Zk(42);g.p.H3=function(m){this.app.H3(m)}; +g.p.Lv=function(){g.qq(this.app,1).Lv()}; +g.p.o4=function(){this.app.o4()}; +g.p.getGetAdBreakContext=function(){var m=g.qq(this.app,1);return(m==null?void 0:m.getVideoData().getGetAdBreakContext(m.getCurrentTime(),m.cq()))||void 0};var hE;g.T(RU,ad);RU.prototype.r$=function(m,e){m=ad.prototype.r$.call(this,m,e);return Object.assign({},m,this.DM)};var b8K,jT,syc; +b8K={xm:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",M4:"AUTHENTICATION_MALFORMED",sF:"AUTHENTICATION_MISSING",Ie:"BAD_REQUEST",wD:"CAST_SESSION_DEVICE_MISMATCHED",ez:"CAST_SESSION_VIDEO_MISMATCHED",G8:"CAST_TOKEN_EXPIRED",yC:"CAST_TOKEN_FAILED",cL:"CAST_TOKEN_MALFORMED",VC:"CGI_PARAMS_MALFORMED",BL:"CGI_PARAMS_MISSING",iA:"DEVICE_FALLBACK",Mx:"GENERIC_WITH_LINK_AND_CPN",s$:"ERROR_HDCP",b5:"LICENSE",Ik:"VIDEO_UNAVAILABLE",eK:"FORMAT_UNAVAILABLE",VT:"GEO_FAILURE",D1:"HTML5_AUDIO_RENDERER_ERROR", +u5:"GENERIC_WITHOUT_LINK",zD:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Rk:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",fS:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",KS:"HTML5_SPS_UMP_STATUS_REJECTED",Uz:"INVALID_DRM_MESSAGE",d_:"PURCHASE_NOT_FOUND",He:"PURCHASE_REFUNDED",JQ:"RENTAL_EXPIRED",R5:"RETRYABLE_ERROR",Oc:"SERVER_ERROR",SA:"SIGNATURE_EXPIRED",mD:"STOPPED_BY_ANOTHER_PLAYBACK",gg:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",lI:"STREAMING_NOT_ALLOWED",LM:"STREAM_LICENSE_NOT_FOUND",Q0:"TOO_MANY_REQUESTS", +Fc:"TOO_MANY_REQUESTS_WITH_LINK",Er:"TOO_MANY_STREAMS_PER_ENTITLEMENT",wg:"TOO_MANY_STREAMS_PER_USER",Rg:"UNSUPPORTED_DEVICE",fM:"VIDEO_FORBIDDEN",KM:"VIDEO_NOT_FOUND",Ft:"BROWSER_OR_EXTENSION_ERROR"};jT={}; +g.Qe=(jT.ALREADY_PINNED_ON_A_DEVICE="\u062a\u0645 \u062a\u0646\u0632\u064a\u0644 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0639\u0644\u0649 \u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 \u0645\u0646 \u0639\u062f\u062f \u0627\u0644\u0623\u062c\u0647\u0632\u0629 \u0627\u0644\u0630\u064a \u064a\u0633\u0645\u062d \u0628\u0647 \u0635\u0627\u062d\u0628 \u062d\u0642\u0648\u0642 \u0627\u0644\u0637\u0628\u0639 \u0648\u0627\u0644\u0646\u0634\u0631. \u0644\u062a\u062a\u0645\u0643\u0646 \u0645\u0646 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0647\u0646\u0627\u060c \u064a\u062c\u0628 \u0625\u0632\u0627\u0644\u0629 \u062a\u062b\u0628\u064a\u062a\u0647 \u0645\u0646 \u062c\u0647\u0627\u0632 \u0622\u062e\u0631.",jT.DEVICE_FALLBACK= +"\u0639\u0630\u0631\u064b\u0627\u060c \u0625\u0646 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062c\u0647\u0627\u0632.",jT.GENERIC_WITH_LINK_AND_CPN="\u062d\u062f\u062b \u062e\u0637\u0623. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627. (\u0631\u0642\u0645 \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u062a\u0634\u063a\u064a\u0644: $CPN) $BEGIN_LINK\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a$END_LINK", +jT.LICENSE="\u0639\u0630\u0631\u064b\u0627\u060c \u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062a\u0631\u062e\u064a\u0635 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.VIDEO_UNAVAILABLE="\u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d",jT.FORMAT_UNAVAILABLE="\u0644\u0627 \u064a\u062a\u0648\u0641\u0651\u0631 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0628\u0627\u0644\u062c\u0648\u062f\u0629 \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627.", +jT.GEO_FAILURE="\u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u063a\u064a\u0631 \u0645\u062a\u0627\u062d \u0641\u064a \u0628\u0644\u062f\u0643.",jT.HTML5_AUDIO_RENDERER_ERROR="\u062d\u062f\u062b \u062e\u0637\u0623 \u0641\u064a \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0635\u0648\u062a. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u062c\u0647\u0627\u0632 \u0627\u0644\u0643\u0645\u0628\u064a\u0648\u062a\u0631.",jT.GENERIC_WITHOUT_LINK= +"\u062d\u062f\u062b \u062e\u0637\u0623. \u064a\u064f\u0631\u062c\u0649 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u062c\u062f\u062f\u064b\u0627 \u0641\u064a \u0648\u0642\u062a \u0644\u0627\u062d\u0642.",jT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u062a\u0646\u0633\u064a\u0642 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0647\u0630\u0627 \u063a\u064a\u0631 \u0645\u062a\u0648\u0627\u0641\u0642.",jT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u0644\u0627 \u064a\u062f\u0639\u0645 \u0627\u0644\u0645\u062a\u0635\u0641\u062d \u0627\u0644\u0630\u064a \u062a\u0633\u062a\u062e\u062f\u0645\u0647 \u0623\u064a\u064b\u0627 \u0645\u0646 \u062a\u0646\u0633\u064a\u0642\u0627\u062a \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u0645\u062a\u0648\u0641\u0631\u0629 \u062d\u0627\u0644\u064a\u064b\u0627. $BEGIN_LINK\u0627\u0646\u0642\u0631 \u0647\u0646\u0627 \u0644\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0634\u0627\u0626\u0639\u0629 \u0639\u0646 \u0641\u064a\u062f\u064a\u0648 HTML5.\u200f$END_LINK", +jT.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u0644\u0627 \u064a\u0645\u0643\u0646 \u0644\u0644\u0645\u062a\u0635\u0641\u0651\u062d \u0627\u0644\u062e\u0627\u0635 \u0628\u0643 \u062a\u0634\u063a\u064a\u0644 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648. $BEGIN_LINK\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a$END_LINK",jT.HTML5_SPS_UMP_STATUS_REJECTED="\u062d\u062f\u062b \u062e\u0637\u0623. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629 \u0623\u0648 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627. $BEGIN_LINK\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a$END_LINK", +jT.INVALID_DRM_MESSAGE="\u0627\u0644\u0631\u0633\u0627\u0644\u0629 \u0627\u0644\u0645\u062a\u0639\u0644\u0642\u0629 \u0628\u0646\u0638\u0627\u0645 \u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u062d\u0642\u0648\u0642 \u0627\u0644\u0631\u0642\u0645\u064a\u0629 (DRM) \u063a\u064a\u0631 \u0635\u0627\u0644\u062d\u0629.",jT.PURCHASE_NOT_FOUND="\u064a\u062c\u0628 \u0634\u0631\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0644\u0645\u0634\u0627\u0647\u062f\u062a\u0647.",jT.PURCHASE_REFUNDED= +"\u062a\u0645 \u0631\u062f \u0627\u0644\u0623\u0645\u0648\u0627\u0644 \u0627\u0644\u0645\u062f\u0641\u0648\u0639\u0629 \u0644\u0634\u0631\u0627\u0621 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.RENTAL_EXPIRED="\u0627\u0646\u062a\u0647\u062a \u0635\u0644\u0627\u062d\u064a\u0629 \u062a\u0623\u062c\u064a\u0631 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.CAST_SESSION_DEVICE_MISMATCHED="\u0644\u0627 \u064a\u062a\u0637\u0627\u0628\u0642 \u0627\u0644\u062c\u0647\u0627\u0632 \u0641\u064a \u062c\u0644\u0633\u0629 \u0627\u0644\u0628\u062b \u0645\u0639 \u0627\u0644\u062c\u0647\u0627\u0632 \u0627\u0644\u0645\u0637\u0644\u0648\u0628.", +jT.CAST_SESSION_VIDEO_MISMATCHED="\u0644\u0627 \u064a\u062a\u0637\u0627\u0628\u0642 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0641\u064a \u062c\u0644\u0633\u0629 \u0627\u0644\u0628\u062b \u0645\u0639 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u0645\u0637\u0644\u0648\u0628.",jT.CAST_TOKEN_FAILED="\u062c\u0644\u0633\u0629 \u0627\u0644\u0628\u062b \u063a\u064a\u0631 \u0645\u062a\u0627\u062d\u0629. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629 \u0623\u0648 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627.", +jT.CAST_TOKEN_EXPIRED="\u0627\u0646\u062a\u0647\u062a \u0635\u0644\u0627\u062d\u064a\u0629 \u062c\u0644\u0633\u0629 \u0627\u0644\u0628\u062b. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629.",jT.CAST_TOKEN_MALFORMED="\u062c\u0644\u0633\u0629 \u0627\u0644\u0628\u062b \u063a\u064a\u0631 \u0635\u0627\u0644\u062d\u0629. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629 \u0623\u0648 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627.", +jT.SERVER_ERROR="\u062d\u062f\u062b \u062e\u0637\u0623 \u062f\u0627\u062e\u0644\u064a \u0641\u064a \u0627\u0644\u062e\u0627\u062f\u0645. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627.",jT.STOPPED_BY_ANOTHER_PLAYBACK="\u064a\u0634\u063a\u0651\u0644 \u062d\u0633\u0627\u0628\u0643 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0641\u064a \u0645\u0648\u0642\u0639 \u0622\u062e\u0631. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0647\u0630\u0647 \u0627\u0644\u0635\u0641\u062d\u0629 \u0644\u0627\u0633\u062a\u0626\u0646\u0627\u0641 \u0627\u0644\u0645\u0634\u0627\u0647\u062f\u0629.", +jT.STREAM_LICENSE_NOT_FOUND="\u062a\u0645 \u0625\u064a\u0642\u0627\u0641 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648. \u064a\u0631\u062c\u0649 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0645\u0646 \u062c\u062f\u064a\u062f.",jT.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u062a\u0645 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0639\u062f\u062f \u0643\u062b\u064a\u0631 \u062c\u062f\u064b\u0627 \u0645\u0646 \u0627\u0644\u0623\u062c\u0647\u0632\u0629/\u0639\u0646\u0627\u0648\u064a\u0646 IP \u0641\u064a \u063a\u0636\u0648\u0646 24 \u0633\u0627\u0639\u0629.", +jT.STREAMING_NOT_ALLOWED="\u0644\u0627 \u064a\u064f\u0633\u0645\u062d \u0628\u062a\u0634\u063a\u064a\u0644 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0644\u0623\u0646\u0647 \u0645\u064f\u062b\u0628\u062a \u0639\u0644\u0649 \u062c\u0647\u0627\u0632 \u0622\u062e\u0631.",jT.RETRYABLE_ERROR="\u062d\u062f\u062b \u062e\u0637\u0623 \u0645\u0624\u0642\u062a \u0641\u064a \u0627\u0644\u062e\u0627\u062f\u0645. \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627.", +jT.TOO_MANY_REQUESTS="\u064a\u064f\u0631\u062c\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0644\u0645\u0634\u0627\u0647\u062f\u0629 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.TOO_MANY_REQUESTS_WITH_LINK="\u064a\u064f\u0631\u062c\u0649$BEGIN_LINK\u0627\u0644\u0646\u0642\u0631 \u0647\u0646\u0627$END_LINK \u0644\u0645\u0634\u0627\u0647\u062f\u0629 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0639\u0644\u0649 YouTube.",jT.TOO_MANY_STREAMS_PER_USER= +"\u062a\u0648\u0642\u0641 \u0627\u0644\u062a\u0634\u063a\u064a\u0644 \u0628\u0633\u0628\u0628 \u0639\u0631\u0636 \u0639\u062f\u062f \u0643\u062b\u064a\u0631 \u062c\u062f\u064b\u0627 \u0645\u0646 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u0647\u0627\u062a \u0627\u0644\u062a\u0627\u0628\u0639\u0629 \u0644\u0644\u062d\u0633\u0627\u0628 \u0646\u0641\u0633\u0647.",jT.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u062a\u0648\u0642\u0641 \u0627\u0644\u062a\u0634\u063a\u064a\u0644 \u0628\u0633\u0628\u0628 \u0639\u0631\u0636 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0639\u0644\u0649 \u0639\u062f\u062f \u0643\u062b\u064a\u0631 \u062c\u062f\u064b\u0627 \u0645\u0646 \u0627\u0644\u0623\u062c\u0647\u0632\u0629.", +jT.UNSUPPORTED_DEVICE="\u0644\u0627 \u064a\u0639\u062a\u0645\u062f \u0647\u0630\u0627 \u0627\u0644\u062c\u0647\u0627\u0632 \u0625\u0645\u0643\u0627\u0646\u064a\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.VIDEO_FORBIDDEN="\u062a\u0645 \u062d\u0638\u0631 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.",jT.VIDEO_NOT_FOUND="\u062a\u0639\u0630\u0631 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u0641\u064a\u062f\u064a\u0648.", +jT.BROWSER_OR_EXTENSION_ERROR="\u062d\u062f\u062b \u062e\u0637\u0623. \u064a\u064f\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0635\u0641\u062d\u0629 \u0623\u0648 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629 \u0644\u0627\u062d\u0642\u064b\u0627. $BEGIN_LINK\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a$END_LINK",jT); +syc={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED", +5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var t4m=1;g.T(g.w4,g.Y);g.p=g.w4.prototype; +g.p.createElement=function(m,e){e=e||m.T==="svg";var Z=m.UE,M=m.mf;if(e){var k=document.createElementNS("http://www.w3.org/2000/svg",m.T);g.WE&&(m.oO||(m.oO={}),m.oO.focusable="false")}else k=g.SU(m.T);if(Z){if(Z=nZ(this,k,"class",Z))cB(this,k,"class",Z),this.yh[Z]=k}else if(M){Z=g.r(M);for(var K=Z.next();!K.done;K=Z.next())this.yh[K.value]=k;cB(this,k,"class",M.join(" "))}M=m.xG;Z=m.IO;if(M)e=nZ(this,k,"child",M),e!==void 0&&k.appendChild(g.ao(e));else if(Z)for(M=0,Z=g.r(Z),K=Z.next();!K.done;K= +Z.next())if(K=K.value)if(typeof K==="string")K=nZ(this,k,"child",K),K!=null&&k.appendChild(g.ao(K));else if(K.element)k.appendChild(K.element);else{var q=K;K=this.createElement(q,e);k.appendChild(K);q.At&&(q="ytp-id-"+t4m.toString(),t4m++,K.id=q,K=document.createElementNS("http://www.w3.org/2000/svg","use"),K.setAttribute("class","ytp-svg-shadow"),K.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+q),g.gN(k,K,M++))}if(m=m.oO)for(e=k,M=g.r(Object.keys(m)),Z=M.next();!Z.done;Z=M.next())Z=Z.value, +K=m[Z],cB(this,e,Z,typeof K==="string"?nZ(this,e,Z,K):K);return k}; +g.p.Vh=function(m){return this.yh[m]}; +g.p.e9=function(m,e){typeof e==="number"?g.gN(m,this.element,e):m.appendChild(this.element)}; +g.p.detach=function(){g.XN(this.element)}; +g.p.update=function(m){for(var e=g.r(Object.keys(m)),Z=e.next();!Z.done;Z=e.next())Z=Z.value,this.updateValue(Z,m[Z])}; +g.p.updateValue=function(m,e){(m=this.ZN["{{"+m+"}}"])&&cB(this,m[0],m[1],e)}; +g.p.LB=function(){this.yh={};this.ZN={};this.detach();g.Y.prototype.LB.call(this)};g.T(g.Nq,g.w4);g.p=g.Nq.prototype;g.p.SC=function(m){this.updateValue("content",m)}; +g.p.show=function(){this.U||(g.Eo(this.element,"display",""),this.U=!0)}; +g.p.hide=function(){this.U&&(g.Eo(this.element,"display","none"),this.U=!1)}; +g.p.kC=function(m){m?this.show():this.hide()}; +g.p.GO=function(m,e,Z){return this.ZG(this.element,m,e,Z)}; +g.p.ZG=function(m,e,Z,M){Z=(0,g.qd)(Z,M||this);M={target:m,type:e,listener:Z};this.listeners.push(M);m.addEventListener(e,Z);return M}; +g.p.gy=function(m){var e=this;this.listeners.forEach(function(Z,M){Z===m&&(Z=e.listeners.splice(M,1)[0],Z.target.removeEventListener(Z.type,Z.listener))})}; +g.p.focus=function(){this.element.focus()}; +g.p.LB=function(){for(;this.listeners.length;){var m=this.listeners.pop();m&&m.target.removeEventListener(m.type,m.listener)}g.w4.prototype.LB.call(this)};g.T(g.r4,g.Nq);g.r4.prototype.subscribe=function(m,e,Z){return this.N.subscribe(m,e,Z)}; +g.r4.prototype.unsubscribe=function(m,e,Z){return this.N.unsubscribe(m,e,Z)}; +g.r4.prototype.eO=function(m){return this.N.eO(m)}; +g.r4.prototype.Pv=function(m){return this.N.Pv.apply(this.N,[m].concat(g.Rt(g.Hy.apply(1,arguments))))};g.T(g.IU,g.Y);g.p=g.IU.prototype;g.p.show=function(m){this.state!==1&&this.state!==2&&(this.state===4&&this.Mv(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.X&&this.X()):this.element.U||(AE(this,!0),this.state=1,m?this.delay.start(m):this.Mv()))}; +g.p.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.U&&(AE(this,!0),this.state=4,this.delay.start(this.U)))}; +g.p.Mv=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:AE(this,!1);this.state=3;this.delay.start(this.S);break;case 3:this.state=null;this.X&&this.X();break;case 4:this.element.hide();AE(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}}; +g.p.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.Mv()}; +g.p.LB=function(){this.element.MU()||this.element.element.removeAttribute("aria-hidden");g.Y.prototype.LB.call(this)};g.T(g.CZ,g.r4);g.p=g.CZ.prototype;g.p.show=function(){var m=fZ(this);g.r4.prototype.show.call(this);if(this.K){this.L.ZG(window,"blur",this.s2);var e=this.L,Z=e.ZG;var M=this.hR.getRootNode();M=this.hR.W("web_enable_auto_pip")||this.hR.W("web_enable_pip_on_miniplayer")||this.hR.W("web_shorts_pip")?g.xo(M):document;Z.call(e,M,"click",this.TV)}m||this.Pv("show",!0)}; +g.p.hide=function(){var m=fZ(this);g.r4.prototype.hide.call(this);Jiy(this);m&&this.Pv("show",!1)}; +g.p.kx=function(m){this.X=m;this.C.show();this.j&&(this.L.gy(this.j),this.j=void 0)}; +g.p.s2=function(){var m=fZ(this);Jiy(this);this.C.hide();m&&this.Pv("show",!1)}; +g.p.TV=function(m){var e=g.JS(m);e&&(g.iQ(this.element,e)||this.X&&g.iQ(this.X,e)||!FE(m))||this.s2()};g.T(d4,g.r4);d4.prototype.updateValue=function(m,e){g.r4.prototype.updateValue.call(this,m,e);this.Pv("size-change")};var qa3={mN:15,TG:14,rg:13,hC:12,CM:11,bA:10,dD:9,Lm:8,AUDIO:7,SUBTITLES:6,Ar:5,SLEEP_TIMER:4,kc:3,dL:2,REMOTE:1,Dh:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.T(BB,g.Y);BB.prototype.W=function(m){return this.api.W(m)};g.T(Eb,BB);Eb.prototype.onVideoDataChange=function(m){if(!m.accountLinkingConfig){var e,Z=(e=m.getPlayerResponse())==null?void 0:e.accountLinkingConfig;m.accountLinkingConfig=Z}var M;if(e=(M=m.accountLinkingConfig)==null?void 0:M.alsParam)m.C3=e}; +Eb.prototype.setAccountLinkState=function(m){this.api.getVideoData().C3=m;this.api.dW()}; +Eb.prototype.updateAccountLinkingConfig=function(m){var e=this.api.getVideoData(),Z=e.accountLinkingConfig;Z&&(Z.linked=m);this.api.Pv("videodatachange","dataupdated",e,this.api.getPresentingPlayerType())};g.Ub.prototype.getId=function(){return this.id}; +g.Ub.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Wk1(this.start)+", "+Wk1(this.end)+"]"}; +g.Ub.prototype.contains=function(m,e){return m>=this.start&&(m1&&this.api.W("mta_drc_mutual_exclusion_removal")){var M=this.api.getAudioTrack().MB.id;return g.Yd(Z,function(k){var K;return k.audio.X&&((K=k.MB)==null?void 0:K.id)===M})}return g.Yd(Z,function(k){var K; +return((K=k.audio)==null?void 0:K.X)===!0})};g.T(VW,BB);VW.prototype.onVideoDataChange=function(){var m=this,e=this.api.getVideoData();this.api.Q_("embargo",1);var Z=e==null?void 0:e.rd.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Z==null?0:Z.length)?Sam(this,Z.filter(function(M){return pl7(m,M)})):(e==null?0:e.cueRanges)&&Sam(this,e.cueRanges.filter(function(M){return pl7(m,M)}))}; +VW.prototype.S=function(m){return m.embargo!==void 0}; +VW.prototype.LB=function(){BB.prototype.LB.call(this);this.X={}};g.T(WB,g.Y);WB.prototype.LB=function(){g.Y.prototype.LB.call(this);this.X=null;this.S&&this.S.disconnect()};g.T(vdK,BB);g.T(zM,BB);zM.prototype.getSphericalProperties=function(){var m=Ig(this.api.QW());return m?m.getSphericalProperties():{}}; +zM.prototype.setSphericalProperties=function(m){if(m){var e=Ig(this.api.QW());e&&e.setSphericalProperties(m,!0)}};g.T(PB,BB);g.p=PB.prototype;g.p.createClientVe=function(m,e,Z,M){this.api.createClientVe(m,e,Z,M===void 0?!1:M)}; +g.p.createServerVe=function(m,e,Z){this.api.createServerVe(m,e,Z===void 0?!1:Z)}; +g.p.setTrackingParams=function(m,e){this.api.setTrackingParams(m,e)}; +g.p.logClick=function(m,e){this.api.logClick(m,e)}; +g.p.logVisibility=function(m,e,Z){this.api.logVisibility(m,e,Z)}; +g.p.hasVe=function(m){return this.api.hasVe(m)}; +g.p.destroyVe=function(m){this.api.destroyVe(m)};var XlR=!1;el.prototype.setPlaybackRate=function(m){this.playbackRate=Math.max(1,m)}; +el.prototype.getPlaybackRate=function(){return this.playbackRate};uJc.prototype.Fh=function(m){this.timestampOffset=m};aK.prototype.seek=function(m,e){m!==this.X&&(this.seekCount=0);this.X=m;var Z=this.videoTrack.S,M=this.audioTrack.S,k=this.audioTrack.Pq,K=Cpm(this,this.videoTrack,m,this.videoTrack.Pq,e);e=Cpm(this,this.audioTrack,this.policy.O9?m:K,k,e);m=Math.max(m,K,e);this.L=!0;this.CB.isManifestless&&(Nnb(this,this.videoTrack,Z),Nnb(this,this.audioTrack,M));return m}; +aK.prototype.isSeeking=function(){return this.L}; +aK.prototype.qC=function(m){this.U=m}; +var ASP=2/24;var dc1=0;g.p=$_.prototype;g.p.kD=function(){this.N=this.now();Gct(this.Ge,this.N);this.z$.kD()}; +g.p.fb=function(m,e){var Z=this.policy.X?(0,g.G)():0;Fk(this,m,e);m-this.C<10&&this.S>0||this.nF(m,e);this.z$.fb(m,e);this.policy.X&&(m=(0,g.G)()-Z,this.Wq+=m,this.KB=Math.max(m,this.KB))}; +g.p.nF=function(m,e){var Z=(m-this.C)/1E3,M=e-this.U;this.mZ||(QQ(this.Ge,Z,M),this.xD(Z,M));this.C=m;this.U=e}; +g.p.lF=function(){this.S9&&BnG(this);this.z$.lF()}; +g.p.zm=function(m){this.S9||(this.S9=this.L-this.Bq+m,this.tf=this.L,this.uw=this.j)}; +g.p.J3=function(m,e){m=m===void 0?this.j:m;e=e===void 0?this.L:e;this.S>0||(this.Y=m,this.S=e,this.K=this.isActive=!0)}; +g.p.c7=function(){}; +g.p.Xw=function(){var m,e={rn:this.requestNumber,rt:(this.j-this.X).toFixed(),lb:this.L,stall:(1E3*this.Z).toFixed(),ht:(this.N-this.X).toFixed(),elt:(this.Y-this.X).toFixed(),elb:this.S,d:(m=this.b9)==null?void 0:m.mI()};this.url&&gd1(e,this.url);this.policy.X&&(e.mph=this.KB.toFixed(),e.tph=this.Wq.toFixed());e.ulb=this.Hv;e.ult=this.Qh;e.abw=this.kG;return e}; +g.p.now=function(){return(0,g.G)()};g.T(cI,$_);g.p=cI.prototype;g.p.Xw=function(){var m=$_.prototype.Xw.call(this);m.pb=this.fU;m.pt=(1E3*this.XG).toFixed();m.se=this.Te;return m}; +g.p.ZF=function(){var m=this.z$;this.wc||(this.wc=m.ZF?m.ZF():1);return this.wc}; +g.p.I9=function(){return this.lS?this.ZF()!==1:!1}; +g.p.fY=function(m,e,Z){if(!this.wr){this.wr=!0;if(!this.mZ){Fk(this,m,e);this.nF(m,e);var M=this.ZF();this.Te=Z;M===2?this.mZ||(this.Qh?Yk(this.Ge,this.Qh/1E3,this.Hv,this.tR||this.policy.AR):Yk(this.Ge,e/Math.max(this.policy.K,Z||this.kG),e,.01),bT(this.Ge,e,this.Z)):M===1&&(Z=(m-this.X)/1E3,!(Z<=this.policy.U)&&this.policy.U||this.CR||this.policy.N||!(this.S>0)||N5(this,Z,e),this.S>0&&bT(this.Ge,e,this.Z));m=(m-this.X)/1E3||.01;this.policy.j&&!(this.S>0)||Un(this.Ge,m,this.U,Ya3(this),this.h6)}nS(this)}}; +g.p.Hd=function(m,e,Z){Z&&(this.wc=2);m<0&&this.h5&&(m=this.h5);e?this.ZN+=m:this.tR+=m}; +g.p.nF=function(m,e){var Z=(m-this.C)/1E3,M=e-this.U,k=this.ZF();this.isActive?k===1&&((M>0||this.policy.Z)&&(Z>.2||M<1024)?(this.Z+=Z,M>0&&Z>.2&&N5(this,this.AE?Z:.05,M),this.CR=!0):M>0&&(N5(this,Z,M),this.CR=!0)):e&&e>=2048&&this.J3(m,e);$_.prototype.nF.call(this,m,e)}; +g.p.Jw=function(m){if(!this.mZ){Fk(this,m,this.L);var e=(m-this.X)/1E3;this.ZF()!==2&&this.S>0&&(this.Z+=(m-this.C)/1E3,bT(this.Ge,this.U,this.Z));Un(this.Ge,e,this.U,Ya3(this),this.h6,!0);m=(m-this.C)/1E3;QQ(this.Ge,m,0);this.xD(m,0)}}; +g.p.J3=function(m,e){m=m===void 0?this.j:m;e=e===void 0?this.L:e;if(!(this.S>0)&&($_.prototype.J3.call(this,m,e),this.ZF()===1)){e=(this.N-this.X)/1E3;var Z=(m-this.N)/1E3;this.lS&&rx(this,this.now());this.mw||this.mZ||(this.h5&&(Z=Math.max(0,Z-this.h5)),m=this.Ge,m.N.Ld(1,e),m.Qh.Ld(1,Z))}}; +g.p.Ev=function(){this.lS&&rx(this,this.now());return this.yh}; +g.p.X2=function(){var m;if(m=this.U>this.D9)m=(m=this.U)?m>=2048:!1;return m}; +g.p.Zw=function(){return this.nB}; +g.p.MC=function(m){m=m===void 0?this.now():m;if(this.lS){rx(this,m);if(this.wc?this.I9():this.AR!==this.sE){var e=this.sE;if(m0?Z+m:Z+Math.max(m,e)}; +g.p.z4=function(){return this.now()-this.Y}; +g.p.c9=function(){return(this.U-this.S)*1E3/this.z4()||0}; +g.p.wM=function(){return this.Y};IK.prototype.feed=function(m){Pz(this.X,m);this.TK()}; +IK.prototype.TK=function(){if(this.Z){if(!this.X.getLength())return;var m=this.X.split(this.U-this.S),e=m.ys;m=m.Gg;if(!this.z$.zm(this.Z,e,this.S,this.U))return;this.S+=e.getLength();this.X=m;this.S===this.U&&(this.Z=this.U=this.S=void 0)}for(;;){var Z=0;m=g.r(QhR(this.X,Z));e=m.next().value;Z=m.next().value;Z=g.r(QhR(this.X,Z));m=Z.next().value;Z=Z.next().value;if(e<0||m<0)break;if(!(Z+m<=this.X.totalLength)){if(!(this.z$.zm&&Z+1<=this.X.totalLength))break;Z=this.X.split(Z).Gg;this.z$.zm(e,Z,0, +m)&&(this.Z=e,this.S=Z.getLength(),this.U=m,this.X=new zh([]));break}m=this.X.split(Z).Gg.split(m);Z=m.Gg;this.z$.hI(e,m.ys);this.X=Z}}; +IK.prototype.dispose=function(){this.X=new zh};g.p=Ax.prototype;g.p.Mn=function(){return 0}; +g.p.KP=function(){return null}; +g.p.bT=function(){return null}; +g.p.lY=function(){return this.state>=1}; +g.p.isComplete=function(){return this.state>=3}; +g.p.rZ=function(){return this.state===5}; +g.p.onStateChange=function(){}; +g.p.sx=function(m){var e=this.state;this.state=m;this.onStateChange(e);this.callback&&this.callback(this,e)}; +g.p.K2=function(m){m&&this.state=this.xhr.HEADERS_RECEIVED}; +g.p.getResponseHeader=function(m){try{return this.xhr.getResponseHeader(m)}catch(e){return""}}; +g.p.ZH=function(){return+this.getResponseHeader("content-length")}; +g.p.tT=function(){return this.S}; +g.p.qR=function(){return this.status>=200&&this.status<300&&!!this.S}; +g.p.SM=function(){return this.X.getLength()>0}; +g.p.tx=function(){var m=this.X;this.X=new zh;return m}; +g.p.bD=function(){return this.X}; +g.p.abort=function(){this.MU=!0;this.xhr.abort()}; +g.p.Sq=function(){return!0}; +g.p.BB=function(){return this.U}; +g.p.H_=function(){return""};g.p=shy.prototype;g.p.getResponseHeader=function(m){return m==="content-type"?this.X.get("type"):""}; +g.p.abort=function(){}; +g.p.iC=function(){return!0}; +g.p.ZH=function(){return this.range.length}; +g.p.tT=function(){return this.loaded}; +g.p.qR=function(){return!!this.loaded}; +g.p.SM=function(){return!!this.S.getLength()}; +g.p.tx=function(){var m=this.S;this.S=new zh;return m}; +g.p.bD=function(){return this.S}; +g.p.Sq=function(){return!0}; +g.p.BB=function(){return!!this.error}; +g.p.H_=function(){return this.error};g.p=ySK.prototype;g.p.start=function(m){var e={credentials:"include",cache:"no-store"};Object.assign(e,this.N);this.Z&&(e.signal=this.Z.signal);m=new Request(m,e);fetch(m).then(this.Y,this.onError).then(void 0,HC)}; +g.p.onDone=function(){this.MU()||this.z$.lF()}; +g.p.getResponseHeader=function(m){return this.L?this.L.get(m):null}; +g.p.iC=function(){return!!this.L}; +g.p.tT=function(){return this.S}; +g.p.ZH=function(){return+this.getResponseHeader("content-length")}; +g.p.qR=function(){return this.status>=200&&this.status<300&&!!this.S}; +g.p.SM=function(){return!!this.X.getLength()}; +g.p.tx=function(){this.SM();var m=this.X;this.X=new zh;return m}; +g.p.bD=function(){this.SM();return this.X}; +g.p.MU=function(){return this.C}; +g.p.abort=function(){this.U&&this.U.cancel().catch(function(){}); +this.Z&&this.Z.abort();this.C=!0}; +g.p.Sq=function(){return!0}; +g.p.BB=function(){return this.j}; +g.p.H_=function(){return this.errorMessage};g.p=jhm.prototype;g.p.onDone=function(){if(!this.MU){this.status=this.xhr.status;try{this.response=this.xhr.response,this.S=this.response.byteLength}catch(m){}this.X=!0;this.z$.lF()}}; +g.p.iW=function(){this.xhr.readyState===2&&this.z$.kD()}; +g.p.qm=function(m){this.MU||(this.status=this.xhr.status,this.X||(this.S=m.loaded),this.z$.fb((0,g.G)(),m.loaded))}; +g.p.iC=function(){return this.xhr.readyState>=2}; +g.p.getResponseHeader=function(m){try{return this.xhr.getResponseHeader(m)}catch(e){return g.LD(Error("Could not read XHR header "+m)),""}}; +g.p.ZH=function(){return+this.getResponseHeader("content-length")}; +g.p.tT=function(){return this.S}; +g.p.qR=function(){return this.status>=200&&this.status<300&&this.X&&!!this.S}; +g.p.SM=function(){return this.X&&!!this.response&&!!this.response.byteLength}; +g.p.tx=function(){this.SM();var m=this.response;this.response=void 0;return new zh([new Uint8Array(m)])}; +g.p.bD=function(){this.SM();return new zh([new Uint8Array(this.response)])}; +g.p.abort=function(){this.MU=!0;this.xhr.abort()}; +g.p.Sq=function(){return!1}; +g.p.BB=function(){return!1}; +g.p.H_=function(){return""};g.dx.prototype.info=function(){}; +g.dx.prototype.debug=function(){}; +g.dx.prototype.X=Zk(43);var JSc=new Map,zB1=new Map,Vy3=new function(){this.X=new Map};g.T(Ek,g.Y);Ek.prototype.eM=function(){if(!this.CE.length)return[];var m=this.CE;this.CE=[];this.U=g.i7(m).info;return m}; +Ek.prototype.Rl=function(){return this.CE}; +Ek.prototype.LB=function(){g.Y.prototype.LB.call(this);this.X=null;this.CE.length=0;this.qU.length=0;this.U=null};g.T(Uk,g.Y);g.p=Uk.prototype;g.p.nw=function(){if(!this.MU()){var m=(0,g.G)(),e=!1;if(this.timing.S>0){if(this.L){this.policy.uw&&(this.X=0);return}var Z=this.timing.Zw();this.timing.MC();var M=this.timing.Zw();M-Z>=this.policy.xH*.8?(this.X++,this.logger.debug(function(){return"Mispredicted by "+(M-Z).toFixed(0)}),e=this.X>=5):this.X=0}else{var k=m-this.timing.Ev(); +k>0&&(this.X+=1);m=EKt(b5(this),!1)*this.policy.CA;(e=k>m*1E3)&&this.logger.debug(function(){return"Elbow late by "+k.toFixed(3)})}this.X>0&&this.z$.xB(); +e?this.Wr(!1):this.S.start()}}; +g.p.Wr=function(m){this.Z=!0;m&&(m=b5(this),m.U+=1);this.z$.CU();this.lastError="net.timeout";Qb(this)}; +g.p.canRetry=function(m){var e=b5(this);m=m?this.policy.qX:this.policy.Q$;return e.timedOut0&&(e=e.X.getUint8(0),m.ubyte=e,Z===1&&e===0&&(m.b248180278=!0))}this.UN&&(m.rc=this.policy.qZ?this.UN:this.UN.toString());this.policy.qs&&this.Fa&&(m.tr=this.Fa);m.itag=this.info.qU[0].X.info.itag;m.ml=""+ +this.info.qU[0].X.Dx();m.sq=""+this.info.qU[0].Wv;this.b7&&(m.ifi=""+ +oL(this.info.i9.S));this.UN!==410&&this.UN!==500&&this.UN!==503||(m.fmt_unav="true");var M;(Z=this.errorMessage||((M=this.xhr)==null? +void 0:M.H_()))&&(m.msg=Z);this.v6&&(m.smb="1");this.info.isDecorated()&&(m.sdai="1");return m}; +g.p.ZP=function(){return Ucb(this.timing)}; +g.p.H_=function(){return this.xhr.H_()||""}; +g.p.X2=function(){return this.isComplete()||this.timing.X2()}; +g.p.fb=function(){!this.MU()&&this.xhr&&(this.UN=this.xhr.status,this.policy.FX&&this.Ye&&this.RW(!1),this.MV()?this.K2(2):!this.uT&&this.X2()&&(this.K2(),this.uT=!0))}; +g.p.kD=function(){if(!this.MU()&&this.xhr){if(!this.qg&&this.xhr.iC()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var m=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.qg=((0,g.G)()-m)/1E3}this.xhr.iC()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.X1&&!AVK()&&g.kE("yt-player-headers-readable",!0,2592E3);m=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var e=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),Z;(Z=this.yR)==null||Z.stop();this.bU=m||this.bU; +this.OH=e||this.OH}}; +g.p.lF=function(){var m=this.xhr;if(!this.MU()&&m){this.UN=m.status;m=this.ac(m);if(this.policy.qs){var e;(e=this.yR)==null||e.stop()}m===5?Qb(this.nR):this.sx(m);this.nR.S.stop()}}; +g.p.ac=function(m){var e=this;Cfk(this);if(HI(this.nR,this.xhr.status,this.rO?this.timing.K||this.gC:this.xhr.qR(),!1,this.SV))return 5;var Z="";DU(this.nR,this.xhr)&&(Z=ks7(this.nR,this.xhr));if(Z)return $D(b5(this.nR)),this.info.KV(this.b7,Z),3;Z=m.tT();if(this.V$){this.RW(!0);Cfk(this);if(HI(this.nR,this.xhr.status,this.timing.K||this.gC,!1,this.SV))return 5;if(!this.V8){if(this.gC)return $D(b5(this.nR)),3;this.nR.lastError="net.closed";return 5}}else{if(HI(this.nR,this.xhr.status,this.xhr.qR(), +!1,this.SV))return 5;var M=this.info.U;if(M&&M!==Z||m.BB())return this.nR.lastError="net.closed",5;this.RW(!0)}M=HA1(this)?m.getResponseHeader("X-Bandwidth-Est"):0;if(m=HA1(this)?m.getResponseHeader("X-Bandwidth-Est3"):0)this.Op=!0,this.policy.yF&&(M=m);ZrI(this.nR,Z,M?Number(M):0);this.logger.debug(function(){var k=e.timing;return"Succeeded, rtpd="+(k.XG*1E3+k.X-Date.now()).toFixed(0)}); +return 4}; +g.p.canRetry=function(){this.MU();var m=this.info.isDecorated();return this.nR.canRetry(m)}; +g.p.onStateChange=function(){this.isComplete()&&(this.policy.Ax?this.CU():nS(this.timing))}; +g.p.Wr=function(m){this.nR.Wr(m)}; +g.p.xB=function(){this.callback&&this.callback(this,this.state)}; +g.p.Cb=function(){return this.nR.Cb()}; +g.p.dispose=function(){Ax.prototype.dispose.call(this);this.nR.dispose();var m;(m=this.yR)==null||m.dispose();this.policy.Ax||this.CU()}; +g.p.CU=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();nS(this.timing)}; +g.p.eM=function(){if(!this.Rl().length)return[];this.zn=!0;return this.Ye.eM()}; +g.p.MV=function(){if(this.state<1)return!1;if(this.Ye&&this.Ye.CE.length)return!0;var m;return((m=this.xhr)==null?0:m.SM())?!0:!1}; +g.p.Rl=function(){this.RW(!1);return this.Ye?this.Ye.Rl():[]}; +g.p.RW=function(m){try{if(m||this.xhr.iC()&&this.xhr.SM()&&!DU(this.nR,this.xhr)&&!this.AI)this.Ye||(this.Ye=new Ek(this.policy,this.info.qU)),this.xhr.SM()&&(this.V$?this.V$.feed(this.xhr.tx()):Y_(this.Ye,this.xhr.tx(),m&&!this.xhr.SM()))}catch(e){this.V$?rnR(this,e):g.LD(e)}}; +g.p.hI=function(m,e){switch(m){case 21:m=e.split(1).Gg;I2y(this,m);break;case 22:this.V8=!0;Y_(this.Ye,new zh([]),!0);break;case 43:if(m=hK(new X_(e),1))this.info.KV(this.b7,m),this.gC=!0;break;case 45:e=MM(new X_(e));m=e.wl;e=e.ea;m&&e&&(this.P8=m/e);break;case 44:this.Bf=Aps(new X_(e));var Z,M,k;!this.timing.K&&((Z=this.Bf)==null?void 0:Z.action)===4&&((M=this.Bf)==null?0:(k=M.DE)==null?0:k.rO)&&(this.rO=this.Bf.DE.rO);break;case 53:this.policy.qs&&(m=NWK(new X_(e)).yp)&&(this.yR||(this.yp=m,this.yR= +new g.eD(this.ZT,m,this)),this.yR.start());break;case 60:this.n2=ZJ(new X_(e));break;case 64:this.policy.Og&&(m=XbK(new X_(e)),this.policy.ow(m));break;case 58:if(m=eOc(new X_(e)))this.uU=m,m.uU===3&&(this.SV=!0)}}; +g.p.zm=function(m,e,Z,M){Z||this.timing.zm(M);if(m!==21)return!1;if(m=this.policy.FX)if(M=e.getLength()+Z===M,m*=this.info.qU[0].X.info.JR,!M&&e.getLength()0)return!1;if(!this.xhr.iC())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.V$)var m=!this.info.U;else this.xhr.ZH()?m=!1:(m=this.xhr.getResponseHeader("content-type"),m=m==="audio/mp4"||m==="video/mp4"||m==="video/webm");if(!m)return!1;if(isNaN(this.info.IY)){m=this.xhr.getResponseHeader("x-head-seqnum");var e=this.timing.policy.C?1:0;if(!m)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); +else if(Number(m)>this.info.qU[0].Wv+e)return!1}return!0}; +g.p.H9=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.p.KP=function(){this.xhr&&(this.bU=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.bU}; +g.p.bT=function(){this.xhr&&(this.OH=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.OH}; +g.p.G3=function(){return this.nR.G3()}; +g.p.ZT=function(){if(!this.MU()&&this.xhr){this.Fa="heartbeat";var m=this.nR;m.X+=2;this.xB()}};g.T(Vb,$_);g.p=Vb.prototype;g.p.nF=function(m,e){var Z=(m-this.C)/1E3,M=e-this.U;this.S>0?M>0&&(this.AR&&(Z>.2||M<1024?(this.Z+=Z,Z>.2&&f2s(this,.05,M)):f2s(this,Z,M)),this.sE&&(this.yh+=M,this.wc+=Z)):e>2048&&this.J3(m,e);$_.prototype.nF.call(this,m,e)}; +g.p.fY=function(m,e){Fk(this,m,e);this.nF(m,e);this.AR&&(e=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&bT(this.Ge,this.yh,this.Z),m=(m-this.X)/1E3||.01,this.policy.j&&!(this.S>0)||Un(this.Ge,m,this.U,e,!1))}; +g.p.Jw=function(m){Fk(this,m,this.L);var e=(m-this.C)/1E3;QQ(this.Ge,e,0);this.xD(e,0);!this.AR&&this.S>0||(e=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&(this.Z+=(m-this.C)/1E3,bT(this.Ge,this.yh,this.Z)),Un(this.Ge,((m-this.X)/1E3||.01)*this.policy.Y,this.U,e,!1,!0))}; +g.p.xI=function(m){m=m.rb||2147483647;(m&2)!==2&&(this.sE=!1);(m&1)===1&&(this.AR=!0)}; +g.p.p5=function(m){m=m.rb||2147483647;(m&2)===2&&(this.sE=!1);(m&1)===1&&(this.AR=!1)}; +g.p.wM=function(){return this.Y}; +g.p.z4=function(){var m=this.sE?this.now()-this.C:0;return Math.max(this.wc*1E3+m,1)}; +g.p.c9=function(){return this.yh*1E3/this.z4()}; +g.p.J3=function(m,e){m=m===void 0?this.j:m;e=e===void 0?this.L:e;this.S>0||($_.prototype.J3.call(this,m,e),e=this.Ge,m=(m-this.N)/1E3,e.N.Ld(1,(this.N-this.X)/1E3),e.Qh.Ld(1,m))}; +g.p.c7=function(m){this.nB=m}; +g.p.Xw=function(){var m=$_.prototype.Xw.call(this);m.rbw=this.c9();m.rbe=+this.sE;m.gbe=+this.AR;m.ackt=(this.nB-this.X).toFixed();return m}; +g.p.MC=function(){}; +g.p.Zw=function(){return NaN}; +g.p.Ev=function(){return this.X+this.snapshot.delay*1E3};WI.prototype.hI=function(m,e){e.getLength();switch(m){case 20:m=new X_(e);m={Cf:lv(m,1),videoId:hK(m,2),itag:lv(m,3),lmt:lv(m,4),xtags:hK(m,5),oS:lv(m,6),Fr:uv(m,8),EB:lv(m,9),LX:lv(m,10),startMs:lv(m,11),durationMs:lv(m,12),Pw:lv(m,14),timeRange:Tp(m,15,tat),Zo:lv(m,16),xf:lv(m,17),clipId:hK(m,1E3)};this.eX(m);break;case 21:this.ES(e,!1);break;case 22:this.Bp(e);break;case 31:m=wo(e,ROk);this.d2(m);break;case 52:m=wo(e,rp1);this.Yd(m);break;default:this.MD(m,e)}}; +WI.prototype.eX=function(){}; +WI.prototype.MD=function(){};g.T(zL,WI);g.p=zL.prototype; +g.p.MD=function(m,e){e.getLength();switch(m){case 35:this.oZ(e);break;case 44:this.kI(e);break;case 43:this.Vz(e);break;case 53:this.yz(e);break;case 55:m=new X_(e);(m={timeline:Tp(m,1,f4G),OG:Tp(m,2,BWs)},m.timeline)&&m.timeline.jZ&&this.z$.vz(m.timeline.jZ,m.timeline.Ea,m.OG);break;case 56:this.H1();break;case 57:this.v1(e);break;case 42:this.I0(e);break;case 45:this.Hp(e);break;case 59:this.q5(e);break;case 51:this.Tb(e);break;case 49:this.xI(e);break;case 50:this.p5(e);break;case 47:this.n5(e); +break;case 58:this.qr(e);break;case 61:this.z$.Zm.c7((0,g.G)());break;case 66:this.Rh(e);break;case 46:this.dn(e);break;case 67:this.onSnackbarMessage(e)}}; +g.p.Tb=function(m){m=new X_(m);m={Gy:F_(m,1,mF),wT:F_(m,2,mF)};this.z$.Tb(m)}; +g.p.q5=function(m){var e=new X_(m);m=$B(e,1);var Z=$B(e,2);e=$B(e,3);this.z$.q5(m,Z,e)}; +g.p.Hp=function(m){m=MM(new X_(m));this.z$.Hp(m)}; +g.p.n5=function(m){m=wo(m,$e3);this.z$.n5(m)}; +g.p.I0=function(m){m=new X_(m);m={videoId:hK(m,1),formatId:Tp(m,2,mF),endTimeMs:lv(m,3),IR:lv(m,4),mimeType:hK(m,5),Zn:Tp(m,6,a4s),indexRange:Tp(m,7,a4s),Uv:Tp(m,8,vS1)};this.z$.I0(m)}; +g.p.v1=function(m){m=BWs(new X_(m));this.z$.v1(m)}; +g.p.H1=function(){this.z$.H1()}; +g.p.oZ=function(m){m=hO1(new X_(m));this.z$.oZ(m)}; +g.p.yz=function(m){m=NWK(new X_(m));this.z$.yz(m)}; +g.p.kI=function(m){m=Aps(new X_(m));this.z$.kI(m)}; +g.p.Vz=function(m){m={redirectUrl:hK(new X_(m),1)};this.z$.Vz(m)}; +g.p.ES=function(m){var e=m.getUint8(0);if(m.getLength()!==1){m=m.split(1).Gg;var Z=this.S[e]||null;Z&&K9(this.z$.yS,e,Z,m)}}; +g.p.Bp=function(m){m=m.getUint8(0);var e=this.S[m]||null;e&&this.z$.Bp(m,e)}; +g.p.Yd=function(m){this.z$.Yd(m)}; +g.p.eX=function(m){var e=m.Cf,Z=m.Fr,M=m.oS,k=m.xf,K=m.Zo,q=m.EB,S=m.startMs,a=m.durationMs,v=m.timeRange,X=m.Pw,x=m.clipId,l=I6(m);m=FgK.has(tM[""+m.itag]);this.S[e]=l;this.z$.Hd(l,m,{Cf:e,Fr:!!Z,oS:M!=null?M:-1,EB:q!=null?q:-1,startMs:S!=null?S:-1,durationMs:a!=null?a:-1,Pw:X,xf:k,Zo:K,clipId:x,timeRange:v})}; +g.p.xI=function(m){m={rb:lv(new X_(m),1)};this.z$.xI(m)}; +g.p.p5=function(m){m={rb:lv(new X_(m),1)};this.z$.p5(m)}; +g.p.d2=function(m){this.z$.d2(m)}; +g.p.qr=function(m){m=eOc(new X_(m));this.z$.qr(m)}; +g.p.Rh=function(m){m={HY:Tp(new X_(m),1,nSc)};this.z$.Rh(m)}; +g.p.onSnackbarMessage=function(m){m=lv(new X_(m),1);this.z$.onSnackbarMessage(m)}; +g.p.dn=function(m){m={reloadPlaybackParams:Tp(new X_(m),1,me3)};this.z$.dn(m)};g.T(PI,g.Y);g.p=PI.prototype;g.p.JX=function(){return Array.from(this.NB.keys())}; +g.p.rk=function(m){m=this.NB.get(m);var e=m.CE;m.Bx+=e.getLength();m.CE=new zh;return e}; +g.p.Ff=function(m){return this.NB.get(m).Ff}; +g.p.RC=function(m){return this.NB.get(m).RC}; +g.p.Hd=function(m,e,Z,M){this.NB.get(m)||YZk(this,m,e);e=this.NB.get(m);if(this.CB){m=brm(this,m,Z);if(M)for(var k=g.r(m),K=k.next();!K.done;K=k.next()){K=K.value;var q=M;K.K=q;K.startTime+=q;K.u7+=q;K.bX+=q}UrR(this,Z.Cf,e,m)}else Z.Fr?e.Al=Z.Pw:e.sA.push(Z),e.yX.push(Z)}; +g.p.jJ=function(m){var e;return((e=this.NB.get(m))==null?void 0:e.qU)||[]}; +g.p.K2=function(){for(var m=g.r(this.NB.values()),e=m.next();!e.done;e=m.next())e=e.value,e.UL&&(e.qm&&e.qm(),e.UL=!1)}; +g.p.Bp=function(m,e){this.logger.debug(function(){return"[onMediaEnd] formatId: "+e}); +var Z=this.NB.get(e);if(m7){if(Z&&!Z.Ff){if(Z.X9.get(m))Z.X9.get(m).Ol=!0;else{var M;((M=this.Xl)==null?0:M.LJ)&&Z.X9.set(m,{data:new zh,hv:0,Ol:!0})}Z.RC=!0}}else Z&&!Z.RC&&(Z.RC=!0)}; +g.p.eM=function(m){if(m7){var e=this.NB.get(m);if(e)for(var Z=g.r(e.X9),M=Z.next();!M.done;M=Z.next()){var k=g.r(M.value);M=k.next().value;k=k.next().value;var K=e.B6.get(M);if(E_(K[0])){if(!k.Ol)continue;var q=K,S=k.data;S.getLength();K=0;var a=[];q=g.r(q);for(var v=q.next();!v.done;v=q.next()){v=v.value;var X=v.U,x=me(S,K,X);K+=X;a.push(new w_(v,x))}e.MR.push.apply(e.MR,g.Rt(a))}else if(k.data.getLength()>0||!K[0].range&&k.Ol)S=void 0,K=K[0],a=k.hv,q=k.data,K.range||(S=k.Ol),v=q.getLength(),S=new w_(jYk(K, +K.S+a,v,S),q),k.hv+=S.info.U,e.MR.push(S);e.X9.get(M).data=new zh;k.Ol&&e.X9.delete(M)}m=this.NB.get(m);if(!m)return[];e=m.MR;m.MR=[];Z=g.r(e);for(M=Z.next();!M.done;M=Z.next())m.Bx+=M.value.info.U;return e||[]}Z=(e=this.NB.get(m))==null?void 0:e.Ye;if(!Z)return[];this.RW(m,Z);return Z.eM()}; +g.p.MV=function(m){if(m7)return kj(this,m);var e,Z,M;return!!((Z=(e=this.NB.get(m))==null?void 0:e.Ye)==null?0:(M=Z.Rl())==null?0:M.length)||kj(this,m)}; +g.p.RW=function(m,e){for(;kj(this,m);){var Z=this.rk(m);var M=m;M=this.NB.get(M).Ff&&!Mz(this,M);Y_(e,Z,M&&EEy(this,m))}}; +g.p.LB=function(){g.Y.prototype.LB.call(this);for(var m=g.r(this.NB.keys()),e=m.next();!e.done;e=m.next())eX(this,e.value);var Z;if((Z=this.Xl)==null?0:Z.cX)for(m=g.r(this.NB.values()),e=m.next();!e.done;e=m.next())e=e.value,e.X9.clear(),e.B6.clear(),e.MR.length=0,e.qU.length=0,e.yX.length=0,e.sA.length=0;this.NB.clear()}; +var m7=!1;g.T(qz,g.Y);g.p=qz.prototype;g.p.fb=function(){!this.MU()&&this.xhr&&(this.RW(!1),RQ(this.z$,this))}; +g.p.kD=function(){}; +g.p.lF=function(){if(!this.MU()&&this.xhr){var m=this.ac();m===5?Qb(this.nR):this.sx(m);this.nR.S.stop();var e;(e=this.gX)==null||e.stop()}}; +g.p.ac=function(){var m="";DU(this.nR,this.xhr)&&(m=ks7(this.nR,this.xhr));if(m)return this.info.i9.KV(this.b7,m),3;this.RW(!0);if(HI(this.nR,this.xhr.status,this.xhr.qR(),this.info.g2(),this.SV))return 5;if(this.uN)return 3;ZrI(this.nR,this.xhr.tT(),0);this.policy.JY&&hM7(this.z$);return 4}; +g.p.RW=function(m){var e=this.xhr;if((m||!DU(this.nR,this.xhr))&&e.SM()){m=e.tx();var Z=m.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+Z}); +this.V$.feed(m)}}; +g.p.hI=function(m,e){this.xhr.Sq()&&m===21&&this.Zm.J3();this.zo.hI(m,e)}; +g.p.zm=function(m,e,Z,M){Z||this.Zm.zm(M);if(m!==21)return!1;this.Zm.K=!0;m=e.getLength();Z||(this.kh=e.getUint8(0),e=e.split(1).Gg);var k=this.zo.S[this.kh],K=this.CB.U.get(k);if(K&&(K=K.info.JR*.01,m+Z!==M&&m0){m=this.Zm.z4();e=this.Zm.c9();var Z=Dry(this,m);if(!(e>Z.wz||Z.NH>0&&this.info.j_()>Z.NH)){this.CZ=(0,g.G)();var M;(M=this.gX)==null||M.stop();this.policy.JY&&(M=this.z$,m={mQ:Math.round(e*m/1E3),O0:m},M.policy.JY&&(M.Y=m,M.xY++));this.Wr(!1)}}}}; +g.p.Wr=function(m){this.nR.Wr(m)}; +g.p.kI=function(m){this.z$.kI(m,this.uS())}; +g.p.Vz=function(m){this.uN=!0;this.info.i9.KV(this.b7,m.redirectUrl)}; +g.p.xI=function(m){this.Zm instanceof Vb&&this.Zm.xI(m)}; +g.p.p5=function(m){this.Zm instanceof Vb&&this.Zm.p5(m)}; +g.p.vz=function(m,e,Z){this.z$.vz(m,e,Z,this.uS())}; +g.p.I0=function(m){var e=m.formatId,Z=I6({itag:e.itag,lmt:e.lmt,xtags:e.xtags}),M,k,K=new Cl(((M=m.Zn)==null?void 0:M.first)||0,((k=m.Zn)==null?void 0:k.Hs)||0),q,S;M=new Cl(((q=m.indexRange)==null?void 0:q.first)||0,((S=m.indexRange)==null?void 0:S.Hs)||0);if(!this.CB.U.get(Z)){Z=m.Uv||{};if(this.policy.Eb){var a,v;m=(a=m.mimeType)!=null?a:"";a=(v=e.itag)!=null?v:0;v=tM[""+a];Z.mimeType=v!=="9"&&v!=="9h"?m:'video/webm; codecs="'+["vp09",v==="9h"?"02":"00","51",v==="9h"?"10":"08","01.01.01.01.00"].join(".")+ +'"'}else Z.mimeType=m.mimeType;Z.itag=e.itag;Z.lastModified=""+(e.lmt||0);Z.xtags=e.xtags;e=this.CB;v=tB("");a=Uj(Z,null);BJ(e,new oD(v,a,K,M))}}; +g.p.Hp=function(m){this.z$.Hp(m)}; +g.p.onSnackbarMessage=function(m){if(this.policy.UW)this.z$.onSnackbarMessage(m)}; +g.p.d2=function(m){this.tN=m;this.pK=(0,g.G)();this.z$.d2(m)}; +g.p.q5=function(m,e,Z){this.z$.q5(m,e,Z)}; +g.p.v1=function(m){m.scope===2&&(this.Y4=m);this.z$.v1(m)}; +g.p.H1=function(){this.Of=!0;this.z$.H1()}; +g.p.Tb=function(m){this.policy.NP&&this.z$.Tb(m)}; +g.p.n5=function(m){this.z$.n5(m,this.uS())}; +g.p.qr=function(m){m.uU===3&&(this.SV=!0);this.z$.qr(m)}; +g.p.Rh=function(m){this.z$.Rh(m)}; +g.p.dn=function(m){this.z$.dn(m)}; +g.p.canRetry=function(){this.MU();return this.nR.canRetry(!1)}; +g.p.dispose=function(){if(!this.MU()){g.Y.prototype.dispose.call(this);this.nR.dispose();var m;(m=this.gX)==null||m.dispose();this.sx(-1);this.CU()}}; +g.p.sx=function(m){this.state=m;RQ(this.z$,this)}; +g.p.g2=function(){return this.info.g2()}; +g.p.gb=function(){return this.Of}; +g.p.pc=function(){return this.Y4}; +g.p.Hd=function(m,e,Z){Z.clipId&&(this.clipId=Z.clipId);this.policy.C&&!e&&(this.cI=Z.EB,this.zc=Z.startMs);var M=0;this.policy.uF&&this.gx&&this.clipId&&(M=q5(this.gx,this.clipId)/1E3);this.yS.Hd(m,e,Z,M);if(this.policy.VD&&this.Zm instanceof cI){var k;M=(k=this.tN)==null?void 0:k.VV;this.Zm.Hd(Z.durationMs/1E3,e,M>0&&Z.EB+1>=M)}this.yS.NB.get(m).Wo=!0}; +g.p.Bp=function(m,e){this.yS.Bp(m,e)}; +g.p.Yd=function(m){this.requestIdentifier=m}; +g.p.eM=function(m){return this.yS.eM(m)}; +g.p.jJ=function(m){return this.yS.jJ(m)}; +g.p.MV=function(m){return this.yS.MV(m)}; +g.p.JX=function(){return this.yS.JX()}; +g.p.ZF=function(){return 1}; +g.p.uS=function(){return this.Zm.requestNumber}; +g.p.VZ=function(){return this.requestIdentifier}; +g.p.A$=function(){return this.clipId}; +g.p.Ya=function(){return this.b7.Ya()}; +g.p.GP=function(){this.CU()}; +g.p.CU=function(){nS(this.Zm);var m;(m=this.xhr)==null||m.abort()}; +g.p.isComplete=function(){return this.state>=3}; +g.p.Bs=function(){return this.state===3}; +g.p.rZ=function(){return this.state===5}; +g.p.oV=function(){return this.state===4}; +g.p.uB=function(){return this.isComplete()}; +g.p.lY=function(){return this.state>=1}; +g.p.Cb=function(){return this.policy.uw?this.nR.Cb():0}; +g.p.xB=function(){this.policy.uw&&RQ(this.z$,this)}; +g.p.eL=function(){return K9c(this.info)}; +g.p.G3=function(){return this.nR.G3()}; +g.p.mM=function(){var m=K23(this.nR);Object.assign(m,px7(this.info));m.req="sabr";m.rn=this.uS();var e;if((e=this.xhr)==null?0:e.status)m.rc=this.policy.qZ?this.xhr.status:this.xhr.status.toString();var Z;(e=(Z=this.xhr)==null?void 0:Z.H_())&&(m.msg=e);this.CZ&&(Z=Dry(this,this.CZ-this.Zm.wM()),m.letm=Z.q2,m.mrbps=Z.wz,m.mram=Z.NH);return m}; +g.p.Gv=function(){return{cI:this.cI,zc:this.zc,isDecorated:this.info.isDecorated()}};L2m.prototype.tick=function(m,e){this.ticks[m]=e?window.performance.timing.navigationStart+e:(0,g.G)()};g.T(aN,g.m6); +aN.prototype.Xz=function(m,e,Z,M){var k=!1;this.policy.KB&&(k=Z?this.b9===m.Wv:this.S9===m.Wv);if(this.C&&M&&!k){M=[];k=[];var K=[],q=void 0,S=0;e&&(M=e.X,k=e.S,K=e.Z,q=e.U,S=e.Fb);this.policy.KB&&(Z?this.b9=m.Wv:this.S9=m.Wv);this.C.pH(m.Wv,m.startTime,this.S,M,k,K,Z,S,q)}if(this.policy.KB){if(Z||this.policy.HS){this.S===1&&g2(this,5,"noad");var a;m.Wv!==((a=this.X)==null?void 0:a.Wv)&&(eU3(this,m,e,Z),isNaN(m.startTime)||Xy(this,m.Wv,xj(this,m.startTime,m.Wv),!!e,this.C))}}else Z&&eU3(this,m,e)}; +aN.prototype.Gl=function(m,e,Z){var M=this.videoTrack.X.index.ze()<=e;this.X={A5:m,Wv:e,yV:Z};M&&vW(this,m,e)}; +aN.prototype.TU=function(){this.C&&this.C.TU()}; +aN.prototype.B=function(m,e){this.D.B(m,e)};g.T(hf,g.Y);hf.prototype.BE=function(m,e,Z){Z=Z===void 0?{}:Z;this.policy.JD=WJ(m,Z,this.Z,e===void 0?!1:e)};n9.prototype.Oq=function(m){var e=this;if(this.policy.KA){var Z=new Set(m);Z.size===this.Qh.size&&[].concat(g.Rt(Z)).every(function(M){return e.Qh.has(M)})||(this.D.B("lwnmow",{itagDenylist:[].concat(g.Rt(m)).join(",")}),this.D.NR(!!Z.size),this.K=-1,this.Qh=Z,cW(this,this.X),this.wc=!0)}}; +n9.prototype.BE=function(m,e,Z){Z=Z===void 0?{}:Z;var M=this.policy.JD;this.L.BE(m,e===void 0?!1:e,Z);if(M!==this.policy.JD){cW(this,this.X);r2(this);var k,K;M>this.policy.JD&&((k=this.S)==null?0:DT(k.info))&&((K=this.nextVideo)==null||!DT(K.info))&&(this.Y=!0)}};f9.prototype.Fh=function(m){this.timestampOffset=m;this.flush()}; +f9.prototype.flush=function(){if(this.X.pos>0){var m={a:this.track.F5(),u:this.X.mI(),pd:Math.round(this.Z),ad:Math.round(this.U)},e=this.S;if(e){var Z=e.X.info;m.itag=Z.itag;Z.X&&(m.xtags=Z.X);m.sq=e.Wv;m.st=e.startTime;m.sd=e.duration;this.track.policy.mH&&(m.si=e.EZ());e.Z&&(m.esl=e.S+e.U);e.SB()&&(m.eos=1)}isNaN(this.timestampOffset)||(m.to=this.timestampOffset);var M;if(e=(M=this.track.Pq)==null?void 0:M.pR({})){for(var k in e)this.C[k]!==e[k]&&(m["sb_"+k]=e[k]);this.C=e}this.track.B("sbu",m); +this.X.reset();this.buffered=[];this.L=this.U=this.Z=0;this.timestampOffset=this.S=void 0}};d2.prototype.dispose=function(){this.AR=!0}; +d2.prototype.MU=function(){return this.AR}; +g.T(tf,Error);var WWc=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]);Ds.prototype.skip=function(m){this.offset+=m}; +Ds.prototype.aW=function(){return this.offset};g.p=L3P.prototype;g.p.MZ=function(){return this.S.length?this.S[this.S.length-1]:null}; +g.p.tD=function(){this.S=[];jX(this);G6(this)}; +g.p.rk=function(){this.nB=this.S.shift().info}; +g.p.jJ=function(){return g.qI(this.S,function(m){return m.info})}; +g.p.F5=function(){return!!this.C.info.audio}; +g.p.getDuration=function(){return this.C.index.tX()};g.T(vI,Ax);g.p=vI.prototype;g.p.onStateChange=function(){this.MU()&&(Zs(this.yS,this.formatId),this.X.dispose())}; +g.p.mM=function(){var m=B1G(this.yS,this.formatId),e;var Z=((e=this.yS.NB.get(this.formatId))==null?void 0:e.bytesReceived)||0;var M;e=((M=this.yS.NB.get(this.formatId))==null?void 0:M.Bx)||0;return{expected:m,received:Z,bytesShifted:e,sliceLength:Mz(this.yS,this.formatId),isAnyMediaEndReceived:this.yS.RC(this.formatId)}}; +g.p.ZP=function(){return 0}; +g.p.X2=function(){return!0}; +g.p.eM=function(){return this.yS.eM(this.formatId)}; +g.p.Rl=function(){return[]}; +g.p.MV=function(){return this.yS.MV(this.formatId)}; +g.p.G3=function(){return this.lastError}; +g.p.Cb=function(){return 0};g.T(WW,g.Y);g.p=WW.prototype;g.p.F5=function(){return!!this.X.info.audio}; +g.p.MZ=function(){return this.Z.MZ()}; +g.p.rk=function(m){this.Z.rk(m);var e;(e=this.N)!=null&&(e.L.add(m.info.Wv),e.X=$cP(e,e.qB,e.Uw,m,e.X),e.U=m,e.C=(0,g.G)());this.JR=Math.max(this.JR,m.info.X.info.JR||0)}; +g.p.getDuration=function(){if(this.policy.S){var m=this.D.qP();if(m)return x9(m)}return this.X.index.tX()}; +g.p.tD=function(){Xk(this);this.Z.tD()}; +g.p.isRequestPending=function(m){return this.U.length?m===this.U[this.U.length-1].info.qU[0].Wv:!1}; +g.p.Fh=function(m){var e;(e=this.N)==null||e.Fh(m);var Z;(Z=this.K)==null||Z.Fh(m)}; +g.p.B=function(m,e){this.D.B(m,e)}; +g.p.pF=function(){return this.D.pF()}; +g.p.dispose=function(){var m;(m=this.K)==null||m.flush();g.Y.prototype.dispose.call(this)};g.hI.prototype.ow=function(m){this.Xq.ow(m)};g.T(ws,g.Y);ws.prototype.U=function(){this.S++>15||(this.X=!this.X,new oUs(this.D,this.policy,this.Ge,this.i9,this.X),this.delay.start())}; +g.p=oUs.prototype;g.p.kD=function(){}; +g.p.fb=function(){}; +g.p.lF=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.tT()===this.size)this.D.B("rqs",this.lP());else{var m="net.connect";this.xhr.status>200?m="net.badstatus":this.xhr.iC()&&(m="net.closed");this.onError(m)}}; +g.p.onError=function(m){var e=this;this.D.handleError(m,this.lP());mM("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(Z){e.D.B("pathprobe",Z)},function(Z){e.D.handleError(Z.errorCode,Z.details)})}; +g.p.lP=function(){var m=this.timing.Xw();m.shost=Cy(this.location.WI);m.pb=this.size;return m};g.T(nt,g.Y); +nt.prototype.j=function(m,e){if(m.j){this.CB.isLive?(m=this.CB.X5&&this.CB.Z?m.X.sb(this.CB.X5,!1):m.X.Ih(Infinity),m.IY=this.IY):m=m.X.sb(0,!1);if(this.Y){var Z=this.Y;m.IY===0&&(m.L=Z.N)}else m.L=this.K;return m}Z=m.S;if(!Z.X.Dx())return Z.X.PX()?(m=M5(this.L,m.X.info.JR,e.X.info.JR,0),m=Z.X.lH(Z,m)):m=Z.X.nA(Z),m;var M=Z.bX-this.D.getCurrentTime(),k=!Z.range||Z.U===0&&Z.S===0?0:Z.range.length-(Z.S+Z.U),K=Z.X;UNK(this,m,M)&&k===0&&(this.CB.isManifestless?K=m.X:(K=Z.startTime+Ht,Z.U&&(K+=Z.duration), +l5(m,K),Z=m.S,K=Z.X));K.PX()?(k=this.U,e=M5(this.L,K.info.JR,e.X.info.JR,M,k.Z.length>0&&k.N===0&&this.D.oh),M=iH(m),m=Z.X.lH(Z,e),(e=m.U)&&m.qU.length>1&&(M||m.i9.U||m.qU[0].X!==Z.X?m=Z.X.lH(Z,m.qU[0].U):(M=m.qU[m.qU.length-1],K=M.U/e,!M.Z&&K<.4&&(m=Z.X.lH(Z,e-M.U))))):(Z.Wv<0&&(e=QG(Z),e.pr=""+m.U.length,this.D.isSeeking()&&(e.sk="1"),e.snss=Z.L,this.D.B("nosq",e)),m=K.nA(Z));if(this.policy.Qh)for(Z=g.r(m.qU),e=Z.next();!e.done;e=Z.next())e.value.type=6;return m}; +nt.prototype.LB=function(){g.Y.prototype.LB.call(this)}; +var Ht=2/24;g.T(ds,g.Y);ds.prototype.Kl=function(m,e,Z){var M;var k=((M=this.S)==null?void 0:M.reason)==="m"?"m":this.S&&j57(this,this.S)?this.S.reason:"a";this.D.Kl(new RN(m,k,Z));Ct(this.D,e,m,!0)}; +ds.prototype.BE=function(m,e,Z){Z=Z===void 0?{}:Z;this.X.BE(m,e===void 0?!1:e,Z)};Ui.prototype.g2=function(){return this.requestType===1}; +Ui.prototype.j_=function(){var m;return((m=this.z$)==null?void 0:m.j_())||0}; +Ui.prototype.isDecorated=function(){var m;return!((m=this.data)==null||!m.jO)};bH.prototype.encrypt=function(m){this.CJ.exports.AES128CTRCipher_encrypt(this.cipher,m.byteOffset,m.byteLength);return m}; +bH.prototype.MU=function(){return this.cipher===0}; +bH.prototype.dispose=function(){this.CJ.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};QI.prototype.encrypt=function(m,e){return qt(this.S.encrypt({name:"AES-CTR",length:128,counter:e},this.key,m).catch(function(Z){return Promise.reject(Z.name+": "+Z.message)}).then(function(Z){return new Uint8Array(Z)}))}; +QI.prototype.MU=function(){return this.X}; +QI.prototype.dispose=function(){this.X=!0}; +uW.Eu(QI,{encrypt:tI("oan2")});Hg.prototype.encrypt=function(m,e){DW(this.S,e);return qt(this.S.encrypt(m))}; +Hg.prototype.MU=function(){return this.X}; +Hg.prototype.dispose=function(){this.X=!0}; +uW.Eu(Hg,{encrypt:tI("oap")});Da.prototype.encrypt=function(m,e){var Z=this.CJ.pn(e),M=this.X;M.CJ.exports.AES128CTRCipher_setCounter(M.cipher,(Z!=null?Z:e).byteOffset);e=this.CJ.pn(m);this.X.encrypt(e!=null?e:m);Z&&this.CJ.free(Z.byteOffset);return e?qt(this.CJ.ul(e)):qt(m)}; +Da.prototype.MU=function(){return this.X.MU()}; +Da.prototype.dispose=function(){this.X.dispose()}; +uW.Eu(Da,{encrypt:tI("oalw")});si.prototype.encrypt=function(m){(0,g.G)();return(new I3(this.X.X)).encrypt(m,this.iv)}; +si.prototype.decrypt=function(m,e){(0,g.G)();return(new I3(this.X.X)).decrypt(m,e)};g.T(G_,g.Y);G_.prototype.U=function(m,e){if(e){e=e instanceof g.IL?e:yI(this,e);var Z;((Z=this.X.get(m))==null?void 0:Cy(Z.location))!==Cy(e)&&this.X.set(m,new wxy(e,m))}else this.X.delete(m)}; +G_.prototype.load=function(){var m=this,e,Z,M,k,K,q,S,a,v,X;return g.Qs(function(x){switch(x.X){case 1:e=m.X.get(0);Ab(x,2);var l;if(l=e&&!m.S)l=Cy(e.location),l=m.S===tx(l);if(l){x.pB(4);break}return g.A(x,Oi(m,m.S?2:0),5);case 5:if(Z=x.S)m.U(0,Z),oL(Z)&&m.U(1,d6(Z));case 4:C1(x,3);break;case 2:M=f1(x);g.LD(M);if(!m.S){x.pB(3);break}m.S=!1;return g.A(x,m.load(),7);case 7:return x.return();case 3:if(!m.V.experiments.dc("html5_onesie_probe_ec_hosts")){x.pB(0);break}Ab(x,9);k=m;K=k.U;q=3;return g.A(x, +Oi(m,1),11);case 11:return K.call(k,q,x.S),S=m,a=S.U,v=4,g.A(x,Oi(m,2),12);case 12:a.call(S,v,x.S);C1(x,0);break;case 9:X=f1(x),g.LD(X),g.It(x)}})}; +G_.prototype.C=function(){var m=this,e,Z;return g.Qs(function(M){g.ZZ(m.j);e=g.Y4(m.V.experiments,"html5_onesie_prewarm_max_lact_ms");if(g.Xb()>=e)return M.return();(Z=m.X.get(0))&&$QP(m,Z);g.It(M)})};nyR.prototype.decrypt=function(m){var e=this,Z,M,k,K,q,S;return g.Qs(function(a){switch(a.X){case 1:if(e.X.length&&!e.X[0].isEncrypted)return a.return();e.S=!0;e.lm.gV("omd_s");Z=new Uint8Array(16);Gp()?M=new rI(m):k=new I3(m);case 2:if(!e.X.length||!e.X[0].isEncrypted){a.pB(4);break}K=e.X.shift();if(!M){q=k.decrypt(K.buffer.GM(),Z);a.pB(5);break}return g.A(a,M.decrypt(K.buffer.GM(),Z),6);case 6:q=a.S;case 5:S=q;for(var v=0;v=4)){var e=aQ(this),Z=this.xhr;e.rc=Z.status;m&&(e.ab=!0);if(Z.H_()){var M="onesie.net";e.msg=Z.H_()}else Z.status>=400?M="onesie.net.badstatus":Z.qR()?this.t$||(M="onesie.response.noplayerresponse"):M=Z.status===204?"onesie.net.nocontent":"onesie.net.connect";M?this.Cd(new g.tw(M,e)):(this.gV("or_fs"),this.Zm.fY((0,g.G)(),Z.tT(),0),this.sx(4),this.Kx&&this.B("rqs",e));this.Kx&&this.B("ombre", +"ok."+ +!M);this.sC=!1;gH(this);S_(this.lm);if(!this.OC){this.al.stop();var k;(k=this.Zg)==null||k.stop()}var K;if(m=(K=this.C2)==null?void 0:F93(K))for(K=0;K1E3){var m;(m=this.Zm)==null||m.Jw((0,g.G)());m=aQ(this);if(this.V.Af()&&this.xhr instanceof CS){var e=this.xhr;m.xrs=e.xhr.readyState;m.xpb=e.X.getLength();m.xdc=e.Z}this.Cd(new g.tw("net.timeout",m))}}else(0,g.G)()-this.Zm.X>1E4&&((e=this.Zm)==null||e.Jw((0,g.G)()),this.Df());this.isComplete()||this.Mh.start()}}; +g.p.Df=function(){this.logger.info("Onesie request timed out");this.sC=!1;if(!gH(this)){var m=aQ(this);m.timeout="1";this.Cd(new g.tw("onesie.request",m))}}; +g.p.Cd=function(m){var e=this;m=Hi(m);this.GX?this.G.AY(m):(this.zw.reject(m),this.GX=!0);S_(this.lm);this.OC||this.al.stop();this.gV("or_fe");var Z,M;(Z=this.C2)==null||(M=F93(Z))==null||M.forEach(function(k){e.B("pathprobe",k)}); +this.sx(5);this.dispose()}; +g.p.isComplete=function(){return this.state>=3}; +g.p.oV=function(){return this.state===4}; +g.p.uB=function(m){var e,Z;return this.isComplete()||!!((e=this.v_)==null?0:(Z=e.get(m))==null?0:Z.X)}; +g.p.Bs=function(){return!1}; +g.p.rZ=function(){return this.state===5}; +g.p.notifySubscribers=function(m){for(var e=0;e102400&&!this.ju&&(this.gV("or100k"),this.ju=!0);if(m.SM()){var e=m.tx(),Z=e.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+Z}); +this.Kx&&this.B("ombrss","len."+Z);this.V$.feed(e)}if(this.v_)for(var M=g.r(this.v_.keys()),k=M.next();!k.done;k=M.next()){var K=k.value;m=void 0;(m=this.v_.get(K))==null||m.K2();this.notifySubscribers(K)}}catch(q){this.Cd(q)}}; +g.p.uS=function(){return this.Zm.requestNumber}; +g.p.VZ=function(m){return this.H7.get(m)}; +g.p.Gv=function(){return{cI:this.cI,zc:this.zc,isDecorated:!1}};g.T(XU,g.Y);g.p=XU.prototype;g.p.t3=function(m,e){this.K=void 0;hM7(this);Xnt(this,m,e)}; +g.p.CY=function(m){if(this.X.length===0)return!1;var e=this.X[0];return e instanceof vt?m===this.D.getCurrentTime()*1E3:!(e instanceof qz&&qEP(e.info))&&Math.abs(e.eL()-m)<50}; +g.p.oZ=function(m){this.S=m;this.K=(0,g.G)()+(m.backoffTimeMs||0)}; +g.p.kI=function(m,e){if(m.action===void 0){var Z=this.G.Hn();Z!==void 0&&this.D.F6(Z)}else if(m.action!==0||!this.b9)switch(m.action===0&&this.policy.Dp&&(m.action=2),Z={},Z.reason=m.FI,Z.action=m.action,Z.rn=e,m.action){case 1:this.policy.C&&this.Z&&this.Z.zk(void 0,void 0,Z);break;case 0:this.b9=!0;this.videoData.NO()&&this.policy.C&&this.Z&&this.Z.zk(void 0,void 0,Z);this.D.D2(Z);break;case 2:this.D.handleError("sabr.config",Z,1);break;case 5:Q0I(this.G,!0);break;case 6:Q0I(this.G,!1);break;case 3:this.policy.Bq&& +((m=this.CB.N)!=null&&(m.N=!0),this.D.handleError("sabr.hostfallback",Z))}}; +g.p.vz=function(m,e,Z,M){if(this.policy.S){this.D.B("ssap",{rn:M,v:e,tl:$Im(m)});var k=this.D.qP();m={VM:m,context:Z,version:e};ift(this,Z);k?RMK(this,k,m):(this.D.B("ssap",{cacheclips:1,rn:M,v:e}),this.j=m)}}; +g.p.v1=function(m){var e=this.policy.AR||this.policy.S;this.D.B("ssap",{onsbrctxt:m.type,dflt:m.sendByDefault,enable:e?1:0});e&&ift(this,m)}; +g.p.H1=function(){}; +g.p.Hp=function(m){if(m.wl!==void 0&&m.ea){var e=m.wl/m.ea;this.audioTrack.j=!1;this.videoTrack.j=!1;if(this.policy.S9||this.policy.Ot||this.policy.Cv)this.D.U9.S=!1;this.D.OB(e,1);if(this.G.getCurrentTime()!==e){var Z={DN:"sabr_seek",qW:!0,fZ:!0};m.seekSource&&(Z.seekSource=m.seekSource);hx(this.D,e+this.policy.YW/1E3,Z)}}}; +g.p.onSnackbarMessage=function(m){this.G.Pv("onSnackbarMessage",m)}; +g.p.d2=function(m){m.VV&&m.Gf&&Gu(this.CB,m.VV,m.Gf);this.policy.VI&&(m.Id&&m.jg&&(this.CB.Cv=m.Id/m.jg),m.PO&&m.Sg&&(this.CB.FF=m.PO/m.Sg));m.P2!=null&&this.G.nu(m.P2);this.policy.Yu&&m.dh&&(m=((0,g.G)()-m.dh)/1E3,this.D.yB.Ld(1,m))}; +g.p.qr=function(m){this.D.qr(m)}; +g.p.q5=function(m,e,Z){this.policy.U&&this.D.B("sabrctxtplc",{start:m?m.join("_"):"",stop:e?e.join("_"):"",discard:Z?Z.join("_"):""});if(m){m=g.r(m);for(var M=m.next();!M.done;M=m.next())this.iS.add(M.value)}if(e)for(e=g.r(e),m=e.next();!m.done;m=e.next())m=m.value,this.iS.has(m)&&this.iS.delete(m);if(Z)for(Z=g.r(Z),e=Z.next();!e.done;e=Z.next())e=e.value,this.videoData.sabrContextUpdates.has(e)&&(this.videoData.sabrContextUpdates.delete(e),e===3&&(this.videoData.Td=""))}; +g.p.Tb=function(){}; +g.p.n5=function(m,e){FC(this.policy,m,4,e)}; +g.p.Rh=function(m){if(m==null?0:m.HY)if(m=m.HY.SL){m=g.r(m);for(var e=m.next();!e.done;e=m.next())if(e=e.value,e.formatId){var Z=this.CB.U.get(I6(e.formatId));Z&&Z.info&&(Z.info.debugInfo=e.debugInfo)}}}; +g.p.dn=function(m){(m=m==null?void 0:m.reloadPlaybackParams)&&this.G.Pv("reloadplayer",m)}; +g.p.fE=function(){return this.G.fE()||""}; +g.p.j_=function(){var m=pt(this.audioTrack,!0)*1E3,e=pt(this.videoTrack,!0)*1E3;return Math.min(m,e)}; +g.p.YF=function(m,e){this.D.B(m,e)}; +g.p.qp=function(m){ES(this.D,RUb(this.yh,m))}; +g.p.LB=function(){g.Y.prototype.LB.call(this);this.S=void 0;Xnt(this,!0,"i");this.X=[]};nP.prototype.TK=function(m,e){if(this.Z)return NQb(this,e);if(e=TL(m)){var Z=e.S;Z&&Z.U&&Z.X&&(m=m.U.length?m.U[0]:null)&&m.state>=2&&!m.rZ()&&m.info.IY===0&&(this.Z=m,this.j=Z,this.S=e.info,this.C=this.startTimeSecs=Date.now()/1E3,this.L=this.S.startTime)}return NaN}; +nP.prototype.clear=function(){this.S=this.j=this.Z=null;this.X=this.L=this.C=this.startTimeSecs=NaN;this.U=!1};g.T(g.N0,g.Y);g.p=g.N0.prototype;g.p.initialize=function(m,e,Z){this.logger.debug(function(){return"Initialized, t="+m}); +m=m||0;this.policy.X||(e=Tjt(this.X),Y9(this.G,new RN(e.video,e.reason)),this.G.w8(new RN(e.audio,e.reason)));this.CB.isManifestless&&DNk(this.Z);this.C&&wnG(this.C,this.videoTrack.X);e=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var M=!this.CB.isManifestless;this.policy.qM&&(M=M||this.CB.QH);this.policy.sE||(this.currentTime=M?m:e);this.policy.S9&&this.seek(this.getCurrentTime(),{}).cS(function(){}); +if(this.policy.X){var k;((k=this.N)==null?0:z$I(k,this.fE()||""))&&Clk(this)&&rH(this,this.videoTrack)&&rH(this,this.audioTrack)&&(TQm(this.K,this.N),this.policy.L&&AaG(this))}else this.Y&&(f6K(this,this.videoTrack),f6K(this,this.audioTrack),drm(this.Y),delete this.Y);Z?(this.policy.K1?(this.Wq=Z,CP(this,Z)):CP(this,!1),g.ZZ(this.mz)):(Z=this.getCurrentTime()===0,rs(this.Z,this.videoTrack,this.videoTrack.X,Z),rs(this.Z,this.audioTrack,this.audioTrack.X,Z),this.policy.X&&eMc(this.K,!0),this.policy.S9|| +this.seek(this.getCurrentTime(),{}).cS(function(){}),this.timing.tick("gv")); +(this.CB.X5||this.CB.xE||this.CB.b9||this.CB.mw||this.CB.Bq)&&this.G.SP(this.CB)}; +g.p.resume=function(){if(this.isSuspended||this.oh){this.logger.debug("Resumed.");this.E1=this.oh=this.isSuspended=!1;try{this.TK()}catch(m){g.DA(m)}}}; +g.p.uH=function(m,e){m=m===void 0?!1:m;e=e===void 0?!1:e;this.logger.debug("detaching media source");dIP(this);wy(this.G)&&(this.L=NaN);m?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.yh&&this.B("loader",{setsmb:1}),this.policy.Qh=!0,this.tD()):(this.policy.K1?CP(this,this.Wq):CP(this,!1),e||this.tD())}; +g.p.setAudioTrack=function(m,e,Z){Z=Z===void 0?!1:Z;if(!this.MU()){var M=!isNaN(e);Z&&M&&(this.audioTrack.Y=Date.now(),this.policy.oY&&(this.nB=!0));if(this.policy.X){var k=Wbm(this.S,m.id,M);this.logger.debug(function(){return"Logging new audio format: "+k.X.info.id}); +this.G.w8(k)}else{var K=uA1(this.X,m.id,M);this.logger.debug(function(){return"Logging new audio format: "+K.audio.info.id}); +this.G.w8(new RN(K.audio,K.reason))}if(M&&(Z=this.audioTrack.X.index.fd(e),this.B("setAudio",{id:m.id,cmt:e,sq:Z}),Z>=0)){this.policy.X&&(this.S.N=!0,this.t3(!0,"mosaic"));Sr(this.audioTrack,Z,NaN,NaN);!this.policy.Sp&&this.CB.isLive&&sj(this.CB,Z,!1);return}this.G.Fe()}}; +g.p.setPlaybackRate=function(m){m!==this.j.getPlaybackRate()&&this.j.setPlaybackRate(m)}; +g.p.Kl=function(m){var e=m.X.info.F5();this.logger.debug(function(){return"New "+(e?"audio":"video")+" format from SABR: "+VB(m.X.info)}); +e?this.G.w8(m):Y9(this.G,m)}; +g.p.qp=function(m){YD(m.qU[m.qU.length-1])&&ES(this,RUb(this.X,m.qU[0].X))}; +g.p.a$=function(){return this.G.a$()}; +g.p.Uj=function(){return this.G.Uj()}; +g.p.qr=function(m){this.G.J().Af()&&this.B("sps",{status:m.uU||""});if(m.uU===1)this.G.videoData.A9=0;else if(m.uU===2||m.uU===3){var e=!1;if(m.uU===3){e=this.G.vn();var Z;this.tf=(Z=m.VE)!=null?Z:Infinity;this.G.videoData.A9=e+1;(e=ft(this))&&K53(this,!0)}this.G.dw(!0,e)}}; +g.p.ge=function(){return this.G.ge()}; +g.p.z_=function(){return this.G.z_()}; +g.p.nH=function(m){this.G.nH(m)}; +g.p.UG=function(){var m,e=(m=this.G.fJ())==null?void 0:m.getCurrentTime();e?this.G.B("rms",{cta:e}):g.ZZ(this.Te)}; +g.p.TK=function(){Bt(this);if(this.j9&&Tu(this.j9)&&!this.j9.cK()&&(!this.policy.sE||isFinite(this.getCurrentTime()))){var m=PW(this.videoTrack);m=this.policy.X0&&m&&m.SB();this.CB.isManifestless&&this.CB.Z&&HJ(this.CB)?(this.L=HJ(this.CB),this.j9.Ky(this.L)):y3(this.CB)&&!m?isNaN(this.L)?(this.L=this.getCurrentTime()+3600,this.j9.Ky(this.L)):this.L<=this.getCurrentTime()+1800&&(this.L=Math.max(this.L+1800,this.getCurrentTime()+3600),this.j9.Ky(this.L)):this.j9.isView||(m=Math.max(this.audioTrack.getDuration(), +this.videoTrack.getDuration()),(!isFinite(this.L)||this.L!==m)&&m>0&&(this.j9.Ky(m),this.L=m))}if(!this.MU())if(Q3(this.CB)&&this.CB.rZ()){var e=this.CB;this.handleError("manifest.net.retryexhausted",e.tR?{rc:e.UN}:{rc:e.UN.toString()},1)}else if(this.policy.X)a:{try{uG(this.K);this.CB.isManifestless&&this.policy.L&&u5(this.U9);if(dH(this)&&this.j9&&!n8(this.j9)&&this.videoTrack.yh&&this.audioTrack.yh){this.B("ssap",{delaysb:1,v:this.videoTrack.X.info.id,vf:this.videoTrack.X.info.T$,a:this.audioTrack.X.info.id, +af:this.audioTrack.X.info.T$});var Z=this.j9,M=this.videoTrack.X,k=this.audioTrack.X;!n8(Z)&&k&&M&&(oCG(Z,M.info,k.info,this.policy.JJ),BQR(this,Z))}var K;((K=this.j9)==null?0:n8(K))&&fP(this);this.policy.X||A1(this);eMc(this.K)}catch(S){g.LD(S);e=S;if(e.message.includes("changeType")){this.B("ssap",{exp:e.name,msg:e.message,s:e.stack});break a}this.handleError("fmt.unplayable",{exp:e.name,msg:e.message,s:e.stack},1)}PlK(this);g.ZZ(this.ZN)}else if(!this.CB.S||!TFc(this.videoTrack)&&!TFc(this.audioTrack)|| +(this.videoTrack.L||this.audioTrack.L)&&this.policy.Wq?Z=!1:(this.tD(),this.G.seekTo(Infinity,{DN:"checkLoaderTracksSync",OB:!0}),Z=!0),!Z){Bt(this);this.CB.isManifestless&&($Ns(this.videoTrack),$Ns(this.audioTrack),u5(this.U9),(Z=TL(this.videoTrack))&&Z.S&&(Z=Z.S.U&&!this.policy.wN,this.B(Z===this.policy.j.qF?"strm":"strmbug",{strm:Z,sfmp4:this.policy.j.qF,dfs:this.policy.wN},!0)));if(this.j9)fP(this);else if(this.policy.Z){var q;Z=!1;if(this.policy.eF)for(M=g.r([this.videoTrack,this.audioTrack]), +k=M.next();!k.done;k=M.next()){K=k.value;for(k=TL(K);k&&K.MZ()!==PW(K);k=TL(K))K.rk(k);Z=Z||!!k}else(e=TL(this.videoTrack))&&this.videoTrack.rk(e),(q=TL(this.audioTrack))&&this.audioTrack.rk(q);kW(this.videoTrack)&&kW(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(e||q||Z)&&lG(this)}A1(this);rs(this.Z,this.videoTrack,this.videoTrack.X,!1);rs(this.Z,this.audioTrack,this.audioTrack.X,!1);this.policy.t0||UIy(this,this.videoTrack,this.audioTrack);EUI(this.Z,this.videoTrack, +this.audioTrack);EUI(this.Z,this.audioTrack,this.videoTrack);PlK(this);this.C&&(e=this.C,e.Z?(q=e.C+e.policy.ML,e.U||(q=Math.min(q,e.startTimeSecs+e.policy.d7)),e=Math.max(0,q*1E3-Date.now())):e=NaN,isNaN(e)||g.ZZ(this.uw,e));g.ZZ(this.ZN)}}; +g.p.D2=function(m){this.G.D2(m)}; +g.p.o6=function(m){var e,Z=m===((e=this.j9)==null?void 0:e.X)?this.audioTrack:this.videoTrack,M;(M=Z.b9)==null||M.stop();var k;if((k=TL(Z))==null?0:k.isLocked){if(this.G.J().Af()){var K;this.B("eosl",{ounlock:(K=TL(Z))==null?void 0:K.info.EZ()})}var q;QL(this,m===((q=this.j9)==null?void 0:q.X))}var S;if(this.policy.oY&&m===((S=this.j9)==null?void 0:S.X)&&this.tR){e=this.tR-this.getCurrentTime();var a;this.G.B("asl",{l:e,xtag:(a=PW(this.audioTrack))==null?void 0:a.X.info.X});this.nB=!1;this.tR=0}m.Xh()&& +m.v0().length===0&&(m.pU(),this.j9&&!this.j9.Xh()&&(this.G.J().Af()&&this.G.B("rms",{ld:"seek"}),this.j9.C=performance.now(),this.G.AA(),this.G.J().Af()&&g.ZZ(this.Te)));var v;(v=Z.K)!=null&&oN(v,0);this.policy.CR&&this.policy.S1&&this.j9&&(Z=m.Lq())&&Z.SB()&&!S4(m.v0(),Math.min(Z.u7+Ht,Z.bX))&&this.B("sbunb",{st:Z.u7,et:Z.bX});this.policy.tf?AI(this):this.TK()}; +g.p.BN=function(m){if(this.j9){var e=PW(m===this.j9.X?this.audioTrack:this.videoTrack);if(m=m.B9())for(var Z=0;Zthis.U&&(this.U=Z,g.DQ(this.X)||(this.X={},this.Z.stop(),this.S.stop())),this.X[e]=m,g.ZZ(this.S))}}; +Gb.prototype.L=function(){for(var m=g.r(Object.keys(this.X)),e=m.next();!e.done;e=m.next()){var Z=e.value;e=this.Pv;for(var M=this.U,k=this.X[Z].match(g.Ca),K=[],q=g.r(k[6].split("&")),S=q.next();!S.done;S=q.next())S=S.value,S.indexOf("cpi=")===0?K.push("cpi="+M.toString()):S.indexOf("ek=")===0?K.push("ek="+ku(Z)):K.push(S);k[6]="?"+K.join("&");Z="skd://"+k.slice(2).join("");k=Z.length*2;M=new Uint8Array(k+4);M[0]=k%256;M[1]=(k-M[0])/256;for(k=0;k0)for(var Z=g.r(this.X),M=Z.next();!M.done;M=Z.next())if(e===M.value.info.cryptoPeriodIndex){e=!0;break a}e=!1}if(!e){e=(0,g.G)();a:{Z=m.cryptoPeriodIndex;if(!isNaN(Z)){M=g.r(this.U.values());for(var k=M.next();!k.done;k=M.next())if(Math.abs(k.value.cryptoPeriodIndex-Z)<=1){Z=!0;break a}}Z=!1}Z?(Z=m.X,Z=Math.max(0,Math.random()*((isNaN(Z)?120:Z)-30))*1E3):Z=0;this.Pv("log_qoe",{wvagt:"delay."+Z,cpi:m.cryptoPeriodIndex,reqlen:this.X.length, +ignore:this.Z});Z<=0?a71(this,m):this.Z||(this.X.push({time:e+Z,info:m}),g.ZZ(this.S,Z))}}; +yL.prototype.LB=function(){this.X=[];sS.prototype.LB.call(this)};var e$={},R_m=(e$.DRM_TRACK_TYPE_AUDIO="AUDIO",e$.DRM_TRACK_TYPE_SD="SD",e$.DRM_TRACK_TYPE_HD="HD",e$.DRM_TRACK_TYPE_UHD1="UHD1",e$);g.T(iTP,g.Y);g.T(OS,g.m6);g.p=OS.prototype;g.p.Bd=function(m){var e=this;this.MU()||m.size<=0||(m.forEach(function(Z,M){var k=eP(e.S)?M:Z;M=new Uint8Array(eP(e.S)?Z:M);eP(e.S)&&BLy(M);Z=g.HG(M,4);BLy(M);M=g.HG(M,4);e.X[Z]?e.X[Z].status=k:e.X[M]?e.X[M].status=k:e.X[Z]={type:"",status:k}}),f7P(this,","),j_(this,{onkeystatuschange:1}),this.status="kc",this.Pv("keystatuseschange",this))}; +g.p.error=function(m,e,Z,M){this.MU()||(this.Pv("licenseerror",m,e,Z,M),m==="drm.provision"&&(m=(Date.now()-this.C)/1E3,this.C=NaN,this.Pv("ctmp","provf",{et:m.toFixed(3)})));Q6(e)&&this.dispose()}; +g.p.shouldRetry=function(m,e){return this.Qh&&this.j?!1:!m&&this.requestNumber===e.requestNumber}; +g.p.LB=function(){this.X={};g.m6.prototype.LB.call(this)}; +g.p.pR=function(){var m={ctype:this.K.contentType||"",length:this.K.initData.length,requestedKeyIds:this.b9,cryptoPeriodIndex:this.cryptoPeriodIndex};this.U&&(m.keyStatuses=this.X);return m}; +g.p.lP=function(){var m=this.Z.join();if(J1(this)){var e=new Set,Z;for(Z in this.X)this.X[Z].status!=="usable"&&e.add(this.X[Z].type);m+="/UKS."+Array.from(e)}return m+="/"+this.cryptoPeriodIndex}; +g.p.Ya=function(){return this.url};g.T(zb,g.Y);g.p=zb.prototype;g.p.p4=function(m){if(this.L){var e=m.messageType||"license-request";this.L(new Uint8Array(m.message),e)}}; +g.p.Bd=function(){this.j&&this.j(this.X.keyStatuses)}; +g.p.DT=function(m){this.L&&this.L(m.message,"license-request")}; +g.p.xP=function(m){if(this.U){if(this.S){var e=this.S.error.code;m=this.S.error.systemCode}else e=m.errorCode,m=m.systemCode;this.U("t.prefixedKeyError;c."+e+";sc."+m,e,m)}}; +g.p.JM=function(){this.C&&this.C()}; +g.p.update=function(m){var e=this;if(this.X)return(uT.isActive()?uT.J6("emeupd",function(){return e.X.update(m)}):this.X.update(m)).then(null,l_(function(Z){YXm(e,"t.update",Z)})); +this.S?this.S.update(m):this.element.addKey?this.element.addKey(this.N.keySystem,m,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,m,this.initData,this.sessionId);return g.rh()}; +g.p.LB=function(){this.X&&(this.K?this.X.close().catch(g.LD):this.X.close());this.element=null;g.Y.prototype.LB.call(this)};g.T(Pt,g.Y);g.p=Pt.prototype;g.p.hg=function(){var m=this;if(this.X.keySystemAccess)return(uT.isActive()?uT.J6("emenew",function(){return m.X.keySystemAccess.createMediaKeys()}):this.X.keySystemAccess.createMediaKeys()).then(function(Z){if(!m.MU())if(m.S=Z,uT.isActive())uT.J6("emeset",function(){return m.element.setMediaKeys(Z)}); +else{var M;(M=m.element)==null||M.setMediaKeys(Z)}}); +if(mZ(this.X))this.U=new (PJ())(this.X.keySystem);else if(Zg(this.X)){this.U=new (PJ())(this.X.keySystem);var e;(e=this.element)==null||e.webkitSetMediaKeys(this.U)}else uT.isActive()&&this.B("emev",{v:"01b"}),zo(this.L,this.element,["keymessage","webkitkeymessage"],this.vM),zo(this.L,this.element,["keyerror","webkitkeyerror"],this.HM),zo(this.L,this.element,["keyadded","webkitkeyadded"],this.dK);return null}; +g.p.setServerCertificate=function(){return this.S.setServerCertificate?this.X.flavor==="widevine"&&this.X.dZ?this.S.setServerCertificate(this.X.dZ):kk(this.X)&&this.X.kG?this.S.setServerCertificate(this.X.kG):null:null}; +g.p.createSession=function(m,e){var Z=m.initData;if(this.X.keySystemAccess){e&&e("createsession");var M=this.S.createSession();MR(this.X)?Z=UPy(Z,this.X.kG):kk(this.X)&&(Z=SXR(Z)||new Uint8Array(0));e&&e("genreq");var k=uT.isActive()?uT.J6("emegen",function(){return M.generateRequest(m.contentType,Z)}):M.generateRequest(m.contentType,Z); +var K=new zb(null,null,null,M,null,this.j);k.then(function(){e&&e("genreqsuccess")},l_(function(S){YXm(K,"t.generateRequest",S)})); +return K}if(mZ(this.X))return ttR(this,Z);if(Zg(this.X))return bTR(this,Z);if((k=this.element)==null?0:k.generateKeyRequest)this.element.generateKeyRequest(this.X.keySystem,Z);else{var q;(q=this.element)==null||q.webkitGenerateKeyRequest(this.X.keySystem,Z)}return this.Z=new zb(this.element,this.X,Z,null,null,this.j)}; +g.p.vM=function(m){var e=mn(this,m);e&&e.DT(m)}; +g.p.HM=function(m){var e=mn(this,m);e&&e.xP(m)}; +g.p.dK=function(m){var e=mn(this,m);e&&e.JM(m)}; +g.p.getMetrics=function(){if(this.S&&this.S.getMetrics)try{var m=this.S.getMetrics()}catch(e){}return m}; +g.p.LB=function(){this.U=this.S=null;var m;(m=this.Z)==null||m.dispose();m=g.r(Object.values(this.C));for(var e=m.next();!e.done;e=m.next())e.value.dispose();this.C={};g.Y.prototype.LB.call(this);delete this.element};g.p=eR.prototype;g.p.get=function(m){m=this.findIndex(m);return m!==-1?this.values[m]:null}; +g.p.remove=function(m){m=this.findIndex(m);m!==-1&&(this.keys.splice(m,1),this.values.splice(m,1))}; +g.p.WV=function(){this.keys=[];this.values=[]}; +g.p.set=function(m,e){var Z=this.findIndex(m);Z!==-1?this.values[Z]=e:(this.keys.push(m),this.values.push(e))}; +g.p.findIndex=function(m){return g.RO(this.keys,function(e){return BG(m,e)})};g.T(Mm,g.m6);g.p=Mm.prototype;g.p.Du=function(m){this.kF({onecpt:1});m.initData&&L5I(this,new Uint8Array(m.initData),m.initDataType)}; +g.p.K8=function(m){this.kF({onndky:1});L5I(this,m.initData,m.contentType)}; +g.p.eV=function(m){this.kF({onneedkeyinfo:1});this.V.W("html5_eme_loader_sync")&&(this.j.get(m.initData)||this.j.set(m.initData,m));DPk(this,m)}; +g.p.u$=function(m){this.U.push(m);kq(this)}; +g.p.createSession=function(m){var e=sVy(this)?bYc(m):g.HG(m.initData);this.S.get(e);this.b9=!0;m=new OS(this.videoData,this.V,m,this.drmSessionId);this.S.set(e,m);m.subscribe("ctmp",this.zS,this);m.subscribe("keystatuseschange",this.Bd,this);m.subscribe("licenseerror",this.Yf,this);m.subscribe("newlicense",this.TP,this);m.subscribe("newsession",this.Ne,this);m.subscribe("sessionready",this.un,this);m.subscribe("fairplay_next_need_key_info",this.BO,this);this.V.W("html5_enable_vp9_fairplay")&&m.subscribe("qualitychange", +this.G9,this);this.V.W("html5_enable_sabr_drm_hd720p")&&m.subscribe("sabrlicenseconstraint",this.Ei,this);wwI(m,this.Z)}; +g.p.TP=function(m){this.MU()||(this.kF({onnelcswhb:1}),m&&!this.heartbeatParams&&(this.heartbeatParams=m,this.Pv("heartbeatparams",m)))}; +g.p.Ne=function(){this.MU()||(this.kF({newlcssn:1}),this.U.shift(),this.b9=!1,kq(this))}; +g.p.un=function(){if(mZ(this.X)&&(this.kF({onsnrdy:1}),this.yh--,this.yh===0)){var m=this.Y,e,Z;(e=m.element)==null||(Z=e.msSetMediaKeys)==null||Z.call(e,m.U)}}; +g.p.Bd=function(m){if(!this.MU()){!this.sE&&this.videoData.W("html5_log_drm_metrics_on_key_statuses")&&(GzK(this),this.sE=!0);this.kF({onksch:1});var e=this.G9;if(!J1(m)&&tR&&m.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var Z="large";else{Z=[];var M=!0;if(J1(m))for(var k=g.r(Object.keys(m.X)),K=k.next();!K.done;K=k.next())K=K.value,m.X[K].status==="usable"&&Z.push(m.X[K].type),m.X[K].status!=="unknown"&&(M=!1);if(!J1(m)||M)Z=m.Z;Z=C4R(Z)}e.call(this,Z);this.Pv("keystatuseschange", +m)}}; +g.p.zS=function(m,e){this.MU()||this.Pv("ctmp",m,e)}; +g.p.BO=function(m,e){this.MU()||this.Pv("fairplay_next_need_key_info",m,e)}; +g.p.Yf=function(m,e,Z,M){this.MU()||(this.videoData.W("html5_log_drm_metrics_on_error")&&GzK(this),this.Pv("licenseerror",m,e,Z,M))}; +g.p.Bn=function(){return this.N}; +g.p.G9=function(m){var e=SN("auto",m,!1,"l");if(this.videoData.YH){if(py(this.N,e))return}else if(tWR(this.N,m))return;this.N=e;this.Pv("qualitychange");this.kF({updtlq:m})}; +g.p.Ei=function(m){this.videoData.sabrLicenseConstraint=m}; +g.p.LB=function(){this.X.keySystemAccess&&this.element&&(this.S9?this.element.setMediaKeys(null).catch(g.LD):this.element.setMediaKeys(null));this.element=null;this.U=[];for(var m=g.r(this.S.values()),e=m.next();!e.done;e=m.next())e=e.value,e.unsubscribe("ctmp",this.zS,this),e.unsubscribe("keystatuseschange",this.Bd,this),e.unsubscribe("licenseerror",this.Yf,this),e.unsubscribe("newlicense",this.TP,this),e.unsubscribe("newsession",this.Ne,this),e.unsubscribe("sessionready",this.un,this),e.unsubscribe("fairplay_next_need_key_info", +this.BO,this),this.V.W("html5_enable_vp9_fairplay")&&e.unsubscribe("qualitychange",this.G9,this),e.dispose();this.S.clear();this.C.WV();this.j.WV();this.heartbeatParams=null;g.m6.prototype.LB.call(this)}; +g.p.pR=function(){for(var m={systemInfo:this.X.pR(),sessions:[]},e=g.r(this.S.values()),Z=e.next();!Z.done;Z=e.next())m.sessions.push(Z.value.pR());return m}; +g.p.lP=function(){return this.S.size<=0?"no session":""+this.S.values().next().value.lP()+(this.L?"/KR":"")}; +g.p.kF=function(m,e){e=e===void 0?!1:e;this.MU()||(b_(m),(this.V.Af()||e)&&this.Pv("ctmp","drmlog",m))};g.T(p5,g.Y);g.p=p5.prototype;g.p.yJ=function(){return!!this.ij}; +g.p.tZ=function(){return this.S}; +g.p.handleError=function(m){var e=this;P4m(this,m);if((m.errorCode!=="html5.invalidstate"&&m.errorCode!=="fmt.unplayable"&&m.errorCode!=="fmt.unparseable"||!v0(this,m.errorCode,m.details))&&!M2I(this,m)){if(this.Xq.L!=="yt"&&eF3(this,m)&&this.videoData.QM&&(0,g.G)()/1E3>this.videoData.QM&&this.Xq.L==="hm"){var Z=Object.assign({e:m.errorCode},m.details);Z.stalesigexp="1";Z.expire=this.videoData.QM;Z.init=this.videoData.Z7/1E3;Z.now=(0,g.G)()/1E3;Z.systelapsed=((0,g.G)()-this.videoData.Z7)/1E3;m=new g.tw(m.errorCode, +Z,2);this.G.aE(m.errorCode,2,"SIGNATURE_EXPIRED",b_(m.details))}if(Q6(m.severity)){var M;Z=(M=this.G.D)==null?void 0:M.X.X;if(this.Xq.W("html5_use_network_error_code_enums"))if(mym(m)&&Z&&Z.isLocked())var k="FORMAT_UNAVAILABLE";else if(m.errorCode!=="auth"||m.details.rc!==429)m.errorCode==="ump.spsrejectfailure"&&(k="HTML5_SPS_UMP_STATUS_REJECTED");else{k="TOO_MANY_REQUESTS";var K="6"}else mym(m)&&Z&&Z.isLocked()?k="FORMAT_UNAVAILABLE":m.errorCode!=="auth"||m.details.rc!=="429"?m.errorCode==="ump.spsrejectfailure"&& +(k="HTML5_SPS_UMP_STATUS_REJECTED"):(k="TOO_MANY_REQUESTS",K="6");this.G.aE(m.errorCode,m.severity,k,b_(m.details),K)}else this.G.Pv("nonfatalerror",m),M=/^pp/.test(this.videoData.clientPlaybackNonce),this.AY(m.errorCode,m.details),M&&m.errorCode==="manifest.net.connect"&&(m="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.G)(),mM(m,"manifest",function(q){e.C=!0;e.B("pathprobe",q)},function(q){e.AY(q.errorCode,q.details)}))}}; +g.p.B=function(m,e){this.G.lw().B(m,e)}; +g.p.AY=function(m,e){e=b_(e);this.G.lw().AY(m,e)};iU.prototype.N1=function(m,e){return(e===void 0?0:e)?{OS:m?he(this,m):V5,pG:m?SQm(this,m):V5,Gx:m?qQs(this,m):V5,lq:m?T9(this,m.videoData):V5,KG:m?$q(this,m.videoData,m):V5,cJ:m?uU(this,m):V5}:{OS:m?he(this,m):V5}}; +iU.prototype.W=function(m){return this.V.W(m)};g.T(Fw,g.Y);g.p=Fw.prototype;g.p.WP=function(){return this.i9}; +g.p.j1=function(m){var e="";m&&(hFs(this,m),e=m.i9);if(!this.Kd()||e)e&&this.Kd()!==e&&(this.Dg(e),delete this.S,this.U&&(this.U.reject(),delete this.U),!window.MediaSource&&window.ManagedMediaSource&&this.pZ(!(m==null||!m.X))),m&&m.X||this.load(),this.j||(this.addEventListener("volumechange",this.Gz),this.j=!0)}; +g.p.bK=function(m,e){if(this.S)if(S8&&n8(this.S)&&!this.S.r8(m,e)){var Z;Fs(this,{l:"megms",sr:(Z=this.G)==null?void 0:wy(Z)});uGK(this);this.stopVideo()}else return this.j9=this.S,this.S=void 0,this.j9;m=window.MediaSource?new hB(this,new window.MediaSource,!1):window.ManagedMediaSource?new hB(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new hB(this,new window.WebKitMediaSource,!1):new hB(this,void 0,!1);this.j1(m.U);this.j9=m;this.BU=!1;return m}; +g.p.playVideo=function(){var m=this;this.isEnded()&&this.seekTo(0);!this.Kd()&&this.i9&&(g.DA(Error("playVideo without src")),this.Dg(this.i9.i9),this.i9.X||this.load());var e=this.play(),Z;((Z=this.G)==null?0:Z.W("html5_remove_ios_7_hack_force_play"))||!e&&Ez&&(kO||0)>=7&&yi1(this,function(){g.kl(function(){RFm(m,m.getCurrentTime(),0)},500)}); +return e}; +g.p.seekTo=function(m){this.t7()>0&&(Ez&&kO<4&&(m=Math.max(.1,m)),this.setCurrentTime(m))}; +g.p.jI=function(){if(!this.S&&this.j9)if(this.j9.L)try{var m;Fs(this,{l:"mer",sr:(m=this.G)==null?void 0:wy(m),rs:cJ(this.j9)});this.j9.clear();this.S=this.j9;this.j9=void 0}catch(e){m=new g.Nr("Error while clearing Media Source in MediaElement: "+e.name+", "+e.message),g.DA(m),this.stopVideo()}else this.stopVideo()}; +g.p.stopVideo=function(){var m=this;if(!this.S){var e;(e=this.j9)==null||ECP(e);if(p$){if(!this.U){var Z=new Gx;Z.then(void 0,function(){}); +this.U=Z;MN7&&this.pause();g.kl(function(){m.U===Z&&(c0(m),Z.resolve())},200)}}else c0(this)}}; +g.p.AV=function(){var m=this.kE();return vJ(m)>0&&this.getDuration()?aX(m,this.getCurrentTime()):0}; +g.p.oC=function(){var m=this.getDuration();return m===Infinity?1:m?this.AV()/m:0}; +g.p.pR=function(){try{var m=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:q4(this.qz(),",",3),vbu:q4(this.kE()),vbs:q4(this.lW()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.t7(),vns:""+this.PU(),vec:""+this.G3(),vemsg:this.H_(),vvol:""+this.getVolume(),vdom:""+ +this.Wa(),vsrc:""+ +!!this.Kd(),vw:""+m.width,vh:""+m.height}}catch(e){return{}}}; +g.p.hasError=function(){return this.G3()>0}; +g.p.addEventListener=function(m,e){this.Z.GO(m,e,!1,this);this.Kk(m)}; +g.p.removeEventListener=function(m,e){this.Z.gy(m,e,!1,this)}; +g.p.dispatchEvent=function(m){if(this.U&&m.type==="pause")return!1;if(S8){var e,Z=((e=m.X)==null?void 0:e.timeStamp)||Infinity;e=Z>performance.now()?Z-Date.now()+performance.now():Z;Z=this.S||this.j9;if((Z==null?0:Z.Xh())||e<=((Z==null?void 0:Z.C)||0)){var M;Fs(this,{l:"mede",sr:(M=this.G)==null?void 0:wy(M),et:m.type});return!1}if(this.BU)return Fs(this,{l:"medes",et:m.type}),Z&&m.type==="seeking"&&(Z.C=performance.now(),this.BU=!1),!1}return this.Z.dispatchEvent(m)}; +g.p.zA=function(){this.C=!1}; +g.p.Jg=function(){this.C=!0;this.dE(!0)}; +g.p.Gz=function(){this.C&&!this.hZ()&&this.dE(!0)}; +g.p.LB=function(){this.j&&this.removeEventListener("volumechange",this.Gz);p$&&c0(this);g.Y.prototype.LB.call(this)}; +var p$=!1,MN7=!1,S8=!1,$yI=!1;g.p=g.rv.prototype;g.p.isPaused=function(){return g.y(this,4)}; +g.p.isPlaying=function(){return g.y(this,8)&&!g.y(this,512)&&!g.y(this,64)&&!g.y(this,2)}; +g.p.isOrWillBePlaying=function(){return g.y(this,8)&&!g.y(this,2)&&!g.y(this,1024)}; +g.p.isCued=function(){return g.y(this,64)&&!g.y(this,8)&&!g.y(this,4)}; +g.p.isBuffering=function(){return g.y(this,1)&&!g.y(this,2)}; +g.p.isError=function(){return g.y(this,128)}; +g.p.isSuspended=function(){return g.y(this,512)}; +g.p.NS=function(){return g.y(this,64)&&g.y(this,4)}; +g.p.toString=function(){return"PSt."+this.state.toString(16)}; +var Zj={},M2=(Zj.BUFFERING="buffering-mode",Zj.CUED="cued-mode",Zj.ENDED="ended-mode",Zj.PAUSED="paused-mode",Zj.PLAYING="playing-mode",Zj.SEEKING="seeking-mode",Zj.UNSTARTED="unstarted-mode",Zj);g.T(Er,g.Y);Er.prototype.onError=function(m){if(m!=="player.fatalexception"||this.provider.W("html5_exception_to_health"))m==="sabr.fallback"&&(this.encounteredSabrFallback=!0),m.match(QXI)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +Er.prototype.send=function(){if(!(this.Z||this.X<0)){cgK(this);var m=g.Yq(this.provider)-this.X,e="PLAYER_PLAYBACK_STATE_UNKNOWN",Z=this.playerState.wG;this.playerState.isError()?e=Z&&Z.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.y(this.playerState,2)?e="PLAYER_PLAYBACK_STATE_ENDED":g.y(this.playerState,64)?e="PLAYER_PLAYBACK_STATE_UNSTARTED":g.y(this.playerState,16)||g.y(this.playerState,32)?e="PLAYER_PLAYBACK_STATE_SEEKING":g.y(this.playerState,1)&&g.y(this.playerState, +4)?e="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.y(this.playerState,1)?e="PLAYER_PLAYBACK_STATE_BUFFERING":g.y(this.playerState,4)?e="PLAYER_PLAYBACK_STATE_PAUSED":g.y(this.playerState,8)&&(e="PLAYER_PLAYBACK_STATE_PLAYING");Z=y$s[If(this.provider.videoData)];a:switch(this.provider.V.playerCanaryState){case "canary":var M="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":M="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:M="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var k=Nut(this.provider), +K=this.S<0?m:this.S-this.X;m=this.provider.V.wr+36E5<(0,g.G)();e={started:this.S>=0,stateAtSend:e,joinLatencySecs:K,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:M,playerCanaryStage:k,isAd:this.provider.videoData.isAd(),liveMode:Z,hasDrm:!!g.Nw(this.provider.videoData),isGapless:this.provider.videoData.N,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Mw(this.provider.videoData)};m||g.D2("html5PlayerHealthEvent",e);this.Z=!0;this.dispose()}}; +Er.prototype.LB=function(){this.Z||this.send();window.removeEventListener("error",this.U);window.removeEventListener("unhandledrejection",this.U);g.Y.prototype.LB.call(this)}; +var QXI=/\bnet\b/;g.T(Ur,g.Y);Ur.prototype.LB=function(){g.Y.prototype.LB.call(this);Agt(this)};var C9P=/[?&]cpn=/;var Bus=[2,5,30];var Je=g.yF(function(){var m="";try{var e=g.SU("CANVAS").getContext("webgl");e&&(e.getExtension("WEBGL_debug_renderer_info"),m=e.getParameter(37446),m=m.replace(/[ :]/g,"_"))}catch(Z){}return m});g.T(g.L5,g.Y);g.p=g.L5.prototype;g.p.SG=function(){var m=g.Yq(this.provider);sr(this,m)}; +g.p.lj=function(){return this.sE}; +g.p.MS=function(){return{l8:this.l8,Le:this.Le}}; +g.p.wX=function(m,e){this.l8=m;this.Le=e}; +g.p.nu=function(m){if(!this.Bq){this.Bq=!0;var e="";switch(m){case 1:e="proximaui";break;case 2:e=s8c(this.provider.videoData)?"proximawpcc":this.provider.videoData.W("html5_enable_proxima")||this.provider.videoData.W("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:e="proximaauto"}e!==""&&Or(this,e)}}; +g.p.SP=function(m){this.X.lwc=[[m.X5?m.X5.toFixed():"",m.xE?m.xE.toFixed():"",m.b9?(m.b9*1E3).toFixed():"",m.mw?(m.mw*1E3).toFixed():"",m.Bq?(m.Bq*1E3).toFixed():""].join(":")]}; +g.p.reportStats=function(m){m=m===void 0?NaN:m;if(!this.MU()&&(m=m>=0?m:g.Yq(this.provider),["PL","B","S"].indexOf(this.S)>-1&&(!g.DQ(this.X)||m>=this.L+30)&&(g.DR(this,m,"vps",[this.S]),this.L=m),!g.DQ(this.X))){this.sequenceNumber===7E3&&g.LD(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){yC(this,m);var e=m,Z=this.provider.G.Fg(),M=Z.droppedVideoFrames||0,k=Z.totalVideoFrames||0,K=M-this.l8,q=k&&!this.Le;M>Z.totalVideoFrames||K>5E3?LsK(this,"html5.badframedropcount","df."+M+";tf."+ +Z.totalVideoFrames):(K>0||q)&&g.DR(this,e,"df",[K]);this.l8=M;this.Le=k;this.nB>0&&(g.DR(this,m,"glf",[this.nB]),this.nB=0);to.isActive()&&(m=to.h$(),Object.keys(m).length>0&&this.B("profile",m));this.Wq&&Or(this,"lwnmow");this.provider.V.Af()&&this.provider.W("html5_record_now")&&this.B("now",{wt:(0,g.G)()});m={};this.provider.videoData.U&&(m.fmt=this.provider.videoData.U.itag,(e=this.provider.videoData.Z)&&e.itag!==m.fmt&&(m.afmt=e.itag));m.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& +(m.adcpn=this.adCpn);this.Y&&(m.addocid=this.Y);this.contentCpn&&(m.ccpn=this.contentCpn);this.S9&&(m.cdocid=this.S9);this.provider.videoData.cotn&&(m.cotn=this.provider.videoData.cotn);m.el=dA(this.provider.videoData);m.content_v=Es(this.provider.videoData);m.ns=this.provider.V.L;m.fexp=Cxm(this.provider.V.experiments).toString();m.cl=(704511060).toString();(e=this.provider.videoData.adFormat||this.adFormat)&&(m.adformat=e);(e=If(this.provider.videoData))&&(m.live=e);this.provider.videoData.T3()&& +(m.drm=1,this.provider.videoData.L&&(m.drm_system=Nyk[this.provider.videoData.L.flavor]||0),this.provider.videoData.Ot&&(m.drm_product=this.provider.videoData.Ot));g.jS()&&this.provider.videoData.C&&(m.ctt=this.provider.videoData.C,m.cttype=this.provider.videoData.GT,this.provider.videoData.mdxEnvironment&&(m.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(m.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.q8&&(m.dai_fallback= +"1")):this.provider.videoData.IE?m.dai="cs":this.provider.videoData.zF&&(m.dai="disabled");m.seq=this.sequenceNumber++;if(this.provider.videoData.eE){if(e=this.provider.videoData.eE,m&&e)for(e.ns==="3pp"&&(m.ns="3pp"),this.NP.has(e.ns)&&Or(this,"hbps"),e.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=e.shbpslc),Z=g.r(Object.keys(e)),M=Z.next();!M.done;M=Z.next())M=M.value,this.lX.has(M)||(m[M]=e[M])}else m.event="streamingstats",m.docid=this.provider.videoData.videoId,m.ei=this.provider.videoData.eventId; +this.isEmbargoed&&(m.embargoed="1");Object.assign(m,this.provider.V.X);if(e=m.seq)e={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+e,serializedWatchEndpointLoggingContext:this.provider.videoData.Ks},this.serializedHouseBrandPlayerServiceLoggingContext&&(e.serializedHouseBrandPlayerServiceLoggingContext=j7(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(e.playerResponseCpn=this.provider.videoData.playerResponseCpn),H0.length&& +(e.decoderInfo=H0),this.provider.G.qP()&&(e.transitionStitchType=4,this.Hv&&(e.timestampOffsetMsecs=this.Hv)),this.remoteControlMode&&(e.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(e.remoteConnectedDevices=this.remoteConnectedDevices),e=g.fc(e,Sc1),e=g.HG(e,4),this.X.qclc=[e];m=g.tV("//"+this.provider.V.Do+"/api/stats/qoe",m);Z=e="";M=g.r(Object.keys(this.X));for(k=M.next();!k.done;k=M.next())k=k.value,this.X[k]===null?g.LD(new g.Nr("Stats report key has invalid value", +k)):(k="&"+k+"="+this.X[k].join(","),k.length>100?Z+=k:e+=k);Q1R(this,m+e,Z.replace(/ /g,"%20"))}this.X={}}}; +g.p.NR=function(m){this.Wq=m}; +g.p.YN=function(){if(this.provider.videoData.L){var m=this.provider.videoData.L;Or(this,"eme-"+(m.keySystemAccess?"final":mZ(m)?"ms":MR(m)?"ytfp":Zg(m)?"safarifp":"nonfinal"))}}; +g.p.Pf=function(m){var e=g.Yq(this.provider);if(!this.provider.V.experiments.dc("html5_refactor_sabr_video_format_selection_logging")||m.X.id!==this.kG){var Z=[m.X.id,m.S,this.kG,m.reason];m.token&&Z.push(m.token);g.DR(this,e,"vfs",Z);this.kG=m.X.id;Z=this.provider.G.getPlayerSize();if(Z.width>0&&Z.height>0){Z=[Math.round(Z.width),Math.round(Z.height)];var M=iA();M>1&&Z.push(M);g.DR(this,e,"view",Z)}this.KB||(this.provider.V.Af()&&Or(this,"rqs2"),this.provider.videoData.X&&lR(this.provider.videoData.X)&& +(this.X.preload=["1"]));this.Z=this.KB=!0}m.reason==="m"&&++this.JJ===100&&VC(this,2);g.DR(this,e,"vps",[this.S]);this.reportStats(e)}; +g.p.Ou=function(m){var e=g.Yq(this.provider);if(this.provider.V.experiments.dc("html5_refactor_sabr_audio_format_selection_logging")){e=m.X;var Z=[e.audio&&e.video?e.oP?e.oP:"":e.id];e.MB&&e.MB.id&&Z.push(e.MB.id);e=Z.join(";");e!==this.j&&(Z=[e,this.j,m.reason],m.token&&Z.push(m.token),g.DR(this,g.Yq(this.provider),"afs",Z),this.j=e)}else m.X.id!==this.j&&(Z=[m.X.id,this.j,m.reason],m.token&&Z.push(m.token),g.DR(this,e,"afs",Z),this.j=m.X.id)}; +g.p.C6=function(m){this.isEmbargoed=m}; +g.p.eB=Zk(15);g.p.kH=Zk(19);g.p.onPlaybackRateChange=function(m){var e=g.Yq(this.provider);m&&m!==this.LJ&&(g.DR(this,e,"rate",[m]),this.LJ=m);this.reportStats(e)}; +g.p.getPlayerState=function(m){if(g.y(m,128))return"ER";if(g.y(m,2048))return"B";if(g.y(m,512))return"SU";if(g.y(m,16)||g.y(m,32))return"S";if(m.isOrWillBePlaying()&&g.y(m,64))return"B";var e=H8c[B0(m)];g.Km(this.provider.V)&&e==="B"&&this.provider.G.getVisibilityState()===3&&(e="SU");e==="B"&&g.y(m,4)&&(e="PB");return e}; +g.p.LB=function(){g.Y.prototype.LB.call(this);qC(this.C);qC(this.Te)}; +g.p.B=function(m,e,Z){var M=this.X.ctmp||[],k=this.xa.indexOf(m)!==-1;k||this.xa.push(m);if(!Z||!k){var K=typeof e!=="string"?b_(e):e;K=s1c(K);if(!Z&&!/^t[.]/.test(K)){var q=g.Yq(this.provider)*1E3;K="t."+q.toFixed()+";"+K}M.push(m+":"+K);this.logger.debug(function(){return"ctmp "+m+" "+K}); +this.X.ctmp=M;jR(this);return q}}; +g.p.P6=function(m,e,Z){this.K={Kw:Number(this.B("glrem",{nst:m.toFixed(),rem:e.toFixed(),ca:+Z})),wx:m,Bu:e,isAd:Z}}; +g.p.vt=function(m,e,Z){g.DR(this,g.Yq(this.provider),"ad_playback",[m,e,Z])}; +g.p.resume=function(){var m=this;this.provider.V.Af()&&this.B("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.C)?HDK(this):this.C=KO(function(){m.reportStats()},1E4)}; +var kQ={},H8c=(kQ[5]="N",kQ[-1]="N",kQ[3]="B",kQ[0]="EN",kQ[2]="PA",kQ[1]="PL",kQ[-1E3]="ER",kQ[1E3]="N",kQ),H0=[];P0.prototype.E4=function(){return this.X}; +P0.prototype.update=function(){if(this.j){var m=this.provider.G.tv(this.provider.videoData.clientPlaybackNonce)||0,e=g.Yq(this.provider);m>=this.provider.G.getDuration()-.1&&(this.previouslyEnded=!0);if(m!==this.X||JgR(this,m,e)){var Z;if(!(Z=me-this.Gw+2||JgR(this,m,e))){Z=this.provider.G.getVolume();var M=Z!==this.K,k=this.provider.G.isMuted()?1:0;k!==this.N?(this.N=k,Z=!0):(!M||this.Z>=0||(this.K=Z,this.Z=e),Z=e-this.Z,this.Z>=0&&Z>2?(this.Z=-1,Z=!0):Z=!1)}Z&&(mq(this),this.U= +m);this.Gw=e;this.X=m}}};ex.prototype.send=function(m){var e=this;if(!this.nB){var Z=g.k$(this),M=g.tV(this.uri,Z);this.V.W("vss_through_gel_double")&&g.P93(M);this.S9&&!this.V.W("html5_simplify_pings")?mKm(this,M):g.ZX(this,m).then(function(k){e.S9&&(k=k||{},k.method="POST",k.postParams={atr:e.attestationResponse});te(M,k,{token:e.Y,LD:e.CR,mdxEnvironment:e.mdxEnvironment},e.V,m,e.b9,e.isFinal&&e.HV||e.Qh||e.U&&e.aF)}); +this.nB=!0}}; +ex.prototype.S=function(m){m===void 0&&(m=NaN);return Number(m.toFixed(3)).toString()}; +var KN={},WsI=(KN.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,KN.LIVING_ROOM_APP_MODE_MAIN=1,KN.LIVING_ROOM_APP_MODE_KIDS=2,KN.LIVING_ROOM_APP_MODE_MUSIC=3,KN.LIVING_ROOM_APP_MODE_UNPLUGGED=4,KN.LIVING_ROOM_APP_MODE_GAMING=5,KN),q2={},V2P=(q2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,q2.EMBEDDED_PLAYER_MODE_DEFAULT=1,q2.EMBEDDED_PLAYER_MODE_PFP=2,q2.EMBEDDED_PLAYER_MODE_PFL=3,q2);g.T(g.Kx,g.Y);g.p=g.Kx.prototype;g.p.qm=function(){this.X.update();qKR(this)&&(e8R(this),Z_t(this),this.Lv())}; +g.p.LB=function(){g.Y.prototype.LB.call(this);vZ(this);j1b(this.X)}; +g.p.pR=function(){return g.k$(g.qu(this,"playback"))}; +g.p.Lv=function(){this.provider.videoData.j.eventLabel=dA(this.provider.videoData);this.provider.videoData.j.playerStyle=this.provider.V.playerStyle;this.provider.videoData.HV&&(this.provider.videoData.j.feature="pyv");this.provider.videoData.j.vid=this.provider.videoData.videoId;var m=this.provider.videoData.j;var e=this.provider.videoData;e=e.isAd()||!!e.HV;m.isAd=e}; +g.p.QQ=Zk(28);SKt.prototype.isEmpty=function(){return this.endTime===this.startTime};RE.prototype.W=function(m){return this.V.W(m)}; +RE.prototype.getCurrentTime=function(m){if(this.W("html5_ssap_current_time_for_logging_refactor")){var e=this.G.qP();if(e&&(m=m||e.hT()))return oi(e,m)}else if(g.gA(this.videoData)){var Z=this.G.qP();if(Z)return m=this.G.getCurrentTime(),Z=(((e=pS(Z,m*1E3))==null?void 0:e.Lx)||0)/1E3,m-Z}return this.G.getCurrentTime()}; +RE.prototype.xe=function(m){if(this.W("html5_ssap_current_time_for_logging_refactor")){var e=this.G.qP();if(e&&(m=m||e.hT()))return oi(e,m)}else if(g.gA(this.videoData)){var Z=this.G.qP();if(Z)return m=this.G.xe(),Z=(((e=pS(Z,m*1E3))==null?void 0:e.Lx)||0)/1E3,m-Z}return this.G.xe()}; +var vnm={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.T(g.TR,g.Y);g.p=g.TR.prototype;g.p.qm=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Zk){var m;(m=this.U.get(this.Zk))==null||m.qm()}else this.X&&this.X.qm()}; +g.p.C6=function(m){this.qoe&&this.qoe.C6(m)}; +g.p.eB=Zk(14);g.p.kH=Zk(18);g.p.AY=function(m,e){this.qoe&&LsK(this.qoe,m,e);if(this.S)this.S.onError(m)}; +g.p.Pf=function(m){this.qoe&&this.qoe.Pf(m)}; +g.p.Ou=function(m){this.qoe&&this.qoe.Ou(m)}; +g.p.onPlaybackRateChange=function(m){if(this.qoe)this.qoe.onPlaybackRateChange(m);this.X&&mq(this.X.X)}; +g.p.B=function(m,e,Z){this.qoe&&this.qoe.B(m,e,Z)}; +g.p.P6=function(m,e,Z){this.qoe&&this.qoe.P6(m,e,Z)}; +g.p.nu=function(m){var e;(e=this.qoe)==null||e.nu(m)}; +g.p.SP=function(m){var e;(e=this.qoe)==null||e.SP(m)}; +g.p.NR=function(m){this.qoe&&this.qoe.NR(m)}; +g.p.vt=function(m,e,Z){this.qoe&&this.qoe.vt(m,e,Z)}; +g.p.lj=function(){if(this.qoe)return this.qoe.lj()}; +g.p.pR=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Zk){var m,e;return(e=(m=this.U.get(this.Zk))==null?void 0:m.pR())!=null?e:{}}return this.X?this.X.pR():{}}; +g.p.MS=function(){var m;return(m=this.qoe)==null?void 0:m.MS()}; +g.p.wX=function(m,e){var Z;(Z=this.qoe)==null||Z.wX(m,e)}; +g.p.QQ=Zk(27);g.p.Lv=function(){this.X&&this.X.Lv()}; +g.p.getVideoData=function(){return this.provider.videoData}; +g.p.resume=function(){this.qoe&&this.qoe.resume()};g.T(nx,g.Y); +nx.prototype.W8=function(m,e,Z){if(this.X.has(m)){var M=this.X.get(m);if(e.videoId&&!$$(M))this.S.B("ssap",{rlc:m}),$KG(this,m);else return}if(!this.X.has(m)){M=new RE(e,this.V,this.G);var k=Math.round(g.Yq(this.S.provider)*1E3);M=new g.TR(M,k);$$(M)||this.S.B("nqv",{vv:e.videoId});k=this.S.getVideoData();this.X.set(m,M);if(M.qoe){var K=M.qoe,q=k.videoId||"";K.contentCpn=k.clientPlaybackNonce;K.S9=q}gny(M);Z===2&&(this.V.W("html5_log_ad_playback_docid")?(Z=this.S,Z.qoe&&(Z=Z.qoe,M=e.Wq||"",k=e.breakType|| +0,e=e.videoId||"",K=this.V.L||"yt",g.DR(Z,g.Yq(Z.provider),"ad_playback",[m,M,k,e,K]))):this.S.vt(m,e.Wq||"",e.breakType||0))}}; +nx.prototype.lw=function(m){m=m||this.Zk;return this.X.get(m)||this.S};g.T(Nu,g.Y);g.p=Nu.prototype; +g.p.IF=function(m,e){this.sync();e&&this.X.array.length>=2E3&&this.Kn("captions",1E4);e=this.X;if(m.length>1&&m.length>e.array.length)e.array=e.array.concat(m),e.array.sort(e.X);else for(var Z=g.r(m),M=Z.next();!M.done;M=Z.next())M=M.value,!e.array.length||e.X(M,e.array[e.array.length-1])>0?e.array.push(M):g.EM(e.array,M,e.X);m=g.r(m);for(e=m.next();!e.done;e=m.next())e=e.value,e.namespace==="ad"&&this.Z("ssap",{acrsid:e.getId(),acrsst:e.start,acrset:e.end,acrscpt:e.playerType});this.U=NaN;this.sync()}; +g.p.n0=function(m){m.length>1E4&&g.LD(new g.Nr("Over 10k cueRanges removal occurs with a sample: ",m[0]));if(!this.MU()){for(var e=g.r(m),Z=e.next();!Z.done;Z=e.next())(Z=Z.value)&&Z.namespace==="ad"&&this.Z("ssap",{rcrid:Z.getId(),rcst:Z.start,rcet:Z.end,rcpt:Z.playerType});var M=new Set(m);this.S=this.S.filter(function(k){return!M.has(k)}); +r4G(this.X,M);this.sync()}}; +g.p.Kn=function(m,e){var Z=(isNaN(this.U)?g.y(this.C(),2)?0x8000000000000:this.K()*1E3:this.U)-e;e=this.z_().filter(function(M){return M.namespace===m&&M.endthis.X,K=g.y(Z,8)&&g.y(Z,16),q=this.G.M9().isBackground()||Z.isSuspended();bX(this,this.KB,K&&!q,k,"qoe.slowseek",function(){},"timeout"); +var S=isFinite(this.X);S=K&&S&&Tuk(e,this.X);var a=!M||Math.abs(M-this.X)>10,v=this.V.W("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),X=M===0&&this.S&&[11,10].includes(this.S);bX(this,this.XG,S&&a&&!q&&(!v||!X),k,"qoe.slowseek",function(){e.seekTo(m.X)},"set_cmt"); +a=S&&S4(e.kE(),this.X);var x=this.G.D;S=!x||!x.policy.tR;var l=.001;Mw(this.G.getVideoData())&&(l=g.Y4(this.V.experiments,"html5_sabr_jiggle_cmt_ms")/1E3);var R=function(){e.seekTo(m.X+l)}; +bX(this,this.kG,a&&S&&!q,k,"qoe.slowseek",R,"jiggle_cmt");S=function(){return Dn(m.G)}; +bX(this,this.nB,a&&!q,k,"qoe.slowseek",S,"new_elem");a=dv(Z);v=Z.isBuffering();var h=e.kE(),w=p8(h,M),N=w>=0&&h.end(w)>M+5,I=a&&v&&N;X=this.G.getVideoData();bX(this,this.Hv,M<.002&&this.X<.002&&K&&g.Km(this.V)&&g.BQ(X)&&!q,k,"qoe.slowseek",S,"slow_seek_shorts");bX(this,this.Y,X.ON()&&K&&!q&&!X.AR,k,"qoe.slowseek",S,"slow_seek_gapless_shorts");bX(this,this.S9,I&&!q,a&&!v,"qoe.longrebuffer",R,"jiggle_cmt");bX(this,this.b9,I&&!q,a&&!v,"qoe.longrebuffer",S,"new_elem_nnr");if(x){var C=x.getCurrentTime(); +K=e.qz();K=Iqs(K,C);K=!x.isSeeking()&&M===K;bX(this,this.Bq,a&&v&&K&&!q,a&&!v&&!K,"qoe.longrebuffer",function(){e.seekTo(C)},"seek_to_loader")}K={}; +R=p8(h,Math.max(M-3.5,0));I=R>=0&&M>h.end(R)-1.1;var B=R>=0&&R+1=0&&I&&B<11;K.close2edge=I;K.gapsize=B;K.buflen=h.length;this.S&&(K.seekSour=this.S);if(R=this.G.qP()){I=R.hT();B=I!==pS(R,M*1E3).clipId;var b=g.Y4(this.V.experiments,"html5_ssap_skip_seeking_offset_ms"),L=(q5(R,I)+b)/1E3;bX(this,this.sE,B&&a&&v&&!q,a&&!v,"qoe.longrebuffer",function(){e.seekTo(L)},"ssap_clip_not_match")}bX(this,this.Qh,a&&v&&!q,a&&!v,"qoe.longrebuffer", +function(){},"timeout",K); +K=Z.isSuspended();K=IQ(this.G)&&!K;bX(this,this.j,K,!K,"qoe.start15s",function(){m.G.ZQ("ad")},"ads_preroll_timeout"); +R=M-this.Z<.5;var Q;K=!((Q=this.G.qP())==null||!Q.Xe());B=(I=X.isAd()||K&&this.V.experiments.dc("html5_ssap_skip_slow_ad"))&&a&&!v&&R;Q=function(){var J=m.G,kG=g.gA(J.videoData)&&J.u9,TK=J.OZ.Jf();(TK&&J.videoData.isAd()&&TK.getVideoData().IE===J.getVideoData().IE||!J.videoData.Ex)&&!kG?J.aE("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+J.videoData.videoId):qw(J.videoData,"html5_ssap_skip_slow_ad")&&kG&&J.u9.Xe()&&(J.AY(new g.tw("ssap.transitionfailure",{cpn:pS(J.u9,J.xe()).clipId,pcpn:J.u9.hT(), +cmt:J.xe()})),J=J.u9,kG=J.G.xe(),(kG=C$(J,kG))&&CRb(J,kG.YE()/1E3))}; +bX(this,this.CR,B,!B,"ad.rebuftimeout",Q,"skip_slow_ad");R=I&&v&&S4(e.kE(),M+5)&&R;bX(this,this.mw,R&&!q,!R,"ad.rebuftimeout",Q,"skip_slow_ad_buf");Q=Z.isOrWillBePlaying()&&g.y(Z,64)&&!q;bX(this,this.Wq,Q,k,"qoe.start15s",function(){},"timeout"); +Q=!!x&&!x.j9&&Z.isOrWillBePlaying();bX(this,this.yh,Q,k,"qoe.start15s",S,"newElemMse");Q=gy(h,0);R=g.y(Z,16)||g.y(Z,32);R=!q&&Z.isOrWillBePlaying()&&v&&!R&&(g.y(Z,64)||M===0)&&Q>5;bX(this,this.ZN,g.BQ(X)&&R,a&&!v,"qoe.longrebuffer",function(){m.G.Fe()},"reset_media_source"); +bX(this,this.tR,g.BQ(X)&&R,a&&!v,"qoe.longrebuffer",S,"reset_media_element");this.Z===0&&(this.C=M);R=v&&this.X===0&&M>1&&M===this.C;bX(this,this.wc,g.BQ(X)&&R,a&&!v,"qoe.slowseek",function(){e.seekTo(0)},"reseek_after_time_jump"); +q=Z.isOrWillBePlaying()&&!q;N=Ey(this.G)-M<6&&!N&&this.G.A3();bX(this,this.N,X.ON()&&q&&v&&N,a&&!v,"qoe.longrebuffer",function(){Dn(m.G,!1,!0)},"handoff_end_long_buffer_reload"); +x=(x==null?void 0:qXI(x))||NaN;x=h.length>1||!isNaN(x)&&x-.1<=M;bX(this,this.K,uJ(X)&&q&&v&&x,a&&!v,"qoe.longrebuffer",S,"gapless_slice_append_stuck");x=w>=0&&h.end(w)>=2;q=uJ(X)&&this.G.lV&&x&&!X.AR&&q&&(v||g.y(Z,8)&&g.y(Z,16));bX(this,this.AR,q,k,"qoe.start15s",S,"gapless_slow_start");Z=!!(K&&Q>5&&Z.isPlaying()&&M<.1);bX(this,this.wr,Z,M>.5&&a,"qoe.longrebuffer",S,"ssap_stuck_in_ad_beginning");this.Z=M;this.L.start()}}; +Uv.prototype.AY=function(m,e,Z){e=this.pR(e);e.wn=Z;e.wdup=this.U[m]?"1":"0";this.G.AY(new g.tw(m,e));this.U[m]=!0}; +Uv.prototype.pR=function(m){m=Object.assign(this.G.pR(!0),m.pR());this.X&&(m.stt=this.X.toFixed(3));this.G.getVideoData().isLivePlayback&&(m.ct=this.G.getCurrentTime().toFixed(3),m.to=this.G.cq().toFixed(3));delete m.uga;delete m.euri;delete m.referrer;delete m.fexp;delete m.vm;return m}; +Ev.prototype.reset=function(){this.X=this.S=this.U=this.startTimestamp=0;this.Z=!1}; +Ev.prototype.test=function(m){if(!this.L||this.S)return!1;if(!m)return this.reset(),!1;m=(0,g.G)();if(!this.startTimestamp)this.startTimestamp=m,this.U=0;else if(this.U>=this.L)return this.S=m,!0;this.U+=1;return!1}; +Ev.prototype.pR=function(){var m={},e=(0,g.G)();this.startTimestamp&&(m.wsd=(e-this.startTimestamp).toFixed());this.S&&(m.wtd=(e-this.S).toFixed());this.X&&(m.wssd=(e-this.X).toFixed());return m};g.T(QZ,g.Y);g.p=QZ.prototype;g.p.setMediaElement=function(m){(this.mediaElement=m)?(this.mediaElement&&(this.L||this.Z||!this.mediaElement.IL()||this.seekTo(.01,{DN:"seektimeline_setupMediaElement"})),tN(this)):GR(this)}; +g.p.getCurrentTime=function(){if(HZ(this.G)){if(!isNaN(this.S))return this.S}else if(!isNaN(this.S)&&isFinite(this.S))return this.S;return this.mediaElement&&Pm3(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; +g.p.Hn=function(){return this.tR}; +g.p.xe=function(){return this.getCurrentTime()-this.cq()}; +g.p.zT=function(){return this.X?this.X.zT():Infinity}; +g.p.isAtLiveHead=function(m){if(!this.X)return!1;m===void 0&&(m=this.getCurrentTime());return dR(this.X,m)}; +g.p.E7=function(){return!!this.X&&this.X.E7()}; +g.p.seekTo=function(m,e){var Z=e===void 0?{}:e;e=Z.Rq===void 0?!1:Z.Rq;var M=Z.CD===void 0?0:Z.CD;var k=Z.DA===void 0?!1:Z.DA;var K=Z.WQ===void 0?0:Z.WQ;var q=Z.DN===void 0?"":Z.DN;var S=Z.seekSource===void 0?void 0:Z.seekSource;var a=Z.OB===void 0?!1:Z.OB;var v=Z.qW===void 0?!1:Z.qW;Z=Z.fZ===void 0?!1:Z.fZ;a&&(m+=this.cq());Mw(this.videoData)&&this.W("html5_sabr_enable_utc_seek_requests")&&S===29&&(this.tR=void 0);a=m=this.GK())||!g.fI(this.videoData),X||(w={st:w,mst:this.GK()},this.X&&this.W("html5_high_res_seek_logging")&&(w.ht=this.X.zT(),w.adft=oE(this.X)),this.G.B("seeknotallowed",w)),w=X));if(!w)return this.U&&(this.U=null,WJI(this)),zI(this.getCurrentTime());w=.005;v&&this.W("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(m-this.S)<=w&&this.AR)return this.L;q&&(w=m,(this.V.Af()||this.W("html5_log_seek_reasons"))&& +this.G.B("seekreason",{reason:q,tgt:w}));S&&(this.b9.S=S);this.AR&&GR(this);this.L||(this.L=new Gx);m&&!isFinite(m)&&Lx(this,!1);(q=Z||a)||(q=m,q=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.X&&!(this.mediaElement&&this.mediaElement.t7()>0&&wv(this.mediaElement)>0)||vQ(this.videoData)&&this.Rs()===this.GK(!1)?0:isFinite(q)||!vQ(this.videoData)));q||(m=JN(this,m,k));m&&!isFinite(m)&&Lx(this,!1);this.Z=m;this.wc=K;this.S=m;this.K=0;this.X&&(k=this.X,K=m,t9K(k,K,!1),QSP(k,K)); +k=this.G;K=m;q={Rq:e,seekSource:S};k.Hq.Z=K;Z=k.Fm;Z.mediaTime=K;Z.X=!0;q.Rq&&A_(k,q);q=K>k.videoData.endSeconds&&K>k.videoData.limitedPlaybackDurationInSeconds;k.Lb&&q&&isFinite(K)&&$Y(k);Ke.start&&$Y(this.G);return this.L}; +g.p.GK=function(m){if(!this.videoData.isLivePlayback)return kp7(this.G);var e;return yu(this.videoData)&&((e=this.mediaElement)==null?0:e.isPaused())&&this.videoData.X?(m=this.getCurrentTime(),iOk(this.Zx(m)*1E3)+m):this.W("html5_sabr_parse_live_metadata_playback_boundaries")&&Mw(this.videoData)&&this.videoData.X?m?this.videoData.X.AR||0:this.videoData.X.FF||0:vQ(this.videoData)&&this.videoData.S9&&this.videoData.X?this.videoData.X.GK()+this.timestampOffset:this.videoData.S&&this.videoData.S.X?!m&& +this.X?this.X.zT():kp7(this.G)+this.timestampOffset:this.mediaElement?QA()?iOk(this.mediaElement.MQ().getTime()):wv(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.p.Rs=function(){if(g.gA(this.videoData)){var m=this.G;g.gA(m.videoData);var e,Z;return(Z=(e=m.u9)==null?void 0:e.Rs())!=null?Z:m.videoData.Rs()}if(this.W("html5_sabr_parse_live_metadata_playback_boundaries")&&Mw(this.videoData)){var M;return((M=this.videoData.X)==null?void 0:M.Cv)||0}e=this.videoData?this.videoData.Rs()+this.timestampOffset:this.timestampOffset;return yu(this.videoData)&&this.videoData.X&&(Z=Number((m=this.videoData.progressBarStartPosition)==null?void 0:m.utcTimeMillis)/1E3,m= +this.getCurrentTime(),m=this.Zx(m)-m,!isNaN(Z)&&!isNaN(m))?Math.max(e,Z-m):e}; +g.p.AA=function(){this.L||this.seekTo(this.Z,{DN:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.p.DH=function(){return this.AR&&!isFinite(this.S)}; +g.p.LB=function(){yZ(this,null);this.b9.dispose();g.Y.prototype.LB.call(this)}; +g.p.pR=function(){var m={};this.D&&Object.assign(m,this.D.pR());this.mediaElement&&Object.assign(m,this.mediaElement.pR());return m}; +g.p.kp=function(m){this.timestampOffset=m}; +g.p.getStreamTimeOffset=function(){return vQ(this.videoData)?0:this.videoData.X?this.videoData.X.getStreamTimeOffset():0}; +g.p.cq=function(){return this.timestampOffset}; +g.p.Zx=function(m){return this.videoData&&this.videoData.X?this.videoData.X.Zx(m-this.timestampOffset):NaN}; +g.p.oC=function(){if(!this.mediaElement)return 0;if(of(this.videoData)){var m=this.mediaElement,e=m.kE();m=(vJ(e)>0&&m.getDuration()?e.end(e.length-1):0)+this.timestampOffset-this.Rs();e=this.GK()-this.Rs();return Math.max(0,Math.min(1,m/e))}return this.mediaElement.oC()}; +g.p.w8=function(m){this.C&&(this.C.X=m)}; +g.p.QY=function(m,e){this.G.B("requestUtcSeek",{time:m});Mw(this.videoData)&&this.W("html5_sabr_enable_utc_seek_requests")&&(this.tR=m);var Z;(Z=this.D)==null||Z.QY(m);e&&(this.S9=e)}; +g.p.F6=function(m){Mw(this.videoData)&&this.W("html5_sabr_enable_utc_seek_requests")&&(this.tR=void 0);if(this.S9)this.G.B("utcSeekingFallback",{source:"streamTime",timeSeconds:this.S9}),this.G.seekTo(this.S9,{DN:"utcSeekingFallback_streamTime"}),this.S9=0;else{var e=this.getCurrentTime();isNaN(e)||(m=this.Zx(e)-m,e-=m,this.G.B("utcSeekingFallback",{source:"estimate",timeSeconds:e}),this.G.seekTo(e,{DN:"utcSeekingFallback_estimate"}))}}; +g.p.GI=function(){this.S9=0}; +g.p.W=function(m){return this.V&&this.V.W(m)};g.T(WZ,g.Y);WZ.prototype.start=function(){this.S.start()}; +WZ.prototype.stop=function(){this.S.stop()}; +WZ.prototype.clear=function(){for(var m=g.r(this.X.values()),e=m.next();!e.done;e=m.next())e.value.clear()}; +WZ.prototype.sample=function(){for(var m=g.r(this.U),e=m.next();!e.done;e=m.next()){var Z=g.r(e.value);e=Z.next().value;Z=Z.next().value;this.X.has(e)||this.X.set(e,new m0(D4b.has(e)));this.X.get(e).update(Z())}this.S.start()}; +var D4b=new Set(["networkactivity"]);m0.prototype.update=function(m){this.X?(this.buffer.add(m-this.vZ||0),this.vZ=m):this.buffer.add(m)}; +m0.prototype.clear=function(){this.buffer.clear();this.vZ=0};eM.prototype.lY=function(){return this.started}; +eM.prototype.start=function(){this.started=!0}; +eM.prototype.reset=function(){this.finished=this.started=!1};var Stm=!1;g.T(g.qD,g.m6);g.p=g.qD.prototype;g.p.LB=function(){this.logger.debug("dispose");qC(this.IH);OTK(this.Cx);this.visibility.unsubscribe("visibilitystatechange",this.Cx);$Gk(this);lb(this);WN.f0(this.pu);this.A7();this.VS=null;g.RB(this.videoData);g.RB(this.ib);g.RB(this.Y_);g.RB(this.hP);g.hm(this.Qt);this.Lb=null;g.m6.prototype.LB.call(this)}; +g.p.vt=function(m,e,Z,M,k){if(this.V.W("html5_log_ad_playback_docid")){var K=this.lw();if(K.qoe){K=K.qoe;var q=this.V.L||"yt";g.DR(K,g.Yq(K.provider),"ad_playback",[m,e,Z,k,q])}}else this.lw().vt(m,e,Z);this.W("html5_log_media_perf_info")&&this.B("adloudness",{ld:M.toFixed(3),cpn:m})}; +g.p.Cc=function(){var m;return(m=this.D)==null?void 0:m.Cc()}; +g.p.QZ=function(){var m;return(m=this.D)==null?void 0:m.QZ()}; +g.p.yk=function(){var m;return(m=this.D)==null?void 0:m.yk()}; +g.p.Ic=function(){var m;return(m=this.D)==null?void 0:m.Ic()}; +g.p.T3=function(){return this.videoData.T3()}; +g.p.W8=function(){!this.ZY||this.ZY.MU();this.ZY=new g.TR(new RE(this.videoData,this.V,this));this.NW=new nx(this.V,this,this.ZY)}; +g.p.getVideoData=function(){return this.videoData}; +g.p.J=function(){return this.V}; +g.p.N1=function(m){return this.vK.N1(this.VS,m===void 0?!1:m)}; +g.p.lw=function(m){if(m)a:{for(var e=this.NW,Z=g.r(e.X.values()),M=Z.next();!M.done;M=Z.next())if(M=M.value,M.getVideoData().videoId===m){m=M;break a}m=e.S}else m=this.NW.lw();return m}; +g.p.M9=function(){return this.visibility}; +g.p.fJ=function(){return this.mediaElement}; +g.p.sK=function(){if(this.videoData.isLoaded()){var m=this.ib;g.Y4(m.Xq.experiments,"html5_player_min_build_cl")>0&&g.Y4(m.Xq.experiments,"html5_player_min_build_cl")>704511060&&ZDm(m,"oldplayer");c$1(this)}else this.videoData.dG||this.videoData.kU?this.ZM&&g.Km(this.V)&&this.videoData.isLivePlayback||(this.videoData.dG?Lh1(this.videoData):(m=this.lw(),m.qoe&&(m=m.qoe,Or(m,"protected"),m.provider.videoData.L?m.YN():m.provider.videoData.subscribe("dataloaded",m.YN,m)),HEs(this.videoData))):!this.videoData.loading&& +this.RJ&&FWy(this)}; +g.p.aH=function(m){this.u9=m;this.D&&this.D.aH(m)}; +g.p.Z3=Zk(3);g.p.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.p.isBackground=function(){return this.visibility.isBackground()}; +g.p.sendAbandonmentPing=function(){g.y(this.getPlayerState(),128)||(this.Pv("internalAbandon"),this.Nk(!0),$Gk(this),WN.f0(this.pu))}; +g.p.dW=function(){lrG(this.lw())}; +g.p.aE=function(m,e,Z,M,k,K){this.logger.debug(function(){return"set player error: ec="+m+", detail="+k}); +var q,S;g.tv(b8K,Z)?q=Z:Z?S=Z:q="GENERIC_WITHOUT_LINK";M=(M||"")+(";a6s."+LB());if(m==="auth"||m==="drm.auth"||m==="heartbeat.stop")Z&&(M+=";r."+Z.replaceAll(" ","_")),K&&(M+="sr."+K.replaceAll(" ","_"));e={errorCode:m,errorDetail:k,errorMessage:S||g.Qe[q]||"",Yh:q,W4:K||"",Vw:M,Xk:e,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=m;ib(this,"dataloaderror");this.Fl(Ae(this.playerState,128,e));WN.f0(this.pu);lb(this);this.jI()}; +g.p.ZQ=function(m){this.vp=this.vp.filter(function(e){return m!==e}); +this.logger.debug(function(){return"set preroll ready for "+m}); +g.gA(this.videoData)&&!this.s7()&&this.hf.TO("pl_pr");this.O2.lY()&&xY(this)}; +g.p.s7=function(){var m;(m=!!this.vp.length)||(m=this.bP.X.array[0],m=!!m&&m.start<=-0x8000000000000);return m}; +g.p.E7=function(){return this.Hq.E7()}; +g.p.isPlaying=function(){return this.playerState.isPlaying()}; +g.p.NS=function(){return this.playerState.NS()&&this.videoData.AT}; +g.p.getPlayerState=function(){return this.playerState}; +g.p.getPlayerType=function(){return this.playerType}; +g.p.getPreferredQuality=function(){if(this.VS){var m=this.VS;m=m.videoData.aG.compose(m.videoData.GN);m=g6(m)}else m="auto";return m}; +g.p.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.p.setMediaElement=function(m){this.logger.debug("set media element");if(this.mediaElement&&m.W_()===this.mediaElement.W_()&&(m.isView()||this.mediaElement.isView())){if(m.isView()||!this.mediaElement.isView())g.m2(this.SF),this.mediaElement=m,this.mediaElement.G=this,DGI(this),this.Hq.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.A7();if(!this.playerState.isError()){var e=f5(this.playerState,512);g.y(e,8)&&!g.y(e,2)&&(e=C5(e,1));m.isView()&&(e=f5(e,64));this.Fl(e)}this.mediaElement= +m;this.mediaElement.G=this;hC(this.V)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);DGI(this);this.Hq.setMediaElement(this.mediaElement);this.W("html5_prewarm_media_source")&&!this.ib.yJ()&&lA1(this.mediaElement)}}; +g.p.A7=function(m,e,Z){m=m===void 0?!1:m;e=e===void 0?!1:e;Z=Z===void 0?!1:Z;this.logger.debug("remove media element");if(this.mediaElement){var M=this.getCurrentTime();M>0&&(this.Hq.Z=M);this.Hq.setMediaElement(null);!m&&wy(this)?BGm(this):ND(this,Z);this.D&&(lG(this.D),cK(this,e));this.lx.stop();if(this.mediaElement&&(!this.O2.lY()||this.playerState.isError()||g.y(this.playerState,2)||this.Fl(C5(this.playerState,512)),this.mediaElement)){g.m2(this.SF);if(m||!this.mediaElement.isView())this.hf.Uk("mesv_s"), +this.mediaElement.stopVideo(),d0(this);this.mediaElement=this.mediaElement.G=null}}}; +g.p.playVideo=function(m,e){m=m===void 0?!1:m;e=e===void 0?!1:e;var Z=this,M,k,K,q,S,a;return g.Qs(function(v){if(v.X==1){Z.logger.debug("start play video");Z.W("html5_enable_ssap_autoplay_debug_logging")&&Z.B("ssap",{playv:m});var X=window.google_image_requests;X&&X.length>10&&(window.google_image_requests=X.slice(-10));if(g.y(Z.playerState,128))return v.return();if(Z.ib.tZ())return Z.Pv("signatureexpired"),v.return();Z.mediaElement&&Ff(Z.lw());Tw(Z);(g.y(Z.playerState,64)||m)&&Z.Fl(C5(Z.playerState, +8));return Z.O2.finished&&Z.mediaElement?Z.VS||!Z.zb?v.pB(2):g.A(v,Z.zb,3):v.return()}if(v.X!=2&&g.y(Z.playerState,128))return v.return();if(!Z.videoData.S)return Z.videoData.isLivePlayback&&!g.ne(Z.V.S,!0)?(M="html5.unsupportedlive",k=2):(M=Z.videoData.T3()?"fmt.unplayable":"fmt.noneavailable",k=1),g.LD(Error("selectableFormats")),Z.aE(M,k,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),v.return();if(Z.hD()&&Z.videoData.S.X)return Z.logger.debug("rebuild playbackData for airplay"),v.return(XD(Z)); +if(HZ(Z))X=Z.Hq,g.Sp(X.videoData)?!X.isAtLiveHead(X.getCurrentTime())&&X.E7()&&X.G.seekTo(Infinity,{DN:"seektimeline_peggedToLive",seekSource:34}):g.gA(X.videoData)&&X.getCurrentTime()=0?m:this.getCurrentTime()}; +g.p.Zx=function(){var m;return((m=this.videoData.X)==null?0:m.Zx)?this.videoData.X.Zx(this.getCurrentTime()-this.cq()):this.mediaElement&&(m=this.mediaElement.MQ())&&(m=m.getTime(),!isNaN(m))?m/1E3+this.getCurrentTime():NaN}; +g.p.getDuration=function(m){return g.gA(this.videoData)&&this.u9?m?B6K(this.u9,m):x9(this.u9):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.cq():this.GK()?this.GK():0}; +g.p.s6=function(){var m=new Tzc;if(this.D){var e=this.V.schedule,Z=this.V.Af();Z=Z===void 0?!1:Z;m.mY=e.S9;m.gs=e.kG;m.bandwidthEstimate=Dg(e);if(Z){Z=(e.N.gG()*1E3).toFixed();var M=(e.Qh.gG()*1E3).toFixed(),k=tX(e).toFixed(2),K=((e.j.gG()||0)*1E9).toFixed(2),q=e.S.gG().toFixed(0),S=e.sE.gG().toFixed(0),a=e.K.percentile(.5).toFixed(2),v=e.K.percentile(.92).toFixed(2),X=e.K.percentile(.96).toFixed(2),x=e.K.percentile(.98).toFixed(2);e.X?e.X.reset():e.X=new fe;e.X.add(e.b9);e.X.add(e.interruptions.length); +for(var l=0,R=e.interruptions.length-1;R>=0;R--){var h=e.interruptions[R];e.X.add(h-l);l=h}l=0;for(R=e.U.length-1;R>=0;R--){h=e.U[R];var w=h.stamp/36E5;e.X.add(w-l);l=w;e.X.add(h.net/1E3);e.X.add(h.max)}e=e.X.mI();m.X={ttr:Z,ttm:M,d:k,st:K,bw:q,abw:S,v50:a,v92:v,v96:X,v98:x,"int":e}}mPG(this.D,m)}else this.mediaElement&&(m.ZA=n5(this.mediaElement));m.mY=this.mY;m.gs=this.gs;m.U=this.isAtLiveHead()&&this.isPlaying()?MD(this):NaN;return m}; +g.p.rX=function(m,e){this.gs+=m;this.mY+=e}; +g.p.oC=function(){return this.mediaElement?g.fI(this.videoData)?1:of(this.videoData)?this.isAtLiveHead()||this.E7()?1:this.Hq.oC():this.mediaElement.oC():0}; +g.p.pR=function(m){var e={};if(m===void 0?0:m){Object.assign(e,this.lw().pR());this.mediaElement&&(Object.assign(e,this.mediaElement.pR()),Object.assign(e,this.Fg()));this.D&&Object.assign(e,this.D.pR());this.ai&&(e.drm=JSON.stringify(this.ai.pR()));e.state=this.playerState.state.toString(16);g.y(this.playerState,128)&&(e.debug_error=JSON.stringify(this.playerState.wG));this.s7()&&(e.prerolls=this.vp.join(","));this.videoData.JY&&(e.ismb=this.videoData.JY);this.videoData.latencyClass!=="UNKNOWN"&& +(e.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(e.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)e.is_mosaic=1;this.videoData.cotn&&(e.is_offline=1,e.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(e.playerResponseCpn=this.videoData.playerResponseCpn);this.OZ.isOrchestrationLeader()&&(e.leader=1);this.videoData.isLivePlayback&&(this.videoData.X&& +L8(this.videoData.X)&&(e.segduration=L8(this.videoData.X)),m=this.Hq,e.lat=m.C?dKK(m.C.Z):0,e.liveutcstart=this.videoData.liveUtcStartSeconds);e.relative_loudness=this.videoData.K1.toFixed(3);if(m=FD(this))e.optimal_format=m.video.qualityLabel;e.user_qual=LR();e.release_version="youtube.player.web_20241209_00_RC00";g.gA(this.videoData)&&this.u9&&(e.ssap=YW(this.u9))}e.debug_videoId=this.videoData.videoId;return e}; +g.p.addCueRange=function(m){this.Ed([m])}; +g.p.removeCueRange=function(m){this.bP.n0([m])}; +g.p.Kn=function(m,e){return this.bP.Kn(m,e)}; +g.p.Ed=function(m,e){this.bP.IF(m,e)}; +g.p.ZL=function(m){this.bP.n0(m)}; +g.p.z_=function(){return this.bP.z_()||[]}; +g.p.hD=function(){return this.visibility.hD()}; +g.p.Rf=function(){this.mediaElement&&this.mediaElement.Rf()}; +g.p.Nw=function(){ib(this)}; +g.p.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.p.Tl=function(m){var e=m.target.Kd();if(this.mediaElement&&this.mediaElement.Kd()&&this.mediaElement.Kd()===e){mJK(this,m.type);switch(m.type){case "error":var Z=Nm(this.mediaElement)||"",M=this.mediaElement.H_();if(Z==="capability.changed"){this.W("html5_restart_on_capability_change")?(this.B("capchg",{msg:M}),Dn(this,!0)):XD(this);return}if(this.mediaElement.hasError()&&(v0(this.ib,Z,{msg:M})||g.gA(this.videoData)&&this.u9&&(M=this.playerState.wG,this.u9.handleError(Z,M==null?void 0:M.Xk))))return; +if(this.isBackground()&&this.mediaElement.G3()===4){this.jI();ub(this,"unplayable");return}break;case "durationchange":Z=this.mediaElement.getDuration();isFinite(Z)&&(!this.j9||Z>0)&&Z!==1&&this.Ky(Z);break;case "ratechange":this.D&&this.D.setPlaybackRate(this.mediaElement.getPlaybackRate());IrK(this.bP);this.lw().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Zcc(this);this.Pv("onLoadedMetadata");LWG(this);Z=this.Zx();this.videoData.Ok&&(this.videoData.Ok=Z);break;case "loadstart":LWG(this); +break;case "progress":case "suspend":this.gm();this.Pv("onLoadProgress",this,this.oC());break;case "playing":this.hf.Uk("plev");this.G0&&!HZ(this)&&(this.G0=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{DN:"videoplayer_onPlaying"})));break;case "timeupdate":Z=this.mediaElement&&!this.mediaElement.getCurrentTime();M=this.mediaElement&&this.mediaElement.t7()===0;if(Z&&(!this.N8||M))return;this.N8=this.N8||!!this.mediaElement.getCurrentTime();fi(this); +this.gm();if(!this.mediaElement||this.mediaElement.Kd()!==e)return;this.Pv("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.qz().length>0&&this.mediaElement.kE().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.D)return;this.W("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.t7()>2||!this.mediaElement.isSeeking()&&S4(this.mediaElement.kE(),this.mediaElement.getCurrentTime()))&& +(Z=this.mediaElement.pR(),Z.bh=n5(this.mediaElement).toFixed(3),this.B("uwe",Z));g.gA(this.videoData)&&this.u9&&CRb(this.u9,this.mediaElement.getCurrentTime());break;case "resize":Zcc(this);this.videoData.U&&this.videoData.U.video.quality==="auto"&&this.Pv("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.AP&&g.y(this.playerState,8)&&!g.y(this.playerState,1024)&&this.getCurrentTime()===0&&g.PC){ub(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Kd()=== +e){ZBs(this.Hq,m,this.u9||void 0);this.Pv("videoelementevent",m);e=this.playerState;M=this.Fm;var k=this.mediaElement;Z=this.videoData.clientPlaybackNonce;var K=g.gA(this.videoData)&&this.u9?x9(this.u9):void 0;if(!g.y(e,128)){var q=e.state;k=k?k:m.target;var S=k.getCurrentTime();if(!g.y(e,64)||m.type!=="ended"&&m.type!=="pause"){K=K||k.getDuration();K=k.isEnded()||S>1&&Math.abs(S-K)<1.1;var a=m.type==="pause"&&k.isEnded();S=m.type==="ended"||m.type==="waiting"||m.type==="timeupdate"&&!g.y(e,4)&&!IE(M, +S);if(a||K&&S)k.PU()>0&&k.Kd()&&(q=14);else switch(m.type){case "error":Nm(k)&&(q|=128);break;case "pause":g.y(e,256)?(q^=256)||(q=64):g.y(e,32)||g.y(e,2)||g.y(e,4)||(q=4,g.y(e,1)&&g.y(e,8)&&(q|=1));break;case "playing":S=q;q=(q|8)&-1093;S&4?(q|=1,IW(M,k,!0)):IE(M,k.getCurrentTime())&&(q&=-2);g.y(e,1)&&IW(M,k)&&(q|=1);break;case "seeking":q|=16;g.y(e,8)&&(q|=1);q&=-3;break;case "seeked":q&=-17;IW(M,k,!0);break;case "waiting":g.y(e,2)||(q|=1);IW(M,k);break;case "timeupdate":S=g.y(e,16),K=g.y(e,4), +(g.y(e,8)||S)&&!K&&IE(M,k.getCurrentTime())&&(q=8),IW(M,k)&&(q|=1)}}M=q;q=null;M&128&&(q=m.target,k=Nm(q),S=1,k?(k==="capability.changed"&&(S=2),K="GENERIC_WITHOUT_LINK",a=q.pR(),a.mediaElem="1",/AUDIO_RENDERER/.test(q.H_())&&(K="HTML5_AUDIO_RENDERER_ERROR"),q={errorCode:k,errorMessage:g.Qe[K]||"",Yh:K,Vw:b_(a),Xk:S,cpn:e.wG?e.wG.cpn:""}):q=null,q&&(q.cpn=Z));e=Ae(e,M,q)}!g.y(this.playerState,1)&&g.y(e,1)&&YY(this,"evt"+m.type);this.Fl(e)}}}; +g.p.eD=function(m){m=m.X.availability==="available";m!==this.qS&&(this.qS=m,this.Pv("airplayavailabilitychange"))}; +g.p.GV=function(){var m=(0,g.G)(),e=this.mediaElement.hD();this.B("airplay",{ia:e});!e&&!isNaN(this.RQ)&&m-this.RQ<2E3||(this.RQ=m,e!==this.hD()&&(m=this.visibility,m.X!==e&&(m.X=e,m.Cx()),this.B("airplay",{rbld:e}),SR(this)),this.Pv("airplayactivechange"))}; +g.p.IQ=function(m){if(this.D){var e=this.D,Z=e.U,M=e.getCurrentTime(),k=Date.now()-Z.K;Z.K=NaN;Z.B("sdai",{adfetchdone:m,d:k});m&&!isNaN(Z.j)&&Z.S!==3&&MBR(Z.D,M,Z.j,Z.L);Z.policy.C?Z.U=NaN:Z.Z=NaN;g2(Z,4,Z.S===3?"adfps":"adf");lG(e)}}; +g.p.gm=function(m){var e=this;m=m===void 0?!1:m;if(this.mediaElement&&this.videoData){O_c(this.Hq,this.isPlaying());var Z=this.getCurrentTime();!this.D||g.y(this.playerState,4)&&g.fI(this.videoData)||g.y(this.playerState,32)&&Mw(this.videoData)||ZT3(this.D,Z);this.W("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&j0P(this,Z,this.videoData.lengthSeconds);Z>5&&(this.Hq.Z=Z);var M=!!g.zK("yt.scheduler.instance");M?WN.f0(this.pu):window.clearTimeout(this.pu);var k=this.mediaElement.isPaused();if((this.playerState.isBuffering()|| +!k||yu(this.videoData))&&!g.y(this.playerState,128)){var K=function(){if(e.mediaElement&&!g.y(e.playerState,128)){e.V.Af()&&mJK(e,"pfx");var q=e.getCurrentTime();e.W("html5_buffer_underrun_transition_fix")&&(q-=e.cq());var S=n5(e.mediaElement),a=g.y(e.playerState,8),v=IE(e.Fm,q),X=FsK(e.Fm,q,(0,g.G)(),S);a&&v?e.Fl(f5(e.playerState,1)):a&&X?(a=e.getDuration(),v=g.Sp(e.videoData),a&&Math.abs(a-q)<1.1?(e.B("setended",{ct:q,bh:S,dur:a,live:v}),e.mediaElement.DU()?(e.logger.debug("seek to 0 because of looping"), +e.seekTo(0,{DN:"videoplayer_loop",seekSource:37})):g.VZ(e)):(e.playerState.isBuffering()||YY(e,"progress_fix"),e.Fl(C5(e.playerState,1)))):(a&&!v&&!X&&q>0&&(a=(Date.now()-e.ij)/1E3,v=e.getDuration(),q>v-1&&e.B("misspg",{t:q.toFixed(2),d:v.toFixed(2),r:a.toFixed(2),bh:S.toFixed(2)})),e.playerState.isPaused()&&e.playerState.isBuffering()&&n5(e.mediaElement)>5&&e.Fl(f5(e.playerState,1)));e.gm()}}; +this.mediaElement.qz().length===0?this.pu=M?WN.T_(K,100):g.kl(K,100):this.pu=M?WN.T_(K,500):g.kl(K,500)}this.videoData.bb=Z;this.u9&&f$(this.u9);!m&&this.isPlaying()&&OBm(this);iDI(this.vK,this.VS,this.fJ(),this.isBackground())&&kY(this);this.Pv("progresssync",this,m);k&&yu(this.videoData)&&this.Pv("onVideoProgress",this,this.getCurrentTime())}}; +g.p.KQ=function(){this.aE("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.p.lj=function(){return this.lw().lj()}; +g.p.Lc=function(){return this.D?this.D.Lc():Dg(this.V.schedule,!0)}; +g.p.Fl=function(m){if(!wh3(this.playerState,m)){this.logger.debug(function(){return"Setting state "+m.toString()}); +var e=new g.hN(m,this.playerState);this.playerState=m;eXy(this);var Z=!this.Fz.length;this.Fz.push(e);var M=this.mediaElement&&this.mediaElement.isSeeking();M=e.F2.state===8&&!M;g.x$(e,1)&&M&&g.y(this.playerState,8)&&!g.y(this.playerState,64)&&this.D&&(oe1(this.D),this.mediaElement&&n5(this.mediaElement)>=5&&gNc(this.vK,this.VS)&&kY(this));(M=g.Y4(this.V.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.y(m,1)&&(g.y(m,8)||g.y(m,16))?this.D7.start(M):this.D7.stop();(g.lX(e,8)<0||g.x$(e, +1024))&&this.lx.stop();!g.x$(e,8)||this.videoData.AR||g.y(e.state,1024)||this.lx.start();g.y(e.state,8)&&g.lX(e,16)<0&&!g.y(e.state,32)&&!g.y(e.state,2)&&this.playVideo();g.y(e.state,2)&&of(this.videoData)&&(this.Ky(this.getCurrentTime()),this.gm(!0));g.x$(e,2)&&(this.Nk(!0),this.V.Af()&&this.W("html5_sabr_parse_live_metadata_playback_boundaries")&&Mw(this.videoData)&&this.videoData.X&&(M={minst:""+this.videoData.X.Cv,cminst:""+(this.videoData.X.Rs()+this.cq()),maxst:""+this.videoData.X.FF,hts:""+ +this.videoData.X.AR,cmaxst:""+(this.videoData.X.GK()+this.cq())},this.B("sabrSeekableBoundaries",M)));g.x$(e,128)&&this.jI();this.videoData.X&&this.videoData.isLivePlayback&&!this.Hk&&(g.lX(e,8)<0?MDs(this.videoData.X):g.x$(e,8)&&this.videoData.X.resume());jSy(this.Hq,e);xKk(this.lw(),e);if(Z&&!this.MU())try{for(var k=g.r(this.Fz),K=k.next();!K.done;K=k.next()){var q=K.value;A4P(this.bP,q);this.Pv("statechange",q)}}finally{this.Fz.length=0}}}; +g.p.cz=function(){this.hf.tick("qoes")}; +g.p.AA=function(){this.Hq.AA()}; +g.p.Yf=function(m,e,Z,M){a:{var k=this.ib;M=M===void 0?"LICENSE":M;Z=Z.substring(0,256);var K=Q6(e);m==="drm.keyerror"&&this.ai&&this.ai.S.keys.length>1&&k.Z<96&&(m="drm.sessionlimitexhausted",K=!1);if(K)if(k.videoData.U&&k.videoData.U.video.isHdr())gv(k,m);else{if(k.G.aE(m,e,M,Z),Vt7(k,{detail:Z}))break a}else k.AY(m,{detail:Z});m==="drm.sessionlimitexhausted"&&(k.B("retrydrm",{sessionLimitExhausted:1}),k.Z++,zZs(k.G))}}; +g.p.t1=function(){var m=this,e=g.Y4(this.V.experiments,"html5_license_constraint_delay"),Z=VA();e&&Z?(e=new g.eD(function(){h_(m);ib(m)},e),g.U(this,e),e.start()):(h_(this),ib(this))}; +g.p.B1=function(m){this.Pv("heartbeatparams",m)}; +g.p.Bd=function(m){this.B("keystatuses",VL(m));var e="auto",Z=!1;this.videoData.U&&(e=this.videoData.U.video.quality,Z=this.videoData.U.video.isHdr());if(this.W("html5_drm_check_all_key_error_states")){var M=obP(e,Z);M=J1(m)?Wt(m,M):m.Z.includes(M)}else{a:{e=obP(e,Z);for(M in m.X)if(m.X[M].status==="output-restricted"){var k=m.X[M].type;if(e===""||k==="AUDIO"||e===k){M=!0;break a}}M=!1}M=!M}if(this.W("html5_enable_vp9_fairplay")){if(Z)if(m.N){var K;if((K=this.ai)==null?0:kk(K.X))if((Z=this.ai)==null)Z= +0;else{e=K=void 0;k=g.r(Z.S.values());for(var q=k.next();!q.done;q=k.next())q=q.value,K||(K=dPP(q,"SD")),e||(e=dPP(q,"AUDIO"));Z.kF({sd:K,audio:e});Z=K==="output-restricted"||e==="output-restricted"}else Z=!M;if(Z){this.B("drm",{dshdr:1});gv(this.ib);return}}else{this.videoData.ye||(this.videoData.ye=!0,this.B("drm",{dphdr:1}),Dn(this,!0));return}var S;if((S=this.ai)==null?0:kk(S.X))return}else if(S=m.N&&M,Z&&!S){gv(this.ib);return}M||Wt(m,"AUDIO")&&Wt(m,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +m=VL(m),this.EL?(this.logger.debug("Output restricted, playback cannot continue"),this.Pv("drmoutputrestricted"),this.W("html5_report_fatal_drm_restricted_error_killswitch")||this.aE("drm.keyerror",2,void 0,"info."+m)):(this.EL=!0,this.AY(new g.tw("qoe.restart",Object.assign({},{retrydrm:1},m))),kY(this),zZs(this)))}; +g.p.uE=function(){if(!this.videoData.AR&&this.mediaElement&&!this.isBackground()){var m="0";this.mediaElement.t7()>0&&n5(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.X&&(this.Fl(C5(this.playerState,1)),YY(this,"load_soft_timeout"),this.Pv("playbackstalledatstart"),m="1");eXy(this);var e=this.videoData.S;m={restartmsg:m,mfmt:!lJ(this.videoData),mdrm:!(!(e&&e.videoInfos&&e.videoInfos.length&&e.videoInfos[0].wV)||this.ai),mfmtinfo:!this.videoData.U,prerolls:this.s7()?this.vp.join(","):"0"}; +if(this.ai){e=this.ai;if(e.S.size<=0){var Z="ns;";e.K||(Z+="nr;");e=Z+="ql."+e.U.length}else e=VL(e.S.values().next().value),e=b_(e);m.drmp=e}var M;Object.assign(m,((M=this.D)==null?void 0:M.pR())||{});var k;Object.assign(m,((k=this.mediaElement)==null?void 0:k.pR())||{});this.lw().AY("qoe.start15s",b_(m));this.Pv("loadsofttimeout")}}; +g.p.Ky=function(m){this.videoData.lengthSeconds!==m&&(this.videoData.lengthSeconds=m,ib(this))}; +g.p.Nk=function(m,e){var Z=this;m=m===void 0?!1:m;if(!this.Rj)if(g.Th("att_s","player_att")||g.nB("att_s",void 0,"player_att"),this.W("use_rta_for_player"))(function(){var k,K,q,S;return g.Qs(function(a){switch(a.X){case 1:if(!(k=m)){a.pB(2);break}return g.A(a,g.ZWI(),3);case 3:k=!a.S;case 2:if(k)return a.return();Ab(a,4);K=R8t(Z.lw());if(!K)throw Error();q={};return g.A(a,g.e5t((q.cpn=Z.videoData.clientPlaybackNonce,q.encryptedVideoId=Z.videoData.videoId||"",q),3E4),6);case 6:S=a.S;if(Z.Rj)throw Error(); +if(!S.challenge)throw g.LD(Error("Not sending attestation ping; no attestation challenge string")),Error();Z.Rj=!0;var v=[S.challenge];S.error?v.push("r1c="+S.error):S.webResponse&&v.push("r1a="+S.webResponse);var X;((X=S.adblockReporting)==null?void 0:X.reportingStatus)!==void 0&&v.push("r6a="+S.adblockReporting.reportingStatus);var x;((x=S.adblockReporting)==null?void 0:x.broadSpectrumDetectionResult)!==void 0&&v.push("r6b="+S.adblockReporting.broadSpectrumDetectionResult);K(v.join("&"));g.nB("att_f", +void 0,"player_att");C1(a,0);break;case 4:f1(a),g.nB("att_e",void 0,"player_att"),g.It(a)}})})().then(function(){e==null||e()}); +else{var M=new g.wS3(this.videoData);if("c1a"in M.nx&&!g.r5.isInitialized()){g.nB("att_wb",void 0,"player_att");this.PW===2&&Math.random()<.01&&g.LD(Error("Botguard not available after 2 attempts"));if(m)return;if(this.PW<5){g.ZZ(this.hP);this.PW++;return}}(M=g.nMR(M))?(g.nB("att_f",void 0,"player_att"),u51(this.lw(),M),this.Rj=!0):g.nB("att_e",void 0,"player_att")}}; +g.p.GK=function(m){return this.Hq.GK(m===void 0?!1:m)}; +g.p.Rs=function(){return this.Hq.Rs()}; +g.p.cq=function(){return this.Hq?this.Hq.cq():0}; +g.p.getStreamTimeOffset=function(){return this.Hq?this.Hq.getStreamTimeOffset():0}; +g.p.R$=function(){var m=0;this.V.W("web_player_ss_media_time_offset")&&(m=this.getStreamTimeOffset()===0?this.cq():this.getStreamTimeOffset());return m}; +g.p.setPlaybackRate=function(m){var e;this.playbackRate!==m&&lU(this.vK,(e=this.videoData.S)==null?void 0:e.videoInfos)&&(this.playbackRate=m,kY(this));this.playbackRate=m;this.mediaElement&&this.mediaElement.setPlaybackRate(m)}; +g.p.getPlaybackRate=function(){return this.playbackRate}; +g.p.getPlaybackQuality=function(){var m="unknown";if(this.videoData.U&&(m=this.videoData.U.video.quality,m==="auto"&&this.mediaElement)){var e=g.ab(this);e&&e.videoHeight>0&&(m=Eq(e.videoWidth,e.videoHeight))}return m}; +g.p.isHdr=function(){return!!(this.videoData.U&&this.videoData.U.video&&this.videoData.U.video.isHdr())}; +g.p.Lv=function(){this.lw().Lv()}; +g.p.sendVideoStatsEngageEvent=function(m,e){var Z=this.lw();Z.X?(Z=g.qu(Z.X,"engage"),Z.AR=m,Z.send(e)):e&&e()}; +g.p.QQ=Zk(26);g.p.isAtLiveHead=function(m,e){e=e===void 0?!1:e;return g.Sp(this.videoData)&&(this.Tv||e)?this.Hq.isAtLiveHead(m):!1}; +g.p.lU=Zk(34);g.p.C6=function(m){this.lw().C6(m)}; +g.p.nu=function(m){this.lw().nu(m)}; +g.p.NR=function(m){this.lw().NR(m)}; +g.p.eB=Zk(13);g.p.kH=Zk(17);g.p.SP=function(m){this.lw().SP(m)}; +g.p.Fg=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.p.setLoop=function(m){this.loop=m;this.mediaElement&&hC(this.V)&&this.mediaElement.setLoop(m);this.D&&this.W("html5_loop_skip_set_end_of_stream")&&(m?this.D.policy.tR=!0:oQ(this.D))}; +g.p.DU=function(){return this.mediaElement&&hC(this.V)?this.mediaElement.DU():this.loop}; +g.p.kp=function(m){this.B("timestamp",{o:m.toString()});this.Hq.kp(m)}; +g.p.gV=function(m){this.hf.tick(m)}; +g.p.TO=function(m){return this.hf.TO(m)}; +g.p.Uk=function(m){this.hf.Uk(m)}; +g.p.B=function(m,e,Z){Z=Z===void 0?!1:Z;this.lw().B(m,e,Z)}; +g.p.Nr=function(m,e,Z){Z=Z===void 0?!1:Z;this.lw().B(m,e,Z)}; +g.p.AY=function(m){this.lw().AY(m.errorCode,b_(m.details));m=m.errorCode;if(this.videoData.isLivePlayback&&(m==="qoe.longrebuffer"||m==="qoe.slowseek")||m==="qoe.restart"){m=this.D?SH7(this.D.videoTrack):{};var e,Z;this.B("lasoe",Object.assign(this.D?SH7(this.D.audioTrack):{},(e=this.j9)==null?void 0:(Z=e.X)==null?void 0:Z.Xj()));var M,k;this.B("lvsoe",Object.assign(m,(M=this.j9)==null?void 0:(k=M.S)==null?void 0:k.Xj()))}}; +g.p.P6=function(m,e,Z){this.lw().P6(m,e,Z)}; +g.p.D2=function(m){this.videoData.n3=!0;this.AY(new g.tw("sabr.fallback",m));Dn(this,!0)}; +g.p.pF=function(){return g.Yq(this.lw().provider)}; +g.p.getPlayerSize=function(){return this.c6.getPlayerSize()}; +g.p.Xf=function(){return this.c6.Xf()}; +g.p.jB=function(){return this.hf}; +g.p.Qo=function(){return this.OZ.Qo()}; +g.p.getVolume=function(){return this.OZ.getVolume()}; +g.p.jW=function(){return this.OZ.jW()}; +g.p.isMuted=function(){return this.OZ.isMuted()}; +g.p.Y2=function(){return this.OZ.Y2()}; +g.p.W=function(m){return this.V.W(m)}; +g.p.Af=function(){return this.V.Af()}; +g.p.a$=function(){if(this.W("html5_generate_content_po_token"))return this.videoData.cP||"";this.OZ.ew();return this.V.tf||""}; +g.p.Uj=function(){if(this.videoData.videoId)return this.videoData.Ir}; +g.p.fE=function(){return this.videoData.videoId}; +g.p.ge=function(){return this.OZ.GH}; +g.p.A3=function(){return this.OZ.A3()}; +g.p.QY=function(m,e){this.Hq.QY(m,e)}; +g.p.GI=function(){this.Hq.GI()}; +g.p.dw=function(m,e){var Z=this.W("html5_generate_content_po_token")?this.videoData:void 0;this.OZ.dw(m,e,Z)}; +g.p.mR=function(m,e){var Z;(Z=this.D)==null||Z.mR(m,e)}; +g.p.l0=function(){var m=this.bK();return!!m&&m.l0()}; +g.p.qP=function(){return this.u9}; +g.p.wX=function(m,e){this.lw().wX(m,e)}; +g.p.MS=function(){return this.lw().MS()}; +g.p.vn=function(){return this.videoData.A9}; +g.p.SO=function(){return this.OZ.SO()}; +g.p.Jm=function(){return this.OZ.Jm(this)};g.T(Ket,BB);g.T(bb,BB); +bb.prototype.updateMetadata=function(){var m=this,e=this.api.getVideoData();if(e!=null&&e.J5()){var Z=this.api.J(),M=[],k="",K=SFk(this);g.zx(Z)&&K?(M=aWc(K.thumbnailDetails),K.album&&(k=VZb(K.album))):M=[{src:e.zg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}];var q;this.api.W("html5_set_position_state_for_gapless")&&((q=this.api.getVideoData())==null?0:q.N)&&vBG(this);qF7(this);pjy(this);navigator.mediaSession.metadata=new MediaMetadata({title:e.title,artist:e.author,artwork:M,album:k}); +Z=e=null;Lkt(this.api)&&(e=function(){m.api.nextVideo()},Z=function(){m.api.previousVideo()}); +t_("nexttrack",e);t_("previoustrack",Z)}}; +bb.prototype.LB=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var m=g.r("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),e=m.next();!e.done;e=m.next())t_(e.value,null);var Z;this.api.W("html5_set_position_state_for_gapless")&&((Z=this.api.getVideoData())==null?0:Z.N)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});BB.prototype.LB.call(this)};g.T(Ql,BB);Ql.prototype.Z=function(m){return m.compositeEmbargo!==void 0}; +Ql.prototype.LB=function(){BB.prototype.LB.call(this);this.S.clear()};g.T(HK,BB);HK.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}}; +HK.prototype.getAvailableQualityData=function(){var m=this.api.getVideoData();if(!m)return[];var e=[],Z,M,k=(Z=m.getPlayerResponse())==null?void 0:(M=Z.playabilityStatus)==null?void 0:M.paygatedQualitiesMetadata;M=(k==null?void 0:k.qualityDetails)||[];Z=new Map;Z=g.Zb(M)&&!Array.isArray(M)?new Map(Object.entries(M)):new Map(M.map(function(q){return[q.key,q.value]})); +if(M=k==null?void 0:k.restrictedAdaptiveFormats){k=[];M=g.r(M);for(var K=M.next();!K.done;K=M.next())K=K.value,K=JM(K.mimeType,K.quality,K.itag.toString(),K.width.toString(),K.height.toString(),K.qualityLabel),k.push(K);m=TQ(m);$2(k);M=[];k=g.r(k);for(K=k.next();!K.done;K=k.next())K=K.value,RL(m,K,this.api.J().S)===!0&&M.push(K);e=e.concat(lW1(M,!1,Z))}m=this.api.U6();e=e.concat(lW1(m,!0,Z));Z=[];if(this.api.W("web_player_enable_premium_hbr_in_h5_api"))return e=RXc(e),u_1(e),e;m={};e=g.r(e);for(k= +e.next();!k.done;k=e.next())k=k.value,M=k.quality,m[M]||(k.formatId=void 0,Z.push(k),m[M]=!0);return Z};var pN={},LgR=(pN["internal-error"]=-1,pN["non-recoverable-error"]=-2,pN["api-disabled-by-application"]=-3,pN["invalid-argument"]=-4,pN["token-provider-invalid"]=-5,pN);g.T(DG,BB);DG.prototype.KI=function(m){var e=this;if(Li())if(!this.S&&this.X){$Jb(this,m);try{this.X.then(function(){Tob(e,m)},function(Z){Gw(Z,"player_update"); +e.handleError(Z,m)})}catch(Z){Gw(Z,"player_update_catch"),this.handleError(Z,m)}}else this.S?Tob(this,m):this.api.B("pf",{m:this.S?1:0, +p:this.X?1:0})}; +DG.prototype.handleError=function(m,e){g.LD(m);if(this.api.W("html5_enable_d6de4_cold_start_and_error")){var Z=0;m.mediaIntegrityErrorName?Z||(Z=LgR[m.mediaIntegrityErrorName]):m.code&&(Z=m.code());e.Ir={Oi:{code:Z}}}};g.T(yl,BB);yl.prototype.onVideoDataChange=function(m){var e;m==="newdata"&&(this.S||this.X&&((e=Od())==null?0:e.size))&&wjm(this);this.X&&m==="dataloaded"&&((m=jM(this))&&(m=nBt(this,this.S||m))&&this.api.setAudioTrack(m,!0),this.U&&(this.U=!1,rKc(this)))}; +yl.prototype.R_=function(){var m=this;if(g.Km(this.api.J())){var e,Z=g.Tk(this.api.J(),(e=this.api.getVideoData())==null?void 0:g.bJ(e));return vi(qt(Z),function(M){var k=g.TM();g.$6(k,M);return m.api.R_(k)})}return qt(this.api.R_())};g.KFc=!1;g.T(J_,vL);J_.prototype.preventDefault=function(){vL.prototype.preventDefault.call(this);this.X&&this.X.preventDefault()}; +J_.prototype.stopPropagation=function(){vL.prototype.stopPropagation.call(this);this.X&&this.X.stopPropagation()};g.T(g.Vl,Fw);g.p=g.Vl.prototype;g.p.LU=function(){return!0}; +g.p.isView=function(){return!1}; +g.p.IL=function(){return!1}; +g.p.W_=function(){return this.X}; +g.p.Kd=function(){return this.X.src}; +g.p.Dg=function(m){var e=this.getPlaybackRate();this.X.src=m;this.setPlaybackRate(e)}; +g.p.dJ=function(){this.X.removeAttribute("src")}; +g.p.getPlaybackRate=function(){try{return this.X.playbackRate>=0?this.X.playbackRate:1}catch(m){return 1}}; +g.p.setPlaybackRate=function(m){this.getPlaybackRate()!==m&&(this.X.playbackRate=m);return m}; +g.p.DU=function(){return this.X.loop}; +g.p.setLoop=function(m){this.X.loop=m}; +g.p.canPlayType=function(m,e){return this.X.canPlayType(m,e)}; +g.p.isPaused=function(){return this.X.paused}; +g.p.isSeeking=function(){return this.X.seeking}; +g.p.isEnded=function(){return this.X.ended}; +g.p.hZ=function(){return this.X.muted}; +g.p.dE=function(m){kv();this.X.muted=m}; +g.p.qz=function(){return this.X.played||K8([],[])}; +g.p.kE=function(){try{var m=this.X.buffered}catch(e){}return m||K8([],[])}; +g.p.lW=function(){return this.X.seekable||K8([],[])}; +g.p.MQ=function(){var m=this.X;return m.getStartDate?m.getStartDate():null}; +g.p.getCurrentTime=function(){return this.X.currentTime}; +g.p.setCurrentTime=function(m){this.X.currentTime=m}; +g.p.getDuration=function(){return this.X.duration}; +g.p.load=function(){var m=this.X.playbackRate;try{this.X.load()}catch(e){}this.X.playbackRate=m}; +g.p.pause=function(){this.X.pause()}; +g.p.play=function(){var m=this.X.play();if(!m||!m.then)return null;m.then(void 0,function(){}); +return m}; +g.p.t7=function(){return this.X.readyState}; +g.p.PU=function(){return this.X.networkState}; +g.p.G3=function(){return this.X.error?this.X.error.code:null}; +g.p.H_=function(){return this.X.error?this.X.error.message:""}; +g.p.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.X instanceof window.HTMLVideoElement&&this.X.getVideoPlaybackQuality)return this.X.getVideoPlaybackQuality();if(this.X){var m=this.X,e=m.webkitDroppedFrameCount;if(m=m.webkitDecodedFrameCount)return{droppedVideoFrames:e||0,totalVideoFrames:m}}return{}}; +g.p.hD=function(){return!!this.X.webkitCurrentPlaybackTargetIsWireless}; +g.p.Rf=function(){return!!this.X.webkitShowPlaybackTargetPicker()}; +g.p.togglePictureInPicture=function(){var m=this.X,e=window.document;window.document.pictureInPictureEnabled?this.X!==e.pictureInPictureElement?m.requestPictureInPicture():e.exitPictureInPicture():M4()&&m.webkitSetPresentationMode(m.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.p.uC=function(){var m=this.X;return new g.wk(m.offsetLeft,m.offsetTop)}; +g.p.getSize=function(){return g.jO(this.X)}; +g.p.setSize=function(m){y7(this.X,m)}; +g.p.getVolume=function(){return this.X.volume}; +g.p.setVolume=function(m){kv();this.X.volume=m}; +g.p.Kk=function(m){this.L[m]||(this.X.addEventListener(m,this.listener),this.L[m]=this.listener)}; +g.p.setAttribute=function(m,e){this.X.setAttribute(m,e)}; +g.p.removeAttribute=function(m){this.X.removeAttribute(m)}; +g.p.hasAttribute=function(m){return this.X.hasAttribute(m)}; +g.p.Cn=Zk(51);g.p.Tq=Zk(53);g.p.NA=Zk(55);g.p.dR=Zk(57);g.p.fn=function(){return Hl(this.X)}; +g.p.Pn=function(m){g.SD(this.X,m)}; +g.p.bj=function(m){return g.tQ(this.X,m)}; +g.p.Wa=function(){return g.iQ(document.body,this.X)}; +g.p.audioTracks=function(){var m=this.X;if("audioTracks"in m)return m.audioTracks}; +g.p.LB=function(){for(var m=g.r(Object.keys(this.L)),e=m.next();!e.done;e=m.next())e=e.value,this.X.removeEventListener(e,this.L[e]);Fw.prototype.LB.call(this)}; +g.p.pZ=function(m){this.X.disableRemotePlayback=m};g.T(WK,g.Nq);g.T(PK,g.Nq);PK.prototype.show=function(){g.Nq.prototype.show.call(this);this.HI();this.Fq.W("html5_enable_moving_s4n_window")&&g.Km(this.Fq.J())&&this.K()}; +PK.prototype.hide=function(){g.Nq.prototype.hide.call(this);this.delay.stop();this.L.stop()}; +PK.prototype.HI=function(){var m=(0,g.G)(),e=this.Fq,Z=e.Jf(),M=e.getVideoData(),k=e.fJ(),K=k.W_(),q=e.J(),S=Z.Fg(),a=Z.rh,v=PZ(a,"bandwidth")*8/1024,X=PZ(a,"networkactivity")/1024,x=PZ(a,"bufferhealth");if(Z.ai){var l=Z.videoData.useInnertubeDrmService()?"IT/":"";l+=Z.ai.X.lP()+"/"+g6(Z.Bn());l+="/"+Z.ai.lP()}else l="";var R=l,h=Z.getPlayerState().state.toString(16),w=k.getCurrentTime().toFixed(2),N=q4(k.kE(),",",3);l="";if(M.isDaiEnabled()){M.enableServerStitchedDai&&(l+=M.zF?"DS":"SS");l=M.NO()? +l+"LIFA, ":l+"DAI, ";var I=HBR(Z);I&&(l+=I)}tF(M)&&!M.NO()&&(l+="LIFAE, ");var C;((C=e.getVideoData(1))==null?0:g.gA(C))?(l+="SSAP, ",(C=HBR(Z))&&(l+=C)):Mw(M)&&(l+="SABR, ");if(M.fetchType){switch(M.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}l+="vd:"+C+", "}q.CJ&&(l=q.CJ.Qp?l+"wa, ":l+"w, ");l+="s:"+h+" t:"+w+" b:"+N+" ";k.isSeeking()&&(l+="S");k.isPaused()&&(l+="P");k.isEnded()&&(l+="E");e.isOrchestrationLeader()&&(l+=" L");(k=Z.lj())&&(l+=" l:"+k.toFixed());k=Z.getCurrentTime(); +q=M.u8;k&&k>q.start&&k>=5;I+=b}N=I.substr(0,4)+" "+I.substr(4,4)+" "+I.substr(8,4)+" "+(I.substr(12,4)+" "+I.substr(16,4))}else N="";v={video_id_and_cpn:String(M.videoId)+" / "+N,codecs:"",dims_and_frames:"",bandwidth_kbps:v.toFixed(0)+" Kbps",buffer_health_seconds:x.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:R?"":"display:none",drm:R,debug_info:k,extra_debug_info:"",bandwidth_style:w,network_activity_style:w,network_activity_bytes:X.toFixed(0)+ +" KB",shader_info:h,shader_info_style:h?"":"display:none",playback_categories:""};X=K.clientWidth+"x"+K.clientHeight+(q>1?"*"+q.toFixed(2):"");x="-";S.totalVideoFrames&&(x=(S.droppedVideoFrames||0)+" dropped of "+S.totalVideoFrames);v.dims_and_frames=X+" / "+x;e=e.getVolume();S=glK(M);var Q;X=((Q=M.Z)==null?0:Q.audio.X)?"DRC":Math.round(e*S)+"%";Q=Math.round(e)+"% / "+X;e=M.K1.toFixed(1);isFinite(Number(e))&&(Q+=" (content loudness "+e+"dB)");v.volume=Q;v.resolution=K.videoWidth+"x"+K.videoHeight; +if(K=M.U){if(Q=K.video)e=Q.fps,e>1&&(v.resolution+="@"+e),(e=FD(Z))&&e.video&&(v.resolution+=" / "+e.video.width+"x"+e.video.height,e.video.fps>1&&(v.resolution+="@"+e.video.fps)),v.codecs=IWk(K),!M.Z||K.audio&&K.video?K.oP&&(v.codecs+=" / "+K.oP+"A"):v.codecs+=" / "+IWk(M.Z),Q.S||Q.primaries?(e=Q.S||"unknown",e==="smpte2084"?e+=" (PQ)":e==="arib-std-b67"&&(e+=" (HLG)"),v.color=e+" / "+(Q.primaries||"unknown"),v.color_style=""):v.color_style="display:none";if(K.debugInfo)for(v.fmt_debug_info="",K= +g.r(K.debugInfo),Q=K.next();!Q.done;Q=K.next())Q=Q.value,v.fmt_debug_info+=Q.label+":"+Q.text+" ";v.fmt_debug_info_style=v.fmt_debug_info&&v.fmt_debug_info.length>0?"":"display:none"}K=M.isLivePlayback;Q=M.QH;v.live_mode_style=K||Q?"":"display:none";v.live_latency_style=K?"":"display:none";if(Q)v.live_mode="Post-Live"+(vQ(M)?" Manifestless":"");else if(K){Q=PZ(a,"livelatency");v.live_latency_secs=Q.toFixed(2)+"s";K=vQ(M)?"Manifestless, ":"";M.S9&&(K+="Windowed, ");e="Uncertain";if(Q>=0&&Q<120)if(M.latencyClass&& +M.latencyClass!=="UNKNOWN")switch(M.latencyClass){case "NORMAL":e="Optimized for Normal Latency";break;case "LOW":e="Optimized for Low Latency";break;case "ULTRALOW":e="Optimized for Ultra Low Latency";break;default:e="Unknown Latency Setting"}else e=M.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";K+=e;(Q=Z.getPlaylistSequenceForTime(Z.getCurrentTime()))&&(K+=", seq "+Q.sequence);v.live_mode=K}!Z.isGapless()||uJ(M)&&Z.SO()||(v.playback_categories+="Gapless "); +v.playback_categories_style=v.playback_categories?"":"display:none";v.bandwidth_samples=zR(a,"bandwidth");v.network_activity_samples=zR(a,"networkactivity");v.live_latency_samples=zR(a,"livelatency");v.buffer_health_samples=zR(a,"bufferhealth");Z=g.LI(M);if(M.cotn||Z)v.cotn_and_local_media=(M.cotn?M.cotn:"null")+" / "+Z;v.cotn_and_local_media_style=v.cotn_and_local_media?"":"display:none";qw(M,"web_player_release_debug")?(v.release_name="youtube.player.web_20241209_00_RC00",v.release_style=""):v.release_style= +"display:none";v.debug_info&&l.length>0&&v.debug_info.length+l.length<=60?v.debug_info+=" "+l:v.extra_debug_info=l;v.extra_debug_info_style=v.extra_debug_info&&v.extra_debug_info.length>0?"":"display:none";zw(this.X,v.bandwidth_samples);zw(this.j,v.network_activity_samples);zw(this.Z,v.live_latency_samples);zw(this.S,v.buffer_health_samples);M={};Z=g.r(Object.entries(v));for(a=Z.next();!a.done;a=Z.next())K=g.r(a.value),a=K.next().value,K=K.next().value,this.N[a]!==K&&(M[a]=" "+String(K)),this.N[a]= +K;this.update(M);m=(0,g.G)()-m>25?5E3:500;this.delay.start(m)}; +PK.prototype.K=function(){this.C?(this.position+=1,this.position>15&&(this.C=!1)):(--this.position,this.position<=0&&(this.C=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.L.start(2E4)};g.T(fWm,BB);g.T(mV,BB);g.p=mV.prototype;g.p.onVideoDataChange=function(m){this.n0();this.videoId=m.videoId;this.S=this.X=void 0;this.timelyActions=dJ3(m);Bo1(this);this.clearTimeout();this.IF()}; +g.p.UB=function(m){var e=m.F2,Z=m.state,M=Z.seekSource;!g.y(e,16)&&g.y(Z,16)?this.o0(M!=null?M:void 0):g.y(e,16)&&!g.y(Z,16)&&this.Bz();m=m.state;m=!m.isCued()&&!g.y(m,1024);this.U.kC(m)}; +g.p.IF=function(){var m=this.z_();m&&this.api.IF(m)}; +g.p.n0=function(){this.api.Q_("timelyAction",1);if(this.X!==void 0)this.onCueRangeExit(this.X)}; +g.p.z_=function(){if(this.timelyActions){for(var m=[],e=g.r(this.timelyActions),Z=e.next();!Z.done;Z=e.next())Z=Z.value,Z=Z.startTimeMilliseconds!=null&&Z.endTimeMilliseconds!=null&&Z.cueRangeId!=null?new g.Ub(Number(Z.startTimeMilliseconds),Number(Z.endTimeMilliseconds),{id:Z.cueRangeId,namespace:"timelyAction"}):void 0,Z&&m.push(Z);return m}}; +g.p.onCueRangeEnter=function(m){var e=eo(this,m);e&&this.Z[m]!==void 0&&(e.maxShowCount===void 0||(e==null?void 0:e.maxShowCount)>this.Z[m])&&(this.X=m,YF3(this))}; +g.p.onCueRangeExit=function(m){var e=EBt(this,m);e&&this.X===m&&this.api.jr("innertubeCommand",e);this.clearTimeout();this.X=void 0}; +g.p.onTimeout=function(m){this.X!==void 0&&(m==null?void 0:m.cueRangeId)===this.X&&(m=EBt(this,this.X))&&this.api.jr("innertubeCommand",m)}; +g.p.o0=function(m){this.S=m}; +g.p.Bz=function(){YF3(this);this.S=void 0}; +g.p.setTimeout=function(m){var e=this,Z=Number(m==null?void 0:m.maxVisibleDurationMilliseconds);Z&&(this.clearTimeout(),this.L=setTimeout(function(){e.onTimeout(m)},Z))}; +g.p.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0}; +g.p.LB=function(){this.timelyActions=this.S=this.X=this.videoId=void 0;this.Z={};this.n0();this.clearTimeout();BB.prototype.LB.call(this)};g.T(tey,BB);var S$={},OcK=(S$[1]="pot_ss",S$[2]="pot_sf",S$[3]="pot_se",S$[4]="pot_xs",S$[5]="pot_xf",S$[6]="pot_xe",S$);g.T(MW,BB);MW.prototype.LB=function(){this.Z&&(qC(this.Z),this.Z=void 0);BB.prototype.LB.call(this)}; +MW.prototype.ew=function(){this.X&&!this.X.isReady()&&KF(this)}; +MW.prototype.N=function(m,e,Z){var M=this;if(Hc1(m)){var k=Z||"",K;if((K=this.X)==null?0:K.isReady())e=qW(this,k),DJR(m,e);else{var q=new g.TF;e.push(q.promise);this.L.promise.then(function(){var S=qW(M,k);DJR(m,S);q.resolve()})}}}; +MW.prototype.X4=function(m){var e=this;this.X&&(this.X.isReady()||(m.cP=qW(this,m.videoId)),this.S=new Gx,this.X.ready().then(function(){e.hf.TO("pot_if");m.cP=qW(e,m.videoId)}))};g.T(pF,g.Y);pF.prototype.X=function(){for(var m=g.r(g.Hy.apply(0,arguments)),e=m.next();!e.done;e=m.next())(e=e.value)&&this.features.push(e)}; +pF.prototype.LB=function(){for(var m=this.features.length-1;m>=0;m--)this.features[m].dispose();this.features.length=0;g.Y.prototype.LB.call(this)};So.prototype.YJ=function(){this.S=(0,g.G)()}; +So.prototype.reset=function(){this.X=this.S=NaN}; +So.prototype.LH=function(m,e){if(m.clientPlaybackNonce&&!isNaN(this.X)){if(Math.random()<.01){e=e?"pbp":"pbs";var Z={startTime:this.X};m.C&&(Z.cttAuthInfo={token:m.C,videoId:m.videoId});g.h$("seek",Z);g.uj({clientPlaybackNonce:m.clientPlaybackNonce},"seek");isNaN(this.S)||g.lj("pl_ss",this.S,"seek");g.lj(e,(0,g.G)(),"seek")}this.reset()}};g.p=aF.prototype;g.p.reset=function(){g.XX(this.timerName)}; +g.p.tick=function(m,e){g.lj(m,e,this.timerName)}; +g.p.TO=function(m){return wG(m,this.timerName)}; +g.p.Uk=function(m){p9(m,void 0,this.timerName)}; +g.p.infoGel=function(m){g.uj(m,this.timerName)};g.T(qX,g.m6);g.p=qX.prototype;g.p.setShuffle=function(m){this.shuffle=m;m=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var e=0;e0)||dZ(this,1,!0)}; +g.p.Sn=function(){this.C=!0;this.X.gy(this.L);this.L=this.X.ZG(document,"mouseup",this.Ni)}; +g.p.Ni=function(){this.C=!1;dZ(this,8,!1);this.X.gy(this.L);this.L=this.X.ZG(this.target,"mousedown",this.Sn)}; +g.p.r4=function(m){if(m=(m=m.changedTouches)&&m[0])this.S9=m.identifier,this.X.gy(this.N),this.N=this.X.ZG(this.target,"touchend",this.Jc,void 0,!0),dZ(this,1024,!0)}; +g.p.Jc=function(m){if(m=m.changedTouches)for(var e=0;e1280||K>720)if(k=Z.zg("maxresdefault.jpg"))break;if(M>640||K>480)if(k=Z.zg("maxresdefault.jpg"))break;if(M> +320||K>180)if(k=Z.zg("sddefault.jpg")||Z.zg("hqdefault.jpg")||Z.zg("mqdefault.jpg"))break;if(k=Z.zg("default.jpg"))break}R_(e)&&(e=new Image,e.addEventListener("load",function(){Ufy()}),e.src=k?k:"",this.api.jB().tick("ftr")); +this.C.style.backgroundImage=k?"url("+k+")":""};g.T(bW,g.Nq);bW.prototype.resize=function(){}; +var C_k=/([^<>]+)<\/a>/;g.T(Hv,g.Nq);g.p=Hv.prototype;g.p.onClick=function(m){this.innertubeCommand?(this.hR.jr("innertubeCommand",this.innertubeCommand),m.preventDefault()):KEK(m,this.hR,!0);this.hR.logClick(this.element)}; +g.p.onVideoDataChange=function(m,e){o4I(this,e);this.C&&dtk(this,this.C)}; +g.p.xb=function(m){var e=this.hR.getVideoData();this.videoId!==e.videoId&&o4I(this,e);this.X&&dtk(this,m.state);this.C=m.state}; +g.p.kx=function(){this.L.show();this.hR.Pv("paidcontentoverlayvisibilitychange",!0);this.hR.logVisibility(this.element,!0)}; +g.p.s2=function(){this.L.hide();this.hR.Pv("paidcontentoverlayvisibilitychange",!1);this.hR.logVisibility(this.element,!1)};g.T(DM,g.Nq);DM.prototype.hide=function(){this.X.stop();this.message.style.display="none";g.Nq.prototype.hide.call(this)}; +DM.prototype.onStateChange=function(m){this.sx(m.state)}; +DM.prototype.sx=function(m){if(g.y(m,128))var e=!1;else{var Z;e=((Z=this.api.Jf())==null?0:Z.ZM)?!1:g.y(m,16)||g.y(m,1)?!0:!1}e?this.X.start():this.hide()}; +DM.prototype.S=function(){this.message.style.display="block"};g.T(Lu,g.CZ);Lu.prototype.onMutedAutoplayChange=function(m){this.Z&&(m?(B5I(this),this.kx()):(this.S&&this.logClick(),this.s2()))}; +Lu.prototype.UB=function(m){this.api.isMutedByMutedAutoplay()&&g.x$(m,2)&&this.s2()}; +Lu.prototype.onClick=function(){this.api.unMute();this.logClick()}; +Lu.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.T(g.ye,g.z$);g.p=g.ye.prototype;g.p.init=function(){var m=this.api,e=m.getPlayerStateObject();this.pN=m.getPlayerSize();this.Fl(e);Gn(this);this.XC();this.api.Pv("basechromeinitialized",this)}; +g.p.onVideoDataChange=function(m,e){var Z=this.e7!==e.videoId;if(Z||m==="newdata"){m=this.api;m.isFullscreen()||(this.pN=m.getPlayerSize());var M;((M=this.api.getVideoData(1))==null?0:g.gA(M))&&YdR(this)}Z&&(this.e7=e.videoId,Z=this.GW,Z.b9=3E3,dZ(Z,512,!0),Gn(this));this.api.W("web_render_jump_buttons")&&e.showSeekingControls&&(this.ZI=572)}; +g.p.h8=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.p.Av=function(m){try{if(!g.iQ(this.api.getRootNode(),m))return!1}catch(e){return!1}for(;m&&!g.Ro(m);)m=m===this.api.getRootNode()?null:m.parentElement||null;return!!m}; +g.p.vN=function(m){var e=this.api.getRootNode();g.gU(e,"ytp-autohide",m);g.gU(e,"ytp-autohide-active",!0);this.rB.start(m?250:100);m&&(this.sX=!1,g.vR(e,"ytp-touch-mode"));this.y3=!m;this.api.xZ(!m)}; +g.p.kV=function(){var m=this.api.getRootNode();g.gU(m,"ytp-autohide-active",!1)}; +g.p.QO=function(m){bRR(this)&&tQb(this,m)&&!this.api.J().AR&&sz(this);var e=fZ(this.ID);!On(this.api.J())&&yQ&&jK(this,m)?e&&m.preventDefault():(this.sX=!0,g.SD(this.api.getRootNode(),"ytp-touch-mode"),this.GW.U8())}; +g.p.j$=function(){this.GS.X7=!1;this.api.Pv("rootnodemousedown",this.GS)}; +g.p.b_=function(m){if(this.api.J().W("web_fix_fine_scrubbing_false_play")){if(jK(this,m)||this.GS.X7)return}else if(this.GS.X7||jK(this,m))return;bRR(this)||!tQb(this,m)||this.xL.isActive()||(sz(this),m.preventDefault());this.JP&&(this.JP=!1)}; +g.p.renderChapterSeekingAnimation=function(){}; +g.p.gh=function(){var m=this.api.getPlayerStateObject();g.y(m,2)&&ic(this.api)||(m.isOrWillBePlaying()?this.api.pauseVideo():(this.dk&&this.api.Pv("largeplaybuttonclicked",this.dk.Z.element),this.api.Z5(),this.api.playVideo(),this.dk&&document.activeElement===this.dk.Z.element&&this.api.getRootNode().focus()))}; +g.p.Cs=function(m){HRc(this,.3,m.scale);m.preventDefault()}; +g.p.IT=function(m){HRc(this,.1,m.scale)}; +g.p.XC=function(){var m=this.api.YA().getPlayerSize(),e=this.api.getRootNode(),Z=m.width>=650;this.GW.resize();g.gU(e,"ytp-fullscreen",this.api.isFullscreen());g.gU(e,"ytp-large-width-mode",Z);g.gU(e,"ytp-small-mode",this.Dw());g.gU(e,"ytp-tiny-mode",this.Dw()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140));g.gU(e,"ytp-big-mode",this.nN());this.xQ&&this.xQ.resize(m)}; +g.p.UB=function(m){this.Fl(m.state);Gn(this)}; +g.p.Fl=function(m){var e=m.isCued()||this.api.s7()&&this.api.getPresentingPlayerType()!==3;e!==this.isCued&&(this.isCued=e,this.bp&&this.gy(this.bp),this.bp=this.ZG(this.api.YA(),"touchstart",this.QO,void 0,e));var Z=this.GW,M=m.isPlaying()&&!g.y(m,32)||this.api.NJ();dZ(Z,128,!M);Z=this.GW;M=this.api.getPresentingPlayerType()===3;dZ(Z,256,M);Z=this.api.getRootNode();g.y(m,2)?M=[M2.ENDED]:(M=[],g.y(m,8)?M.push(M2.PLAYING):g.y(m,4)&&M.push(M2.PAUSED),g.y(m,1)&&!g.y(m,32)&&M.push(M2.BUFFERING),g.y(m, +32)&&M.push(M2.SEEKING),g.y(m,64)&&M.push(M2.UNSTARTED));BG(this.xR,M)||(YMP(Z,this.xR),this.xR=M,am(Z,M));M=this.api.J();var k=g.y(m,2);a:{var K=this.api.J();var q=K.controlsType;switch(q){case "2":case "0":K=!1;break a}K=q==="3"&&!g.y(m,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:wH(this.api.QW()).LY())||this.api.V7()||On(K)&&this.api.getPresentingPlayerType()===2?!1:!0}g.gU(Z,"ytp-hide-controls",!K);g.gU(Z,"ytp-native-controls",M.controlsType==="3"&&!e&&!k&&!this.Kc);g.y(m,128)&& +!On(M)?(this.xQ||(this.xQ=new bW(this.api),g.U(this,this.xQ),g.uc(this.api,this.xQ.element,4)),Aw3(this.xQ,m.wG),this.xQ.show()):this.xQ&&(this.xQ.dispose(),this.xQ=null)}; +g.p.P9=function(){return XE(this.api)?(DCK(this.api),!0):!1}; +g.p.onMutedAutoplayChange=function(m){this.Kc=m;YdR(this)}; +g.p.nN=function(){return!1}; +g.p.Dw=function(){return!this.api.isFullscreen()||!this.nN()&&(this.api.getPlayerSize().width5&&e.B("glrs",{cmt:Z});e.seekTo(0,{seekSource:58});e.B("glrre",{cmt:Z})}}; +Wv.prototype.LB=function(){this.X=null;g.Y.prototype.LB.call(this)};g.T(g.zn,Fw);g.p=g.zn.prototype;g.p.isView=function(){return!0}; +g.p.IL=function(){var m=this.mediaElement.getCurrentTime();if(m=4&&m!=="player-reload-after-handoff";this.status={status:Infinity,error:m};if(this.X&&this.S){var M=this.S.getVideoData().clientPlaybackNonce;this.X.AY(new g.tw("dai.transitionfailure",Object.assign(e,{cpn:M,transitionTimeMs:this.lk,msg:m})));Ib(this.X,Z)}this.zw.reject(m);this.dispose()}}; +g.p.A3=function(){return this.status.status>=4&&this.status.status<6}; +g.p.LB=function(){W1b(this);this.X.unsubscribe("newelementrequired",this.kP,this);if(this.U){var m=this.U.S;this.U.X.Ss.unsubscribe("updateend",this.Wx,this);m.Ss.unsubscribe("updateend",this.Wx,this)}g.Y.prototype.LB.call(this)}; +g.p.Uf=function(m){g.x$(m,128)&&this.XJ("player-error-event")};g.T(ME,g.Y);g.p=ME.prototype;g.p.clearQueue=function(m,e){m=m===void 0?!1:m;e=e===void 0?!1:e;this.Z&&this.Z.reject("Queue cleared");this.app.J().W("html5_gapless_fallback_on_qoe_restart_v2")||e&&this.S&&Ib(this.S,!1);k0(this,m)}; +g.p.SO=function(){return!this.X}; +g.p.Jm=function(m){return this.X===m}; +g.p.A3=function(){var m;return((m=this.U)==null?void 0:m.A3())||!1}; +g.p.LB=function(){k0(this);g.Y.prototype.LB.call(this)};g.T(qE,g.m6);g.p=qE.prototype;g.p.getVisibilityState=function(m,e,Z,M,k,K,q,S){return m?4:qm()?3:e?2:Z?1:M?5:k?7:K?8:q?9:S?10:0}; +g.p.t6=function(m){this.fullscreen!==m&&(this.fullscreen=m,this.Cx())}; +g.p.setMinimized=function(m){this.S!==m&&(this.S=m,this.Cx())}; +g.p.setInline=function(m){this.inline!==m&&(this.inline=m,this.Cx())}; +g.p.Hf=function(m){this.pictureInPicture!==m&&(this.pictureInPicture=m,this.Cx())}; +g.p.setSqueezeback=function(m){this.U!==m&&(this.U=m,this.Cx())}; +g.p.uD=function(m){this.Z!==m&&(this.Z=m,this.Cx())}; +g.p.hD=function(){return this.X}; +g.p.jW=function(){return this.fullscreen!==0}; +g.p.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; +g.p.PZ=function(){return this.fullscreen}; +g.p.ya=function(){return this.S}; +g.p.isInline=function(){return this.inline}; +g.p.isBackground=function(){return qm()}; +g.p.S8=function(){return this.pictureInPicture}; +g.p.y7=function(){return!1}; +g.p.ox=function(){return this.U}; +g.p.Ly=function(){return this.Z}; +g.p.Cx=function(){this.Pv("visibilitychange");var m=this.getVisibilityState(this.hD(),this.isFullscreen(),this.ya(),this.isInline(),this.S8(),this.y7(),this.ox(),this.Ly());m!==this.C&&this.Pv("visibilitystatechange");this.C=m}; +g.p.LB=function(){OTK(this.L);g.m6.prototype.LB.call(this)};g.T(ai,g.Y);ai.prototype.AJ=function(){return this.fR||0}; +ai.prototype.YE=function(){return this.Z||0}; +ai.prototype.WV=function(){for(;this.segments.length;){var m=void 0;(m=this.segments.pop())==null||m.dispose()}this.S.clear();this.U=void 0}; +ai.prototype.LB=function(){this.WV();g.Y.prototype.LB.call(this)}; +g.T(vE,g.Y);g.p=vE.prototype;g.p.AJ=function(){return this.fR}; +g.p.YE=function(){return this.U}; +g.p.getType=function(){return this.type}; +g.p.getVideoData=function(){return this.videoData}; +g.p.LB=function(){xIy(this);g.Y.prototype.LB.call(this)};g.T(g.gO,g.Y);g.p=g.gO.prototype;g.p.M1=function(m,e,Z){return new g.Ub(m,e,{id:Z,namespace:"serverstitchedcuerange",priority:9})}; +g.p.onCueRangeEnter=function(m){this.sE.push(m);var e=m.getId();this.G.B("sdai",{oncueEnter:1,cpn:e,start:m.start,end:m.end,ct:(this.G.getCurrentTime()||0).toFixed(3),cmt:(this.G.xe()||0).toFixed(3)});var Z=e==="";this.ZN.add(m.S);var M=this.Z.get(e);if(Z){var k;if(this.G.getVideoData().NO()&&((k=this.X)==null?0:k.t4)&&this.C){this.K0=0;this.X=void 0;this.qs&&(this.events.gy(this.qs),this.qs=null);this.C="";this.yh=!0;return}}else if(this.G.B("sdai",{enterAdCueRange:1}),this.G.getVideoData().NO()&& +(M==null?0:M.xv))return;if(this.yh&&!this.X)this.yh=!1,!Z&&M&&(Z=this.G.getCurrentTime(),x0(this,{S0:m,isAd:!0,B4:!0,Vn:Z,adCpn:e},{isAd:!1,B4:!1,Vn:Z}),this.UZ=M.cpn,id(this,M),m=XH(this,"midab",M),this.G.B("sdai",m),this.K0=1),this.AR=!1;else if(this.X){if(this.X.B4)this.G.B("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.X.adCpn,transitionTime:this.X.Vn,cpn:e,currentTime:this.G.getCurrentTime()}),M=this.G.getCurrentTime(),m={S0:m,isAd:!Z,B4:!0,Vn:M,adCpn:e},e={S0:this.X.S0,isAd:this.X.isAd, +B4:!1,Vn:M,adCpn:this.X.adCpn},this.X.S0&&this.ZN.delete(this.X.S0.S),x0(this,m,e);else{if(this.X.S0===m){this.G.B("sdai",{same_cue_range_pair_enter:1,acpn:this.X.adCpn,transitionTime:this.X.Vn,cpn:e,currentTime:this.G.getCurrentTime(),cueRangeStartTime:m.start,cueRangeEndTime:m.end});this.X=void 0;return}if(this.X.adCpn===e){e&&this.G.B("sdai",{dchtsc:e});this.X=void 0;return}m={S0:m,isAd:!Z,B4:!0,Vn:this.G.getCurrentTime(),adCpn:e};x0(this,m,this.X)}this.X=void 0;this.AR=!1}else this.X={S0:m,isAd:!Z, +B4:!0,Vn:this.G.getCurrentTime(),adCpn:e}}; +g.p.onCueRangeExit=function(m){var e=m.getId();this.G.B("sdai",{oncueExit:1,cpn:e,start:m.start,end:m.end,ct:(this.G.getCurrentTime()||0).toFixed(3),cmt:(this.G.xe()||0).toFixed(3)});var Z=e==="",M=this.Z.get(e);if(this.G.getVideoData().NO()&&!Z&&M){if(M.xv)return;M.xv=!0;this.L.clear();if(this.V.W("html5_lifa_no_rewatch_ad_sbc"))if(this.G.l0()){var k=M.fR;this.G.mR(k/1E3,(k+M.durationMs)/1E3)}else this.G.B("lifa",{remove:0})}if(this.ZN.has(m.S))if(this.ZN.delete(m.S),this.sE=this.sE.filter(function(K){return K!== +m}),this.yh&&(this.AR=this.yh=!1,this.G.B("sdai",{cref:1})),this.X){if(this.X.B4){if(this.X.S0===m){this.G.B("sdai",{same_cue_range_pair_exit:1, +acpn:this.X.adCpn,transitionTime:this.X.Vn,cpn:e,currentTime:this.G.getCurrentTime(),cueRangeStartTime:m.start,cueRangeEndTime:m.end});this.X=void 0;return}if(this.X.adCpn===e){e&&this.G.B("sdai",{dchtsc:e});this.X=void 0;return}e={S0:m,isAd:!Z,B4:!1,Vn:this.G.getCurrentTime(),adCpn:e};x0(this,this.X,e)}else this.G.B("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.X.adCpn,transitionTime:this.X.Vn,upcomingCpn:e,contentCpn:this.G.getVideoData().clientPlaybackNonce,currentTime:this.G.getCurrentTime()}); +this.X=void 0;this.AR=!1}else this.X={S0:m,isAd:!Z,B4:!1,Vn:this.G.getCurrentTime(),adCpn:e};else this.G.B("sdai",{ignore_single_exit:1})}; +g.p.Xe=function(){if(this.SW)return!1;var m=void 0;this.UZ&&(m=this.Z.get(this.UZ));return this.G.getVideoData().NO()?!!m&&!m.xv:!!m}; +g.p.seekTo=function(m,e,Z,M){m=m===void 0?0:m;e=e===void 0?{}:e;Z=Z===void 0?!1:Z;M=M===void 0?null:M;if(this.G.getVideoData().NO()&&m<=this.nB/1E3)this.G.pauseVideo(),this.nB=0,this.AR=!0,Dn(this.G),this.G.seekTo(m),this.G.playVideo();else if(this.AR=!0,Z)XD7(this,m,e);else{Z=this.api.Jf();var k=Z===this.tR?this.XG:null;ud(this,!1);this.wr=m;this.Wq=e;M!=null&&this.mw.start(M);Z&&(this.XG=k||Z.getPlayerState(),A_(Z),this.tR=Z)}}; +g.p.LB=function(){ud(this,!1);Ri(this);Rnb(this);g.Y.prototype.LB.call(this)}; +g.p.nZ=function(m){this.Te=m;this.G.B("sdai",{swebm:m})}; +g.p.KV=function(m,e,Z){if(Z&&e){var M=this.L.get(m);if(M){M.locations||(M.locations=new Map);var k=Number(e.split(";")[0]);Z=new g.IL(Z);this.wc&&this.G.B("sdai",{hdlredir:1,itag:e,seg:m,hostport:Cy(Z)});M.locations.set(k,Z)}}}; +g.p.MJ=function(m,e,Z,M,k,K){var q=M===3;k=hn3(this,m,e,M,Z,K);if(!k)return cE(this,e,q),k=g.Tv(this,e)?"undec":"ncp",this.G.B("sdai",{gvprp:k,mt:m,seg:e,tt:M,itag:Z,ce:K}),null;q||this.L.set(e,k);m=k.XP;var S;M=((S=wO(this,e-1,M))==null?void 0:S.Qk)||"";M===""&&this.G.B("sdai",{eds:1});S=T6k(this,k.ssdaiAdsConfig);Z=this.G.getVideoData();var a;K=((a=Z.U)==null?void 0:a.containerType)||0;a=Z.bd[K];e=k.Ub&&e>=k.Ub?k.Ub:void 0;return{jO:{J9:m?NE(this,m):[],Kr:S,Qk:M,Yi:e,tO:g.ap(a.split(";")[0]),ao:a.split(";")[1]|| +""}}}; +g.p.qn=function(m){a:{if(!this.SW){var e=FH(this,m);if(!(this.G.getVideoData().NO()&&(e==null?0:e.xv)))break a}e=void 0}var Z=e;if(!Z)return this.G.B("sdai",{gvprp:"ncp",mt:m}),null;e=Z.XP;var M=T6k(this,Z.ssdaiAdsConfig);m=Z.Ub&&Z.OL&&m>=Z.OL?Z.Ub:void 0;Z=this.G.getVideoData();var k,K=((k=Z.U)==null?void 0:k.containerType)||0;k=Z.bd[K];return{J9:e?NE(this,e):[],Kr:M,Yi:m,tO:g.ap(k.split(";")[0]),ao:k.split(";")[1]||""}}; +g.p.Xi=function(m,e,Z,M,k,K){var q=Number(Z.split(";")[0]);k=M===3;m=hn3(this,m,e,M,Z,K);this.wc&&this.G.B("sdai",{gdu:1,seg:e,itag:q,pb:""+!!m});if(!m)return cE(this,e,k),null;m.locations||(m.locations=new Map);if(!m.locations.has(q)){var S,a;K=(S=m.videoData.getPlayerResponse())==null?void 0:(a=S.streamingData)==null?void 0:a.adaptiveFormats;if(!K)return this.G.B("sdai",{gdu:"noadpfmts",seg:e,itag:q}),cE(this,e,k),null;S=K.find(function(h){return h.itag===q}); +if(!S||!S.url){var v=m.videoData.videoId;m=[];M=g.r(K);for(var X=M.next();!X.done;X=M.next())m.push(X.value.itag);this.G.B("sdai",{gdu:"nofmt",seg:e,vid:v,itag:q,fullitag:Z,itags:m.join(",")});cE(this,e,k);return null}m.locations.set(q,new g.IL(S.url,!0))}S=m.locations.get(q);if(!S)return this.G.B("sdai",{gdu:"nourl",seg:e,itag:q}),cE(this,e,k),null;S=new hJ(S);this.Te&&(S.get("dvc")?this.G.B("sdai",{dvc:S.get("dvc")||""}):S.set("dvc","webm"));var x;(a=(x=wO(this,e-1,M))==null?void 0:x.Qk)&&S.set("daistate", +a);m.Ub&&e>=m.Ub&&S.set("skipsq",""+m.Ub);(a=this.G.getVideoData().clientPlaybackNonce)&&S.set("cpn",a);x=[];m.XP&&(x=NE(this,m.XP),x.length>0&&S.set("acpns",x.join(",")));k||this.L.set(e,m);k=null;k=S.get("aids");var l;if((((X=k)==null?void 0:(l=X.split(","))==null?void 0:l.length)||0)!==x.length)if(m.XP){var R;this.G.B("sdai",{acpns_aids_nm:1,ids:n2R(this,m.XP).join("_"),acpns:x.join("_"),aids:(R=k)==null?void 0:R.replace(/,/g,"_"),cpn:a,trackType:M})}else this.G.B("sdai",{acpns_aids_nm:"noAdBreakId", +cpn:a});M=S.Ya();(M==null?void 0:M.length)>2048&&this.G.B("sdai",{urltoolong:1,sq:e,itag:q,len:M.length});this.wc&&(M&&(l=m.cpn,X=m.XP,N6R(this,l,X),X&&!this.JY.has(X)&&(l=wD7(this,l,X),R=cZI(this,X),this.G.B("sdai",{iofa:l}),this.G.B("sdai",{noawnzd:R-l}),this.G.B("sdai",{acpns:x.join("."),aids:(v=k)==null?void 0:v.replace(/,/g,".")}),this.JY.add(X))),this.G.B("sdai",{gdu:"v",seg:e,itag:Z,ast:m.fR.toFixed(3),alen:m.durationMs.toFixed(3),acpn:m.cpn,avid:m.videoData.videoId}));return M}; +g.p.iY=Zk(44);g.p.FA=function(){for(var m=g.r(this.N),e=m.next();!e.done;e=m.next())e=e.value,e.Ub=NaN,e.OL=NaN;g.$MK(this);this.G.B("sdai",{rsac:"resetSkipAd",sac:this.C});this.C=""}; +g.p.fI=Zk(48); +g.p.pH=function(m,e,Z,M,k,K,q,S,a){M.length>0&&this.G.B("sdai",{onssinfo:1,sq:m,start:e.toFixed(3),cpns:M.join(","),ds:k.join(","),isVideo:q?1:0});a&&(q?this.kG.set(m,{Qk:a,Fb:S}):this.b9.set(m,{Qk:a,Fb:S}));S=Mw(this.G.getVideoData())&&this.V.W("html5_process_all_cuepoints");if(q||S){if(M.length&&k.length)for(this.C&&this.C===M[0]&&this.G.B("sdai",{skipfail:1,sq:m,acpn:this.C}),m=e+this.R$(),q=0;q0&&(this.K0=0,this.UZ="",this.api.Pv("serverstitchedvideochange"));m=this.G;m.videoData.q8=!0;m.AY(new g.tw("qoe.restart",Z));Dn(m,!0);m.videoData.NO()&&m.W("html5_reload_caption_on_ssdai_fallback")&&m.OZ.Ah();return!0}; +g.p.TU=function(){this.G.B("sdai",{rstdaist:1});this.b9.clear();this.kG.clear();this.Qh.clear()}; +g.p.rW=Zk(31);g.p.bB=function(){return this.K0}; +g.p.hT=function(){return this.UZ}; +g.p.VR=function(m){var e=wH(this.api.QW());e=e?e.VR(m):!1;if(this.V.W("html5_ssdai_update_timeline_on_start_time_change"))if(e)this.K={Mb:m.identifier,NQ:m.startSecs};else if(this.K&&this.K.Mb===m.identifier&&m.startSecs>this.K.NQ+1){this.api.B("sdai",{cueStChg:m.identifier,oldSt:this.K.NQ.toFixed(3),newSt:m.startSecs.toFixed(3),abid:this.K.k_});if(this.K.k_){var Z=m.startSecs-this.K.NQ,M=this.Y.get(this.K.k_);if(M){M=g.r(M);for(var k=M.next();!k.done;k=M.next())k=k.value,k.fR>=0&&(k.fR+=Z*1E3)}}this.K.NQ= +m.startSecs}return e}; +g.p.u0=function(m){return this.SW?!1:!!FH(this,m)};g.T(rO,g.Y);g.p=rO.prototype; +g.p.addPlayerResponseForAssociation=function(m){var e=new W4(this.api.J(),m.playerVars);e.playerResponseCpn?e.clientPlaybackNonce=e.playerResponseCpn:this.api.B("ssap",{eim:this.G.getVideoData().clientPlaybackNonce});e.Og=!0;if(m=m.b1)e.b1=m,e.clientPlaybackNonce=m.cpn;m=e.clientPlaybackNonce;this.api.B("ssap",{aprfa:m+"_"+e.videoId});if(m){this.NV.set(m,e);var Z=h1(this.timeline,m),M=!1;if(Z==null?0:Z.length){Z=g.r(Z);for(var k=Z.next();!k.done;k=Z.next())k=k.value,e.qs=k.AJ(),cQ(e),k.videoData= +e,k.S&&(M=!0)}else M=!e.videoId;if(!M){if(!$$(this.G.lw(e.videoId))){var K;this.api.B("ssap",{nlc:m,nlcc:(K=this.timeline.X)==null?void 0:Tb(K)})}this.G.NW.W8(m,e,2)}}}; +g.p.ol=function(){this.bl=!0;this.api.W("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.UZ,gs(this),5)}; +g.p.UB=function(m){if(g.x$(m,128)){var e;m=(e=m.state.wG)==null?void 0:e.errorCode;this.finishSegmentByCpn(this.UZ,gs(this),7,m)}}; +g.p.finishSegmentByCpn=function(m,e,Z,M){if(this.UZ===e)return[];this.bl&&(Z=5,this.bl=!1);this.api.B("ssap",{fsbc:m+";"+e,fsbcr:Z,fsbct:this.api.getCurrentTime().toFixed(),fsbce:M!=null?M:""});if(this.api.W("html5_ssap_timeline_handle_error_and_abandon")&&(Z===5||Z===7))return o2s(this,m,e,Z),[];this.fu=e;var k=!1;if(this.HK.has(m)&&(k=rZK(this,Z),!k))return[m];var K=h1(this.timeline,e);if(K){K.sort(function(a,v){return a.AJ()-v.AJ()}); +var q=g.r(K);for(K=q.next();!K.done;K=q.next()){K=K.value;var S=this.G.getCurrentTime()*1E3;if(K.AJ()>=S){this.Ke.set(m,Z);fJ3(this,m,e);this.AS.set(m,(0,g.G)());if(Z=this.JT.get(e))for(Z=Z.getId().split(","),Z=g.r(Z),q=Z.next();!q.done;q=Z.next())q=q.value,q!==e&&this.HK.has(q)&&(this.HK.delete(q),this.Vd.add(q));f$(this);e=K.AJ()/1E3;K=void 0;Z=(K=g.Y4(this.api.J().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?K:0;this.api.W("html5_ssap_keep_media_on_finish_segment")?this.G.seekTo(e+Z/ +1E3,{qW:!0}):this.G.seekTo(e+Z/1E3);this.yd?(this.api.B("ssap",{gpfreload:this.UZ}),AZy(this)||(this.yd=!1),Dn(this.G,!1,!1,this.api.W("html5_ssap_keep_media_on_finish_segment"))):M&&Dn(this.G,!1,!1,this.api.W("html5_ssap_keep_media_on_finish_segment"));k&&this.api.playVideo(1,this.api.W("html5_ssap_keep_media_on_finish_segment"));return[m]}}}return[]}; +g.p.E4=function(){var m=this.timeline.X;if(!m)return 0;var e=m.YE();m=g.r(m.X.values());for(var Z=m.next();!Z.done;Z=m.next()){Z=g.r(Z.value);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M.YE()>e&&(e=M.YE())}return e/1E3}; +g.p.Rs=function(){var m=this.G.getCurrentTime()*1E3;var e=C$(this,m);if(!e){var Z=h1(this.timeline,this.UZ);if(Z){Z=g.r(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,M.AJ()>m&&(e=M)}}return e&&e.getType()===1?e.AJ()/1E3:0}; +g.p.getVideoData=function(m){if(m===2&&!this.Xe()){if(this.Oj&&this.NV.has(this.Oj))return this.NV.get(this.Oj);this.api.B("ssap",{lpanf:""+gs(this)});return null}return E23(this)}; +g.p.Xe=function(){var m=h1(this.timeline,this.UZ);return(m==null?0:m.length)?m[0].getType()===2:!1}; +g.p.V7=function(){var m=h1(this.timeline,this.UZ);return(m==null?0:m.length)?m[0].S:!1}; +g.p.seekTo=function(m,e){e=e===void 0?{}:e;var Z=dM1(this,this.G.getCurrentTime());this.G.seekTo(m+Z/1E3,e)}; +g.p.M1=function(m,e,Z){return new g.Ub(m,e,{id:Z,namespace:"ssap",priority:9})}; +g.p.onCueRangeEnter=function(m){if(!this.jY.has(m.getId())){this.api.B("ssap",{oce:1,cpn:m.getId(),st:m.start,et:m.end,ct:(this.G.getCurrentTime()||0).toFixed(3),cmt:(this.G.xe()||0).toFixed(3)});for(var e=m.getId().split(","),Z=0;ZZ+1)for(M=Z+1;Mthis.U;)(Z=this.data.shift())&&L$(this,Z,!0);HE(this)}; +g.p.remove=function(m,e){e=e===void 0?!1:e;var Z=this.data.find(function(M){return M.key===m}); +Z&&(L$(this,Z,e),gGc(this.data,function(M){return M.key===m}),HE(this))}; +g.p.WV=function(){var m;if(m=m===void 0?!1:m)for(var e=g.r(this.data),Z=e.next();!Z.done;Z=e.next())L$(this,Z.value,m);this.data=[];HE(this)}; +g.p.LB=function(){var m=this;g.Y.prototype.LB.call(this);this.data.forEach(function(e){L$(m,e,!0)}); +this.data=[]};g.T(sx,g.Y);sx.prototype.fP=function(m){if(m)return this.S.get(m)}; +sx.prototype.LB=function(){this.X.WV();this.S.WV();g.Y.prototype.LB.call(this)};g.T(g.yp,g.Nq);g.p=g.yp.prototype;g.p.Pn=function(){am(this.element,g.Hy.apply(0,arguments))}; +g.p.A7=function(){this.l7&&(this.l7.removeEventListener("focus",this.CH),g.XN(this.l7),this.l7=null)}; +g.p.TA=function(){this.MU();var m=this.app.J();m.HS||this.Pn("tag-pool-enabled");m.playerStyle==="gvn"&&(this.Pn("ytp-gvn"),this.element.style.backgroundColor="transparent");this.wb=QM("yt-dom-content-change",this.resize,this);this.ZG(window,"orientationchange",this.resize,this);this.ZG(window,"resize",this.resize,this)}; +g.p.xZ=function(m){g.mY(this.app.J());this.Vs=!m;j8(this)}; +g.p.resize=function(){if(this.l7){var m=this.Xf();if(!m.isEmpty()){var e=!Ng(m,this.gE.getSize());PRK(this);e&&(this.gE.width=m.width,this.gE.height=m.height);this.app.Fq.Pv("resize",this.getPlayerSize())}}}; +g.p.updateVideoData=function(m){if(this.l7){var e=this.app.J();g.bE&&(this.l7.setAttribute("x-webkit-airplay","allow"),m.title?this.l7.setAttribute("title",m.title):this.l7.removeAttribute("title"));this.l7.setAttribute("controlslist","nodownload");e.Dr&&m.videoId&&(this.l7.poster=m.zg("default.jpg"))}e=g.AF(m,"yt:bgcolor");this.EK.style.backgroundColor=e?e:"";this.kJ=ZN(g.AF(m,"yt:stretch"));this.nY=ZN(g.AF(m,"yt:crop"),!0);g.gU(this.element,"ytp-dni",m.hE);this.resize()}; +g.p.setGlobalCrop=function(m){this.Tn=ZN(m,!0);this.resize()}; +g.p.setCenterCrop=function(m){this.wB=m;this.resize()}; +g.p.t6=function(){}; +g.p.getPlayerSize=function(){var m=this.app.J(),e=this.app.Fq.isFullscreen(),Z=m.externalFullscreen&&On(m);if(e&&UC()&&!Z)return new g.cF(window.outerWidth,window.outerHeight);Z=!isNaN(this.Xg.width)&&!isNaN(this.Xg.height);var M=this.app.J().W("kevlar_player_enable_squeezeback_fullscreen_sizing");if(e&&!Z&&M)return new g.cF(this.element.clientWidth,this.element.clientHeight);if(e||m.pV){if(window.matchMedia){m="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.lh&&this.lh.media=== +m||(this.lh=window.matchMedia(m));var k=this.lh&&this.lh.matches}if(k)return new g.cF(window.innerWidth,window.innerHeight)}else if(Z)return this.Xg.clone();return new g.cF(this.element.clientWidth,this.element.clientHeight)}; +g.p.Xf=function(){var m=this.app.J().W("enable_desktop_player_underlay"),e=this.getPlayerSize(),Z=g.Y4(this.app.J().experiments,"player_underlay_min_player_width");return m&&this.P3&&e.width>Z?(m=g.Y4(this.app.J().experiments,"player_underlay_video_width_fraction"),new g.cF(Math.min(e.height*this.getVideoAspectRatio(),e.width*m),Math.min(e.height,e.width*m/this.getVideoAspectRatio()))):e}; +g.p.getVideoAspectRatio=function(){return isNaN(this.kJ)?WFI(this):this.kJ}; +g.p.getVideoContentRect=function(m){var e=this.Xf();m=zn1(this,e,this.getVideoAspectRatio(),m);return new g.oa((e.width-m.width)/2,(e.height-m.height)/2,m.width,m.height)}; +g.p.QD=Zk(41);g.p.U3=Zk(39);g.p.onMutedAutoplayChange=function(){j8(this)}; +g.p.setInternalSize=function(m){Ng(this.Xg,m)||(this.Xg=m,this.resize())}; +g.p.LB=function(){this.wb&&Hx(this.wb);this.A7();g.Nq.prototype.LB.call(this)};g.p=mot.prototype;g.p.click=function(m,e){this.elements.has(m);this.X.has(m);var Z=g.ru();Z&&m.visualElement&&EL(xfI)(void 0,Z,m.visualElement,e,void 0)}; +g.p.createClientVe=function(m,e,Z,M){var k=this;M=M===void 0?!1:M;this.elements.has(m);this.elements.add(m);Z=Jvy(Z);m.visualElement=Z;var K=g.ru(),q=ch();K&&q&&(g.SC("combine_ve_grafts")?FB(g.$4(),Z,q):EL(MK)(void 0,K,q,Z));e.addOnDisposeCallback(function(){k.elements.has(m)&&k.destroyVe(m)}); +M&&this.S.add(m)}; +g.p.createServerVe=function(m,e,Z){var M=this;Z=Z===void 0?!1:Z;this.elements.has(m);this.elements.add(m);e.addOnDisposeCallback(function(){M.destroyVe(m)}); +Z&&this.S.add(m)}; +g.p.destroyVe=function(m){this.elements.has(m);this.elements.delete(m);this.U.delete(m);this.X.delete(m);this.S.delete(m)}; +g.p.dB=function(m,e){this.clientPlaybackNonce!==e&&(this.clientPlaybackNonce=e,mYR(g.$4(),m),eSs(this))}; +g.p.setTrackingParams=function(m,e){this.elements.has(m);e&&(m.visualElement=$N(e))}; +g.p.kC=function(m,e,Z){this.elements.has(m);e?this.X.add(m):this.X.delete(m);var M=g.ru(),k=m.visualElement;this.S.has(m)?M&&k&&(e?uNK(M,[k]):R3K(M,[k])):e&&!this.U.has(m)&&(M&&k&&X5(M,k,void 0,Z),this.U.add(m))}; +g.p.hasVe=function(m){return this.elements.has(m)};g.T(g.mT,g.Y);g.mT.create=function(m,e,Z,M){try{var k=typeof m==="string"?m:"player"+g.kw(m),K=v5[k];if(K){try{K.dispose()}catch(S){g.DA(S)}v5[k]=null}var q=new g.mT(m,e,Z,M);q.addOnDisposeCallback(function(){v5[k]=null;q.Bk&&q.Bk()}); +return v5[k]=q}catch(S){throw g.DA(S),(S&&S instanceof Error?S:Error(String(S))).stack;}}; +g.p=g.mT.prototype;g.p.M9=function(){return this.visibility}; +g.p.R_=function(){this.Z8||(this.Z8=t$(g.TM(),kqm()));return this.Z8}; +g.p.A7=function(m){if(this.mediaElement){this.Ug&&(this.events.gy(this.Ug),this.Ug=null);g.m2(this.E3);this.aO&&this.aO.A7(!0,!1,m);this.template.A7();try{this.W("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.dJ()}catch(e){g.LD(e)}this.mediaElement=null}}; +g.p.Jf=function(){return this.aO}; +g.p.TH=function(){var m=this;this.aO!==this.DG&&(this.logger.debug(function(){var e,Z;return"release presenting player, type "+((e=m.aO)==null?void 0:e.getPlayerType())+", vid "+((Z=m.aO)==null?void 0:Z.getVideoData().videoId)}),K$(this,this.DG))}; +g.p.Ho=function(m,e,Z){var M=this,k=this.hf;m===2&&(k=new aF(this.V));m=new g.qD(this.V,m,k,this.template,function(K,q,S){M.Fq.Pv(K,q,S)},function(){return M.Fq.getVisibilityState()},this.visibility,this,e,Z); +tZm(e.getPlayerResponse())&&this.W("html5_ssap_pacf_qoe_ctmp")&&this.o9();return m}; +g.p.oM=function(){if(!Ss(this)){this.logger.debug("application playback ready");if(this.W("html5_enable_ssap_autoplay_debug_logging")){var m;(m=this.DG)==null||m.B("ssap",{onpbrdy:1})}this.Rw(5)}}; +g.p.o9=function(){var m;(m=this.DG)==null||m.B("ssap",{rpa:1})}; +g.p.XU=function(m){if(!Ss(this)){this.logger.debug("playback ready");oDK(this);var e=m.getPlayerState();m.NS()?this.pauseVideo():e.isOrWillBePlaying()&&this.playVideo()}}; +g.p.canPlayType=function(m){return mg(m)}; +g.p.J=function(){return this.V}; +g.p.getVideoData=function(){nb(this,"gvd");return this.aO.getVideoData()}; +g.p.I1=Zk(5);g.p.getVideoLoadedFraction=function(m){m=g.qq(this,m);return m?g.LI(m.getVideoData())?1:(m=m.fJ())?m.oC():0:0}; +g.p.YA=function(){return this.template}; +g.p.QW=function(){return this.sJ}; +g.p.jB=function(){return this.hf}; +g.p.DX=Zk(7);g.p.Qo=function(){var m=this.sJ.Qo();this.Fq.Pv("videoStatsPingCreated",m);return m}; +g.p.getVolume=function(){return Math.round(this.Fq.getVolume())}; +g.p.isMuted=function(){return this.Fq.isMuted()}; +g.p.Y2=function(){if(this.aO===this.DG&&this.hY)return this.hY.postId}; +g.p.ek=function(){var m=this;this.W("use_rta_for_player")||(g.Km(this.V)?g.Tk(this.V,g.bJ(this.getVideoData())).then(function(e){g.$6(g.TM(),e);CNP(m.getVideoData(),m.V,m.R_())}):CNP(this.getVideoData(),this.V,this.R_()))}; +g.p.X4=function(m){this.Fq.Pv("poTokenVideoBindingChange",m)}; +g.p.KI=function(m){this.Fq.Pv("d6de4videobindingchange",m)}; +g.p.ew=function(){this.Qy&&this.Qy.ew()}; +g.p.H3=function(m){this.Qy=m}; +g.p.d8=Zk(11);g.p.setLoopVideo=function(m){this.aO===this.DG&&this.aO.DU()!==m&&(this.aO.setLoop(m),this.Fq.jr("onLoopChange",m))}; +g.p.getLoopVideo=function(){return this.aO.DU()}; +g.p.setLoopRange=function(m){var e=!1;!!this.hY!==!!m?e=!0:this.hY&&m&&(e=this.hY.startTimeMs!==m.startTimeMs||this.hY.endTimeMs!==m.endTimeMs||this.hY.postId!==m.postId||this.hY.type!==m.type);if(e){if(this.aO&&uJ(this.getVideoData())){e=(m==null?void 0:m.endTimeMs)||-1;var Z;(Z=g.qq(this))==null||Z.B("slr",{et:e})}this.DG.bP.Q_("applooprange");if(m)Z=new g.Ub(m.startTimeMs,m.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.DG.addCueRange(Z);else{pi(this).clipConfig=void 0;var M,k;((M=this.hY)== +null?void 0:M.type)!=="repeatChapter"||isNaN(Number((k=this.hY)==null?void 0:k.loopCount))||(Z={loopCount:String(this.hY.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.D2("repeatChapterLoopEvent",Z))}this.hY=m;this.Fq.jr("onLoopRangeChange",m||void 0);this.aO===this.DG&&(this.kZ(),this.aO.dW())}}; +g.p.getLoopRange=function(){return this.hY}; +g.p.kZ=function(){var m="";this.hY?this.aO!==this.DG?m="pnea":$o1(this,this.DG.getCurrentTime())&&(this.hY.loopCount=0,m="ilr"):m="nlr";if(this.aO&&uJ(this.getVideoData()))if(this.W("html5_gapless_log_loop_range_info")){var e,Z,M;(M=g.qq(this))==null||M.B("slrre",{rej:m,ct:this.DG.getCurrentTime(),lst:(e=this.hY)==null?void 0:e.startTimeMs,let:(Z=this.hY)==null?void 0:Z.endTimeMs})}else{var k;(k=g.qq(this))==null||k.B("slrre",{})}m||wdk(this)}; +g.p.setPlaybackRate=function(m,e){isNaN(m)||(m=q_G(this,m),this.DG.getPlaybackRate()!==m&&(this.DG.setPlaybackRate(m),e&&!this.V.Z&&g.kE("yt-player-playback-rate",m),this.Fq.ke("onPlaybackRateChange",m)))}; +g.p.getCurrentTime=function(m,e,Z){e=e===void 0?!0:e;if(this.getPresentingPlayerType()===3)return x6(this.sJ).getCurrentTime();var M=m===2&&this.getVideoData().enableServerStitchedDai,k=g.gA(this.getVideoData());nb(this,"gct");m=M||k?g.qq(this):g.qq(this,m);if(!m)return 0;if(k&&this.u9)return e=this.u9,m=m.getCurrentTime(),Z?Z=oi(e,Z):(Z=dM1(e,m),Z=m-Z/1E3),Z;if(e){if(M&&this.MP&&(Z=this.MP.nB/1E3,Z!==0))return Z;Z=pb(this,m);return Fl(this,Z.getCurrentTime(),Z)}M&&this.MP?(Z=this.MP,m=m.getCurrentTime(), +Z=(Z=lJG(Z,m*1E3))?m-Z.start/1E3:m):Z=m.getCurrentTime();return Z}; +g.p.AV=function(){var m=g.qq(this);if(!m)return 0;m=pb(this,m);return Fl(this,m.AV(),m)}; +g.p.getDuration=function(m,e){e=e===void 0?!0:e;var Z=this.getVideoData(),M=m===2&&Z.enableServerStitchedDai,k=g.gA(Z);var K=M||k?g.qq(this):g.qq(this,m);if(!K)return 0;if(Z.hasProgressBarBoundaries()&&!M&&!k){var q,S=Number((q=Z.progressBarStartPosition)==null?void 0:q.utcTimeMillis),a;Z=Number((a=Z.progressBarEndPosition)==null?void 0:a.utcTimeMillis);if(!isNaN(S)&&!isNaN(Z))return(Z-S)/1E3}nb(this,"agd");if(k&&this.u9)return e=B6K(this.u9,this.u9.hT()),m===1&&e===0?K.getDuration():e;if(e)return K= +g.q$(this,K),Fl(this,K.getDuration(),K);M&&this.MP?(m=this.MP,K=K.getCurrentTime(),K=(K=u2y(m,K*1E3))?K.durationMs/1E3:0):K=K.getDuration();return K}; +g.p.Zx=function(m){var e=g.qq(this,m);return e?this.Ex(e)?(e=g.q$(this,e),e.Zx()-e.getCurrentTime()+this.getCurrentTime(m)):e.Zx():0}; +g.p.yZ=function(){return this.WX}; +g.p.addPlayerResponseForAssociation=function(m){this.u9&&this.u9.addPlayerResponseForAssociation(m)}; +g.p.finishSegmentByCpn=function(m,e,Z){nb(this,"afsc");return this.u9?this.u9.finishSegmentByCpn(m,e,Z):[]}; +g.p.TA=function(){this.template.TA();var m=this.Fq;m.state.element=this.template.element;var e=m.state.element,Z;for(Z in m.state.S)m.state.S.hasOwnProperty(Z)&&(e[Z]=m.state.S[Z]);(m=RNK(this.template.element))&&this.events.ZG(this.template,m,this.onFullscreenChange);this.events.ZG(window,"resize",this.WR)}; +g.p.getDebugText=function(m){var e=this.DG.pR(m);if(this.aO&&this.aO!==this.DG){for(var Z=this.aO.pR(m),M=g.r(Object.keys(Z)),k=M.next();!k.done;k=M.next())k=k.value,e["ad"+k]=Z[k];if(m){Z=e;M={};if(k=g.PF(document,"movie_player"))M.bounds=k.getBoundingClientRect(),M["class"]=k.className;k={};var K=g.eU("video-ads");K?(Y_c(K,k),k.html=K.outerHTML):k.missing=1;K={};var q=g.eU("videoAdUiSkipContainer"),S=g.eU("ytp-ad-skip-button-container"),a=g.eU("ytp-skip-ad-button"),v=q||S||a;v?(Y_c(v,K),K.ima=q? +1:0,K.bulleit=S?1:0,K.component=a?1:0):K.missing=1;M=JSON.stringify({player:M,videoAds:k,skipButton:K});Z.ad_skipBtnDbgInfo=M}}m&&this.mediaElement&&(e["0sz"]=""+(+rk(this.mediaElement.getSize())===0),e.op=this.mediaElement.bj("opacity"),Z=this.mediaElement.uC().y+this.mediaElement.getSize().height,e.yof=""+(+Z<=0),e.dis=this.mediaElement.bj("display"));m&&((m=Je())&&(e.gpu=m),(m=this.V.playerStyle)&&(e.ps=m),this.V.BS&&(e.webview=1));e.debug_playbackQuality=this.Fq.getPlaybackQuality(1);e.debug_date= +(new Date).toString();e.origin=window.origin;e.timestamp=Date.now();delete e.uga;delete e.q;return JSON.stringify(e,null,2)}; +g.p.getFeedbackProductData=function(){var m={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.J().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20241209_00_RC00"},e=this.getPlayerStateObject().wG;e&&(m.player_error_code=e.errorCode,m.player_error_details=JSON.stringify(e.errorDetail));return m}; +g.p.getPresentingPlayerType=function(m){nb(this,"gppt");if(this.appState===1)return 1;if(Ss(this))return 3;var e;if(m&&((e=this.MP)==null?0:e.Xe(this.getCurrentTime())))return 2;var Z;return g.gA(this.getVideoData())&&((Z=this.u9)==null?0:Z.Xe())?2:g.qq(this).getPlayerType()}; +g.p.V7=function(){nb(this,"invp");return g.gA(this.getVideoData())&&this.u9?this.u9.V7():!1}; +g.p.getPlayerStateObject=function(m){return this.getPresentingPlayerType()===3?x6(this.sJ).qq():g.qq(this,m).getPlayerState()}; +g.p.getAppState=function(){return this.appState}; +g.p.Tl=function(m){switch(m.type){case "loadedmetadata":this.qk.start();m=g.r(this.yY);for(var e=m.next();!e.done;e=m.next())e=e.value,AJb(this,e.id,e.Zl,e.A2,void 0,!1);this.yY=[];break;case "loadstart":this.hf.Uk("gv");break;case "progress":case "timeupdate":vJ(m.target.kE())>=2&&this.hf.Uk("l2s");break;case "playing":g.WE&&this.qk.start();if(g.Km(this.V))m=!1;else{e=Ig(this.QW());m=this.mediaElement.bj("display")==="none"||rk(this.mediaElement.getSize())===0;var Z=Ox(this.template),M=this.aO.getVideoData(), +k=g.zx(this.V);M=Rf(M);e=!Z||e||k||M||this.V.Qh;m=m&&!e}m&&(this.aO.B("hidden",{},!0),this.getVideoData().wr||(this.getVideoData().wr=1,this.nK(),this.aO.playVideo()))}}; +g.p.onLoadProgress=function(m,e){this.Fq.Ns("onLoadProgress",e)}; +g.p.BR=function(){this.Fq.Pv("playbackstalledatstart")}; +g.p.FU=function(){this.Fq.Pv("sabrCaptionsDataLoaded")}; +g.p.onVideoProgress=function(m,e){m=pb(this,m);e=Fl(this,m.getCurrentTime(),m);this.Fq.ke("onVideoProgress",e)}; +g.p.onAutoplayBlocked=function(){this.Fq.ke("onAutoplayBlocked");var m,e=(m=g.qq(this))==null?void 0:m.getVideoData();e&&(e.wd=!0)}; +g.p.A8=function(){this.Fq.Pv("progresssync")}; +g.p.YV=function(){this.Fq.Ns("onPlaybackPauseAtStart")}; +g.p.dU=function(m){if(this.getPresentingPlayerType()===1){g.x$(m,1)&&!g.y(m.state,64)&&pi(this).isLivePlayback&&this.DG.isAtLiveHead()&&this.Fq.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.x$(m,2)){if(this.hY&&this.hY.endTimeMs>=(this.getDuration()-1)*1E3){wdk(this);return}lLK(this)}if(g.y(m.state,128)){var e=m.state;this.cancelPlayback(5);e=e.wG;JSON.stringify({errorData:e,debugInfo:this.getDebugText(!0)});this.Fq.ke("onError",tCK(e.errorCode));this.Fq.Ns("onDetailedError",{errorCode:e.errorCode, +errorDetail:e.errorDetail,message:e.errorMessage,messageKey:e.Yh,cpn:e.cpn});(0,g.G)()-this.V.wr>6048E5&&this.Fq.Ns("onReloadRequired")}e={};if(m.state.isPlaying()&&!m.state.isBuffering()&&!g.Th("pbresume","ad_to_video")&&g.Th("_start","ad_to_video")){var Z=this.getVideoData();e.clientPlaybackNonce=Z.clientPlaybackNonce;Z.videoId&&(e.videoId=Z.videoId);g.uj(e,"ad_to_video");g.lj("pbresume",void 0,"ad_to_video");g.rZ(this.sJ)}this.Fq.Pv("applicationplayerstatechange",m)}}; +g.p.KK=function(m){this.getPresentingPlayerType()!==3&&this.Fq.Pv("presentingplayerstatechange",m)}; +g.p.UB=function(m){k8(this,B0(m.state));g.y(m.state,1024)&&this.Fq.isMutedByMutedAutoplay()&&(ua(this,{muted:!1,volume:this.lR.volume},!1),RC(this,!1))}; +g.p.il=function(m,e,Z){m==="newdata"&&PE(this);this.Fq.Pv("applicationvideodatachange",m,Z)}; +g.p.Ou=function(m,e){this.Fq.Ns("onPlaybackAudioChange",this.Fq.getAudioTrack().MB.name);this.Fq.Pv("internalaudioformatchange",this.Fq.getAudioTrack().MB.id,e)}; +g.p.Pf=function(m){var e=this.aO.getVideoData();m===e&&this.Fq.ke("onPlaybackQualityChange",m.U.video.quality)}; +g.p.o4=function(){var m=this.iU[2];if(m){var e=m.getVideoData();m=m.i$;var Z;(Z=g.qq(this))==null||Z.B("ssdai",{cleanaply:1,acpn:e==null?void 0:e.clientPlaybackNonce,avid:e.videoId,ccpn:m,sccpn:pi(this).clientPlaybackNonce===m?1:0,isDai:pi(this).enableServerStitchedDai?1:0});delete this.iU[2]}}; +g.p.onVideoDataChange=function(m,e,Z){this.logger.debug(function(){return"on video data change "+m+", player type "+e.getPlayerType()+", vid "+Z.videoId}); +this.V.Af()&&e.B("vdc",{type:m,vid:Z.videoId||"",cpn:Z.clientPlaybackNonce||""});e===this.DG&&(this.V.NP=Z.oauthToken);if(e===this.DG){this.getVideoData().enableServerStitchedDai&&!this.MP?this.MP=new g.gO(this.Fq,this.V,this.DG):!this.getVideoData().enableServerStitchedDai&&this.MP&&(this.MP.dispose(),this.MP=null);if(this.V.Af()&&g.gA(Z)){var M,k;e.B("ssap",{vdctype:m,vid:Z.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((M=this.WX.X)==null?void 0:(k=M.getVideoData())==null?void 0: +k.clientPlaybackNonce)||""})}var K,q;!g.gA(this.getVideoData())||m!=="newdata"&&m!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((K=this.WX.X)==null?void 0:(q=K.getVideoData())==null?void 0:q.clientPlaybackNonce)?!g.gA(this.getVideoData())&&this.u9&&(this.V.Af()&&e.B("ssap",{tlmdis:2,vid:Z.videoId||"",cpn:Z.clientPlaybackNonce||""}),this.u9.dispose(),this.u9=null):(v2t(this.WX),this.W("html5_ssap_cleanup_ad_player_on_new_data")&&this.o4(),M=$9(this.WX,1,0,this.getDuration(1)*1E3,this.getVideoData()), +aJR(this.WX,M),FU(this.WX,0,this.getDuration(1)*1E3,[M]),ubb(this.WX,this.getVideoData().clientPlaybackNonce,[M]),this.u9&&(this.u9.dispose(),this.u9=null,this.V.Af()&&e.B("ssap",{tlmdis:1})),this.V.Af()&&e.B("ssap",{tlmcreate:1}),this.u9=new rO(this.Fq,this.WX,this.DG),this.DG.aH(this.u9))}if(m==="newdata")this.logger.debug("new video data, destroy modules"),A0(this.sJ,2),this.Fq.Pv("videoplayerreset",e);else{if(!this.mediaElement)return;m==="dataloaded"&&(this.aO===this.DG?(kI(Z.Xq,Z.QU),hSk(this)): +RSt(this));e.getPlayerType()===1&&(this.V.KB&&EDs(this),this.getVideoData().isLivePlayback&&!this.V.NZ&&this.XJ("html5.unsupportedlive",2,"DEVICE_FALLBACK"),Z.isLoaded()&&((mC7(Z)||this.getVideoData().S1)&&this.Fq.Pv("legacyadtrackingpingchange",this.getVideoData()),Z.hasProgressBarBoundaries()&&cJy(this)));this.Fq.Pv("videodatachange",m,Z,e.getPlayerType())}this.Fq.ke("onVideoDataChange",{type:m,playertype:e.getPlayerType()});this.kZ();(M=Z.b3)?this.Vo.dB(M,Z.clientPlaybackNonce):eSs(this.Vo)}; +g.p.Ui=function(m){delete this.yw[m.getId()];this.DG.removeCueRange(m);a:{m=this.getVideoData();var e,Z,M,k,K,q,S,a,v,X,x=((e=m.Qh)==null?void 0:(Z=e.contents)==null?void 0:(M=Z.singleColumnWatchNextResults)==null?void 0:(k=M.autoplay)==null?void 0:(K=k.autoplay)==null?void 0:K.sets)||((q=m.Qh)==null?void 0:(S=q.contents)==null?void 0:(a=S.twoColumnWatchNextResults)==null?void 0:(v=a.autoplay)==null?void 0:(X=v.autoplay)==null?void 0:X.sets);if(x)for(e=g.r(x),Z=e.next();!Z.done;Z=e.next())if(Z=Z.value, +k=M=void 0,Z=Z.autoplayVideo||((M=Z.autoplayVideoRenderer)==null?void 0:(k=M.autoplayEndpointRenderer)==null?void 0:k.endpoint),M=g.t(Z,g.iJ),K=k=void 0,Z!=null&&((k=M)==null?void 0:k.videoId)===m.videoId&&((K=M)==null?0:K.continuePlayback)){m=Z;break a}m=null}(e=g.t(m,g.iJ))&&this.Fq.jr("onPlayVideo",{sessionData:{autonav:"1",itct:m==null?void 0:m.clickTrackingParams},videoId:e.videoId,watchEndpoint:e})}; +g.p.Rw=function(m){var e=this;m!==this.appState&&(this.logger.debug(function(){return"app state change "+e.appState+" -> "+m}),m===2&&this.getPresentingPlayerType()===1&&(k8(this,-1),k8(this,5)),this.appState=m,this.Fq.Pv("appstatechange",m))}; +g.p.XJ=function(m,e,Z,M,k){this.DG.aE(m,e,Z,M,k)}; +g.p.eP=Zk(9);g.p.isAtLiveHead=function(m,e){e=e===void 0?!1:e;var Z=g.qq(this,m);if(!Z)return!1;m=g.q$(this,Z);Z=pb(this,Z);return m!==Z?m.isAtLiveHead(Fl(this,Z.getCurrentTime(),Z),!0):m.isAtLiveHead(void 0,e)}; +g.p.lU=Zk(33);g.p.seekTo=function(m,e,Z,M,k){e=e!==!1;if(M=g.qq(this,M))this.appState===2&&x8(this),nb(this,"seekTo"),this.Ex(M)?wp(this)?this.MP.seekTo(m,{seekSource:k},e,Z):this.rV.seekTo(m,{seekSource:k},e,Z):g.gA(this.getVideoData())&&this.u9?this.u9.seekTo(m,{Rq:!e,CD:Z,DN:"application",seekSource:k}):M.seekTo(m,{Rq:!e,CD:Z,DN:"application",seekSource:k})}; +g.p.seekBy=function(m,e,Z,M){this.seekTo(this.getCurrentTime()+m,e,Z,M)}; +g.p.rJ=function(){this.Fq.ke("SEEK_COMPLETE")}; +g.p.OP=function(){this.Fq.jr("onAbnormalityDetected")}; +g.p.onSnackbarMessage=function(m){this.Fq.jr("onSnackbarMessage",m)}; +g.p.e$=function(m,e){var Z=m.getVideoData();if(this.appState===1||this.appState===2)Z.startSeconds=e;this.appState===2?g.y(m.getPlayerState(),512)||x8(this):this.Fq.ke("SEEK_TO",e)}; +g.p.onAirPlayActiveChange=function(){this.Fq.Pv("airplayactivechange");this.V.W("html5_external_airplay_events")&&this.Fq.Ns("onAirPlayActiveChange",this.Fq.hD())}; +g.p.onAirPlayAvailabilityChange=function(){this.Fq.Pv("airplayavailabilitychange");this.V.W("html5_external_airplay_events")&&this.Fq.Ns("onAirPlayAvailabilityChange",this.Fq.qS())}; +g.p.showAirplayPicker=function(){var m;(m=this.aO)==null||m.Rf()}; +g.p.YJ=function(){this.Fq.Pv("beginseeking")}; +g.p.LH=function(){this.Fq.Pv("endseeking")}; +g.p.getStoryboardFormat=function(m){return(m=g.qq(this,m))?g.q$(this,m).getVideoData().getStoryboardFormat():null}; +g.p.zW=function(m){return(m=g.qq(this,m))?g.q$(this,m).getVideoData().zW():null}; +g.p.Ex=function(m){m=m||this.aO;var e=!1;if(m){m=m.getVideoData();if(wp(this))m=m===this.MP.G.getVideoData();else a:if(e=this.rV,m===e.X.getVideoData()&&e.S.length)m=!0;else{e=g.r(e.S);for(var Z=e.next();!Z.done;Z=e.next())if(m.IE===Z.value.IE){m=!0;break a}m=!1}e=m}return e}; +g.p.rW=Zk(30);g.p.enqueueVideoByPlayerVars=function(m,e,Z,M){Z=Z===void 0?Infinity:Z;M=M===void 0?"":M;this.Ex();m=new W4(this.V,m);M&&(m.IE=M);N$(this,m,e,Z)}; +g.p.queueNextVideo=function(m,e,Z,M,k){Z=Z===void 0?NaN:Z;m=this.preloadVideoByPlayerVars(m,e===void 0?1:e,Z,M===void 0?"":M,k===void 0?"":k);e=this.Jf();m&&e&&(this.W("html5_check_queue_on_data_loaded")?this.J().supportsGaplessShorts()&&e.getVideoData().N&&(Z=this.CL,M=this.Nm.j,Z.U!==m&&(Z.aO=e,Z.U=m,Z.S=1,Z.X=m.getVideoData(),Z.Z=M,Z.X.isLoaded()?Z.L():Z.X.subscribe("dataloaded",Z.L,Z))):(Z=szI(e,m,this.Nm.j),Z!=null?(e.B("sgap",Z),e.getVideoData().N&&Ib(e,!1)):(m=m.getVideoData(),e=this.CL,e.X!== +m&&(e.X=m,e.S=1,m.isLoaded()?e.C():e.X.subscribe("dataloaded",e.C,e)))))}; +g.p.VJ=function(m,e,Z,M){var k=this;Z=Z===void 0?0:Z;M=M===void 0?0:M;var K=g.qq(this);K&&(g.q$(this,K).Hk=!0);mMb(this.Nm,m,e,Z,M).then(function(){k.Fq.Ns("onQueuedVideoLoaded")},function(){})}; +g.p.SO=function(){return this.Nm.SO()}; +g.p.Jm=function(m){return this.Nm.Jm(m)}; +g.p.clearQueue=function(m,e){m=m===void 0?!1:m;e=e===void 0?!1:e;this.logger.debug("Clearing queue");this.Nm.clearQueue(m,e)}; +g.p.loadVideoByPlayerVars=function(m,e,Z,M,k,K){e=e===void 0?1:e;if(e===2&&pi(this).enableServerStitchedDai&&this.DG&&!IQ(this.DG)){var q;(q=this.DG)==null||q.B("lvonss",{vid:(m==null?void 0:m.videoId)||"",ptype:e});return!1}var S=!1;q=new W4(this.V,m);q.reloadPlaybackParams=K;R_(this.V)&&!q.uP&&VeR(this.hf);var a;K=this.hf;var v=(a=q.sE)!=null?a:"";K.timerName=v;this.hf.TO("pl_i");this.W("web_player_early_cpn")&&q.clientPlaybackNonce&&this.hf.infoGel({clientPlaybackNonce:q.clientPlaybackNonce}); +if(!Nhk(q).supportsVp9Encoding){var X;(X=g.qq(this))==null||X.B("noVp9",{})}if(this.J().supportsGaplessShorts()){a=ZyI(this.Nm,q,e);if(a==null){k8(this,-1);m=this.Nm;m.app.J().W("html5_gapless_new_slr")?$8(m.app,"gaplessshortslooprange"):m.app.setLoopRange(null);m.app.getVideoData().Ve=!0;var x,l;(x=m.X)==null||(l=x.D)==null||l.resume();var R;(R=m.X)==null||Ff(R.lw());Z={DN:"gapless_to_next_video",seekSource:60};var h;(h=m.app.Jf())==null||h.seekTo(enb(m),Z);if(!m.app.getPlayerStateObject(e).isPlaying()){var w; +(w=g.qq(m.app))==null||w.playVideo(!0)}m.C();return!0}h=this.W("html5_shorts_gapless_preload_fallback");w=this.Nm.X;h&&w&&!w.MU()&&(x=w.getVideoData(),x=this.V.W("html5_autonav_autoplay_in_preload_key")?rp(this,e,x):IC(this,e,x.videoId,x.IE),this.Bt.set(x,w,3600));this.Nm.clearQueue(h);var N;(N=g.qq(this))==null||N.B("sgap",{f:a})}if(k){for(;q.UU.length&&q.UU[0].isExpired();)q.UU.shift();S=q.UU.length-1;S=S>0&&k.S(q.UU[S])&&k.S(q.UU[S-1]);q.UU.push(k)}Z||(m&&SK(m)?(gY(this.V)&&!this.uR&&(m.fetch= +0),gp(this,m)):this.playlist&&gp(this,null),m&&(this.uR=zy(!1,m.external_list)));this.Fq.Pv("loadvideo");e=this.Cy(q,e,M);S&&this.XJ("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+q.UU.join()).replace(/[;:,]/g,"_"));return e}; +g.p.preloadVideoByPlayerVars=function(m,e,Z,M,k){e=e===void 0?1:e;Z=Z===void 0?NaN:Z;M=M===void 0?"":M;k=k===void 0?"":k;var K="";if(this.V.W("html5_autonav_autoplay_in_preload_key"))K=rJK(this,e,m,k);else{var q=rn(m);K=IC(this,e,q,k)}if(this.Bt.get(K))return this.logger.debug(function(){return"already preloaded "+K}),null; +m=new W4(this.V,m);k&&(m.IE=k);return Nqt(this,m,e,Z,M)}; +g.p.setMinimized=function(m){this.visibility.setMinimized(m);m=this.sJ;m=m.hR.J().showMiniplayerUiWhenMinimized?m.i7.get("miniplayer"):void 0;m&&(this.ya()?m.load():m.unload());this.Fq.Pv("minimized")}; +g.p.setInline=function(m){this.visibility.setInline(m)}; +g.p.setInlinePreview=function(m){this.visibility.setInline(m);m=this.sJ;m=m.hR.J().showInlinePreviewUi?m.i7.get("inline_preview"):void 0;m&&(this.isInline()?m.load():m.unload(),this.Fq.jr("onInlinePreviewModeChange"))}; +g.p.Hf=function(m){var e=this.V.W("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",Z=this.V.YH&&this.V.W("html5_block_pip_with_events")||e;m&&Z&&this.getVideoData()&&!this.getVideoData().backgroundable?this.g0&&e?this.g0.start():this.IK():this.visibility.Hf(m)}; +g.p.setSqueezeback=function(m){this.visibility.setSqueezeback(m)}; +g.p.IK=function(){var m,e=(m=this.mediaElement)==null?void 0:m.W_();e&&Hl(e).catch(function(Z){return g.LD(Z)})}; +g.p.wi=function(){this.mediaElement.W_();this.mediaElement.W_().webkitPresentationMode==="picture-in-picture"?this.Hf(!0):this.Hf(!1)}; +g.p.togglePictureInPicture=function(){var m=g.qq(this);m&&m.togglePictureInPicture()}; +g.p.Cy=function(m,e,Z){e=e===void 0?1:e;this.logger.debug(function(){return"start load video, id "+m.videoId+", type "+e}); +g.Th("_start",this.hf.timerName)||EL(mW)(void 0,this.hf.timerName);var M=!1,k=hT(this,e,m,!1);k?(M=!0,m.dispose()):(k=Kb(this,e,m,Z),(this.W("html5_onesie")||this.W("html5_load_before_stop"))&&vK(k)&&g0(k),this.qk.stop(),e===1&&e!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,e),K$(this,k));k===this.DG&&(this.V.NP=m.oauthToken);if(!vK(k))return!1;if(k===this.DG){this.Rw(1);Z=x8(this);if(M&&this.W("html5_player_preload_ad_fix")&&k.getPlayerType()===1&&k.kY.finished)this.onVideoDataChange("dataloaded", +k,k.getVideoData());return Z}Tw(k);return!0}; +g.p.cueVideoByPlayerVars=function(m,e){var Z=this;e=e===void 0?1:e;if(pi(this).enableServerStitchedDai&&this.DG&&!IQ(this.DG)&&m&&Object.keys(m).length>0){var M;(M=this.DG)==null||M.B("qvonss",{vid:(m==null?void 0:m.videoId)||"",ptype:e})}else if(m&&SK(m))if(this.hx=!0,gp(this,m),(m=ag(this.playlist))&&m.J5())Cb(this,m,e);else this.playlist.onReady(function(){ia(Z)}); +else{e||(e=this.getPresentingPlayerType());e===1&&(gp(this,null),this.Fq.Ns("onPlaylistUpdate"));M=new W4(this.V,m);var k=On(this.V)&&e===1&&!M.isAd()&&!M.Wq;this.Fq.Pv("cuevideo");k?(this.Jf().getVideoData().loading=!0,eok(M,m?m:{}).then(function(K){Cb(Z,K,e)}),M.dispose()):Cb(this,M,e)}}; +g.p.In=function(m,e,Z,M,k,K,q){if(!m&&!Z)throw Error("Playback source is invalid");if(VQ(this.V)||g.uA(this.V))return e=e||{},e.lact=g.Xb(),e.vis=this.Fq.getVisibilityState(),this.Fq.jr("onPlayVideo",{videoId:m,watchEndpoint:K,sessionData:e,listId:Z}),!1;Wek(this.hf);this.hf.reset();m={video_id:m};M&&(m.autoplay="1");M&&(m.autonav="1");K&&(m.player_params=K.playerParams);q&&(m.oauth_token=q);Z?(m.list=Z,this.loadPlaylist(m)):this.loadVideoByPlayerVars(m,1);return!0}; +g.p.cuePlaylist=function(m,e,Z,M){this.hx=!0;IL7(this,m,e,Z,M)}; +g.p.loadPlaylist=function(m,e,Z,M){this.hx=!1;IL7(this,m,e,Z,M)}; +g.p.Dt=function(){return this.Fq.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!lc(this.playlist))}; +g.p.nextVideo=function(m,e){var Z=Uhs(this.DG.getVideoData());var M=this.Fq;var k=M.J();if(k.zM){var K=M.getVideoData();if(K&&M.getPresentingPlayerType()!==3){var q=(!K.isLiveDefaultBroadcast||k.W("allow_poltergust_autoplay"))&&!yu(K);q=K.isLivePlayback&&(!k.W("allow_live_autoplay")||!q);var S=K.isLivePlayback&&k.W("allow_live_autoplay_on_mweb");M=M.getPlaylist();M=!!M&&lc(M);var a=K.Qh&&K.Qh.playerOverlays||null;a=!!(a&&a.playerOverlayRenderer&&a.playerOverlayRenderer.autoplay);a=K.hE&&a;k=!K.ypcPreview&& +(!q||S)&&!g.Ti(K.yh,"ypc")&&!M&&(!On(k)||a)}else k=!1}else k=!1;k&&Z?this.In(Z.videoId,e?Z.Rv:Z.sessionData,Z.playlistId,e,void 0,Z.Us||void 0):this.uR?this.Fq.Ns("onPlaylistNext"):this.getPresentingPlayerType()===3?x6(this.sJ).nextVideo():!this.playlist||gY(this.V)&&!this.Fq.isFullscreen()||(lc(this.playlist,m)&&(m=this.playlist,Z=m.index+1,vv(this.playlist,Z>=m.length?0:Z)),this.playlist.loaded?(m=e&&this.V.W("html5_player_autonav_logging"),e&&this.Fq.Pv("playlistautonextvideo"),this.Cy(ag(this.playlist, +void 0,e,m),1)):this.hx=!1)}; +g.p.previousVideo=function(m){if(this.uR)this.Fq.Ns("onPlaylistPrevious");else if(this.getPresentingPlayerType()===3)x6(this.sJ).CO();else if(this.playlist&&(!gY(this.V)||this.Fq.isFullscreen())){var e=this.playlist;if(e.loop||m||e.index-1>=0)m=this.playlist,e=m.index-1,vv(this.playlist,e<0?m.length-1:e);this.playlist.loaded?this.Cy(ag(this.playlist),1):this.hx=!1}}; +g.p.playVideoAt=function(m){this.uR?this.Fq.Ns("onPlaylistIndex",m):this.playlist&&(this.playlist.loaded?this.Cy(ag(this.playlist,m),1):this.hx=!1,vv(this.playlist,m))}; +g.p.getPlaylist=function(){return this.playlist}; +g.p.cN=function(m){this.Fq.ke("onCueRangeEnter",m.getId())}; +g.p.Vt=function(m){this.Fq.ke("onCueRangeExit",m.getId())}; +g.p.Ah=function(){var m=wZ(this.QW());m&&m.Ah()}; +g.p.Ed=function(m,e,Z){var M=g.qq(this,e);if(M){var k=pi(this);if(g.gA(k)){nb(this,"acrl");if(this.u9)if(this.W("html5_ssap_enable_cpn_triggered_media_end")&&M.getPlayerType()===2&&this.u9.Xe()&&(this.DG.B("ssap",{acrla:m.length?m[0].getId():"",acrll:m.length,pt:M.getPlayerType(),acpn:M.getVideoData().clientPlaybackNonce,ccpn:this.DG.getVideoData().clientPlaybackNonce}),M=this.DG),e===1)for(var K=q5(this.u9,k.clientPlaybackNonce),q=g.r(m),S=q.next();!S.done;S=q.next())S=S.value,S.start+=K,S.end+= +K,S.Lx=K,S.U=k.clientPlaybackNonce;else if(this.W("html5_ssap_enable_cpn_triggered_media_end")&&e===2)for(this.getPresentingPlayerType(),k=g.r(m),K=k.next();!K.done;K=k.next())K.value.U=this.u9.hT();k=g.r(m);for(K=k.next();!K.done;K=k.next())q=void 0,K.value.playerType=(q=e)!=null?q:1}M.Ed(m,Z);e&&this.getPresentingPlayerType()!==e||ZY(this,"cuerangesadded",m)}else this.W("html5_ssap_enable_cpn_triggered_media_end")&&this.DG.B("ssap",{acrlpnf:this.DG.getVideoData().clientPlaybackNonce})}; +g.p.ZL=function(m,e){var Z=g.qq(this,e);Z&&(Z.ZL(m),e&&this.getPresentingPlayerType()!==e||ZY(this,"cuerangesremoved",m))}; +g.p.Yr=function(m){var e=this.Jf()||this.DG,Z=e.bP;if(Z){var M=this.getPresentingPlayerType();if(this.V.Af()){var k=Z.Ej("ad");e.B("ssap",{hac:k?"1":"0",cpn:m,pt:M})}return this.W("html5_ssap_enable_cpn_triggered_media_end")?Z.Yr(M,m):Z.Yr(M)}return 0}; +g.p.p8=function(){function m(){var M=g.ru(e.screenLayer||(e.ya()?3:0));if(M&&M!=="UNDEFINED_CSN"){var k=e.V.W("web_player_attach_player_response_ve"),K=e.V.W("web_playback_associated_ve"),q={cpn:e.getVideoData().clientPlaybackNonce,csn:M};e.getVideoData().nB&&(k||K)&&(k=$N(e.getVideoData().nB),X5(M,k),K&&(q.playbackVe=k.getAsJson()));e.getVideoData().queueInfo&&(q.queueInfo=e.getVideoData().queueInfo);M={};e.W("web_playback_associated_log_ctt")&&e.getVideoData().C&&(M.cttAuthInfo={token:e.getVideoData().C, +videoId:e.getVideoData().videoId});g.D2("playbackAssociated",q,M)}else g.LD(new g.Nr("CSN Missing or undefined during playback association"))} +var e=this;this.getPresentingPlayerType();g.JKs(this.hf,this.aO.getVideoData(),g.fLm(this));vX(this)&&this.V.Z&&dA(pi(this))==="embedded"&&this.hM&&Math.random()<.01&&g.D2("autoplayTriggered",{intentional:this.b2});this.hM=!1;g.rZ(this.sJ);this.W("web_player_defer_ad")&&aC(this);this.Fq.Ns("onPlaybackStartExternal");this.V.W("mweb_client_log_screen_associated")||g.pm(this.V)||m();var Z={};this.getVideoData().C&&(Z.cttAuthInfo={token:this.getVideoData().C,videoId:this.getVideoData().videoId});Z.sampleRate= +20;g.h$("player_att",Z);if(this.getVideoData().botguardData||this.W("fetch_att_independently"))g.xI(this.V)||g.R3(this.V)==="MWEB"?g.fr(g.BC(),function(){la(e)}):la(this); +this.kZ();FC7(this)}; +g.p.ol=function(){this.Fq.Pv("internalAbandon");cX(this)}; +g.p.onApiChange=function(){this.aO?this.Fq.ke("onApiChange",this.aO.getPlayerType()):this.Fq.ke("onApiChange")}; +g.p.RM=function(){var m=this.mediaElement;m={volume:g.Fr(Math.floor(m.getVolume()*100),0,100),muted:m.hZ()};m.muted||RC(this,!1);this.lR=g.y2(m);this.Fq.ke("onVolumeChange",m)}; +g.p.mutedAutoplay=function(m,e){var Z=this.getVideoData().videoId;isNaN(this.B2)&&(this.B2=this.getVideoData().startSeconds);if(this.W("embeds_enable_full_length_inline_muted_autoplay")){if(m&&(m=Math.floor(m)),e||Z)this.loadVideoByPlayerVars({video_id:e?e:Z,playmuted:!0,start:this.B2,muted_autoplay_duration:m}),this.Fq.Ns("onMutedAutoplayStarts")}else Z&&(this.loadVideoByPlayerVars({video_id:Z,playmuted:!0,start:this.B2}),this.Fq.Ns("onMutedAutoplayStarts"))}; +g.p.onFullscreenChange=function(){var m=oC(this);this.t6(m?1:0);Bqc(this,!!m)}; +g.p.t6=function(m){var e=!!m,Z=!!this.PZ()!==e;this.visibility.t6(m);this.template.t6(e);this.W("html5_media_fullscreen")&&!e&&this.mediaElement&&oC(this)===this.mediaElement.W_()&&this.mediaElement.fn();this.template.resize();Z&&this.hf.tick("fsc");Z&&(this.Fq.Pv("fullscreentoggled",e),m=pi(this),e={fullscreen:e,videoId:m.BC||m.videoId,time:this.getCurrentTime()},this.Fq.getPlaylistId()&&(e.listId=this.Fq.getPlaylistId()),this.Fq.ke("onFullscreenChange",e))}; +g.p.jW=function(){return this.visibility.jW()}; +g.p.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.p.PZ=function(){return this.visibility.PZ()}; +g.p.WR=function(){this.aO&&(this.PZ()!==0&&this.PZ()!==1||this.t6(oC(this)?1:0),this.V.YH&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.fn())}; +g.p.aM=function(m){this.getPresentingPlayerType()!==3&&this.Fq.Pv("liveviewshift",m)}; +g.p.playVideo=function(m,e){this.logger.debug(function(){return"play video, player type "+m}); +var Z=g.qq(this,m);Z&&(this.appState===2?(R_(this.V)&&VeR(this.hf),x8(this)):g.y(Z.getPlayerState(),2)?(e=36,this.getVideoData().ON()&&(e=37),this.seekTo(0,void 0,void 0,void 0,e)):Z.playVideo(!1,e))}; +g.p.pauseVideo=function(m,e){(m=g.qq(this,m))&&m.pauseVideo(e)}; +g.p.stopVideo=function(m){m=m===void 0?!1:m;this.logger.debug(function(){return"stop video"}); +var e=this.DG.getVideoData(),Z=new W4(this.V,{video_id:e.BC||e.videoId,oauth_token:e.oauthToken});Z.K=g.y2(e.K);var M;!m||(M=this.webPlayerContextConfig)!=null&&M.disableStaleness||(Z.jE=!0);this.cancelPlayback(6);Cb(this,Z,1)}; +g.p.cancelPlayback=function(m,e){var Z=this;this.logger.debug(function(){return"start cancel playback, type "+e}); +var M=g.qq(this,e);M?e===2&&M.getPlayerType()===1&&(xCP(pi(this))||g.gA(this.getVideoData()))?M.B("canclpb",{r:"no_adpb_ssdai"}):(this.V.Af()&&M.B("canclpb",{r:m}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+Z.appState}):(M===this.aO&&(this.logger.debug("cancel playback, destroy modules"),A0(this.sJ,m)),e===1&&(M.stopVideo(),cX(this)),M.jI(void 0,m!==6),ZY(this,"cuerangesremoved",M.z_()),M.bP.reset(),this.Nm&&M.isGapless()&& +(M.A7(!0),M.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; +g.p.sendVideoStatsEngageEvent=function(m,e,Z){(e=g.qq(this,e))&&g.vLI(this.V,m)?e.sendVideoStatsEngageEvent(m,Z):Z&&Z()}; +g.p.QQ=Zk(25);g.p.updatePlaylist=function(){!gY(this.V)&&On(this.V)&&Xl(this);this.Fq.Ns("onPlaylistUpdate")}; +g.p.setSizeStyle=function(m,e){this.W("web_log_theater_mode_visibility")?this.uD(e):this.pW=e;this.Fq.Pv("sizestylechange",m,e);this.template.resize()}; +g.p.uD=function(m){this.visibility.uD(m)}; +g.p.Ly=function(){return this.W("web_log_theater_mode_visibility")?this.visibility.Ly():this.pW}; +g.p.ya=function(){return this.visibility.ya()}; +g.p.isInline=function(){return this.visibility.isInline()}; +g.p.S8=function(){return this.visibility.S8()}; +g.p.y7=function(){return this.visibility.y7()}; +g.p.ox=function(){return this.visibility.ox()}; +g.p.getAdState=function(){if(this.getPresentingPlayerType()===3)return x6(this.sJ).getAdState();nb(this,"gas");if(!this.Ex()){var m=wH(this.QW());if(m)return m.getAdState()}return-1}; +g.p.Ls=function(m){var e=this.template.getVideoContentRect();dg(this.Jl,e)||(this.Jl=e,this.aO&&h_(this.aO),this.DG&&this.DG!==this.aO&&h_(this.DG),this.PZ()===1&&this.uh&&Bqc(this,!0));this.G6&&Ng(this.G6,m)||(this.Fq.Pv("appresize",m),this.G6=m)}; +g.p.JZ=function(){return this.Fq.JZ()}; +g.p.yO=function(){this.getPresentingPlayerType()===2&&this.rV.isManifestless()?LF7(this.rV):(this.MP&&(Ri(this.MP),cX(this)),M$(this,"signature"))}; +g.p.gi=function(m){m&&M$(this,"reloadPlayerEvent",void 0,m)}; +g.p.nK=function(m){this.A7(m);es(this)}; +g.p.OM=function(m){if(m.errorCode==="manifest.net.badstatus"){var e=this.V.experiments.dc("html5_use_network_error_code_enums")?401:"401";m.details.rc===e&&this.Fq.jr("onPlayerRequestAuthFailed")}}; +g.p.B1=function(m){this.Fq.Pv("heartbeatparams",m)}; +g.p.fJ=function(){return this.mediaElement}; +g.p.setBlackout=function(m){this.V.Qh!==m&&(this.V.Qh=m,this.aO&&(this.aO.dW(),this.V.KB&&EDs(this),this.aO.C6(m)))}; +g.p.iE=function(){var m=g.qq(this);if(m){var e=!this.Fq.NJ();(m.Tv=e)||m.lx.stop();m.videoData.X&&(e?m.videoData.X.resume():MDs(m.videoData.X));if(m.D){var Z=m.videoData.W("html5_disable_preload_for_ssdai_with_preroll")&&IQ(m)&&m.videoData.isDaiEnabled();e&&!Z?m.D.resume():cK(m,!0)}g.y(m.playerState,2)||e?g.y(m.playerState,512)&&e&&m.Fl(f5(m.playerState,512)):m.Fl(C5(m.playerState,512));m=m.lw();m.qoe&&(m=m.qoe,g.DR(m,g.Yq(m.provider),"stream",[e?"A":"I"]))}}; +g.p.onLoadedMetadata=function(){this.Fq.Ns("onLoadedMetadata")}; +g.p.onDrmOutputRestricted=function(){this.Fq.Ns("onDrmOutputRestricted")}; +g.p.Z5=function(){this.b2=!0}; +g.p.LB=function(){this.sJ.dispose();this.gq.dispose();this.rV.dispose();this.MP&&this.MP.dispose();this.WX.WV();this.WX.dispose();this.u9&&this.u9.dispose();this.DG.dispose();this.A7();g.hm(Yu(this.iU),this.playlist);g.Y.prototype.LB.call(this)}; +g.p.W=function(m){return this.V.W(m)}; +g.p.setScreenLayer=function(m){this.screenLayer=m}; +g.p.getInternalApi=function(){return this.Fq.getInternalApi()}; +g.p.createSubtitlesModuleIfNeeded=function(){return this.sJ.createSubtitlesModuleIfNeeded()}; +g.p.isOrchestrationLeader=function(){var m=this.sJ;m=m.hR.J().lX?m.i7.get("offline"):void 0;return m?m.isOrchestrationLeader():!1}; +g.p.getVideoUrl=function(m,e,Z,M,k){if(this.hY&&this.hY.postId)return m=this.V.getVideoUrl(m),m=sg(m,"v"),m.replace("/watch","/clip/"+this.hY.postId);var K=this.Fq.vY()||this.V.C==="shortspage",q=RbP(this.getVideoData());return this.V.getVideoUrl(m,e,Z,M,k,K,q)}; +g.p.A3=function(){return this.Nm.A3()}; +g.p.dw=function(m,e,Z){this.Fq.Pv("spsumpreject",m,e,Z)}; +g.p.Il=function(){try{for(var m=g.r(Object.values(this.iU)),e=m.next();!e.done;e=m.next()){var Z=e.value;Z.MU()||Z.Il()}if(this.W("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var M=g.r(jLs(this.Bt)),k=M.next();!k.done;k=M.next()){var K=k.value;K.MU()||K.Il()}this.DG.Il()}catch(q){g.LD(q)}}; +var v5={};var O8m={Dc:[{xl:/Unable to load player module/,weight:20},{xl:/Failed to fetch/,weight:500},{xl:/XHR API fetch failed/,weight:10},{xl:/JSON parsing failed after XHR fetch/,weight:10},{xl:/Retrying OnePlatform request/,weight:10},{xl:/CSN Missing or undefined during playback association/,weight:100},{xl:/Non-recoverable error. Do not retry./,weight:0},{xl:/Internal Error. Retry with an exponential backoff./,weight:0},{xl:/API disabled by application./,weight:0}],U2:[{callback:Uo7,weight:500}]};g.Wy("yt.player.Application.create",g.mT.create);g.Wy("yt.player.Application.createAlternate",g.mT.create);YN(UQ(),O8m);var JB1=g.zK("ytcsi.tick");JB1&&JB1("pe");})(_yt_player); diff --git a/tests/dQw4w9WgXcQ-5b77d519.html b/tests/dQw4w9WgXcQ-5b77d519.html new file mode 100644 index 0000000..51694bd --- /dev/null +++ b/tests/dQw4w9WgXcQ-5b77d519.html @@ -0,0 +1,15 @@ +YouTube
\ No newline at end of file From ebc7116343960c9e87d4f7dffc100c7f11a2360e Mon Sep 17 00:00:00 2001 From: Azi Hassan Date: Wed, 11 Dec 2024 23:10:30 +0100 Subject: [PATCH 2/2] [fix/ISSUE-89] Fix compile-time OOM error caused by complicated regex . Fix wrong signature in failing unit test --- source/parsers.d | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/source/parsers.d b/source/parsers.d index 66a5215..13fbc49 100644 --- a/source/parsers.d +++ b/source/parsers.d @@ -497,7 +497,8 @@ struct EncryptionAlgorithm this.javascript = javascript; this.logger = logger; - string algorithm = javascript.matchOrFail!(`\w\s*=\s*\w\.split\(""\);\s*((.|\s)*?);\s*return \w\.join\(""\)`, false); + //string algorithm = javascript.matchOrFail!(`\w=\w\.split\(""\);((.|\s)*?);return \w\.join\(""\)`, false); + string algorithm = javascript.matchOrFail!(`.=.\.split\(""\);((.|\s)*?);return .\.join\(""\)`, false); logger.displayVerbose("Matched algorithm = ", algorithm); string[] steps = algorithm.split(";"); foreach(step; steps.map!strip) @@ -543,15 +544,18 @@ struct EncryptionAlgorithm private void parseStepFunctionNames() { logger.displayVerbose("Attempting to match ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); - string flip = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w\)\{\w\.reverse\(\)\}`); + //string flip = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w\)\{\w\.reverse\(\)\}`); + string flip = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(.\)\{.\.reverse\(\)\}`); logger.displayVerbose("Matched flip = ", flip); logger.displayVerbose("Attempting to match removeFromStart ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); - string removeFromStart = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{\w\.splice\(0,\w\)\}`); + //string removeFromStart = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{\w\.splice\(0,\w\)\}`); + string removeFromStart = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(.,.\)\{.\.splice\(0,.\)\}`); logger.displayVerbose("Matched removeFromStart = ", removeFromStart); logger.displayVerbose("Attempting to match swapFirstCharacterWith ", `([A-Za-z]{2}):function\(\w\)\{\w\.reverse\(\)\}`); - string swapFirstCharacterWith = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{var \w=\w\[0\];\w\[0\]=\w\[\w%\w\.length\];\w\[\w%\w\.length\]=\w\}`); + //string swapFirstCharacterWith = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(\w,\w\)\{var \w=\w\[0\];\w\[0\]=\w\[\w%\w\.length\];\w\[\w%\w\.length\]=\w\}`); + string swapFirstCharacterWith = javascript.matchOrFail!(`([A-Za-z0-9]{2,}):function\(.,.\)\{var .=.\[0\];.\[0\]=.\[.%.\.length\];.\[.%.\.length\]=.\}`); logger.displayVerbose("Matched swapFirstCharacterWith = ", swapFirstCharacterWith); obfuscatedStepFunctionNames[flip] = "flip"; @@ -591,8 +595,8 @@ unittest writeln("When video is VEVO song and player is 5b77d519, should correctly decrypt video signature".formatTitle()); scope(success) writeln("OK\n".formatSuccess()); auto algorithm = EncryptionAlgorithm("tests/5b77d519.js".readText(), new StdoutLogger()); - string signature = algorithm.decrypt("AGluJ3MwRQIhAN6vDIopGmP-YxvuE68GP-RycrpgAH5uipJ1MJ_8k1h8AiB3_MMwOBVplfCiUKsL0ImQp6THOKokNqJy1KMN3OjJrg%3D%3D"); - assert(signature == "AJfQdSswRQIhAJYjCYQh5qbchSl650IN1F0-gbhFoDIuG5ymcQlN4BrZAiAXeiCeF8CN_D4zJh0QKQLgsO7xuF9KKnWfTLNyXelyig%3D%3D"); + string signature = algorithm.decrypt("AIr%3DIr%3DIrg5t2EOs4ZBPETDqTCNkf7vH5D1%3Dnyay7ljoINmBywAEiAOlwos8WCcqQKDOCA5XUorfTmIqe9Y4DYBnBw6MxbIuJAhIgRwsSdQfJJ"); + assert(signature == "AJfQdSswRgIhAJuIbxM6wBnBYD4Y9eqImTJroUX5fCODKQqcCW8sowlOAiEAwyBmNIojl7yaynA1D5Hv7fkNCTqDTEPBZ4sOE2t5grI%3D"); } struct ThrottlingAlgorithm