diff --git a/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java b/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java index 57b3d7c..0c24288 100644 --- a/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java +++ b/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java @@ -1124,10 +1124,10 @@ Object evalMethod() throws Exception { } case "slice" -> { assertion(obj instanceof List, "must be applied on a list"); - assertion(argvals.size() == 1, "takes exactly one argument"); + assertion(argvals.size() == 2, "takes exactly one argument"); assert obj != null; - return obj.toString().substring((Integer) argvals.get(0)); + return obj.toString().substring((Integer) argvals.get(0), argvals.size() > 1 ? (int) argvals.get(1) : obj.toString().length()); } case "splice" -> { assertion(obj instanceof List, "must be applied on a list"); diff --git a/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java b/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java index 375ebf4..da838c7 100644 --- a/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java +++ b/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java @@ -34,7 +34,8 @@ static Stream fileNames() { "bc657243-player_ias.vflset-en_US.txt", "b22ef6e7-player_ias.vflset-en_US.txt", "1f8742dc-player_ias.vflset-en_US.txt", - "20dfca59-player_ias.vflset-en_US.txt" + "20dfca59-player_ias.vflset-en_US.txt", + "b12cc44b-player_ias.vflset-en_US.txt" ); } private String readFileContent(String fileName) throws IOException { @@ -106,6 +107,7 @@ private List getNSigParams(String fileName) { case "b22ef6e7-player_ias.vflset-en_US.txt" -> List.of("3imMGazkXNJnWK", "Ima", "70QzMb0nhneLLS6BN"); case "1f8742dc-player_ias.vflset-en_US.txt" -> List.of("wx4GPH8bp1v7A9", "rma", "70QzMb0nhneLLS6BN"); case "20dfca59-player_ias.vflset-en_US.txt" -> List.of("zmLIydxjzkWeBA9", "rma", "70QzMb0nhneLLS6BN"); + case "b12cc44b-player_ias.vflset-en_US.txt" -> List.of("FnDBX5UEM1NHNyr", "Ema", "70QzMb0nhneLLS6BN"); default -> List.of("", "", ""); }; } @@ -139,6 +141,7 @@ private List getSigParams(String fileName) { case "b22ef6e7-player_ias.vflset-en_US.txt" -> List.of("goDDREeR36Kj5wrO_NjqCHEmy6PANTGWF9GKnFEIC4P07ptGh54LI6biy39oUrq5ITnRI3mE0gJchXqWRWNIgIARw8JQ0qOG", "LPa", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); case "1f8742dc-player_ias.vflset-en_US.txt" -> List.of("mQJ8wRAIgINW9WqXhcJg0E03IRnTm5qrUoA3yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO", "HBa", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); case "20dfca59-player_ias.vflset-en_US.txt" -> List.of("U0QJ8wRAIgINWRWqXhcJg0qm3IRnTm5qrEo93yib6IL45hGtp70P4CTEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxI", "EBa", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); + case "b12cc44b-player_ias.vflset-en_US.txt" -> List.of("EJ8wRAIgINWRWqXhcJg0Am3IRnTm5qrUo93yib6IL45hGtp70P4CQEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDoOU", "PBa", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); default -> List.of("", "", ""); }; diff --git a/src/test/resources/com/github/felipeucelli/javatube/base/b12cc44b-player_ias.vflset-en_US.txt b/src/test/resources/com/github/felipeucelli/javatube/base/b12cc44b-player_ias.vflset-en_US.txt new file mode 100644 index 0000000..046afda --- /dev/null +++ b/src/test/resources/com/github/felipeucelli/javatube/base/b12cc44b-player_ias.vflset-en_US.txt @@ -0,0 +1,12851 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.io/license +*/ +/* + + (The MIT License) + + Copyright (C) 2014 by Vitaly Puzrin + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + ----------------------------------------------------------------------------- + Ported from zlib, which is under the following license + https://github.com/madler/zlib/blob/master/zlib.h + + zlib.h -- interface of the 'zlib' general purpose compression library + version 1.2.8, April 28th, 2013 + Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + The data format used by the zlib library is described by RFCs (Request for + Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 + (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +'use strict';var aa,baa,caa,ia,daa,ma,eaa,na,ra,sa,ta,gaa,haa,Aa,Ba,iaa,jaa,Da,kaa,Ea,Fa,Ga,laa,Ia,Ma,Na,naa,oaa,Ya,Za,paa,db,eb,gb,kb,nb,qaa,qb,raa,sb,ub,wb,Db,Eb,Fb,Gb,zaa,Aaa,Hb,Jb,Ib,Baa,Caa,Daa,Eaa,Faa,Lb,Haa,Iaa,Wb,Jaa,$b,Kaa,Laa,Yb,Maa,Naa,Oaa,fc,Paa,gc,hc,ic,Qaa,kc,Raa,Taa,Vaa,nc,oc,Yaa,pc,uc,Zaa,$aa,Bc,aba,Ic,Kc,dba,eba,Lc,jba,Sc,gba,iba,Qc,Nc,Wc,Xc,kba,Yc,lba,bd,cd,mba,dd,ed,fd,id,ld,od,pd,sd,ud,yba,wba,xba,Aba,Bba,xd,yd,zd,Eba,Ad,Fba,Gba,Hba,Jba,Iba,Ed,Gd,Kba,Ld,Nd,Od,Lba,Nba,Mba,Oba,Pba, +Sd,Td,Vd,Wd,Qba,Rba,Sba,Tba,Zd,$d,ee,Wba,Yba,Xba,fe,he,Zba,ge,oe,Yd,aca,$ba,te,se,Xd,ve,bca,we,xe,ye,cca,eca,gca,Ee,Fe,Ge,kca,mca,Ie,nca,He,rca,Ce,ica,tca,qca,oca,pca,uca,sca,Je,lca,Me,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Oe,Mca,Qca,Rca,Sca,Xca,Se,Wca,Tca,Zca,ada,cda,Ue,eda,We,Xe,Ze,Ye,$e,af,bf,cf,df,gda,ff,gf,hf,jf,lf,mf,ida,qf,sf,jda,tf,kda,lda,uf,rf,vf,wf,mda,xf,yf,oda,zf,Af,Bf,Ef,qda,rda,sda,Df,pda,Cf,tda,uda,vda,Ff,Gf,Hf,wda,zda,xda,Jf,Ada,yda,Of,Qf,Rf,Dda,Cda,Eda, +Fda,Sf,Gda,Hda,Uf,Wf,Jda,Yf,Kda,Xf,ag,$f,bg,eg,Qda,Oda,Pda,gg,Rda,Sda,ig,Uda,lg,Wda,Vda,pg,qg,rg,mg,og,ng,ug,Nda,vg,Xda,Zda,wg,xg,fg,hg,yg,$da,aea,zg,Ag,Bg,Cg,Dg,Eg,Fg,Gg,Hg,Ig,bea,Jg,cea,Kg,Ng,Pg,Og,Qg,Rg,Sg,Tg,Ug,dea,fea,Wg,gea,hea,Xg,Yg,ah,jea,kea,bh,oea,rea,lea,qea,pea,nea,mea,sea,ch,tea,fh,vea,xea,yea,Aea,gh,Bea,hh,Cea,ih,Dea,jh,kh,Eea,lh,mh,Gea,nh,rh,Jea,sh,Lea,Mea,Iea,Nea,uh,Rea,Sea,Tea,xh,Vea,Wea,oh,Uea,Xea,Qea,Ah,Bh,Ch,Dh,Eh,Fh,Zea,$ea,Gh,afa,Hh,bfa,Ih,Jh,Kh,Lh,cfa,efa,ffa,hfa,gfa,ifa,Oh, +Ph,Qh,kfa,lfa,mfa,Rh,Wh,Xh,Yh,ai,bi,ci,nfa,di,pfa,gi,qfa,hi,ii,ji,rfa,sfa,mi,ufa,li,ki,tfa,vfa,wfa,oi,xfa,ni,pi,qi,ri,si,yfa,zfa,ti,Afa,vi,Bfa,Efa,wi,xi,yi,zi,Di,Gfa,Fi,Gi,Hi,Hfa,Ifa,Ki,Jfa,Li,Mi,Mfa,Ofa,Qfa,Pfa,Rfa,Oi,Sfa,Ri,Vi,Xi,Yi,Zi,$i,aj,Wi,bj,cj,dj,fj,gj,Wfa,hj,ij,jj,Xfa,Yfa,Zfa,$fa,kj,lj,mj,nj,cga,pj,fga,iga,jga,qj,kga,dga,rj,gga,lga,hga,mga,sj,oga,pga,qga,rga,sga,uj,tga,uga,vga,wga,zga,xga,vj,wj,xj,yj,zj,Aj,Bj,Cj,Bga,Gj,Aga,Hj,Gga,Cga,Dga,Ega,Fga,Ij,Jj,Hga,Kj,Lj,Iga,Mj,Nj,Oj,Pj,Qj,Mga,Jga, +Tj,Lga,Uj,Kga,Sj,Rj,Wj,Oga,Yj,Xj,dk,ek,gk,Rga,fk,jk,Sga,kk,Pga,Vga,Wga,Xga,nk,ok,pk,Yga,qk,rk,sk,tk,Zga,uk,vk,wk,$ga,aha,xk,bha,oj,eha,fha,gha,hha,cha,yk,zk,Ak,Bk,jha,Dk,Ck,kha,lha,mha,Hk,nha,Mk,Nk,oha,pha,Ok,rha,Pk,qha,sha,tha,uha,Qk,Rk,Sk,Tk,Uk,Vk,Wk,vha,Xk,Yk,Zk,wha,yha,zha,al,cl,bl,el,fl,gl,Bha,Cha,hl,il,jl,Eha,Fha,Iha,Gha,Jha,Nha,kl,Mha,Kha,ll,ml,Oha,nl,Pha,ol,Rha,Qha,Sha,Tha,sl,tl,Uha,Vha,Wha,ul,vl,Xha,wl,Yha,Zha,aia,eia,xl,fia,gia,hia,iia,jia,Al,kia,lia,mia,Hl,Gl,Fl,nia,oia,pia,Il,Jl,Kl,ria, +Pl,Ql,Rl,sia,Sl,uia,via,wia,Tl,Vl,Wl,am,bm,em,yia,Aia,zia,Bia,Cia,qm,Dia,Eia,rm,Fia,Gia,Hia,Iia,vm,tm,wm,xm,ym,Jia,Kia,Lia,zm,Am,Bm,Mia,Nia,Oia,Cm,Pia,Dm,Em,Qia,Ria,Sia,Tia,Uia,Via,Fm,Gm,Hm,Jm,Yia,Km,Lm,Zia,Xia,Im,$ia,Mm,Nm,Om,Qm,Pm,aja,bja,cja,Rm,eja,Sm,gja,hja,ija,jja,kja,lja,mja,nja,Vm,Wm,Xm,pja,oja,qja,rja,Zm,sja,$m,tja,uja,an,bn,cn,vja,dn,en,wja,fn,gn,hn,jn,kn,ln,mn,nn,xja,yja,zja,Aja,on,Bja,Dja,Cja,qn,rn,Fja,Eja,Ija,Lja,Kja,sn,Mja,Nja,Oja,Qja,Pja,Rja,tn,Sja,Tja,vn,Uja,Vja,Wja,Xja,wn,Yja,xn, +Zja,yn,zn,aka,An,bka,Bn,Cn,cka,dka,Dn,Fn,fka,Gn,eka,gka,hka,ika,kka,Hn,lka,Kn,Ln,nka,oka,rka,ska,Mn,Nn,On,Pn,Qn,Rn,Sn,Tn,Un,Vn,Wn,Xn,Yn,wka,vka,xka,zka,yka,Bka,uka,Aka,tka,Zn,$n,Dka,Eka,Fka,eo,fo,go,ao,Hka,ho,Cka,Jka,Kka,Ika,io,jo,ko,lo,Lka,Gka,Mka,mo,Nka,Oka,Pka,Qka,Rka,Uka,Vka,Wka,Xka,Yka,Zka,$ka,ala,no,bla,dla,gla,ila,kla,lla,nla,mla,pla,rla,sla,Go,tla,Fo,Io,ula,Jo,Lo,Mo,vla,wla,xla,To,yla,zla,bp,Ala,Cla,cp,Dla,Ela,Kla,Gla,fp,gp,hp,jp,kp,Pla,lp,mp,np,Rla,qp,Sla,Tla,rp,Vla,tp,up,vp,wp,Wla,xp,zp, +Ap,Bp,Cp,Xla,Ep,Fp,Gp,Hp,Ip,Jp,Yla,Zla,$la,ama,bma,cma,Kp,dma,Rp,ema,fma,gma,Sp,Up,Vp,Wp,Zp,$p,aq,ima,dq,eq,fq,jma,kma,gq,lma,mma,iq,uma,vma,wma,jq,xma,yma,Bma,lq,Dma,Cma,nq,Ema,Fma,pq,qq,Gma,rq,sq,tq,uq,vq,wq,xq,yq,zq,Aq,Bq,Cq,Dq,Eq,Hma,Ima,Jma,Gq,Iq,Kma,Qq,Rq,Sq,Tq,Uq,Xq,Oma,Yq,Zq,$q,Qma,Pma,Lma,cr,br,Uma,dr,mr,jr,nr,or,Wma,Zma,qr,$ma,ana,cna,hna,dna,fna,gna,sr,rr,ina,ur,vr,wr,jna,Cr,kna,Dr,lna,Fr,mna,Hr,Ir,Jr,Kr,Lr,ona,Or,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,qna,Zr,bs,as,sna,wna,una,vna,xna,yna,Ana,Bna, +zna,Dna,es,fs,is,Ena,Fna,hs,js,Hna,Ina,Mna,Lna,ns,os,ps,qs,rs,us,Ona,Pna,Qna,Bs,Cs,Rna,Sna,Tna,Hs,Is,Js,Una,Vna,Xna,Zna,Ns,$na,Qs,Os,Ts,Us,Ws,aoa,ct,dt,et,ft,ht,it,kt,foa,goa,mt,hoa,ioa,ot,joa,koa,pt,qt,loa,moa,ooa,vt,qoa,roa,tt,soa,toa,voa,uoa,At,poa,xoa,yoa,Gt,Et,zoa,Aoa,Ht,It,Boa,Coa,Lt,Doa,Eoa,Foa,Goa,Qt,Hoa,Ioa,Joa,Koa,Loa,Moa,Noa,Ooa,St,Poa,Ut,Roa,Soa,Toa,Uoa,Voa,Vt,au,Xoa,$oa,bu,apa,cpa,Woa,dpa,epa,fpa,Yoa,Zoa,Wt,Xt,$t,bpa,Zt,Yt,gpa,hpa,ipa,jpa,kpa,lpa,qpa,mpa,fu,gu,iu,tpa,wpa,vpa,hu,lu,xpa, +yu,ypa,Apa,Du,zpa,Jpa,Bpa,Ipa,Hu,Kpa,Npa,Iu,Gu,Lpa,Mpa,Opa,Ku,Qpa,Rpa,Spa,Tpa,Upa,Vpa,Wpa,Ppa,Ypa,Zpa,$pa,aqa,bqa,dqa,Ou,eqa,Pu,Qu,Ru,fqa,gqa,Uu,Vu,iqa,hqa,Wu,jqa,lqa,nqa,mqa,oqa,rqa,pqa,iv,hv,sqa,gv,jv,kv,lv,tqa,uqa,nv,wqa,qv,pv,tv,uv,vv,xqa,wv,yv,yqa,Av,Cv,Dv,zqa,Aqa,Bqa,Ev,Gv,Cqa,Hv,Iv,Jv,Eqa,Kv,Fqa,Mv,Pv,Ov,Nv,Qv,Rv,Iqa,Oqa,Qqa,Nqa,Mqa,Pqa,Uv,Xv,Sqa,Rqa,bw,cw,Hqa,ara,iw,$qa,dra,Zqa,Tv,jw,aw,gw,bra,Zv,Kqa,Jqa,Lqa,Wv,Yqa,nw,lra,kra,ow,nra,ora,pra,qw,qra,rra,sra,ura,vra,uw,xra,vw,yra,zra,Bra,Cra, +xw,Dra,Fra,yw,Gra,zw,Aw,Zs,Lra,Qra,Gw,Sra,Vra,Iw,Xra,Yra,Zra,asa,$ra,bsa,Rw,upa,Pw,Sw,Qw,Jw,$w,Zw,cx,dx,fx,dsa,gx,jx,kx,esa,fsa,nx,hsa,isa,jsa,ksa,lsa,msa,nsa,osa,psa,qsa,rx,rsa,sx,ux,ssa,tsa,usa,vx,vsa,wsa,zx,Ax,Bx,xsa,Cx,ysa,Ex,Asa,zsa,Gx,Hx,Ix,Jx,Bsa,Kx,Lx,Csa,Dsa,Mx,Nx,Hsa,Esa,Gsa,Fsa,Ox,Px,Qx,Isa,Jsa,Ksa,Rx,Msa,Psa,Osa,Sx,Tx,Ux,Vx,Wx,Yx,Zx,$x,ay,by,cy,Qsa,Rsa,Ssa,Tsa,dy,ey,fy,gy,iy,ky,Vsa,Usa,my,Wsa,ny,oy,py,qy,ry,uy,vy,wy,yy,Ysa,zy,Ay,By,Zsa,Dy,Fy,$sa,Gy,bta,cta,dta,fta,hta,My,ita,Oy,Ny,kta, +lta,mta,Ry,Sy,ota,Uy,Vy,Wy,Xy,qta,Yy,Zy,$y,rta,uz,pta,vz,wz,tta,sta,xz,yz,zz,Az,Cz,vta,wta,Ez,Fz,Hz,Iz,xta,Gz,Ata,Bta,Cta,Dta,Eta,Fta,Gta,Kz,Jz,zta,Jta,Lz,Lta,Mta,Qz,Nta,Nz,Oz,Ota,Rz,Qta,Sta,Sz,Tz,Tta,Uz,Vta,Vz,aua,Zta,Wta,Yta,Xta,Xz,Yz,Zz,$z,aA,bA,cA,eA,cua,fua,gua,iua,iA,kA,jA,lA,jua,lua,kua,mua,qua,sua,rua,tua,uua,mA,wua,vua,nA,oA,pA,xua,qA,rA,sA,zua,Aua,tA,yua,uA,Dua,vA,wA,xA,yA,zA,AA,BA,CA,DA,EA,FA,GA,HA,IA,JA,KA,LA,MA,NA,OA,PA,QA,RA,SA,TA,UA,VA,WA,XA,YA,ZA,$A,aB,bB,cB,dB,eB,fB,gB,hB,iB,jB,kB, +lB,mB,nB,oB,pB,qB,rB,sB,tB,uB,vB,wB,xB,yB,zB,AB,BB,CB,DB,EB,FB,GB,HB,IB,JB,KB,LB,NB,OB,Fua,PB,QB,RB,MB,SB,TB,UB,Hua,WB,Jua,VB,Kua,YB,Lua,$B,XB,aC,bC,cC,eC,Nua,Oua,Pua,Qua,nC,oC,jC,pC,Sua,Tua,Uua,Vua,Mua,Wua,dC,Xua,Yua,rC,wC,sC,gC,Zua,fC,qC,tC,xC,ava,hC,iC,vC,uC,bva,yC,zC,AC,BC,cva,CC,DC,EC,FC,GC,eva,fva,hva,iva,IC,JC,KC,LC,nva,pva,rva,sva,NC,uva,vva,TC,wva,UC,VC,WC,XC,YC,ZC,xva,zva,yva,Ava,Bva,cD,dD,fD,gD,hD,iD,jD,Cva,kD,lD,eD,oD,pD,qD,rD,Dva,nD,Fva,sD,Gva,Hva,tD,Iva,uD,vD,Jva,Kva,wD,Lva,Mva,xD,Nva, +Ova,Pva,Qva,Rva,yD,Sva,Tva,zD,AD,BD,Uva,CD,DD,Vva,ED,FD,Wva,GD,Xva,HD,Yva,Zva,ID,JD,$va,awa,bwa,cwa,KD,dwa,ewa,fwa,LD,gwa,MD,hwa,ND,iwa,OD,jwa,SD,kwa,TD,UD,lwa,VD,mwa,WD,XD,nwa,owa,$D,aE,qwa,bE,rwa,swa,pwa,twa,uwa,dE,vwa,eE,fE,gE,hE,ywa,iE,jE,lE,zwa,mE,nE,pE,sE,qE,wE,xE,Awa,yE,zE,AE,BE,Bwa,DE,EE,FE,Cwa,GE,HE,IE,uE,JE,KE,LE,Dwa,ME,NE,OE,Ewa,PE,QE,RE,SE,TE,VE,WE,XE,YE,Fwa,Gwa,Hwa,Iwa,cF,ZE,dF,eF,Jwa,Kwa,Lwa,fF,gF,hF,Mwa,Nwa,aF,Owa,Pwa,iF,Qwa,jF,kF,mF,nF,oF,pF,qF,sF,tF,vF,wF,xF,yF,uF,Swa,Twa,AF,BF,CF, +Uwa,EF,Wwa,FF,GF,HF,IF,KF,Xwa,JF,LF,MF,NF,Ywa,QF,$wa,axa,RF,SF,bxa,cxa,dxa,TF,fxa,DF,exa,gxa,VF,UF,hxa,WF,ixa,XF,jxa,kxa,lxa,mxa,nxa,YF,pxa,oxa,ZF,bG,cG,dG,qxa,rxa,sxa,txa,uxa,eG,vxa,fG,xxa,hG,iG,zxa,yxa,Axa,Bxa,Cxa,kG,lG,mG,Dxa,Exa,Fxa,Gxa,Hxa,Ixa,Jxa,Kxa,Lxa,Mxa,oG,pG,Nxa,Oxa,qG,rG,Pxa,sG,tG,XG,Qxa,$G,aH,bH,Rxa,cH,Sxa,dH,Txa,eH,Uxa,Vxa,fH,Wxa,Xxa,Yxa,gH,hH,iH,jH,kH,Zxa,lH,mH,nH,$xa,oH,pH,aya,bya,cya,qH,dya,rH,sH,tH,uH,gva,eya,fya,gya,hya,iya,vH,wH,xH,yH,zH,AH,BH,CH,DH,EH,FH,jya,kya,MH,NH,lya,OH, +TH,nya,rya,wya,sya,yya,zya,xya,Aya,Bya,Cya,dI,Fya,Hya,Jya,Kya,Lya,gI,Nya,Oya,Sya,hI,Tya,Pya,iI,jI,Uya,Xya,Wya,aza,Yya,kI,lI,fza,oI,jza,iza,hza,nza,mza,oza,pza,sza,qza,rza,gza,tza,uza,pI,lza,vza,qI,kza,tI,uI,xza,Aza,yza,Dza,Lza,Kza,Eza,Mza,Gza,Hza,Fza,Qza,Sza,Uza,Wza,Zza,$za,bAa,cAa,eAa,dAa,jAa,gAa,fAa,kAa,nAa,oAa,pAa,qAa,GI,Gya,tAa,rAa,JI,uAa,wAa,MI,zAa,AAa,yAa,NI,BAa,OI,PI,$C,QI,Eya,RI,SI,TI,CAa,DAa,UI,EAa,FAa,GAa,VI,WI,XI,YI,ZI,$I,aJ,bJ,cJ,HAa,IAa,dJ,JAa,eJ,aG,fJ,gJ,KAa,hJ,LAa,MAa,Iya,xAa,NAa,iJ, +aD,HC,sI,OAa,PAa,kJ,eza,mI,QAa,HI,II,xI,wI,vI,zI,Xza,aAa,yI,bza,lAa,RAa,Nza,Iza,lJ,vAa,fI,TAa,SAa,wza,Yza,UAa,mAa,DI,cza,dza,Vya,Vza,Tza,Cza,zza,Rya,Qya,Mya,Pza,Jza,hAa,Zya,$ya,BI,CI,AI,iAa,Rza,WAa,VAa,mJ,nJ,oJ,pJ,qJ,rJ,xJ,yJ,YAa,BJ,EJ,ZAa,aBa,$Aa,bBa,cBa,dBa,eBa,fBa,gBa,GJ,IJ,iBa,JJ,KJ,LJ,MJ,jBa,kBa,NJ,OJ,PJ,lBa,mBa,QJ,SJ,WJ,XJ,YJ,ZJ,$J,aK,bK,cK,dK,eK,fK,gK,hK,nBa,oBa,iK,jK,kK,lK,mK,nK,pBa,qBa,oK,sK,tBa,uBa,tK,vK,vBa,wBa,xBa,wK,xK,yK,zK,AK,BK,CK,BBa,EK,DK,CBa,zBa,ABa,DBa,FK,GK,EBa,FBa,HK,GBa,Ys, +IBa,HBa,KBa,LBa,NBa,OBa,MBa,PBa,SBa,NK,OK,TBa,UBa,VBa,WBa,PK,QK,XBa,YBa,ZBa,$Ba,cCa,eCa,fCa,dCa,UK,WK,VK,gCa,SK,hCa,iCa,jCa,TK,nCa,oCa,pCa,mCa,lCa,kCa,qCa,rCa,aCa,sCa,tCa,bCa,uCa,yCa,vCa,wCa,xCa,BCa,zCa,ACa,CCa,YK,ECa,DCa,HCa,FCa,ICa,GCa,JCa,KCa,LCa,MCa,NCa,OCa,PCa,QCa,RCa,SCa,TCa,UCa,ZK,WCa,XCa,YCa,VCa,ZCa,$Ca,cDa,aL,cL,eL,gL,dDa,hL,iL,jL,hDa,jDa,iDa,lDa,tDa,rL,lL,kDa,gDa,fDa,eDa,qL,mL,pL,wL,xL,wDa,yL,zL,vL,ADa,xDa,yDa,BDa,AL,BL,DDa,DL,EL,FL,GL,HL,IL,JL,EDa,FDa,KL,LL,NL,HDa,IDa,ML,OL,LDa,MDa,PL, +NDa,SL,ODa,TL,VL,PDa,UL,WL,QDa,YL,SDa,TDa,$L,aM,fM,VDa,cM,gM,iM,WDa,kM,eM,hM,XDa,lM,YDa,mM,ZDa,bM,dM,UDa,jM,nM,$Da,aEa,oM,bEa,pM,cEa,qM,rM,tM,sM,uM,vM,dEa,eEa,wM,xM,yM,zM,fEa,AM,BM,gEa,hEa,CM,DM,EM,iEa,FM,jEa,kEa,yFa,GM,QGa,RGa,VGa,sHa,tHa,HM,IM,JM,KM,uHa,vHa,MM,wHa,NM,OM,xHa,yHa,PM,zHa,AHa,EHa,FHa,BHa,CHa,DHa,RM,SM,TM,UM,GHa,HHa,VM,WM,IHa,XM,YM,KHa,JHa,$M,ZM,LHa,MHa,NHa,OHa,aN,PHa,cN,dN,QHa,SHa,THa,fN,jN,XHa,rDa,nL,YHa,ZHa,$Ha,aIa,bIa,cIa,kL,gN,dIa,eIa,mN,nN,hIa,iIa,jIa,oN,nIa,kIa,lIa,pIa,qIa,pN, +rIa,oIa,sIa,qN,rN,sN,tIa,uIa,vIa,tN,wIa,uN,xIa,vN,kN,zIa,AIa,yIa,DIa,AN,FIa,sDa,mDa,BN,CN,EN,FN,GN,HN,IN,DN,LN,HIa,ON,IIa,JIa,KIa,LIa,MIa,PN,NIa,QN,PIa,RN,RIa,SIa,QIa,OIa,TIa,UIa,VIa,WN,WIa,XIa,ZIa,XN,vDa,ZN,$Ia,bJa,sL,cJa,dJa,eJa,oL,nDa,pDa,qDa,aO,bO,cO,fJa,gJa,dO,hJa,eO,fO,iJa,gO,hO,jJa,kJa,iO,jO,kO,lO,mO,nO,oO,mJa,lJa,pO,nJa,oJa,qJa,qO,rJa,pJa,IO,GO,JO,LO,MO,sJa,zJa,lC,HO,PO,DJa,TO,FJa,wO,UO,vO,VO,FO,YO,KJa,ZO,$O,LJa,MJa,aP,NJa,OJa,PJa,QJa,bP,RJa,WJa,VJa,SJa,UJa,TJa,cP,XJa,dP,YJa,ZJa,aKa,bKa,cKa, +hKa,iP,jP,kKa,kP,lP,lKa,oKa,pKa,qKa,rKa,mP,sKa,uKa,vKa,yP,EKa,zKa,AKa,GKa,zP,HKa,JKa,IKa,KKa,BP,EP,LKa,AP,FP,GP,MKa,PKa,NKa,SKa,LP,YP,cQ,gQ,fQ,oLa,dLa,PP,hQ,VP,iQ,bLa,qLa,pLa,jQ,KP,UP,sLa,tLa,uLa,wLa,rLa,lQ,vLa,xLa,yLa,oQ,pQ,ALa,JP,RP,mQ,gLa,OKa,kLa,vQ,SP,CQ,dQ,EQ,FQ,GQ,NLa,MLa,eQ,OLa,IQ,PLa,QLa,TP,JQ,cLa,LQ,FLa,QP,WKa,RLa,UKa,TKa,QKa,MQ,TLa,bMa,aMa,dMa,eMa,RQ,TQ,UQ,SQ,WQ,XQ,fMa,YQ,hMa,ZQ,jMa,bR,iMa,dR,eR,nMa,fR,qMa,rMa,iR,sMa,uMa,uR,wR,xR,vMa,zR,AR,bS,cS,dS,eS,wMa,fS,gS,AMa,hS,iS,BMa,CMa,jS,DMa, +EMa,FMa,GMa,kS,lS,HMa,JMa,oS,pS,sS,tS,KMa,uS,vS,wS,xS,LMa,MMa,yS,NMa,zS,PMa,OMa,QMa,AS,SMa,RMa,BS,TMa,CS,DS,UMa,WMa,XMa,YMa,ZMa,ES,FS,GS,HS,IS,JS,aNa,bNa,cNa,$Ma,KS,gNa,eNa,fNa,LS,MS,hNa,iNa,jNa,NS,kNa,lNa,OS,PS,mNa,nNa,SS,QS,RS,oNa,TS,pNa,qNa,XS,sNa,rNa,$S,uNa,vNa,tNa,wNa,aT,bT,cT,xNa,dT,yNa,zNa,fT,ANa,BNa,gT,jT,hT,CNa,kT,lT,mT,oT,pT,ENa,nT,rT,sT,uT,FNa,vT,wT,xT,yT,INa,HNa,AT,BT,CT,LNa,JNa,KNa,DT,MNa,PNa,ET,NNa,ONa,FT,RNa,SNa,TNa,IT,WNa,UNa,VNa,HT,JT,KT,GT,YNa,LT,MT,NT,ZNa,$Na,OT,aOa,PT,QT,bOa,cOa, +ST,dOa,gOa,eOa,hOa,iOa,jOa,kOa,lOa,mOa,cU,dU,eU,aU,jU,lU,mU,nU,pU,hU,iU,oU,qU,pOa,sU,uOa,rOa,rU,vOa,wOa,tOa,qOa,tU,yOa,xOa,zOa,FOa,wU,IOa,LOa,KOa,JOa,DOa,EOa,AOa,BOa,GOa,xU,yU,NOa,nR,kMa,OOa,AU,POa,ROa,QOa,HOa,TOa,UOa,VOa,CU,WOa,JU,YOa,ZOa,$Oa,bPa,aPa,cPa,KU,LU,dPa,gPa,hPa,NU,fPa,iPa,jPa,ePa,OU,RU,kPa,lPa,QU,mPa,nPa,oPa,pPa,rPa,qPa,uPa,vPa,sPa,xPa,yPa,tPa,UU,VU,zPa,BPa,WU,APa,CPa,EPa,DPa,FPa,XU,GPa,HPa,IPa,YU,ZU,KPa,JPa,LPa,MPa,OPa,NPa,PPa,QPa,RPa,SPa,TPa,VPa,aV,$U,bV,WPa,XPa,UPa,bQa,cQa,dQa,gQa, +fQa,eQa,hQa,iQa,cV,dV,jQa,kQa,lQa,mQa,oQa,pQa,eV,gV,nQa,qQa,rQa,sQa,tQa,uQa,iV,vQa,wQa,zQa,jV,AQa,yQa,kV,lV,BQa,CQa,EQa,GQa,DQa,FQa,nV,HQa,JQa,KQa,MQa,NQa,oV,pV,OQa,IQa,RQa,QQa,PQa,qV,rV,TQa,SQa,sV,tV,UQa,VQa,uV,WQa,XQa,YQa,vV,ZQa,wV,$Qa,xV,aRa,dRa,eRa,fRa,hRa,iRa,jRa,gRa,lRa,kRa,mRa,pRa,AV,rRa,qRa,nRa,oRa,sRa,tRa,BV,CV,uRa,vRa,wRa,xRa,yRa,zRa,BRa,CRa,KRa,FRa,GRa,DRa,MRa,IV,NRa,RRa,LV,SRa,ORa,HV,OV,NV,JV,PV,VRa,XRa,WRa,QV,KV,GV,URa,MV,PRa,TRa,ZRa,DV,RV,$Ra,aSa,QRa,SV,TV,bSa,UV,VV,WV,cSa,dSa,fSa,gSa, +eSa,XV,hSa,YV,ZV,$V,iSa,jSa,kSa,lSa,mSa,oSa,qSa,pSa,nSa,aW,rSa,tSa,sSa,bW,cW,uSa,wSa,xSa,dW,vSa,ySa,zSa,eW,ASa,BSa,CSa,DSa,gW,hW,FSa,ESa,GSa,iW,jW,HSa,ISa,KSa,JSa,LSa,MSa,NSa,lW,OSa,PSa,QSa,RSa,SSa,TSa,VSa,WSa,XSa,USa,YSa,ZSa,$Sa,aTa,bTa,pW,cTa,qW,fTa,rW,hTa,sW,gTa,jTa,kTa,iTa,tW,lTa,mTa,nTa,oTa,vW,pTa,qTa,rTa,xTa,CTa,ATa,tTa,yW,zTa,sTa,BTa,ETa,FTa,DTa,AW,HTa,ITa,JTa,LTa,MTa,KTa,NTa,qT,FW,GW,HW,OTa,JW,QTa,RTa,STa,KW,TTa,UTa,VTa,WTa,XTa,YTa,PTa,ZTa,LW,$Ta,eUa,fUa,gUa,NW,hUa,PW,QW,iUa,RW,jUa,OW,kUa, +lUa,sUa,VW,XW,uUa,wUa,vUa,mUa,YW,yUa,zUa,BUa,ZW,$W,CUa,tUa,aX,EUa,DUa,bX,qUa,TW,FUa,GUa,HUa,IUa,JUa,nUa,pUa,UW,MUa,NUa,PUa,OUa,dX,fX,gX,SUa,TUa,cX,UUa,QUa,RUa,KUa,VUa,WUa,XUa,dVa,eVa,ZUa,hX,eX,LUa,YUa,gVa,kVa,lX,lVa,mVa,iVa,nX,nVa,oVa,fVa,pVa,jVa,qVa,oX,mX,rVa,tVa,sVa,kX,vVa,rX,wVa,pX,sX,qX,tX,xVa,yVa,BVa,AVa,DVa,EVa,CVa,wX,vX,GVa,HVa,IVa,JVa,KVa,MVa,LVa,NVa,yX,zX,OVa,PVa,TVa,QVa,UVa,VVa,RVa,SVa,WVa,XVa,YVa,AX,ZVa,aWa,cWa,fWa,dWa,eWa,GX,KX,hWa,LX,iWa,jWa,kWa,MX,mWa,nWa,oWa,lWa,rWa,sWa,tWa,NX,OX,uWa, +vWa,wWa,yKa,DKa,xWa,zWa,yWa,AWa,QX,RX,BWa,CWa,TX,UX,SX,DWa,EWa,FWa,HWa,LWa,RWa,VWa,YX,WWa,CX,YWa,ZWa,$Wa,aXa,bXa,cXa,dXa,$X,eXa,aY,fXa,bY,hXa,iXa,cY,jXa,kXa,lXa,mXa,nXa,oXa,pXa,qXa,rXa,sXa,tXa,vXa,dY,xXa,wXa,BXa,fY,uXa,eY,gY,hY,iY,jY,kY,lY,CXa,mY,DXa,EXa,JXa,MXa,NXa,OXa,PXa,qY,rY,LXa,IXa,QXa,oY,FXa,SXa,nY,pY,GXa,HXa,sY,TXa,UXa,KXa,RXa,VXa,XXa,WXa,tY,bYa,$Xa,aYa,YXa,cYa,uY,ZXa,vY,wY,dYa,eYa,fYa,xY,hYa,iYa,yY,jYa,zY,kYa,lYa,mYa,nYa,pYa,qYa,zXa,xYa,tYa,oYa,zYa,AYa,uYa,vYa,sYa,wYa,BY,rYa,yYa,GYa,EYa, +DYa,CYa,BYa,CY,HYa,BX,DY,EY,FY,IYa,JYa,KYa,GY,LYa,IX,MYa,HY,EX,FX,$Va,JY,LY,QYa,RYa,NY,KY,IY,OY,OYa,NYa,PYa,PY,SYa,TYa,AXa,DX,QY,UYa,MY,VYa,WYa,XYa,YYa,ZYa,RY,$Ya,aZa,bZa,cZa,pWa,qWa,SY,dZa,eZa,fZa,gZa,TY,jZa,hZa,kZa,mZa,iZa,nZa,pZa,oZa,rZa,WY,ZY,sZa,vZa,uZa,zZa,xZa,AZa,BZa,wZa,yZa,tZa,CZa,DZa,EZa,$Y,FZa,gXa,GZa,HZa,IZa,aZ,JZa,bZ,KZa,cZ,dZ,LZa,OZa,MZa,NZa,PZa,QZa,RZa,SZa,TZa,UZa,fZ,a_a,$Za,kZ,b_a,ZZa,e_a,lZ,f_a,g_a,h_a,k_a,i_a,m_a,n_a,o_a,p_a,q_a,s_a,t_a,u_a,r_a,nZ,eZ,w_a,l_a,x_a,j_a,oZ,z_a,v_a,mZ, +A_a,B_a,E_a,H_a,F_a,G_a,I_a,C_a,D_a,qZ,K_a,M_a,L_a,N_a,O_a,J_a,P_a,Q_a,pZ,R_a,S_a,T_a,U_a,X_a,W_a,V_a,rZ,Y_a,$_a,a0a,b0a,c0a,vZ,wZ,yXa,d0a,e0a,h0a,g0a,f0a,i0a,k0a,l0a,j0a,xZ,n0a,o0a,p0a,v0a,s0a,t0a,u0a,w0a,y0a,FYa,sZ,r0a,q0a,x0a,HX,AY,VY,B0a,A0a,C0a,D0a,E0a,F0a,Z_a,YY,XY,G0a,I0a,H0a,J0a,lZa,K0a,z0a,qZa,zZ,AZ,M0a,BZ,N0a,O0a,P0a,Q0a,R0a,S0a,U0a,T0a,W0a,X0a,a1a,Y0a,$0a,b1a,DZ,f1a,d1a,e1a,i1a,j1a,k1a,l1a,m1a,CZ,n1a,h1a,c1a,EZ,o1a,Z0a,p1a,FZ,r1a,s1a,t1a,q1a,GZ,w1a,v1a,z1a,y1a,x1a,A1a,B1a,HZ,C1a,D1a,J1a, +G1a,H1a,I1a,K1a,L1a,M1a,O1a,N1a,P1a,Q1a,R1a,T1a,V1a,U1a,W1a,S1a,X1a,Z1a,a2a,Y1a,b2a,c2a,e2a,d2a,f2a,$1a,LZ,g2a,h2a,i2a,k2a,m2a,n2a,p2a,r2a,PZ,t2a,u2a,v2a,w2a,x2a,z2a,y2a,C2a,$Ua,QZ,iX,A2a,B2a,D2a,TZ,F2a,E2a,G2a,H2a,I2a,L2a,J2a,O2a,UZ,K2a,P2a,VZ,T2a,XZ,YZ,U2a,WZ,V2a,ZZ,Y2a,X2a,R2a,S2a,Z2a,$2a,a3a,Q2a,b3a,$Z,c3a,W2a,s2a,SZ,e3a,jX,f3a,bVa,g3a,aVa,h3a,i3a,j3a,k3a,l3a,m3a,b_,cVa,n3a,p3a,q3a,r3a,o3a,s3a,t3a,c_,u3a,v3a,w3a,x3a,d_,Rwa,y3a,z3a,A3a,f_,D3a,E3a,g_,G3a,H3a,F3a,C3a,h_,e_,B3a,k_,j_,I3a,l_,i_,M3a, +P3a,R3a,S3a,U3a,K3a,Q3a,V3a,L3a,W3a,X3a,q_,m_,Z3a,Y3a,o_,a4a,b4a,O3a,N3a,$3a,c4a,T3a,J3a,r_,i4a,f4a,j4a,g4a,e4a,k4a,d4a,n4a,s_,o4a,q4a,bF,s4a,u4a,v4a,w4a,w_,x4a,oUa,A4a,x_,JZ,B4a,D4a,y4a,CW,p_,E4a,F4a,C_,y_a,t4a,B_,t_,I4a,J4a,L4a,K4a,M4a,C4a,z_,N4a,EW,O4a,yTa,Q4a,P4a,m0a,IZ,E_,GTa,R4a,xUa,S4a,GNa,y_,T4a,vTa,U4a,wTa,V4a,X4a,Y4a,H4a,r4a,$4a,Z4a,A_,u_,a5a,F_,zW,c5a,d5a,WW,E1a,e5a,f5a,g5a,uTa,D_,uZ,F1a,z4a,h5a,L0a,n_,q5a,m5a,s5a,k5a,t5a,j5a,H_,DW,y5a,u5a,w5a,v5a,A5a,K_,L_,D5a,C5a,B5a,N_,p5a,R_,F5a,Q_, +M_,H5a,K5a,L5a,n5a,I5a,U_,M5a,o5a,E5a,O_,N5a,J_,O5a,P5a,Q5a,X_,Y_,G5a,Z_,$_,R5a,P_,z5a,S5a,T5a,U5a,J5a,V5a,S_,W5a,T_,X5a,Z5a,I_,a0,x5a,$5a,a6a,W_,V_,b6a,zVa,c6a,d6a,e6a,b0,c0,h6a,k6a,m6a,g6a,u6a,v6a,w6a,x6a,y6a,z6a,A6a,C6a,B6a,d0,e0,f0,D6a,E6a,F6a,$F,G6a,g0,H6a,h0,i0,I6a,cE,j0,EI,J6a,KI,sAa,K6a,nI,L6a,OF,PF,jJ,M6a,N6a,O6a,k0,Q6a,R6a,l0,n0,o0,U6a,V6a,p0,W6a,S6a,T6a,X6a,Y6a,Z6a,$6a,a7a,q0,c7a,Eva,gG,d7a,e7a,jG,b7a,mD,f7a,g7a,h7a,r0,zF,j7a,YD,k7a,s0,t0,l7a,u0,m7a,m0,n7a,o7a,Zwa,v0,w0,p7a,x0,y0,q7a,z0, +r7a,A0,B0,s7a,t7a,wxa,C0,u7a,w7a,v7a,D0,x7a,E0,F0,y7a,z7a,A7a,B7a,C7a,D7a,F7a,H0,E7a,G7a,H7a,I7a,J7a,N7a,K7a,L7a,M7a,P7a,R7a,S7a,T7a,Q7a,I0,U7a,V7a,W7a,X7a,Y7a,K0,Z7a,L0,M0,N0,$7a,a8a,c8a,d8a,e8a,f8a,h8a,g8a,i8a,O0,P0,l8a,j8a,k8a,Q0,n8a,o8a,R0,S0,T0,U0,V0,q8a,W0,r8a,s8a,t8a,X0,Y0,Z0,u8a,v8a,w8a,z8a,y8a,$0,A8a,B8a,C8a,Dya,x8a,E8a,F8a,H8a,aaa,ea;aa=function(a){return function(){return aaa[a].apply(this,arguments)}}; +g.ba=function(a,b){return aaa[a]=b}; +baa=function(a){var b=0;return function(){return b=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,lN:e}}return{i:-1,lN:void 0}}; +Ia=function(a){return a?a:function(b,c){return laa(this,b,c).i}}; +g.Ka=function(a,b,c){a=a.split(".");c=c||g.Ja;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}; +Ma=function(a,b){var c=g.La("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b}; +g.La=function(a,b){a=a.split(".");b=b||g.Ja;for(var c=0;c2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}; +g.Ta=function(a,b,c){g.Ta=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?naa:oaa;return g.Ta.apply(null,arguments)}; +g.Ua=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}; +g.Wa=function(){return Date.now()}; +g.Xa=function(a,b){function c(){} +c.prototype=b.prototype;a.Of=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l=0&&a.indexOf(b,c)==c}; +g.rb=function(a){return/^[\s\xa0]*$/.test(a)}; +sb=function(a){if(!saa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(taa,"&"));a.indexOf("<")!=-1&&(a=a.replace(uaa,"<"));a.indexOf(">")!=-1&&(a=a.replace(vaa,">"));a.indexOf('"')!=-1&&(a=a.replace(waa,"""));a.indexOf("'")!=-1&&(a=a.replace(xaa,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(yaa,"�"));return a}; +g.tb=function(a,b){return a.indexOf(b)!=-1}; +ub=function(a,b){return g.tb(a.toLowerCase(),b.toLowerCase())}; +g.xb=function(a,b){var c=0;a=vb(String(a)).split(".");b=vb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0}; +g.yb=function(){var a=g.Ja.navigator;return a&&(a=a.userAgent)?a:""}; +Db=function(a){return zb||Bb?Cb?Cb.brands.some(function(b){return(b=b.brand)&&g.tb(b,a)}):!1:!1}; +Eb=function(a){return g.tb(g.yb(),a)}; +Fb=function(){return zb||Bb?!!Cb&&Cb.brands.length>0:!1}; +Gb=function(){return Fb()?!1:Eb("Opera")}; +zaa=function(){return Fb()?!1:Eb("Trident")||Eb("MSIE")}; +Aaa=function(){return Fb()?Db("Microsoft Edge"):Eb("Edg/")}; +Hb=function(){return Eb("Firefox")||Eb("FxiOS")}; +Jb=function(){return Eb("Safari")&&!(Ib()||(Fb()?0:Eb("Coast"))||Gb()||(Fb()?0:Eb("Edge"))||Aaa()||(Fb()?Db("Opera"):Eb("OPR"))||Hb()||Eb("Silk")||Eb("Android"))}; +Ib=function(){return Fb()?Db("Chromium"):(Eb("Chrome")||Eb("CriOS"))&&!(Fb()?0:Eb("Edge"))||Eb("Silk")}; +Baa=function(){return Eb("Android")&&!(Ib()||Hb()||Gb()||Eb("Silk"))}; +Caa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); +return function(c){return b[c.find(function(d){return d in b})]||""}}; +Daa=function(a){var b=g.yb();if(a==="Internet Explorer"){if(zaa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]); +b=Caa(c);switch(a){case "Opera":if(Gb())return b(["Version","Opera"]);if(Fb()?Db("Opera"):Eb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Fb()?0:Eb("Edge"))return b(["Edge"]);if(Aaa())return b(["Edg"]);break;case "Chromium":if(Ib())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Hb()||a==="Safari"&&Jb()||a==="Android Browser"&&Baa()||a==="Silk"&&Eb("Silk")?(b=c[2])&&b[1]||"":""}; +Eaa=function(a){if(Fb()&&a!=="Silk"){var b=Cb.brands.find(function(c){return c.brand===a}); +if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Daa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])}; +g.Kb=function(a){return a[a.length-1]}; +Faa=function(a,b){var c=a.length,d=typeof a==="string"?a.split(""):a;for(--c;c>=0;--c)c in d&&b.call(void 0,d[c],c,a)}; +g.Mb=function(a,b,c){b=Lb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}; +Lb=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1}; +g.Ob=function(a,b){return Gaa(a,b)>=0}; +Haa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}; +g.Rb=function(a,b){b=Gaa(a,b);var c;(c=b>=0)&&g.Qb(a,b);return c}; +g.Qb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1}; +g.Sb=function(a,b){b=Lb(a,b);b>=0&&g.Qb(a,b)}; +Iaa=function(a,b){var c=0;Faa(a,function(d,e){b.call(void 0,d,e,a)&&g.Qb(a,e)&&c++})}; +g.Tb=function(a){return Array.prototype.concat.apply([],arguments)}; +g.Ub=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1}; +g.ac=function(a,b){a.sort(b||Yb)}; +Laa=function(a,b){var c=Yb;g.ac(a,function(d,e){return c(b(d),b(e))})}; +g.bc=function(a,b){if(!g.Oa(a)||!g.Oa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Maa,e=0;eb?1:a=0})}; +Vaa=function(a){return g.mc?"webkit"+a:a.toLowerCase()}; +nc=function(a,b){g.ob.call(this,a?a.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.timeStamp=0;this.j=null;a&&this.init(a,b)}; +oc=function(a){return!(!a||!a[Waa])}; +Yaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Fd=e;this.key=++Xaa;this.removed=this.kJ=!1}; +pc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Fd=null}; +g.sc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; +g.tc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; +uc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; +g.vc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; +Zaa=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; +g.wc=function(a){for(var b in a)return b}; +$aa=function(a){for(var b in a)return a[b]}; +g.xc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; +g.yc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; +g.zc=function(a,b){return a!==null&&b in a}; +g.Ac=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; +Bc=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}; +aba=function(a,b){return(b=Bc(a,b))&&a[b]}; +g.Cc=function(a){for(var b in a)return!1;return!0}; +g.bba=function(a){for(var b in a)delete a[b]}; +g.Dc=function(a,b,c){return a!==null&&b in a?a[b]:c}; +g.Ec=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0}; +g.Fc=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; +g.Gc=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Gc(a[c]);return b}; +g.Hc=function(a,b){for(var c,d,e=1;e]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.td(c,Bd)}; +Jba=function(a,b,c,d){a=Iba(a);b=b||g.Ja;c=c instanceof dd?ed(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)}; +Iba=function(a){a=sd(a);return a!==void 0?a:g.qd.toString()}; +g.Cd=function(a,b,c){return Math.min(Math.max(a,b),c)}; +g.Dd=function(a,b){a%=b;return a*b<0?a+b:a}; +Ed=function(a,b,c){return a+c*(b-a)}; +g.Fd=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}; +Gd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; +g.Hd=function(a,b){this.width=a;this.height=b}; +g.Id=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; +g.Jd=function(a,b){b=sd(b);b!==void 0&&(a.href=b)}; +Kba=function(a){var b="true".toString(),c=[new yd];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof yd)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); +a.setAttribute("data-loaded",b)}; +Ld=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);}; +g.Md=function(a,b,c){var d=window;a=sd(a);return a!==void 0?d.open(a,b,c):null}; +Nd=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; +Od=function(a){var b=Nd(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; +g.Pd=function(a,b){a.src=g.kd(b);Od(a)}; +Lba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b}; +Nba=function(a){var b=g.La("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ja.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Mba(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message; +if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Qd[c])c=Qd[c];else{c=String(c);if(!Qd[c]){var f=/function\s+([^\(]+)/m.exec(c);Qd[c]=f?f[1]:"[Anonymous]"}c=Qd[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message, +name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}}; +Mba=function(a,b){b||(b={});b[Oba(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Oba(a)]&&(c+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(c+=typeof a==="string"?a:a.message+"\n"),c+=Mba(a,b));return c}; +Oba=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack}; +Pba=function(a,b){return a.parseFromString(g.wd(b),"text/xml")}; +g.Rd=function(a){return encodeURIComponent(String(a))}; +Sd=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; +Td=function(a){return a=sb(a)}; +g.Ud=function(a){return a==null?"":String(a)}; +Vd=function(a){for(var b=0,c=0;c>>0;return b}; +Wd=function(a){var b=Number(a);return b==0&&g.rb(a)?NaN:b}; +Qba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; +Rba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +Sba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; +Tba=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c}; +Zd=function(a){return a?new Xd(Yd(a)):Uba||(Uba=new Xd)}; +$d=function(a,b){return typeof b==="string"?a.getElementById(b):b}; +g.ae=function(a,b){return(b||document).getElementsByTagName(String(a))}; +g.ce=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.be(document,"*",a,b)}; +g.de=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.be(c,"*",a,b)[0]||null}return a||null}; +g.be=function(a,b,c,d){a=d||a;b=b&&b!="*"?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split=="function"&&g.Ob(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; +ee=function(a,b){g.sc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Vba.hasOwnProperty(d)?a.setAttribute(Vba[d],c):qb(d,"aria-")||qb(d,"data-")?a.setAttribute(d,c):a[d]=c})}; +Wba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Hd(a.clientWidth,a.clientHeight)}; +Yba=function(a){var b=Xba(a);a=a.parentWindow||a.defaultView;return new g.Fd(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; +Xba=function(a){return a.scrollingElement?a.scrollingElement:g.mc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement}; +fe=function(a){return a?a.parentWindow||a.defaultView:window}; +he=function(a,b,c){var d=arguments,e=document,f=d[1],h=ge(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):ee(h,f));d.length>2&&Zba(e,h,d,2);return h}; +Zba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)} +for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.Qa(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.dc(h?g.Ub(f):f,e)}}}; +g.ie=function(a){return ge(document,a)}; +ge=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}; +g.je=function(a){return document.createTextNode(String(a))}; +g.ke=function(a,b){a.appendChild(b)}; +g.ne=function(a){for(var b;b=a.firstChild;)a.removeChild(b)}; +oe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}; +g.pe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; +g.qe=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; +Yd=function(a){return a.nodeType==9?a:a.ownerDocument||a.document}; +g.re=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.ne(a),a.appendChild(Yd(a).createTextNode(String(b)))}; +aca=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||$ba(a)):a.hasAttribute("tabindex")&&$ba(a)}; +$ba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}; +te=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return se(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Ob(e.className.split(/\s+/),c))},!0)}; +se=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; +Xd=function(a){this.j=a||g.Ja.document||document}; +ve=function(a){typeof g.Ja.setImmediate!=="function"||g.Ja.Window&&g.Ja.Window.prototype&&g.Ja.Window.prototype.setImmediate==g.Ja.setImmediate?(ue||(ue=bca()),ue(a)):g.Ja.setImmediate(a)}; +bca=function(){var a=g.Ja.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!Eb("Presto")&&(a=function(){var e=g.ie("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ta)(function(m){if((l=="*"||m.origin==l)&&m.data==h)this.port1.onmessage()}, +this); +f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); +if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.zX;c.zX=null;e()}}; +return function(e){d.next={zX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ja.setTimeout(e,0)}}; +we=function(a){g.Ja.setTimeout(function(){throw a;},0)}; +xe=function(){this.B=this.j=null}; +ye=function(){this.next=this.scope=this.Km=null}; +g.Be=function(a,b){ze||cca();Ae||(ze(),Ae=!0);dca.add(a,b)}; +cca=function(){if(g.Ja.Promise&&g.Ja.Promise.resolve){var a=g.Ja.Promise.resolve(void 0);ze=function(){a.then(eca)}}else ze=function(){ve(eca)}}; +eca=function(){for(var a;a=dca.remove();){try{a.Km.call(a.scope)}catch(b){we(b)}kba(fca,a)}Ae=!1}; +g.De=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Zc)try{var b=this;a.call(void 0,function(c){Ce(b,2,c)},function(c){Ce(b,3,c)})}catch(c){Ce(this,3,c)}}; +gca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; +Ee=function(a,b,c){var d=hca.get();d.C=a;d.B=b;d.context=c;return d}; +Fe=function(a){if(a instanceof g.De)return a;var b=new g.De(g.Zc);Ce(b,2,a);return b}; +Ge=function(a){return new g.De(function(b,c){c(a)})}; +g.jca=function(a,b,c){ica(a,b,c,null)||g.Be(g.Ua(b,a))}; +kca=function(a){return new g.De(function(b,c){a.length||b(void 0);for(var d=0,e;d1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?nca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):oca(c),pca(c,e,3,b)))}a.C=null}else Ce(a,3,b)}; +He=function(a,b){a.B||a.j!=2&&a.j!=3||qca(a);a.D?a.D.next=b:a.B=b;a.D=b}; +rca=function(a,b,c,d){var e=Ee(null,null,null);e.j=new g.De(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f; +e.B=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Je?h(l):f(m)}catch(n){h(n)}}:h}); +e.j.C=a;He(a,e);return e.j}; +Ce=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,ica(c,a.kfa,a.lfa,a)||(a.N=c,a.j=b,a.C=null,qca(a),b!=3||c instanceof Je||sca(a,c)))}; +ica=function(a,b,c,d){if(a instanceof g.De)return He(a,Ee(b||g.Zc,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Qa(a))try{var f=a.then;if(typeof f==="function")return tca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1}; +tca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))} +function h(m){l||(l=!0,c.call(e,m))} +var l=!1;try{b.call(a,h,f)}catch(m){f(m)}}; +qca=function(a){a.K||(a.K=!0,g.Be(a.J8,a))}; +oca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b}; +pca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,uca(b,c,d);else try{b.D?b.C.call(b.context):uca(b,c,d)}catch(e){vca.call(null,e)}kba(hca,b)}; +uca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)}; +sca=function(a,b){a.G=!0;g.Be(function(){a.G&&vca.call(null,b)})}; +Je=function(a){kb.call(this,a)}; +lca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c}; +g.Ke=function(a,b){g.Vc.call(this);this.dj=a||1;this.fI=b||g.Ja;this.uX=(0,g.Ta)(this.Vea,this);this.q_=g.Wa()}; +g.Le=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.Ta)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.Ta)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Ja.setTimeout(a,b||0)}; +Me=function(a,b){var c=null;return(new g.De(function(d,e){c=g.Le(function(){d(b)},a); +c==-1&&e(Error("Failed to schedule timer."))})).Xk(function(d){g.Ja.clearTimeout(c); +throw d;})}; +g.Ne=function(a){g.O.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.Ke(this.flushInterval);this.j.listen("tick",this.JN,!1,this);g.P(this,this.j)}; +wca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.JN()}; +xca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; +yca=function(a){for(var b=0;b>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e=56320&&h<=57343){f=(f-55296)*1024+ +h-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; +Rca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")}; +Sca=function(a){for(var b=[],c=0;c>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; +g.Qe=function(a,b){b===void 0&&(b=0);Tca();b=Uca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; +g.Re=function(a,b){if(Vca&&!b)a=g.Ja.btoa(a);else{for(var c=[],d=0,e=0;e255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Qe(c,b)}return a}; +Xca=function(a){var b=[];Wca(a,function(c){b.push(c)}); +return b}; +Se=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.tb("=.",a[b-1])&&(c=g.tb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Wca(a,function(f){d[e++]=f}); +return e!==c?d.subarray(0,e):d}; +Wca=function(a,b){function c(m){for(;d>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}}; +Tca=function(){if(!Te){Te={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Uca[c]=d;for(var e=0;e>>0;of=b;pf=(a-b)/4294967296>>>0}; +sf=function(a){if(a<0){qf(0-a);var b=g.w(rf(of,pf));a=b.next().value;b=b.next().value;of=a>>>0;pf=b>>>0}else qf(a)}; +jda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a}; +tf=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else bf()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+kda(c)+kda(a));return c}; +kda=function(a){a=String(a);return"0000000".slice(a.length)+a}; +lda=function(){var a=of,b=pf;b&2147483648?bf()?a=""+(BigInt(b|0)<>>0)):(b=g.w(rf(a,b)),a=b.next().value,b=b.next().value,a="-"+tf(a,b)):a=tf(a,b);return a}; +uf=function(a){if(a.length<16)sf(Number(a));else if(bf())a=BigInt(a),of=Number(a&BigInt(4294967295))>>>0,pf=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");pf=of=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),pf*=1E6,of=of*1E6+d,of>=4294967296&&(pf+=Math.trunc(of/4294967296),pf>>>=0,of>>>=0);b&&(b=g.w(rf(of,pf)),a=b.next().value,b=b.next().value,of=a,pf=b)}}; +rf=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; +vf=function(a){a.Hoa=!0;return a}; +wf=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}; +mda=function(a){return a.displayName||a.name||"unknown type name"}; +xf=function(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Na(a)+": "+a);return a}; +yf=function(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:nda.test(a)}; +oda=function(a){if(typeof a!=="number")throw af("int32");if(!Number.isFinite(a))throw af("int32");return a|0}; +zf=function(a){return a==null?a:oda(a)}; +Af=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0}; +Bf=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a>>>0:void 0}; +Ef=function(a){if(a!=null){var b=!!b;if(!yf(a))throw af("int64");a=typeof a==="string"?Cf(a):b?pda(a):Df(a)}return a}; +qda=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467}; +rda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}; +sda=function(a){if(a<0){sf(a);var b=tf(of,pf);a=Number(b);return Number.isSafeInteger(a)?a:b}if(qda(String(a)))return a;sf(a);return pf*4294967296+(of>>>0)}; +Df=function(a){yf(a);a=Math.trunc(a);Number.isSafeInteger(a)||(sf(a),a=jda(of,pf));return a}; +pda=function(a){yf(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);rda(b)?a=b:(sf(a),a=lda())}return a}; +Cf=function(a){yf(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));rda(a)||(uf(a),a=lda());return a}; +tda=function(a){if(a==null)return a;if(yf(a)){if(typeof a==="string"){yf(a);var b=Math.trunc(Number(a));Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),qda(a)||(uf(a),a=tf(of,pf)));return a}if(typeof a==="number")return yf(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:sda(a)}}; +uda=function(a){if(a==null||typeof a=="string"||Ue(a)||a instanceof We)return a}; +vda=function(a){if(typeof a!=="string")throw Error();return a}; +Ff=function(a){if(a!=null&&typeof a!=="string")throw Error();return a}; +Gf=function(a){return a==null||typeof a==="string"?a:void 0}; +Hf=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+mda(b)+" but got "+(a&&mda(a.constructor)));return a}; +wda=function(a,b,c){if(a!=null&&typeof a==="object"&&a.jL===If)return a;if(Array.isArray(a)){var d=kf(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&ef(a,e);return new b(a)}}; +zda=function(a){var b=Jf(a);if(b)return b;(b=Math.random()>.01)||(Kf===void 0&&(Kf=typeof Proxy!=="function"?!1:!0),b=!Kf||!Proxy);if(b)return a;b=new Proxy(a,{set:function(c,d,e){xda();c[d]=e;return!0}}); +yda(a,b);return b}; +xda=function(){$e()}; +Jf=function(a){var b;return(b=Lf)==null?void 0:b.get(a)}; +Ada=function(a){var b;return((b=Mf)==null?void 0:b.get(a))||a}; +yda=function(a,b){(Lf||(Lf=new WeakMap)).set(a,b);(Mf||(Mf=new WeakMap)).set(b,a)}; +Of=function(a,b){Nf=b;a=new a(b);Nf=void 0;return a}; +Qf=function(a){switch(typeof a){case "boolean":return Pf||(Pf=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Bda||(Bda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}; +Rf=function(a,b,c){a==null&&(a=Nf);Nf=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=kf(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(hf(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<< +14}}}ef(a,d);return a}; +Dda=function(a,b){return Cda(b)}; +Cda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(lf(a,void 0,0))return}else{if(Ue(a))return Zca(a);if(a instanceof We){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Zca(b)}}}return a}; +Eda=function(a,b,c){var d=cf(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]}; +Xf=function(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Kda(a,b,e,c)&&Zf!=null){var h;a=(h=Lda)!=null?h:Lda={};h=a[Zf]||0;h>=4||(a[Zf]=h+1,$e())}return d}return Kda(a,b,e,c)}}; +ag=function(a,b,c){var d=a.xb,e=Tf(d);mf(e);$f(d,e,b,c);return a}; +$f=function(a,b,c,d,e){var f=b>>14&1023||536870912;if(c>=f||e&&!Mda){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c "+a)}; +Kg=function(a){if(typeof a==="string")return{buffer:cda(a),Gx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Gx:!1};if(a.constructor===Uint8Array)return{buffer:a,Gx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Gx:!1};if(a.constructor===We)return{buffer:Ye(a)||new Uint8Array(0),Gx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Gx:!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"); +}; +Ng=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; +Pg=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<>>0,c>>>0);throw Jg();}; +Og=function(a,b){a.j=b;if(b>a.C)throw cea(a.C,b);}; +Qg=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Jg();Og(a,c);return e}; +Rg=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];Og(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; +Sg=function(a){var b=Rg(a);return Rg(a)*4294967296+(b>>>0)}; +Tg=function(a){var b=Rg(a),c=Rg(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; +Ug=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;ca.C)throw cea(b,a.C-c);a.j=d;return c}; +fea=function(a,b){if(b==0)return Xe();var c=dea(a,b);a.XI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):eea?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?Xe():new We(c,Ve)}; +Wg=function(a,b){if(Vg.length){var c=Vg.pop();c.init(a,void 0,void 0,b);a=c}else a=new Ng(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;gea(this,b)}; +gea=function(a,b){b=b===void 0?{}:b;a.wP=b.wP===void 0?!1:b.wP}; +hea=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Qg(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw bea(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; +Xg=function(a){switch(a.B){case 0:a.B!=0?Xg(a):Ug(a.j);break;case 1:a=a.j;Og(a,a.j+8);break;case 2:if(a.B!=2)Xg(a);else{var b=Qg(a.j)>>>0;a=a.j;Og(a,a.j+b)}break;case 5:a=a.j;Og(a,a.j+4);break;case 3:b=a.D;do{if(!hea(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}Xg(a)}while(1);break;default:throw bea(a.B,a.C);}}; +Yg=function(a,b,c){var d=a.j.C,e=Qg(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d}; +ah=function(a){var b=Qg(a.j)>>>0;a=a.j;var c=dea(a,b);a=a.B;if(iea){var d=a,e;(e=Zg)||(e=Zg=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if($g===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),$g=!0}catch(p){$g=!1}}!$g&&(Zg=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f=b?Oe():(m=a[f++],l<194||(m&192)!==128?(f--,Oe()):c.push((l&31)<<6|m&63)): +l<240?f>=b-1?Oe():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,Oe()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?Oe():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,Oe()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Oe(),c.length>=8192&&(h=Mca(h,c),c.length=0);f=Mca(h,c)}return f}; +jea=function(a){var b=Qg(a.j)>>>0;return fea(a.j,b)}; +kea=function(a){return a}; +bh=function(a){return a}; +oea=function(a,b,c,d){return lea(a,b,c,d,mea,nea)}; +rea=function(a,b,c,d){return lea(a,b,c,d,pea,qea)}; +lea=function(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var h=0,l=0,m=0,n=0,p=0,q=c.length-1;q>=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=sea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,y=c.length-1;y>=0;y--){var A=c[y];if(!(A==null||d&&y===c.length-1&&A===d)){A=y-b;var D=e(A,t)+f(q,r,u);D=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h1?a-1:0)}; +pea=function(a,b){return(a>1?a-1:0)+(a-b)*4}; +nea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b}; +mea=function(a){return 40+4*a}; +sea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2}; +ch=function(a,b,c){this.xb=Rf(a,b,c)}; +tea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Vf(b,32);return Of(a,b)}; +fh=function(a){var b=dh?a.xb:Sf(a.xb,Gda,void 0,void 0,!1);var c=!dh;var d=uea?void 0:a.constructor.wpa;var e=Tf(c?a.xb:b);if(a=b.length){var f=b[a-1],h=hf(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!eh&&Mda&&!(e&512),p;e=(p=eh)!=null?p:bh;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t0;a--){D=a-1;A=p[D];D-=l;if(!(A==null||lf(A,d,D)||gf(A)&&A.size===0))break;F=!0}if(p!==b||q||F){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(F||q||r)p.length=a;r&&p.push(r)}b=p}return b}; +vea=function(a,b){this.B=a>>>0;this.j=b>>>0}; +xea=function(a){if(!a)return wea||(wea=new vea(0,0));if(!/^\d+$/.test(a))return null;uf(a);return new vea(of,pf)}; +yea=function(a,b){this.B=a>>>0;this.j=b>>>0}; +Aea=function(a){if(!a)return zea||(zea=new yea(0,0));if(!/^-?\d+$/.test(a))return null;uf(a);return new yea(of,pf)}; +gh=function(){this.j=[]}; +Bea=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; +hh=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)}; +Cea=function(a,b){if(b>=0)hh(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; +ih=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; +Dea=function(){this.C=[];this.B=0;this.j=new gh}; +jh=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)}; +kh=function(a,b,c){hh(a.j,b*8+c)}; +Eea=function(a,b,c){c!=null&&(typeof c==="string"&&xea(c),kh(a,b,1),typeof c==="number"?(a=a.j,qf(c),ih(a,of),ih(a,pf)):(c=xea(c),a=a.j,b=c.j,ih(a,c.B),ih(a,b)))}; +lh=function(a,b,c){kh(a,b,2);hh(a.j,c.length);jh(a,a.j.end());jh(a,c)}; +mh=function(a,b,c,d){this.rN=a;this.sN=b;this.j=c;this.p4=d}; +Gea=function(a){return Array.isArray(a)?a[0]instanceof mh?a:[Fea,a]:[a,void 0]}; +nh=function(a,b,c){if(Array.isArray(b)){var d=kf(b);if(d&4)return b;for(var e=0,f=0;e0?void 0:b]}; +Iea=function(a){var b=a[th];if(b)return b;b=uh(a,a[th]=new sh,Mea,Mea,Lea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(Qf(a[0])===Pf?qh?b=qh:(b=new sh,b.uB=Qf(!0),b=qh=b):b=ph||(ph=new sh),b=a[th]=b):b.G=!0}return b}; +Nea=function(a,b,c){a[b]=c}; +uh=function(a,b,c,d,e){e=e===void 0?Nea:e;b.uB=Qf(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}}; +afa=function(a){return function(){var b=new Dea;Qea(this.xb,b,xh(a));jh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h>>31)&4294967295;q=e[0];var u=e[1],y=e[2],A=e[3],D=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=A^u&(y^A);var H=1518500249}else F=u^y^A,H=1859775393;else t<60?(F=u&y|A&(u|y),H=2400959708):(F=u^y^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+D+H+r[t]&4294967295;D=A;A=y;y=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]= +e[2]+y&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+D&4294967295} +function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,y=q.length;u=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q} +for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,n8:function(){for(var q=d(),r="",t=0;t=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Sd(e):"")}}}; +Gi=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; +Hi=function(a,b,c){if(Array.isArray(b))for(var d=0;d=0&&bc)e=c;d+=b.length+1;return Sd(a.slice(d,e!==-1?e:0))}; +Mi=function(a,b){for(var c=a.search(Kfa),d=0,e,f=[];(e=Jfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Lfa,"$1")}; +Mfa=function(a,b,c){return Ki(Mi(a,b),b,c)}; +g.Ni=function(a){g.Vc.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Aa=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ga=this.Z=this.Fa=!1;this.ra=0;this.qa=null;this.Ma="";this.K=!1}; +Ofa=function(a,b,c,d,e,f,h){var l=new g.Ni;Nfa.push(l);b&&l.listen("complete",b);l.lG("ready",l.N7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; +Qfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Pfa(a);Oi(a)}; +Pfa=function(a){a.Fa||(a.Fa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; +Rfa=function(a){if(a.C&&typeof Pi!="undefined")if(a.Aa[1]&&g.Qi(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.Qi(a)==4)g.Le(a.M0,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Ri(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.Qi(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Pfa(a)}}finally{Oi(a)}}}; +Oi=function(a,b){if(a.j){Sfa(a);var c=a.j,d=a.Aa[0]?function(){}:null; +a.j=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}; +Sfa=function(a){a.qa&&(g.Ja.clearTimeout(a.qa),a.qa=null)}; +Ri=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=g.Bi(1,String(a.Y)),!a&&g.Ja.self&&g.Ja.self.location&&(a=g.Ja.self.location.protocol.slice(0,-1)),b=!Tfa.test(a?a.toLowerCase():"");c=b}return c}; +g.Qi=function(a){return a.j?a.j.readyState:0}; +g.Si=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}}; +g.Ti=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ma){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}}; +g.Ufa=function(a){var b={};a=(a.j&&g.Qi(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,b),sj(a,a.length>>1)]}; +pga=function(a){var b=g.w(oga(a,tj));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; +qga=function(a,b){var c=oga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.w(c);c=d.next().value;d=d.next().value;for(var e=1;e>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]}; +uj=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c}; +tga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new uj(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uj(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new uj(a)):new uj(a,c,b)}; +uga=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=tga(a))}; +vga=function(a,b,c,d,e){var f=a.index?Zi(a.logger,function(){return rga(a.index,pga(b),c,d,e)},"W"):"u"; +a.logger.F_(f)}; +wga=function(a,b,c){var d=g.w(a.index?Zi(a.logger,function(){return sga(pga(b),c)},"R"):["u"]),e=d.next().value; +d=d.next().value;a.logger.D_(e);return d}; +zga=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} +a=xga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=vj(a,l),d+=vj(a,l+4),e+=vj(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return yga.toString(e)}; +xga=function(a){for(var b=[],c=0;c>7,a.error.code]);d.set(c,4);return d}; +Gj=function(a,b,c){wj.call(this,a);this.D=b;this.clientState=c;this.B="S";this.j="q"}; +Aga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.Pe(a)}; +Hj=function(a,b,c){g.O.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.B=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})}; +Gga=function(a,b,c){try{if(a.Ka())throw new gj(21,"BNT:disposed");var d,e;return(e=(d=Cga(a,b,c))!=null?d:Dga(a,b,c))!=null?e:Ega(a,b,c)}catch(f){if(!b.JR)throw f;return Fga(a,c,f)}}; +Cga=function(a,b,c){var d;return(d=a.j)==null?void 0:yj(d,function(){return Ij(a,b)},c,function(e){var f; +if(a.j instanceof zj&&((f=b.Vh)==null?0:f.HC))try{var h;(h=a.cache)==null||vga(h,Ij(a,b),e,b.Vh.Ow,a.D)}catch(l){a.reportError(new gj(24,"ELX:write",l))}})}; +Dga=function(a,b,c){var d;if((d=b.Vh)!=null&&d.Kz)try{var e,f=(e=a.cache)==null?void 0:wga(e,Ij(a,b),b.Vh.Ow);return f?c?Zi(a.logger,function(){return g.Qe(f,2)},"a"):f:void 0}catch(h){a.reportError(new gj(23,"RXO:read",h))}}; +Ega=function(a,b,c){if(!b.IR)throw new gj(29,"SDF:notready");return yj(new Gj(a.logger,a.B,a.state),function(){return Ij(a,b)},c)}; +Fga=function(a,b,c){c=c instanceof gj?c:new gj(5,"TVD:error",c);a.reportError(c);return yj(new Cj(a.logger,c),function(){return[]},b)}; +Ij=function(a,b){return b.WE?b.WE:b.zl?Zi(a.logger,function(){return b.WE=Aga(b.zl)},"c"):[]}; +Jj=function(a){this.xb=Rf(a)}; +Hga=function(a,b,c){this.B=a;this.j=b;this.C=c}; +Kj=function(a,b){b=b===void 0?{}:b;this.Rda=a;this.j=b}; +Lj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e}; +Iga=function(a,b,c){c=c===void 0?{}:c;return new Hga(b,a,c)}; +Mj=function(a){this.xb=Rf(a)}; +Nj=function(a){this.xb=Rf(a)}; +Oj=function(a){this.xb=Rf(a)}; +Pj=function(a){this.xb=Rf(a)}; +Qj=function(a,b){this.N=a.oaa;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&Jga(this)}; +Mga=function(a,b){g.Mc(a.j,"complete",function(){if(Ri(a.j)){var c=g.Si(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){Rj(a,new ti(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=yfa(a.j.getStatus());Sj(a,Tj(a));c==0?Kga(a,d):Rj(a,new ti(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Si(a.j);d=Tj(a);if(c){var e=Lga(a,c);c=e.code;var f=e.details; +e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;Sj(a,d);Rj(a,new ti(c,f,e))}})}; +Jga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){Rj(a,new ti(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Kga(a,d)}if("2"in b)for(b=Lga(a,b["2"]),c=0;c-1&&a.splice(b,1)}; +Kga=function(a,b){for(var c=0;c>4&15).toString(16)+(a&15).toString(16)}; +fk=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; +jk=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Fi(a.C,function(b,c){a.add(Sd(b),c)}))}; +Sga=function(a,b){jk(a);b=kk(a,b);return a.j.has(b)}; +g.Tga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(kk(a,b),g.Ub(c)),a.B=a.B+c.length)}; +kk=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b}; +Pga=function(a,b){b&&!a.D&&(jk(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Tga(this,e,c))},a)); +a.D=b}; +g.Uga=function(a){var b="";g.sc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"}); +return b}; +g.lk=function(a,b,c){if(g.Cc(c))return a;c=g.Uga(c);if(typeof a==="string")return Ki(a,g.Rd(b),c);g.hk(a,b,c);return a}; +g.mk=function(a){g.O.call(this);this.B=a;this.j={}}; +Vga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h0&&(b[e]=d)},a); +return b}; +wha=function(a){a=Zk(a);var b=[];g.sc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))}); +return b}; +yha=function(a){Wk(a,"od",xha);Wk(a,"opac",$k).j=!0;Wk(a,"sbeos",$k).j=!0;Wk(a,"prf",$k).j=!0;Wk(a,"mwt",$k).j=!0;Wk(a,"iogeo",$k)}; +zha=function(){this.j=this.Ku=null}; +al=function(){}; +cl=function(){if(!bl())throw Error();}; +bl=function(){return!(!dl||!dl.performance)}; +el=function(a){return a?a.passive&&Aha()?a:a.capture||!1:!1}; +fl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,el(d)),!0):!1}; +gl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0}; +Bha=function(){}; +Cha=function(){return(zb||Bb)&&Cb?Cb.mobile:!hl()&&(Eb("iPod")||Eb("iPhone")||Eb("Android")||Eb("IEMobile"))}; +hl=function(){return(zb||Bb)&&Cb?!Cb.mobile&&(Eb("iPad")||Eb("Android")||Eb("Silk")):Eb("iPad")||Eb("Android")&&!Eb("Mobile")||Eb("Silk")}; +il=function(a){try{return!!a&&a.location.href!=null&&Raa(a,"foo")}catch(b){return!1}}; +jl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}; +Eha=function(){var a=[];jl(Dha,function(b){a.push(b)}); +return a}; +Fha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""}; +Iha=function(){var a=Gha("IFRAME"),b={};g.dc(Hha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)}); +return b}; +Gha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())}; +Jha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,il(a)&&(b=a);return b}; +Nha=function(a){a=a||kl();for(var b=new Kha(g.Ja.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Lha.test(f.url)&&(c=f);if(f.url&&!f.eR){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Mha(b,e,c)}; +kl=function(){var a=g.Ja,b=[],c=null;do{var d=a;if(il(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Kha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Ja;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;ab?c.length:b;return 3997-b-a.C.length-1}; +ol=function(a,b){this.j=a;this.depth=b}; +Rha=function(){function a(l,m){return l==null?m:l} +var b=kl(),c=Math.max(b.length-1,0),d=Nha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new ol([f.url,f.eR?2:0],a(f.depth,1)));e&&e!=f&&h.push(new ol([e.url,2],0));b.url&&b!=f&&h.push(new ol([b.url,0],a(b.depth,c)));d=g.pl(h,function(l,m){return h.slice(0,h.length-m)}); +!b.url||(f||e)&&b!=f||(e=Fha(b.url))&&d.push([new ol([e,1],a(b.depth,c))]);d.push([]);return g.pl(d,function(l){return Qha(c,l)})}; +Qha=function(a,b){g.ql(b,function(e){return e.depth>=0}); +var c=rl(b,function(e,f){return Math.max(e,f.depth)},-1),d=Naa(c+2); +d[0]=a;g.dc(b,function(e){return d[e.depth+1]=e.j}); +return d}; +Sha=function(){var a=a===void 0?Rha():a;return a.map(function(b){return nl(b)})}; +Tha=function(a){var b=!1;b=b===void 0?!1:b;dl.google_image_requests||(dl.google_image_requests=[]);var c=Gha("IMG",dl.document);b&&(c.attributionSrc="");c.src=a;dl.google_image_requests.push(c)}; +sl=function(a){var b="hh";if(a.hh&&a.hasOwnProperty(b))return a.hh;var c=new a;a.hh=c;a.hasOwnProperty(b);return c}; +tl=function(){this.B=new Bha;this.j=bl()?new cl:new al}; +Uha=function(){ul();var a=dl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof dl.setInterval==="function"&&typeof dl.clearInterval==="function"&&typeof dl.setTimeout==="function"&&typeof dl.clearTimeout==="function")}; +Vha=function(){ul();return Sha()}; +Wha=function(){}; +ul=function(){var a=sl(Wha);if(!a.j){if(!dl)throw Error("Context has not been set and window is undefined.");a.j=sl(tl)}return a.j}; +vl=function(a){this.xb=Rf(a)}; +Xha=function(a){this.C=a;this.j=-1;this.B=this.D=0}; +wl=function(a,b){return function(){var c=g.Ca.apply(0,arguments);if(a.j>-1)return b.apply(null,g.x(c));try{return a.j=a.C.j.now(),b.apply(null,g.x(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}}; +Yha=function(a,b){this.B=a;this.C=b;this.j=new Xha(a)}; +Zha=function(){this.j={}}; +aia=function(){var a=xl().flags,b=$ha;a=a.j[b.key];if(b.valueType==="proto"){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue}; +eia=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Lc=new Vk;Wk(this.Lc,"mv",bia).j=!0;Wk(this.Lc,"omid",$k);Wk(this.Lc,"epoh",$k).j=!0;Wk(this.Lc,"epph",$k).j=!0;Wk(this.Lc,"umt",$k).j=!0;Wk(this.Lc,"phel",$k).j=!0;Wk(this.Lc,"phell",$k).j=!0;Wk(this.Lc,"oseid",cia).j=!0;var a=this.Lc;a.j.sloi||(a.j.sloi=new Tk);a.j.sloi.j=!0;Wk(this.Lc,"mm",yl);Wk(this.Lc,"ovms",dia).j=!0;Wk(this.Lc,"xdi",$k).j=!0;Wk(this.Lc,"amp",$k).j=!0;Wk(this.Lc,"prf",$k).j=!0;Wk(this.Lc,"gtx",$k).j=!0;Wk(this.Lc, +"mvp_lv",$k).j=!0;Wk(this.Lc,"ssmol",$k).j=!0;Wk(this.Lc,"fmd",$k).j=!0;Wk(this.Lc,"gen204simple",$k);this.j=new Yha(ul(),this.Lc);this.D=!1;this.flags=new Zha}; +xl=function(){return sl(eia)}; +fia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof ll)var e=c;else e=new ll,jl(c,function(h,l){var m=e,n=m.D++;h=ml(l,h);m.j.push(n);m.B[n]=h}); +var f=e.Be(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(ul(),Tha(f))}catch(h){}}; +gia=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c}; +hia=function(){var a=a===void 0?g.Ja:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Wa()}; +iia=function(){var a=a===void 0?g.Ja:a;return(a=a.performance)&&a.now?a.now():null}; +jia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +Al=function(){var a=window;this.events=[];this.B=a||g.Ja;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=zl()||(b!=null?b:Math.random()<1)}; +kia=function(a){a&&Bl&&zl()&&(Bl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Bl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; +lia=function(){var a=Cl;this.j=Dl;this.kY="jserror";this.fU=!0;this.sO=null;this.B=this.zR;this.ud=a===void 0?null:a}; +mia=function(a,b,c){var d=El;return wl(xl().j.j,function(){try{if(d.ud&&d.ud.j){var e=d.ud.start(a.toString(),3);var f=b();d.ud.end(e)}else f=b()}catch(l){var h=d.fU;try{kia(e),h=d.B(a,new Fl(Gl(l)),void 0,c)}catch(m){d.zR(217,m)}if(!h)throw l;}return f})()}; +Hl=function(a,b,c,d){return wl(xl().j.j,function(){var e=g.Ca.apply(0,arguments);return mia(a,function(){return b.apply(c,e)},d)})}; +Gl=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n");break a}catch(e){b=c;break a}b=void 0}return b}; +Fl=function(a){gia.call(this,Error(a),{message:a})}; +nia=function(){dl&&typeof dl.google_measure_js_timing!="undefined"&&(dl.google_measure_js_timing||Cl.disable())}; +oia=function(a){El.sO=function(b){g.dc(a,function(c){c(b)})}}; +pia=function(a,b){return mia(a,b)}; +Il=function(a,b){return Hl(a,b)}; +Jl=function(a,b,c,d){El.zR(a,b,c,d)}; +Kl=function(){return Date.now()-qia}; +ria=function(){var a=xl().C,b=Ll>=0?Kl()-Ll:-1,c=Ml?Kl()-Nl:-1,d=Ol>=0?Kl()-Ol:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];Jl(637,Error(),.001);var f=b;c!=-1&&c1500&&d<4E3?500:h}; +Pl=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; +Ql=function(a){return a.right-a.left}; +Rl=function(a,b,c){b instanceof g.Fd?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a}; +sia=function(a,b,c){var d=new Pl(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; +Sl=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l}; +uia=function(a){var b=a!==a.top,c=a.top===Jha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Zaa(tia,function(h){return typeof f[h]==="function"})||(e=1)); +return{Mo:f,compatibility:e,Dea:d}}; +via=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"}; +wia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Hd(b.innerWidth,b.innerHeight)).round():Wba(b||window).round()}catch(d){return new g.Hd(-12245933,-12245933)}}; +Tl=function(a,b,c){try{a&&(b=b.top);var d=wia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new Pl(f,f,f,f);var h=Yba(Zd(b.document).j),l=h.x,m=h.y;return new Pl(m,l+f,m+e,l)}catch(n){return new Pl(-12245933,-12245933,-12245933,-12245933)}}; +g.Ul=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +Vl=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; +g.Xl=function(a,b,c){if(typeof b==="string")(b=Wl(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Wl(c,d);f&&(c.style[f]=e)}}; +Wl=function(a,b){var c=xia[b];if(!c){var d=Qba(b);c=d;a.style[d]===void 0&&(d=(g.mc?"Webkit":Yl?"Moz":g.Zl?"ms":null)+Sba(d),a.style[d]!==void 0&&(c=d));xia[b]=c}return c}; +g.$l=function(a,b){var c=a.style[Qba(b)];return typeof c!=="undefined"?c:a.style[Wl(a,b)]||""}; +am=function(a,b){var c=Yd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; +bm=function(a,b){return am(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; +g.dm=function(a,b,c){if(b instanceof g.Fd){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.cm(d,!1);a.style.top=g.cm(b,!1)}; +em=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; +yia=function(a){var b=Yd(a),c=bm(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=bm(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null}; +g.fm=function(a){var b=Yd(a),c=new g.Fd(0,0);if(a==(b?Yd(b):document).documentElement)return c;a=em(a);b=Yba(Zd(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; +Aia=function(a,b){var c=new g.Fd(0,0),d=fe(Yd(a));if(!Raa(d,"parent"))return c;do{var e=d==b?g.fm(a):zia(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; +g.mm=function(a,b){a=Bia(a);b=Bia(b);return new g.Fd(a.x-b.x,a.y-b.y)}; +zia=function(a){a=em(a);return new g.Fd(a.left,a.top)}; +Bia=function(a){if(a.nodeType==1)return zia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Fd(a.clientX,a.clientY)}; +g.nm=function(a,b,c){if(b instanceof g.Hd)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.cm(b,!0);a.style.height=g.cm(c,!0)}; +g.cm=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}; +g.om=function(a){var b=Cia;if(bm(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; +Cia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.mc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=em(a),new g.Hd(a.right-a.left,a.bottom-a.top)):new g.Hd(b,c)}; +g.pm=function(a,b){a.style.display=b?"":"none"}; +qm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; +Dia=function(a){return new Pl(a.top,a.right,a.bottom,a.left)}; +Eia=function(a){var b=a.top||0,c=a.left||0;return new Pl(b,c+(a.width||0),b+(a.height||0),c)}; +rm=function(a){return a!=null&&a>=0&&a<=1}; +Fia=function(){var a=g.yb();return a?sm("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return ub(a,b)})||ub(a,"OMI/")&&!ub(a,"XiaoMi/")?!0:ub(a,"Presto")&&ub(a,"Linux")&&!ub(a,"X11")&&!ub(a,"Android")&&!ub(a,"Mobi"):!1}; +Gia=function(){this.C=!il(dl.top);this.isMobileDevice=hl()||Cha();var a=kl();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Ci(a[a.length-1].url)||"":"";this.j=new Pl(0,0,0,0);this.D=new g.Hd(0,0);this.G=new g.Hd(0,0);this.N=new Pl(0,0,0,0);this.frameOffset=new g.Fd(0,0);this.K=0;this.Z=!1;this.B=!(!dl||!uia(dl).Mo);this.update(dl)}; +Hia=function(a,b){b&&b.screen&&(a.D=new g.Hd(b.screen.width,b.screen.height))}; +Iia=function(a,b){a:{var c=a.j?new g.Hd(Ql(a.j),a.j.getHeight()):new g.Hd(0,0);b=b===void 0?dl:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth); +m>c.height?m>p?(d=m,e=n):(d=p,e=q):m0||a.Z)return!0;a=ul().B.isVisible();var b=gl(um)===0;return a||b}; +tm=function(){return sl(Gia)}; +wm=function(a){this.C=a;this.B=0;this.j=null}; +xm=function(a,b,c){this.C=a;this.Ra=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new sia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ga="uk";this.Fa=!1;this.K=!0}; +ym=function(a,b){g.Ob(a.G,b)||(a.G.push(b),b.CA(a.j),b.nu(a.D),b.Kq()&&(a.Y=!0))}; +Jia=function(a){a=a.j;a.QV();a.PV();var b=tm();b.N=Tl(!1,a.C,b.isMobileDevice);Iia(tm(),a.C);a.D.j=a.ZY()}; +Kia=function(a){a.Y=a.G.length?sm(a.G,function(b){return b.Kq()}):!1}; +Lia=function(a){var b=g.Ub(a.G);g.dc(b,function(c){c.nu(a.D)})}; +zm=function(a){var b=g.Ub(a.G);g.dc(b,function(c){c.CA(a.j)}); +a.j!=a||Lia(a)}; +Am=function(a,b,c,d){this.element=a;this.j=new Pl(0,0,0,0);this.D=new Pl(0,0,0,0);this.B=b;this.Lc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new Sl(b.D,this.element,this.j,new Pl(0,0,0,0),0,0,Kl(),0)}; +Bm=function(a){this.G=!1;this.j=a;this.D=function(){}}; +Mia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b}; +Nia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +Oia=function(a,b){return a.Cb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.j0?d[c]-d[c-1]:d[c]})}; +Mm=function(){this.B=new Gm;this.Ra=new Fm;this.ra=this.N=-1;this.Ya=1E3;this.Xa=new Gm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Aa=-1}; +Nm=function(a,b){return Yia(a.B,b===void 0?!0:b)}; +Om=function(a,b,c,d){var e=e===void 0?!1:e;c=Hl(d,c);fl(a,b,c,{capture:e})}; +Qm=function(a,b){b=Pm(b);return b===0?0:Pm(a)/b}; +Pm=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}; +aja=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=a.parentElement||a){var d=Yd(a),e=d&&fe(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; +bja=function(a,b,c){if(!a||!b)return!1;b=Rl(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;il(window.top)&&window.top&&window.top.document&&(window=window.top);if(!via())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Yd(c))&&b.defaultView&&b.defaultView.frameElement)&&aja(b,a);var d=a===c;a=!d&&a&&se(a,function(e){return e===c}); +return!(b||d||a)}; +cja=function(a,b,c,d){return tm().C?!1:Ql(a)<=0||a.getHeight()<=0?!0:c&&d?pia(208,function(){return bja(a,b,c)}):!1}; +Rm=function(a,b,c){g.O.call(this);this.position=dja.clone();this.gL=this.iK();this.uR=-2;this.timeCreated=Date.now();this.s3=-1;this.qq=b;this.XK=null;this.TE=!1;this.xL=null;this.opacity=-1;this.requestSource=c;this.cfa=!1;this.AR=function(){}; +this.K3=function(){}; +this.qk=new zha;this.qk.Ku=a;this.qk.j=a;this.wu=!1;this.Vw={MR:null,LR:null};this.N2=!0;this.XH=null;this.NA=this.x$=!1;xl().K++;this.wi=this.jQ();this.m3=-1;this.Yf=null;this.hasCompleted=this.u$=!1;this.Lc=new Vk;yha(this.Lc);eja(this);this.requestSource==1?Xk(this.Lc,"od",1):Xk(this.Lc,"od",0)}; +eja=function(a){a=a.qk.Ku;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:fja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Rba()):!!a.getAttribute("data-"+Rba());b&&(tm().B=!0)}; +Sm=function(a,b){b!=a.NA&&(a.NA=b,a=tm(),b?a.K++:a.K>0&&a.K--)}; +gja=function(a,b){if(a.Yf){if(b.getName()===a.Yf.getName())return;a.Yf.dispose();a.Yf=null}b=b.create(a.qk.j,a.Lc,a.Kq());if(b=b!=null&&b.KN()?b:null)a.Yf=b}; +hja=function(a,b,c){if(!a.XK||a.qq==-1||b.B===-1||a.XK.B===-1)return 0;a=b.B-a.XK.B;return a>c?0:a}; +ija=function(a,b,c){if(a.Yf){a.Yf.Gt();var d=a.Yf.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.xL=new g.Fd(h.left-f.left,h.top-f.top)}f=a.KM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.OY(d);a.XK=d;a.Ta(f,b,c,!1,h,e,d.Z)}}; +jja=function(a){if(a.TE&&a.XH){var b=Yk(a.Lc,"od")==1,c=tm().j,d=a.XH,e=a.Yf?a.Yf.getName():"ns",f=a.xL,h=new g.Hd(Ql(c),c.getHeight());c=a.KM();a={Kea:e,xL:f,Cfa:h,KM:c,Ae:a.wi.Ae,xfa:b};if(b=d.B){b.Gt();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Fd(h.left-f.left,h.top-f.top),l=new g.Hd(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Kea:b.getName(),xL:h,Cfa:l,KM:c,xfa:!1,Ae:e}}else c=null;c&&Via(d,a,c)}}; +kja=function(a,b,c){b&&(a.AR=b);c&&(a.K3=c)}; +g.Tm=function(){}; +g.Um=function(a){return{value:a,done:!1}}; +lja=function(){this.D=this.j=this.C=this.B=this.G=0}; +mja=function(a){var b={};var c=g.Wa()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; +nja=function(){Qk.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +Vm=function(a){return rm(a.volume)&&a.volume>0}; +Wm=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d; +return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return oja(f,b,c)}}; +Xm=function(a,b){return function(c){return b(c)?c[a]:void 0}}; +pja=function(a){return function(b){for(var c=0;c0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})}; +qja=function(){this.B=this.j=""}; +rja=function(){}; +Zm=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.Hc(c,a);return Em(Dm(new Cm,c))}; +sja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)this.B[b][1]>0&&(this.j[b]=0);this.C=0}; +$m=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)}; +tja=function(a){var b=g.yc(a.B),c=0,d;for(d in a.j)g.Ob(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c}; +uja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b}; +an=function(){this.j=this.B=0}; +bn=function(){Mm.call(this);this.C=new Fm;this.La=this.Y=this.Fa=0;this.Z=-1;this.fb=new Fm;this.G=new Fm;this.j=new Gm;this.K=this.D=-1;this.qa=new Fm;this.Ya=2E3;this.Ma=new an;this.Wa=new an;this.Va=new an}; +cn=function(a,b,c){var d=a.La;Ml||c||a.Z==-1||(d+=b-a.Z);return d}; +vja=function(){this.C=!1}; +dn=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0}; +en=function(a,b){dn.call(this,a,b);this.N=[]}; +wja=function(){}; +fn=function(){}; +gn=function(a,b,c,d){Am.call(this,a,b,c,d)}; +hn=function(a,b,c){Am.call(this,null,a,b,c);this.K=a.isActive();this.G=0}; +jn=function(a){return[a.top,a.left,a.bottom,a.right]}; +kn=function(a,b,c,d,e,f){f=f===void 0?new fn:f;Rm.call(this,b,c,d);this.SS=e;this.tP=0;this.Bi={};this.Jg=new sja;this.b4={};this.jj="";this.Ya=null;this.Ab=!1;this.j=[];this.xs=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.ra=this.qa=0;this.Ga=-1;this.fb=this.Xa=!1;this.Fa=this.Z=this.B=this.PC=this.Jb=0;new Gm;this.Ma=this.Va=0;this.Wa=-1;this.Ik=0;this.N=g.Zc;this.Aa=[this.iK()];this.Ob=2;this.lz={};this.lz.pause="p";this.lz.resume="r";this.lz.skip="s";this.lz.mute="m";this.lz.unmute= +"um";this.lz.exitfullscreen="ef";this.G=null;this.ob=this.yb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.La=0}; +ln=function(a){a.hasCompleted=!0;a.Ik!=0&&(a.Ik=3)}; +mn=function(a){return a===void 0?a:Number(a)?qm(a,3):0}; +nn=function(a,b){return a.Aa[b!=null&&bMath.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Wa==-1&&d>0&&(a.Wa=Ol>=0?Kl()-Ol:-1);a.qa=c;return e}; +zja=function(a,b){sm(a.K,function(c){return c.D==b.D})||a.K.push(b)}; +Aja=function(a){var b=Jm(a.Dj().j,1);return on(a,b)}; +on=function(a,b,c){return b>=15E3?!0:a.Xa?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Ga>0?b>=a.Ga:!1:!1}; +Bja=function(a){var b=qm(a.wi.Ae,2),c=a.Jg.C,d=a.wi,e=nn(a),f=mn(e.D),h=mn(e.K),l=mn(d.volume),m=qm(e.N,2),n=qm(e.ra,2),p=qm(d.Ae,2),q=qm(e.Aa,2),r=qm(e.Ga,2);d=qm(d.Uk,2);a=a.au().clone();a.round();e=Nm(e,!1);return{Bfa:b,OF:c,kL:f,bL:h,sE:l,lL:m,dL:n,Ae:p,nL:q,eL:r,Uk:d,position:a,pL:e}}; +Dja=function(a,b){Cja(a.j,b,function(){return{Bfa:0,OF:void 0,kL:-1,bL:-1,sE:-1,lL:-1,dL:-1,Ae:-1,nL:-1,eL:-1,Uk:-1,position:void 0,pL:[]}}); +a.j[b]=Bja(a)}; +Cja=function(a,b,c){for(var d=a.length;d0?1:0;p.atos=Hm(m.j);p.ssb=Hm(m.Xa,!1);p.amtos=Yia(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;n=="nio"&& +(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=on(a,m.C.j,!0)?1:0;p.efpf=a.Ob;if(n=="gsv"||n=="nis")n=a.Yf,n.G>0&&(p.nnut=n.G);p.tcm=xja(a);p.nmt=a.Va;p.bt=a.Ma;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Jg.C;a.j.length>=1&&(p.i0=a.j[0].OF,p.a0=[a.j[0].sE],p.c0=[a.j[0].Ae],p.ss0=[a.j[0].Uk],n=a.j[0].position,p.p0=n?jn(n):void 0);a.j.length>=2&&(p.i1=a.j[1].OF,p.a1=rn(a.j[1].kL,a.j[1].sE,a.j[1].bL),p.c1=rn(a.j[1].lL,a.j[1].Ae,a.j[1].dL),p.ss1=rn(a.j[1].nL,a.j[1].Uk,a.j[1].eL),n=a.j[1].position, +p.p1=n?jn(n):void 0,p.mtos1=a.j[1].pL);a.j.length>=3&&(p.i2=a.j[2].OF,p.a2=rn(a.j[2].kL,a.j[2].sE,a.j[2].bL),p.c2=rn(a.j[2].lL,a.j[2].Ae,a.j[2].dL),p.ss2=rn(a.j[2].nL,a.j[2].Uk,a.j[2].eL),n=a.j[2].position,p.p2=n?jn(n):void 0,p.mtos2=a.j[2].pL);a.j.length>=4&&(p.i3=a.j[3].OF,p.a3=rn(a.j[3].kL,a.j[3].sE,a.j[3].bL),p.c3=rn(a.j[3].lL,a.j[3].Ae,a.j[3].dL),p.ss3=rn(a.j[3].nL,a.j[3].Uk,a.j[3].eL),n=a.j[3].position,p.p3=n?jn(n):void 0,p.mtos3=a.j[3].pL);p.cs=uja(a.Jg);b&&(p.ic=tja(a.Jg),p.dvpt=m.C.B,p.dvs= +Lm(m.B,.5),p.dfvs=Lm(m.B,1),p.davs=Lm(m.j,.5),p.dafvs=Lm(m.j,1),c&&(m.C.B=0,Zia(m.B),Zia(m.j)),a.us()&&(p.dtos=m.Fa,p.dav=m.Y,p.dtoss=a.tP+1,c&&(m.Fa=0,m.Y=0,a.tP++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Ql(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.PC&&(p.vds=a.PC);if(a.K.length>0||a.xs)b=g.Ub(a.K),a.xs&&b.push(a.xs),p.pings=g.pl(b,function(q){return q.toString()}); +b=g.pl(g.Ym(a.K,function(q){return q.K()}),function(q){return q.getId()}); +Jaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Fa&&(p.vmiec=a.Fa);p.avms=a.Yf?a.Yf.getName():"ns";a.Yf&&g.Hc(p,a.Yf.Wt());d?(p.c=qm(a.wi.Ae,2),p.ss=qm(a.wi.Uk,2)):p.tth=Kl()-Hja;p.mc=qm(m.ra,2);p.nc=qm(m.N,2);p.mv=mn(m.K);p.nv=mn(m.D);p.lte=qm(a.uR,2);d=nn(a,e);Nm(m);p.qmtos=Nm(d);p.qnc=qm(d.N,2);p.qmv=mn(d.K);p.qnv=mn(d.D);p.qas=d.D>0?1:0;p.qi=a.jj;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=wha(l.Lc);l.length&&(p.veid=l);a.G&&g.Hc(p, +mja(a.G));p.avas=a.WJ();p.vs=a.cZ();p.co=Ija(a);return p}; +Eja=function(a,b){if(g.Ob(Jja,b))return!0;var c=a.Bi[b];return c!==void 0?(a.Bi[b]=!0,!c):!1}; +Ija=function(a){var b=a.La.toString(10).padStart(2,"0");b=""+a.Kb+b;a.La<99&&a.La++;return b}; +Lja=function(){this.j={};var a=fe();sn(this,a,document);var b=Kja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)sn(this,c,c.document);sn(this,a.top,a.top.document)}}catch(d){}}; +Kja=function(){var a=document.documentElement;try{if(!il(fe().top))return"2";var b=[],c=fe(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}}; +sn=function(a,b,c){Om(c,"mousedown",function(){return Mja(a)},301); +Om(b,"scroll",function(){return Nja(a)},302); +Om(c,"touchmove",function(){return Oja(a)},303); +Om(c,"mousemove",function(){return Pja(a)},304); +Om(c,"keydown",function(){return Qja(a)},305)}; +Mja=function(a){g.sc(a.j,function(b){b.C>1E5||++b.C})}; +Nja=function(a){g.sc(a.j,function(b){b.j>1E5||++b.j})}; +Oja=function(a){g.sc(a.j,function(b){b.j>1E5||++b.j})}; +Qja=function(a){g.sc(a.j,function(b){b.B>1E5||++b.B})}; +Pja=function(a){g.sc(a.j,function(b){b.D>1E5||++b.D})}; +Rja=function(){this.j=[];this.B=[]}; +tn=function(a,b){return g.Mb(a.j,function(c){return c.jj==b})}; +Sja=function(a,b){return b?g.Mb(a.j,function(c){return c.qk.Ku==b}):null}; +Tja=function(a,b){return g.Mb(a.B,function(c){return c.Yp()==2&&c.jj==b})}; +vn=function(){var a=un;return a.j.length==0?a.B:a.B.length==0?a.j:g.Tb(a.B,a.j)}; +Uja=function(a,b){a=b.Yp()==1?a.j:a.B;var c=Lb(a,function(d){return d==b}); +return c!=-1?(a.splice(c,1),b.Yf&&b.Yf.LI(),b.dispose(),!0):!1}; +Vja=function(a){var b=un;if(Uja(b,a)){switch(a.Yp()){case 0:var c=function(){return null}; +case 2:c=function(){return Tja(b,a.jj)}; +break;case 1:c=function(){return tn(b,a.jj)}}for(var d=c();d;d=c())Uja(b,d)}}; +Wja=function(a){var b=un;a=g.Ym(a,function(c){return!Sja(b,c.qk.Ku)}); +b.j.push.apply(b.j,g.x(a))}; +Xja=function(a){var b=[];g.dc(a,function(c){sm(un.j,function(d){return d.qk.Ku===c.qk.Ku&&d.jj===c.jj})||(un.j.push(c),b.push(c))})}; +wn=function(){this.j=this.B=null}; +Yja=function(a,b){function c(d,e){b(d,e)} +if(a.B==null)return!1;a.j=g.Mb(a.B,function(d){return d!=null&&d.RV()}); +a.j&&(a.j.init(c)?Jia(a.j.j):b(a.j.j.qA(),a.j));return a.j!=null}; +xn=function(a){a=Zja(a);Bm.call(this,a.length?a[a.length-1]:new xm(dl,0));this.C=a;this.B=null}; +Zja=function(a){if(!a.length)return[];a=(0,g.Ym)(a,function(c){return c!=null&&c.yD()}); +for(var b=1;bc.time?b:c},a[0])}; +Bn=function(a){a=a===void 0?dl:a;Bm.call(this,new xm(a,2))}; +Cn=function(){var a=cka();xm.call(this,dl.top,a,"geo")}; +cka=function(){xl();var a=tm();return a.C||a.B?0:2}; +dka=function(){}; +Dn=function(){this.done=!1;this.j={t7:0,ZW:0,zpa:0,eY:0,QQ:-1,Y7:0,X7:0,Z7:0,Iea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new wm(this)}; +Fn=function(){var a=En;a.K||(a.K=!0,eka(a,function(){return a.D.apply(a,g.x(g.Ca.apply(0,arguments)))}),a.D())}; +fka=function(){sl(dka);var a=sl(wn);a.j!=null&&a.j.j?Jia(a.j.j):tm().update(dl)}; +Gn=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{fka();var d=Kl();xl().G=d;if(sl(wn).j!=null)for(var e=0;e=0?Kl()-Ll:-1,l=Kl();e.j.QQ==-1&&(h=l);var m=tm(),n=xl(),p=Zk(n.Lc),q=vn();try{if(q.length>0){var r=m.j;r&&(p.bs=[Ql(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);dl.screen&&(p.scs=[dl.screen.width,dl.screen.height])}else p.url=encodeURIComponent(dl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512))); +p.tt=h;p.pt=Ll;p.bin=n.B;dl.google_osd_load_pub_page_exp!==void 0&&(p.olpp=dl.google_osd_load_pub_page_exp);p.deb=[1,e.j.t7,e.j.ZW,e.j.eY,e.j.QQ,0,e.B.B,e.j.Y7,e.j.X7,e.j.Z7,e.j.Iea,-1].join(";");p.tvt=hka(e,l);m.B&&(p.inapp=1);if(dl!==null&&dl!=dl.top){q.length>0&&(p.iframe_loc=encodeURIComponent(dl.location.href.substring(0,512)));var u=m.N;p.is=[Ql(u),u.getHeight()]}}catch(y){p.error=1}En.C=p}r=g.Fc(En.C);t=xl().j;Yk(t.C,"prf")==1?(u=new vl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=lg(u,1,wf(e.D+ +f),0),e=t.j,u=lg(u,5,zf(e.j>-1?e.B+1:e.B),0),u=lg(u,2,Ef(t.B.j.C()),"0"),u=lg(u,3,Ef(t.B.j.B()),"0"),t=lg(u,4,Ef(t.B.j.j()),"0"),u={},t=(u.pf=g.Qe(t.j()),u)):t={};g.Hc(r,t);g.Hc(b,d,c,r,a())}])}; +kka=function(){var a=jka||dl;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")}; +Hn=function(){var a="youtube.player.web_20240804_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240804_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240804_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240804_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240804_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null}; +lka=function(){return"av.default_js".includes("ima_html5_sdk")?{Mp:"ima",Pp:null}:"av.default_js".includes("ima_native_sdk")?{Mp:"nima",Pp:null}:"av.default_js".includes("admob-native-video-javascript")?{Mp:"an",Pp:null}:"youtube.player.web_20240804_00_RC00".includes("cast_js_sdk")?{Mp:"cast",Pp:Hn()}:"youtube.player.web_20240804_00_RC00".includes("youtube.player.web")?{Mp:"yw",Pp:Hn()}:"youtube.player.web_20240804_00_RC00".includes("outstream_web_client")?{Mp:"out",Pp:Hn()}:"youtube.player.web_20240804_00_RC00".includes("drx_rewarded_web")? +{Mp:"r",Pp:Hn()}:"youtube.player.web_20240804_00_RC00".includes("gam_native_web_video")?{Mp:"n",Pp:Hn()}:"youtube.player.web_20240804_00_RC00".includes("admob_interstitial_video")?{Mp:"int",Pp:Hn()}:{Mp:"j",Pp:null}}; +Kn=function(a,b){var c={sv:"963"};In!==null&&(c.v=In);c.cb=mka;c.nas=un.j.length;c.msg=a;b!==void 0&&(a=nka(b))&&(c.e=Jn[a]);return c}; +Ln=function(a){return qb(a,"custom_metric_viewable")}; +nka=function(a){var b=Ln(a)?"custom_metric_viewable":a.toLowerCase();return Bc(pn,function(c){return c==b})}; +oka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"}; +rka=function(a){try{var b=a.split(",");return b.length>g.yc(pka).length?null:rl(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||qka[d[0]]===void 0||!qka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; +ska=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?Km(b.j,a.j):Km(b.B,a.j);case "tos":return a.B?Jm(b.j,a.j):Jm(b.B,a.j)}return 0}; +Mn=function(a,b,c,d){dn.call(this,b,d);this.N=a;this.Z=c}; +Nn=function(){}; +On=function(a){dn.call(this,"fully_viewable_audible_half_duration_impression",a)}; +Pn=function(a){this.j=a}; +Qn=function(a,b){dn.call(this,a,b)}; +Rn=function(a){en.call(this,"measurable_impression",a)}; +Sn=function(){Pn.apply(this,arguments)}; +Tn=function(a,b,c){hn.call(this,a,b,c)}; +Un=function(a){a=a===void 0?dl:a;Bm.call(this,new xm(a,2))}; +Vn=function(a,b,c){hn.call(this,a,b,c)}; +Wn=function(a){a=a===void 0?dl:a;Bm.call(this,new xm(a,2))}; +Xn=function(){xm.call(this,dl,2,"mraid");this.Ma=0;this.ra=this.Aa=!1;this.N=null;this.B=uia(this.C);this.D.j=new Pl(0,0,0,0);this.La=!1}; +Yn=function(a,b,c){a.wv("addEventListener",b,c)}; +wka=function(a){xl().D=!!a.wv("isViewable");Yn(a,"viewableChange",tka);a.wv("getState")==="loading"?Yn(a,"ready",uka):vka(a)}; +vka=function(a){typeof a.B.Mo.AFMA_LIDAR==="string"?(a.Aa=!0,xka(a)):(a.B.compatibility=3,a.N="nc",a.aj("w"))}; +xka=function(a){a.ra=!1;var b=Yk(xl().Lc,"rmmt")==1,c=!!a.wv("isViewable");(b?!c:1)&&ul().setTimeout(Il(524,function(){a.ra||(yka(a),Jl(540,Error()),a.N="mt",a.aj("w"))}),500); +zka(a);Yn(a,a.B.Mo.AFMA_LIDAR,Aka)}; +zka=function(a){var b=Yk(xl().Lc,"sneio")==1,c=a.B.Mo.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Mo.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Mo.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Mo.AFMA_LIDAR_EXP_1=!b)}; +yka=function(a){a.wv("removeEventListener",a.B.Mo.AFMA_LIDAR,Aka);a.Aa=!1}; +Bka=function(a,b){if(a.wv("getState")==="loading")return new g.Hd(-1,-1);b=a.wv(b);if(!b)return new g.Hd(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Hd(-1,-1):new g.Hd(a,b)}; +uka=function(){try{var a=sl(Xn);a.wv("removeEventListener","ready",uka);vka(a)}catch(b){Jl(541,b)}}; +Aka=function(a,b){try{var c=sl(Xn);c.ra=!0;var d=a?new Pl(a.y,a.x+a.width,a.y+a.height,a.x):new Pl(0,0,0,0);var e=Kl(),f=vm();var h=new sia(e,f,c);h.j=d;h.volume=b;c.nu(h)}catch(l){Jl(542,l)}}; +tka=function(a){var b=xl(),c=sl(Xn);a&&!b.D&&(b.D=!0,c.La=!0,c.N&&c.aj("w",!0))}; +Zn=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.g$,a.firstquartile=this.b$,a.midpoint=this.d$,a.thirdquartile=this.h$,a.complete=this.Y9,a.error=this.Z9,a.pause=this.RS,a.resume=this.e2,a.skip=this.f$,a.viewable_impression=this.Zp,a.mute=this.NC,a.unmute=this.NC,a.fullscreen=this.c$,a.exitfullscreen=this.a$,a.fully_viewable_audible_half_duration_impression=this.Zp,a.measurable_impression=this.Zp,a.abandon=this.RS,a.engagedview=this.Zp,a.impression=this.Zp,a.creativeview= +this.Zp,a.progress=this.NC,a.custom_metric_viewable=this.Zp,a.bufferstart=this.RS,a.bufferfinish=this.e2,a.audio_measurable=this.Zp,a.audio_audible=this.Zp,a);a={};this.N=(a.overlay_resize=this.e$,a.abandon=this.FQ,a.close=this.FQ,a.collapse=this.FQ,a.overlay_unmeasurable_impression=function(b){return qn(b,"overlay_unmeasurable_impression",vm())},a.overlay_viewable_immediate_impression=function(b){return qn(b,"overlay_viewable_immediate_impression",vm())},a.overlay_unviewable_impression=function(b){return qn(b, +"overlay_unviewable_impression",vm())},a.overlay_viewable_end_of_session_impression=function(b){return qn(b,"overlay_viewable_end_of_session_impression",vm())},a); +xl().B=3;Cka(this)}; +$n=function(a,b,c,d){a=a.pH(null,d,!0,b);a.D=c;Wja([a]);return a}; +Dka=function(a,b,c){uha(b);var d=a.j;g.dc(b,function(e){var f=g.pl(e.criteria,function(h){var l=rka(h);if(l==null)h=null;else if(h=new oka,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=raa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h}); +sm(f,function(h){return h==null})||zja(c,new Mn(e.id,e.event,f,d))})}; +Eka=function(){var a=[],b=xl();a.push(sl(Cn));Yk(b.Lc,"mvp_lv")&&a.push(sl(Xn));b=[new Un,new Wn];b.push(new xn(a));b.push(new Bn(dl));return b}; +Fka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Kl(),c=xl(),d=tm();Ll=b;c.C=79463069;a.B!=="o"&&(jka=Jha(dl));if(Uha()){En.j.ZW=0;En.j.QQ=Kl()-b;var e=Eka(),f=sl(wn);f.B=e;Yja(f,function(){ao()})?En.done||(gka(),ym(f.j.j,a),Fn()):d.C?ao():Fn()}else bo=!0}catch(h){throw un.reset(),h; +}}}; +eo=function(a){En.B.cancel();co=a;En.done=!0}; +fo=function(a){if(a.B)return a.B;var b=sl(wn).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B}; +go=function(a,b,c){if(a.j==null)return b.PC|=4,!1;a=Gka(a.j,c,b);b.PC|=a;return a==0}; +ao=function(){var a=[new Bn(dl)],b=sl(wn);b.B=a;Yja(b,function(){eo("i")})?En.done||(gka(),Fn()):eo("i")}; +Hka=function(a,b){if(!a.Ab){var c=qn(a,"start",vm());c=a.SS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="963";In!==null&&(d.v=In);Fi(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)}); +b=kka();Fi(b,function(e,f){return d[e]=encodeURIComponent(f)}); +b="//pagead2.googlesyndication.com/pagead/gen_204?"+Em(Dm(new Cm,d));Tia(b);a.Ab=!0}}; +ho=function(a,b,c){Gn(En,[a],!vm());Dja(a,c);c!=4&&Cja(a.Aa,c,a.iK);return qn(a,b,vm())}; +Cka=function(a){ika(function(){var b=Ika();a.B!=null&&(b.sdk=a.B);var c=sl(wn);c.j!=null&&(b.avms=c.j.getName());return b})}; +Jka=function(a,b,c,d){var e=Sja(un,c);e!==null&&e.jj!==b&&(a.EJ(e),e=null);e||(b=a.pH(c,Kl(),!1,b),un.B.length==0&&(xl().C=79463069),Xja([b]),e=b,e.D=fo(a),d&&(e.Ya=d));return e}; +Kka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))}; +Ika=function(){var a=tm(),b={},c={},d={};return Object.assign({},(b.sv="963",b),In!==null&&(c.v=In,c),(d["if"]=a.C?"1":"0",d.nas=String(un.j.length),d))}; +io=function(a){dn.call(this,"audio_audible",a)}; +jo=function(a){en.call(this,"audio_measurable",a)}; +ko=function(){Pn.apply(this,arguments)}; +lo=function(){}; +Lka=function(a){this.j=a}; +Gka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},In!==null&&(d.v=In,d),(e.sv="963",e.cb=mka,e.e=Mka(b),e));e=qn(c,b,vm());g.Hc(d,e);c.b4[b]=e;d=c.Yp()==2?Sia(d).join("&"):c.SS.j(d).j;try{return a(c.jj,d,b),0}catch(f){return 2}}else return 1}; +Mka=function(a){var b=Ln(a)?"custom_metric_viewable":a;a=Bc(pn,function(c){return c==b}); +return Jn[a]}; +mo=function(){Zn.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +Nka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&Dka(a,c,b)}; +Oka=function(a,b,c){var d=tn(un,b);d||(d=c.opt_nativeTime||-1,d=$n(a,b,fo(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d}; +Pka=function(a,b,c){var d=tn(un,b);d||(d=$n(a,b,"n",c.opt_nativeTime||-1));return d}; +Qka=function(a,b){var c=tn(un,b);c||(c=$n(a,b,"h",-1));return c}; +Rka=function(a){xl();switch(fo(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; +Uka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.Hc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.rK(b,c);c=f?f.SS:a.mP();if(e.opt_bounds)return c.j(Kn("ol",d));if(d!==void 0)if(nka(d)!==void 0)if(bo)a=Kn("ue",d);else if(Fka(a),co=="i")a=Kn("i",d),a["if"]=0;else if(b=a.rK(b,e)){b:{co=="i"&&(b.wu=!0);f=e.opt_fullscreen;f!==void 0&&Sm(b,!!f);var h;if(f=!tm().B)(f=ub(g.yb(),"CrKey")&&!(ub(g.yb(),"CrKey")&&ub(g.yb(),"SmartSpeaker"))||ub(g.yb(),"PlayStation")||ub(g.yb(),"Roku")||Fia()||ub(g.yb(), +"Xbox"))||(f=g.yb(),f=ub(f,"AppleTV")||ub(f,"Apple TV")||ub(f,"CFNetwork")||ub(f,"tvOS")),f||(f=g.yb(),f=ub(f,"sdk_google_atv_x86")||ub(f,"Android TV")),f=!f;f&&(ul(),f=gl(um)===0);if(h=f){switch(b.Yp()){case 1:Hka(b,"pv");break;case 2:a.oT(b)}eo("pv")}f=d.toLowerCase();if(h=!h)h=Yk(xl().Lc,"ssmol")&&f==="loaded"?!1:g.Ob(Ska,f);if(h&&b.Ik==0){co!="i"&&(En.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;Ol=h=typeof h==="number"?h:Kl();b.TE=!0;var l=vm();b.Ik=1;b.Bi={};b.Bi.start=!1;b.Bi.firstquartile= +!1;b.Bi.midpoint=!1;b.Bi.thirdquartile=!1;b.Bi.complete=!1;b.Bi.resume=!1;b.Bi.pause=!1;b.Bi.skip=!1;b.Bi.mute=!1;b.Bi.unmute=!1;b.Bi.viewable_impression=!1;b.Bi.measurable_impression=!1;b.Bi.fully_viewable_audible_half_duration_impression=!1;b.Bi.fullscreen=!1;b.Bi.exitfullscreen=!1;b.tP=0;l||(b.Dj().Z=h);Gn(En,[b],!l)}(h=b.lz[f])&&$m(b.Jg,h);Yk(xl().Lc,"fmd")||g.Ob(Tka,f)&&b.xs&&b.xs.B(b,null);switch(b.Yp()){case 1:var m=Ln(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a, +b,e,d),Yk(xl().Lc,"fmd")&&g.Ob(Tka,f)&&b.xs&&b.xs.B(b,null),d!==void 0)){e=Kn(void 0,f);g.Hc(e,d);d=e;break b}d=void 0}b.Ik==3&&a.EJ(b);a=d}else a=Kn("nf",d);else a=void 0;else bo?a=Kn("ue"):f?(a=Kn(),g.Hc(a,Fja(f,!0,!1,!1))):a=Kn("nf");return typeof a==="string"?c.j():c.j(a)}; +Vka=function(a,b){b&&(a.C=b)}; +Wka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b}; +Xka=function(a,b,c){c=c===void 0?{}:c;a=Uka(sl(mo),b,c,a);return Wka(a)}; +Yka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}}; +Zka=function(){return new Promise(function(a){var b=window.top;b.bevasrs!==void 0?a(new no(b.bevasrs)):(b.nqfbel===void 0&&(b.nqfbel=[]),b.nqfbel.push(function(c){a(new no(c))}))})}; +$ka=function(a){var b={c:a.zl,e:a.WE,mc:a.IR,me:a.JR};a.Vh&&(b.co={c:a.Vh.Ow,a:a.Vh.Kz,s:a.Vh.HC});return b}; +ala=function(a){this.wpc=a}; +no=function(a){this.Ri=a;this.D="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.C=!1;this.j=void 0;this.BC=this.Ri.p;this.G=this.WL.bind(this)}; +bla=function(a){var b;return g.J(function(c){if(c.j==1){if(!a.Ri.wpc)throw new gj(30,"NWA");return a.B?c.return(a.B):g.G(c,a.Ri.wpc(),2)}b=c.B;a.B=new ala(b);return c.return(a.B)})}; +dla=function(a){a.j!==void 0&&(a.D.forEach(function(b){var c;(c=a.j)==null||c.removeEventListener(b,a.G)}),a.j=void 0)}; +gla=function(a){if(g.rb(g.Ud(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.Zj(a)}catch(c){return g.Mb(ela,function(d){return a.search(d)>0})!=null}return b.K.match(fla)?!0:g.Mb(ela,function(c){return a.match(c)!=null})!=null}; +g.oo=function(a,b){return a.replace(hla,function(c,d){try{var e=g.Dc(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.rb(g.Ud(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})}; +ila=function(a,b){return Object.is(a,b)}; +g.qo=function(a){var b=po;po=a;return b}; +kla=function(a){if(a.gj!==void 0){var b=g.ro;g.ro=!0;try{for(var c=g.w(a.gj),d=c.next();!d.done;d=c.next()){var e=d.value;e.Bl||g.jla(e)}}finally{g.ro=b}}}; +lla=function(){var a;return((a=po)==null?void 0:a.Uw)!==!1}; +g.jla=function(a){a.Bl=!0;kla(a);var b;(b=a.wJ)==null||b.call(a,a)}; +g.so=function(a){a&&(a.rL=0);return g.qo(a)}; +g.zo=function(a,b){g.qo(b);if(a&&a.cg!==void 0&&a.dn!==void 0&&a.Gy!==void 0){if(g.to(a))for(b=a.rL;ba.rL;)a.cg.pop(),a.Gy.pop(),a.dn.pop()}}; +nla=function(a,b,c){mla(a);if(a.gj.length===0&&a.cg!==void 0)for(var d=0;d0}; +g.Ao=function(a){a.cg!=null||(a.cg=[]);a.dn!=null||(a.dn=[]);a.Gy!=null||(a.Gy=[])}; +mla=function(a){a.gj!=null||(a.gj=[]);a.Hu!=null||(a.Hu=[])}; +pla=function(a){function b(){if(g.ro)throw Error("");if(po!==null){var d=po.rL++;g.Ao(po);d0?" "+b:b))}}; +g.Xo=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Wo(a,e)}); +else{var c={};Array.prototype.forEach.call(To(a),function(e){c[e]=!0}); +Array.prototype.forEach.call(b,function(e){c[e]=!0}); +b="";for(var d in c)b+=b.length>0?" "+d:d;g.Uo(a,b)}}; +g.Yo=function(a,b){a.classList?a.classList.remove(b):g.Vo(a,b)&&g.Uo(a,Array.prototype.filter.call(To(a),function(c){return c!=b}).join(" "))}; +g.Zo=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Yo(a,c)}):g.Uo(a,Array.prototype.filter.call(To(a),function(c){return!g.Ob(b,c)}).join(" "))}; +g.$o=function(a,b,c){c?g.Wo(a,b):g.Yo(a,b)}; +yla=function(a,b){var c=!g.Vo(a,b);g.$o(a,b,c)}; +g.ap=function(){g.Vc.call(this);this.j=0;this.endTime=this.startTime=null}; +zla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); +g.Xl(a,"transition",b.join(","))}; +bp=function(a,b,c,d,e){g.ap.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]}; +Ala=function(a,b,c,d){return new bp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})}; +Cla=function(a){a=vb(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Bla))return null}return a}; +cp=function(a,b){a=g.Ja[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null}; +Dla=function(a){var b=g.Ja.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null}; +Ela=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Zl&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)}; +Kla=function(a){if(!a)return Fla;var b=document.createElement("div").style;Gla(a).forEach(function(c){var d=g.mc&&c in Hla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");qb(d,"--")||qb(d,"var")||(c=Ela(Ila,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Cla(c),c!=null&&Ela(Jla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); +return new g.td(b.cssText||"",Bd)}; +Gla=function(a){g.Oa(a)?a=g.Ub(a):(a=g.yc(a),g.Rb(a,"cssText"));return a}; +g.ep=function(a){var b,c=b=0,d=!1;a=a.split(Lla);for(var e=0;e.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"}; +g.ip=function(a){if(a instanceof fp||a instanceof gp||a instanceof hp)return a;if(typeof a.next=="function")return new fp(function(){return a}); +if(typeof a[Symbol.iterator]=="function")return new fp(function(){return a[Symbol.iterator]()}); +if(typeof a.Am=="function")return new fp(function(){return a.Am()}); +throw Error("Not an iterator or iterable.");}; +fp=function(a){this.B=a}; +gp=function(a){this.B=a}; +hp=function(a){fp.call(this,function(){return a}); +this.C=a}; +jp=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l}; +kp=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Ed(a.j,a.x1,b),d=Ed(a.x1,a.x2,b);a=Ed(a.x2,a.B,b);c=Ed(c,d,b);d=Ed(d,a,b);return Ed(c,d,b)}; +Pla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=kp(a,c);var l=(kp(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f1E-6&&h<8;h++)f=0}; +g.op=function(a){g.O.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a}; +Rla=function(a,b,c){g.Be(function(){a.apply(b,c)})}; +g.pp=function(a){this.j=a}; +qp=function(a){this.j=a}; +Sla=function(a){this.data=a}; +Tla=function(a){return a===void 0||a instanceof Sla?a:new Sla(a)}; +rp=function(a){this.j=a}; +g.Ula=function(a){var b=a.creation;a=a.expiration;return!!a&&ag.Wa()}; +g.sp=function(a){this.j=a}; +Vla=function(){}; +tp=function(){}; +up=function(a){this.j=a;this.B=null}; +vp=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||we(Error("Storage mechanism: Storage unavailable"))}; +wp=function(){var a=null;try{a=g.Ja.localStorage||null}catch(b){}up.call(this,a)}; +Wla=function(){var a=null;try{a=g.Ja.sessionStorage||null}catch(b){}up.call(this,a)}; +xp=function(a,b){this.B=a;this.j=b+"::"}; +g.yp=function(a){var b=new wp;return b.isAvailable()?a?new xp(b,a):b:null}; +zp=function(a,b){this.j=a;this.B=b}; +Ap=function(a){this.j=[];if(a)a:{if(a instanceof Ap){var b=a.ao();a=a.Qm();if(this.j.length<=0){for(var c=this.j,d=0;d>>6:(f<65536?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>> +6&63),l[c++]=128|f&63);return l}; +Ep=function(a){for(var b=a.length;--b>=0;)a[b]=0}; +Fp=function(a,b,c,d,e){this.X2=a;this.L8=b;this.K8=c;this.u8=d;this.W$=e;this.yZ=a&&a.length}; +Gp=function(a,b){this.fY=a;this.qB=0;this.Dv=b}; +Hp=function(a,b){a.qg[a.pending++]=b&255;a.qg[a.pending++]=b>>>8&255}; +Ip=function(a,b,c){a.Gi>16-c?(a.zj|=b<>16-a.Gi,a.Gi+=c-16):(a.zj|=b<>>=1,c<<=1;while(--b>0);return c>>>1}; +Zla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Yla(d[e]++,e))}; +$la=function(a){var b;for(b=0;b<286;b++)a.xk[b*2]=0;for(b=0;b<30;b++)a.Zw[b*2]=0;for(b=0;b<19;b++)a.Yi[b*2]=0;a.xk[512]=1;a.Es=a.GC=0;a.Wm=a.matches=0}; +ama=function(a){a.Gi>8?Hp(a,a.zj):a.Gi>0&&(a.qg[a.pending++]=a.zj);a.zj=0;a.Gi=0}; +bma=function(a,b,c){ama(a);Hp(a,c);Hp(a,~c);Dp.Iz(a.qg,a.window,b,c,a.pending);a.pending+=c}; +cma=function(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];Jp(a,h,c);l=Pp[h];l!==0&&(e-=Qp[h],Ip(a,e,l))}}while(d>1;h>=1;h--)Kp(a,c,h);m=f;do h=a.xg[1],a.xg[1]=a.xg[a.Vr--],Kp(a,c,1),d=a.xg[1],a.xg[--a.EA]=h,a.xg[--a.EA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.xg[1]=m++,Kp(a,c,1);while(a.Vr>= +2);a.xg[--a.EA]=a.xg[1];h=b.fY;m=b.qB;d=b.Dv.X2;e=b.Dv.yZ;f=b.Dv.L8;var n=b.Dv.K8,p=b.Dv.W$,q,r=0;for(q=0;q<=15;q++)a.Ar[q]=0;h[a.xg[a.EA]*2+1]=0;for(b=a.EA+1;b<573;b++){var t=a.xg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.Ar[q]++;var u=0;t>=n&&(u=f[t-n]);var y=h[t*2];a.Es+=y*(q+u);e&&(a.GC+=y*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.Ar[q]===0;)q--;a.Ar[q]--;a.Ar[q+1]+=2;a.Ar[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.Ar[q];t!==0;)d=a.xg[--b],d>m||(h[d*2+1]!==q&&(a.Es+=(q-h[d* +2+1])*h[d*2],h[d*2+1]=q),t--)}Zla(c,l,a.Ar)}; +ema=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h>>=1)if(b&1&&a.xk[c*2]!==0)return 0;if(a.xk[18]!==0||a.xk[20]!==0||a.xk[26]!==0)return 1;for(c=32;c<256;c++)if(a.xk[c*2]!==0)return 1;return 0}; +Sp=function(a,b,c){a.qg[a.JE+a.Wm*2]=b>>>8&255;a.qg[a.JE+a.Wm*2+1]=b&255;a.qg[a.mR+a.Wm]=c&255;a.Wm++;b===0?a.xk[c*2]++:(a.matches++,b--,a.xk[(Lp[c]+256+1)*2]++,a.Zw[(b<256?Op[b]:Op[256+(b>>>7)])*2]++);return a.Wm===a.mG-1}; +Up=function(a,b){a.msg=Tp[b];return b}; +Vp=function(a){for(var b=a.length;--b>=0;)a[b]=0}; +Wp=function(a){var b=a.state,c=b.pending;c>a.Ie&&(c=a.Ie);c!==0&&(Dp.Iz(a.output,b.qg,b.bH,c,a.zB),a.zB+=c,b.bH+=c,a.AU+=c,a.Ie-=c,b.pending-=c,b.pending===0&&(b.bH=0))}; +Zp=function(a,b){var c=a.yl>=0?a.yl:-1,d=a.Fb-a.yl,e=0;if(a.level>0){a.xe.rP===2&&(a.xe.rP=gma(a));Rp(a,a.UK);Rp(a,a.DJ);ema(a,a.xk,a.UK.qB);ema(a,a.Zw,a.DJ.qB);Rp(a,a.tX);for(e=18;e>=3&&a.Yi[hma[e]*2+1]===0;e--);a.Es+=3*(e+1)+14;var f=a.Es+3+7>>>3;var h=a.GC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)Ip(a,b?1:0,3),bma(a,c,d);else if(a.strategy===4||h===f)Ip(a,2+(b?1:0),3),dma(a,Xp,Yp);else{Ip(a,4+(b?1:0),3);c=a.UK.qB+1;d=a.DJ.qB+1;e+=1;Ip(a,c-257,5);Ip(a,d-1,5);Ip(a,e-4,4);for(f=0;f>>8&255;a.qg[a.pending++]=b&255}; +ima=function(a,b){var c=a.N_,d=a.Fb,e=a.Ul,f=a.l0,h=a.Fb>a.uj-262?a.Fb-(a.uj-262):0,l=a.window,m=a.Mv,n=a.Fq,p=a.Fb+258,q=l[d+e-1],r=l[d+e];a.Ul>=a.fZ&&(c>>=2);f>a.jc&&(f=a.jc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&de){a.oB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!== +0);return e<=a.jc?e:a.jc}; +dq=function(a){var b=a.uj,c;do{var d=a.i4-a.jc-a.Fb;if(a.Fb>=b+(b-262)){Dp.Iz(a.window,a.window,b,b,0);a.oB-=b;a.Fb-=b;a.yl-=b;var e=c=a.BK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Fq[--e],a.Fq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.xe.yj===0)break;e=a.xe;c=a.window;f=a.Fb+a.jc;var h=e.yj;h>d&&(h=d);h===0?c=0:(e.yj-=h,Dp.Iz(c,e.input,e.iy,h,f),e.state.wrap===1?e.Ud=bq(e.Ud,c,h,f):e.state.wrap===2&&(e.Ud=cq(e.Ud,c,h,f)),e.iy+=h,e.fz+=h,c=h);a.jc+=c;if(a.jc+a.Fh>=3)for(d=a.Fb-a.Fh, +a.Ce=a.window[d],a.Ce=(a.Ce<=3&&(a.Ce=(a.Ce<=3)if(c=Sp(a,a.Fb-a.oB,a.Se-3),a.jc-=a.Se,a.Se<=a.yR&&a.jc>=3){a.Se--;do a.Fb++,a.Ce=(a.Ce<=3&&(a.Ce=(a.Ce<4096)&&(a.Se=2));if(a.Ul>=3&&a.Se<=a.Ul){d=a.Fb+a.jc-3;c=Sp(a,a.Fb-1-a.F1,a.Ul-3);a.jc-=a.Ul-1;a.Ul-=2;do++a.Fb<=d&&(a.Ce=(a.Ce<=3&&a.Fb>0&&(d=a.Fb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Fb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.jc&&(a.Se=a.jc)}a.Se>=3?(c=Sp(a,1,a.Se-3),a.jc-=a.Se,a.Fb+=a.Se,a.Se=0):(c=Sp(a,0,a.window[a.Fb]),a.jc--,a.Fb++);if(c&&(Zp(a,!1),a.xe.Ie===0))return 1}a.Fh=0;return b=== +4?(Zp(a,!0),a.xe.Ie===0?3:4):a.Wm&&(Zp(a,!1),a.xe.Ie===0)?1:2}; +kma=function(a,b){for(var c;;){if(a.jc===0&&(dq(a),a.jc===0)){if(b===0)return 1;break}a.Se=0;c=Sp(a,0,a.window[a.Fb]);a.jc--;a.Fb++;if(c&&(Zp(a,!1),a.xe.Ie===0))return 1}a.Fh=0;return b===4?(Zp(a,!0),a.xe.Ie===0?3:4):a.Wm&&(Zp(a,!1),a.xe.Ie===0)?1:2}; +gq=function(a,b,c,d,e){this.E9=a;this.V$=b;this.naa=c;this.U$=d;this.func=e}; +lma=function(){this.xe=null;this.status=0;this.qg=null;this.wrap=this.pending=this.bH=this.cn=0;this.Pd=null;this.qo=0;this.method=8;this.eB=-1;this.Mv=this.RU=this.uj=0;this.window=null;this.i4=0;this.head=this.Fq=null;this.l0=this.fZ=this.strategy=this.level=this.yR=this.N_=this.Ul=this.jc=this.oB=this.Fb=this.Ux=this.F1=this.Se=this.yl=this.Tr=this.Sr=this.JQ=this.BK=this.Ce=0;this.xk=new Dp.jr(1146);this.Zw=new Dp.jr(122);this.Yi=new Dp.jr(78);Vp(this.xk);Vp(this.Zw);Vp(this.Yi);this.tX=this.DJ= +this.UK=null;this.Ar=new Dp.jr(16);this.xg=new Dp.jr(573);Vp(this.xg);this.EA=this.Vr=0;this.depth=new Dp.jr(573);Vp(this.depth);this.Gi=this.zj=this.Fh=this.matches=this.GC=this.Es=this.JE=this.Wm=this.mG=this.mR=0}; +mma=function(a,b){if(!a||!a.state||b>5||b<0)return a?Up(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.yj!==0||c.status===666&&b!==4)return Up(a,a.Ie===0?-5:-2);c.xe=a;var d=c.eB;c.eB=b;if(c.status===42)if(c.wrap===2)a.Ud=0,$p(c,31),$p(c,139),$p(c,8),c.Pd?($p(c,(c.Pd.text?1:0)+(c.Pd.pu?2:0)+(c.Pd.extra?4:0)+(c.Pd.name?8:0)+(c.Pd.comment?16:0)),$p(c,c.Pd.time&255),$p(c,c.Pd.time>>8&255),$p(c,c.Pd.time>>16&255),$p(c,c.Pd.time>>24&255),$p(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),$p(c,c.Pd.os& +255),c.Pd.extra&&c.Pd.extra.length&&($p(c,c.Pd.extra.length&255),$p(c,c.Pd.extra.length>>8&255)),c.Pd.pu&&(a.Ud=cq(a.Ud,c.qg,c.pending,0)),c.qo=0,c.status=69):($p(c,0),$p(c,0),$p(c,0),$p(c,0),$p(c,0),$p(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),$p(c,3),c.status=113);else{var e=8+(c.RU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Fb!==0&&(e|=32);c.status=113;aq(c,e+(31-e%31));c.Fb!==0&&(aq(c,a.Ud>>>16),aq(c,a.Ud&65535));a.Ud=1}if(c.status===69)if(c.Pd.extra){for(e= +c.pending;c.qo<(c.Pd.extra.length&65535)&&(c.pending!==c.cn||(c.Pd.pu&&c.pending>e&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e)),Wp(a),e=c.pending,c.pending!==c.cn));)$p(c,c.Pd.extra[c.qo]&255),c.qo++;c.Pd.pu&&c.pending>e&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e));c.qo===c.Pd.extra.length&&(c.qo=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Pd.name){e=c.pending;do{if(c.pending===c.cn&&(c.Pd.pu&&c.pending>e&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e)),Wp(a),e=c.pending,c.pending===c.cn)){var f=1;break}f=c.qoe&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e));f===0&&(c.qo=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Pd.comment){e=c.pending;do{if(c.pending===c.cn&&(c.Pd.pu&&c.pending>e&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e)),Wp(a),e=c.pending,c.pending===c.cn)){f=1;break}f=c.qoe&&(a.Ud=cq(a.Ud,c.qg,c.pending-e,e));f===0&&(c.status=103)}else c.status= +103;c.status===103&&(c.Pd.pu?(c.pending+2>c.cn&&Wp(a),c.pending+2<=c.cn&&($p(c,a.Ud&255),$p(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(c.pending!==0){if(Wp(a),a.Ie===0)return c.eB=-1,0}else if(a.yj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return Up(a,-5);if(c.status===666&&a.yj!==0)return Up(a,-5);if(a.yj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?kma(c,b):c.strategy===3?jma(c,b):hq[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Ie===0&&(c.eB= +-1),0;if(d===2&&(b===1?(Ip(c,2,3),Jp(c,256,Xp),c.Gi===16?(Hp(c,c.zj),c.zj=0,c.Gi=0):c.Gi>=8&&(c.qg[c.pending++]=c.zj&255,c.zj>>=8,c.Gi-=8)):b!==5&&(Ip(c,0,3),bma(c,0,0),b===3&&(Vp(c.head),c.jc===0&&(c.Fb=0,c.yl=0,c.Fh=0))),Wp(a),a.Ie===0))return c.eB=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?($p(c,a.Ud&255),$p(c,a.Ud>>8&255),$p(c,a.Ud>>16&255),$p(c,a.Ud>>24&255),$p(c,a.fz&255),$p(c,a.fz>>8&255),$p(c,a.fz>>16&255),$p(c,a.fz>>24&255)):(aq(c,a.Ud>>>16),aq(c,a.Ud&65535));Wp(a);c.wrap>0&& +(c.wrap=-c.wrap);return c.pending!==0?0:1}; +iq=function(a){if(!(this instanceof iq))return new iq(a);a=this.options=Dp.assign({level:-1,method:8,chunkSize:16384,Nv:15,baa:8,strategy:0,to:""},a||{});a.raw&&a.Nv>0?a.Nv=-a.Nv:a.F9&&a.Nv>0&&a.Nv<16&&(a.Nv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.xe=new nma;this.xe.Ie=0;var b=this.xe;var c=a.level,d=a.method,e=a.Nv,f=a.baa,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=Up(b,-2);else{e===8&&(e=9); +var m=new lma;b.state=m;m.xe=b;m.wrap=l;m.Pd=null;m.RU=e;m.uj=1<>=7;f<30;f++)for(Qp[f]=h<<7,e=0;e<1<=n.uj&&(b===0&&(Vp(n.head),n.Fb=0,n.yl=0,n.Fh=0),c=new Dp.pz(n.uj),Dp.Iz(c,f,h-n.uj,n.uj,0),f=c,h=n.uj);c=a.yj;d=a.iy;e=a.input;a.yj=h;a.iy=0;a.input=f;for(dq(n);n.jc>=3;){f=n.Fb;h=n.jc-2;do n.Ce=(n.Ce<=Math.pow(6,5)+12840+-20609?(((0,c[10])(c[13],c[29]),c[9])(c[21],c[6]),c[44])(c[6],c[new Date("1970-01-01T03:30:14.000+03:30")/1E3]):((0,c[78])(c[35],c[16]),(0,c[65])(c[49],c[new Date("1969-12-31T12:30:16.000-11:30")/1E3]),c[65])(c[77],c[6])),c[46]>=3&&((0,c[23184+Math.pow(3,3)+-23143])(c[23],c[13],(0,c[67])())%(0,c[60])(c[13]),"false")||(0,c[61])((0,c[10])(c[13],c[3]),c[9],c[83],c[25]),c[77]>-5&&(c[5]!=-68*Math.pow(3,1)+211?(0,c[78])(c[58], +c[25]):(0,c[37])(c[60],c[71])),c[85]!=3&&(((0,c[68])(c[83],c[9]),((0,c[33])((0,c[50])(c[85],c[64]),c[40],c[81],c[64],(0,c[70])()),c[50])(c[13],c[new Date("1969-12-31T20:31:04.000-03:30")/1E3]),c[Math.pow(6,4)%329+-241])(c[83],c[2]),c[37])(c[34],c[new Date("1969-12-31T20:01:11.000-04:00")/1E3]),c[26]<7&&(c[61]<3||((0,c[-12402-Math.pow(4,3)+12469])(((0,c[40])(c[81],c[71],(0,c[39])()),c[50])(c[8],c[83]),c[33],(0,c[33])((0,c[56])(c[75]),c[40],c[Math.pow(5,2)%58+56],c[-127*Math.pow(2,4)- -2106],(0,c[70])()), +c[50],c[22],c[83]),0))&&((0,c[16])(c[74],c[66])^(0,c[68])(c[64],c[51]),((0,c[32])(c[83]),c[69])(c[58],c[75]),c[51])(c[38],c[74]),c[75]>=-9&&(c[58]>=1||((0,c[54])(c[48],c[new Date("1970-01-01T02:30:08.000+02:30")/1E3]),0))&&(0,c[84])(c[35],c[50]),c[52]>=-5&&(c[33]<=5?(0,c[53])(c[47],c[59]):(0,c[81])(c[40],c[50],(0,c[82])()))}catch(d){(0,c[3])(c[50]),(((0,c[3])(c[38]),c[81])(c[40],c[47],(0,c[85])()),c[81])(c[-40920- -10*Math.pow(8,4)],c[47],(0,c[51])()),(0,c[2])(((0,c[84])(c[80],c[57]),c[54])(c[29], +c[8]),c[54],c[76],c[38])}try{c[52]===-8&&((0,c[81])(c[40],c[50],(0,c[82])()),1)||(0,c[71])(c[30],c[50]),c[64]>=-1&&(0,c[54])(c[16],c[38]),c[9]<-4&&(0,c[Math.pow(4,4)%84- -74])(c[8],c[49]),c[69]!==10&&(c[14]>=3?((((0,c[53])(c[-2779-Math.pow(5,2)*-113],c[17]),c[19])(c[8],c[43]),c[51])(c[3],c[27]),(((0,c[64])(c[1],c[30]),c[70])(c[26]),c[52])(c[33],c[56]),c[41])(c[49]):(0,c[17])((0,c[13])(c[22],(0,c[22])(c[62],c[59]),(0,c[17])((0,c[25])(c[66],c[59],(0,c[55])()),c[22],c[23],c[56])|(0,c[Math.pow(3,1)%480- +-19])(c[37],c[59]),(0,c[0])(c[59],c[14]),c[new Date("1970-01-01T01:15:42.000+01:15")/1E3],c[49]),c[25],c[66],c[59],(0,c[55])())),(c[84]>=4||((0,c[52])(c[54],c[60]),""))&&(0,c[16])(c[56]),(0,c[25])(c[66],c[86],(0,c[9])()),(0,c[53])(c[49],c[67])}catch(d){c[14]!=5&&(c[33]===8&&(((0,c[52])(c[10],c[11]),c[25])(c[66],c[59],(0,c[24])()),1)||(0,c[17])((0,c[35])(c[86],c[59]),c[53],c[59],c[4])),c[1]<-5&&(c[63]>-1&&((0,c[17])((0,c[41])(c[56]),c[52],c[8],c[11]),1)||(0,c[52])(c[32],c[49])*(0,c[22])(c[61],c[56]))}finally{c[5]!== +10&&(c[new Date("1970-01-01T01:45:48.000+01:45")/1E3]>5?(0,c[13])(c[25],(0,c[22])(c[27],c[59]),(((0,c[22])(c[38],c[60]),c[52])(c[12],c[59]),c[43])(c[56],c[50]),((0,c[25])(c[66],c[49],(0,c[55])()),c[41])(c[49]),c[66],c[59],(0,c[55])()):(((0,c[17])((0,c[35])(c[57],c[59]),c[52],c[26],c[59]),c[52])(c[65],c[60]),(0,c[35])(c[0],c[11]),(0,c[37])(c[82],c[13]),c[37])(c[82],c[78])^(0,c[37])(c[82],c[15]))}}catch(d){return"enhanced_except_5JsBm-T-_w8_"+a}return b.join("")}; +g.oq=function(a){this.name=a}; +Fma=function(a){this.xb=Rf(a)}; +pq=function(a){this.xb=Rf(a)}; +qq=function(a){this.xb=Rf(a)}; +Gma=function(a){this.xb=Rf(a)}; +rq=function(a){this.xb=Rf(a)}; +sq=function(a){this.xb=Rf(a)}; +tq=function(a){this.xb=Rf(a)}; +uq=function(a){this.xb=Rf(a)}; +vq=function(a){this.xb=Rf(a)}; +wq=function(a){this.xb=Rf(a)}; +xq=function(a){this.xb=Rf(a)}; +yq=function(a){this.xb=Rf(a)}; +zq=function(a){this.xb=Rf(a)}; +Aq=function(a){this.xb=Rf(a)}; +Bq=function(a){this.xb=Rf(a)}; +Cq=function(a){this.xb=Rf(a,497)}; +Dq=function(a){this.xb=Rf(a)}; +Eq=function(a){this.xb=Rf(a)}; +Hma=function(a){this.xb=Rf(a)}; +Ima=function(){return g.La("yt.ads.biscotti.lastId_")||""}; +Jma=function(a){g.Ka("yt.ads.biscotti.lastId_",a)}; +Gq=function(){var a=arguments;a.length>1?Fq[a[0]]=a[1]:a.length===1&&Object.assign(Fq,a[0])}; +g.Hq=function(a,b){return a in Fq?Fq[a]:b}; +Iq=function(a){var b=Fq.EXPERIMENT_FLAGS;return b?b[a]:void 0}; +Kma=function(a){Jq.forEach(function(b){return b(a)})}; +g.Lq=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Kq(b)}}:a}; +g.Kq=function(a){var b=g.La("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.Hq("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Gq("ERRORS",b));Kma(a)}; +Qq=function(a,b,c,d,e){var f=g.La("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.Hq("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Gq("ERRORS",f))}; +Rq=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}}; +g.Wq=function(a,b){return Oma(a,b||{},!0)}; +Xq=function(a,b){return Oma(a,b||{},!1)}; +Oma=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=Tq(e[1]||"");for(var f in b)if(c||!g.zc(e,f))e[f]=b[f];return g.Ji(a,e)+d}; +Yq=function(a){if(!b)var b=window.location.href;var c=g.Bi(1,a),d=g.Ci(a);c&&d?(a=a.match(Ai),b=b.match(Ai),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Ci(b)===d&&(Number(g.Bi(4,b))||null)===(Number(g.Bi(4,a))||null):!0;return a}; +Zq=function(a){a||(a=document.location.href);a=g.Bi(1,a);return a!==null&&a==="https"}; +$q=function(a){a=Pma(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +Qma=function(a){a=Pma(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1}; +Pma=function(a){a=g.Ci(a);return a!==null?a.split(".").reverse():null}; +Lma=function(a){return a&&a.match(Rma)?a:Sd(a)}; +cr=function(a){var b=ar;a=a===void 0?Ima():a;var c=Object,d=c.assign,e=br(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var r=f.screenLeft;var t=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var u=f.screen.availWidth;var y=f.screen.availTop}catch(D){}f=[r,t,h,l,u,y,m,n,p,q];h=wia(!1,b.j.top);l={};var A=A===void 0?g.Ja:A;m=new Io;"SVGElement"in A&&"createElementNS"in +A.document&&m.set(0);n=Iha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=ula(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=gl(b.B),l.wgl=!!dl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c}; +br=function(a){var b={};b.dt=Sma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?dl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=dl.screen)==null?void 0:f.height;var h;b.u_w=(h=dl.screen)==null?void 0:h.width;var l;b.u_ah=(l=dl.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=dl.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=dl.screen)==null?void 0: +n.colorDepth}catch(p){}return b}; +Uma=function(){if(!Tma)return null;var a=Tma();return"open"in a?a:null}; +g.er=function(a){switch(dr(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +dr=function(a){return a&&"status"in a?a.status:-1}; +g.fr=function(a,b){typeof a==="function"&&(a=g.Lq(a));return window.setTimeout(a,b)}; +g.gr=function(a,b){typeof a==="function"&&(a=g.Lq(a));return window.setInterval(a,b)}; +g.hr=function(a){window.clearTimeout(a)}; +g.ir=function(a){window.clearInterval(a)}; +g.kr=function(a){a=jr(a);return typeof a==="string"&&a==="false"?!1:!!a}; +g.lr=function(a,b){a=jr(a);return a===void 0&&b!==void 0?b:Number(a||0)}; +mr=function(){return g.Hq("EXPERIMENTS_TOKEN","")}; +jr=function(a){return g.Hq("EXPERIMENT_FLAGS",{})[a]}; +nr=function(){for(var a=[],b=g.Hq("EXPERIMENTS_FORCED_FLAGS",{}),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.Hq("EXPERIMENT_FLAGS",{});d=g.w(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a}; +or=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.Lq(b)(n)} +c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Uma();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.kr("debug_forward_web_query_parameters")&&(a=Vma(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Wma(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){Qq(q)}}n.send(d);return n}; +Wma=function(a,b){b=b===void 0?{}:b;var c=Yq(a),d=g.Hq("INNERTUBE_CLIENT_NAME"),e=g.kr("web_ajax_ignore_global_headers_if_set"),f;for(f in Xma){var h=g.Hq(Xma[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.Hq("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.Ci(a)?!1:!0))){m=a;var n;if(n=g.kr("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&Qma(m))m=zi(g.Bi(5,m))||"",m=m.split("/"), +m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.Ci(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Ci(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.Ci(a)||(b["X-YouTube-Ad-Signals"]= +Sq(cr()));return b}; +Zma=function(a,b){var c=g.Ci(a);g.kr("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Yq(a)&&(c=document.location.hostname);var d=zi(g.Bi(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=Tq(b),f={};g.dc(Yma,function(h){e[h]&&(f[h]=e[h])}); +return Xq(a,f)}; +qr=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.pr(a,b)}; +g.pr=function(a,b){var c=b.format||"JSON";a=$ma(a,b);var d=ana(a,b),e=!1,f=bna(a,function(m){if(!e){e=!0;l&&g.hr(l);var n=g.er(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=cna(a,c,m,b.convertToSafeHtml);n&&(n=dna(c,m,p));p=p||{};q=b.context||g.Ja;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials); +d=b.timeout||0;if(b.onTimeout&&d>0){var h=b.onTimeout;var l=g.fr(function(){e||(e=!0,f.abort(),g.hr(l),h.call(b.context||g.Ja,f))},d)}return f}; +$ma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Hq("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.Wq(a,b);return a}; +ana=function(a,b){var c=g.Hq("XSRF_FIELD_NAME"),d=g.Hq("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Hq("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Ci(a)&&!b.withCredentials&&g.Ci(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.kr("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Tq(e),g.Hc(e,f),e=b.postBodyFormat&& +b.postBodyFormat==="JSON"?JSON.stringify(e):g.Ii(e));f=e||f&&!g.Cc(f);!ena&&f&&b.method!=="POST"&&(ena=!0,g.Kq(Error("AJAX request with postData should use POST")));return e}; +cna=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,Qq(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?fna(a):null)e={},g.dc(a.getElementsByTagName("*"),function(h){e[h.tagName]=gna(h)})}d&&hna(e); +return e}; +hna=function(a){if(g.Qa(a))for(var b in a)b==="html_content"||raa(b,"_html")?a[b]=xd(a[b]):hna(a[b])}; +dna=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; +fna=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null}; +gna=function(a){var b="";g.dc(a.childNodes,function(c){b+=c.nodeValue}); +return b}; +sr=function(a,b){var c=g.Fc(b),d;return(new g.De(function(e,f){c.onSuccess=function(h){g.er(h)?e(new ina(h)):f(new rr("Request failed, status="+dr(h),"net.badstatus",h))}; +c.onError=function(h){f(new rr("Unknown request error","net.unknown",h))}; +c.onTimeout=function(h){f(new rr("Request timed out","net.timeout",h))}; +d=g.pr(a,c)})).Xk(function(e){if(e instanceof Je){var f; +(f=d)==null||f.abort()}return Ge(e)})}; +g.tr=function(a,b,c,d){function e(l,m,n){return l.Xk(function(p){if(m<=0||dr(p.xhr)===403)return Ge(new rr("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(sr(a,b),m-1,q)})})} +function f(l){return new g.De(function(m){setTimeout(m,l)})} +var h=h===void 0?-1:h;return e(sr(a,b),c-1,d)}; +rr=function(a,b,c){kb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"}; +ina=function(a){this.xhr=a}; +ur=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null}; +vr=function(a){var b=new ur;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b}; +wr=function(a){var b=new ur;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b}; +g.zr=function(a,b,c,d,e){xr||yr.set(""+a,b,{rG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})}; +g.Ar=function(a,b){if(!xr)return yr.get(""+a,b)}; +g.Br=function(a,b,c){xr||yr.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)}; +jna=function(){if(g.kr("embeds_web_enable_cookie_detection_fix")){if(!g.Ja.navigator.cookieEnabled)return!1}else if(!yr.isEnabled())return!1;if(!yr.isEmpty())return!0;g.kr("embeds_web_enable_cookie_detection_fix")?yr.set("TESTCOOKIESENABLED","1",{rG:60,bea:"none",secure:!0}):yr.set("TESTCOOKIESENABLED","1",{rG:60});if(yr.get("TESTCOOKIESENABLED")!=="1")return!1;yr.remove("TESTCOOKIESENABLED");return!0}; +g.Q=function(a,b){if(a)return a[b.name]}; +Cr=function(a){var b=g.Hq("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Di(a)));return a}; +kna=function(a,b){var c={};g.kr("web_api_key_killswitch")&&(g.Hq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.Hq("INNERTUBE_API_KEY")));g.kr("json_condensed_response")&&(c.prettyPrint="false");return a=Xq(a,c)}; +Dr=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:Yq(a)?"same-origin":"cors",credentials:Yq(a)?"same-origin":"include"};b={};for(var d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a}; +lna=function(){var a=/Chrome\/(\d+)/.exec(g.yb());return a?parseFloat(a[1]):NaN}; +Fr=function(){return g.Er("android")&&g.Er("chrome")&&!(g.Er("trident/")||g.Er("edge/"))&&!g.Er("cobalt")}; +mna=function(){return g.Er("armv7")||g.Er("aarch64")||g.Er("android")}; +g.Gr=function(){return g.Er("cobalt")}; +Hr=function(){return g.Er("cobalt")&&g.Er("appletv")}; +Ir=function(){return g.Er("(ps3; leanback shell)")||g.Er("ps3")&&g.Gr()}; +Jr=function(){return g.Er("(ps4; leanback shell)")||g.Er("ps4")&&g.Gr()}; +g.nna=function(){return g.Gr()&&(g.Er("ps4 vr")||g.Er("ps4 pro vr"))}; +Kr=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&parseInt(a[1],10)>=600)}; +Lr=function(){var a=/WebKit\/([0-9]+)/.exec(g.yb());return!!(a&&parseInt(a[1],10)>=602)}; +ona=function(){return g.Er("iemobile")||g.Er("windows phone")&&g.Er("edge")}; +Or=function(){return(Mr||Nr)&&g.Er("applewebkit")&&!g.Er("version")&&(!g.Er("safari")||g.Er("gsa/"))}; +Qr=function(){return g.Pr&&g.Er("version/")}; +Rr=function(){return g.Er("smart-tv")&&g.Er("samsung")}; +g.Er=function(a){var b=g.yb();return b?b.toLowerCase().indexOf(a)>=0:!1}; +Sr=function(){return kfa()||Or()||Qr()?!0:g.Hq("EOM_VISITOR_DATA")?!1:!0}; +Tr=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1}; +Ur=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}; +Vr=function(a,b){return b===void 0||b===null?a:Number(b)}; +Wr=function(a,b){return b===void 0||b===null?a:b.toString()}; +Xr=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(pna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN}; +Yr=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null}; +qna=function(a){return Zr(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.$r=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +Zr=function(a,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?Ur(b,c.embeddedPlayerMode,rna):b}; +bs=function(a){kb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof as;this.isTimeout=a instanceof rr&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Je}; +as=function(){kb.call(this,"Biscotti ID is missing from server")}; +sna=function(){if(g.kr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Sr())return Error("User has not consented - not fetching biscotti id.");var a=g.Hq("PLAYER_VARS",{});if(g.Dc(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(qna(a))return Error("Biscotti id fetching has been disabled for pfl.")}; +wna=function(){var a=sna();if(a!==void 0)return Ge(a);cs||(cs=sr("//googleads.g.doubleclick.net/pagead/id",tna).then(una).Xk(function(b){return vna(2,b)})); +return cs}; +una=function(a){a=a.xhr.responseText;if(!qb(a,")]}'"))throw new as;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new as;a=a.id;Jma(a);cs=wr(a);xna(18E5,2);return a}; +vna=function(a,b){b=new bs(b);Jma("");cs=vr(b);a>0&&xna(12E4,a-1);throw b;}; +xna=function(a,b){g.fr(function(){sr("//googleads.g.doubleclick.net/pagead/id",tna).then(una,function(c){return vna(b,c)}).Xk(g.Zc)},a)}; +yna=function(){try{var a=g.La("yt.ads.biscotti.getId_");return a?a():wna()}catch(b){return Ge(b)}}; +Ana=function(a){a&&(a.dataset?a.dataset[zna()]="true":Kba(a))}; +Bna=function(a){return a?a.dataset?a.dataset[zna()]:a.getAttribute("data-loaded"):null}; +zna=function(){return Cna.loaded||(Cna.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))}; +Dna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=ds+"VisibilityState";if(b in a)return a[b]}; +es=function(a,b){var c;sm(a,function(d){c=b[d];return!!c}); +return c}; +fs=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return a instanceof Promise?a:Promise.resolve()}; +is=function(a){var b;g.gs()?hs()==a&&(b=document):b=a;return b&&(a=es(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; +Ena=function(a){return g.Mb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; +Fna=function(){var a=document;return g.Mb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; +g.gs=function(){return!!es(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +hs=function(a){a=a===void 0?!1:a;var b=es(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; +js=function(a){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(a=a||window.event){this.event=a;for(var b in a)b in Gna||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; +if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}}; +Hna=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}}; +Ina=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Bc(ks,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Qa(e[4])&&g.Qa(d)&&g.Ec(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; +g.ls=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Ina(a,b,c,d);if(e)return e;e=++Jna.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new js(l);if(!se(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new js(l); +l.currentTarget=a;return c.call(a,l)}; +h=g.Lq(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Kna()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);ks[e]=[a,b,c,h,d];return e}; +Mna=function(a){return Lna(a,function(b){return g.Vo(b,"ytp-ad-has-logging-urls")})}; +Lna=function(a,b){var c=document.body||document;return g.ls(c,"click",function(d){var e=se(d.target,function(f){return f===c||b(f)},!0); +e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; +g.ms=function(a){a&&(typeof a=="string"&&(a=[a]),g.dc(a,function(b){if(b in ks){var c=ks[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Kna()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ks[b]}}))}; +ns=function(a){for(var b in ks)ks[b][0]==a&&g.ms(b)}; +os=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a}; +ps=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.ls(window,"mousemove",(0,g.Ta)(this.Y,this));this.Z=g.gr((0,g.Ta)(this.qa,this),25)}; +qs=function(a){g.O.call(this);this.N=[];this.ob=a||this}; +rs=function(a,b,c,d){for(var e=0;e0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.vs)():ws())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}; +g.ys=function(a){var b=ws(),c=(0,g.vs)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d}; +Pna=function(){var a=(0,g.vs)();if(a&&(a=a.B("yt-player-quality")))return a.creation}; +g.zs=function(a){try{var b=ws(),c=(0,g.vs)();b&&b.remove(a);c&&c.remove(a)}catch(d){}}; +g.As=function(){return g.ys("yt-remote-session-screen-id")}; +Qna=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c}); +a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})}; +Bs=function(){if(!g.Ja.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ja.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ja.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ja.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ja.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +Cs=function(){this.d3=!0}; +Rna=function(){Cs.instance||(Cs.instance=new Cs);return Cs.instance}; +Sna=function(a){switch(a){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}}; +Tna=function(){this.j=g.Hq("ALT_PREF_COOKIE_NAME","PREF");this.B=g.Hq("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Ar(this.j);a&&this.parse(a)}; +g.Es=function(){Ds||(Ds=new Tna);return Ds}; +g.Fs=function(a,b){return!!((Una("f"+(Math.floor(b/31)+1))||0)&1<0;)switch(a=at.shift(),a.type){case "ERROR":Xs.Pl(a.payload);break;case "EVENT":Xs.logEvent(a.eventType,a.payload)}}; +ct=function(a){bt||(Xs?Xs.Pl(a):(at.push({type:"ERROR",payload:a}),at.length>10&&at.shift()))}; +dt=function(a,b){bt||(Xs?Xs.logEvent(a,b):(at.push({type:"EVENT",eventType:a,payload:b}),at.length>10&&at.shift()))}; +et=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +ft=function(a){return a.substr(0,a.indexOf(":"))||a}; +g.gt=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?boa[a]:c;d=d===void 0?coa[a]:d;e=e===void 0?doa[a]:e;g.Ks.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.gt.prototype)}; +ht=function(a,b){g.gt.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},boa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ht.prototype)}; +it=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,it.prototype)}; +kt=function(a,b,c,d){b=ft(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.gt)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.gt("QUOTA_EXCEEDED",a);if(g.jt&&e.name==="UnknownError")return new g.gt("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof it)return new g.gt("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&eoa.some(function(f){return e.message.includes(f)}))return new g.gt("EXECUTE_TRANSACTION_ON_CLOSED_DB", +a); +if(e.name==="AbortError")return new g.gt("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",RL:e.name})];e.level="WARNING";return e}; +g.lt=function(a,b,c){var d=Ws();return new g.gt("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; +foa=function(a){if(!a)throw Error();throw a;}; +goa=function(a){return a}; +mt=function(a){this.j=a}; +g.nt=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.w(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} +function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.w(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} +var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}}; +hoa=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.nt?ot(a,b,f,d,e):d(f)}catch(h){e(h)}}; +ioa=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.nt?ot(a,b,f,d,e):d(f)}catch(h){e(h)}}; +ot=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.nt?ot(a,b,f,d,e):d(f)},function(f){e(f)})}; +joa=function(a,b,c){function d(){c(a.error);f()} +function e(){b(a.result);f()} +function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}} +a.addEventListener("success",e);a.addEventListener("error",d)}; +koa=function(a){return new Promise(function(b,c){joa(a,b,c)})}; +pt=function(a){return new g.nt(new mt(function(b,c){joa(a,b,c)}))}; +qt=function(a,b){return new g.nt(new mt(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()} +e()}))}; +loa=function(a,b){this.request=a;this.cursor=b}; +moa=function(a){return pt(a).then(function(b){return b?new loa(a,b):null})}; +g.noa=function(a){a.cursor.continue(void 0);return moa(a.request)}; +ooa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.rt)());this.B=!1}; +g.ut=function(a,b,c){a=a.j.createObjectStore(b,c);return new tt(a)}; +vt=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)}; +g.zt=function(a,b,c){return g.wt(a,[b],{mode:"readwrite",Qb:!0},function(d){return g.xt(d.objectStore(b),c)})}; +g.wt=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){switch(A.j){case 1:var D={mode:"readonly",Qb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Qb?3:1;h=0;case 2:if(l){A.Ia(4);break}h++;m=Math.round((0,g.rt)());g.va(A,5);n=a.j.transaction(b,e.mode);D=new At(n);D=poa(D,d);return g.G(A,D,7);case 7:return p=A.B,q=Math.round((0,g.rt)()),qoa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.xa(A);t=Math.round((0,g.rt)()); +u=kt(r,a.j.name,b.join(),a.j.version);if((y=u instanceof g.gt&&!u.j)||h>=f)qoa(a,m,t,h,u,b.join(),e),l=u;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})}; +qoa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.gt&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&dt("QUOTA_EXCEEDED",{dbName:ft(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.gt&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),dt("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),roa(a,!1,d,f,b,h.tag),ct(e)):roa(a,!0,d, +f,b,h.tag)}; +roa=function(a,b,c,d,e,f){dt("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; +tt=function(a){this.j=a}; +g.Bt=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; +soa=function(a,b){return g.Ct(a,{query:b},function(c){return c.delete().then(function(){return g.Dt(c)})}).then(function(){})}; +toa=function(a,b,c){var d=[];return g.Ct(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.Dt(e)}).then(function(){return d})}; +voa=function(a){return"getAllKeys"in IDBObjectStore.prototype?pt(a.j.getAllKeys(void 0,void 0)):uoa(a)}; +uoa=function(a){var b=[];return g.woa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.noa(c)}).then(function(){return b})}; +g.xt=function(a,b,c){return pt(a.j.put(b,c))}; +g.Ct=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Et(a).then(function(d){return qt(d,c)})}; +g.woa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return moa(a).then(function(e){return qt(e,c)})}; +At=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); +b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); +b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.gt;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),g.Dt(e)}).then(function(){return d})}; +g.Ft=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return Et(a).then(function(d){return qt(d,c)})}; +Gt=function(a,b){this.request=a;this.cursor=b}; +Et=function(a){return pt(a).then(function(b){return b?new Gt(a,b):null})}; +g.Dt=function(a){a.cursor.continue(void 0);return Et(a.request)}; +zoa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new ooa(h.result,{closed:q}));return r} +var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Sea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&dt("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:ft(a)});var u=f(),y=new At(h.transaction); +p&&p(u,function(A){return t.oldVersion=A},y); +y.done.catch(function(A){e(A)})}catch(A){e(A)}}); +h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())}); +t.addEventListener("close",function(){dt("IDB_UNEXPECTEDLY_CLOSED",{dbName:ft(a),dbVersion:t.version});n&&n()}); +d(f())}); +h.addEventListener("error",function(){e(h.error)}); +l&&h.addEventListener("blocked",function(){l()})})}; +Aoa=function(a,b,c){c=c===void 0?{}:c;return zoa(a,b,c)}; +Ht=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.J(function(h){if(h.j==1)return g.va(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.G(h,koa(c),4); +if(h.j!=2)return g.wa(h,0);f=g.xa(h);throw kt(f,a,"",-1);})}; +It=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; +Boa=function(a,b){return new g.gt("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; +g.Jt=function(a,b){if(!b)throw g.lt("openWithToken",ft(a.name));return a.open()}; +Coa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,g.Jt(Kt,b),2);c=d.B;return d.return(g.wt(c,["databases"],{Qb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.xt(f,a).then(function(){})})}))})}; +Lt=function(a,b){var c;return g.J(function(d){if(d.j==1)return a?g.G(d,g.Jt(Kt,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; +Doa=function(a,b){var c,d;return g.J(function(e){return e.j==1?(c=[],g.G(e,g.Jt(Kt,b),2)):e.j!=3?(d=e.B,g.G(e,g.wt(d,["databases"],{Qb:!0,mode:"readonly"},function(f){c.length=0;return g.Ct(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.Dt(h)})}),3)):e.return(c)})}; +Eoa=function(a,b){return Doa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)}; +Foa=function(){var a,b,c,d;return g.J(function(e){switch(e.j){case 1:a=Ws();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(Mt&&Kr()&&!Lr()||g.Nt)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.G(e,Coa(d,Ot),4);case 4:return g.G(e,Lt("yt-idb-test-do-not-use",Ot),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})}; +Goa=function(){if(Pt!==void 0)return Pt;bt=!0;return Pt=Foa().then(function(a){bt=!1;var b;if((b=Vs())!=null&&b.j){var c;b={hasSucceededOnce:((c=Ws())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Vs())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; +Qt=function(){return g.La("ytglobal.idbToken_")||void 0}; +g.Rt=function(){var a=Qt();return a?Promise.resolve(a):Goa().then(function(b){(b=b?Ot:void 0)&&g.Ka("ytglobal.idbToken_",b);return b})}; +Hoa=function(a){if(!g.Ms())throw a=new g.gt("AUTH_INVALID",{dbName:a}),ct(a),a;var b=g.Ls();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; +Ioa=function(a,b,c,d){var e,f,h,l,m,n;return g.J(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.Rt(),2);case 2:h=p.B;if(!h)throw l=g.lt("openDbImpl",a,b),g.kr("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),ct(l),l;et(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Hoa(a);g.va(p,3);return g.G(p,Coa(m,h),5);case 5:return g.G(p,Aoa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.xa(p),g.va(p,7),g.G(p,Lt(m.actualName, +h),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})}; +Joa=function(a,b,c){c=c===void 0?{}:c;return Ioa(a,b,!1,c)}; +Koa=function(a,b,c){c=c===void 0?{}:c;return Ioa(a,b,!0,c)}; +Loa=function(a,b){b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Rt(),2);if(e.j!=3){c=e.B;if(!c)return e.return();et(a);d=Hoa(a);return g.G(e,Ht(d.actualName,b),3)}return g.G(e,Lt(d.actualName,c),0)})}; +Moa=function(a,b,c){a=a.map(function(d){return g.J(function(e){return e.j==1?g.G(e,Ht(d.actualName,b),2):g.G(e,Lt(d.actualName,c),0)})}); +return Promise.all(a).then(function(){})}; +Noa=function(a){var b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Rt(),2);if(e.j!=3){c=e.B;if(!c)return e.return();et(a);return g.G(e,Eoa(a,c),3)}d=e.B;return g.G(e,Moa(d,b,c),0)})}; +Ooa=function(a,b){b=b===void 0?{}:b;var c;return g.J(function(d){if(d.j==1)return g.G(d,g.Rt(),2);if(d.j!=3){c=d.B;if(!c)return d.return();et(a);return g.G(d,Ht(a,b),3)}return g.G(d,Lt(a,c),0)})}; +St=function(a,b){It.call(this,a,b);this.options=b;et(a)}; +Poa=function(a,b){var c;return function(){c||(c=new St(a,b));return c}}; +g.Tt=function(a,b){return Poa(a,b)}; +Ut=function(a){return g.Jt(Qoa(),a)}; +Roa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.rt)()},g.G(l,Ut(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.zt(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; +Soa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.rt)()},g.G(m,Ut(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.zt(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; +Toa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Ut(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.wt(b,["coldConfigStore"],{mode:"readwrite",Qb:!0},function(e){return g.Ft(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; +Uoa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Ut(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.wt(b,["hotConfigStore"],{mode:"readwrite",Qb:!0},function(e){return g.Ft(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; +Voa=function(){return g.J(function(a){return g.G(a,Noa("ytGcfConfig"),0)})}; +Vt=function(){g.O.call(this);this.B=[];this.j=[];var a=g.La("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.x(a)),this.j=a):(this.j=[],g.Ka("yt.gcf.config.hotUpdateCallbacks",this.j))}; +au=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Vt;this.hd={Doa:function(){a.G=!0}, +Ina:function(){return a.j}, +Kpa:function(b){Wt(a,b)}, +Ls:function(b){a.Ls(b)}, +Epa:function(b){Xt(a,b)}, +c9:function(){return a.coldHashData}, +k9:function(){return a.hotHashData}, +Zna:function(){return a.B}, +Rna:function(){return Yt()}, +Tna:function(){return Zt()}, +Sna:function(){return g.La("yt.gcf.config.coldHashData")}, +Una:function(){return g.La("yt.gcf.config.hotHashData")}, +cqa:function(){Woa(a)}, +xpa:function(){a.Ls(void 0);$t(a);delete au.instance}, +Hpa:function(b){a.C=b}, +Nna:function(){return a.C}}}; +Xoa=function(){if(!au.instance){var a=new au;au.instance=a}return au.instance}; +$oa=function(a){var b;g.J(function(c){if(c.j==1)return g.kr("start_client_gcf")||g.kr("delete_gcf_config_db")?g.kr("start_client_gcf")?g.G(c,g.Rt(),3):c.Ia(2):c.return();c.j!=2&&((b=c.B)&&g.Ms()&&!g.kr("delete_gcf_config_db")?(a.G=!0,Woa(a)):(Yoa(a),Zoa(a)));return g.kr("delete_gcf_config_db")?g.G(c,Voa(),0):c.Ia(0)})}; +bu=function(){var a;return(a=Zt())!=null?a:g.Hq("RAW_HOT_CONFIG_GROUP")}; +apa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.B)return l.return(Zt());if(!a.G)return b=g.lt("getHotConfig IDB not initialized"),Qq(b),l.return(Promise.reject(b));c=Qt();d=g.Hq("TIME_CREATED_MS");if(!c){e=g.lt("getHotConfig token error");Qq(e);l.Ia(2);break}return g.G(l,Uoa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Wt(a,f.config),a.Ls(f.hashData),l.return(Zt());case 2:Zoa(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.G(l,Roa(a.B,a.hotHashData,c,d),4);case 4:return a.B? +l.return(Zt()):(h=new g.Ks("Config not available in ytConfig"),Qq(h),l.return(Promise.reject(h)))}})}; +cpa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j)return l.return(Yt());if(!a.G)return b=g.lt("getColdConfig IDB not initialized"),Qq(b),l.return(Promise.reject(b));c=Qt();d=g.Hq("TIME_CREATED_MS");if(!c){e=g.lt("getColdConfig");Qq(e);l.Ia(2);break}return g.G(l,Toa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Xt(a,f.config),bpa(a,f.configData),$t(a,f.hashData),l.return(Yt());case 2:Yoa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.G(l,Soa(a.j, +a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Yt()):(h=new g.Ks("Config not available in ytConfig"),Qq(h),l.return(Promise.reject(h)))}})}; +Woa=function(a){if(!a.B||!a.j){if(!Qt()){var b=g.lt("scheduleGetConfigs");Qq(b)}a.D||(a.D=g.Ho.Wi(function(){return g.J(function(c){switch(c.j){case 1:return g.va(c,2),g.G(c,apa(a),4);case 4:g.wa(c,3);break;case 2:g.xa(c);case 3:return g.va(c,5),g.G(c,cpa(a),7);case 7:g.wa(c,6);break;case 5:g.xa(c);case 6:a.D&&(a.D=0),g.ua(c)}})},100))}}; +dpa=function(a,b,c){var d,e,f;return g.J(function(h){switch(h.j){case 1:if(!g.kr("start_client_gcf")){h.Ia(0);break}c&&Wt(a,c);a.Ls(b);d=Qt();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.G(h,Uoa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,Roa(c,b,d),3);case 3:if(c)for(var l=c,m=g.w(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.ua(h)}})}; +epa=function(a,b,c){var d,e,f,h;return g.J(function(l){if(l.j==1){if(!g.kr("start_client_gcf"))return l.Ia(0);$t(a,b);return(d=Qt())?c?l.Ia(4):g.G(l,Toa(d),5):l.Ia(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.G(l,Soa(c,b,h,d),0)})}; +fpa=function(){var a=Xoa(),b=(0,g.rt)()-a.C;if(!(a.C!==0&&b0&&(b.request={internalExperimentFlags:c});hpa(a,void 0,b);ipa(void 0,b);jpa(void 0,b);kpa(a,void 0,b);lpa(void 0,b);g.kr("start_client_gcf")&&mpa(void 0,b);g.Hq("DELEGATED_SESSION_ID")&& +!g.kr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.Hq("DELEGATED_SESSION_ID")});!g.kr("fill_delegate_context_in_gel_killswitch")&&(a=g.Hq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.w(Object.entries(Tq(g.Hq("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"? +e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b}; +hpa=function(a,b,c){a=a.RQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=vg(b,qq,96)||new qq;var d=Bs();d=Object.keys(npa).indexOf(d);d=d===-1?null:d;d!==null&&Ig(c,3,d);wg(b,qq,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=Bs())}; +ipa=function(a,b){var c=g.La("yt.embedded_player.embed_url");c&&(a?(b=vg(a,uq,7)||new uq,Gg(b,4,c),wg(a,uq,7,b)):b&&(b.thirdParty={embedUrl:c}))}; +jpa=function(a,b){var c;if(g.kr("web_log_memory_total_kbytes")&&((c=g.Ja.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Ja.navigator)==null?void 0:d.deviceMemory;a?ag(a,95,Ef(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}}; +kpa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=vg(b,pq,62))!=null?d:new pq;Gg(c,6,a.appInstallData);wg(b,pq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)}; +lpa=function(a,b){var c=Xna();c&&(a?Ig(a,61,opa[c]):b&&(b.client.connectionType=c));g.kr("web_log_effective_connection_type")&&(c=Zna())&&(a?Ig(a,94,ppa[c]):b&&(b.client.effectiveConnectionType=c))}; +qpa=function(a,b,c){c=c===void 0?{}:c;var d={};g.Hq("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Hq("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Hq("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.kX||g.Hq("AUTHORIZATION");b||(a?b="Bearer "+g.La("gapi.auth.getToken")().access_token:(a=Rna().jF(eu),g.kr("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d}; +mpa=function(a,b){var c=fpa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=vg(a,pq,62))!=null?f:new pq;d=Gg(b,1,d);Gg(d,3,e).Ls(c);wg(a,pq,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}}; +fu=function(a,b){this.version=a;this.args=b}; +gu=function(a,b){this.topic=a;this.j=b}; +iu=function(a,b){var c=hu();c&&c.publish.call(c,a.toString(),a,b)}; +tpa=function(a){var b=rpa,c=hu();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var h=g.La("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(ju[d])try{if(f&&b instanceof gu&&b!=e)try{var l=b.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Lv){var n=new l;l.Lv=n.version}var p=l.Lv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l, +g.Ub(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+q.message,q;}a.call(window,f)}catch(q){g.Kq(q)}},spa[b.toString()]?g.Ss()?g.Ho.Wi(h):g.fr(h,0):h())}); +ju[d]=!0;ku[b.toString()]||(ku[b.toString()]=[]);ku[b.toString()].push(d);return d}; +wpa=function(){var a=upa,b=tpa(function(c){a.apply(void 0,arguments);vpa(b)}); +return b}; +vpa=function(a){var b=hu();b&&(typeof a==="number"&&(a=[a]),g.dc(a,function(c){b.unsubscribeByKey(c);delete ju[c]}))}; +hu=function(){return g.La("ytPubsub2Pubsub2Instance")}; +lu=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()Cpa||h=Gpa&&(Fu++,g.kr("abandon_compression_after_N_slow_zips")?Eu===g.lr("compression_disable_point")&&Fu>Hpa&&(Bu=!1):Bu=!1);Ipa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; +Jpa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.rt)(),e={startTime:d,ticks:{},infos:{}},f=b?g.La("yt.logging.gzipForFetch",!1):!0;if(Bu&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=Bpa(h);if(l!=null&&(l>Cpa||l=Gpa)if(Fu++,g.kr("abandon_compression_after_N_slow_zips")||g.kr("abandon_compression_after_N_slow_zips_lr")){b=Fu/Eu;var n=Hpa/g.lr("compression_disable_point");Eu>0&&Eu%g.lr("compression_disable_point")===0&&b>=n&&(Bu=!1)}else Bu=!1;Ipa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return Qq(p),a}}else return a}; +Bpa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Qq(b),null}}; +Ipa=function(a){g.kr("gel_compression_csi_killswitch")||!g.kr("log_gel_compression_latency")&&!g.kr("log_gel_compression_latency_lr")||lu("gel_compression",a,{sampleRate:.1})}; +Hu=function(a){var b=this;this.gJ=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; +this.DA=function(){}; +this.now=Date.now;this.PE=!1;this.hd={Gpa:function(p){b.zf=p}, +dqa:function(){b.LC()}, +I7:function(){b.OO()}, +LF:function(p){return g.J(function(q){return g.G(q,b.LF(p),0)})}, +vM:function(p,q){return b.vM(p,q)}, +yM:function(){b.yM()}}; +var c;this.j3=(c=a.j3)!=null?c:100;var d;this.l2=(d=a.l2)!=null?d:1;var e;this.X1=(e=a.X1)!=null?e:2592E6;var f;this.R1=(f=a.R1)!=null?f:12E4;var h;this.j2=(h=a.j2)!=null?h:5E3;var l;this.zf=(l=a.zf)!=null?l:void 0;this.JJ=!!a.JJ;var m;this.pJ=(m=a.pJ)!=null?m:.1;var n;this.gM=(n=a.gM)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.DA&&(this.DA=a.DA);a.PE&&(this.PE=a.PE);a.gJ&&(this.gJ=a.gJ);this.kb=a.kb;this.Jo=a.Jo;this.Lh=a.Lh;this.kh=a.kh;this.sendFn=a.sendFn;this.JS=a.JS;this.TR= +a.TR;Gu(this)&&(!this.kb||this.kb("networkless_logging"))&&Kpa(this)}; +Kpa=function(a){Gu(a)&&!a.PE&&(a.j=!0,a.JJ&&Math.random()<=a.pJ&&a.Lh.M7(a.zf),a.yM(),a.kh.Jh()&&a.LC(),a.kh.listen(a.JS,a.LC.bind(a)),a.kh.listen(a.TR,a.OO.bind(a)))}; +Npa=function(a,b){if(!Gu(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; +b.options.onError=function(e,f){var h,l,m,n;return g.J(function(p){switch(p.j){case 1:h=Lpa(f);(l=Mpa(f))&&a.kb&&a.kb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.gM)){p.Ia(2);break}if(!a.kh.CM){p.Ia(3);break}return g.G(p,a.kh.CM(),3);case 3:if(a.kh.Jh()){p.Ia(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||((m=b)==null?void 0: +m.id)===void 0){p.Ia(6);break}return g.G(p,a.Lh.vT(b.id,a.zf,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.gM)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ia(8);break}return b.sendCount=400&&a<=599?!1:!0}; +Mpa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)}; +Opa=function(){if(Ju)return Ju();var a={};Ju=g.Tt("LogsDatabaseV2",{As:(a.LogsRequestsStore={Kn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.ut(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.Bt(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&vt(b,"sapisid");c(9)&&vt(b,"SWHealthLog")}, +version:9});return Ju()}; +Ku=function(a){return g.Jt(Opa(),a)}; +Qpa=function(a,b){var c,d,e,f;return g.J(function(h){if(h.j==1)return c={startTime:(0,g.rt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,Ku(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Hq("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.zt(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.rt)();Ppa(c);return h.return(f)})}; +Rpa=function(a,b){var c,d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1)return c={startTime:(0,g.rt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,Ku(b),2);if(p.j!=3)return d=p.B,e=g.Hq("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.rt)()],l=IDBKeyRange.bound(f,h),m="prev",g.kr("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.wt(d,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(q){return g.Ft(q.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3); +c.ticks.tc=(0,g.rt)();Ppa(c);return p.return(n)})}; +Spa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,Ku(b),2);c=d.B;return d.return(g.wt(c,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.xt(f,h).then(function(){return h})})}))})}; +Tpa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.J(function(f){if(f.j==1)return g.G(f,Ku(b),2);e=f.B;return f.return(g.wt(e,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.xt(l,m).then(function(){return m})):g.nt.resolve(void 0)})}))})}; +Upa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,Ku(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; +Vpa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,Ku(a),2);b=d.B;c=(0,g.rt)()-2592E6;return g.G(d,g.wt(b,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(e){return g.Ct(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.Dt(f)})})}),0)})}; +Wpa=function(){g.J(function(a){return g.G(a,Noa("LogsDatabaseV2"),0)})}; +Ppa=function(a){g.kr("nwl_csi_killswitch")||lu("networkless_performance",a,{sampleRate:1})}; +Ypa=function(a){return g.Jt(Xpa(),a)}; +Zpa=function(a){var b,c;g.J(function(d){if(d.j==1)return g.G(d,Ypa(a),2);b=d.B;c=(0,g.rt)()-2592E6;return g.G(d,g.wt(b,["SWHealthLog"],{mode:"readwrite",Qb:!0},function(e){return g.Ct(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.Dt(f)})})}),0)})}; +$pa=function(a){var b;return g.J(function(c){if(c.j==1)return g.G(c,Ypa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})}; +g.Lu=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.Gr()){if(a){a=g.nd(g.rd(a));if(a===g.qd.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.vd?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.spa&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.rpa&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.tpa&&(a=a.replace(/(\t+)/g,'$1')), +l=xd(a));a=g.Rd(g.ui(g.wd(l).toString()))}g.rb(a)||(l=he("IFRAME",{src:'javascript:""',style:"display:none"}),Yd(l).body.appendChild(l))}}else if(e)or(a,b,"POST",e,d);else if(g.Hq("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)or(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Yka({url:a});if(m.C&&m.B||m.D){var n=zi(g.Bi(5,a));var p=!(!n||!n.endsWith("/aclk")||Li(a,"ri")!=="1");break b}}catch(q){}p=!1}p?aqa(a)?(b&&b(),l=!0):l=!1:l=!1;l||bqa(a,b)}}; +aqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1}; +bqa=function(a,b){var c=new Image,d=""+cqa++;Mu[d]=c;c.onload=c.onerror=function(){b&&Mu[d]&&b();delete Mu[d]}; +c.src=a}; +dqa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"}; +Ou=function(){Nu||(Nu=new Us("yt.offline"));return Nu}; +eqa=function(a){if(g.kr("offline_error_handling")){var b=Ou().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Ou().set("errors",b,2592E3,!0)}}; +Pu=function(){this.j=new Map;this.B=!1}; +Qu=function(){if(!Pu.instance){var a=g.La("yt.networkRequestMonitor.instance")||new Pu;g.Ka("yt.networkRequestMonitor.instance",a);Pu.instance=a}return Pu.instance}; +Ru=function(){g.Vc.call(this);var a=this;this.B=!1;this.j=tla();this.j.listen("networkstatus-online",function(){if(a.B&&g.kr("offline_error_handling")){var b=Ou().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.Ks(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Kq(d)}Ou().set("errors",{},2592E3,!0)}}})}; +fqa=function(){if(!Ru.instance){var a=g.La("yt.networkStatusManager.instance")||new Ru;g.Ka("yt.networkStatusManager.instance",a);Ru.instance=a}return Ru.instance}; +g.Su=function(a){a=a===void 0?{}:a;g.Vc.call(this);var b=this;this.j=this.D=0;this.B=fqa();var c=g.La("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){gqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){gqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; +gqa=function(a,b){a.rateLimit?a.j?(g.Ho.jk(a.D),a.D=g.Ho.Wi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.rt)())},a.rateLimit-((0,g.rt)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.rt)()):a.dispatchEvent(b)}; +Uu=function(){var a=Hu.call;Tu||(Tu=new g.Su({Qoa:!0,ina:!0}));a.call(Hu,this,{Lh:{M7:Vpa,eA:Upa,PY:Rpa,Q$:Spa,vT:Tpa,set:Qpa},kh:Tu,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;Qq(new g.Ks(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.Kq(b)}, +DA:Qq,sendFn:hqa,now:g.rt,j4:eqa,Jo:g.Rs(),JS:"publicytnetworkstatus-online",TR:"publicytnetworkstatus-offline",JJ:!0,pJ:.1,gM:g.lr("potential_esf_error_limit",10),kb:g.kr,PE:!(g.Ms()&&g.Ci(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.ej;g.kr("networkless_immediately_drop_all_requests")&&Wpa();Ooa("LogsDatabaseV2")}; +Vu=function(){var a=g.La("yt.networklessRequestController.instance");a||(a=new Uu,g.Ka("yt.networklessRequestController.instance",a),g.kr("networkless_logging")&&g.Rt().then(function(b){a.zf=b;Kpa(a);a.C.resolve();a.JJ&&Math.random()<=a.pJ&&a.zf&&Zpa(a.zf);g.kr("networkless_immediately_drop_sw_health_store")&&iqa(a)})); +return a}; +iqa=function(a){var b;g.J(function(c){if(!a.zf)throw b=g.lt("clearSWHealthLogsDb"),b;return c.return($pa(a.zf).catch(function(d){a.handleError(d)}))})}; +hqa=function(a,b,c,d){d=d===void 0?!1:d;b=g.kr("web_fp_via_jspb")?Object.assign({},b):b;g.kr("use_cfr_monitor")&&jqa(a,b);if(g.kr("use_request_time_ms_header"))b.headers&&Yq(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.rt)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.rt)())}c&&Object.keys(b).length===0?g.Lu(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Du(a,b.postBody, +b,g.pr,d)):Du(a,JSON.stringify(b.postParams),b,qr,d):g.pr(a,b)}; +Wu=function(a,b){g.kr("use_event_time_ms_header")&&Yq(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.rt)())));return b}; +jqa=function(a,b){var c=b.onError?b.onError:function(){}; +b.onError=function(e,f){Qu().requestComplete(a,!1);c(e,f)}; +var d=b.onSuccess?b.onSuccess:function(){}; +b.onSuccess=function(e,f){Qu().requestComplete(a,!0);d(e,f)}}; +g.Xu=function(a){this.config_=null;a?this.config_=a:gpa()&&(this.config_=g.cu())}; +g.Yu=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?Vu().writeThenSend(n,f):Vu().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));Du(n,r,f,g.pr,q)}else Du(n,JSON.stringify(f.postParams),f,qr,q)}else g.kr("web_all_payloads_via_jspb")?g.pr(n,f):qr(n,f)}catch(t){if(t.name==="InvalidAccessError")Qq(Error("An extension is blocking network request.")); +else throw t;}} +!g.Hq("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Qq(new g.Ks("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.Ks("innertube xhrclient not ready",b,c,d),g.Kq(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, +onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, +onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, +onError:function(p,q){if(d.onError)d.onError(q)}, +onFetchError:function(p){if(d.onError)d.onError(p)}, +timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.QZ;h&&(c=h);var l=a.config_.RZ||!1;h=qpa(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.UQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=g.Wq(""+c+b,l);g.La("ytNetworklessLoggingInitializationOptions")&& +kqa.isNwlInitialized?Goa().then(function(p){e(p)}):e(!1)}; +g.cv=function(a,b,c){var d=g.Zu();if(d&&b){var e=d.subscribe(a,function(){function f(){$u[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)} +var h=arguments;try{g.av[a]?f():g.fr(f,0)}catch(l){g.Kq(l)}},c); +$u[e]=!0;bv[a]||(bv[a]=[]);bv[a].push(e);return e}return 0}; +lqa=function(a){var b=g.cv("LOGGED_IN",function(c){a.apply(void 0,arguments);g.dv(b)})}; +g.dv=function(a){var b=g.Zu();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.dc(a,function(c){b.unsubscribeByKey(c);delete $u[c]}))}; +g.ev=function(a,b){var c=g.Zu();return c?c.publish.apply(c,arguments):!1}; +nqa=function(a){var b=g.Zu();if(b)if(b.clear(a),a)mqa(a);else for(var c in bv)mqa(c)}; +g.Zu=function(){return g.Ja.ytPubsubPubsubInstance}; +mqa=function(a){bv[a]&&(a=bv[a],g.dc(a,function(b){$u[b]&&delete $u[b]}),a.length=0)}; +g.fv=function(a,b,c){oqa(a,b,c===void 0?null:c)}; +oqa=function(a,b,c){c=c===void 0?null:c;var d=pqa(a),e=document.getElementById(d),f=e&&Bna(e),h=e&&!f;f?b&&b():(b&&(f=g.cv(d,b),b=""+g.Sa(b),qqa[b]=f),h||(e=rqa(a,d,function(){Bna(e)||(Ana(e),g.ev(d),g.fr(function(){nqa(d)},0))},c)))}; +rqa=function(a,b,c,d){d=d===void 0?null:d;var e=g.ie("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; +e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; +d&&e.setAttribute("nonce",d);g.Pd(e,g.mq(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; +pqa=function(a){var b=document.createElement("a");g.Jd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vd(a)}; +iv=function(a){var b=g.Ca.apply(1,arguments);if(!gv(a)||b.some(function(d){return!gv(d)}))throw Error("Only objects may be merged."); +b=g.w(b);for(var c=b.next();!c.done;c=b.next())hv(a,c.value)}; +hv=function(a,b){for(var c in b)if(gv(b[c])){if(c in a&&!gv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});hv(a[c],b[c])}else if(jv(b[c])){if(c in a&&!jv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);sqa(a[c],b[c])}else a[c]=b[c];return a}; +sqa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,gv(c)?a.push(hv({},c)):jv(c)?a.push(sqa([],c)):a.push(c);return a}; +gv=function(a){return typeof a==="object"&&!Array.isArray(a)}; +jv=function(a){return typeof a==="object"&&Array.isArray(a)}; +kv=function(a){g.O.call(this);this.B=a}; +lv=function(a){kv.call(this,!0);this.j=a}; +tqa=function(a,b){g.O.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.Ta)(a,b);this.j=new g.Oo(function(){return d(c.qa)},300); +g.P(this,this.j);this.Y=this.Z=Infinity}; +uqa=function(a,b){if(!b)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(d.OU!==void 0)var e=d.OU;else if(d.wfa)e=d[xv]?yqa(a,d[xv],c):[],e=d.wfa.apply(d,g.x(e));else if(d.V3){e=d.V3;var f=e[xv]?yqa(a,e[xv],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.x(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Vpa||a.B.set(b,e); +return e}; +yqa=function(a,b,c){return b?b.map(function(d){return d instanceof vv?yv(a,d.key,c,!0):yv(a,d,c)}):[]}; +Av=function(){zv||(zv=new xqa);return zv}; +Cv=function(){var a,b;return"h5vcc"in Bv&&((a=Bv.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=Bv.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Bv&&Bv.performance.mark&&Bv.performance.measure?2:0}; +Dv=function(a){var b=Cv();switch(b){case 1:Bv.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:Bv.performance.mark(a+"-start");break;case 0:break;default:Ld(b,"unknown trace type")}}; +zqa=function(a){var b=Cv();switch(b){case 1:Bv.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";Bv.performance.mark(c);Bv.performance.measure(a,b,c);break;case 0:break;default:Ld(b,"unknown trace type")}}; +Aqa=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.Rs():d;this.C=c;this.scheduler=d;this.B=new g.ej;this.j=a;for(a={yx:0};a.yx=1E3?f():e>=a?$v||($v=aw(function(){f();$v=void 0},0)):h-m>=10&&(Rqa(c,d.tier),l.D=h)}; +Mqa=function(a,b){if(a.endpoint==="log_event"){Tv(a);var c=Uv(a),d=new Map;d.set(c,[a.payload]);var e=Jqa(a.payload)||"";b&&(Yv=new b);return new g.De(function(f,h){Yv&&Yv.isReady()?bw(d,Yv,f,h,{bypassNetworkless:!0},!0,Wv(e)):f()})}}; +Pqa=function(a,b,c){if(b.endpoint==="log_event"){Tv(void 0,b);var d=Uv(b,!0),e=new Map;e.set(d,[fh(b.payload)]);c&&(Yv=new c);return new g.De(function(f){Yv&&Yv.isReady()?cw(e,Yv,f,{bypassNetworkless:!0},!0,Wv(a)):f()})}}; +Uv=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Eq;c.videoId?d.setVideoId(c.videoId):c.playlistId&&pg(d,2,dw,Ff(c.playlistId));ew[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),fw[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; +Xv=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.De(function(e,f){var h=Zv(c,d),l=h.C;h.C=!1;gw(h.B);gw(h.j);h.j=0;Yv&&Yv.isReady()?d===void 0&&g.kr("enable_web_tiered_gel")?Sqa(e,f,a,b,c,300,l):Sqa(e,f,a,b,c,d,l):(Rqa(c,d),e())})}; +Sqa=function(a,b,c,d,e,f,h){var l=Yv;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.kr("enable_web_tiered_gel")?Rv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rv().extractMatchingEntries(q),m.set(d,b),cw(m,l,a,c,!1,h)):(m=g.kr("enable_web_tiered_gel")?Rv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rv().extractMatchingEntries(q),n.set(d,m), +bw(n,l,a,b,c,!1,h));else if(e){b=g.w(Object.keys(Vv));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.kr("enable_web_tiered_gel")?Rv().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Rv().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.kr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.kr("web_fp_via_jspb_and_json"))&&delete Vv[n];cw(m,l,a,c,!1,h)}else{m=g.w(Object.keys(Vv));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.kr("enable_web_tiered_gel")?Rv().smartExtractMatchingEntries({keys:[{isJspb:!1, +cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):Rv().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.kr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.kr("web_fp_via_jspb_and_json"))&&delete Vv[p];bw(n,l,a,b,c,!1,h)}}; +Rqa=function(a,b){function c(){Xv({writeThenSend:!0},void 0,a,b)} +a=a===void 0?!1:a;b=b===void 0?200:b;var d=Zv(a,b),e=d===Tqa||d===Uqa?5E3:Vqa;g.kr("web_gel_timeout_cap")&&!d.j&&(e=aw(function(){c()},e),d.j=e); +gw(d.B);e=g.Hq("LOGGING_BATCH_TIMEOUT",g.lr("web_gel_debounce_ms",1E4));g.kr("shorten_initial_gel_batch_timeout")&&hw&&(e=Wqa);e=aw(function(){g.lr("gel_min_batch_size")>0?Rv().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Xqa&&c():c()},e); +d.B=e}; +bw=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.rt)()),m=a.size,n=Yqa(h);a=g.w(a);var p=a.next();for(h={};!p.done;h={PR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,CS:void 0,eS:void 0},p=a.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Gc({context:g.du(b.config_||g.cu())});if(!g.Oa(q)&&!g.kr("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=fw[p])&&Zqa(h.batchRequest,p,q);delete fw[p];h.dangerousLogToVisitorSession= +p==="visitorOnlyApprovedKey";$qa(h.batchRequest,l,h.dangerousLogToVisitorSession);ara(e);h.CS=function(r){g.kr("start_client_gcf")&&g.Ho.Wi(function(){return g.J(function(t){return g.G(t,bra(r),0)})}); +m--;m||c()}; +h.PR=0;h.eS=function(r){return function(){r.PR++;if(e.bypassNetworkless&&r.PR===1)try{g.Yu(b,n,r.batchRequest,iw({writeThenSend:!0},r.dangerousLogToVisitorSession,r.CS,r.eS,f)),hw=!1}catch(t){g.Kq(t),d()}m--;m||c()}}(h); +try{g.Yu(b,n,h.batchRequest,iw(e,h.dangerousLogToVisitorSession,h.CS,h.eS,f)),hw=!1}catch(r){g.Kq(r),d()}}}; +cw=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.rt)()),l={value:a.size},m=new Map([].concat(g.x(a)));m=g.w(m);for(var n=m.next();!n.done;n=m.next()){var p=g.w(n.value).next().value,q=a.get(p);n=new Hma;var r=b.config_||g.cu(),t=new xq,u=new rq;Gg(u,1,r.TQ);Gg(u,2,r.SQ);Ig(u,16,r.PZ);Gg(u,17,r.innertubeContextClientVersion);if(r.LK){var y=r.LK,A=new pq;y.coldConfigData&&Gg(A,1,y.coldConfigData);y.appInstallData&&Gg(A,6,y.appInstallData);y.coldHashData&&Gg(A,3,y.coldHashData);y.hotHashData&& +A.Ls(y.hotHashData);wg(u,pq,62,A)}(y=g.Ja.devicePixelRatio)&&y!=1&&ag(u,65,wf(y));y=mr();y!==""&&Gg(u,54,y);y=nr();if(y.length>0){A=new tq;for(var D=0;Dera&&(a=1);Gq("BATCH_CLIENT_COUNTER",a);return a}; +Zqa=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]}; +Tv=function(a,b){if(!g.La("yt.logging.transport.enableScrapingForTest")){var c=jr("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")lw=[],g.Ka("yt.logging.transport.enableScrapingForTest",!0),g.Ka("yt.logging.transport.scrapedPayloadsForTesting",lw),g.Ka("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ka("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.Ka("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.La("yt.logging.transport.scrapedPayloadsForTesting");var d=g.La("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.La("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.La("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e0&&yra(a,b,f)}else yra(a,b)}; +yra=function(a,b,c){a=zra(a);b=b?g.Ii(b):"";c=c||5;Sr()&&g.zr(a,b,c)}; +zra=function(a){for(var b=g.w(Ara),c=b.next();!c.done;c=b.next())a=Mi(a,c.value);return"ST-"+Vd(a).toString(36)}; +Bra=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; +Cra=function(){this.Ht=[];this.ys=[]}; +xw=function(){if(!ww){var a=ww=new Cra;a.ys.length=0;a.Ht.length=0;Dra(a,Era)}return ww}; +Dra=function(a,b){b.ys&&a.ys.push.apply(a.ys,b.ys);b.Ht&&a.Ht.push.apply(a.Ht,b.Ht)}; +Fra=function(a){function b(){return a.charCodeAt(d++)} +var c=a.length,d=0;do{var e=yw(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=yw(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=yw(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=Fra(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?zw(f+".ve",h,l,m):0;d+=f;d+=zw(e,a[e],b,c);if(d>500)break}}else c[b]=Aw(a),d+=c[b].length;else c[b]=Aw(a),d+=c[b].length;return d}; +zw=function(a,b,c,d){c+="."+a;a=Aw(b);d[c]=a;return c.length+a.length}; +Aw=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}}; +Zs=function(a){g.Bw(a)}; +g.Cw=function(a){g.Bw(a,"WARNING")}; +g.Bw=function(a,b){var c=c===void 0?{}:c;c.name=g.Hq("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Hq("INNERTUBE_CONTEXT_CLIENT_VERSION");b=b===void 0?"ERROR":b;var d=!1;b=b===void 0?"ERROR":b;d=d===void 0?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.kr("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args)); +e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(Hra>=5)){e=Ira;var f=Nba(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.B||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var q=0;q=500);q++);else if(a.hasOwnProperty("params")&& +a.params){var r=a.params;if(typeof a.params==="object")for(q in r){if(r[q]){var t="params."+q,u=Aw(r[q]);c[t]=u;p+=t.length+u.length;if(p>500)break}}else c.params=Aw(r)}if(e.length)for(q=0;q=500);q++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:c,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(c.lineNumber=c.lineNumber+":"+e);if(a.level==="IGNORED")a= +0;else a:{a=xw();e=g.w(a.ys);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.vB)){a=h.weight;break a}a=g.w(a.Ht);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.callback(c)){a=e.weight;break a}a=1}c.sampleWeight=a;a=g.w(Jra);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.XL[c.name])for(l=g.w(e.XL[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Qj)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n1E3&&g.Cw(new g.Ks("IL Attach cache exceeded limit"))}l= +Pw(c,b);Kw.has(l)?Qw(c,b):Mw.set(l,!0)}}d=d.filter(function(p){p.csn!==b?(p.csn=b,p=!0):p=!1;return p}); +c={csn:b,parentVe:c.getAsJson(),childVes:g.pl(d,function(p){return p.getAsJson()})}; +b==="UNDEFINED_CSN"?Rw("visualElementAttached",f,c):a?nw("visualElementAttached",c,a,f):g.$s("visualElementAttached",c,f)}; +Yra=function(a,b,c,d,e){Sw(c,b);d=Jw({cttAuthInfo:uw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Rw("visualElementShown",d,c):a?nw("visualElementShown",c,a,d):g.$s("visualElementShown",c,d)}; +Zra=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8;d=Jw({cttAuthInfo:uw(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:e};b==="UNDEFINED_CSN"?Rw("visualElementHidden",d,c):a?nw("visualElementHidden",c,a,d):g.$s("visualElementHidden",c,d)}; +asa=function(a,b,c,d){$ra(a,b,c,d)}; +$ra=function(a,b,c,d){var e=void 0;Sw(c,b);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=Jw({cttAuthInfo:uw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);b==="UNDEFINED_CSN"?Rw("visualElementGestured",f,c):a?nw("visualElementGestured",c,a,f):g.$s("visualElementGestured",c,f)}; +bsa=function(){var a=nv(16);for(var b=[],c=0;c0&&c.push(g.ie("BR"));c.push(g.je(f))}):c.push(g.je(d))}return c}; +gx=function(a,b,c,d){if(c==="child"){g.ne(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=dsa(a,e);c=g.w(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Xl(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.nd(g.rd(a))),b.setAttribute(c,a))}; +g.S=function(a){g.ex.call(this,a);this.Gb=!0;this.Z=!1;this.listeners=[]}; +g.hx=function(a,b){b?a.show():a.hide()}; +g.ix=function(a){g.S.call(this,a);this.Ra=new g.ax;g.P(this,this.Ra)}; +jx=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.ix.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.yb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.jb=f;this.Ya=null;this.zT=new lv(this.element);g.P(this,this.zT);this.ob=this.T(this.element,"click",this.onClick);this.Fa=[];this.Aa=new tqa(this.onClick,this);g.P(this,this.Aa);this.Ab=!1;this.Ma=this.qa=null}; +kx=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.Cw(Error("Got null or undefined adText object")),"";var c=g.Ud(a.text);if(!a.isTemplated)return c;if(b==null)return g.Cw(Error("Missing required parameters for a templated message")),c;a=g.w(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.w(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c}; +esa=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.Ud(a.thumbnails[0].url):""}; +fsa=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Hd(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Hd(0,0)}; +g.lx=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.w(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""}; +g.mx=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c1){for(var b=[a[0]],c=1;c0&&(this.j=new g.Oo(this.lX,b,this),g.P(this,this.j));this.G=new g.Oo(this.lX,c,this);g.P(this,this.G);this.Z=Ala(this.B,e,1,d);g.P(this,this.Z);this.N=Ala(this.B,0,d,1);g.P(this,this.N);this.D=new qs;g.P(this,this.D)}; +Qsa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ld(a,"unknown result type")}}; +Rsa=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Ld(a,"Unknown method type")}}; +Ssa=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"): +d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);Gq("ISDSTAT",c);dy(c,"i.s_",{dfa:"sk",metadata:b,states:d});return c}; +Tsa=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");dy(0,"a.s_",{metadata:a,states:c},!1);Gq("ASDSTAT",0)}; +dy=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.dfa)!=null?e:"")+((f=c.w7)!=null?f:""),detectionStates:c.states,durationMs:c.v7};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.$s("biscottiBasedDetection",h);d&&(a=Qsa(a),b=Rsa(b),Gq("CATSTAT",Number(g.Hq("CATSTAT",0))&~(3<0}; +ky=function(a,b,c,d,e,f){Ux.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ga=!1;this.Wa=f;this.G=this.api.U().experiments.kb("enable_modern_skip_button_on_web");this.Xa=!1;this.D=new g.ix({I:"span",Na:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.P(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.fb=new g.Xx(this.D,500,!1,100,function(){return h.hide()}); +g.P(this,this.fb);this.La=new cy(this.D.element,15E3,5E3,.5,.5,this.G);g.P(this,this.La);this.hide()}; +Vsa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.Q(a.clickCommand,g.ly)&&g.Q(a.clickCommand,g.ly).commands||[]).some(function(b){return b.adLifecycleCommand?Usa(b.adLifecycleCommand):!1})}; +Usa=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"}; +my=function(a,b,c,d,e,f){Ux.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()}; +Wsa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.fb.show(),a.show()):a.C.show())}; +ny=function(a,b,c,d){Bx.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +oy=function(a,b,c,d,e,f){jx.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Ea("ytp-ad-simple-ad-badge");this.hide()}; +py=function(a,b,c,d,e){e=e===void 0?!1:e;$w.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.IM=e}; +qy=function(a,b){g.ax.call(this);this.api=a;this.durationMs=b;this.j=null;this.Fd=new qs(this);g.P(this,this.Fd);this.B=Xsa;this.Fd.T(this.api,"presentingplayerstatechange",this.U5);this.j=this.Fd.T(this.api,"onAdPlaybackProgress",this.Tc)}; +ry=function(a){g.ax.call(this);this.j=!1;this.rj=0;this.Fd=new qs(this);g.P(this,this.Fd);this.durationMs=a;this.Ve=new g.Ke(100);g.P(this,this.Ve);this.Fd.T(this.Ve,"tick",this.Tc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()}; +g.sy=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";d>0&&(b+=" "+d+" Days");if(d>0||e>0)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d}; +g.ty=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; +uy=function(a,b,c,d,e,f){Ux.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()}; +vy=function(a,b,c,d){Sx.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; +wy=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()}; +yy=function(a,b){this.B=a;this.j=b}; +Ysa=function(a,b){return a.B+b*(a.j-a.B)}; +zy=function(a,b,c){return a.j-a.B?g.Cd((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity}; +Ay=function(a,b){g.ix.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.P(this,this.B);this.progressBar=this.Ea("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +By=function(a,b,c,d,e,f){jx.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ea("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&& +this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.j=this.Ea("ytp-ad-player-overlay-instream-info");this.D=null;Zsa(this)&&(a=he("div"),g.Wo(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(a),c.init(Zw("ad-title"),{text:b.title},this.macros),g.P(this,c)),this.D=a);this.G=this.Ea("ytp-ad-player-overlay-skip-or-preview"); +this.La=this.Ea("ytp-ad-player-overlay-progress-bar");this.Ga=this.Ea("ytp-ad-player-overlay-instream-user-sentiment");this.ra=this.Ea("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.P(this,this.B);this.hide()}; +Zsa=function(a){a=a.api.U();return g.Cy(a)&&a.B}; +Dy=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Ji("/sharing_services",a);g.Lu(d)}; +g.Ey=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; +Fy=function(a){this.j=new rp(a)}; +$sa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.Hq("INNERTUBE_CLIENT_NAME")==="WEB"||g.Hq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a}; +Gy=function(a){if(g.Hq("LOGGED_IN",!0)&&$sa()){var b=g.Hq("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Ci(window.location.href);c&&b.push(c);c=g.Ci(a);g.Ob(b,c)||!c&&qb(a,"/")?(b=Di(a),(b=Gfa(b))?(b=zra(b),b=(b=g.Ar(b)||null)?Tq(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;$sa()?(d||(d=g.Hq("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&vw(a,b)}}; +g.ata=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.Ji(a,b);Gy(a);c=g.rd(a+c);d=d.location;c=sd(c);c!==void 0&&(d.href=c)}; +g.Hy=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.Hq("EVENT_ID");d&&(b.ei||(b.ei=d));b&&vw(a,b);c||(Gy(a),g.ata(a))}; +g.Iy=function(a,b,c,d,e){e=e===void 0?!1:e;c&&vw(a,c);c=g.rd(a);var f=g.nd(c);a!=f&&Qq(Error("Unsafe window.open URL: "+a));a=f;b=b||Vd(a).toString(36);try{if(e){e=a;e=dqa(e);Gy(e);g.Md(e,b,"attributionsrc");return}}catch(h){g.Kq(h)}Gy(a);g.Md(c,b,d)}; +bta=function(a){Jy=a}; +cta=function(a){Ky=a}; +dta=function(a){Ly=a}; +fta=function(){eta=Ly=Ky=Jy=null}; +hta=function(){var a=a===void 0?window.location.href:a;if(g.kr("kevlar_disable_theme_param"))return null;zi(g.Bi(5,a));try{var b=g.Vq(a).theme;return gta.get(b)||null}catch(c){}return null}; +My=function(){this.j={};if(this.B=jna()){var a=g.Ar("CONSISTENCY");a&&ita(this,{encryptedTokenJarContents:a})}}; +ita=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3); +a.B&&g.zr("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; +Oy=function(){this.B=-1;var a=g.Hq("LOCATION_PLAYABILITY_TOKEN");g.Hq("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Ny(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; +Ny=function(a){return a.localStorage===void 0?new Us("yt-client-location"):a.localStorage}; +g.Py=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.Hq("INNERTUBE_CONTEXT");if(!d)return g.Bw(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Gc(d);g.kr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.Hq("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints= +window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=f===void 0?!1:f;g.Es();var h="USER_INTERFACE_THEME_LIGHT";g.Fs(0,165)?h="USER_INTERFACE_THEME_DARK":g.Fs(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.kr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(h="USER_INTERFACE_THEME_DARK");f=f?h:hta()||h;e.userInterfaceTheme=f;if(!b){if(f=Xna())e.connectionType=f;g.kr("web_log_effective_connection_type")&&(f=Zna())&&(d.client.effectiveConnectionType=f)}var l;if(g.kr("web_log_memory_total_kbytes")&&((l=g.Ja.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Ja.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.kr("web_gcf_hashes_innertube")&&(f=fpa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| +{},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.Vq(g.Ja.location.href);!g.kr("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Ja.location.href},g.kr("kevlar_woffle")&&Qna.instance&&(m=Qna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Bs(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.kr("web_lr_app_quality_killswitch")&&(m=g.Hq("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Hq("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.kr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=mr())?e.experimentsToken=n:delete e.experimentsToken;n=nr();My.instance||(My.instance=new My);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.xc(My.instance.j)});!g.kr("web_prequest_context_killswitch")&&(n=g.Hq("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Es();n=g.Fs(0,58);e=e.get("gsml","");d.user=Object.assign({}, +d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.kr("warm_op_csn_cleanup")?c&&(b=g.tw())&&(d.clientScreenNonce=b):!b&&(b=g.tw())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.La("yt.mdx.remote.remoteClient_"))d.remoteClient=a;Oy.getInstance().setLocationOnInnerTubeContext(d);try{var p=cr(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.w(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.w(t.value),y=u.next().value, +A=u.next().value;p=y;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var D;if(((D=d.client)==null?void 0:D.clientName)==="TVHTML5"){var F=g.Hq("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.Bw(H)}return d}; +kta=function(a,b){if(!a)return!1;var c,d=(c=g.Q(a,Qy))==null?void 0:c.signal;if(d&&b.Wy)return!!b.Wy[d];var e;if((c=(e=g.Q(a,jta))==null?void 0:e.request)&&b.gP)return!!b.gP[c];for(var f in a)if(b.aP[f])return!0;return!1}; +lta=function(a){var b={"Content-Type":"application/json"};g.Hq("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Hq("EOM_VISITOR_DATA"):g.Hq("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Hq("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.Hq("LOGGED_IN",!1);g.Hq("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.Hq("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.Hq("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Hq("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= +a),(a=g.Hq("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.Hq("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; +mta=function(){this.j={}}; +Ry=function(){this.mappings=new mta}; +Sy=function(a){return function(){return new a}}; +ota=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=nta[b];if(c){c=new RegExp(c);for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(nta).forEach(function(h){var l=g.w(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); +c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); +d=g.w(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; +g.Ty=function(a){return"/youtubei/v1/"+ota(a)}; +Uy=function(){}; +Vy=function(){}; +Wy=function(){}; +Xy=function(a){return g.La("ytcsi."+(a||"")+"data_")||pta(a)}; +qta=function(){var a=Xy();a.info||(a.info={});return a.info}; +Yy=function(a){a=Xy(a);a.metadata||(a.metadata={});return a.metadata}; +Zy=function(a){a=Xy(a);a.tick||(a.tick={});return a.tick}; +$y=function(a){a=Xy(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; +rta=function(a){a=$y(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; +uz=function(a){var b=Xy(a).nonce;b||(b=g.ov(16),Xy(a).nonce=b);return b}; +pta=function(a){var b={tick:{},info:{}};g.Ka("ytcsi."+(a||"")+"data_",b);return b}; +vz=function(){var a=g.La("ytcsi.debug");a||(a=[],g.Ka("ytcsi.debug",a),g.Ka("ytcsi.reference",{}));return a}; +wz=function(a){a=a||"";var b=sta();if(b[a])return b[a];var c=vz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; +tta=function(a){a=a||"";var b=sta();b[a]&&delete b[a];var c=vz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; +sta=function(){var a=g.La("ytcsi.reference");if(a)return a;vz();return g.La("ytcsi.reference")}; +xz=function(a){return uta[a]||"LATENCY_ACTION_UNKNOWN"}; +yz=function(a,b){fu.call(this,1,arguments);this.Ve=b}; +zz=function(){this.j=0}; +Az=function(){zz.instance||(zz.instance=new zz);return zz.instance}; +Cz=function(a,b){Bz[b]=Bz[b]||{count:0};var c=Bz[b];c.count++;c.time=(0,g.rt)();a.j||(a.j=g.Ps(0,function(){var d=(0,g.rt)(),e;for(e in Bz)Bz[e]&&d-Bz[e].time>6E4&&delete Bz[e];a&&(a.j=0)},5E3)); +return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.Ks("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.Cw(c)),!0):!1}; +vta=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +wta=function(){var a;if(g.kr("csi_use_performance_navigation_timing")||g.kr("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=Dz==null?void 0:(a=Dz.getEntriesByType)==null?void 0:(b=a.call(Dz,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=Ez(e.requestStart),e.responseEnd=Ez(e.responseEnd),e.redirectStart=Ez(e.redirectStart),e.redirectEnd=Ez(e.redirectEnd),e.domainLookupEnd=Ez(e.domainLookupEnd),e.connectStart=Ez(e.connectStart), +e.connectEnd=Ez(e.connectEnd),e.responseStart=Ez(e.responseStart),e.secureConnectionStart=Ez(e.secureConnectionStart),e.domainLookupStart=Ez(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=Dz.timing}else a=g.kr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Dz.timing)):Dz.timing;return a}; +Ez=function(a){return Math.round(Fz()+a)}; +Fz=function(){return(g.kr("csi_use_time_origin")||g.kr("csi_use_time_origin_tvhtml5"))&&Dz.timeOrigin?Math.floor(Dz.timeOrigin):Dz.timing.navigationStart}; +Hz=function(a,b){Gz("_start",a,b)}; +Iz=function(a,b){if(!g.kr("web_csi_action_sampling_enabled")||!Xy(b).actionDisabled){var c=wz(b||"");iv(c.info,a);a.loadType&&(c=a.loadType,Yy(b).loadType=c);iv(rta(b),a);c=uz(b);b=Xy(b).cttAuthInfo;Az().info(a,c,b)}}; +xta=function(){var a,b,c,d;return((d=Av().resolve(new vv(au))==null?void 0:(a=bu())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})}; +Gz=function(a,b,c){if(!g.kr("web_csi_action_sampling_enabled")||!Xy(c).actionDisabled){var d=uz(c),e;if(e=g.kr("web_csi_debug_sample_enabled")&&d){(Av().resolve(new vv(au))==null?0:bu())&&!yta&&(yta=!0,Gz("gcfl",(0,g.rt)(),c));var f,h,l;e=(Av().resolve(new vv(au))==null?void 0:(f=bu())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=xta();if(f.length>0)for(h=0;hc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(Gz("wffs",Ez(b.startTime)),Gz("wffe",Ez(b.responseEnd)))}; +Fta=function(a,b,c){Dz&&Dz.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?Dz.measure(a,b,c):b?Dz.measure(a,b):Dz.measure(a))}; +Gta=function(a){var b=Jz("aft",a);if(b)return b;b=g.Hq((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&Iz(b);b={isNavigation:!0,actionType:xz(g.Hq("TIMING_ACTION"))};var c=g.Hq("PREVIOUS_ACTION");c&&(b.previousAction=xz(c));if(c=g.Hq("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.Hq("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.tw())&&c!=="UNDEFINED_CSN"&&(b.clientScreenNonce=c);c=Bta();if(c===1||c===-1)b.isVisible= +!0;c=Yy().loadType==="cold";var d=qta();c||(c=d.yt_lt==="cold");if(c){b.loadType="cold";c=qta();d=wta();var e=Fz(),f=g.Hq("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.kr("embeds_web_enable_csi_start_override_killswitch")&&(e=f);e&&(Gz("srt",d.responseStart),c.prerender!==1&&Hz(e));c=Jta();c>0&&Gz("fpt",c);c=wta();c.isPerformanceNavigationTiming&&Iz({performanceNavigationTiming:!0},void 0);Gz("nreqs",c.requestStart,void 0);Gz("nress",c.responseStart,void 0);Gz("nrese",c.responseEnd,void 0);c.redirectEnd- +c.redirectStart>0&&(Gz("nrs",c.redirectStart,void 0),Gz("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(Gz("ndnss",c.domainLookupStart,void 0),Gz("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(Gz("ntcps",c.connectStart,void 0),Gz("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=Fz()&&c.connectEnd-c.secureConnectionStart>0&&(Gz("nstcps",c.secureConnectionStart,void 0),Gz("ntcpe",c.connectEnd,void 0));Dz&&"getEntriesByType"in Dz&&Eta();c=[];if(document.querySelector&& +Dz&&Dz.getEntriesByName)for(var h in Mz)Mz.hasOwnProperty(h)&&(d=Mz[h],Dta(h,d)&&c.push(d));if(c.length>0)for(b.resourceInfo=[],h=g.w(c),c=h.next();!c.done;c=h.next())b.resourceInfo.push({resourceCache:c.value})}Iz(b);b=$y();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);h=b.preLoggedGelInfos;b=rta();c=void 0;for(d=0;d-1&&(delete v["@type"],V=v);y&&a.B.has(y)&&a.B.delete(y);((cb=b.config)==null?0:cb.Sda)&&Oz(b.config.Sda);if(V||(Ab=a.C)==null||!Ab.Wma(b.input,b.gq)){Va.Ia(15);break}return g.G(Va,a.C.Ooa(b.input,b.gq),16);case 16:V=Va.B;case 15:return aua(a,V,b),d(),Va.return(V||void 0)}})}; +Wta=function(a,b){a:{a=a.CP;var c,d=(c=g.Q(b,Qy))==null?void 0:c.signal;if(d&&a.Wy&&(c=a.Wy[d])){var e=c();break a}var f;if((c=(f=g.Q(b,jta))==null?void 0:f.request)&&a.gP&&(f=a.gP[c])){e=f();break a}for(e in b)if(a.aP[e]&&(b=a.aP[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)}; +Yta=function(a,b,c){var d,e,f,h,l,m,n,p,q,r;return g.J(function(t){if(t.j==1){f=((d=b)==null?void 0:(e=d.Iw)==null?void 0:e.identity)||eu;m=(h=b)==null?void 0:(l=h.Iw)==null?void 0:l.sessionIndex;q=((p=g.Q((n=b)==null?void 0:n.command,Qy))==null?void 0:p.signal)==="GET_ACCOUNT_MENU"?!0:!1;var u=Fe(a.j.jF(f,{sessionIndex:m,HZ:q}));return g.G(t,u,2)}r=t.B;return t.return(Promise.resolve(Object.assign({},lta(c),r)))})}; +Xta=function(a,b,c){var d,e=(b==null?void 0:(d=b.Iw)==null?void 0:d.identity)||eu,f;d=b==null?void 0:(f=b.Iw)==null?void 0:f.sessionIndex;var h;b=((h=g.Q(b==null?void 0:b.command,Qy))==null?void 0:h.signal)==="GET_ACCOUNT_MENU"?!0:!1;a=a.j.jF(e,{sessionIndex:d,HZ:b});return Object.assign({},lta(c),a)}; +Xz=function(){}; +Yz=function(){}; +Zz=function(a){this.K=a}; +$z=function(){}; +aA=function(){}; +bA=function(){}; +cA=function(){}; +g.dA=function(a,b){var c=g.Ca.apply(2,arguments);a=a===void 0?0:a;g.Ks.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; +eA=function(a){this.j=a}; +cua=function(a,b,c){if(a.j){var d=zi(g.Bi(5,Mi(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.kr("wug_networking_gzip_request")&&(a=Jpa(c));return new window.Request(b,a)}; +g.gA=function(a,b){if(!fA){var c=Av();wv(c,{hH:dua,V3:eA});var d={aP:{feedbackEndpoint:Sy($z),modifyChannelNotificationPreferenceEndpoint:Sy(aA),playlistEditEndpoint:Sy(bA),shareEntityEndpoint:Sy(Zz),subscribeEndpoint:Sy(Xz),unsubscribeEndpoint:Sy(Yz),webPlayerShareEntityServiceEndpoint:Sy(cA)}},e=Oy.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=Rna());b===void 0&&(b=c.resolve(dua));Vta(d,b,a,f);wv(c,{hH:eua,OU:Uz.instance});fA=c.resolve(eua)}return fA}; +fua=function(a){var b=new dj;if(a.interpreterJavascript){var c=Bma(a.interpreterJavascript);c=Ad(c).toString();var d=new bj;Gg(d,6,c);wg(b,bj,1,d)}else a.interpreterUrl&&(c=lq(a.interpreterUrl),c=g.kd(c).toString(),d=new cj,Gg(d,4,c),wg(b,cj,2,d));a.interpreterHash&&Hg(b,3,a.interpreterHash);a.program&&Hg(b,4,a.program);a.globalName&&Hg(b,5,a.globalName);return b}; +gua=function(a){var b={};a=a.split("&");a=g.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b}; +iua=function(){if(!g.kr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.kr("disable_biscotti_fetch_entirely_for_all_web_clients")&&Sr()){var a=g.Hq("PLAYER_VARS",{});if(g.Dc(a,"privembed",!1)!="1"&&!qna(a)){var b=function(){hA=!0;"google_ad_status"in window?Gq("DCLKSTAT",1):Gq("DCLKSTAT",2)}; +try{g.fv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}hua.push(g.Ho.Wi(function(){if(!(hA||"google_ad_status"in window)){try{if(b){var c=""+g.Sa(b),d=qqa[c];d&&g.dv(d)}}catch(e){}hA=!0;Gq("DCLKSTAT",3)}},5E3))}}}; +iA=function(){var a=Number(g.Hq("DCLKSTAT",0));return isNaN(a)?0:a}; +kA=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&jua(this,new Promise(function(e){g.Ps(0,function(){e(jA(d))},0)}))}; +jA=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=ij().j)c.interpreterHash=d;g.va(u,2);return g.G(u,lA(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=gua(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.wa(u,3);break;case 2:l= +g.xa(u);g.Cw(l);b++;if(b>=5)return g.Cw(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),kua(a,864E5),u.return({challenge:"",Br:{},Ri:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(y){g.Ps(0,function(){y(jA(a,b))},m)})); +case 3:n=Number(h.t)||7200;kua(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ia(5);break}q=fua(e.bgChallenge);g.va(u,6);return g.G(u,jj(ij(),q),8);case 8:g.wa(u,7);break;case 6:return r=g.xa(u),g.Cw(r),u.return({challenge:f,Br:h,Ri:p,bgChallenge:q});case 7:return g.va(u,9),p=new fj({challenge:q,nH:!0,jh:"aGIf"}),g.G(u,p.BC,11);case 11:g.wa(u,5);break;case 9:t=g.xa(u),g.Cw(t),p=void 0;case 5:return u.return({challenge:f,Br:h,Ri:p,bgChallenge:q})}})}; +lA=function(a,b){var c;return g.J(function(d){c=a.B;return!c||c.Jh()?d.return(lA(a.network,b)):d.return(new Promise(function(e){c.lG("publicytnetworkstatus-online",function(){lA(a.network,b).then(e)})}))})}; +jua=function(a,b){a.j=b}; +lua=function(a){var b,c,d;return g.J(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=jA(a);a.j=f;(c=b)==null||(d=c.Ri)==null||d.dispose();g.ua(e)})}; +kua=function(a,b){function c(){var e;return g.J(function(f){e=d-Date.now();return e<1E3?g.G(f,lua(a),0):(Os(c,0,Math.min(e,6E4)),f.Ia(0))})} +var d=Date.now()+b;c()}; +mua=function(a,b){return new Promise(function(c){g.Ps(0,function(){c(b())},a)})}; +g.nua=function(a,b){var c;return g.J(function(d){var e=g.La("yt.aba.att");return(c=e?e:kA.instance!==void 0?kA.instance.C.bind(kA.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.oua=function(){var a;return(a=(a=g.La("yt.aba.att2"))?a:kA.instance!==void 0?kA.instance.D.bind(kA.instance):null)?a():Promise.resolve(!1)}; +qua=function(a,b){var c=g.La("ytDebugData.callbacks");c||(c={},g.Ka("ytDebugData.callbacks",c));if(g.kr("web_dd_iu")||pua.includes(a))c[a]=b}; +sua=function(a){for(var b="",c=0;c=1?a[a.length-1]:null;for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; +mA=function(){this.state=1;this.Ri=null}; +wua=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.xd(2),g.fv(c,function(){if(window[h])vua(a,d,h,e);else{a.xd(3);var l=pqa(c),m=document.getElementById(l);m&&(nqa(l),m.parentNode.removeChild(m));g.Cw(new g.Ks("Unable to load Botguard","from "+c))}},f)):b?(f=g.ie("SCRIPT"),b instanceof zd?(f.textContent=Ad(b),Od(f)):f.textContent=b,f.nonce=Nd(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?vua(a,d,h,e):(a.xd(4),g.Cw(new g.Ks("Unable to load Botguard from JS")))): +g.Cw(new g.Ks("Unable to load VM; no url or JS provided"))}; +vua=function(a,b,c,d){a.xd(5);try{var e=new fj({program:b,globalName:c,nH:g.kr("att_web_record_metrics"),jh:"aGIf"});e.BC.then(function(){a.xd(6);d&&d(b)}); +a.RT(e)}catch(f){a.xd(7),f instanceof Error&&g.Cw(f)}}; +nA=function(){var a=g.La("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; +oA=function(){mA.apply(this,arguments)}; +pA=function(){}; +xua=function(a,b,c){for(var d=!1,e=g.w(a.pj.entries()),f=e.next();!f.done;f=e.next())f=g.w(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Za==="core"&&(d=!0);if(d){a:if(!c){a=g.w(a.pj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.w(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Za==="core"){c=d.layoutId;break a}c=void 0}c?b.BQ(c):gy("No triggering layout ID available when attempting to mute.")}}; +qA=function(a,b){this.Ol=a;this.No=b}; +rA=function(){}; +sA=function(){}; +zua=function(a){g.O.call(this);var b=this;this.od=a;this.j=new Map;tA(this,"commandExecutorCommand",function(c,d,e){yua(b,c.commands,d,e)}); +tA(this,"clickTrackingParams",function(){})}; +Aua=function(a,b){tA(a,b.Jr(),function(c,d,e){b.ju(c,d,e)})}; +tA=function(a,b,c){a.Ka();a.j.get(b)&&g.Bw(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; +yua=function(a,b,c,d){b=b===void 0?[]:b;a.Ka();var e=[],f=[];b=g.w(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.Q(h,Bua)||g.Q(h,Cua)?e.push(h):f.push(h);e=g.w(e);for(b=e.next();!b.done;b=e.next())uA(a,b.value,c,d);f=g.w(f);for(e=f.next();!e.done;e=f.next())uA(a,e.value,c,d)}; +uA=function(a,b,c,d){a.Ka();b.loggingUrls&&Dua(a,"loggingUrls",b.loggingUrls,c,d);b=g.w(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.od.get().bv("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.od.get().bv("innertubeCommand",{confirmDialogEndpoint:f}):Eua.hasOwnProperty(e)||Dua(a,e,f,c,d)}}; +Dua=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.Bw(f)}else b=new g.Ks("Unhandled field",b),g.Cw(b)}; +vA=function(a,b,c){this.Kf=a;this.j=b;this.Oa=c}; +wA=function(a){this.value=a}; +xA=function(a){this.value=a}; +yA=function(a){this.value=a}; +zA=function(a){this.value=a}; +AA=function(a){this.value=a}; +BA=function(a){this.value=a}; +CA=function(a){this.value=a}; +DA=function(){wA.apply(this,arguments)}; +EA=function(a){this.value=a}; +FA=function(a){this.value=a}; +GA=function(a){this.value=a}; +HA=function(a){this.value=a}; +IA=function(a){this.value=a}; +JA=function(a){this.value=a}; +KA=function(a){this.value=a}; +LA=function(a){this.value=a}; +MA=function(a){this.value=a}; +NA=function(a){this.value=a}; +OA=function(){wA.apply(this,arguments)}; +PA=function(a){this.value=a}; +QA=function(a){this.value=a}; +RA=function(a){this.value=a}; +SA=function(a){this.value=a}; +TA=function(a){this.value=a}; +UA=function(a){this.value=a}; +VA=function(a){this.value=a}; +WA=function(a){this.value=a}; +XA=function(a){this.value=a}; +YA=function(a){this.value=a}; +ZA=function(a){this.value=a}; +$A=function(a){this.value=a}; +aB=function(a){this.value=a}; +bB=function(a){this.value=a}; +cB=function(a){this.value=a}; +dB=function(a){this.value=a}; +eB=function(a){this.value=a}; +fB=function(a){this.value=a}; +gB=function(a){this.value=a}; +hB=function(a){this.value=a}; +iB=function(a){this.value=a}; +jB=function(a){this.value=a}; +kB=function(a){this.value=a}; +lB=function(a){this.value=a}; +mB=function(a){this.value=a}; +nB=function(a){this.value=a}; +oB=function(a){this.value=a}; +pB=function(a){this.value=a}; +qB=function(a){this.value=a}; +rB=function(a){this.value=a}; +sB=function(a){this.value=a}; +tB=function(a){this.value=a}; +uB=function(a){this.value=a}; +vB=function(a){this.value=a}; +wB=function(a){this.value=a}; +xB=function(a){this.value=a}; +yB=function(a){this.value=a}; +zB=function(a){this.value=a}; +AB=function(){wA.apply(this,arguments)}; +BB=function(a){this.value=a}; +CB=function(){wA.apply(this,arguments)}; +DB=function(){wA.apply(this,arguments)}; +EB=function(){wA.apply(this,arguments)}; +FB=function(){wA.apply(this,arguments)}; +GB=function(){wA.apply(this,arguments)}; +HB=function(a){this.value=a}; +IB=function(a){this.value=a}; +JB=function(a){this.value=a}; +KB=function(a){this.value=a}; +LB=function(a){this.value=a}; +NB=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!MB(a.Ba,c.value))return!1;return!0}; +OB=function(){return""}; +Fua=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}}; +PB=function(a,b,c,d){d=d===void 0?!1:d;kb.call(this,a);this.wl=c;this.Hw=d;this.args=[];b&&this.args.push(b)}; +QB=function(a,b,c,d){d=d===void 0?!1:d;kb.call(this,a);this.wl=c;this.Hw=d;this.args=[];b&&this.args.push(b)}; +RB=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); +this.j=b}; +MB=function(a,b){return a.j.has(b)}; +SB=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()}; +TB=function(a){return Array.from(a.j.keys())}; +UB=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!MB(a.Ba,c.value))return!1;return!0}; +Hua=function(a){var b;return((b=Gua.get(a))==null?void 0:b.Zy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +WB=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Iua.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=VB(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(VB(d.value)); +b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.w(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(VB(a.value))}return c}; +Jua=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Iua.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; +VB=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; +Kua=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.pl(d||[],function(e){return WB(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{})); +return b}; +YB=function(a,b){return function(c){return Lua(XB(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Za,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Za)}}; +Lua=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:WB(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Za:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new RB([])}),layoutData:Jua(a,{layoutId:m,layoutType:n,Za:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Db:new Map,Ba:new RB([]),hc:{}})}}}; +$B=function(a){this.Ca=a;a=Math.random();var b=this.Ca.get();b=g.ZB(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a1){g.Cw(new g.Ks("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0}; +nwa=function(a,b){var c=new Map;a=g.w(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=SB(d.Ba,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},YD(b,"uct",(e.c=d.layoutId,e)))}a=b.Lm();ZD={contentCpn:a,It:c}; +d={};YD(b,"acc",(d.ct=c.size,d.c=a,d))}; +owa=function(){ZD={contentCpn:"",It:new Map}}; +$D=function(a){var b;return(b=ZD.It.get(a))!=null?b:"u"}; +aE=function(a,b,c){YD(a,b,c);pwa(a)}; +qwa=function(a){var b=a.layoutId,c=a.hs;if(a.Ho){var d={};aE(a.Kf,"slso",(d.ec=b,d.is=c,d.ctp=$D(b),d))}}; +bE=function(a){var b=a.layoutId,c=a.hs;if(a.Ho){var d={};aE(a.Kf,"slse",(d.ec=b,d.is=c,d.ctp=$D(b),d))}}; +rwa=function(a){var b=a.layoutId,c=a.hs,d=a.Kf;a.Ho&&(a={},aE(d,"sleo",(a.xc=b,a.is=c,a.ctp=$D(b),a)),pwa(d))}; +swa=function(a){var b=a.cpn,c=a.Kf;a=a.hs;var d=c.Lm(),e={};aE(c,"ce",(e.ec=b,e.ia=b!==d,e.r=ZD.It.has(b),e.is=a,e.ctp=$D(b),e))}; +pwa=function(a){if(a.Lm()!==ZD.contentCpn){var b={};YD(a,"ccm",(b.c=ZD.contentCpn,b))}}; +twa=function(a){var b=a.cpn,c=a.Kf;a=a.hs;var d=c.Lm(),e={};aE(c,"cx",(e.xc=b,e.ia=b!==d,e.r=ZD.It.has(b),e.is=a,e.ctp=$D(b),e))}; +uwa=function(a,b){this.adCpn=a;this.vk=b;this.j=new Set}; +dE=function(a,b,c){if(cE(a.vk.Ca.get(),!0)){var d=c.flush,e={};c=(e.cts=c.currentTimeSec,e.f=d,e.p_ac=a.adCpn,e);a.j.has(b)||(a.j.add(b),a.vk.Hk(b,c))}}; +vwa=function(a,b){this.Kf=a;this.Ca=b}; +eE=function(a){var b=[];if(a){a=g.w(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")}; +fE=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c}; +gE=function(a){return a===1||a===2}; +hE=function(a,b){b=b===void 0?0:b;if(a instanceof fE)return a;a=a&&a instanceof Error?a:Error(""+a);gE(b)?g.Bw(a):g.Cw(a);return new fE(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)}; +g.xwa=function(a){return(a=wwa[a.toString()])?a:"LICENSE"}; +ywa=function(a,b){function c(){var d=g.Ca.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.x(d))} +a.addEventListener("playing",c)}; +iE=function(){var a=g.La("yt.player.utils.videoElement_");a||(a=g.ie("VIDEO"),g.Ka("yt.player.utils.videoElement_",a));return a}; +jE=function(a){var b=iE();return!!(b&&b.canPlayType&&b.canPlayType(a))}; +lE=function(a){if(/opus/.test(a)&&g.kE&&!np("38")&&!g.Gr())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Jr())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!jE(a)}; +zwa=function(a){try{var b=lE('video/mp4; codecs="avc1.42001E"')||lE('video/webm; codecs="vp9"');return(lE('audio/mp4; codecs="mp4a.40.2"')||lE('audio/webm; codecs="opus"'))&&(b||!a)||jE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; +mE=function(){var a=iE();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")}; +nE=function(){var a=iE();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1}; +g.oE=function(){qs.apply(this,arguments)}; +pE=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f}; +sE=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||qE(a,b);this.j=g.rE[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.rE[this.quality],a===0?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":""))); +this.qualityLabel=a;this.B=l||"";this.primaries=m||""}; +qE=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=tE[0];for(var d=0;d=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"}; +wE=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.tb>0||(c.tb=16E3);Object.assign(this,c);a=g.w(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=uE(b);this.rb=vE[this.itag]||""}; +xE=function(a){return a.rb==="9"||a.rb==="("||a.rb==="9h"||a.rb==="(h"}; +Awa=function(a){return a.rb==="H"||a.rb==="h"}; +yE=function(a){return a.rb==="9h"||a.rb==="(h"}; +zE=function(a){return a.rb==="1"||a.rb==="1h"}; +AE=function(a){return a.rb==="mac3"||a.rb==="meac3"||a.rb==="m"}; +BE=function(a){return a.rb==="MAC3"||a.rb==="MEAC3"||a.rb==="M"}; +g.CE=function(a){return a.containerType===1}; +Bwa=function(a){return a.rb==="("||a.rb==="(h"||a.rb==="H"}; +DE=function(a){return a.mimeType==="application/x-mpegURL"}; +EE=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}}; +FE=function(a,b){a=EE(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags}; +Cwa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.rb==="f")return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.tb*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.tb*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})}; +GE=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)}; +HE=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)}; +IE=function(a){return a.includes("vtt")||a.includes("text/mp4")}; +uE=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0}; +JE=function(a,b,c,d,e,f){var h=new pE;b in g.rE||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.rE[b],d=Math.round(e*16/9));f=new sE(d,e,0,null,void 0,b,f);a=unescape(a.replace(/"/g,'"'));return new wE(c,a,{audio:h,video:f})}; +KE=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Jw)==null?void 0:c.toFixed(0))+", "+((d=a.tb)==null?void 0:d.toFixed(0))+")"}; +LE=function(a,b){return{start:function(c){return a[c]}, +end:function(c){return b[c]}, +length:a.length}}; +Dwa=function(a,b,c){for(var d=[],e=[],f=0;f=b)return c}catch(d){}return-1}; +OE=function(a,b){return NE(a,b)>=0}; +Ewa=function(a,b){if(!a)return NaN;b=NE(a,b);return b>=0?a.start(b):NaN}; +PE=function(a,b){if(!a)return NaN;b=NE(a,b);return b>=0?a.end(b):NaN}; +QE=function(a){return a&&a.length?a.end(a.length-1):NaN}; +RE=function(a,b){a=PE(a,b);return a>=0?a-b:0}; +SE=function(a,b,c){for(var d=[],e=[],f=0;fc||(d.push(Math.max(b,a.start(f))-b),e.push(Math.min(c,a.end(f))-b));return LE(d,e)}; +TE=function(a,b,c,d){g.ax.call(this);var e=this;this.Hd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.nZ={error:function(){!e.Ka()&&e.isActive&&e.publish("error",e)}, +updateend:function(){!e.Ka()&&e.isActive&&e.publish("updateend",e)}}; +g.bx(this.Hd,this.nZ);this.wI=this.isActive}; +VE=function(a,b,c,d,e,f){g.ax.call(this);var h=this;this.Rb=a;this.rg=b;this.id=c;this.containerType=d;this.rb=e;this.yg=f;this.pR=this.fG=this.Gf=null;this.rJ=!1;this.appendWindowStart=this.timestampOffset=0;this.JO=LE([],[]);this.zE=!1;this.eG=[];this.nC=UE?[]:void 0;this.vI=!1;this.Fd=function(m){return h.publish(m.type,h)}; +var l;if((l=this.Rb)==null?0:l.addEventListener)this.Rb.addEventListener("updateend",this.Fd),this.Rb.addEventListener("error",this.Fd)}; +WE=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +XE=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1}; +YE=function(a,b,c){c=c===void 0?!1:c;g.O.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.rg=this.mediaElement.Ib());this.events=new g.oE(this);g.P(this,this.events);this.C=new XE(this.Qa?window.URL.createObjectURL(this.Qa):this.rg.webkitMediaSourceURL,!0);a=this.Qa||this.rg;rs(this.events,a,["sourceopen","webkitsourceopen"],this.Dca);rs(this.events,a,["sourceclose","webkitsourceclose"],this.Cca);this.D={updateend:this.V5}}; +Fwa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +Gwa=function(a,b){ZE(a)?g.Be(function(){b(a)}):a.callback=b}; +Hwa=function(a,b,c){if($E){var d;aF(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:bF(d)},!1);g.bx(b,a.D,a);g.bx(c,a.D,a)}a.j=b;a.B=c;g.P(a,b);g.P(a,c)}; +Iwa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.rb;c=c.rb;var f;a.Z=(f=a.Qa)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Qa)==null?void 0:h.addSourceBuffer(d);a.rg&&(a.rg.webkitSourceAddId("0",e),a.rg.webkitSourceAddId("1",d));f=new VE(a.Z,a.rg,"0",uE(e),c,!1);d=new VE(a.Y,a.rg,"1",uE(d),b,!0);Hwa(a,f,d)}; +cF=function(a){return!!a.j||!!a.B}; +ZE=function(a){try{return dF(a)==="open"}catch(b){return!1}}; +dF=function(a){if(a.Qa)return a.Qa.readyState;switch(a.rg.webkitSourceState){case a.rg.SOURCE_OPEN:return"open";case a.rg.SOURCE_ENDED:return"ended";default:return"closed"}}; +eF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +Jwa=function(a){ZE(a)&&(a.Qa?a.Qa.endOfStream():a.rg.webkitSourceEndOfStream(a.rg.EOS_NO_ERROR))}; +Kwa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Hd:a.j,f=a.B.isView()?a.B.Hd:a.B,h=new YE(a.mediaElement,a.Qa,!0);h.C=a.C;Hwa(h,new TE(e,b,c,d),new TE(f,b,c,d));ZE(a)||a.j.Qq(a.j.Dc());return h}; +Lwa=function(a){var b;(b=a.j)==null||b.Qz();var c;(c=a.B)==null||c.Qz();a.K=!1}; +fF=function(){var a=this;this.lT=this.lC=qaa;this.promise=new g.De(function(b,c){a.lC=b;a.lT=c})}; +gF=function(){g.O.call(this);this.IK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Vc;this.ea=null;g.P(this,this.D)}; +hF=function(a){a=a.AA();return a.length<1?NaN:a.end(a.length-1)}; +Mwa=function(a){!a.B&&Fwa()&&(a.C?a.C.then(function(){return Mwa(a)}):a.ai()||(a.B=a.Mr()))}; +Nwa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; +aF=function(a,b,c){var d;((d=a.ea)==null?0:d.zc())&&a.ea.oa("rms",b,c===void 0?!1:c)}; +Owa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.fr(function(){Owa(a,a.getCurrentTime(),c+1)},500))}; +Pwa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)}; +iF=function(a){return RE(a.Dh(),a.getCurrentTime())}; +Qwa=function(a,b){if(a.ql()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.AA(),a.length||!c)?OE(a,b):c}; +jF=function(a){a.ai()&&(a.ea&&a.ea.Fv("rs_s"),Mt&&a.getCurrentTime()>0&&a.seekTo(0),a.rM(),a.load(),Pwa(a,null));delete a.C}; +kF=function(a){switch(a.Eh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.Wf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.lF=function(a,b,c){this.dh=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64}; +mF=function(a,b){return Rwa(a,b.getCurrentTime(),(0,g.rt)(),iF(b))}; +nF=function(a,b,c,d){if(!(b===a.state&&c===a.dh&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.lF(b,c,e?d?d:a.seekSource:null)}return a}; +oF=function(a,b,c){return nF(a,a.state|b,null,c===void 0?null:c)}; +pF=function(a,b){return nF(a,a.state&~b,null,null)}; +qF=function(a,b,c,d){return nF(a,(a.state|b)&~c,null,d===void 0?null:d)}; +g.T=function(a,b){return!!(a.state&b)}; +g.rF=function(a,b){return b.state===a.state&&b.dh===a.dh}; +sF=function(a){return a.isPlaying()&&!g.T(a,16)&&!g.T(a,32)}; +tF=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,2048)?3:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1}; +vF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){g.O.call(this);var D=this;this.hp=a;this.slot=b;this.layout=c;this.Oa=d;this.zb=e;this.Sa=f;this.Ha=h;this.Cc=l;this.Mb=m;this.Hq=n;this.position=q;this.K=r;this.Ca=t;this.qs=u;this.Pg=y;this.context=A;this.ih=!0;this.G=!1;this.lc="not_rendering";this.j=!1;this.C=new WD;a=SB(this.layout.Ba,"metadata_type_ad_placement_config");this.eb=new kD(c.Db,this.Oa,a,c.layoutId);var F;a=((F=uF(this))==null?void 0:F.progressCommands)||[];this.D=new Qva(m,a,c.layoutId, +function(){return D.tA()}); +this.B=new uwa(this.layout.layoutId,A.vk)}; +wF=function(a){return{layoutId:a.uA(),hs:a.qs,Kf:a.Sa.get(),Ho:a.Te()}}; +xF=function(a,b){return b.layoutId!==a.layout.layoutId?(a.hp.Hf(a.slot,b,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +yF=function(a){a.lc="rendering_start_requested";a.Hq(-1)}; +uF=function(a){return SB(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +Swa=function(a){gy("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)}; +Twa=function(a){var b;return((b=zF(a.Sa.get(),2))==null?void 0:b.clientPlaybackNonce)||""}; +AF=function(a,b){switch(b){case "normal":a.Zb("complete");break;case "skipped":a.Zb("skip");break;case "abandoned":qD(a.eb,"impression")&&a.Zb("abandon")}}; +BF=function(a,b){a.G||(b=new g.hy(b.state,new g.lF),a.G=!0);return b}; +CF=function(a,b){TD(b)?a.Hq(1):g.jy(b,4)&&!g.jy(b,2)&&a.z3();iy(b,4)<0&&!(iy(b,2)<0)&&a.A3()}; +Uwa=function(a){a.position===0&&(a.Cc.get(),a=SB(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:DF(a)},Oz("ad_bl"),g.Pz(a))}; +EF=function(a,b){oD(a.eb,b,!a.j)}; +Wwa=function(a){var b;return(((b=uF(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.Q(c==null?void 0:c.command,Vwa)})!==-1}; +FF=function(a,b){var c=SB(a.Ba,"metadata_type_eligible_for_ssap");return c===void 0?(gy("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.Te(c)}; +GF=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return gy("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ld(a,"unexpected transition reason")}}; +HF=function(a,b,c){Rz(a,c)||Tz(a,b,c);Rz(a,"video_to_ad")||Tz(a,b,"video_to_ad");Rz(a,"ad_to_video")||Tz(a,b,"ad_to_video");Rz(a,"ad_to_ad")||Tz(a,b,"ad_to_ad")}; +IF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){vF.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,y,A,D);var F=this;this.od=m;this.Ao=q;this.QK=!0;this.sR=this.rj=0;this.vJ=cd(function(){qwa(wF(F));F.hp.vc(F.slot,F.layout)}); +this.DE=cd(function(){rwa(wF(F));F.lc!=="rendering_stop_requested"&&F.Ao(F);F.cP()}); +this.Ve=new g.Ke(200);this.Ve.listen("tick",function(){F.Tc()}); +g.P(this,this.Ve)}; +KF=function(a){a.sR=Date.now();JF(a,a.rj);a.Ve.start()}; +Xwa=function(a){a.rj=a.tA();a.jz(a.rj/1E3,!0);JF(a,a.rj)}; +JF=function(a,b){b={current:b/1E3,duration:a.tA()/1E3};a.od.get().bv("onAdPlaybackProgress",b)}; +LF=function(a){IF.call(this,a.hp,a.slot,a.Nf,a.Oa,a.zb,a.Sa,a.Ha,a.Cc,a.od,a.Mb,a.Hq,a.Ao,a.Tq,a.ez,a.Ca,a.qs,a.Pg,a.context)}; +MF=function(a){IF.call(this,a.hp,a.slot,a.Nf,a.Oa,a.zb,a.Sa,a.Ha,a.Cc,a.od,a.Mb,a.Hq,a.Ao,a.Tq,a.ez,a.Ca,a.qs,a.Pg,a.context)}; +NF=function(){MF.apply(this,arguments)}; +Ywa=function(a){return FF(a.slot,a.Ca.get())?new NF(a):new LF(a)}; +QF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,N,M){vF.call(this,a,b,c,d,e,l,m,p,r,u,y,A,D,F,H,M,N);var X=this;this.df=f;this.md=h;this.Pc=n;this.od=q;this.Xf=t;this.Ao=y;this.adCpn="";this.cX=0;this.rZ=!1;this.vJ=cd(function(){qwa(wF(X));X.hp.vc(X.slot,X.layout)}); +this.DE=cd(function(){rwa(wF(X));X.lc!=="rendering_stop_requested"&&X.Ao(X);X.cP()}); +this.Te()||(this.iL=new g.Oo(function(){X.uL("load_timeout",new PB("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=OF(this.Ca.get()),F=PF(F.get()),a&&F&&(this.tB=new g.Oo(function(){var V=SB(c.Ba,"metadata_type_preload_player_vars"); +V&&X.md.get().J.preloadVideoByPlayerVars(V,2,300)})))}; +$wa=function(a,b){var c=SB(b.Ba,"metadata_type_ad_video_id"),d=SB(b.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Xf.get().J.U().La.add(c,{oJ:d});(b=SB(b.Ba,"metadata_type_sodar_extension_data"))&&eva(a.df.get(),b);Zwa(a.Ha.get(),!1)}; +axa=function(a){Zwa(a.Ha.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ha.get().xC(!1)}; +RF=function(a){QF.call(this,a.callback,a.slot,a.Nf,a.Oa,a.zb,a.df,a.md,a.Sa,a.Ha,a.Pc,a.Cc,a.od,a.Mb,a.Xf,a.Hq,a.Ao,a.Tq,a.ez,a.Ca,a.qs,a.context,a.Pg)}; +SF=function(){RF.apply(this,arguments)}; +bxa=function(a){return Ywa(Object.assign({},a,{hp:a.callback,Hq:function(){}}))}; +cxa=function(a){return new QF(a.callback,a.slot,a.Nf,a.Oa,a.zb,a.df,a.md,a.Sa,a.Ha,a.Pc,a.Cc,a.od,a.Mb,a.Xf,function(b){a.od.get().bv("onAdIntroStateChange",b)},a.Ao,a.Tq,a.ez,a.Ca,a.qs,a.context,a.Pg)}; +dxa=function(a){function b(c){a.od.get().iH(c)} +return FF(a.slot,a.Ca.get())?new SF(Object.assign({},a,{Hq:b})):new QF(a.callback,a.slot,a.Nf,a.Oa,a.zb,a.df,a.md,a.Sa,a.Ha,a.Pc,a.Cc,a.od,a.Mb,a.Xf,b,a.Ao,a.Tq,a.ez,a.Ca,a.qs,a.context,a.Pg)}; +TF=function(a){for(var b=a.Nf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.w(lD()),e=d.next();!e.done;e=d.next())c.push(e.value);if(ED(b,{Ld:c,Ee:["LAYOUT_TYPE_MEDIA_BREAK"]}))return bxa(a);b=a.Nf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.w(lD());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(ED(b,{Ld:c,Ee:["LAYOUT_TYPE_MEDIA"]}))return MB(a.Nf.Ba,"metadata_type_ad_intro")?cxa(a):dxa(a)}; +fxa=function(a){var b=SB(a.Ba,"metadata_type_ad_placement_config").kind,c=SB(a.Ba,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:exa(c),adBreakType:DF(b)}}; +DF=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; +exa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +gxa=function(a){try{return new UF(a)}catch(b){}}; +VF=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);this.Gv=a;this.slot=b;this.layout=c;this.Yd=d;this.cf=e;this.Sa=f;this.Gc=h;this.md=l;this.qc=m;this.Ha=n;this.ih=!0;a=TF(p);if(!a)throw Error("Invalid params for sublayout");this.Jd=a}; +UF=function(a){VF.call(this,a.Gv,a.slot,a.layout,a.Yd,a.cf,a.Sa,a.Gc,a.md,a.qc,a.Ha,a.Lea);this.params=a}; +hxa=function(){this.j=1;this.B=new WD}; +WF=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.O.call(this);this.callback=a;this.Sa=b;this.Gc=c;this.md=d;this.Ha=e;this.Cc=f;this.Sq=h;this.slot=l;this.layout=m;this.Yd=n;this.Oi=p;this.qc=q;this.Ca=r;this.ih=!0;this.Cx=!1;this.Rh=[];this.oE=-1;this.YQ=!1;this.Tw=new hxa}; +ixa=function(a){var b;return(b=a.layout.Yy)!=null?b:SB(a.layout.Ba,"metadata_type_sub_layouts")}; +XF=function(a){return{Kf:a.Sa.get(),hs:!1,Ho:a.Te()}}; +jxa=function(a,b,c){if(a.El()===a.Rh.length-1){var d,e;gy("Unexpected skip requested during the last sublayout",(d=a.Af())==null?void 0:d.dc(),(e=a.Af())==null?void 0:e.bb(),{requestingSlot:b,requestingLayout:c})}}; +kxa=function(a,b,c){return c.layoutId!==YF(a,b,c)?(gy("onSkipRequested for a PlayerBytes layout that is not currently active",a.dc(),a.bb()),!1):!0}; +lxa=function(a){a.El()===a.Rh.length-1&&gy("Unexpected skip with target requested during the last sublayout")}; +mxa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==YF(a,b,c)?(gy("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.dc(),a.bb(),{requestingSlot:b,requestingLayout:c}),!1):!0}; +nxa=function(a,b,c,d){var e=SB(b.bb().Ba,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e0)){gy("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.oE=b;b=a.Af();if(a.El()>0&&!a.Te()){var c=a.Cc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});Qz("ad_to_ad",d)}a.nU(b)}}; +bG=function(a){WF.call(this,a.Gv,a.Sa,a.Gc,a.md,a.Ha,a.Cc,a.Sq,a.slot,a.layout,a.Yd,a.Oi,a.qc,a.Ca)}; +cG=function(a){WF.call(this,a.Gv,a.Sa,a.Gc,a.md,a.Ha,a.Cc,a.Sq,a.slot,a.layout,a.Yd,a.Oi,a.qc,a.Ca)}; +dG=function(){cG.apply(this,arguments);this.Bh=void 0}; +qxa=function(a,b,c){b.pA().currentState<2&&(c=GF(c),b.Id(b.bb(),c));c=b.pA().j;a.dP(a.slot,b.bb(),c)}; +rxa=function(a,b){a.Tw.j===2&&b!==a.Lm()&&gy("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})}; +sxa=function(a,b){var c=a.Af();c?(c.Id(c.bb(),b),b=a.El()+1,b>=0&&be&&h.mI(p,e-d);return p}; +Bxa=function(a,b){var c=SB(b.Ba,"metadata_type_sodar_extension_data");if(c)try{eva(0,c)}catch(d){gy("Unexpected error when loading Sodar",a,b,{error:d})}}; +Cxa=function(a,b,c,d,e,f){kG(a,b,new g.hy(c,new g.lF),d,e,!1,f)}; +kG=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;TD(c)&&UD(e,0,null)&&(!qD(a,"impression")&&h&&h(),a.Zb("impression"));qD(a,"impression")&&(g.jy(c,4)&&!g.jy(c,2)&&a.Sh("pause"),iy(c,4)<0&&!(iy(c,2)<0)&&a.Sh("resume"),g.jy(c,16)&&e>=.5&&a.Sh("seek"),f&&g.jy(c,2)&&lG(a,c.state,b,d,e))}; +lG=function(a,b,c,d,e,f,h){if(qD(a,"impression")){var l=Math.abs(d-e)<=1;mG(a,b,l?d:e,c,d,f,h&&l);l&&a.Zb("complete")}}; +mG=function(a,b,c,d,e,f,h){pD(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.T(b,16))||(b==null?0:g.T(b,32))||(UD(c,e*.25,d)&&(f&&!qD(a,"first_quartile")&&f("first"),a.Zb("first_quartile")),UD(c,e*.5,d)&&(f&&!qD(a,"midpoint")&&f("second"),a.Zb("midpoint")),UD(c,e*.75,d)&&(f&&!qD(a,"third_quartile")&&f("third"),a.Zb("third_quartile")))}; +Dxa=function(a,b){qD(a,"impression")&&a.Sh(b?"fullscreen":"end_fullscreen")}; +Exa=function(a){qD(a,"impression")&&a.Sh("clickthrough")}; +Fxa=function(a){a.Sh("active_view_measurable")}; +Gxa=function(a){qD(a,"impression")&&!qD(a,"seek")&&a.Sh("active_view_fully_viewable_audible_half_duration")}; +Hxa=function(a){qD(a,"impression")&&!qD(a,"seek")&&a.Sh("active_view_viewable")}; +Ixa=function(a){qD(a,"impression")&&!qD(a,"seek")&&a.Sh("audio_audible")}; +Jxa=function(a){qD(a,"impression")&&!qD(a,"seek")&&a.Sh("audio_measurable")}; +Kxa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Gc=d;this.eb=e;this.Ha=f;this.Us=h;this.zb=l;this.df=m;this.Ca=n;this.Oa=p;this.Sa=q;this.QK=!0;this.rd=this.lc=null;this.adCpn=void 0;this.j=!1}; +Lxa=function(a,b,c){var d;jG(a.Oa.get(),"ads_qua","cpn."+SB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=zF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; +Mxa=function(a,b){var c,d;jG(a.Oa.get(),"ads_imp","cpn."+SB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((c=zF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q((d=SB(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,nG))}; +oG=function(a){return{enterMs:SB(a.Ba,"metadata_type_layout_enter_ms"),exitMs:SB(a.Ba,"metadata_type_layout_exit_ms")}}; +pG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){fG.call(this,a,b,c,d,e,h,l,m,n,q);this.Us=f;this.df=p;this.zb=r;this.Ca=t;this.rd=this.lc=null}; +Nxa=function(a,b){var c;jG(a.Oa.get(),"ads_imp","acpn."+((c=zF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)}; +Oxa=function(a,b,c){var d;jG(a.Oa.get(),"ads_qua","cpn."+SB(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+((d=zF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; +qG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,N){this.qc=a;this.Yd=b;this.Oi=c;this.Sa=d;this.Gc=e;this.Ha=f;this.Oa=h;this.Us=l;this.xf=m;this.zb=n;this.df=p;this.md=q;this.Pc=r;this.Cc=t;this.od=u;this.Mb=y;this.Xf=A;this.Ca=D;this.j=F;this.context=H;this.Pg=N}; +rG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){this.qc=a;this.Yd=b;this.Oi=c;this.Oa=d;this.zb=e;this.df=f;this.md=h;this.Sa=l;this.Ha=m;this.Pc=n;this.Cc=p;this.od=q;this.Mb=r;this.Xf=t;this.Ca=u;this.Gc=y;this.context=A;this.Pg=D}; +Pxa=function(a,b,c,d){$w.call(this,"survey-interstitial",a,b,c,d)}; +sG=function(a,b,c,d,e){dD.call(this,c,a,b,d);this.Oa=e;a=SB(b.Ba,"metadata_type_ad_placement_config");this.eb=new kD(b.Db,e,a,b.layoutId)}; +tG=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; +XG=function(a,b,c){c=c===void 0?uG:c;c.widtha.width*a.height*.2)return{qN:3,rI:501,errorMessage:"ad("+tG(c)+") to container("+tG(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{qN:3,rI:501,errorMessage:"ad("+tG(c)+") covers container("+tG(a)+") center."}}; +Qxa=function(a,b){var c=SB(a.Ba,"metadata_type_ad_placement_config");return new kD(a.Db,b,c,a.layoutId)}; +$G=function(a){return SB(a.Ba,"metadata_type_invideo_overlay_ad_renderer")}; +aH=function(a,b,c,d){$w.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; +bH=function(a,b,c,d,e,f,h,l,m,n,p,q){dD.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ha=l;this.Mb=m;this.Ca=n;this.K=p;this.G=q;this.eb=Qxa(b,c)}; +Rxa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];lD().forEach(function(b){a.push(b)}); +return{Ld:a,Ee:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +cH=function(a,b,c,d,e,f,h,l,m,n,p,q,r){dD.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ha=m;this.Mb=n;this.Ca=p;this.K=q;this.G=r;this.eb=Qxa(b,c)}; +Sxa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.w(lD()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ld:a,Ee:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +dH=function(a){this.Ha=a;this.j=!1}; +Txa=function(a,b,c){$w.call(this,"survey",a,{},b,c)}; +eH=function(a,b,c,d,e,f,h){dD.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Ca=h}; +Uxa=function(a,b,c,d,e,f,h,l,m,n){this.Ac=a;this.Ha=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n}; +Vxa=function(a,b,c,d,e,f,h,l,m,n){this.Ac=a;this.Ha=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n}; +fH=function(a,b,c,d,e,f,h,l,m,n){MD.call(this,a,b,c,d,e,f,h,m);this.In=l;this.Sa=n}; +Wxa=function(){var a=hwa();a.Ld.push("metadata_type_ad_info_ad_metadata");return a}; +Xxa=function(a,b,c,d,e,f,h){this.Ac=a;this.Ha=b;this.Oa=c;this.B=d;this.In=e;this.j=f;this.Sa=h}; +Yxa=function(a,b,c,d,e,f,h,l){this.Ac=a;this.Ha=b;this.Oa=c;this.B=d;this.In=e;this.j=f;this.Ca=h;this.Sa=l}; +gH=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; +hH=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); +var c=0;for(a+=1;a0}; +MH=function(a){return!!(a.r$&&a.slot&&a.layout)}; +NH=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)}; +lya=function(a){if(!FH(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,RD)||g.Q(a,PD)||g.Q(a,QD)?!0:!1}; +OH=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0}; +TH=function(a){if(!FH(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.Q(a,mya);return b?nya(b):(b=g.Q(a,PH))?OH(b):(b=g.Q(a,QH))?b.playerVars!==void 0:(b=g.Q(a,RD))?b.durationMilliseconds!==void 0:g.Q(a,RH)||g.Q(a,SH)?!0:!1}; +nya=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.Q(b,UH)}); +return a.length>0&&a.every(TH)}; +rya=function(a){if(!FH(a.adLayoutMetadata))return!1;if(g.Q(a.renderingContent,oya))return!0;a=g.Q(a.renderingContent,VH);return g.Q(a==null?void 0:a.sidePanel,pya)||g.Q(a==null?void 0:a.sidePanel,qya)?!0:!1}; +wya=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(sya(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.Q(a,UH))?TH(c):(c=g.Q(a,WH))?rya(c):(c=g.Q(a,tya))?lya(c):(c=g.Q(a,uya))?jya(c):(a=g.Q(a,vya))?FH(a.adLayoutMetadata)?g.Q(a.renderingContent,GH)?!0:!1:!1:!1}; +sya=function(a){var b;a=g.Q((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,WH);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0}; +yya=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.w(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.Q(b,XH))==null?void 0:c.surveyAdQuestionCommon)||((d=g.Q(b,YH))==null?void 0:d.surveyAdQuestionCommon);if(!xya(e))return!1}return!0}; +zya=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.Q(a.questions[0],XH))==null?void 0:b.surveyAdQuestionCommon)||((c=g.Q(a.questions[0],YH))==null?void 0:c.surveyAdQuestionCommon);b=xya(d)}else b=!1;else b=!1;return b}; +xya=function(a){if(!a)return!1;a=g.Q(a.instreamAdPlayerOverlay,ZH);var b=g.Q(a==null?void 0:a.skipOrPreviewRenderer,nG),c=g.Q(a==null?void 0:a.adInfoRenderer,$H);return(g.Q(a==null?void 0:a.skipOrPreviewRenderer,aI)||b)&&c?!0:!1}; +Aya=function(a){return a.linearAds!=null&&FH(a.adLayoutMetadata)}; +Bya=function(a){return a.linearAd!=null&&a.adVideoStart!=null}; +Cya=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.bI)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,cI)&&((b=g.Q(a.backgroundImage,cI))==null?0:b.landscape)?!0:!1}; +dI=function(a,b,c,d,e,f,h){g.O.call(this);this.Ca=a;this.j=b;this.C=d;this.Sa=e;this.D=f;this.B=h}; +Fya=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.Q(f,eI)}); +c.KC?SB(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?$C(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ca.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Fw.filter(function(f){var h; +return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?Dya(a.B,d,e,b.slotId,c.ssdaiAdsConfig):$C(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):$C(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Eya(a.D,b)):Dya(a.B,c.Fw,e,b.slotId,c.ssdaiAdsConfig)}; +Hya=function(a,b,c,d,e,f){var h=zF(a.Sa.get(),1);$C(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Gya(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Op,h.daiEnabled,h,f)},b)}; +Jya=function(a,b,c,d,e,f,h){b=Iya(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof QB?b:fI(a,d,e,b,c);return a instanceof QB?a:[a]}; +Kya=function(a,b,c,d,e){var f=aD(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new vB({getAdBreakUrl:d.getAdBreakUrl,iT:0,hT:0}),new JB(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new AH(a.j,f),slotFulfillmentTriggers:[new Zxa(a.j)],slotExpirationTriggers:[new uH(a.j,e),new xH(a.j,f)],Za:"core",Ba:new RB(d),adSlotLoggingData:c}:new QB("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new QB("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return a instanceof QB?a:[a]}; +Lya=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; +gI=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new iH(OB,b,a.id):new QB("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new oH(OB,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new QB("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&& +((f=a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=$xa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof QB?b:new nH(OB,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new QB("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new tH(OB,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new QB("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a= +a.onNewPlaybackAfterContentVideoIdTrigger?new uH(OB,b,a.id):new QB("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new vH(OB,a.skipRequestedTrigger.triggeringLayoutId,a.id):new QB("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new wH(OB,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new QB("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n; +b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new xH(OB,a.slotIdExitedTrigger.triggeringSlotId,a.id):new QB("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new CH(OB,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new QB("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new bya(a.id):new QB("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q; +b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new jH(OB,a.closeRequestedTrigger.triggeringLayoutId,a.id):new QB("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new AH(OB,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new QB("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u= +a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new QB("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new lp(d,u),a=c instanceof QB?c:new qH(OB,b,c,!1,a.id)):a=new QB("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new kH(OB,b,!1,a.id):new QB("Not able to create ContentVideoIdEndedTrigger"); +else{if(a.layoutIdEnteredTrigger){var y;b=(y=a.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new mH(OB,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new QB("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new DH(OB,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new QB("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var D; +b=(D=a.onDifferentLayoutIdEnteredTrigger)!=null&&D.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new rH(OB,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new QB("Not able to create CloseRequestedTrigger")}else b=new QB("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a}; +Nya=function(a,b,c,d,e,f,h,l){return b===null?new QB("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[Mya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new RB([new xA(d),new JA(e)]);n=HC(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Za:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Db:new Map, +layoutExitNormalTriggers:[new uH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:q,hc:m(r),adLayoutLoggingData:p}})]}; +Oya=function(a,b,c,d,e,f,h,l){return b===null?new QB("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Mya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new RB([new yA(d),new JA(e)]);n=HC(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Za:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +Db:new Map,layoutExitNormalTriggers:[new uH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:q,hc:m(r),adLayoutLoggingData:p}})]}; +Sya=function(a,b,c,d,e,f){if(!f)for(b=g.w(b),f=b.next();!f.done;f=b.next())f=f.value,hI(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return Pya(p)}); +b=[];f=g.w(a);for(var h=f.next(),l={};!h.done;l={Pw:void 0},h=f.next()){l.Pw=h.value;h=g.w(l.Pw.oO);for(var m=h.next(),n={};!m.done;n={Jn:void 0},m=h.next())n.Jn=m.value,m=function(p,q){return function(r){return p.Jn.lP(r,q.Pw.instreamVideoAdRenderer.elementId,p.Jn.nO)}}(n,l),n.Jn.isContentVideoCompanion?b.push(Qya(c,d,e,l.Pw.instreamVideoAdRenderer.elementId,n.Jn.associatedCompositePlayerBytesLayoutId,n.Jn.adSlotLoggingData,m)):a.length>1?b.push(Rya(c,d,e,l.Pw.instreamVideoAdRenderer.elementId,n.Jn.adSlotLoggingData, +function(p,q){return function(r){return p.Jn.lP(r,q.Pw.instreamVideoAdRenderer.elementId,p.Jn.nO,p.Jn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(Rya(c,d,e,l.Pw.instreamVideoAdRenderer.elementId,n.Jn.adSlotLoggingData,m))}return b}; +hI=function(a,b,c){if(b=Tya(b)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=iI(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.PF=c)}else gy("InstreamVideoAdRenderer without externalVideoId")}}; +Tya=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.Q(a.sandwichedLinearAdRenderer.linearAd,PH);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.w(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.Q(c,PH)&&b.push(g.Q(c,PH));return b}return null}; +Pya=function(a){if(a.instreamVideoAdRenderer===void 0)return gy("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.w(a.oO),c=b.next();!c.done;c=b.next()){c=c.value;if(c.lP===void 0)return!1;if(c.nO===void 0)return gy("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.PF===void 0||c.VI===void 0||a.PF!==c.VI&&c.VI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return gy("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:a.PF,"matching APSR kind":c.VI}),!1}return!0}; +iI=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,PF:void 0,adVideoId:b,oO:[]});return a.get(b)}; +jI=function(a,b,c,d,e,f,h,l,m){e?iI(a,e).oO.push({Kma:b,VI:c,isContentVideoCompanion:d,nO:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,lP:m}):gy("Companion AdPlacementSupportedRenderer without adVideoId")}; +Uya=function(a){var b,c=(b=SB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=SB(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=SB(a.Ba,"metadata_type_content_cpn"),f=SB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=SB(a.Ba,"metadata_type_player_underlay_renderer"),l=SB(a.Ba,"metadata_type_ad_placement_config"),m=SB(a.Ba,"metadata_type_video_length_seconds");var n=MB(a.Ba,"metadata_type_layout_enter_ms")&&MB(a.Ba, +"metadata_type_layout_exit_ms")?(SB(a.Ba,"metadata_type_layout_exit_ms")-SB(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Vq:d,contentCpn:e,XS:c,pO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,hL:n,inPlayerLayoutId:SB(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:SB(a.Ba,"metadata_type_linked_in_player_slot_id")}}; +Xya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=aD(d,"SLOT_TYPE_PLAYER_BYTES");a=Vya(e,a,h,c,d,m,n);if(a instanceof QB)return a;var y;n=(y=SB(a.Ba,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!n)return new QB("Invalid adNotify layout");b=Wya(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof QB?b:[a].concat(g.x(b))}; +Wya=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=Yya(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof QB)return c;a=Zya(b,a,h,e,c);return a instanceof QB?a:[].concat(g.x(a.pg),[a.Dy])}; +aza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=Yya(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof QB)return b;a=$ya(a,c,f,h,d,l.Vb,b);return a instanceof QB?a:a.pg.concat(a.Dy)}; +Yya=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=kI(d,c,n);return r instanceof PB?new QB(r):n.J.U().experiments.kb("html5_refactor_in_player_slot_generation")?function(t){var u=new hH(0,[r.Fp]);t=bza(b,r.layoutId,r.kp,c,lI(r.playerVars,r.dC,f,m,u),r.Fp,e,u,h(t),l.get(r.kp.externalVideoId),q);u=[];if(r.kp.playerOverlay.instreamAdPlayerOverlayRenderer){var y=Uya(t);if(!y)return gy("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,pg:[]}; +u=[cza(a,y.contentCpn,y.Vq,function(D){return mI(b,D.slotId,"core",y,YB(p,D))},y.inPlayerSlotId)].concat(g.x(u)); +if(y.instreamAdPlayerUnderlayRenderer&&nI(n)){var A=y.instreamAdPlayerUnderlayRenderer;u=[dza(a,y.contentCpn,y.Vq,function(D){return eza(b,D.slotId,A,y.adPlacementConfig,y.Vq,YB(p,D))})].concat(g.x(u))}}return{layout:t, +pg:u}}:function(t){var u=new hH(0,[r.Fp]); +return{layout:bza(b,r.layoutId,r.kp,c,lI(r.playerVars,r.dC,f,m,u),r.Fp,e,u,h(t),l.get(r.kp.externalVideoId),q),pg:[]}}}; +kI=function(a,b,c){if(!a.playerVars)return new PB("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new PB("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=Tq(a.playerVars);e=Number(d.length_seconds); +isNaN(e)&&(e=0,gy("Expected valid length seconds in player vars but got NaN"));if(c.Te(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new PB("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,kp:a,playerVars:d,dC:a.playerVars,Fp:e}}; +lI=function(a,b,c,d,e){a.iv_load_policy=d;b=Tq(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){gy(f)}c.mj&&(a.ctrl=c.mj);c.Rj&&(a.ytr=c.Rj);c.Sw&&(a.ytrcc=c.Sw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.An&&(a.vss_credentials_token_type=c.An),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a}; +fza=function(a){var b=new Map;a=g.w(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b}; +oI=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +jza=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.w(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!sya(t)){var y=void 0;u=(t==null?void 0:(y=t.adSlotMetadata)==null?void 0:y.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){y=oI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.Te(y),D=gza(t,n,d,c.Op,A);if(D instanceof QB)return D;var F=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(F=t.adSlotMetadata.slotPhysicalPosition)!=null? +F:1,Za:"core",slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers};if(D=g.Q(t.fulfillmentContent.fulfilledLayout,UH)){if(!TH(D))return new QB("Invalid PlayerBytesAdLayoutRenderer");A=hza(u,t.adSlotMetadata.triggerEvent,D,b,c,d,e,f,h,l,m,n,a,p,A,t.adSlotMetadata.triggeringSourceLayoutId);if(A instanceof QB)return A;D=[];oI(t)&&D.push(new KB({Au:oI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.Vb&&D.push(new DB({})); +D.push(new IB(y));t=Object.assign({},u,{Ba:new RB(D),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.x(A.pg));q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,WH),D=A=void 0,((A=y)==null?void 0:(D=A.adLayoutMetadata)==null?void 0:D.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||t.slotEntryTrigger!==void 0)if(y){if(!rya(y))return new QB("Invalid PlayerUnderlayAdLayoutRenderer");A=y;F=d;var H=c.Op,N=f;D=u;y=t.adSlotMetadata.triggerEvent;if(A.adLayoutMetadata.layoutType=== +"LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var M=g.Q(A.renderingContent,VH);if(M)if(M=g.Q(M.sidePanel,qya)){var X={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Za:"core"};F=pI(A,F,H);y=F instanceof QB?F:Object.assign({},X,{renderingContent:A.renderingContent,Db:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},F,{hc:YB(N,D)(X),Ba:new RB([new JA(qI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else y=new QB("DismissablePanelTextPortraitImageRenderer is missing"); +else y=new QB("SqueezebackPlayerSidePanelRenderer is missing")}else if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING")g.Q(A.renderingContent,oya)?(M={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,Za:"core"},F=pI(A,F,H),y=F instanceof QB?F:Object.assign({},M,{renderingContent:A.renderingContent,Db:new Map},F,{hc:YB(N,D)(M),Ba:new RB([new JA(qI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):y=new QB("CounterfactualRenderer is missing"); +else{var V;A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?V=new QB("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):V=new QB("LayoutType ["+A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");y=V}if(y instanceof QB)return y;t=Object.assign({},u,{Ba:new RB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,uya)){if(!jya(y))return new QB("Invalid AboveFeedAdLayoutRenderer"); +y=iza(y,d,c.Op,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof QB)return y;t=Object.assign({},u,{Ba:new RB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.Q(t.fulfillmentContent.fulfilledLayout,vya)){if(!FH(y.adLayoutMetadata)||!g.Q(y.renderingContent,GH))return new QB("Invalid BelowPlayerAdLayoutRenderer");y=iza(y,d,c.Op,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof +QB)return y;t=Object.assign({},u,{Ba:new RB([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new QB("Unable to retrieve a client slot ["+u.slotType+"] from a given AdSlotRenderer")}}return q}; +iza=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Za:"core"};b=pI(a,b,c);if(b instanceof QB)return b;c=[];c.push(new JA(qI(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new aB(h));return Object.assign({},l,{renderingContent:a.renderingContent,Db:new Map([["impression",kza(a)]])},b,{hc:YB(d,e)(l),Ba:new RB(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; +hza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){var A=pI(c,f,e.Op);if(A instanceof QB)return A;if(g.Q(c.renderingContent,PH)){m=lza([c],e,m);if(m instanceof QB)return m;if(m.length!==1)return new QB("Only expected one media layout.");a=mza(a,b,c,A,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Op,q,void 0,y);return a instanceof QB?a:{layout:a.layout,pg:a.nf?[a.nf]:[]}}var D=g.Q(c.renderingContent,mya);if(D){if(!FH(c.adLayoutMetadata))return new QB("Invalid ad layout metadata");if(!nya(D))return new QB("Invalid sequential layout"); +D=D.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); +a=nza(a,b,c.adLayoutMetadata,A,D,d,f,e,m,h,l,n,p,q,u,r,t,y);return a instanceof QB?a:{layout:a.T7,pg:a.pg}}return new QB("Not able to convert a sequential layout")}; +nza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){var F=new NA({current:null}),H=lza(e,l,m);if(H instanceof QB)return H;m=[];for(var N=[],M=void 0,X=0;X +0&&(X.push(D),X.push(new MA(M.adPodSkipTarget)));(f=n.get(M.externalVideoId))&&X.push(new xB(f));f=X}else f=new QB("Invalid vod media renderer")}if(f instanceof QB)return f;a=Object.assign({},h,d,{Db:H,renderingContent:c.renderingContent,Ba:new RB(f),hc:YB(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.Q(c.renderingContent,PH);if(!c||!OH(c))return new QB("Invalid meida renderer");q=iI(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.PF="AD_PLACEMENT_KIND_START";return t? +(m=pza(r,a,m,y,p,A,u,D),m instanceof QB?m:rza(a.layoutId,r)&&m?{layout:Object.assign({},a,{Ba:new RB(f.concat(new UA(m)))})}:{layout:a,nf:m}):{layout:a}}; +oza=function(a,b,c,d,e){if(!TH(b))return new QB("Invalid PlayerBytesAdLayoutRenderer");var f=g.Q(b.renderingContent,RD);if(!f||f.durationMilliseconds===void 0)return new QB("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Za:"adapter"};d=[new zB(f.durationMilliseconds),new CB({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new JA(d), +new cB("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new LA(e.Gw.adPodIndex-1));d.push(new pB(e.Gw.adPodIndex));var l;d.push(new MA((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,rI,{renderingContent:b.renderingContent,Ba:new RB(d),Db:f.skipPings?new Map([["skip",f.skipPings]]):new Map,hc:YB(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})}; +pza=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId}); +if(a.length!==0){if(a.length!==1)return new QB("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=gza(a,f,c,d,h);if(h instanceof QB)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Za:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.Q(a.fulfillmentContent.fulfilledLayout, +tya);if(!m||!lya(m))return new QB("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Za:"core"};c=pI(m,c,d);if(c instanceof QB)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.x(sza(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new JA(qI(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new QB("Not able to parse an SDF InPlayer layout"); +e=Object.assign({},h,c,{renderingContent:m.renderingContent,Db:new Map,hc:YB(e,f)(h),Ba:new RB(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new RB([])})}}; +sza=function(a,b){var c=[];c.push(new JA(qI(a)));c.push(new aB(b.layoutId));(a=SB(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new fB(a));(a=SB(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new NA(a));(a=SB(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new xB(a));(a=SB(b.Ba,"metadata_type_ad_next_params"))&&c.push(new BA(a));(a=SB(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new CA(a));(a=SB(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new KA(a));(b= +SB(b.Ba,"metadata_type_ad_video_id"))&&c.push(new OA(b));return c}; +qza=function(a,b,c,d,e,f){function h(n){return sI(b,n)} +var l=d.MJ.inPlayerSlotId,m={layoutId:d.MJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Za:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:new mH(h,a),slotFulfillmentTriggers:[new wH(h,l)],slotExpirationTriggers:[new xH(h,l),new uH(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new oH(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Db:new Map,Ba:new RB([new WA(d.MJ),new JA(d.adPlacementConfig), +e]),hc:YB(f,c)(m),adLayoutLoggingData:d.MJ.adLayoutLoggingData});return Object.assign({},c,{Ba:new RB([new uB(a)])})}; +rza=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.Q(c.fulfillmentContent.fulfilledLayout,WH);if(d&&(d=g.Q(d.renderingContent,VH))&&d.associatedPlayerBytesLayoutId===a)return c}}; +gza=function(a,b,c,d,e){var f=tza(gI(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof QB)return f;for(var h=[],l=g.w(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=gI(m.value,c,d);if(m instanceof QB)return m;h.push(m)}h=uza(h,e,a,b);b=[];a=g.w(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=gI(e.value,c,d);if(e instanceof QB)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}}; +tza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof iH?new gH(function(e){return sI(d,e)},c.adSlotMetadata.slotId):a}; +uza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof wH?new AH(function(f){return sI(d,f)},c.adSlotMetadata.slotId):e}):a}; +pI=function(a,b,c){for(var d=[],e=g.w(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=gI(f.value,b,c);if(f instanceof QB)return f;d.push(f)}e=[];f=g.w(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=gI(h.value,b,c);if(h instanceof QB)return h;e.push(h)}f=[];h=g.w(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=gI(l.value,b,c);if(l instanceof QB)return l;f.push(l)}h=[];a=g.w(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l= +a.next()){l=gI(l.value,b,c);if(l instanceof QB)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Yc:[]}}; +lza=function(a,b,c){for(var d=[],e=g.w(a),f=e.next();!f.done;f=e.next())if(f=g.Q(f.value.renderingContent,PH)){if(!OH(f))return new QB("Invalid vod media renderer");d.push(vza(f))}e=d.map(function(q){return q.Fp}); +f=[];for(var h=0,l=0;l=2&&(D.slot_pos=A.adPodIndex);D.autoplay="1";var F,H;D=n.videoLengthSeconds;var N=n.playerVars,M=n.Db, +X=n.Ct,V=n.instreamAdPlayerOverlayRenderer,fa=n.playerOverlayLayoutRenderer,pa=n.adVideoId,Z=(F=g.Q(b,PH))==null?void 0:F.adLayoutLoggingData;F=(H=g.Q(b,PH))==null?void 0:H.sodarExtensionData;H=HC(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var R={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Db:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"adapter",Ba:new RB([new PA(h), +new jB(D),new kB(N),new nB(p),new oB(r),new pB(q),new fB({current:null}),V&&new QA(V),fa&&new RA(fa),new JA(f),new OA(pa),new KA(A),F&&new mB(F),y&&new EB(y),new qB({}),new FB(X)].filter(Iza)),hc:e(R),adLayoutLoggingData:Z};D=Dza(g.Q(b,PH),f,h,A.layoutId,d);return{j8:A,Oea:D}}}; +Gza=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=Tq(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay|| +{};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&d===0){var l;b=(l=Oza[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Db:a.pings?jD(a.pings):new Map,Ct:iD(a.pings)}}; +Hza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a}; +Fza=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{jY:b,mY:a}}; +Qza=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[Pza(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=HC(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Za:"core"},u=jD(n),y=[new uH(b.j,f)],A;var D=n==null?void 0:(A=n.activeViewTracking)==null?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Db:u,layoutExitNormalTriggers:y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[], +layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new JA(d),new FB(iD(n)),new GB(D),new jB(h/1E3)]),hc:p(t),adLayoutLoggingData:r}})]:new QB("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; +Sza=function(a,b,c,d,e,f,h,l){a=Rza(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=HC(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Za:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Db:q,layoutExitNormalTriggers:[new tH(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new sB(e),new JA(c)]),hc:m(p)}}); +return a instanceof QB?a:[a]}; +Uza=function(a,b,c,d,e,f,h){return[Tza(a,f,d,function(l){var m=l.slotId;l=h(l);m=HC(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new uH(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new QA(e),new JA(c)]),hc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; +Wza=function(a,b,c,d,e,f,h,l){a=Vza(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=HC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=wI(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,xI(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=HC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=wI(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,xI(b,n,p))):q.imageOverlayAdContentRenderer?(q=HC(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", +p),n=xI(b,n,p),n.push(new DH(b.j,45E3,q)),n=wI(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new PB("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new PB("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); +return a instanceof QB?a:[a]}; +Zza=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new QB("Expected valid duration for AdActionInterstitialRenderer."):function(p){return Xza(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return Yza(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=HC(b.B.get(),"LAYOUT_TYPE_ENDCAP", +u);return vI(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new WA(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; +$za=function(a,b,c,d){if(!c.playerVars)return new QB("No playerVars available in AdIntroRenderer.");var e=Tq(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=HC(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};return{Nf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"adapter",Ba:new RB([new rB({}), +new JA(b),new fB({current:null}),new kB(e)]),hc:f(l)},Hm:[new nH(a.j,h,["error"])],nk:[],Xz:[],Wz:[]}}}; +bAa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=tI(e);if(!yya(e,n))return new QB("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new QB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=xza(a,b,e,f,c,d,h);return q instanceof QB?q:function(r){return aAa(b,r.slotId,c,p,e,uI(e),h(r),q,l,m)}}; +cAa=function(a,b,c,d,e,f,h,l){function m(q){return Yza(a,q,d,n)} +function n(q,r){var t=q.slotId;q=h(q);t=HC(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return vI(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new XA(e),f],e.adLayoutLoggingData)} +if(!Cya(e))return new QB("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=yI(b,r,c,p,t,new Map,q,m,void 0,zI(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new bB(r.SL);q=new LA(l);return{Nf:{layoutId:r.layoutId,layoutType:r.layoutType,Db:r.Db,layoutExitNormalTriggers:[], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:r.Za,Ba:new RB([].concat(g.x(r.Tz),[t,q])),hc:r.hc,adLayoutLoggingData:r.adLayoutLoggingData},Hm:[],nk:r.layoutExitMuteTriggers,Xz:r.layoutExitUserInputSubmittedTriggers,Wz:r.Yc,nf:r.nf}}}; +eAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){a=aD(a,"SLOT_TYPE_PLAYER_BYTES");d=Vya(b,h,d,e,a,n,p);if(d instanceof QB)return d;var A;h=(A=SB(d.Ba,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new QB("Invalid adNotify layout");b=dAa(h,b,c,e,f,m,l,n,q,r,t,u,y);return b instanceof QB?b:[d].concat(g.x(b))}; +dAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=fAa(b,c,d,f,h,l,m,n,p,q,r);gAa(f)?(d=hAa(b,a),a=aD(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=HC(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=AI(b,d,l),b=[].concat(g.x(l.slotExpirationTriggers),[new jH(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Za:l.Za},{slotId:a,layoutId:f}),e=a instanceof QB?a:{Dy:Object.assign({}, +l,{slotExpirationTriggers:b,Ba:new RB([new uB(a.layout)]),adSlotLoggingData:e}),pg:a.pg}):e=Zya(b,a,l,e,c);return e instanceof QB?e:[].concat(g.x(e.pg),[e.Dy])}; +jAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=fAa(a,b,c,e,f,h,m,n,p,q,r,t);gAa(e)?(e=iAa(a,c,h,l),e instanceof QB?a=e:(l=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=HC(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.x(e.slotExpirationTriggers),[new jH(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Za:e.Za,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof QB?l: +{Dy:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:BI(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:CI(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Za:e.Za,Ba:new RB([new IB(DI(c)),new uB(l.layout),new KB({Au:a.Au(c)})]),adSlotLoggingData:d},pg:l.pg})):a=$ya(a,c,h,l,d,m.Vb,b);return a instanceof QB?a:a.pg.concat(a.Dy)}; +gAa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,RH))return!0;return!1}; +fAa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(OF(p)&&PF(p))a:{var u=kAa(d,c,p);if(u instanceof QB)t=u;else{for(var y=0,A=[],D=[],F=[],H=[],N=[],M=[],X=new gB({current:null}),V=new NA({current:null}),fa=!1,pa=[],Z=0,R=[],W=0;W0?Z:-1;else if(v=g.Q(W,RD)){W=Zza(a,b,c,v,f,y,l,V,Z);if(W instanceof QB){t=W;break a}W= +W(r);A.push(W.Nf);D=[].concat(g.x(W.Hm),g.x(D));F=[].concat(g.x(W.nk),g.x(F));W.nf&&(pa=[W.nf].concat(g.x(pa)))}else if(v=g.Q(W,RH)){if(t===void 0){t=new QB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}W=bAa(a,b,c,f,v,X,l,t,y,EI(p,"supports_multi_step_on_desktop"));if(W instanceof QB){t=W;break a}W=W(r);A.push(W.Nf);W.nf&&pa.push(W.nf);D=[].concat(g.x(W.Hm),g.x(D));F=[].concat(g.x(W.nk),g.x(F));H=[].concat(g.x(W.Xz),g.x(H));N=[].concat(g.x(W.Wz), +g.x(N));M=[X].concat(g.x(M))}else if(W=g.Q(W,SH)){W=cAa(a,b,c,f,W,X,l,y);if(W instanceof QB){t=W;break a}W=W(r);A.push(W.Nf);W.nf&&pa.push(W.nf);F=[].concat(g.x(W.nk),g.x(F))}else{t=new QB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Yy:A,layoutExitSkipTriggers:D,layoutExitUserInputSubmittedTriggers:H,Yc:N,layoutExitMuteTriggers:F,Tz:M,pg:pa}}}else a:if(y=kAa(d,c,p),y instanceof QB)t=y;else{A=0;D=[];F=[];H=[];N=[];M=[];X=[];V=new gB({current:null});fa=new NA({current:null}); +pa=!1;R=[];Z=-1;u=g.w(d);for(W=u.next();!W.done;W=u.next())if(W=W.value,g.Q(W,QH)){W=$za(b,c,g.Q(W,QH),l);if(W instanceof QB){t=W;break a}W=W(r);D.push(W.Nf);F=[].concat(g.x(W.Hm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));W.nf&&(R=[W.nf].concat(g.x(R)))}else if(g.Q(W,PH)){Z=kI(g.Q(W,PH),c,p);if(Z instanceof PB){t=new QB(Z);break a}W=new hH(A,y);W=lAa(b,Z.layoutId,Z.kp,c,lI(Z.playerVars,Z.dC,h,n,W),Z.Fp,f,W,l(r),fa,m.get(Z.kp.externalVideoId),void 0,q);A++;D.push(W.Nf);F=[].concat(g.x(W.Hm),g.x(F));H= +[].concat(g.x(W.nk),g.x(H));pa||(X.push(fa),pa=!0);Z=(Z=Z.kp.adPodSkipTarget)&&Z>0?Z:-1}else if(g.Q(W,RD)){W=Zza(a,b,c,g.Q(W,RD),f,A,l,fa,Z);if(W instanceof QB){t=W;break a}W=W(r);D.push(W.Nf);F=[].concat(g.x(W.Hm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));W.nf&&(R=[W.nf].concat(g.x(R)))}else if(g.Q(W,RH)){if(t===void 0){t=new QB("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(W,RH)});break a}W=bAa(a,b,c,f,g.Q(W,RH),V,l,t,A,EI(p,"supports_multi_step_on_desktop")); +if(W instanceof QB){t=W;break a}W=W(r);D.push(W.Nf);W.nf&&R.push(W.nf);F=[].concat(g.x(W.Hm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));N=[].concat(g.x(W.Xz),g.x(N));M=[].concat(g.x(W.Wz),g.x(M));X=[V].concat(g.x(X))}else if(g.Q(W,SH)){W=cAa(a,b,c,f,g.Q(W,SH),V,l,A);if(W instanceof QB){t=W;break a}W=W(r);D.push(W.Nf);W.nf&&R.push(W.nf);H=[].concat(g.x(W.nk),g.x(H))}else{t=new QB("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Yy:D,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:N, +Yc:M,layoutExitMuteTriggers:H,Tz:X,pg:R}}t instanceof QB?r=t:(M=r.slotId,y=t.Yy,A=t.layoutExitSkipTriggers,D=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.Tz,r=l(r),N=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",M=e?e.layoutId:HC(b.B.get(),N,M),X={layoutId:M,layoutType:N,Za:"core"},r={layout:{layoutId:M,layoutType:N,Db:new Map,layoutExitNormalTriggers:[new tH(b.j,M)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:D,layoutExitUserInputSubmittedTriggers:F,Yc:[],Za:"core", +Ba:new RB([new hB(y)].concat(g.x(H))),hc:r(X)},pg:t.pg});return r}}; +kAa=function(a,b,c){var d=[];a=g.w(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.Q(e,PH)){e=kI(g.Q(e,PH),b,c);if(e instanceof PB)return new QB(e);d.push(e.Fp)}return d}; +nAa=function(a,b,c,d,e,f,h,l){if(!yya(c,l===void 0?!1:l))return new QB("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=tI(c);if(m<=0)return new QB("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new gB({current:null}),p=xza(a,b,c,n,d,f,h);return mAa(a,d,f,m,e,function(q,r){var t=q.slotId,u=uI(c);q=h(q);var y,A=(y=zI(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null? +y:HC(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"core"};y=p(A,r);var D=SB(y.Ba,"metadata_type_fulfilled_layout");D||gy("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new JA(d),new zB(m),new CB(u),n];D&&u.push(new cB(D.layoutType));return{Z$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:new Map,layoutExitNormalTriggers:[new tH(b.j,A)],layoutExitSkipTriggers:[new vH(b.j,r.layoutId)], +layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new CH(b.j,r.layoutId)],Yc:[],Za:"core",Ba:new RB(u),hc:q(t)},n$:y}})}; +oAa=function(a){if(!Bya(a))return!1;var b=g.Q(a.adVideoStart,FI);return b?g.Q(a.linearAd,PH)&&MH(b)?!0:(gy("Invalid Sandwich with notify"),!1):!1}; +pAa=function(a){if(a.linearAds==null)return!1;a=g.Q(a.adStart,FI);return a?MH(a)?!0:(gy("Invalid LASR with notify"),!1):!1}; +qAa=function(a){if(!Aya(a))return!1;a=g.Q(a.adStart,FI);return a?MH(a)?!0:(gy("Invalid LASR with notify"),!1):!1}; +GI=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Ca=d;this.Le=e;this.C=f;this.Ha=h;this.rk=l;this.loadPolicy=m===void 0?1:m}; +Gya=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(NH);var p=c.filter(wya),q=d.filter(NH),r=new Map,t=fza(b),u=c.some(function(W){var v;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),y=c.some(function(W){var v; +return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=c.some(function(W){var v; +return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_IN_PLAYER"}); +c=c.some(function(W){var v,U;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(W==null?void 0:(U=W.adSlotMetadata)==null?void 0:U.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +if(u||y||A||c)c=jza(p,b,l,e,t,a.Le.get(),a.loadPolicy,r,a.Ca.get(),a.D.get(),A),c instanceof QB?gy(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.x(c));c=g.w(b);for(y=c.next();!y.done;y=c.next())y=y.value,A=rAa(a,r,y,e,f,h,u,l,t,m,p),A instanceof QB?gy(A,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.x(A));sAa(a.Ca.get())||(f=tAa(a,q,e,l,t,r),n.push.apply(n,g.x(f)));if(a.C===null||h&&!l.VX){var D, +F,H;a=l.Vb&&b.length===1&&((D=b[0].config)==null?void 0:(F=D.adPlacementConfig)==null?void 0:F.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((H=b[0].renderer)==null?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var N,M,X,V;gy("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(N=b[0])==null?void 0:(M=N.config)==null?void 0:(X=M.adPlacementConfig)==null?void 0:X.kind,renderer:(V=b[0])==null?void 0:V.renderer})}return n}D= +d.filter(NH);n.push.apply(n,g.x(Sya(r,D,a.B.get(),a.C,e,u)));if(!n.length){var fa,pa,Z,R;gy("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(fa=b[0])==null?void 0:(pa=fa.config)==null?void 0:(Z=pa.adPlacementConfig)==null?void 0:Z.kind,renderer:(R=b[0])==null?void 0:R.renderer})}return n}; +tAa=function(a,b,c,d,e,f){function h(r){return YB(a.Le.get(),r)} +var l=[];b=g.w(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&oAa(p)?(gy("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,FI),p=g.Q(p.linearAd,PH),hI(f,n,m.config.adPlacementConfig.kind),n=void 0,q=Wya((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ca.get(),a.Le.get()),q instanceof QB?gy(q):l.push.apply(l,g.x(q))): +q&&(!q.adLayoutMetadata&&pAa(q)||q.adLayoutMetadata&&qAa(q))&&(gy("Found AdNotify with LinearAdSequenceRenderer"),hI(f,n,m.config.adPlacementConfig.kind),n=void 0,p=dAa((n=g.Q(q.adStart,FI))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,FH(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ca.get()),p instanceof QB?gy(p):l.push.apply(l,g.x(p)))}return l}; +rAa=function(a,b,c,d,e,f,h,l,m,n,p){function q(D){return YB(a.Le.get(),D)} +var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,A=l.VX&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return jI(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.adsEngagementPanelRenderer;D=YB(a.Le.get(),D);return HI(M,X,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new zA(V),F,H,V.impressionPings,D,r.adsEngagementPanelRenderer.adLayoutLoggingData,N)}),[]; +if(r.adsEngagementPanelLayoutViewModel)return jI(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.adsEngagementPanelLayoutViewModel;D=YB(a.Le.get(),D);return II(M,X,"LAYOUT_TYPE_PANEL",new AA(V),F,H,D,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,N)}),[]; +if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Nya(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,y,d,q);jI(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.actionCompanionAdRenderer;D=YB(a.Le.get(),D);return HI(M,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new xA(V),F,H,V.impressionPings,D,r.actionCompanionAdRenderer.adLayoutLoggingData,N)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Oya(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,y,d,q); +jI(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.topBannerImageTextIconButtonedLayoutViewModel;D=YB(a.Le.get(),D);return II(M,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new yA(V),F,H,D,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,N)})}else if(r.imageCompanionAdRenderer)jI(b, +c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.imageCompanionAdRenderer; +D=YB(a.Le.get(),D);return HI(M,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new EA(V),F,H,V.impressionPings,D,r.imageCompanionAdRenderer.adLayoutLoggingData,N)}); +else if(r.bannerImageLayoutViewModel)jI(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.bannerImageLayoutViewModel;D=YB(a.Le.get(),D);return II(M,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new FA(V),F,H,D,r.bannerImageLayoutViewModel.adLayoutLoggingData,N)}); +else if(r.shoppingCompanionCarouselRenderer)jI(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,N){var M=a.j.get(),X=D.slotId,V=r.shoppingCompanionCarouselRenderer;D=YB(a.Le.get(),D);return HI(M,X,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new GA(V),F,H,V.impressionPings,D,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,N)}); +else if(r.adBreakServiceRenderer){if(!Lya(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return Kya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Jya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.rk)return new QB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Vb||gy("Received non-live cue point triggered AdBreakServiceRenderer", +void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Vb),clientPlaybackNonce:l.clientPlaybackNonce});uAa(a.rk,{adPlacementRenderer:c,contentCpn:d,Op:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ha)return new QB("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ha.get().getCurrentTimeSec(1,!1);return vAa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,y,f)}}else{if(r.clientForecastingAdRenderer)return Sza(a.B.get(), +a.j.get(),t,y,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return Wza(a.B.get(),a.j.get(),t,y,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return Uza(a.B.get(),a.j.get(),t,y,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return Lza(a.B.get(),a.j.get(),c,d,q,n,!a.Ca.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];hI(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!Aya(r.linearAdSequenceRenderer))return new QB("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds== +null)return new QB("Received invalid LinearAdSequenceRenderer.");if(g.Q(r.linearAdSequenceRenderer.adStart,FI)){gy("Found AdNotify in LinearAdSequenceRenderer");c=g.Q(r.linearAdSequenceRenderer.adStart,FI);if(!kya(c))return new QB("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return eAa(a.D.get(),a.B.get(),a.j.get(),a.Le.get(),t,y,c,FH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Ca.get())}return jAa(a.B.get(), +a.j.get(),t,y,r.linearAdSequenceRenderer.linearAds,FH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Ca.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];hI(b,r,u);return aza(a.B.get(),a.j.get(),t,y,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ca.get(),a.Le.get(),p)}if(r.instreamSurveyAdRenderer)return nAa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,y,d,q,EI(a.Ca.get(),"supports_multi_step_on_desktop")); +if(r.sandwichedLinearAdRenderer!=null)return Bya(r.sandwichedLinearAdRenderer)?g.Q(r.sandwichedLinearAdRenderer.adVideoStart,FI)?(gy("Found AdNotify in SandwichedLinearAdRenderer"),c=g.Q(r.sandwichedLinearAdRenderer.adVideoStart,FI),kya(c)?(f=g.Q(r.sandwichedLinearAdRenderer.linearAd,PH))?Xya(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Le.get(),y,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new QB("Missing IVAR from Sandwich"):new QB("Invalid AdMessageRenderer.")):jAa(a.B.get(),a.j.get(),t,y,[r.sandwichedLinearAdRenderer.adVideoStart, +r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new QB("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=EI(a.Ca.get(),"enable_h5_shorts_ad_terminal_events")&&l.Ck,Qza(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,y,d,e,l,q)}}return[]}; +JI=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.B=a;this.C=b;this.xf=d;this.Ha=e;this.Ca=f;this.Oa=h;this.Gc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ka()||c.get().removeListener(m)}); +d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ka()||d.get().removeListener(m)})}; +uAa=function(a,b){if(a.j)gy("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.w(a.xf.get().bN);for(var c=b.next();!c.done;c=b.next())wAa(a,a.j,c.value)}}; +wAa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Ca.get().J.U().zc()&&jG(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Ch.toFixed(3));$C(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=KI(a.Ca.get()),n=a.Oa;if(e.Ca.get().J.U().experiments.kb("enable_smearing_expansion_dai")){var p=g.ZB(e.Ca.get().J.U().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var q=g.ZB(e.Ca.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={fn:xAa(c),cC:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Ch;if(d===0)m.Vn=new lp(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Vn=t<=0?new lp(q*1E3,r*1E3):new lp(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={fn:xAa(c),cC:!1},r=c.startSecs+c.Ch,c.startSecs<=d?m=new lp((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new lp(Math.floor(d+ +Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Vn=m;f=fI(e,f,h,p,l,[new iB(c)]);e.Ca.get().J.U().experiments.kb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Vn.start/1E3-d,n=c.startSecs-d,(h=h.J.Vc())!=null&&(h=h.Xb(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=g.LI(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):jG(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Vn.start/1E3- +d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; +MI=function(a){var b,c=(b=SB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=SB(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=SB(a.Ba,"metadata_type_content_cpn"),f=SB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=SB(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=SB(a.Ba,"metadata_type_player_underlay_renderer"),m=SB(a.Ba,"metadata_type_ad_placement_config"),n=SB(a.Ba,"metadata_type_video_length_seconds"); +var p=MB(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?SB(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):MB(a.Ba,"metadata_type_layout_enter_ms")&&MB(a.Ba,"metadata_type_layout_exit_ms")?(SB(a.Ba,"metadata_type_layout_exit_ms")-SB(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Vq:d,contentCpn:e,XS:c,pO:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,hL:p,inPlayerLayoutId:SB(a.Ba,"metadata_type_linked_in_player_layout_id"), +inPlayerSlotId:SB(a.Ba,"metadata_type_linked_in_player_slot_id")}}; +zAa=function(a,b){return yAa(a,b)}; +AAa=function(a,b){b=yAa(a,b);if(!b)return null;var c;b.hL=(c=SB(a.Ba,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b}; +yAa=function(a,b){var c,d=(c=SB(a.Ba,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=ewa(a,b);return{u7:dwa(a,b),adPlacementConfig:SB(a.Ba,"metadata_type_ad_placement_config"),x7:c,contentCpn:SB(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:SB(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:SB(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:SB(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, +instreamAdPlayerUnderlayRenderer:void 0,hL:void 0,XS:d,Vq:a.layoutId,videoLengthSeconds:SB(a.Ba,"metadata_type_video_length_seconds")}}; +NI=function(a,b,c,d,e,f,h,l,m){g.O.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Le=h;this.Ca=l;this.Sa=m;this.ih=!0}; +BAa=function(a,b,c){return dza(a.j.get(),b.contentCpn,b.Vq,function(d){return eza(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Vq,YB(a.Le.get(),d))})}; +OI=function(a,b,c,d,e,f,h,l){g.O.call(this);this.B=a;this.j=b;this.C=c;this.Ca=d;this.D=e;this.Sa=f;this.Ha=h;this.Cc=l}; +PI=function(a){g.O.call(this);this.j=a}; +$C=function(a,b,c,d){a.j().Qg(b,d);c=c();a=a.j();a.Sb.RI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.w(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Sb.ek("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Sb.ek("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.rb(c.slotId))throw new QB("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(gC(e,c))throw new QB("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.oh.Tt.has(c.slotType))throw new QB("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.oh.Bv.has(c.slotType))throw new QB("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");xC(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);xC(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +c.slotFulfillmentTriggers);xC(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=sC(f,h);if(gC(f,c))throw new QB("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Yua(c));f.j.set(h,l)}catch(fa){fa instanceof QB&&fa.wl?(d.Sb.tm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",fa.wl,c),gy(fa,c,void 0,void 0,fa.Hw)):(d.Sb.tm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +c),gy(fa,c));break a}gC(d.j,c).K=!0;try{var m=d.j,n=gC(m,c),p=c.slotEntryTrigger,q=m.oh.zn.get(p.triggerType);q&&(q.Vl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Aa.set(p.triggerId,q));for(var r=g.w(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,y=m.oh.zn.get(u.triggerType);y&&(y.Vl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,y))}for(var A=g.w(c.slotExpirationTriggers),D=A.next();!D.done;D=A.next()){var F=D.value,H=m.oh.zn.get(F.triggerType);H&&(H.Vl("TRIGGER_CATEGORY_SLOT_EXPIRATION", +F,c,null),n.Y.set(F.triggerId,H))}var N=m.oh.Tt.get(c.slotType).get().build(m.C,c);n.N=N;var M=m.oh.Bv.get(c.slotType).get().build(m.G,c);M.init();n.B=M}catch(fa){fa instanceof QB&&fa.wl?(d.Sb.tm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",fa.wl,c),gy(fa,c,void 0,void 0,fa.Hw)):(d.Sb.tm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),gy(fa,c));dC(d,c,!0);break a}d.Sb.ek("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Rg(c);for(var X=g.w(d.B),V=X.next();!V.done;V= +X.next())V.value.Rg(c);jC(d,c)}}; +QI=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.C=b;this.Pc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ka()||d.get().removeListener(f)})}; +Eya=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.w(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof qH?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):gy("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new lp(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Pc.get().addCueRange(c,d.start,d.end,!1,a);cE(a.context.Ca.get())&&(b=d.start,d=d.end,e={},a.context.vk.Hk("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))}; +RI=function(){g.O.apply(this,arguments);this.ih=!0;this.pj=new Map;this.j=new Map}; +SI=function(a,b){a=g.w(a.pj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; +TI=function(a,b){a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}gy("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.rb(b)),layoutId:b})}; +CAa=function(){this.j=new Map}; +DAa=function(a,b){this.callback=a;this.slot=b}; +UI=function(){}; +EAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; +FAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0}; +GAa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c}; +VI=function(a){this.Ha=a}; +WI=function(a){g.O.call(this);this.NN=a;this.Wb=new Map}; +XI=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof CH&&f.triggeringLayoutId===b&&c.push(e)}c.length?pC(a.NN(),c):gy("Survey is submitted but no registered triggers can be activated.")}; +YI=function(a,b,c){WI.call(this,a);var d=this;this.Ca=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ka()||b.get().removeListener(d)})}; +ZI=function(a){g.O.call(this);this.j=a;this.ih=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; +$I=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; +aJ=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&pC(a.j(),c)}; +bJ=function(a,b,c){g.O.call(this);var d=this;this.j=a;this.context=c;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ka()||b.get().removeListener(d)})}; +cJ=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.Pc=b;this.Ha=c;this.Sa=d;this.context=e;this.ih=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ka()||c.get().removeListener(f)})}; +HAa=function(a,b,c,d,e,f,h,l,m,n){if(zF(a.Sa.get(),1).clientPlaybackNonce!==m)throw new QB("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{xE:new EH(b,c,d,e),CJ:f});a.Pc.get().addCueRange(f,h,l,n,a);cE(a.context.Ca.get())&&(m={},a.context.vk.Hk("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))}; +IAa=function(a,b){a=g.w(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;if(b===d.CJ)return c}return""}; +dJ=function(a,b){g.O.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ka()||b.get().removeListener(c)}); +var d;this.j=((d=b.get().Xw)==null?void 0:d.slotId)||null}; +JAa=function(a,b){var c=[];a=g.w(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; +eJ=function(a){g.O.call(this);this.j=a;this.ih=!0;this.Wb=new Map}; +aG=function(a,b,c){b=b.layoutId;for(var d=[],e=g.w(a.Wb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof tH){var h;if(h=f.trigger.layoutId===b){h=c;var l=Rua.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&pC(a.j(),d)}; +fJ=function(a){g.O.call(this);this.j=a;this.ih=!0;this.Wb=new Map}; +gJ=function(a){g.O.call(this);this.C=a;this.ih=!0;this.Wb=new Map;this.j=new Map;this.B=new Map}; +KAa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; +hJ=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; +LAa=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof gH&&e.trigger.slotId===b&&c.push(e);c.length>=1&&pC(a.j(),c)}; +MAa=function(a,b){var c={slotId:aD(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Za:"surface",Ba:new RB([])},d=Object,e=d.assign;b=HC(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"surface",Ba:new RB([]), +hc:Lua(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Za,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{r$:!0,slot:c,layout:b})}; +Iya=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={fn:new lp(-0x8000000000000,-0x8000000000000),cC:d},c!=null&&(d.Vn=new lp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={fn:new lp(0x7ffffffffffff,0x8000000000000),cC:d},c!=null&&(d.Vn=new lp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||gy("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +e.offsetEndMilliseconds||gy("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new QB("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={fn:new lp(a,e),cC:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Vn=new lp(a,e)}return d; +default:return new QB("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; +xAa=function(a){var b=a.startSecs*1E3;return new lp(b,b+a.Ch*1E3)}; +NAa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.w(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.w(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.Q(b.value,eI))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +iJ=function(a){this.Ca=a;this.B=new Map;this.j=new Map;this.C=new Map}; +aD=function(a,b){if(jJ(a.Ca.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.ov(16)}; +HC=function(a,b,c){if(jJ(a.Ca.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.ov(16)}; +sI=function(a,b){if(jJ(a.Ca.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.ov(16)}; +OAa=function(a){var b=[new aB(a.Vq),new eB(a.XS),new JA(a.adPlacementConfig),new jB(a.videoLengthSeconds),new yB(a.hL)];a.instreamAdPlayerOverlayRenderer&&b.push(new QA(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new RA(a.playerOverlayLayoutRenderer));a.pO&&b.push(new NA(a.pO));return b}; +PAa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:HC(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new oH(function(n){return sI(f, +n)},c.Vq)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:b,Ba:d,hc:e(h),adLayoutLoggingData:m}}; +kJ=function(a,b){var c=this;this.B=a;this.Ca=b;this.j=function(d){return sI(c.B.get(),d)}}; +eza=function(a,b,c,d,e,f){c=new RB([new SA(c),new JA(d)]);b=HC(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Db:new Map,layoutExitNormalTriggers:[new oH(function(h){return sI(a.B.get(),h)},e)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:c,hc:f(d),adLayoutLoggingData:void 0}}; +mI=function(a,b,c,d,e){var f=OAa(d);return PAa(b,c,d,new RB(f),e,a.B.get())}; +QAa=function(a,b,c,d,e){var f=OAa(d);f.push(new HA(d.u7));f.push(new IA(d.x7));return PAa(b,c,d,new RB(f),e,a.B.get())}; +HI=function(a,b,c,d,e,f,h,l,m,n){b=HC(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Za:"core"},q=new Map;h&&q.set("impression",h);h=[new rH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new nH(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Db:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([d,new JA(f),new aB(e)]),hc:l(p),adLayoutLoggingData:m}}; +II=function(a,b,c,d,e,f,h,l,m){b=HC(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Za:"core"},p=[new rH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new nH(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([d,new JA(f),new aB(e)]),hc:h(n),adLayoutLoggingData:l}}; +xI=function(a,b,c){var d=[];d.push(new sH(a.j,c));b&&d.push(b);return d}; +wI=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Za:"core"};return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new jH(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new DA(d),new JA(e)]),hc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; +vI=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Za:"core"};return{layoutId:b,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new oH(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new JA(d)].concat(g.x(h))),hc:e(m),adLayoutLoggingData:l}}; +zI=function(a,b,c,d){if(a.Ca.get().Te(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)gy("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; +Xza=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=yI(a,b,c,e,f,h,l,m,q,zI(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Tz;c=new bB(a.SL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new MA(n)),d=[]);b.push(new LA(p));return{Nf:{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:a.Za,Ba:new RB(b),hc:a.hc,adLayoutLoggingData:a.adLayoutLoggingData}, +Hm:d,nk:a.layoutExitMuteTriggers,Xz:a.layoutExitUserInputSubmittedTriggers,Wz:a.Yc,nf:a.nf}}; +aAa=function(a,b,c,d,e,f,h,l,m,n){b=yI(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,zI(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +a=new CH(a.j,b.SL);c=new bB(b.SL);n=new LA(n);return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:b.Za,Ba:new RB([].concat(g.x(b.Tz),[c,n])),hc:b.hc,adLayoutLoggingData:b.adLayoutLoggingData},Hm:b.layoutExitSkipTriggers,nk:b.layoutExitMuteTriggers,Xz:[].concat(g.x(b.layoutExitUserInputSubmittedTriggers),[a]),Wz:b.Yc,nf:b.nf}}; +yI=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:HC(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"adapter"};l=l(b);var q=SB(l.Ba,"metadata_type_fulfilled_layout");q||gy("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new JA(c),new zB(d),new CB(e)];q&&c.push(new cB(q.layoutType));p&&c.push(new pB(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:f,layoutExitNormalTriggers:[], +layoutExitSkipTriggers:[new vH(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"adapter",Tz:c,hc:h(n),adLayoutLoggingData:m,nf:l,SL:r}}; +bza=function(a,b,c,d,e,f,h,l,m,n,p){a=RAa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Yc:a.Yc,Za:a.Za,Ba:new RB(a.IX),hc:a.hc,adLayoutLoggingData:a.adLayoutLoggingData}}; +lAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=RAa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.IX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new MA(c.adPodSkipTarget)),d=[]);e.push(new LA(l.adPodIndex));c.isCritical&&(d=[new nH(a.j,b.layoutId,["error"])].concat(g.x(d)));return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:b.Za,Ba:new RB(e), +hc:b.hc,adLayoutLoggingData:b.adLayoutLoggingData},Hm:d,nk:b.layoutExitMuteTriggers,Xz:b.layoutExitUserInputSubmittedTriggers,Wz:b.Yc}}; +RAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Za:c};e=[new JA(e),new KA(m),new OA(d.externalVideoId),new PA(l),new CB({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new kB(f),new fB({current:null}),new jB(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new QA(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new RA(h)); +q&&e.push(new lB(q));(q=d.playerUnderlay)&&e.push(new SA(q));l=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:HC(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new bB(q));e.push(new dB(l));e.push(new pB(m.adPodIndex));d.adNextParams&&e.push(new BA(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new VA(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new CA(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new AB(d.legacyInfoCardVastExtension)); +d.sodarExtensionData&&e.push(new mB(d.sodarExtensionData));p&&e.push(new xB(p));e.push(new FB(iD(d.pings)));m=jD(d.pings);if(r){a:{r=g.w(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.Q(p.fulfillmentContent.fulfilledLayout,WH))&&(f=g.Q(f.renderingContent,VH))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new TA(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Db:m,layoutExitNormalTriggers:[new tH(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? +[new vH(a.j,q)]:[],layoutExitMuteTriggers:[new vH(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:c,IX:e,hc:n(t),adLayoutLoggingData:d.adLayoutLoggingData}}; +Nza=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return NB(p,[],["LAYOUT_TYPE_MEDIA"])})||gy("Unexpect subLayout type for DAI composite layout"); +b=HC(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Db:new Map,layoutExitNormalTriggers:[new pH(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Za:"core",Ba:new RB([new nB(c),new oB(l),new hB(d),new JA(e),new tB(f),new qB({}),new HB(m)]),hc:h(n)}}; +Iza=function(a){return a!=null}; +lJ=function(a,b,c){var d=this;this.B=a;this.C=b;this.Ca=c;this.j=function(e){return sI(d.B.get(),e)}}; +vAa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new QB("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new QB("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.w(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={fn:new lp(q,q+Number(n)),cC:!1,Vn:new lp(Math.floor(p+ +Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new LB({breakLengthMs:Number(n)}));h&&q.push(new qB({}));l.push(fI(a,b,e,p,f,q))}return l}; +fI=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=aD(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Vn&&d.Vn.start!==d.fn.start&&l.push(new qH(a.j,c,new lp(d.Vn.start,d.fn.start),!1));l.push(new qH(a.j,c,new lp(d.fn.start,d.fn.end),d.cC));d={getAdBreakUrl:b.getAdBreakUrl,iT:d.fn.start,hT:d.fn.end,cueProcessedMs:d.cueProcessedMs};b=new zH(a.j,h);f=[new vB(d)].concat(g.x(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new uH(a.j, +c),new xH(a.j,h),new yH(a.j,h)],Za:"core",Ba:new RB(f),adSlotLoggingData:e}}; +TAa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())d.push(SAa(a,b,e.value));return d}; +SAa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c}; +wza=function(a,b,c,d,e){return UAa(a,b,c,d,e)}; +Yza=function(a,b,c,d){var e=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");return UAa(a,e,b,c,d)}; +UAa=function(a,b,c,d,e){var f=new mH(a.j,c),h=[new wH(a.j,b)];a=[new xH(a.j,b),new uH(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}}; +mAa=function(a,b,c,d,e,f){var h=aD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=HC(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=mJ(a,b,c,d);var n=[new wH(a.j,h)];c=[new xH(a.j,h),new uH(a.j,c),new jH(a.j,m)];if(d instanceof QB)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.Z$;l=l.n$;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:BI(a,b,h,d),slotFulfillmentTriggers:CI(a,b,h,n),slotExpirationTriggers:c,Za:"core",Ba:new RB([new uB(f),new IB(DI(b)),new KB({Au:a.Au(b)})]),adSlotLoggingData:e},l]}; +DI=function(a){return a.kind==="AD_PLACEMENT_KIND_START"}; +cza=function(a,b,c,d,e){e=e?e:aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new mH(a.j,c);var f=[new wH(a.j,e)];a=[new uH(a.j,b),new xH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; +dza=function(a,b,c,d){var e=aD(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new mH(a.j,c);var f=[new wH(a.j,e)];a=[new uH(a.j,b),new xH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; +Vya=function(a,b,c,d,e,f,h){var l=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=HC(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=VAa(a,d,f,h,m);if(d instanceof QB)return d;h=[new wH(a.j,l)];e=[new uH(a.j,f),new wH(a.j,e),new BH(a.j,e)];c=YB(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Za:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +Db:new Map,layoutExitNormalTriggers:[new gya(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new iya(a.j,m,b.durationMs)],Yc:[new hya(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Za:"core",Ba:new RB([new BB(b)]),hc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new RB([new uB(b)])}}; +Vza=function(a,b,c,d,e,f){b=mJ(a,b,c,d);if(b instanceof QB)return b;var h=b instanceof qH?new dya(a.j,c,b.j):null;d=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new wH(a.j,d)];a=[new uH(a.j,c),new xH(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof PB?new QB(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a, +Za:"core",Ba:new RB([new uB(f)]),adSlotLoggingData:e}}; +Tza=function(a,b,c,d){var e=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new iH(a.j,b),h=[new AH(a.j,e)];a=[new uH(a.j,b),new xH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}}; +Cza=function(a,b,c,d){var e=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new mH(a.j,c);var f=[new wH(a.j,e)],h=[new xH(a.j,e),new uH(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new wH(a.j,e)],slotExpirationTriggers:[new uH(a.j,b),new xH(a.j,e)],Za:"core",Ba:new RB([new uB(d(f))])}}; +zza=function(a,b,c,d,e){var f=aD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new lH(a.j,d,c);d=[new wH(a.j,f)];a=[new uH(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}}; +Rya=function(a,b,c,d,e,f){var h=aD(a.B.get(),b);return nJ(a,h,b,new mH(a.j,d),[new uH(a.j,c),new xH(a.j,h),new nH(a.j,d,["error"])],e,f)}; +Qya=function(a,b,c,d,e,f,h){var l=aD(a.B.get(),b);return nJ(a,l,b,new nH(a.j,e,["normal"]),[new uH(a.j,c),new xH(a.j,l),new nH(a.j,d,["error"])],f,h)}; +Mya=function(a,b,c,d,e){var f=aD(a.B.get(),b);return nJ(a,f,b,new iH(a.j,c),[new uH(a.j,c),new xH(a.j,f)],d,e)}; +Pza=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=aD(a.B.get(),c);b=new iH(a.j,b);var h=[new wH(a.j,f)];a=[new xH(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(e({slotId:f,slotType:c,slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}}; +Jza=function(a,b,c,d){var e=aD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new aya(a.j),h=[new AH(a.j,e)];b=[new uH(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ca.get();return!g.mC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5")||g.mC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Za:"core",Ba:new RB([new uB(d(l)),new qB({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Za:"core",Ba:new RB([new uB(d(l)),new qB({})])}}; +hAa=function(a,b){return sAa(a.Ca.get())?new nH(a.j,b,["normal","error","skipped"]):new nH(a.j,b,["normal"])}; +Zya=function(a,b,c,d,e){b=hAa(a,b);a=AI(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Za:a.Za});return e instanceof QB?e:{Dy:Object.assign({},a,{Ba:new RB([new uB(e.layout)]),adSlotLoggingData:d}),pg:e.pg}}; +$ya=function(a,b,c,d,e,f,h){c=iAa(a,b,c,d);if(c instanceof QB)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Za:c.Za});if(h instanceof QB)return h;d=[new IB(DI(b)),new uB(h.layout),new KB({Au:a.Au(b)})];f&&d.push(new DB({}));return{Dy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:BI(a, +b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:CI(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Za:c.Za,Ba:new RB(d),adSlotLoggingData:e},pg:h.pg}}; +BI=function(a,b,c,d){return a.Ca.get().Te(DI(b))?new gH(a.j,c):d}; +CI=function(a,b,c,d){return a.Ca.get().Te(DI(b))?[new AH(a.j,c)]:d}; +AI=function(a,b,c){var d=aD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new wH(a.j,d)];a=[new xH(a.j,d),new uH(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Za:"core"}}; +iAa=function(a,b,c,d){b=mJ(a,b,c,d);return b instanceof QB?b:AI(a,b,c)}; +Rza=function(a,b,c,d,e,f){var h=aD(a.B.get(),"SLOT_TYPE_FORECASTING");b=mJ(a,b,c,d);if(b instanceof QB)return b;d=[new wH(a.j,h)];a=[new xH(a.j,h),new uH(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Za:"core",Ba:new RB([new uB(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}}; +WAa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new iH(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Iya(b,d),a instanceof QB?a:e(a.fn,f);case "AD_PLACEMENT_KIND_END":return new kH(a.j,c,f);default:return new QB("Cannot construct entry trigger",{kind:b.kind})}}; +VAa=function(a,b,c,d,e){return WAa(a,b,c,d,function(f,h){return new cya(a.j,c,f,h,e)})}; +mJ=function(a,b,c,d){return WAa(a,b,c,d,function(e,f){return new qH(a.j,c,e,f)})}; +nJ=function(a,b,c,d,e,f,h){a=[new AH(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Za:"core",Ba:new RB([new uB(h({slotId:b,slotType:c,slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}}; +oJ=function(a,b){g.O.call(this);this.Ca=a;this.j=b;this.eventCount=0}; +pJ=function(a,b,c,d){oJ.call(this,a,b);this.Ca=a;this.Sa=c;this.context=d}; +qJ=function(){this.j=new Map}; +rJ=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; +xJ=function(a){g.O.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!XAa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);sJ=new Uint8Array(256);tJ=rJ(256);uJ=rJ(256);vJ=rJ(256);wJ=rJ(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;sJ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;tJ[f]=b<<24|e<<16|e<<8|h;uJ[f]=h<<24|tJ[f]>>>8;vJ[f]=e<<24|uJ[f]>>>8;wJ[f]=e<<24|vJ[f]>>>8}XAa=!0}e=rJ(44);for(c= +0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(sJ[a>>16&255]^d)<<24|sJ[a>>8&255]<<16|sJ[a&255]<<8|sJ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; +yJ=function(a,b){for(var c=0;c<4;c++)a.counter[c]=b[c*4]<<24|b[c*4+1]<<16|b[c*4+2]<<8|b[c*4+3];a.j=16}; +YAa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=tJ[c>>>24]^uJ[d>>16&255]^vJ[e>>8&255]^wJ[f&255]^b[n++],l=tJ[d>>>24]^uJ[e>>16&255]^vJ[f>>8&255]^wJ[c&255]^b[n++],m=tJ[e>>>24]^uJ[f>>16&255]^vJ[c>>8&255]^wJ[d&255]^b[n++],f=tJ[f>>>24]^uJ[c>>16&255]^vJ[d>>8&255]^wJ[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=sJ[c>>>24]^h>>>24;a[1]=sJ[d>>16&255]^h>>16&255;a[2]=sJ[e>>8&255]^ +h>>8&255;a[3]=sJ[f&255]^h&255;h=b[41];a[4]=sJ[d>>>24]^h>>>24;a[5]=sJ[e>>16&255]^h>>16&255;a[6]=sJ[f>>8&255]^h>>8&255;a[7]=sJ[c&255]^h&255;h=b[42];a[8]=sJ[e>>>24]^h>>>24;a[9]=sJ[f>>16&255]^h>>16&255;a[10]=sJ[c>>8&255]^h>>8&255;a[11]=sJ[d&255]^h&255;h=b[43];a[12]=sJ[f>>>24]^h>>>24;a[13]=sJ[c>>16&255]^h>>16&255;a[14]=sJ[d>>8&255]^h>>8&255;a[15]=sJ[e&255]^h&255}; +BJ=function(){if(!zJ&&!g.Nt){if(AJ)return AJ;var a;AJ=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=AJ)==null?0:b.importKey)&&((c=AJ)==null?0:c.sign)&&((d=AJ)==null?0:d.encrypt))return AJ;AJ=void 0}}; +g.CJ=function(a){this.D=a}; +g.DJ=function(a){this.B=a}; +EJ=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; +ZAa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,u,y=0;y<64;)y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=q+FJ[y]+u+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= +d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=p+FJ[y]+u+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=n+FJ[y]+u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ +~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=m+FJ[y]+u+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,m=e+r,e=r+t,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= +l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; +aBa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;$Aa(a);return b}; +$Aa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; +bBa=function(a){this.j=a}; +cBa=function(a,b,c){a=new EJ(a.j);a.update(b);a.update(c);b=aBa(a);a.update(a.G);a.update(b);b=aBa(a);a.reset();return b}; +dBa=function(a){this.B=a}; +eBa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j){l.Ia(2);break}return g.G(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.G(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; +fBa=function(a,b,c){a.C||(a.C=new bBa(a.B));return cBa(a.C,b,c)}; +gBa=function(a,b,c){var d,e;return g.J(function(f){if(f.j==1){d=BJ();if(!d)return f.return(fBa(a,b,c));g.va(f,3);return g.G(f,eBa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.xa(f);g.Cw(e);zJ=!0;return f.return(fBa(a,b,c))})}; +GJ=function(){var a=hBa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=vma.apply(null,[wma.apply(null,g.x(b))].concat(g.x(c)));this.store=yma(a,void 0,b)}; +g.HJ=function(a,b,c){for(var d=Object.assign({},a),e=g.w(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.x(h),g.x(l)):l;else if(!Array.isArray(l)&&g.Qa(l)&&!Array.isArray(h)&&g.Qa(h))d[f]=g.HJ(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.Ks("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,ipa:h,updateValue:l}),g.Bw(b), +a}return d}; +IJ=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; +iBa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; +JJ=function(a,b){b=g.w(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; +KJ=function(a,b,c){return a.split(b).xn.split(c).EK}; +LJ=function(a){a.D=void 0;a.B=0;a.C=0}; +MJ=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; +jBa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; +kBa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!MJ(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);LJ(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; +NJ=function(a,b,c){a=kBa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; +OJ=function(a,b,c){a=NJ(a,b===void 0?0:b,c===void 0?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c>10;f=56320|f&1023}TJ[e++]=f}}f=String.fromCharCode.apply(String,TJ); +e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")}; +WJ=function(a,b){var c;if((c=VJ)==null?0:c.encodeInto)return b=VJ.encodeInto(a,b),b.read>6|192:((e&64512)===55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; +XJ=function(a){if(VJ)return VJ.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=WJ(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; +YJ=function(a){this.j=a;this.pos=0;this.B=-1}; +ZJ=function(a){var b=PJ(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=PJ(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; +$J=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=ZJ(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:ZJ(a);break;case 1:a.pos+=8;break;case 2:d=ZJ(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; +aK=function(a,b){if($J(a,b))return ZJ(a)}; +bK=function(a,b){if($J(a,b))return!!ZJ(a)}; +cK=function(a,b){if($J(a,b)){b=ZJ(a);var c=NJ(a.j,a.pos,b);a.pos+=b;return c}}; +dK=function(a,b){if(a=cK(a,b))return g.UJ(a)}; +eK=function(a,b,c){if(a=cK(a,b))return c(new YJ(new IJ([a])))}; +fK=function(a,b){for(var c=[];$J(a,b);)c.push(ZJ(a));return c.length?c:void 0}; +gK=function(a,b,c){for(var d=[],e;e=cK(a,b);)d.push(c(new YJ(new IJ([e]))));return d.length?d:void 0}; +hK=function(a,b){a=a instanceof Uint8Array?new IJ([a]):a;return b(new YJ(a))}; +nBa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a}; +oBa=function(a,b){this.wd=b;this.pos=0;this.B=[];this.j=nBa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; +iK=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c268435455){iK(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(iK(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; +kK=function(a,b,c){c!==void 0&&(jK(a,b*8),jK(a,c))}; +lK=function(a,b,c){c!==void 0&&kK(a,b,c?1:0)}; +mK=function(a,b,c){c!==void 0&&(jK(a,b*8+2),b=c.length,jK(a,b),iK(a,b),a.j.set(c,a.pos),a.pos+=b)}; +nK=function(a,b,c){c!==void 0&&(pBa(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),iK(a,c.length*1.2),b=WJ(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(iK(a,b),b=WJ(c,a.j.subarray(a.pos))),a.pos+=b,qBa(a))}; +pBa=function(a,b,c){c=c===void 0?2:c;jK(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; +qBa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; +oK=function(a,b,c,d,e){c&&(pBa(a,b,e===void 0?3:e),d(a,c),qBa(a))}; +g.pK=function(a,b,c){c=new oBa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; +g.qK=function(a){var b=new YJ(new IJ([Se(decodeURIComponent(a))]));a=dK(b,2);b=aK(b,4);var c=rBa[b];if(typeof c==="undefined")throw a=new g.Ks("Failed to recognize field number",{name:"EntityKeyHelperError",wna:b}),g.Bw(a),a;return{C8:b,entityType:c,entityId:a}}; +g.rK=function(a,b){var c=new oBa;mK(c,2,XJ(a));a=sBa[b];if(typeof a==="undefined")throw b=new g.Ks("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Bw(b),b;kK(c,4,a);kK(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Qe(b))}; +sK=function(a,b,c,d){if(d===void 0)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; +tBa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.HJ(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; +uBa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.Bw(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.Bw(new g.Ks("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.wc(e.payload); +return sK(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.qK(e).entityType;l=sK(d,m,e);break a}catch(q){if(q instanceof Error){g.Bw(new g.Ks("Failed to deserialize entity key",{entityKey:e,KS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.Bw(new g.Ks("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.wc(e.payload);var n,p;return tBa(d,l,e.entityKey, +e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a); +case "REPLACE_ENTITY":var c=b.payload;return sK(a,c.entityType,c.key,c.B8);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return sK(h,e,l,f[l])},d)},a); +case "UPDATE_ENTITY":return c=b.payload,tBa(a,c.entityType,c.key,c.B8,c.Toa);default:return a}}; +tK=function(a,b,c){return a[b]?a[b][c]||null:null}; +vK=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); +e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(uK)?e.replace(",","\u00a0"):f.includes(uK)?e.replace(",","\u202f"):h.includes(uK)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(uK)||d)&&c<10?vBa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=vBa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(uK)&&(c=".");return b.join(c)}; +vBa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +wBa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;ca}; +NBa=function(a,b){MBa(a.program,b.Dda)&&(Tz("bg_i",void 0,"player_att"),g.JK.initialize(a,function(){Tz("bg_l",void 0,"player_att");IK=(0,g.rt)()},b.cspNonce))}; +OBa=function(a){a=a===void 0?{}:a;return g.JK.invoke(a)}; +MBa=function(a,b){return a?g.JK.isLoading()?!1:LBa(b):!1}; +PBa=function(a){a=a.split("");KK.pU(a,4);KK.pU(a,56);KK.ND(a,3);KK.CO(a,40);KK.pU(a,4);KK.ND(a,3);KK.CO(a,78);KK.ND(a,1);KK.pU(a,20);return a.join("")}; +g.LK=function(a,b){return a.Fa+"timedtext_video?ref=player&v="+b.videoId}; +g.QBa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.JK.isInitialized()){var d="";b.videoData&&b.videoData.zr&&(d=b.videoData.zr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);Tz("bg_v",void 0,"player_att");(d=OBa(d))?(Tz("bg_s",void 0,"player_att"),c.push("r1a="+d)):(Tz("bg_e",void 0,"player_att"),c.push("r1c=2"))}else Tz("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.JK.getState()); +return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^iA())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Hq("CATSTAT",0)))},a); +this.videoData&&this.videoData.zr?this.Br=Tq(this.videoData.zr):this.Br={}}; +g.RBa=function(a){if(a.videoData&&a.videoData.zr){for(var b=[a.videoData.zr],c=g.w(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.Br[d]&&a.j[d]&&(d=a.j[d](a.Br))&&b.push(d);return b.join("&")}return null}; +g.MK=function(a,b){NBa(a,{Dda:g.ZB(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; +SBa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3}; +NK=function(a){a=a===void 0?2592E3:a;if(a>0&&!(Pna()>(0,g.rt)()-a*1E3))return 0;a=g.ys("yt-player-quality");if(typeof a==="string"){if(a=g.rE[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0}; +OK=function(){var a=g.ys("yt-player-proxima-pref");return a==null?null:a}; +TBa=function(){var a=g.ys("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.xs("yt-player-performance-cap",d,c?2592E3:604800))}; +WBa=function(a,b){b=b===void 0?!0:b;var c=PK();return b?+c[a]||8192:c[a]}; +PK=function(){return g.ys("yt-player-performance-cap")||{}}; +QK=function(){var a;return(a=g.ys("yt-player-performance-cap-active-set"))!=null?a:[]}; +XBa=function(a){(a===void 0?0:a)?(a=QK().filter(function(b){return b.startsWith("1")}),g.xs("yt-player-performance-cap-active-set",a,2592E3)):g.xs("yt-player-performance-cap-active-set",[],2592E3)}; +YBa=function(a){g.xs("yt-player-watch-later-pending",a)}; +ZBa=function(){return!!g.ys("yt-player-headers-readable")}; +$Ba=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}}; +g.RK=function(){var a=g.ys("yt-player-caption-language-preferences");return a?a:[]}; +cCa=function(a,b){oK(a,2,b.Cr,SK,3);oK(a,3,b.VQ,aCa,3);mK(a,4,b.onesieUstreamerConfig);mK(a,9,b.qp);oK(a,10,b.IC,TK,3);oK(a,15,b.reloadPlaybackParams,bCa,3)}; +eCa=function(a,b){oK(a,1,b.formatId,UK,3);kK(a,2,b.startTimeMs);kK(a,3,b.durationMs);kK(a,4,b.vn);kK(a,5,b.Zi);oK(a,9,b.Nma,dCa,3);oK(a,11,b.mpa,VK,1);oK(a,12,b.PS,VK,1)}; +fCa=function(a,b){nK(a,1,b.videoId);kK(a,2,b.lmt)}; +dCa=function(a,b){if(b.aX)for(var c=0;c>31));kK(a,16,b.B$);kK(a,17,b.detailedNetworkType);kK(a,18,b.Q7);kK(a,19,b.P7);kK(a,21,b.Hea);kK(a,23,b.G7);kK(a,28,b.ZS);kK(a,29,b.Xea);kK(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(jK(a,285),iK(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}kK(a,36,b.t8); +oK(a,38,b.mediaCapabilities,hCa,3);kK(a,39,b.Wea);kK(a,40,b.ax);kK(a,44,b.playerState);lK(a,46,b.q8);kK(a,48,b.Qy);kK(a,50,b.Nw);kK(a,51,b.bz);kK(a,54,b.Jq);lK(a,56,b.eaa);kK(a,57,b.V7);lK(a,58,b.Vo);kK(a,59,b.xj);kK(a,60,b.gy);lK(a,61,b.isPrefetch);kK(a,62,b.Uz);mK(a,63,b.sabrLicenseConstraint);kK(a,64,b.D$);kK(a,66,b.C$);kK(a,67,b.Voa);kK(a,68,b.S$)}; +hCa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c>31));nK(a,2,b.message)}; +pCa=function(a,b){kK(a,1,b.clientState);oK(a,2,b.Xoa,nCa,1)}; +mCa=function(a,b){mK(a,1,b.gda);oK(a,2,b.fda,oCa,3);oK(a,3,b.coldStartInfo,pCa,3)}; +lCa=function(a,b){kK(a,1,b.type);mK(a,2,b.value)}; +kCa=function(a,b){nK(a,12,b.deviceMake);nK(a,13,b.deviceModel);kK(a,16,b.clientName);nK(a,17,b.clientVersion);nK(a,18,b.osName);nK(a,19,b.osVersion)}; +qCa=function(a,b){nK(a,1,b.name);nK(a,2,b.value)}; +rCa=function(a,b){nK(a,1,b.url);if(b.NQ)for(var c=0;c1&&(this.G=a[1]==="2")}; +aL=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.tb=e===void 0?0:e}; +cL=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!bL||a.tb===b.tb)}; +g.dL=function(a,b,c,d){return new aL(g.rE[a]||0,g.rE[b]||0,c,d)}; +eL=function(a){if(bL&&a.tb)return!1;var b=g.rE.auto;return a.B===b&&a.j===b}; +gL=function(a){return fL[a.j||a.B]||"auto"}; +dDa=function(a,b){b=g.rE[b];return a.B<=b&&(!a.j||a.j>=b)}; +hL=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; +iL=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.w(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Yb||a.has(d.Yb.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.Yb,itag:d.itag,xtag:d.j,lang:((e=d.Yb)==null?void 0:e.name)||"",langid:((f=d.Yb)==null?void 0:f.id)||""})}else e=new g.$K(d.id,d.Yb),a.add(d.Yb.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}}; +jL=function(){g.O.apply(this,arguments);this.j=null}; +hDa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(kL(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.rb]=[a.info]);return n}p=eDa(b,d,l);f&&e({aftsrt:lL(p)});for(var q={},r=g.w(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.w(p[t]),y=u.next();!y.done;y=u.next()){y=y.value;var A=y.itag,D=void 0,F=t+"_"+(((D=y.video)==null?void 0:D.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(y):l[A]=q[F]:(D=mL(b,y,c,d.isLive,m),D!==!0?(h.add(t),l[A]=D, +D==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(y),q[F]=!0))}}f&&e({bfflt:lL(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].yg()&&(n[d]=n[d],n[d]=fDa(b,n[d],l),n[d]=gDa(n[d],l)));f&&e(l);b=g.w(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.f2;f&&e({aftflt:lL(n)});a.j=g.tc(n,function(N){return!!N.length}); +return a.j}; +jDa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Rc&&h&&h.length>1&&!(b.xj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=eDa(b,d),q=[],r=[],t={},u=0;u0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(D){return D})); +if(A.length&&!b.Vo){pL(A,p);if(m){m=[];b=g.w(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return wr(new iL(A,a,n))}A=sDa(b);A=g.Mb(A,l);if(!A){if(q[h])return f=q[h],pL(f),wr(new iL(f,a,n));m&&f({novideo:1});return vr()}b.yc&&(A==="1"||A==="1h")&&q[c]&&(h=qL(q[A]),p=qL(q[c]),p>h?A=c:b.Cd&&p===h&&tDa(q[c])&&(A=c));A==="9"&&q.h&&qL(q.h)>qL(q["9"])&&(A="h");b.Jb&&d.isLive&&A==="("&&q.H&&qL(q["("])<1440&&(A="H");m&&f({vfmly:rL(A)});b=q[A];if(!b.length)return m&&f({novfmly:rL(A)}), +vr();pL(b);return wr(new iL(b,a,n))}; +lDa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; +tDa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&uDa.has(b.itag))return!0;return!1}; +rL=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; +lL=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(rL(d));d=g.w(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; +kDa=function(a,b,c,d,e,f){var h={},l={};g.sc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Ab&&p.rb==="(h"&&f.yb)return l[q]="lichdr",!1;if(p.rb==="("||p.rb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!sL(a,tL.CRYPTOBLOCKFORMAT)&&!a.Ga||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]? +"unspt":"noflv":"nosys",!1)}); +m.length&&(h[n]=m)}); +d&&Object.entries(l).length&&e(l);return h}; +gDa=function(a,b){var c=rl(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity); +c32||d.video.widtha.K)return"max"+a.K;if(a.fb&&b.rb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.rb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&BE(b)&&!a.Ra)return"blk51live";if((b.rb==="MAC3"||b.rb==="mac3")&&!a.D)return"blkac3";if((b.rb==="MEAC3"||b.rb==="meac3")&&!a.G)return"blkeac3";if((b.rb==="M"||b.rb==="m")&&!a.ra)return"blkaac51";if((b.rb=== +"so"||b.rb==="sa")&&!a.Aa)return"blkamb";if(!a.Ab&&b.le&&b.le.fairplay&&(b.rb==="("||b.rb==="(h"||b.rb==="A"||b.rb==="MEAC3"))return"cbc";if(b.rb==="i"&&!a.Kb)return"blkiamf";var f,h;if(a.Ya&&(b.rb==="1"||b.rb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.Ya)return"av1cap";if((d=c.C.get(b.rb))&&d.f2>0)return e.add(b.rb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Fa&&!sL(c,tL.FRAMERATE))return"capHfr";if(a.Xa&&b.video.j>=4320)return"blk8khfr";if(xE(b)&&a.Sd&&b.le&& +b.video.j>=1440)return"disablevp9hfr"}if(a.tb&&b.tb>a.tb)return"ratecap";a=vDa(c,b);return a!==!0?a:!0}; +pL=function(a,b){b=b===void 0?[]:b;g.ac(a,function(c,d){var e=d.tb-c.tb;if(!c.yg()||!d.yg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.rb)+1,d=b.indexOf(d.rb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})}; +g.uL=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""}; +wL=function(a){vL(a);return a.C}; +xL=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"}; +wDa=function(a){vL(a);return g.vc(a.j,function(b){return b!==null})}; +yL=function(a){vL(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]}; +zL=function(a,b){b=b===void 0?!1:b;vL(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Be();c=new g.Zj(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.bk(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.uL(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")? +(g.bk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.bk(c,"www.youtube.com"),d=c.toString()):(c=sva(d),LC(c)&&(d=c));c=new g.uL(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c}; +vL=function(a){if(a.B){if(!LC(a.B)&&!a.B.startsWith("local"))throw new g.Ks("Untrusted URL",a.B);var b=g.ik(a.B);a.scheme=b.G;a.C=b.j+(b.C!=null?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=xDa(c);Object.assign(a.j, +yDa(b.D.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b="nn"[+a.D],vL(a),c=a.j[b]||null)&&(c=zDa[0](c),a.set(b,c),zDa.length||Ema(""))}}; +ADa=function(a){vL(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(wDa(a)){var c=[];g.sc(a.j,function(d,e){d!==null&&c.push(e+"="+d)}); +b+="?"+c.join("&")}return b}; +xDa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b0?BDa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b}; +BDa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c}; +AL=function(a){var b=g.Q(a,CDa)||a.signatureCipher;a={pZ:!1,AE:"",VH:"",s:""};if(!b)return a;b=Tq(b);a.pZ=!0;a.AE=b.url;a.VH=b.sp;a.s=b.s;return a}; +BL=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Lg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Lg=m||null}; +g.CL=function(){this.segments=[];this.j=null;this.B=!0;this.C=""}; +DDa=function(a,b){if(b>a.qd())a.segments=[];else{var c=Lb(a.segments,function(d){return d.Pa>=b},a); +c>0&&a.segments.splice(0,c)}}; +DL=function(a,b,c,d,e){e=e===void 0?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j}; +EL=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; +FL=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; +GL=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; +HL=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; +IL=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b}; +JL=function(a,b){b=b===void 0?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=EL(a)<<16|FL(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=HL(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}}; +SL=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.QL(a,0,1836476516))?g.RL(a):NaN}; +ODa=function(a){var b=g.QL(a,0,1937011556);if(!b)return null;b=TL(a,b.dataOffset+8,1635148593)||TL(a,b.dataOffset+8,1635135537);if(!b)return null;var c=TL(a,b.dataOffset+78,1936995172),d=TL(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),EL(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=TL(a,d.dataOffset,1886547818)){var h=TL(a,d.dataOffset,1886546020),l=TL(a,d.dataOffset,2037673328);if(!l&&(l=TL(a,d.dataOffset,1836279920), +!l))return null;h&&(h.skip(4),c=GL(h)/65536,f=GL(h)/65536,e=GL(h)/65536);a=EDa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new MDa(b,c,f,e,a)}return null}; +TL=function(a,b,c){for(;UL(a,b);){var d=VL(a,b);if(d.type===c)return d;b+=d.size}return null}; +g.QL=function(a,b,c){for(;UL(a,b);){var d=VL(a,b);if(d.type===c)return d;b=WL(d.type)?b+8:b+d.size}return null}; +g.XL=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b}; +VL=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new DL(a,b,c,d)}; +g.RL=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)}; +PDa=function(a){a=new DL(a.data,a.offset,a.size,a.type,a.B);var b=EL(a);a.skip(7);var c=HL(a);if(b===0){b=HL(a);var d=HL(a)}else b=IL(a),d=IL(a);a.skip(2);for(var e=FL(a),f=[],h=[],l=0;l122)return!1}return!0}; +WL=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768}; +QDa=function(a){a.skip(4);return{cea:JL(a,0),value:JL(a,0),Vs:HL(a),qpa:HL(a),lna:HL(a),id:HL(a),U_:JL(a),offset:a.offset}}; +g.RDa=function(a){var b=TL(a,0,1701671783);if(!b)return null;var c=QDa(b),d=c.cea;c=PL(c.U_);if(a=TL(a,b.offset+b.size,1701671783))if(a=QDa(a),a=PL(a.U_),c&&a){b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new NL(c,d):null}; +YL=function(a,b){for(var c=TL(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=TL(a,c.offset+c.size,b)}}; +g.ZL=function(a,b){for(var c=0,d=[];UL(a,c);){var e=VL(a,c);e.type===b&&d.push(e);c=WL(e.type)?c+8:c+e.size}return d}; +SDa=function(a,b){var c=g.QL(a,0,1937011556),d=g.QL(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.QL(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new FDa(a.byteLength+b);KL(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;KL(d,a,c.offset+16,c.size-16);KL(d,e,e.byteOffset+f.dataOffset+8,b);KL(d,a,c.offset+c.size,a.byteLength- +(c.offset+c.size));c=g.w([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.QL(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.QL(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data}; +TDa=function(a){var b=g.QL(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=TL(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=TL(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=TL(a,b.offset+8,1935894633);if(!b)return null;b=TL(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c}; +$L=function(a,b){this.j=a;this.pos=0;this.start=b||0}; +aM=function(a){return a.pos>=a.j.byteLength}; +fM=function(a,b,c){var d=new $L(c);if(!bM(d,a))return!1;d=cM(d);if(!dM(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=eM(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?UDa(d-9,8):UDa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;bc;e++)c=c*256+kM(a),d*=128;return b?c-d:c}; +hM=function(a){var b=eM(a,!0);a.pos+=b}; +XDa=function(a){if(!dM(a,440786851,!0))return null;var b=a.pos;eM(a,!1);var c=eM(a,!0)+a.pos-b;a.pos=b+c;if(!dM(a,408125543,!1))return null;eM(a,!0);if(!dM(a,357149030,!0))return null;var d=a.pos;eM(a,!1);var e=eM(a,!0)+a.pos-d;a.pos=d+e;if(!dM(a,374648427,!0))return null;var f=a.pos;eM(a,!1);var h=eM(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295); +l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l}; +lM=function(a){var b=a.pos;a.pos=0;var c=1E6;bM(a,[408125543,357149030,2807729])&&(c=gM(a));a.pos=b;return c}; +YDa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!mM(a)||!dM(a,160))return a.pos=c,NaN;eM(a,!0);var d=a.pos;if(!dM(a,161))return a.pos=c,NaN;eM(a,!0);kM(a);var e=kM(a)<<8|kM(a);a.pos=d;if(!dM(a,155))return a.pos=c,NaN;d=gM(a);a.pos=c;return(e+d)*b/1E9}; +mM=function(a){if(!ZDa(a)||!dM(a,524531317))return!1;eM(a,!0);return!0}; +ZDa=function(a){if(a.Fo()){if(!dM(a,408125543))return!1;eM(a,!0)}return!0}; +bM=function(a,b){for(var c=0;c0){var d=yDa(b.substr(c+1));g.sc(d,function(e,f){this.set(f,e)},a); +b=b.substr(0,c)}b=xDa(b);g.sc(b,function(e,f){this.set(f,e)},a)}; +aEa=function(a){var b=a.base.Be(),c=[];g.sc(a.j,function(e,f){c.push(f+"="+e)}); +if(!c.length)return b;var d=c.join("&");a=wDa(a.base)?"&":"?";return b+a+d}; +oM=function(a,b){var c=new g.uL(b);(b=c.get("req_id"))&&a.set("req_id",b);g.sc(a.j,function(d,e){c.set(e,null)}); +return c}; +bEa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0}; +pM=function(a){a.G=(0,g.rt)();a.started=0;a.timedOut=0;a.j=0}; +cEa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)}; +qM=function(a,b){a[b]||(a[b]=new bEa);return a[b]}; +rM=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()}; +tM=function(a,b,c){a=b?sM(a,c):a.j;return new nM(a)}; +sM=function(a,b){b=b?b.ym:!1;a.D||(a.D=zL(a.C,b));return a.D}; +uM=function(a,b,c){return wL(b?sM(a,c):a.j)}; +vM=function(a,b,c){c=qM(c,uM(a,a.Yj(b,c),b));b=Math.max(a.G,c.timedOut)+b.nD*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.rt)()}; +dEa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)}; +eEa=function(a,b,c,d,e){++a.B;b&&++a.G;wL(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.lD&&delete e[wL(a.j)])}; +wM=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new rM(a)}; +xM=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; +yM=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new xM(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a}; +zM=function(a,b){return new xM(a,a+b-1)}; +fEa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}}; +AM=function(a){if(!a)return new xM(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new xM(b,a),b.length>0))return b}; +BM=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Tj=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Pa=-1;this.uO=this.K=0;this.C=d;this.Pa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Ub=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Re=this.range?this.Ub+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.Ue=this.startTime+this.duration*this.Ub/this.range.length,this.D=this.duration*this.B/this.range.length, +this.Mf=this.Ue+this.D):gEa(this)}; +gEa=function(a){a.Ue=a.startTime;a.D=a.duration;a.Mf=a.Ue+a.D}; +hEa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ub+b.B===a.Ub+a.B:d}; +CM=function(a){return a.type===1||a.type===2}; +DM=function(a){return a.type===3||a.type===6}; +EM=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ub+a.B===b.range.start+b.Ub:a.Pa===b.Pa?a.Ub+a.B===b.Ub:a.Pa+1===b.Pa&&b.Ub===0&&a.Re:!1}; +iEa=function(a,b){return EM(a,b)||Math.abs(a.Mf-b.Ue)<=1E-6||a.Pa+1===b.Pa&&b.Ub===0&&a.Re?!0:!1}; +FM=function(a){return a.Pa+(a.Re?1:0)}; +jEa=function(a){a.length===1||g.ql(a,function(c){return!!c.range}); +for(var b=1;b=b.range.start+b.Ub&&a.range.start+a.Ub+a.B<=b.range.start+b.Ub+b.B:a.Pa===b.Pa&&a.Ub>=b.Ub&&(a.Ub+a.B<=b.Ub+b.B||b.Re)}; +tHa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.hg()?(a=a.j.kC(a),sm(a,function(c){return tHa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Ub+b.B>a.Ub&&b.Ub+b.B<=a.Ub+a.B}; +HM=function(a,b){var c=b.Pa;a.C="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.K,a.duration=b.duration,gEa(a)}; +IM=function(a,b){var c=this;this.gb=a;this.D=this.j=null;this.G=this.gh=NaN;this.Yj=this.requestId=null;this.hd={ooa:function(){return c.range}}; +this.resource=a[0].j.resource;this.B=b||"";this.gb[0].range&&this.gb[0].B>0&&(kEa(a)?(this.range=jEa(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=yFa(a)))}; +JM=function(a){return!CM(a.gb[a.gb.length-1])}; +KM=function(a){return a.gb[a.gb.length-1].type===4}; +g.LM=function(a,b,c){c=a.Yj===null?a.resource.Yj(b,c,a.gb[0].type):a.Yj;if(a.j){b=c?zL(a.j,b.ym):a.j;var d=new nM(b);d.get("alr")||d.set("alr","yes");a.B&&$Da(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new nM(new g.uL(a.B)):(d=tM(a.resource,c,b),a.B&&$Da(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.Jx()&&a.gb.length===1&&a.gb[0].Ub&&d.set("range",a.gb[0].Ub+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.gh)||d.set("headm",a.gh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&& +g.sc(a.urlParams,function(e,f){d.set(f,e)}); +return d}; +uHa=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.D*a.j.info.tb)}; +vHa=function(a,b){return Math.max(0,a.gb[0].Ue-b)}; +MM=function(a,b,c,d,e,f){f=f===void 0?0:f;wM.call(this,a,b,d,void 0);this.G=c;this.Vj=f;this.index=e||new g.CL}; +wHa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Ch=c;this.j=d||NaN;this.B=e||NaN}; +NM=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""}; +OM=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null}; +xHa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0}; +yHa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a}; +PM=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1}; +zHa=function(a){var b=a.C;a.C=[];return b}; +AHa=function(){this.D=[];this.j=null;this.B={};this.C={}}; +EHa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.w(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=BHa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=CHa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=DHa(a,e));if(f==null)return;f.update(d);g.Vb(c,zHa(f))}g.Vb(a.D,c);Laa(a.D,function(h){return h.startSecs*1E3+h.j})}; +FHa=function(a){a.j&&(a.j.j=[]);g.sc(a.B,function(b){b.j=[]}); +g.sc(a.C,function(b){b.j=[]})}; +BHa=function(a){a.j||(a.j=new PM);return a.j}; +CHa=function(a,b){a.B[b]||(a.B[b]=new PM);return a.B[b]}; +DHa=function(a,b){a.C[b]||(a.C[b]=new PM);return a.C[b]}; +RM=function(a){var b=a===void 0?{}:a;a=b.Vj===void 0?0:b.Vj;var c=b.Ln===void 0?!1:b.Ln;var d=b.Dr===void 0?0:b.Dr;var e=b.bf===void 0?0:b.bf;var f=b.xi===void 0?Infinity:b.xi;var h=b.pB===void 0?0:b.pB;b=b.Wd===void 0?!1:b.Wd;g.CL.call(this);this.Ur=this.eq=-1;this.Wj=a;this.Dr=d;this.Ln=c;this.bf=e;this.xi=f;this.pB=h;((this.Wd=b)||isFinite(f)&&this.xi>0)&&c&&QM&&(this.B=!1,this.C="postLive")}; +SM=function(a,b){return $b(a.segments,function(c){return b-c.Pa})}; +TM=function(a,b,c){c=c===void 0?{}:c;MM.call(this,a,b,"",void 0,void 0,c.Vj||0);this.index=new RM(c)}; +UM=function(a,b,c){wM.call(this,a,b);this.G=c;a=this.index=new g.CL;a.B=!1;a.C="d"}; +GHa=function(a,b,c){var d=a.index.nK(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.tb*f;return new IM([new BM(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)}; +HHa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.D;b=b.G.split(",").filter(function(p){return p.length>0}); +for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n0&&(b-=a.timestampOffset);var c=YM(a)+b;JHa(a,c);a.timestampOffset=b}; +JHa=function(a,b){g.CE(a.info.j.info)||a.info.j.info.Ke();a.C=b;if(g.CE(a.info.j.info)){var c=WM(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;UL(c,f);){var h=VL(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.RL(h)));if(h.type===1952867444){!d&&a&&(d=SL(a));var l=g.XL(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+ +4,l)}f=WL(h.type)?f+8:f+h.size}return!0}c=new $L(WM(a));a=a.G?c:new $L(new DataView(a.info.j.j.buffer));d=lM(a);a=c.pos;c.pos=0;if(mM(c)&&dM(c,231))if(e=eM(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; +$M=function(a,b){b=b===void 0?!1:b;var c=ZM(a);a=b?0:a.info.D;return c||a}; +ZM=function(a){g.CE(a.info.j.info)||a.info.j.info.Ke();if(a.B&&a.info.type===6)return a.B.Vj;if(g.CE(a.info.j.info)){var b=WM(a);var c=0;b=g.ZL(b,1936286840);b=g.w(b);for(var d=b.next();!d.done;d=b.next())d=PDa(d.value),c+=d.sU[0]/d.Vs;c=c||NaN;if(!(c>=0))a:{c=WM(a);b=a.info.j.j;for(var e=d=0,f=0;UL(c,d);){var h=VL(c,d);if(h.type===1836476516)e=g.RL(h);else if(h.type===1836019558){!e&&b&&(e=SL(b));if(!e){c=NaN;break a}var l=TL(h.data,h.dataOffset,1953653094),m=l;l=e;var n=TL(m.data,m.dataOffset,1952868452); +m=TL(m.data,m.dataOffset,1953658222);var p=GL(n);GL(n);p&2&&GL(n);n=p&8?GL(n):0;var q=GL(m),r=q&1;p=q&4;var t=q&256,u=q&512,y=q&1024;q&=2048;var A=HL(m);r&&GL(m);p&&GL(m);for(var D=r=0;D2048?"":b.indexOf("https://")===0?b:""}; +fN=function(a,b,c){b.match(VHa);return a(b,c).then(function(d){var e=g.UHa(d.xhr);return e?fN(a,e,c):d.xhr})}; +jN=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.ax.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.ob=this.duration=0;this.isPremiere=this.Wd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.xi=this.bf=0;this.isOtf=this.Vb=!1;this.Ya=(0,g.rt)();this.ra=Infinity;this.j={};this.K=new Map;this.state=this.zg=0;this.timeline=null;this.isManifestless=!1;this.Ga=[];this.G=null;this.Ma=0;this.D="";this.La=NaN;this.Ra=this.Tb=this.timestampOffset=this.N= +0;this.Z=this.Fa=NaN;this.Rc=0;this.Xa=this.fb=this.qa=!1;this.Va=[];this.Wa={};this.Aa=NaN;this.hd={Lma:function(l){gN(d,l)}}; +var e;this.yb=(e=b)==null?void 0:e.kb("html5_use_network_error_code_enums");WHa=!!b&&b.kb("html5_modern_vp9_mime_type");var f;hN=!((f=b)==null||!f.kb("html5_enable_flush_during_seek"))&&g.Gr();var h;iN=!((h=b)==null||!h.kb("html5_enable_reset_audio_decoder"))&&g.Gr()}; +XHa=function(a){return g.vc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})}; +rDa=function(a){return g.vc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})}; +nL=function(a){return g.vc(a.j,function(b){return!!b.info.le})}; +YHa=function(a){return g.vc(a.j,function(b){return IE(b.info.mimeType)})}; +ZHa=function(a){return g.vc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +$Ha=function(a){return g.vc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +aIa=function(a){return g.vc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})}; +bIa=function(a){return g.vc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})}; +cIa=function(a){return Zaa(a.j,function(b){return b.info.video?b.US():!0})}; +kL=function(a){return g.vc(a.j,function(b){return xL(b.resource.j)})}; +gN=function(a,b){a.j[b.info.id]=b;a.K.set(FE(b.info,a.Vb),b)}; +dIa=function(a,b){return(b.itag||"")+";"+((a.Vb?0:b.lmt||0)||0)+";"+(b.xtags||"")}; +eIa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")}; +mN=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(HE(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=fIa[a.stereoLayout]);var r=SHa(a)||void 0;if(n==null?0:n.primaries)var t=gIa[n.primaries]||void 0;h=new sE(h,e,l,p,q,void 0,m,r,t);d=kN(d,h,vE[a.itag||""]);hN&&(d+="; enableflushduringseek=true");iN&&(d+="; enableresetaudiodecoder=true")}var u;if(GE(d)){var y= +a.audioSampleRate;q=a.audioTrack;y=new pE(y?+y:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.eN(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new QHa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&& +m){var D={};m=g.w(m);for(n=m.next();!n.done;n=m.next())(n=lN[n.value])&&(D[n]=b[n])}return new wE(f,d,{audio:y,video:h,Yb:u,le:D,tb:q,Jw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})}; +nN=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(HE(d)){var h=(a.size||"640x360").split("x");h=new sE(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=kN(d,h,vE[a.itag]);hN&&(d+="; enableflushduringseek=true");iN&&(d+="; enableresetaudiodecoder=true")}var l;if(GE(d)){var m=new pE(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.eN(a.name,a.audio_track_id, +a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new QHa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.w(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new wE(e,d,{audio:m,video:h,Yb:l,le:r,tb:f,Jw:c,contentLength:p,lastModified:q,captionTrack:n, +streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})}; +hIa=function(a){return sm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +iIa=function(a){return sm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +jIa=function(a,b){return a.timeline?Wb(a.timeline.D,b):a.Ga.length?Wb(a.Ga,b):[]}; +oN=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.uL(a,!0);a.set("alr","yes");c&&(c=PBa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a}; +nIa=function(a,b){var c=NM(b,"id");c=c.replace(":",";");var d=NM(b,"mimeType"),e=NM(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(NM(b,"bandwidth"))/8;var f=Number(OM(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(HE(d)){var l=Number(NM(b,"width"));var m=Number(NM(b,"height")),n=Number(NM(b,"frameRate")),p=kIa(NM(b,a.D+":projectionType"));a:switch(NM(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q= +0}l=new sE(l,m,n,p,q)}if(GE(d)){var r=Number(NM(b,"audioSamplingRate"));var t=Number(NM(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=lIa(NM(b,a.D+":spatialAudioType"));r=new pE(r,t,m);a:{t=NM(b,"lang")||"und";if(m=OM(b,"Role"))if(p=NM(m,"value")||"",g.zc(mIa,p)){m=t+"."+mIa[p];n=p==="main";a=NM(b,a.D+":langName")||t+" - "+p;t=new g.eN(a,m,n);break a}t=void 0}}if(b=OM(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b= +b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new wE(c,d,{audio:r,video:l,Yb:t,le:u,tb:e,Jw:h,contentLength:f})}; +kIa=function(a){switch(a){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"}}; +lIa=function(a){switch(a){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"}}; +pIa=function(a,b){b=b===void 0?"":b;a.state=1;a.Ya=(0,g.rt)();return THa(b||a.sourceUrl).then(function(c){if(!a.Ka()){a.zg=c.status;c=c.responseText;var d=new DOMParser;c=Pba(d,Dma(c)).getElementsByTagName("MPD")[0];a.ra=xHa(NM(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.w(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.ra=a.ra}; +rIa=function(a){a.G&&a.G.stop()}; +oIa=function(a){var b=a.ra;isFinite(b)&&(pN(a)?a.refresh():(b=Math.max(0,a.Ya+b-(0,g.rt)()),a.G||(a.G=new g.Oo(a.refresh,b,a),g.P(a,a.G)),a.G.start(b)))}; +sIa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.qd()+1}return 0}; +qN=function(a){return a.Tb?a.Tb-(a.N||a.timestampOffset):0}; +rN=function(a){return a.Ra?a.Ra-(a.N||a.timestampOffset):0}; +sN=function(a){if(!isNaN(a.La))return a.La;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!IE(b[c].info.mimeType)){b=0;for(c=d.Yn();c<=d.qd();c++)b+=d.getDuration(c);b/=d.yA();b=Math.round(b/.5)*.5;d.yA()>10&&(a.La=b);return b}if(a.isLive&&(d=b[c],d.Vj))return d.Vj}return NaN}; +tIa=function(a,b){a=aba(a.j,function(d){return d.index.isLoaded()}); +if(!a)return NaN;a=a.index;var c=a.Li(b);return a.getStartTime(c)===b?b:c=0&&e.segments.splice(f,1)}}}; +wIa=function(a){for(var b in a.j)IE(a.j[b].info.mimeType)||DDa(a.j[b].index,Infinity)}; +uN=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.Ln&&(f&&(e.eq=Math.max(e.eq,f)),h&&(e.Ur=Math.max(e.Ur||0,h)))}c&&(a.Aa=c/1E3)}; +xIa=function(a){a.Ra=0;a.Tb=0;a.Rc=0}; +vN=function(a){return a.fb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive}; +kN=function(a,b,c){wN===null&&(wN=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(WHa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return wN||c!=="9"&&c!=="("?wN||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!wN&&!xN||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a; +c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'}; +g.yN=function(a){this.tag=a}; +zIa=function(a,b){yIa.apply(null,[6,a,b].concat(g.x(g.Ca.apply(2,arguments))))}; +AIa=function(a,b){yIa.apply(null,[5,a,b].concat(g.x(g.Ca.apply(2,arguments))))}; +yIa=function(a,b,c){var d=g.Ca.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.Bw(new (Function.prototype.bind.apply(g.Ks,[null,f].concat(g.x(d)))),e);d.unshift(f);d=d.join(", ");e=BIa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(m){}BIa.set(b,f);e=f}if(!(a0&&(e.j=Math.min(e.j+h,10),e.B=f);e.j>0?(e.j--,e=!0):e=!1;if(e)typeof d==="function"&&(d=d()),console.log("plyr."+b,d);else{var l;d=((l=EIa.get(b))!=null?l:0)+1;EIa.set(b,d);d%100===1&&console.warn("plyr","plyr."+b+" is chatty, dropping logs.")}}}; +DIa=function(){this.j=10;this.B=Date.now()}; +AN=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return WBa(b);a=WBa(b,!1);if(a!=null&&a>0)return a;a=zN.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192}; +FIa=function(a){this.Da=a;this.wc=this.Vo=this.La=this.G=this.D=this.ra=this.Ma=this.Wa=this.Aa=!1;this.N=this.K=0;this.fb=!1;this.Fa=!0;this.Xa=!1;this.xj=0;this.Ga=!1;this.Tb=Infinity;this.YI=!1;this.yc=!0;this.Va=this.Ra=!1;this.j={};this.Jb=this.B=this.Y=!1;this.Tf=0;this.disableAv1=this.yb=this.ob=!1;this.Ob=this.Da.zc();this.Ab=this.Da.experiments.kb("html5_enable_vp9_fairplay");this.Dd=this.Da.L("html5_force_av1_for_testing");this.Ya=g.ZB(this.Da.experiments,"html5_av1_ordinal_cap");this.Sd= +this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Rc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.Cd=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.tb=g.ZB(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.Od=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Wc=this.Da.experiments.kb("html5_allow_capability_merge")}; +sDa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.Vo&&b.unshift("h");a.qa&&(b=(GIa[a.qa]||[a.qa]).concat(b));return b}; +mDa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Tf===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Aa&&(b=["so","sa"].concat(b));!a.wc||a.La||a.C||b.unshift("a");!a.Z&&a.Ma&&b.unshift("ah");a.C&&(b=(GIa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b}; +BN=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(sL(a.G,tL.AV1_CODECS)&&sL(a.G,tL.HEIGHT)&&sL(a.G,tL.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=$Ba();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;mna()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return zE(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1; +c=c.videoInfos[0].video;a=Math.min(AN(a,"1",c.fps),AN(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=AN(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=AN(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; +CN=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.fb=this.keySystemAccess=null;this.yw=this.zw=-1;this.xm=null;this.C=!!d&&d.kb("edge_nonprefixed_eme")}; +EN=function(a){return a.C?!1:!a.keySystemAccess&&!!DN()&&a.keySystem==="com.microsoft.playready"}; +FN=function(a){return a.keySystem==="com.microsoft.playready"}; +GN=function(a){return!a.keySystemAccess&&!!DN()&&a.keySystem==="com.apple.fps.1_0"}; +HN=function(a){return a.keySystem==="com.youtube.fairplay"}; +IN=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"}; +g.JN=function(a){return a.flavor==="fairplay"}; +DN=function(){var a=window,b=a.MSMediaKeys;Kr()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; +LN=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.kE&&!g.Gr())return np("45");if(g.Nt||g.Zl)return a.kb("edge_nonprefixed_eme");if(g.KN)return np("47");if(g.jt){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.ZB(a,"html5_safari_desktop_eme_min_version"))return np(a)}return!0}; +HIa=function(a,b,c,d){var e=Hr(),f=(c=e||c&&Kr())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.x(f),g.x(MN.playready)):[].concat(g.x(MN.playready),g.x(f))}; +ON=function(){this.B=this.Nn=0;this.j=Array.from({length:NN.length}).fill(0)}; +IIa=function(){}; +JIa=function(){this.startTimeMs=(0,g.rt)();this.j=!1}; +KIa=function(){this.j=new IIa}; +LIa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new ON),a.j[b].Qh(c,d))}; +MIa=function(a,b,c,d,e){var f=(0,g.rt)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.Nn)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;LIa(a,l,f-d,e)}return b}; +PN=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return MIa(a,h,c,d,e)}; +if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.kf==="function")return b.kf(f)}return MIa(a,b,c,d,e)}; +NIa=function(){}; +QN=function(a,b,c,d,e){d=d===void 0?!1:d;g.O.call(this);this.Da=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; +PIa=function(a,b){a.callback=b;a.D=[];LN(a.Da.experiments)?RN(a):OIa(a)}; +RN=function(a){if(!a.Ka())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=QIa(a,c);if(SN&&SN.keySystem===b&&SN.Pda===JSON.stringify(d))a.oa("remksa",{re:!0}),RIa(a,c,SN.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=SN)==null?void 0:e.keySystem)!=null?f:""});SN=void 0;(TN.isActive()?TN.hv("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(wK(function(h){RIa(a,c,h,d)}),wK(function(){a.G=!a.G&&a.C[a.B[0]].flavor=== +"widevine"; +a.G||a.B.shift();RN(a)}))}}}; +RIa=function(a,b,c,d){if(!a.Ka()){d&&(SN={keySystem:b.keySystem,keySystemAccess:c,Pda:JSON.stringify(d)});b.keySystemAccess=c;if(FN(b)){c=iE();d=g.w(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.w(c.audioCapabilities),e=d.next();!e.done;e=d.next())SIa(a,b,e.value);if(c.videoCapabilities)for(c=g.w(c.videoCapabilities),d=c.next();!d.done;d=c.next())SIa(a,b,d.value)}a.D.push(b); +a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&IN(b)?(a.B.shift(),RN(a)):a.callback(a.D)}}; +SIa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; +QIa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&HN(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];FN(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.w(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!== +"widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.kE&&g.Er("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),g.UN(a.Da)==="MWEB"&&(Qr()||Fr())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; +OIa=function(a){if(DN()&&(g.jt||Mr&&a.L("html5_drm_support_ios_mweb")))a.D.push(new CN("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=TIa(),c=g.Mb(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h}); +c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; +TIa=function(){var a=DN();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=iE(); +return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; +UIa=function(a){this.experiments=a;this.C=0;this.K=(this.D=this.experiments.kb("html5_consider_end_stall"))&&VN;this.B=this.experiments.kb("html5_measure_max_progress_handling");this.G=this.L("html5_treat_requests_pre_elbow_as_metadata");this.j=this.L("html5_use_media_for_elbow")}; +VIa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=Rq(b||"","&");a={};b=g.w(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; +g.ZB=function(a,b){return Number(a.flags[b])||0}; +WN=function(a,b){return(a=a.flags[b])?a.toString():""}; +WIa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; +XIa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.x(a.experimentIds)).map(function(d){return Number(d)}); +b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()}); +a.j.unshift("v1");return a.j}; +ZIa=function(a){return YIa.then(a)}; +XN=function(a,b,c){this.experiments=a;this.Fa=b;this.Ga=c===void 0?!1:c;this.Z=!!g.La("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.j=new Map;this.qa=this.experiments.kb("html5_disable_vp9_encrypted");this.Aa=g.ZB(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.La("cast.receiver.platform.getValue");this.ra=g.ZB(this.experiments,"html5_kaios_max_resolution");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null}; +vDa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Ke()&&Hr()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(zE(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(sL(a,tL.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(d==="338"&&!(g.kE?np(53):g.KN&&np(64)))return"dopus"; +var f;if(a.Aa&&!g.Er("ps4 pro")&&Jr()&&zE(b)&&((f=b.video)==null?void 0:f.height)>a.Aa)return"pavert";var h;if(a.ra&&YN&&((h=b.video)==null?void 0:h.j)>a.ra)return"kaios";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[tL.WIDTH.name]=b.video.width),b.video.height&&(c[tL.HEIGHT.name]=b.video.height),b.video.fps&&(c[tL.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[tL.EOTF.name]=b.video.B),b.tb&&(c[tL.BITRATE.name]=b.tb*8*f),b.rb==="("&&(c[tL.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType=== +"EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[tL.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[tL.CHANNELS.name]=b.audio.numChannels);a.D&&xE(b)&&(c[tL.EXPERIMENTAL.name]="allowed");f=g.w(Object.keys(tL));for(h=f.next();!h.done;h=f.next())if(h=tL[h.value],c[h.name]&&!(h===tL.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.kb("html5_ignore_h264_framerate_cap")&&h===tL.FRAMERATE&&Awa(b)))if(sL(a,h))if(a.G){if(a.G[h.name]< +c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(yE(b)&&h===tL.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.le&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"}; +ZN=function(){var a=Fr()&&!np(29),b=g.Er("google tv")&&g.Er("chrome")&&!np(30);return a||b?!1:Fwa()}; +$Ia=function(a,b,c){var d=480;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&vDa(a,e,c)===!0&&(d=f)}return d}; +g.$N=function(a,b){b=b===void 0?!1:b;return ZN()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(iE(),"application/x-mpegURL")?!0:!1}; +bJa=function(a){aJa(function(){for(var b=g.w(Object.keys(tL)),c=b.next();!c.done;c=b.next())sL(a,tL[c.value])})}; +sL=function(a,b){b.name in a.N||(a.N[b.name]=cJa(a,b));return a.N[b.name]}; +cJa=function(a,b){if(a.G)return!!a.G[b.name];if(b===tL.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===tL.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Co);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', +a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.Co)}; +dJa=function(a){a.D||(a.D=!0,a.B=!0)}; +eJa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).M8);a.C.set(b,{M8:c+1,f2:Math.pow(2,c+1)});a.B=!0}; +oL=function(a){for(var b=[],c=g.w(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")}; +nDa=function(a,b){for(var c=new Map,d=g.w(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c}; +pDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,rb:b,Gh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;sL(a,tL.BITRATE)&&(h.maxBitrateBps=c.tb*8);h.SF=l==null?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,rb:b,Gh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth|| +0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,SF:c.SF},sL(a,tL.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)}; +qDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,rb:b,Gh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,sL(a,tL.BITRATE)&&(b.maxBitrateBps=c.tb* +8),b.SF=f==null?void 0:f.isHdr()),a.j.set(d,b))}; +aO=function(){g.ax.call(this);this.items={}}; +bO=function(){g.CJ.apply(this,arguments)}; +cO=function(){g.DJ.apply(this,arguments)}; +fJa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)}; +gJa=function(a){a.B||(a.B=new bO(a.j));return a.B}; +dO=function(a){try{return Se(a)}catch(b){return null}}; +hJa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?dO(b.clientKey):null;var c=b.encryptedClientKey?dO(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.rt)():null;a&&c&&d&&(this.j=new fJa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=dO(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; +eO=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; +fO=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.Bl=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a0)b=a.byterate,this.Z=!0;else if(this.policy.Z){var d;c=(((d=navigator.connection)== +null?void 0:d.downlink)||0)*65536;c>0&&(b=c,this.Z=!0)}this.B.Dm(this.policy.K,b);a.delay>0&&this.N.Dm(1,Math.min(a.delay,2));a.stall>0&&this.G.Dm(1,a.stall);a.init>0&&(this.Fa=Math.min(a.init,this.Fa));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Y=(0,g.rt)();this.policy.N>0&&(this.Ga=new g.Oo(this.Va,this.policy.N,this),g.P(this,this.Ga),this.Ga.start())}; +hO=function(a,b,c,d){a.B.Dm(d===void 0?b:d,c/b);a.D=(0,g.rt)()}; +jJa=function(a){a.C||(a.C=(0,g.rt)());a.policy.qa&&(a.D=(0,g.rt)())}; +kJa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e}); +d.length>16&&d.pop()}a.ra+=c}a.C=b}; +iO=function(a,b,c){a.N.Dm(1,b);a.La.Dm(1,c)}; +jO=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Aa.Dm(b,c/b);a.D=(0,g.rt)();e||a.K.Dm(1,b-d);f||(a.C=0);a.Y>-1&&(0,g.rt)()-a.Y>3E4&&lJa(a)}; +kO=function(a,b,c){b=Math.max(b,2048);a.G.Dm(1,c/b)}; +lO=function(a){a=a.N.eh()+a.La.eh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)}; +mO=function(a,b,c){isNaN(c)||(a.qa+=c);isNaN(b)||(a.Ma+=b)}; +nO=function(a){a=a.B.eh();return a>0?a:1}; +oO=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=nO(a);d=1/((a.G.eh()||0)*a.policy.ra+1/d);var e=a.Aa.eh();e=e>0?e:1;var f=Math.max(d,e);a.policy.G>0&&e=4E3}; +nJa=function(a,b){b.Xs=a.qa;b.Hv=a.Ma;b.bandwidthEstimate=oO(a);b.j={ttr:(a.N.eh()*1E3).toFixed(),ttm:(a.La.eh()*1E3).toFixed(),d:lO(a).toFixed(2),st:((a.G.eh()||0)*1E9).toFixed(2),bw:a.B.eh().toFixed(0),abw:a.Aa.eh().toFixed(0),v50:a.K.percentile(.5).toFixed(2),v92:a.K.percentile(.92).toFixed(2),v96:a.K.percentile(.96).toFixed(2),v98:a.K.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.ra);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")}; +oJa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.Z=this.experiments.kb("html5_default_bandwidth_from_browser");this.K=.5;this.C=this.D=!1;this.G=g.ZB(this.experiments,"html5_auxiliary_estimate_weight");this.ra=g.ZB(this.experiments,"html5_stall_factor")||1;this.N=g.ZB(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.kb("html5_trigger_loader_when_idle_network");this.qa=this.experiments.kb("html5_sabr_fetch_on_idle_network_preloaded_players")}; +qJa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.O.call(this);var c=this;this.values=a;this.Rr=b;this.B={};this.C=this.j=0;this.D=new g.Oo(function(){pJa(c)},1E4); +g.P(this,this.D)}; +qO=function(a,b){rJa(a,b);return a.values[b]&&a.Rr[b]?a.values[b]/Math.pow(2,a.j/a.Rr[b]):0}; +rJa=function(a,b){a.values[b]||(b=UBa(),a.values=b.values||{},a.Rr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})}; +pJa=function(a){var b=UBa();if(b.values){b=b.values;for(var c={},d=g.w(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=qO(a,e);a.B=c}b=a.Rr;c={};c.values=a.B;c.halfLives=b;g.xs("yt-player-memory",c,2592E3)}; +IO=function(a,b,c,d,e){g.O.call(this);this.webPlayerContextConfig=b;this.jm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Gj=this.je=this.fb=this.Cj=this.userDisplayName=this.userDisplayImage=this.Xi="";this.j={};this.Ob={};this.controlsType="0";this.Sd=NaN;this.ob=!1;this.Rf=(0,g.rt)();this.Kb=0;this.mm=this.yp=!1;this.En=!0;this.preferGapless=this.hm=this.Qf=this.C=this.im=this.Pf=!1;this.uh=[];this.zm=!0;this.Sf=!1;a=a?g.Fc(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType); +b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new VIa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Wr("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:Wr("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(X){f=""}this.hf=f;this.ancestorOrigins= +(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=Tr(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.j.capsv=""+d.androidPlayServicesVersion),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion|| +"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=WN(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Ob.cchip=d.chipset),d.cobaltAppVersion&&(this.Ob.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Ob.cfrmver= +d.firmwareVersion),d.deviceYear&&(this.Ob.crqyear=d.deviceYear)}else this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||sJa(this)&&b.loaderUrl?b.loaderUrl||"":this.hf:this.D||sJa(this)&&a.loaderUrl?Wr("",a.loaderUrl):this.hf;this.D&&g.Ka("yt.embedded_player.embed_url",this.loaderUrl);this.N=JC(this.loaderUrl,tJa);d=this.loaderUrl;var h=h===void 0?!1:h;this.kq=IC(JC(d,uJa),d,h,"Trusted Ad Domain URL");this.yc=Tr(!1,a.privembed);this.protocol=this.hf.indexOf("http:")=== +0?"http":"https";this.Fa=KC((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||KC(this.hf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=Ur(d,h,vJa):h&&(d="embedded");this.Ma=d;wqa();h=null;d=b?b.playerStyle:a.ps;f=g.Ob(wJa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.K=g.Ob(wJa,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.ra=this.K&&this.playerStyle!=="play"&& +this.playerStyle!=="jamboard";this.bq=!this.ra;this.Ra=Tr(!1,a.disableplaybackui);this.disablePaidContentOverlay=Tr(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=Tr(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(iE().defaultPlaybackRate?rO||g.Pr||YN?g.KN&&np("20")||g.kE&&np("4")||g.sO&&np("11")||Lr():!(g.sO&&!g.Er("chrome")||rO||g.Er("android")||g.Er("silk")):!1);this.Ap=Tr(!1,a.enable_faster_speeds);this.B=Tr(this.playerStyle=== +"blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=Or()||Qr();this.Qp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Va=nE();this.Iq=g.tO;var l;this.wm=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.Bp=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Dp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.Cn=g.uO(this)&&!this.wm|| +Tr(!vO(this)&&!wO(this)&&!this.K,n);this.xm=b?!!b.mobileIphoneSupportsInlinePlayback:Tr(!1,a.playsinline);l=this.B&&xO&&yO!=null&&yO>0&&yO<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.uO(this)&&this.B;n=this.B&&!this.Z;m=g.zO(this)||!l&&Tr(n,m)?"3":"1";this.disableOrganicUi=!(b==null||!b.disableOrganicUi);n=b?b.controlsType:a.controls;this.controlsType=this.disableOrganicUi?"0":n!=="0"&&n!==0?m:"0";this.bk=this.B;this.color=Ur("red",b?b.progressBarColor:a.color,xJa);this.rq=this.controlsType=== +"3";this.wc=!this.D;this.Dn=(m=!this.wc&&!wO(this)&&!this.ra&&!this.K&&!vO(this))&&!this.rq&&this.controlsType==="1";this.Dd=g.AO(this)&&m&&this.controlsType==="0"&&!this.Dn&&!(b==null?0:b.embedsEnableEmc3ds);this.ir=this.Bq=l;this.Wc=(this.controlsType==="3"||this.B||Tr(!1,a.use_media_volume))&&!this.Z;this.Fn=Mr&&!g.lc(601)?!1:!0;this.Ep=this.D||!1;this.Rc=wO(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Wr("",b?b.widgetReferrer:a.widget_referrer);var p; +b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||Tr(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Nj=this.L("enable_cast_for_web_unplugged")&&g.BO(this)&&l||g.Cy(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(wO(this)||g.AO(this)||g.CO(this));this.Zq=!!window.document.pictureInPictureEnabled||mE();p=b?!!b.supportsAutoplayOverride:Tr(!1,a.autoplayoverride);this.Fi=!(this.B&&!g.uO(this))&&!g.Er("nintendo wiiu")||p;this.Vi=(b?!!b.enableMutedAutoplay:Tr(!1,a.mutedautoplay))&&!1;p=(wO(this)|| +vO(this))&&this.playerStyle==="blazer";this.Wk=b?!!b.disableFullscreen:!Tr(!0,a.fs);l=g.$r(g.DO(this))&&g.uO(this);this.Ab=!this.Wk&&(p||g.gs())&&!l;this.jl=this.L("uniplayer_block_pip")&&(Fr()&&np(58)&&!Qr()||Mt);p=g.uO(this)&&!this.wm;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Cd=p||Tr(!this.K,q);this.Bn=Tr(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=Qr()&&yO>0&&yO<=4.4?"_top":"_blank";this.Hg=g.CO(this);this.Zj=Tr(this.playerStyle==="blazer",b? +b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.qa=q;this.Aa=Wr("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.uO(this)&& +(this.yc||!jna()||this.Wa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.We=((q=!this.Tb)||!!this.Aa&&q)&&Tr(!this.ra,this.N?r:void 0);this.gf=b?b.isMobileDevice||!!b.disableKeyboardControls:Tr(!1,a.disablekb);this.loop=Tr(!1,a.loop);this.pageId=Wr("",b?b.initialDelegatedSessionId:a.pageid);this.Wq=Tr(!0,a.canplaylive);this.yb=Tr(!1,a.livemonitor);this.disableSharing=Tr(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")? +b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Hd(r,q))):r=null;this.Gn=r;this.mute=b?!!b.startMuted:Tr(!1,a.mute);this.storeUserVolume=!this.mute&&Tr(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Ur(void 0,r,EO);this.captionsLanguagePreference=b?b.captionsLanguagePreference|| +"":Wr("",a.cc_lang_pref);r=Ur(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,EO);this.controlsType==="3"&&r===2&&(r=3);this.Jb=r;this.Aj=b?b.hl||"en_US":Wr("en_US",a.hl);this.region=b?b.contentRegion||"US":Wr("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Wr("en",a.host_language);this.zp=!this.yc&&Math.random()=480;this.schedule=new gO(q,new UIa(this.experiments),e);g.P(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:Tr(!1,a.enable_safety_mode);e=this.Ra?!1:wO(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav): +u=a.allow_autonav;this.Od=Tr(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:Tr(!1,a.send_visitor_id_header);var y;this.playerStyle==="docs"&&(b?y=b.disableNativeContextMenu:y=a.disable_native_context_menu);this.disableNativeContextMenu=Tr(!1,y);this.Cp=lC(this)&&this.L("enable_skip_intro_button");this.embedConfig=Wr("",b?b.serializedEmbedConfig:a.embed_config);this.Ga=Zr(a,g.uO(this));this.C=this.Ga==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks); +this.Yk=Tr(!1,a.full_window);var A;this.Ya=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var D;this.livingRoomAppMode=Ur("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(b==null?void 0:(D=b.device)==null?void 0:D.livingRoomAppMode),AJa);var F;u=Vr(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:Tr(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:Tr(!1, +a.show_miniplayer_button);var H;g.uO(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:Tr(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:Tr(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var N;this.En=(N=a.show_loop_video_toggle)!=null?N:!0;this.lq=Math.random()<1E-4;this.bl=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)? +new hJa(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0:b.canaryStage;this.uf=new qJa;g.P(this,this.uf);this.im=Tr(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.Hq("DATASYNC_ID");this.lm=g.Hq("LOGGED_IN",!1);this.Fj=(b==null?void 0:b.allowWoffleManagement)||!1;this.fl=Infinity;this.il=NaN;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")? +this.Qf=!0:this.Qf=Math.random()*100=0&&a0&&a.lq&&(d.sort(),g.Cw(new g.Ks("Player client parameters changed after startup",d)));a.userAge=Vr(a.userAge,b.user_age);a.Xi=Wr(a.Xi,b.user_display_email);a.userDisplayImage=Wr(a.userDisplayImage,b.user_display_image);g.MC(a.userDisplayImage)||(a.userDisplayImage= +"");a.userDisplayName=Wr(a.userDisplayName,b.user_display_name);a.Cj=Wr(a.Cj,b.user_gender);a.csiPageType=Wr(a.csiPageType,b.csi_page_type);a.csiServiceName=Wr(a.csiServiceName,b.csi_service_name);a.Zj=Tr(a.Zj,b.enablecsi);a.pageId=Wr(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Tf=b.living_room_session_po_token.toString())}; +JO=function(a,b){return!a.K&&Fr()&&np(55)&&a.controlsType==="3"&&!b}; +g.KO=function(a){a=FO(a.Fa);return a==="www.youtube-nocookie.com"?"www.youtube.com":a}; +LO=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; +MO=function(a){return wO(a)&&!g.BO(a)}; +g.zO=function(a){return a.L("html5_local_playsinline")?Mr&&!g.lc(602)&&!("playsInline"in iE()):Mr&&!a.xm||g.Er("nintendo wiiu")?!0:!1}; +g.UN=function(a){return a.j.c}; +g.mC=function(a){return/^TVHTML5/.test(g.UN(a))}; +sJa=function(a){return g.UN(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +zJa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"}; +g.NO=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +lC=function(a){return/web/i.test(g.UN(a))}; +g.OO=function(a){return g.UN(a).toUpperCase()==="WEB"}; +HO=function(a){return g.UN(a)==="WEB_KIDS"}; +g.BO=function(a){return g.UN(a)==="WEB_UNPLUGGED"}; +PO=function(a){return g.UN(a)==="TVHTML5_UNPLUGGED"}; +g.kC=function(a){return g.BO(a)||g.UN(a)==="TV_UNPLUGGED_CAST"||PO(a)}; +g.Cy=function(a){return g.UN(a)==="WEB_REMIX"}; +g.QO=function(a){return g.UN(a)==="WEB_EMBEDDED_PLAYER"}; +g.SO=function(a){return(a.deviceIsAudioOnly||!g.kE||Mt||a.controlsType==="3"?!1:g.Pr?a.D&&g.lc(51):!0)||(a.deviceIsAudioOnly||!g.KN||Mt||a.controlsType==="3"?!1:g.Pr?a.D&&g.lc(48):g.lc(38))||(a.deviceIsAudioOnly||!g.sO||Mt||a.controlsType==="3"?!1:g.Pr?a.D&&g.lc(37):g.lc(27))||!a.deviceIsAudioOnly&&g.RO&&!ona()&&g.lc(11)||!a.deviceIsAudioOnly&&g.jt&&g.lc("604.4")}; +DJa=function(a){if(g.AO(a)&&xO)return!1;if(g.KN){if(!g.lc(47)||!g.lc(52)&&g.lc(51))return!1}else if(g.jt)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +TO=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.mC(a)}; +FJa=function(a,b){return a.enabledEngageTypes.has(b.toString())||EJa.includes(b)}; +wO=function(a){return a.Ma==="detailpage"}; +g.AO=function(a){return a.Ma==="embedded"}; +UO=function(a){return a.Ma==="leanback"}; +vO=function(a){return a.Ma==="adunit"||a.playerStyle==="gvn"}; +g.CO=function(a){return a.Ma==="profilepage"}; +g.uO=function(a){return a.D&&g.AO(a)&&!vO(a)&&!a.K}; +VO=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.Cw(new g.Ks("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; +g.WO=function(a){var b=g.KO(a);GJa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; +g.XO=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.jm){var c=new fF,d,e=a.jm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.Cw(new g.Ks("b189348328_oauth_callback_failed",{error:f})); +c.resolve(b)}); +return d!==void 0?wr(d):new ur(c)}return wr(b)}; +FO=function(a){var b=g.Ci(a);return(a=Number(g.Bi(4,a))||null)?b+":"+a:b}; +YO=function(a,b){b=b===void 0?!1:b;var c=vE[a],d=HJa[c],e=IJa[a];if(!e||!d)return null;b=new sE(b?e.height:e.width,b?e.width:e.height,e.fps);d=kN(d,b,c);return new wE(a,d,{video:b,tb:e.bitrate/8})}; +KJa=function(a){var b=HJa[vE[a]],c=JJa[a];return c&&b?new wE(a,b,{audio:new pE(c.audioSampleRate,c.numChannels)}):null}; +ZO=function(a){this.j=a}; +$O=function(a,b,c,d){if(c)return vr();c={};var e=iE();b=g.w(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Ke())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.w(tE);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?wr(a):vr()}; +LJa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""}; +MJa=function(a,b){a.C.some(function(c){var d;return((d=c.Yb)==null?void 0:d.getId())===b}); +a.j=b}; +aP=function(a,b,c){a.cpn&&(b=g.Ji(b,{cpn:a.cpn}));c&&(b=g.Ji(b,{paired:c}));return b}; +NJa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a}; +OJa=function(a){for(var b=[],c=[],d=g.w(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate}); +c.sort(function(f,h){return f.bitrate-h.bitrate}); +a.B=b.concat(c)}; +PJa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=((b=a.audioItag)==null?void 0:b.split(","))||[];this.RC=a.RC;this.le=a.le||"";this.Yb=a.Yb;this.audioChannels=a.audioChannels;this.j=""}; +QJa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.w(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); +m=m?m[1]:"";f.audio_track_id&&(h=new g.eN(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new PJa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,RC:n?l[n]:void 0,le:f.drm_families,Yb:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e}; +bP=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null}; +RJa=function(a,b){if(!(Mt||Kr()||Hr()))return null;a=QJa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Yb&&(f=h.Yb.getId(),c[f]||(h=new g.$K(f,h.Yb),c[f]=h,b.push(h)))}}return b.length>0?b:null}; +WJa=function(a,b,c,d,e,f,h){if(!(Mt||Kr()||Hr()))return vr();var l={},m=SJa(c),n=QJa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),vr();TJa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new PJa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Yb:new g.eN("English","en",!1)}):null;for(var A=g.w(Object.keys(n)),D=A.next();!D.done;D=A.next())if(D=D.value,!a.L("html5_disable_drm_hfr_1080")|| +D!=="383"&&D!=="373"){D=g.w(n[D]);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.width){for(var H=g.w(F.B),N=H.next();!N.done;N=H.next())if(N=N.value,n[N]){F.j=N;break}F.j||(F.j=UJa(n,F));if(H=n[F.j])if(c.push(F),F.le==="fairplay"&&(q=p),N="",F.RC==="PQ"?N="smpte2084":F.RC==="HLG"&&(N="arib-std-b67"),N&&(y=N),t.push(VJa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,N)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[D]="disdrmhfr";t.reduce(function(M, +X){return X.getInfo().isEncrypted()&&M},!0)&&(q=p); +e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(VJa(r,c,d,f,"93",u,p,n,m,"auto",e,q,y,A));Object.entries(l).length&&h(l);return $O(a.G,t,JO(a,b),!1)}; +VJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,y="",A=g.w(a),D=A.next();!D.done;D=A.next())D=D.value,y||(y=D.itag),D.audioChannels&&D.audioChannels>u&&(u=D.audioChannels,y=D.itag);e=new wE(e,"application/x-mpegURL",{audio:new pE(0,u),video:new sE(f,h,l,null,void 0,n,void 0,r),le:q,d0:y});a=new LJa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new bP(e,a,m)}; +SJa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; +UJa=function(a,b){for(var c=g.w(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""}; +TJa=function(a){for(var b=new Set,c=g.w(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.w(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.w(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; +cP=function(a,b){this.j=a;this.B=b}; +XJa=function(a,b,c,d){var e=[];c=g.w(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.uL(h.url,!0);if(h.s){var l=f,m=h.sp,n=PBa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.w(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=JE(h.type,h.quality,h.itag,h.width,h.height);e.push(new cP(h,f))}}return $O(a.G,e,JO(a,b),!1)}; +dP=function(a,b){this.j=a;this.B=b}; +YJa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=JE(e.type,"medium","0");d.push(new dP(f,e.url))}return $O(a.G,d,JO(a,b),!1)}; +ZJa=function(a,b){var c=[],d=JE(b.type,"auto",b.itag);c.push(new dP(d,b.url));return $O(a.G,c,!1,!0)}; +aKa=function(a){return a&&$Ja[a]?$Ja[a]:null}; +bKa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.qp=dO(a.ustreamerConfig)||void 0)}; +cKa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.HS=new bKa(b)}; +g.eP=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; +g.gP=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.fP(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; +g.hP=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; +g.dKa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.hP(a));return b}; +g.fP=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; +hKa=function(a,b,c,d){a||(a=b&&eKa.hasOwnProperty(b)&&fKa.hasOwnProperty(b)?fKa[b]+"_"+eKa[b]:void 0);b=a;if(!b)return null;a=b.match(gKa);if(!a||a.length!==5)return null;if(a=b.match(gKa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null}; +iP=function(a,b){for(var c={},d=g.w(Object.keys(iKa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.MC(f)&&(c[iKa[e]]=f)}return c}; +jP=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); +a.sort(function(l,m){return l.width-m.width||l.height-m.height}); +for(var c=g.w(Object.keys(jKa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=jKa[e];for(var f=g.w(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=kKa(h.url);g.MC(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=kKa(a.url),g.MC(a)&&(b["maxresdefault.jpg"]=a));return b}; +kKa=function(a){return a.startsWith("//")?"https:"+a:a}; +kP=function(a){return a&&a.baseUrl||""}; +lP=function(a){a=g.Vq(a);for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; +lKa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.zr=b)}; +oKa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.Q(h,mKa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,nKa))return Object.assign({is_yto_interstitial:!0},Tq(h))}); +d=g.w(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,mp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,mp:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e, +mp:f===0?5:7})}}}; +pKa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; +qKa=function(a,b){b.subscribeCommand&&(a.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(a.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(a.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(a.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(a.getSharePanelCommand=b.getSharePanelCommand)}; +rKa=function(a,b){b!=null?(a.Sp=b,a.Ff=!0):(a.Sp="",a.Ff=!1)}; +mP=function(a,b){this.type=a||"";this.id=b||""}; +g.nP=function(a){return new mP(a.substr(0,2),a.substr(2))}; +g.oP=function(a,b){this.Da=a;this.author="";this.XE=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Rq(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=iP(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new mP("UU","PLAYER_"+c)).toString();break;default:if(a= +b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.nP(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; +g.pP=function(a,b){this.Da=a;this.Et=this.author="";this.XE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Qx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Et=b.Et||"";if(a=b.endscreen_autoplay_session_data)this.XE=Rq(a,"&");this.YE=b.YE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText= +b.lengthText||"";this.Qx=b.Qx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Rq(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=iP(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; +sKa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a}; +g.rP=function(a){var b,c,d;a=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,qP);return g.Q(a==null?void 0:a.playerBar,tKa)}; +uKa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; +vKa=function(){if(sP===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.yp(g.Ls()+"::yt-player"))){sP=new Fy(a);break a}sP=void 0}}return sP}; +g.tP=function(){var a=vKa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; +g.wKa=function(a){var b=vKa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; +g.uP=function(a){return g.tP()[a]||0}; +g.vP=function(a,b){var c=g.tP();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.wKa(c))}; +g.wP=function(a){return g.J(function(b){return b.return(g.Jt(xKa(),a))})}; +yP=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return m=g.uP(a),m===4?u.return(4):g.G(u,g.Rt(),2);case 2:n=u.B;if(!n)throw g.lt("wiac");if(!l||h===void 0){u.Ia(3);break}return g.G(u,yKa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.wP(n),5);case 5:return q=u.B,g.va(u,6),xP++,g.G(u,g.wt(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Qb:!0},function(y){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, +"0");A=g.xt(y.objectStore("media"),h,A)}else A=g.nt.resolve(void 0);var D=zKa(a,b.yg()),F=zKa(a,!b.yg()),H={fmts:AKa(d),format:c||{}};D=g.xt(y.objectStore("index"),H,D);var N=d.downloadedEndTime===-1;H=N?y.objectStore("index").get(F):g.nt.resolve(void 0);var M={fmts:"music",format:{}};y=N&&e&&!b.yg()?g.xt(y.objectStore("index"),M,F):g.nt.resolve(void 0);return g.nt.all([y,H,A,D]).then(function(X){X=g.w(X);X.next();X=X.next().value;xP--;var V=g.uP(a);if(V!==4&&N&&e||X!==void 0&&g.BKa(X.fmts))V=1,g.vP(a, +V);return V})}),8); +case 8:return u.return(u.B);case 6:r=g.xa(u);xP--;t=g.uP(a);if(t===4)return u.return(t);g.vP(a,4);throw r;}})}; +g.CKa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,g.Rt(),2);if(d.j!=3){b=d.B;if(!b)throw g.lt("ri");return g.G(d,g.wP(b),3)}c=d.B;return d.return(g.wt(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; +EKa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){if(m.j==1)return g.G(m,g.Rt(),2);if(m.j!=3){f=m.B;if(!f)throw g.lt("rc");return g.G(m,g.wP(f),3)}h=m.B;l=g.wt(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); +return e?m.return(l.then(function(n){if(n===void 0)throw Error("No data from indexDb");return DKa(e,n)}).catch(function(n){throw new g.Ks("Error while reading chunk: "+n.name+", "+n.message); +})):m.return(l)})}; +g.BKa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; +zKa=function(a,b){return""+a+"|"+(b?"v":"a")}; +AKa=function(a){var b={};return Sq((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; +GKa=function(a){var b={},c={};a=g.w(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.FKa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.w(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(","); +return c}; +zP=function(a){g.ax.call(this);this.j=null;this.C=new Bp;this.j=null;this.K=new Set;this.crossOrigin=a||""}; +HKa=function(a,b,c){for(c=AP(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(BP(d,b))&&(d=g.CP(d,b)))return d;c--}return g.CP(a.levels[0],b)}; +JKa=function(a,b,c){c=AP(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=BP(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{t_:f,b0:e}))}IKa(a)}; +IKa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=KKa(a,b)}}; +KKa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.t_].Be(b.b0);c.onload=function(){var d=b.t_,e=b.b0;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);IKa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.cK()-1);e=[e,d];a.publish("l",e[0],e[1])}; +return c}; +g.DP=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d}; +BP=function(a,b){return Math.floor(b/(a.columns*a.rows))}; +g.CP=function(a,b){b>=a.QN()&&a.zz();var c=BP(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.zz()+1-d*c;if(f1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +LKa=function(a,b,c){return(a=a.levels[b])?a.SI(c):-1}; +AP=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; +FP=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.DP.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; +GP=function(a,b,c,d){EP.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a1&&g.Cw(new g.Ks("There are more than one engaged_view_urls.")),a.Fj=Mg.engagedViewUrls[0])}}var cz=a.playerResponse.playerCueRanges;cz&&cz.length>0&&(a.cueRanges=cz);var FG=a.playerResponse.playerCueRangeSet;FG&&g.NP(a,FG);a:{var GG=a.playerResponse.adPlacements; +if(GG)for(var HG=g.w(GG),dz=HG.next();!dz.done;dz=HG.next()){var IG=void 0,ez=void 0,JG=(IG=dz.value.adPlacementRenderer)==null?void 0:(ez=IG.renderer)==null?void 0:ez.videoAdTrackingRenderer;if(JG){var KG=JG;break a}}KG=null}var LG=KG;ca&&ca.promotedPlaybackTracking&&LG&&g.Cw(new g.Ks("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));LG&&(a.g4=!0);var MG=a.playerResponse.playerAds;if(MG)for(var FR=b,NG=g.w(MG),fz=NG.next();!fz.done;fz=NG.next()){var OG=fz.value;if(OG){var PG= +OG.playerLegacyDesktopWatchAdsRenderer;if(PG){var vo=PG.playerAdParams;if(vo){vo.autoplay=="1"&&(a.Qk=!0,a.Oq=!0);a.Vv=vo.encodedAdSafetyReason||null;vo.showContentThumbnail!==void 0&&(a.jm=!!vo.showContentThumbnail);FR.enabled_engage_types=vo.enabledEngageTypes;break}}}}var me=a.playerResponse.playerConfig;if(me){var wo=me.manifestlessWindowedLiveConfig;if(wo){var gz=Number(wo.minDvrSequence),hz=Number(wo.maxDvrSequence),iz=Number(wo.minDvrMediaTimeMs),Oq=Number(wo.maxDvrMediaTimeMs),GR=Number(wo.startWalltimeMs); +gz&&(a.bf=gz);iz&&(a.Ra=iz/1E3);hz&&(a.xi=hz);Oq&&(a.Tb=Oq/1E3);GR&&(a.Rc=GR/1E3);(gz||iz)&&(hz||Oq)&&(a.La=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Wd=!1)}var hm=me.daiConfig;if(hm){if(hm.enableDai){a.Ef=!0;var QG=hm.enableServerStitchedDai;QG&&(a.enableServerStitchedDai=QG);var RG=hm.enablePreroll;RG&&(a.enablePreroll=RG)}var jz;if(hm.daiType==="DAI_TYPE_SS_DISABLED"||((jz=hm.debugInfo)==null?0:jz.isDisabledUnpluggedChannel))a.lE=!0;hm.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.VU=!0)}var Kk=me.audioConfig; +if(Kk){var qu=Kk.loudnessDb;qu!=null&&(a.Ij=qu);var SG=Kk.trackAbsoluteLoudnessLkfs;SG!=null&&(a.g3=SG);var HR=Kk.loudnessTargetLkfs;HR!=null&&(a.loudnessTargetLkfs=HR);Kk.audioMuted&&(a.bl=!0);Kk.muteOnStart&&(a.zZ=!0);var ru=Kk.loudnessNormalizationConfig;if(ru){ru.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);ru.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var Pq=ru.minimumLoudnessTargetLkfs;Pq!=null&&(a.minimumLoudnessTargetLkfs=Pq);var lEa=ru.maxStatefulTimeThresholdSec; +lEa!=null&&(a.maxStatefulTimeThresholdSec=lEa)}}var a9=me.playbackEndConfig;if(a9){var mEa=a9.endSeconds,nEa=a9.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(mEa&&(a.endSeconds=mEa),nEa&&(a.limitedPlaybackDurationInSeconds=nEa))}var IR=me.fairPlayConfig;if(IR){var oEa=IR.certificate;oEa&&(a.fb=dO(oEa));var pEa=Number(IR.keyRotationPeriodMs);pEa>0&&(a.zw=pEa);var qEa=Number(IR.keyPrefetchMarginMs);qEa>0&&(a.yw=qEa)}var kz=me.playbackStartConfig;if(kz){a.eD=Number(kz.startSeconds);var rEa=kz.liveUtcStartSeconds, +sEa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;rEa&&!sEa&&(a.liveUtcStartSeconds=Number(rEa));var b9=kz.startPosition;if(b9){var tEa=b9.utcTimeMillis;tEa&&!sEa&&(a.liveUtcStartSeconds=Number(tEa)*.001);var uEa=b9.streamTimeMillis;uEa&&(a.je=Number(uEa)*.001)}a.progressBarStartPosition=kz.progressBarStartPosition;a.progressBarEndPosition=kz.progressBarEndPosition}else{var c9=me.skippableSegmentsConfig;if(c9){var vEa=c9.introSkipDurationMs;vEa&&(a.kE=Number(vEa)/1E3);var wEa=c9.outroSkipDurationMs; +wEa&&(a.aD=Number(wEa)/1E3)}}var d9=me.skippableIntroConfig;if(d9){var xEa=Number(d9.startMs),yEa=Number(d9.endMs);isNaN(xEa)||isNaN(yEa)||(a.Cj=xEa,a.Qf=yEa)}var zEa=me.streamSelectionConfig;zEa&&(a.Sd=Number(zEa.maxBitrate));var AEa=me.vrConfig;AEa&&(a.VA=AEa.partialSpherical=="1");var TG=me.webDrmConfig;if(TG){TG.skipWidevine&&(a.oY=!0);var BEa=TG.widevineServiceCert;BEa&&(a.xm=dO(BEa));TG.useCobaltWidevine&&(a.useCobaltWidevine=!0);TG.startWithNoQualityConstraint&&(a.Zj=!0)}var xo=me.mediaCommonConfig; +if(xo){var JR=xo.dynamicReadaheadConfig;if(JR){a.maxReadAheadMediaTimeMs=JR.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=JR.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=JR.readAheadGrowthRateMs||NaN;var CEa,DEa=xo==null?void 0:(CEa=xo.mediaUstreamerRequestConfig)==null?void 0:CEa.videoPlaybackUstreamerConfig;DEa&&(a.Ei=dO(DEa));var e9=xo==null?void 0:xo.sabrContextUpdates;if(e9&&e9.length>0)for(var EEa=g.w(e9),f9=EEa.next();!f9.done;f9=EEa.next()){var tu=f9.value;if(tu.type&&tu.value){var xeb= +{type:tu.type,scope:tu.scope,value:dO(tu.value)||void 0,sendByDefault:tu.sendByDefault};a.sabrContextUpdates.set(tu.type,xeb)}}}var FEa=xo.serverPlaybackStartConfig;FEa&&(a.serverPlaybackStartConfig=FEa);xo.useServerDrivenAbr&&(a.bE=!0);var GEa=xo.requestPipeliningConfig;GEa&&(a.requestPipeliningConfig=GEa)}var HEa=me.inlinePlaybackConfig;HEa&&(a.m2=!!HEa.showAudioControls);var KR=me.embeddedPlayerConfig;if(KR){a.embeddedPlayerConfig=KR;var g9=KR.embeddedPlayerMode;if(g9){var IEa=a.U();IEa.Ga=g9; +IEa.C=g9==="EMBEDDED_PLAYER_MODE_PFL"}var JEa=KR.permissions;JEa&&(a.allowImaMonetization=!!JEa.allowImaMonetization)}var KEa=me.ssapConfig;KEa&&(a.I2=KEa.ssapPrerollEnabled||!1);var LR=me.webPlayerConfig;LR&&(LR.gatewayExperimentGroup&&(a.gatewayExperimentGroup=LR.gatewayExperimentGroup),LR.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Lk=a.playerResponse.streamingData;if(Lk){var LEa=Lk.adaptiveFormats;if(LEa){var MEa=Lk.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&MEa)for(var NEa= +g.w(LEa),h9=NEa.next();!h9.done;h9=NEa.next()){var MR=h9.value;!MR.url&&MR.distinctParams&&(MR.url=MEa+"&"+MR.distinctParams)}}var i9=Lk.formats;if(i9){for(var UG=[],OEa=g.w(i9),j9=OEa.next();!j9.done;j9=OEa.next()){var k9=j9.value;UG.push(k9.itag+"/"+k9.width+"x"+k9.height)}a.hE=UG.join(",");UG=[];for(var PEa=g.w(i9),l9=PEa.next();!l9.done;l9=PEa.next()){var VG=l9.value,WG={itag:VG.itag,type:VG.mimeType,quality:VG.quality},QEa=VG.url;QEa&&(WG.url=QEa);var NR=AL(VG),yeb=NR.AE,zeb=NR.VH,Aeb=NR.s;NR.pZ&& +(WG.url=yeb,WG.sp=zeb,WG.s=Aeb);UG.push(g.Ii(WG))}a.Sf=UG.join(",")}var m9=Lk.hlsFormats;if(m9){var REa=me||null,OR={};if(REa){var n9=REa.audioPairingConfig;if(n9&&n9.pairs)for(var SEa=g.w(n9.pairs),o9=SEa.next();!o9.done;o9=SEa.next()){var TEa=o9.value,p9=TEa.videoItag;OR[p9]||(OR[p9]=[]);OR[p9].push(TEa.audioItag)}}for(var UEa={},VEa=g.w(m9),q9=VEa.next();!q9.done;q9=VEa.next()){var WEa=q9.value;UEa[WEa.itag]=WEa.bitrate}for(var XEa=[],YEa=g.w(m9),r9=YEa.next();!r9.done;r9=YEa.next()){var Vh=r9.value, +im={itag:Vh.itag,type:Vh.mimeType,url:Vh.url,bitrate:Vh.bitrate,width:Vh.width,height:Vh.height,fps:Vh.fps},PR=Vh.audioTrack;if(PR){var ZEa=PR.displayName;ZEa&&(im.name=ZEa,im.audio_track_id=PR.id,PR.audioIsDefault&&(im.is_default="1"))}if(Vh.drmFamilies){for(var $Ea=[],aFa=g.w(Vh.drmFamilies),s9=aFa.next();!s9.done;s9=aFa.next())$Ea.push(lN[s9.value]);im.drm_families=$Ea.join(",")}var QR=OR[Vh.itag];if(QR&&QR.length){im.audio_itag=QR.join(",");var bFa=UEa[QR[0]];bFa&&(im.bitrate+=bFa)}var cFa=SHa(Vh); +cFa&&(im.eotf=cFa);Vh.audioChannels&&(im.audio_channels=Vh.audioChannels);XEa.push(g.Ii(im))}a.hlsFormats=XEa.join(",")}var t9=Lk.licenseInfos;if(t9&&t9.length>0){for(var dFa={},eFa=g.w(t9),u9=eFa.next();!u9.done;u9=eFa.next()){var fFa=u9.value,gFa=fFa.drmFamily,hFa=fFa.url;gFa&&hFa&&(dFa[lN[gFa]]=hFa)}a.le=dFa}var iFa=Lk.drmParams;iFa&&(a.drmParams=iFa);var jFa=Lk.dashManifestUrl;jFa&&(a.Wc=g.Ji(jFa,{cpn:a.clientPlaybackNonce}));var kFa=Lk.hlsManifestUrl;kFa&&(a.hlsvp=kFa);var lFa=Lk.probeUrl;lFa&& +(a.probeUrl=NC(g.Ji(lFa,{cpn:a.clientPlaybackNonce})));var mFa=Lk.serverAbrStreamingUrl;mFa&&(a.im=new g.uL(mFa,!0))}var nFa=a.playerResponse.trackingParams;nFa&&(a.Ma=nFa);var ad=a.playerResponse.videoDetails;if(ad){var jm=b,v9=ad.videoId;v9&&(a.videoId=v9,jm.video_id||(jm.video_id=v9));var oFa=ad.channelId;oFa&&(a.N.uid=oFa.substr(2));var w9=ad.title;w9&&(a.title=w9,jm.title||(jm.title=w9));var x9=ad.lengthSeconds;x9&&(a.lengthSeconds=Number(x9),jm.length_seconds||(jm.length_seconds=x9));var pFa= +ad.keywords;pFa&&(a.keywords=TKa(pFa));var y9=ad.channelId;y9&&(a.gm=y9,jm.ucid||(jm.ucid=y9));var qFa=ad.viewCount;qFa&&(a.rawViewCount=Number(qFa));var z9=ad.author;z9&&(a.author=z9,jm.author||(jm.author=z9));var rFa=ad.shortDescription;rFa&&(a.shortDescription=rFa);var sFa=ad.isCrawlable;sFa&&(a.isListed=sFa);var tFa=ad.musicVideoType;tFa&&(a.musicVideoType=tFa);var A9=ad.isLive;A9!=null&&(a.isLivePlayback=A9);if(A9||ad.isUpcoming)a.isPremiere=!ad.isLiveContent;var uFa=ad.thumbnail;uFa&&(a.Z=jP(uFa)); +var vFa=ad.isExternallyHostedPodcast;vFa&&(a.isExternallyHostedPodcast=vFa);var B9=ad.viewerLivestreamJoinPosition;if(B9==null?0:B9.utcTimeMillis)a.TC=Wd(B9.utcTimeMillis);var wFa=me||null,C9=b;ad.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);ad.isUpcoming&&(a.isUpcoming=!0);if(ad.isPostLiveDvr){a.Wd=!0;var xFa=ad.latencyClass;xFa&&(a.latencyClass=aLa[xFa]||"UNKNOWN");ad.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var D9=!1;if(a.yb)a.allowLiveDvr=ZN()?!0:Nr&&OP<5?!1:!0,a.isLivePlayback= +!0;else if(ad.isLive){C9.livestream="1";a.allowLiveDvr=ad.isLiveDvrEnabled?ZN()?!0:Nr&&OP<5?!1:!0:!1;a.Va=27;ad.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var zFa=ad.latencyClass;zFa&&(a.latencyClass=aLa[zFa]||"UNKNOWN");var AFa=ad.liveChunkReadahead;AFa&&(a.liveChunkReadahead=AFa);var lz=wFa&&wFa.livePlayerConfig;if(lz){lz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);lz.hasSubfragmentedWebm&&(a.KF=!0);lz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var BFa=lz.liveExperimentalContentId; +BFa&&(a.liveExperimentalContentId=Number(BFa));var CFa=lz.isLiveHeadPlayable;a.L("html5_live_head_playable")&&CFa!=null&&(a.isLiveHeadPlayable=CFa)}D9=!0}else ad.isUpcoming&&(D9=!0);D9&&(a.isLivePlayback=!0,C9.adformat&&C9.adformat.split("_")[1]!=="8"||a.Ga.push("heartbeat"),a.Wq=!0)}var DFa=ad.isPrivate;DFa!==void 0&&(a.isPrivate=Tr(a.isPrivate,DFa))}if(Z){var EFa=ad||null,FFa=!1,mz=Z.errorScreen;FFa=mz&&(mz.playerLegacyDesktopYpcOfferRenderer||mz.playerLegacyDesktopYpcTrailerRenderer||mz.ypcTrailerRenderer)? +!0:EFa&&EFa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Z.status);if(!FFa){a.errorCode=aKa(Z.errorCode)||"auth";var RR=mz&&mz.playerErrorMessageRenderer;if(RR){a.playerErrorMessageRenderer=RR;var GFa=RR.reason;GFa&&(a.errorReason=g.lx(GFa));var E9=RR.subreason;E9&&(a.Tn=g.lx(E9),a.Aw=E9)}else a.errorReason=Z.reason||null;var F9=Z.status;if(F9==="LOGIN_REQUIRED")a.errorDetail="1";else if(F9==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(F9==="AGE_CHECK_REQUIRED"){var HFa= +Z.errorScreen,IFa=HFa&&HFa.playerKavRenderer;a.errorDetail=IFa&&IFa.kavUrl?"4":"3"}else a.errorDetail=Z.isBlockedInRestrictedMode?"5":"0"}}var JFa=a.playerResponse.interstitialPods;JFa&&oKa(a,JFa);a.Xa&&a.eventId&&(a.Xa=Xq(a.Xa,{ei:a.eventId}));var G9=a.playerResponse.captions;if(G9&&G9.playerCaptionsTracklistRenderer)a:{var km=G9.playerCaptionsTracklistRenderer;a.captionTracks=[];if(km.captionTracks)for(var KFa=g.w(km.captionTracks),H9=KFa.next();!H9.done;H9=KFa.next()){var lm=H9.value,LFa=QKa(lm.baseUrl); +if(!LFa)break a;var I9={is_translateable:!!lm.isTranslatable,languageCode:lm.languageCode,languageName:lm.name&&g.lx(lm.name),url:LFa,vss_id:lm.vssId,kind:lm.kind};I9.name=lm.trackName;I9.displayName=lm.name&&g.lx(lm.name);a.captionTracks.push(new g.eP(I9))}a.LD=km.audioTracks||[];a.W_=km.defaultAudioTrackIndex||0;a.lw=[];if(km.translationLanguages)for(var MFa=g.w(km.translationLanguages),J9=MFa.next();!J9.done;J9=MFa.next()){var nz=J9.value,vu={};vu.languageCode=nz.languageCode;vu.languageName=g.lx(nz.languageName); +if(nz.translationSourceTrackIndices){vu.translationSourceTrackIndices=[];for(var NFa=g.w(nz.translationSourceTrackIndices),K9=NFa.next();!K9.done;K9=NFa.next())vu.translationSourceTrackIndices.push(K9.value)}if(nz.excludeAudioTrackIndices){vu.excludeAudioTrackIndices=[];for(var OFa=g.w(nz.excludeAudioTrackIndices),L9=OFa.next();!L9.done;L9=OFa.next())vu.excludeAudioTrackIndices.push(L9.value)}a.lw.push(vu)}a.OD=[];if(km.defaultTranslationSourceTrackIndices)for(var PFa=g.w(km.defaultTranslationSourceTrackIndices), +M9=PFa.next();!M9.done;M9=PFa.next())a.OD.push(M9.value);a.jw=!!km.contribute&&!!km.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.eD=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&qKa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var QFa; +a.compositeLiveIngestionOffsetToken=(QFa=a.playerResponse.playbackTracking)==null?void 0:QFa.compositeLiveIngestionOffsetToken;var RFa;a.compositeLiveStatusToken=(RFa=a.playerResponse.playbackTracking)==null?void 0:RFa.compositeLiveStatusToken}LP(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var SFa=b.hlsdvr;SFa!=null&&(a.allowLiveDvr=SFa=="1"?ZN()?!0:Nr&&OP<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Vv||(a.Vv=b.encoded_ad_safety_reason||null);a.DX=b.agcid||null;a.iD=b.ad_id||null;a.mD=b.ad_sys|| +null;a.cE=b.encoded_ad_playback_context||null;a.bl=Tr(a.bl,b.infringe||b.muted);a.Hfa=b.authkey;a.Tda=b.authuser;a.mutedAutoplay=Tr(a.mutedAutoplay,b&&b.playmuted);a.MD=Tr(a.MD,b&&b.mutedautoplay);var SR=b.length_seconds;SR&&(a.lengthSeconds=typeof SR==="string"?Wd(SR):SR);if(a.isAd()||a.Cn||!g.$r(g.DO(a.Da)))a.endSeconds=Vr(a.endSeconds,a.aD||b.end||b.endSeconds);else{var TR=a.lengthSeconds;switch(g.DO(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":TR>30?a.limitedPlaybackDurationInSeconds= +30:TR<30&&TR>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=TR*.2}}a.Ma=Wr(a.Ma,b.itct);a.gF=Tr(a.gF,b.noiba);a.cG=Tr(a.cG,b.is_live_destination);a.isLivePlayback=Tr(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Vb();b.isUpcoming&&(a.isUpcoming=Tr(a.isUpcoming,b.isUpcoming));a.Wd=Tr(a.Wd,b.post_live_playback);a.La&&(a.Wd=!1);a.isMdxPlayback=Tr(a.isMdxPlayback,b.mdx); +var UR=b.mdx_control_mode;UR&&(a.mdxControlMode=typeof UR==="number"?UR:Wd(UR));a.isInlinePlaybackNoAd=Tr(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.yc=Vr(a.yc,b.reload_count);a.reloadReason=Wr(a.reloadReason,b.reload_reason);a.jm=Tr(a.jm,b.show_content_thumbnail);a.yG=Tr(a.yG,b.utpsa);a.RD=Tr(a.RD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.TD=b.tkn||null;var TFa=iP(b);Object.keys(TFa).length>0&&(a.Z=TFa);a.ra=Wr(a.ra,b.vvt);a.mdxEnvironment=Wr(a.mdxEnvironment,b.mdx_environment); +b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);a.G4=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Wr(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?Vr(0,b.index):Vr(a.playlistIndex,b.index));a.NW=b.pyv_view_beacon_url;a.RW=b.pyv_quartile25_beacon_url;a.TW=b.pyv_quartile50_beacon_url;a.VW=b.pyv_quartile75_beacon_url;a.PW= +b.pyv_quartile100_beacon_url;var UFa=b.session_data;!a.gX&&UFa&&(a.gX=Rq(UFa,"&").feature);a.isFling=Vr(a.isFling?1:0,b.is_fling)==1;a.vnd=Vr(a.vnd,b.vnd);a.forceAdsUrl=Wr(a.forceAdsUrl,b.force_ads_url);a.mj=Wr(a.mj,b.ctrl);a.Rj=Wr(a.Rj,b.ytr);a.Sw=b.ytrcc;a.EX=b.ytrexp;a.ID=b.ytrext;a.wc=Wr(a.wc,b.adformat);a.MC=Wr(a.MC,b.attrib);a.slotPosition=Vr(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.bq=Tr(a.bq,b.ssrt);a.videoId=Yr(b)||a.videoId;a.K=Wr(a.K,b.vss_credentials_token);a.An=Wr(a.An,b.vss_credentials_token_type); +a.Nj=Tr(a.Nj,b.audio_only);a.fE=Tr(a.fE,b.aac_high);a.dD=Tr(a.dD,b.prefer_low_quality_audio);a.ZD=Tr(a.ZD,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.Dp=a.Dp.concat(b.qoe_cat.split(","))):a.uh=Wr(a.uh,b.qoe_cat);a.En=Tr(a.En,b.download_media);var VFa=b.prefer_gapless;var Beb=VFa!=null?Tr(a.Y,VFa):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=Beb;NAa(a.playerResponse)&&(a.adModule=!0,a.Ga.push("ad"));var WFa=b.adaptive_fmts;WFa&&(a.adaptiveFormats=WFa,a.oa("adpfmts", +{},!0));var XFa=b.allow_embed;XFa&&(a.allowEmbed=XFa=="1");var YFa=b.backgroundable;YFa&&(a.backgroundable=YFa=="1");var ZFa=b.autonav;ZFa&&(a.isAutonav=ZFa=="1");var N9=b.autoplay;N9&&(a.Oq=N9=="1",a.Qk=N9=="1");var $Fa=b.iv_load_policy;$Fa&&(a.annotationsLoadPolicy=Ur(a.annotationsLoadPolicy,$Fa,EO));var aGa=b.cc_lang_pref;aGa&&(a.captionsLanguagePreference=Wr(aGa,a.captionsLanguagePreference));var bGa=b.cc_load_policy;bGa&&(a.bD=Ur(a.bD,bGa,EO));var cGa;a.deviceCaptionsOn=(cGa=b.device_captions_on)!= +null?cGa:void 0;var dGa;a.k0=(dGa=b.device_captions_lang_pref)!=null?dGa:"";var eGa;a.dE=(eGa=b.viewer_selected_caption_langs)!=null?eGa:[];if(!a.L("html5_enable_ssap_entity_id")){var fGa=b.cached_load;fGa&&(a.Jp=Tr(a.Jp,fGa))}b.dash=="0"&&(a.UD=!0);var gGa=b.dashmpd;gGa&&(a.Wc=g.Ji(gGa,{cpn:a.clientPlaybackNonce}));var hGa=b.delay;hGa&&(a.Kb=Wd(hGa));var iGa=a.aD||b.end;iGa!=void 0&&(a.clipEnd=Vr(a.clipEnd,iGa));var jGa=b.fmt_list;jGa&&(a.hE=jGa);b.heartbeat_preroll&&a.Ga.push("heartbeat");a.Bn= +-Math.floor(Math.random()*10);a.Qv=-Math.floor(Math.random()*40);var kGa=b.is_listed;kGa&&(a.isListed=Tr(a.isListed,kGa));var lGa=b.is_private;lGa&&(a.isPrivate=Tr(a.isPrivate,lGa));var mGa=b.is_dni;mGa&&(a.Ff=Tr(a.Ff,mGa));var nGa=b.dni_color;nGa&&(a.Sp=Wr(a.Sp,nGa));var oGa=b.pipable;oGa&&(a.pipable=Tr(a.pipable,oGa));a.ZX=a.pipable&&a.Da.Zq;a.eZ=a.ZX&&!a.Da.showMiniplayerButton;var pGa=b.paid_content_overlay_duration_ms;pGa&&(a.paidContentOverlayDurationMs=Wd(pGa));var qGa=b.paid_content_overlay_text; +qGa&&(a.paidContentOverlayText=qGa);var rGa=b.url_encoded_fmt_stream_map;rGa&&(a.Sf=rGa);var sGa=b.hls_formats;sGa&&(a.hlsFormats=sGa);var tGa=b.hlsvp;tGa&&(a.hlsvp=tGa);var VR=b.live_start_walltime;VR&&(a.yI=typeof VR==="number"?VR:Wd(VR));var WR=b.live_manifest_duration;WR&&(a.dk=typeof WR==="number"?WR:Wd(WR));var uGa=b.player_params;uGa&&(a.playerParams=uGa);var vGa=b.partnerid;vGa&&(a.Va=Vr(a.Va,vGa));var wGa=b.probe_url;wGa&&(a.probeUrl=NC(g.Ji(wGa,{cpn:a.clientPlaybackNonce})));var O9=b.pyv_billable_url; +O9&&nva(O9)&&(a.Fj=O9);var P9=b.pyv_conv_url;P9&&nva(P9)&&(a.OW=P9);UKa(a,b);a.startSeconds>0||(a.startSeconds=Vr(a.startSeconds,a.eD||a.kE||b.start||b.startSeconds),a.Ob=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var xGa=b.live_utc_start;if(xGa!=null)a.liveUtcStartSeconds=Number(xGa);else{var Q9=a.startSeconds;Q9&&isFinite(Q9)&&Q9>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var yGa=b.utc_start_millis;yGa&&(a.liveUtcStartSeconds= +Number(yGa)*.001)}var zGa=b.stream_time_start_millis;zGa&&(a.je=Number(zGa)*.001);var AGa=a.kE||b.start;AGa==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=Vr(a.clipStart,AGa));var BGa=b.url_encoded_third_party_media;BGa&&(a.wm=Uq(BGa));var R9=b.ypc_offer_button_formatted_text;if(R9){var CGa=JSON.parse(R9);a.fO=CGa!=null?CGa:null;a.P1=R9}var DGa=b.ypc_offer_button_text;DGa&&(a.nz=DGa);var EGa=b.ypc_offer_description;EGa&&(a.Zq=EGa);var FGa=b.ypc_offer_headline;FGa&&(a.oz=FGa);var GGa=b.ypc_full_video_message; +GGa&&(a.Bq=GGa);var HGa=b.ypc_offer_id;HGa&&(a.ym=HGa);var IGa=b.ypc_buy_url;IGa&&(a.UC=IGa);var JGa=b.ypc_item_thumbnail;JGa&&(a.VC=JGa);var KGa=b.ypc_item_title;KGa&&(a.Iq=KGa);var LGa=b.ypc_item_url;LGa&&(a.WC=LGa);var MGa=b.ypc_vid;MGa&&(a.Ov=MGa);b.ypc_overlay_timeout&&(a.ir=Number(b.ypc_overlay_timeout));var NGa=b.ypc_trailer_player_vars;NGa&&(a.zm=Tq(NGa));var OGa=b.ypc_original_itct;OGa&&(a.T4=OGa);a.gm=Wr(a.gm,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid= +b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=Tr(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=Tr(a.N.rmktEnabled,b.rmktEnabled);a.sB=b.storyboard_spec||null;a.Cw=b.live_storyboard_spec||null;a.dV=b.iv_endscreen_url||null;a.jH=Tr(a.jH,b.iv3_module);a.Wq=Tr(a.Wq,b.ypc_license_checker_module);a.Oj=Tr(a.Oj,b.ypc_module);a.Fi=Tr(a.Fi,b.ypc_clickwrap_module);a.Oj&&a.Ga.push("ypc");a.Fi&&a.Ga.push("ypc_clickwrap"); +a.EW={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};PKa(a,b);var PGa=b.cotn; +PGa&&(a.cotn=PGa);if(bLa(a))PP(a)&&(a.isLivePlayback&&a.Wc&&(a.Aj=!0),a.fb&&(a.yp=!0));else if(cLa(a))a.Aj=!0;else{var SGa,TGa,UGa=((SGa=a.playerResponse)==null?void 0:(TGa=SGa.streamingData)==null?void 0:TGa.adaptiveFormats)||[];if(UGa.length>0)var YG=dLa(a,UGa);else{var WGa=a.adaptiveFormats;if(WGa&&!PP(a)){QP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(xN=!0);var oz=RP(WGa),S9=a.le,XGa=a.lengthSeconds,Ceb=a.isLivePlayback,ZG=a.Wd,pz=a.Da,Deb=hIa(oz);if(Ceb||ZG){var Fj=new jN("",pz==null? +void 0:pz.experiments,!0);Fj.Vb=!0;Fj.isManifestless=!0;Fj.B=!ZG;Fj.isLive=!ZG;Fj.Wd=ZG;for(var YGa=g.w(oz),T9=YGa.next();!T9.done;T9=YGa.next()){var qz=T9.value,ZGa=nN(qz,S9),wu=oN(qz.url,qz.sp,qz.s),$Ga=wu.get("id");$Ga&&$Ga.includes("%7E")&&(Fj.qa=!0);var Eeb=Number(qz.target_duration_sec)||5,Feb=Number(qz.max_dvr_duration_sec)||14400,aHa=Number(wu.get("mindsq")||wu.get("min_sq")||"0"),bHa=Number(wu.get("maxdsq")||wu.get("max_sq")||"0")||Infinity;Fj.bf=Fj.bf||aHa;Fj.xi=Fj.xi||bHa;var Geb=!IE(ZGa.mimeType); +wu&&gN(Fj,new TM(wu,ZGa,{Vj:Eeb,Ln:Geb,Dr:Feb,bf:aHa,xi:bHa,pB:300,Wd:ZG}))}var cHa=Fj}else{if(Deb==="FORMAT_STREAM_TYPE_OTF"){var ZR=XGa;ZR=ZR===void 0?0:ZR;var rz=new jN("",pz==null?void 0:pz.experiments,!1);rz.duration=ZR||0;for(var dHa=g.w(oz),U9=dHa.next();!U9.done;U9=dHa.next()){var sz=U9.value,V9=nN(sz,S9,rz.duration),W9=oN(sz.url,sz.sp,sz.s);if(W9)if(V9.streamType==="FORMAT_STREAM_TYPE_OTF")gN(rz,new UM(W9,V9,"sq/0"));else{var Heb=yM(sz.init),Ieb=yM(sz.index);gN(rz,new dN(W9,V9,Heb,Ieb))}}rz.isOtf= +!0;var eHa=rz}else{var $R=XGa;$R=$R===void 0?0:$R;var aS=new jN("",pz==null?void 0:pz.experiments,!1);aS.duration=$R||0;for(var fHa=g.w(oz),X9=fHa.next();!X9.done;X9=fHa.next()){var tz=X9.value,Jeb=nN(tz,S9,aS.duration),Keb=yM(tz.init),Leb=yM(tz.index),gHa=oN(tz.url,tz.sp,tz.s);gHa&&gN(aS,new dN(gHa,Jeb,Keb,Leb))}eHa=aS}cHa=eHa}var Y9=cHa;if(oz.length>0){var hHa=oz[0];if(a.U().playerStyle==="hangouts-meet"&&hHa.url){var Meb=g.Vq(hHa.url);a.lq=a.lq||Number(Meb.expire)}}var Neb=a.isLivePlayback&&!a.Wd&& +!a.La&&!a.isPremiere;a.L("html5_live_head_playable")&&(!SP(a)&&Neb&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(Y9.fb=!0));Y9.Xa=TP(a);YG=Y9}else YG=null;a.oa("pafmts",{isManifestFilled:!!YG})}if(YG){UP(a,YG);var iHa=!0}else iHa=!1;iHa?a.enableServerStitchedDai=a.enableServerStitchedDai&&VP(a):a.Wc&&(a.Da.qa==="yt"&&a.Vb()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")?a.oa("deprecateMflFallback",{}):a.Aj=!0)}var $9=b.adpings;$9&&(a.Uv=$9?Tq($9):null);var jHa= +b.feature;jHa&&(a.Ep=jHa);var kHa=b.referrer;kHa&&(a.referrer=kHa);a.clientScreenNonce=Wr(a.clientScreenNonce,b.csn);a.BH=Vr(a.BH,b.root_ve_type);a.zp=Vr(a.zp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.OB=Tr(a.OB,b.upg_content_filter_mode);a.unpluggedFilterModeType=Vr(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var lHa=b.unplugged_location_info;lHa&&(a.qa=lHa);var mHa=b.unplugged_partner_opt_out;mHa&&(a.gD=Wr("",mHa));a.uw=Tr(a.uw,b.disable_watch_next); +a.Hn=Wr(a.Hn,b.internal_ip_override);a.bG=!!b.is_yto_interstitial;(a.interstitials.length||a.bG)&&a.Ga.push("yto");var nHa=b.Xm;nHa&&(a.Xm=nHa);b.MM&&(a.MM=b.MM);var oHa;a.Ya=(oHa=b.csi_timer)!=null?oHa:"";a.Gn=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var xu=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&xu&&cKa(a,xu);if(xu==null?0:xu.ustreamerConfig)a.qp=dO(xu.ustreamerConfig);var pHa,qHa,rHa=xu==null?void 0:(pHa=xu.loggingContext)==null?void 0:(qHa=pHa.qoeLoggingContext)== +null?void 0:qHa.serializedContextData;rHa&&(a.Q4=rHa);g.uO(a.Da)&&a.Da.hm&&(a.embedsRct=Wr(a.embedsRct,b.rct),a.embedsRctn=Wr(a.embedsRctn,b.rctn));a.jl=a.jl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)}; +SKa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.WP(a)&&!e&&a.Ky("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Jp||!e?"":(XP.has(e)?c="":(b=eLa.push(e),XP.add(e),b>(c!=null?c:50)&&(c=eLa.shift())&&XP.delete(c),c=e),e!==c&&a.Ky("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)}; +LP=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Wa=c;var e=a.Wa.playerCueRangeSet;e&&g.NP(a,e);var f=a.Wa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.Q(l,fLa),a.L("web_player_autonav_use_server_provided_state")&&YP(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=m.playerOverlayVideoDetailsRenderer; +p&&(p.title&&(b.title=g.lx(p.title)),p.subtitle&&(b.subtitle=g.lx(p.subtitle)))}g.AO(a.Da)&&(a.We=!!h.addToMenu);gLa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.Afa=g.Q(q,hLa));var r,t,u,y=g.Q((r=a.getWatchNextResponse())==null?void 0: +(t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,iLa);if(y){a.jE=Number(y==null?void 0:y.durationMs)||NaN;if(y==null?0:y.infoPanelOverviewViewModel)a.Pf=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)a.bk=y==null?void 0:y.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,D,F=(A=a.getWatchNextResponse())==null?void 0:(D=A.contents)==null?void 0:D.twoColumnWatchNextResults;if(F){var H=F.desktopOverlay&& +g.Q(F.desktopOverlay,jLa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.We=!1))}n&&kLa(a,b,n);var N=Vr(0,b.autoplay_count),M=a.getWatchNextResponse(),X,V=(X=M.contents)==null?void 0:X.twoColumnWatchNextResults,fa,pa,Z,R=(fa=M.playerOverlays)==null?void 0:(pa=fa.playerOverlayRenderer)==null?void 0:(Z=pa.autoplay)==null?void 0:Z.playerOverlayAutoplayRenderer,W=sKa(a),v,U=(v=M.contents)==null?void 0:v.singleColumnWatchNextResults;if(U){var cb;if(((cb=U.autoplay)==null? +0:cb.autoplay)&&!U.playlist){var Ab=U.autoplay.autoplay.sets,Va={},fb=new g.pP(a.U()),bb=null,pb;if(Ab){for(var $a=g.w(Ab),B=$a.next();!B.done;B=$a.next()){var C=B.value.autoplayVideoRenderer;if(C&&C.compactVideoRenderer){bb=C.compactVideoRenderer;break}}if(pb=Ab[0].autoplayVideo){var E=pb.clickTrackingParams;E&&(Va.itct=E);Va.autonav="1";Va.playnext=String(N)}}else Va.feature="related-auto";var I=g.Q(pb,g.ZP);if(bb){fb.videoId=bb.videoId;var L=bb.shortBylineText;L&&(fb.author=g.lx(L));var Y=bb.title; +Y&&(fb.title=g.lx(Y))}else I!=null&&I.videoId&&(fb.videoId=I.videoId);fb.XE=Va;a.suggestions=[];a.Xv=fb}}if(W){for(var ha=[],ca=g.w(W),K=ca.next();!K.done;K=ca.next()){var la=K.value,qa=void 0,ka=null;if(la.endScreenVideoRenderer){var Ha=la.endScreenVideoRenderer,lb=Ha.title;ka=new g.pP(a.U());ka.videoId=Ha.videoId;ka.lengthSeconds=Ha.lengthInSeconds||0;var Pb=Ha.publishedTimeText;Pb&&(ka.publishedTimeText=g.lx(Pb));var qc=Ha.shortBylineText;qc&&(ka.author=g.lx(qc));var Pa=Ha.shortViewCountText;Pa&& +(ka.shortViewCount=g.lx(Pa));if(lb){ka.title=g.lx(lb);var Oc=lb.accessibility;if(Oc){var le=Oc.accessibilityData;le&&le.label&&(ka.ariaLabel=le.label)}}var Kd=Ha.navigationEndpoint;if(Kd){qa=Kd.clickTrackingParams;var Lg=g.Q(Kd,g.ZP),jg=g.Q(Kd,g.Fx);Lg?ka.YE=Lg:jg!=null&&(ka.watchUrl=jg.url)}var Sh=Ha.thumbnailOverlays;if(Sh)for(var Pc=g.w(Sh),Th=Pc.next();!Th.done;Th=Pc.next()){var vh=Th.value.thumbnailOverlayTimeStatusRenderer;if(vh)if(vh.style==="LIVE"){ka.isLivePlayback=!0;break}else if(vh.style=== +"UPCOMING"){ka.isUpcoming=!0;break}}ka.Z=jP(Ha.thumbnail)}else if(la.endScreenPlaylistRenderer){var kg=la.endScreenPlaylistRenderer,wh=kg.navigationEndpoint;if(!wh)continue;var hd=g.Q(wh,g.ZP);if(!hd)continue;var Dj=hd.videoId;ka=new g.oP(a.U());ka.playlistId=kg.playlistId;ka.playlistLength=Number(kg.videoCount)||0;ka.j=Dj||null;ka.videoId=Dj;var Ik=kg.title;Ik&&(ka.title=g.lx(Ik));var Jk=kg.shortBylineText;Jk&&(ka.author=g.lx(Jk));qa=wh.clickTrackingParams;ka.Z=jP(kg.thumbnail)}ka&&(qa&&(ka.sessionData= +{itct:qa}),ha.push(ka))}a.suggestions=ha}if(R){a.FW=!!R.preferImmediateRedirect;a.Rf=a.Rf||!!R.webShowNewAutonavCountdown;a.lm=a.lm||!!R.webShowBigThumbnailEndscreen;if(a.Rf||a.lm){var Ej=V||null,$c=new g.pP(a.U());$c.videoId=R.videoId;var Uh=R.videoTitle;if(Uh){$c.title=g.lx(Uh);var jc=Uh.accessibility;if(jc){var uo=jc.accessibilityData;uo&&uo.label&&($c.ariaLabel=uo.label)}}var Mq=R.byline;Mq&&($c.author=g.lx(Mq));var rc=R.publishedTimeText;rc&&($c.publishedTimeText=g.lx(rc));var vG=R.shortViewCountText; +vG&&($c.shortViewCount=g.lx(vG));var wG=R.thumbnailOverlays;if(wG)for(var xG=g.w(wG),az=xG.next();!az.done;az=xG.next()){var gm=az.value.thumbnailOverlayTimeStatusRenderer;if(gm)if(gm.style==="LIVE"){$c.isLivePlayback=!0;break}else if(gm.style==="UPCOMING"){$c.isUpcoming=!0;break}else if(gm.style==="DEFAULT"&&gm.text){$c.lengthText=g.lx(gm.text);var yG=gm.text.accessibility;if(yG){var nu=yG.accessibilityData;nu&&nu.label&&($c.Qx=nu.label||"")}break}}$c.Z=jP(R.background);var zG=R.nextButton;if(zG){var AG= +zG.buttonRenderer;if(AG){var BG=AG.navigationEndpoint;if(BG){var ou=g.Q(BG,g.ZP);ou&&($c.YE=ou)}}}if(R.topBadges){var CG=R.topBadges[0];if(CG){var Ei=g.Q(CG,lLa);Ei&&Ei.style==="BADGE_STYLE_TYPE_PREMIUM"&&($c.MM=!0)}}var pu=R.alternativeTitle;pu&&($c.Et=g.lx(pu));var Nq={autonav:"1",playnext:String(N)};$c.playlistId&&(Nq.autoplay="1");if(Ej){var CR,DG,DR,bz,EG=(CR=Ej.autoplay)==null?void 0:(DG=CR.autoplay)==null?void 0:(DR=DG.sets)==null?void 0:(bz=DR[0])==null?void 0:bz.autoplayVideo;if(EG){var ER= +EG.clickTrackingParams;ER&&(Nq.itct=ER);var Mg=g.Q(EG,g.ZP);Mg&&($c.nX=Mg)}}else if(R){var cz,FG,GG,HG=(cz=R.nextButton)==null?void 0:(FG=cz.buttonRenderer)==null?void 0:(GG=FG.navigationEndpoint)==null?void 0:GG.clickTrackingParams;HG&&(Nq.itct=HG)}Nq.itct||(Nq.feature="related-auto");$c.XE=Nq;a.suggestions||(a.suggestions=[]);a.Xv=$c}R.countDownSecs!=null&&(a.f_=R.countDownSecs*1E3);R.countDownSecsForFullscreen!=null&&(a.JD=R.countDownSecsForFullscreen>=0?R.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var dz; +a.x4=(dz=R.nextButton)==null?void 0:dz.buttonRenderer}var IG;a.Ifa=(IG=R.cancelButton)==null?void 0:IG.buttonRenderer;a.L("web_autonav_color_transition")&&R.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Q(R.watchToWatchTransitionRenderer,mLa))}var ez=sKa(a);if(ez){var JG,KG,LG,MG=ez==null?void 0:(JG=ez[0])==null?void 0:(KG=JG.endScreenVideoRenderer)==null?void 0:(LG=KG.navigationEndpoint)==null?void 0:LG.clickTrackingParams,FR=g.$P(a);MG&&FR&&(FR.sessionData={itct:MG})}a.Wa.currentVideoThumbnail&& +(a.Z=jP(a.Wa.currentVideoThumbnail));var NG,fz,OG,PG,vo,me=(NG=a.Wa)==null?void 0:(fz=NG.contents)==null?void 0:(OG=fz.twoColumnWatchNextResults)==null?void 0:(PG=OG.results)==null?void 0:(vo=PG.results)==null?void 0:vo.contents;if(me&&me[1]){var wo,gz,hz,iz,Oq=(wo=me[1].videoSecondaryInfoRenderer)==null?void 0:(gz=wo.owner)==null?void 0:(hz=gz.videoOwnerRenderer)==null?void 0:(iz=hz.thumbnail)==null?void 0:iz.thumbnails;Oq&&Oq.length&&(a.profilePicture=Oq[Oq.length-1].url)}var GR=Yr(b),hm,QG=(hm= +a.getWatchNextResponse())==null?void 0:hm.onResponseReceivedEndpoints;if(QG)for(var RG=g.w(QG),jz=RG.next();!jz.done;jz=RG.next()){var Kk=jz.value;g.Q(Kk,aQ)&&(a.eV=g.Q(Kk,aQ));var qu=g.Q(Kk,nLa),SG=void 0;if((SG=qu)==null?0:SG.entityKeys)a.Dw=qu.entityKeys||[],qu.visibleOnLoadKeys&&(a.visibleOnLoadKeys=qu.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var HR=g.bQ.getState().entities,ru=g.rK("visibility_override","markersVisibilityOverrideEntity");var Pq=tK(HR,"markersVisibilityOverrideEntity", +ru);a.hf=(Pq==null?void 0:Pq.videoId)===(a.videoId||GR)&&(Pq==null?0:Pq.visibilityOverrideMarkersKey)?Pq.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.x(a.hf))}}}; +YP=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0}; +cQ=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; +gQ=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&dQ(a)&&(b=!1);var c=!!a.j&&a.j.Vb,d=a.Da,e=a.cR(),f=eQ(a),h=a.fE,l=b,m=a.isOtf();b=a.YI();var n=a.yb,p=a.Tf,q=fQ(a),r=new FIa(d);if(d.zc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.Ma=h&&d.N;r.Tf=p;g.Er("windows nt 5.1")&&!g.KN&&(r.Vo=!0);if(f=e)f=g.SO(d)?DJa(d):!1;f&&(r.Aa=!0);l&&(r.Vo=!0,r.wc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.Vo=!0);d.playerStyle==="picasaweb"&&(m&&(r.Vo=!1),r.Fa=!1);n&&(r.Vo=!0);sL(d.G,tL.CHANNELS)&& +(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.La=!0));d.L("html5_block_8k_hfr")&&(r.Xa=!0);r.K=g.ZB(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.ZB(d.experiments,"html5_min_selectable_quality_ordinal");YN&&(r.Tb=480);if(c||e)r.Fa=!1;r.fb=!1;r.disableAv1=q;c=BN(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(WE()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+WE(),r.xj=c);c>=2160&& +(r.Ga=!0);$Ba()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.yc=!1);r.YI=b;r.Va=g.Nt||Rr()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");Hr()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.Sv&&(r.qa=a.Sv),a.Rv&&(r.C=a.Rv));r.Ra=a.isLivePlayback&&a.ej()&&a.Da.L("html5_drm_live_audio_51");r.yb= +a.WD;return a.uf=r}; +fQ=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&dQ(a)?!0:!1}; +oLa=function(a){Oz("drm_pb_s",void 0,a.Ya);a.fb||a.j&&nL(a.j);var b={};a.j&&(b=hDa(a.qw,gQ(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set)); +b=new QN(b,a.Da,a.oY,a.useCobaltWidevine?Hr()?hQ(a):!1:!1,function(c,d){a.oa(c,d)}); +g.P(a,b);a.yp=!1;a.loading=!0;PIa(b,function(c){Oz("drm_pb_f",void 0,a.Ya);for(var d=g.w(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.fb=a.fb;e.zw=a.zw;e.yw=a.yw;break;case "widevine":e.xm=a.xm}a.Cp=c;if(a.Cp.length>0&&(a.G=a.Cp[0],a.Da.zc())){c={};d=g.w(Object.entries(a.G.j));for(e=d.next();!e.done;e=d.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}KP(a)})}; +dLa=function(a,b){if(b.length===0||PP(a))return null;QP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(xN=!0);var c=a.le;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Wd,h=a.Da,l=iIa(b);if(e||f){h=new jN("",h.experiments,!0);h.B=!f;h.Vb=!0;h.isManifestless=!0;h.isLive=!f;h.Wd=f;b=g.w(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=mN(m,c);e=AL(m);e=oN(e.AE||m.url||"",e.VH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.qa=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400); +var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.bf=h.bf||n;h.xi=h.xi||p;var q=!IE(d.mimeType);e&&gN(h,new TM(e,d,{Vj:l,Ln:q,Dr:m,bf:n,xi:p,pB:300,Wd:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new jN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=mN(b,c,f.duration),e=AL(b),(e=oN(e.AE||b.url||"",e.VH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?gN(f,new UM(e,d,"sq/0")): +gN(f,new dN(e,d,AM(b.initRange),AM(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new jN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=mN(l,c,f.duration),d=AM(l.initRange),e=AM(l.indexRange),m=AL(l),(l=oN(m.AE||l.url||"",m.VH,m.s))&&gN(f,new dN(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Wd&&!a.La&&!a.isPremiere;a.L("html5_live_head_playable")&&(!SP(a)&&f&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(c.fb=!0));c.Xa=TP(a);return c}; +PP=function(a){return Hr()?!hQ(a):Kr()?!(!a.fb||!a.L("html5_enable_safari_fairplay")):!1}; +hQ=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.NP=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.KD.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}}; +VP=function(a){return!(!a.j||!a.j.isManifestless)}; +iQ=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&sN(a.j)>=5}; +bLa=function(a){return Hr()&&hQ(a)?!1:PP(a)&&g.kC(a.Da)&&!a.isLivePlayback||!ZN()||a.UD?!0:!1}; +qLa=function(a){a.loading=!0;a.Aj=!1;if(cLa(a))g.CKa(a.videoId).then(function(c){pLa(a,c)}).then(function(){KP(a)}); +else{LC(a.Wc)||g.Cw(new g.Ks("DASH MPD Origin invalid: ",a.Wc));var b=a.Wc;b=g.Ji(b,{mpd_version:g.ZB(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.Ji(b,{pacing:0}));qIa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.Ka()||(UP(a,c,!0),Oz("mrc",void 0,a.Ya),KP(a))},function(c){a.Ka()||(a.loading=!1,a.publish("dataloaderror",new fE("manifest.net.retryexhausted",{backend:"manifest", +rc:c.status},1)))}); +Oz("mrs",void 0,a.Ya)}}; +pLa=function(a,b){var c=b.map(function(m){return m.itag}),d; +if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.w(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={bj:void 0},f=e.next())if(h.bj=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.w(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.bj.itag&&l.xtags===h.bj.xtags&&(h.bj=Object.assign({},h.bj),h.bj.url=b.find(function(m){return function(n){return n.itag===m.bj.itag}}(h)).url,h.bj.signatureCipher="",d.push(h.bj))}else c.includes(h.bj.itag)&& +(h.bj=Object.assign({},h.bj),h.bj.url=b.find(function(m){return function(n){return n.itag===m.bj.itag}}(h)).url,h.bj.signatureCipher="",d.push(h.bj)); +b=dLa(a,d);eQ(a)&&uIa(b,!1);UP(a,b);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.zI?a.zI.cotn:"0",cpn:a.clientPlaybackNonce})}; +jQ=function(a){if(!a.isProximaLatencyEligible)return!1;var b=OK(),c;return((c=a.Da.getWebPlayerContextConfig())==null?0:c.enableProximaLowLatency)&&a.L("html5_wpcc_proxima")?!0:b!=null?b===1:a.L("html5_enable_proxima")}; +KP=function(a){a.Ka()||(a.loading=!1,a.publish("dataloaded"))}; +UP=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.P(a,b);b.bf=a.bf;b.xi=a.xi;b.Ra=a.Ra;b.Tb=a.Tb;b.Rc=a.Rc;a.im&&(b.Y=new rM(a.im));(a.cR()||g.kQ(a))&&a.Ga.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.dk=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.z0,a):b.subscribe("cuepointsadded",a.FX,a));nL(b)?a.yp=!0:SN=void 0;a.La&&(b.C=a.La,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere= +a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable}; +sLa=function(a,b){var c=b||bLa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.UD,mss:ZN(),"3pp":a.isExternallyHostedPodcast}),vr();eQ(a)&&uIa(a.j,a.isLivePlayback);QP(a,"html5_enable_cobalt_experimental_vp9_decoder")&&dJa(a.Da.G);return wr().then(function(){return jDa(a.qw,gQ(a),a.Da.G,a.j,a.G,function(d){return a.publish("ctmp","fmtflt",d)},a.ZC,TP(a)&&a.L("html5_enable_server_format_filter")).then(function(d){rLa(a,d); +a.qw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.uf&&a.oa("av1",a.uf.j)})})}; +tLa=function(a,b){if(b&&a.hlsvp)return vr();if(a.hlsFormats){b=RP(a.hlsFormats);var c;if(((c=a.uf)==null?0:c.B)&&b){c=[];for(var d=g.w(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.Bw=RJa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return WJa(a.Da,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Sd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p= +0,q=[],r=g.w(n),t=r.next();!t.done;t=r.next()){t=t.value; +var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var y=u=void 0;((u=t.getInfo())==null?void 0:(y=u.audio)==null?void 0:y.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.oa("hlschl",{mn:p});var A;((A=a.uf)==null?0:A.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var D;if(a.L("html5_enable_vp9_fairplay")&&((D=a.G)==null?0:IN(D)))for(a.oa("drm",{sbdlfbk:1}),p=g.w(a.Cp),q=p.next();!q.done;q=p.next())if(q=q.value,HN(q)){a.G=q;break}lQ(a,n)})}return vr()}; +uLa=function(a){if(a.isExternallyHostedPodcast&&a.Sf){var b=RP(a.Sf);if(!b[0])return vr();a.R4=b[0];return ZJa(a.Da,b[0]).then(function(c){lQ(a,c)})}return a.wm&&a.cV?YJa(a.Da,a.isAd(),a.wm).then(function(c){lQ(a,c)}):vr()}; +wLa=function(a){if(a.isExternallyHostedPodcast)return vr();var b=RP(a.Sf,a.hE);if(a.hlsvp){var c=MKa(a.hlsvp,a.clientPlaybackNonce,a.Sd);b.push(c)}return XJa(a.Da,a.isAd(),b,vLa(a)).then(function(d){lQ(a,d)})}; +rLa=function(a,b){a.C=b;if(a.C){b=g.w(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.QD[d]=c.id)}}mQ(a);if(a.G&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=DE(a.C.videoInfos[0]),b!=(a.G.flavor=="fairplay")))for(c=g.w(a.Cp),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.G=d;break}}; +lQ=function(a,b){a.Dd=b;rLa(a,new iL(g.pl(a.Dd,function(c){return c.getInfo()})))}; +vLa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Ew&&(b.ptk=a.Ew,b.oid=a.wW,b.ptchn=a.vW,b.pltype=a.xW,a.ww&&(b.m=a.ww));return b}; +g.nQ=function(a){return PP(a)&&a.fb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null}; +xLa=function(a){var b=oQ(a);return b&&b.text?g.lx(b.text):a.paidContentOverlayText}; +yLa=function(a){var b=oQ(a);return b&&b.durationMs?Wd(b.durationMs):a.paidContentOverlayDurationMs}; +oQ=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((b=a.Wa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,zLa)||null}; +pQ=function(a){var b="";if(a.xI)return a.xI;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.La?"window":"live");a.Wd&&(b="post");return b}; +g.qQ=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]}; +ALa=function(a){return!!a.Fj||!!a.hD||!!a.bx||!!a.xx||a.g4||a.N.focEnabled||a.N.rmktEnabled}; +g.rQ=function(a){return!!(a.Wc||a.Sf||a.wm||a.hlsvp||a.wx())}; +JP=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Ob(a.Ga,"ypc");a.ypcPreview&&(b=!1);return a.qe()&&!a.loading&&(g.rQ(a)||g.Ob(a.Ga,"heartbeat")||b)}; +RP=function(a,b){a=Uq(a);var c={};if(b){b=g.w(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.w(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; +mQ=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.fl);for(var c=0;c0:b||a.adFormat!=="17_8"||a.isAutonav||g.QO(a.Da)||a.Oq?a.Hg?!1:a.Da.Fi||a.Da.Vi||!g.uO(a.Da)?!b&&CQ(a)=="adunit"&&a.Fj?!1:!0:!1:!1:(a.Hg?0:a.Vi)&&g.uO(a.Da)?!0:!1;a.L("html5_log_detailpage_autoplay")&&CQ(a)=="detailpage"&&a.oa("autoplay_info",{autoplay:a.Qk,autonav:a.isAutonav,result:b});return b}; +g.HQ=function(a){return a.oauthToken||a.Da.Gj}; +NLa=function(a){if(a.L("html5_stateful_audio_normalization")){var b=1,c=g.ZB(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.B)||a.g3){d=(0,g.rt)();a.Ap=2;var e=d-a.Da.il<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&e?a.Ap=4:e||(a.Da.fl=Infinity,a.Da.il=NaN);e=(a.Ap===4?g.Cd(a.Da.fl,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-c;if(a.Ap!==4){var f,h,l,m,n=((f=a.playerResponse)==null?void 0:(h=f.playerConfig)== +null?void 0:(l=h.audioConfig)==null?void 0:(m=l.loudnessNormalizationConfig)==null?void 0:m.statelessLoudnessAdjustmentGain)||0;e+=n}e=Math.min(e,0);a.preserveStatefulLoudnessTarget&&(a.Da.fl=c+e,a.Da.il=d);a=Math.min(1,Math.pow(10,e/20))||b}else a=MLa(a)}else a=MLa(a);return a}; +MLa=function(a){var b=1,c=g.ZB(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.C)||a.Ij)a.Ap=1;return Math.min(1,Math.pow(10,-c/20))||b}; +eQ=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.UN(a.Da)==="TVHTML5_SIMPLY"&&a.Da.j.ctheme==="MUSIC";a.Nj||!g.Cy(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Nj=!0);if(b=g.Gr())b=/Starboard\/([0-9]+)/.exec(g.yb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Da;c=(g.UN(c)==="TVHTML5_CAST"||g.UN(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Da.j.ctheme==="MUSIC";var d;if(d=!a.Nj)c||(c=a.Da,c= +g.UN(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Nj=!0);return a.Da.deviceIsAudioOnly||a.Nj&&a.Da.N}; +OLa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; +IQ=function(a){return!(!a.En||!a.Da.N)&&a.wx()}; +PLa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; +QLa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.bE&&!a.im}; +TP=function(a){if(a.F3||a.cotn||!a.j||a.j.isOtf||a.VU&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.bE&&!!a.im;var b=!a.j.Vb&&!a.ej(),c=b&&VN&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!VN&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=JQ(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.ej()&&!a.j.Vb&&VN&&(a.il==="1"?!1:!0);(c=c||b||d||e)&&!a.im&&a.oa("sabr",{loc:"m"},!0); +return c&&!!a.im}; +JQ=function(a){var b;if(!(b=a.Vb()&&a.ej()&&VN&&(a.il==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Vb()&&!a.ej()&&VN;var c=a.Vb()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr"); +c=!a.enableServerStitchedDai&&c;a=a.Vb()&&!VN&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a}; +g.WP=function(a){return a.I2&&TP(a)}; +cLa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.uP(b)===1;return b&&!a.En}; +g.KQ=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&xL(b[a.B.id].resource.j);b=!!b[a.D.id]&&xL(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b}; +LQ=function(a){return a.Lw?["OK","LIVE_STREAM_OFFLINE"].includes(a.Lw.status):!0}; +FLa=function(a){return(a=a.Fn)&&a.showError?a.showError:!1}; +QP=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; +WKa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; +RLa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; +UKa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.xx=new uKa(b));if(b=b.video_masthead_ad_quartile_urls)a.hD=b.quartile_0_url,a.HW=b.quartile_25_url,a.IW=b.quartile_50_url,a.MW=b.quartile_75_url,a.GW=b.quartile_100_url,a.bx=b.quartile_0_urls,a.lD=b.quartile_25_urls,a.nD=b.quartile_50_urls,a.pD=b.quartile_75_urls,a.jD=b.quartile_100_urls}; +TKa=function(a){var b={};a=g.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b}; +QKa=function(a){if(a){if(rva(a))return a;a=sva(a);if(rva(a,!0))return a}return""}; +g.SLa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.qQ(a,"yt:cc_default_lang")||a.Da.Aj}; +MQ=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; +g.$P=function(a){var b;return a.Xv||((b=a.suggestions)==null?void 0:b[0])||null}; +TLa=function(a){var b={isSabr:TP(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; +g.NQ=function(a){return a.Ff&&a.Da.Bp}; +g.OQ=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; +g.QQ=function(a){var b=a.U(),c=g.PQ(b),d=a.Ma;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=CQ(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.yb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.zp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:ULa[e]}});if(b=a.OB)d.unpluggedAppInfo= +{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:VLa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Cd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=WLa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}]; +if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c}; +g.PQ=function(a){var b=g.Py(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.w(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,{deviceYear:e})); +if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Rc)b.thirdParty={embedUrl:a};return b}; +bMa=function(a,b,c){var d=a.videoId,e=g.QQ(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tv()),referer:document.location.toString(),signatureTimestamp:19940};g.Es();a.isAutonav&&(h.autonav=!0);g.Fs(0,141)&&(h.autonavState=g.Fs(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Fs(0,66);GQ(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=l.split(","); +l=g.w(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.w(q);for(var r=q.next();!r.done;r=q.next()){var t=g.w(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=String(u)); +else if(p.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=XLa[p.breaktype])y.breakType=p;q&&(y.url=q);r&&(y.presetAd=r);t&&(y.viralAdResponseUrl=t);u&&(y.viralCampaignId=String(u));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.yI;if(m!=null){m={startWalltime:String(m)};if(n=a.dk)m.manifestDuration=String(n||14400);h.liveContext= +m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Hg?0:a.Vi)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Sw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Rj){n=a.ID;l=[];p=g.w($Ca(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.FZ?"INACTIVE":"ACTIVE",clientFormFactor:YLa[r]||"UNKNOWN_FORM_FACTOR",clientName:bDa[q.R2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:ZLa[r]||"UNKNOWN_PLATFORM"};r= +{};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.Cw(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p= +{},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.uO(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags= +f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);$La&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.Fs(g.Es(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.OO(e)&& +(d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.k0&&(d.captionParams.deviceCaptionsLangPref=a.k0);a.dE.length?d.captionParams.viewerSelectedCaptionLangs=a.dE:g.OO(e)&&(h=g.RK(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Tf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Tf);e.L("fetch_att_independently")&& +(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=aMa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=aMa(a));return d}; +aMa=function(a){var b=!(a==null?0:a.YI())&&(a==null?void 0:a.Vb())&&Rr();if(a==null?0:a.L("html5_report_supports_vp9_encoding")){if(a==null)var c=void 0;else{c=gQ(a);a=a.U().G;var d=YO("243");c=d?mL(c,d,a,!0)===!0:!1}b=c&&!b}else b=void 0;return{supportsVp9Encoding:b,supportXhr:VN}}; +dMa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1)return c={context:g.PQ(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.Ty(cMa),g.G(f,g.Wz(b,c,d),2);e=f.B;return f.return(e)})}; +eMa=function(a,b,c){LBa(g.ZB(b.experiments,"bg_vm_reinit_threshold"))&&dMa(a,c).then(function(d){d&&(d=d.botguardData)&&g.MK(d,b)},function(d){a.Ka()||(d=hE(d),a.oa("attf",d.details))})}; +RQ=function(a,b){g.O.call(this);this.app=a;this.state=b}; +TQ=function(a,b,c){a.state.j.hasOwnProperty(b)||SQ(a,b,c);a.state.N[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))}; +a.state.K.add(b)}; +UQ=function(a,b,c){a.state.j.hasOwnProperty(b)||SQ(a,b,c);a.app.U().N&&(a.state.Z[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))},a.state.K.add(b))}; +SQ=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))}}; +g.VQ=function(a,b,c){return a.state.j[b].apply(a.state.j,g.x(c))}; +WQ=function(){g.op.call(this);this.G=new Map}; +XQ=function(){g.O.apply(this,arguments);this.element=null;this.K=new Set;this.N={};this.Z={};this.j={};this.Y=new Set;this.C=new WQ;this.B=new WQ;this.D=new WQ;this.G=new WQ}; +fMa=function(a,b,c){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return YQ(a)}; +YQ=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.w(gMa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b}; +hMa=function(a,b,c,d){if(g.Qa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c}; +dR=function(){ZQ.apply(this,arguments)}; +eR=function(a,b){var c={};if(a.app.U().ra){a=g.w(lMa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return mMa.includes(e)}).join(",")),c.qoe_cat=a; +nMa(c)}else for(a=g.w(oMa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c}; +nMa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;if(b){a.raw_player_response={streamingData:b.streamingData};var d;if((d=b.playbackTracking)==null?0:d.qoeUrl)a.raw_player_response=Object.assign({},a.raw_player_response,{playbackTracking:{qoeUrl:b.playbackTracking.qoeUrl}});var e;if((e=b.videoDetails)==null?0:e.videoId)a.raw_player_response=Object.assign({},a.raw_player_response,{videoDetails:{videoId:b.videoDetails.videoId}})}}; +fR=function(a,b,c){var d=a.app.lf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a}; +qMa=function(a){var b=b===void 0?5:b;return a?pMa[a]||b:b}; +g.gR=function(){dR.apply(this,arguments)}; +rMa=function(a){SQ(a,"getInternalApiInterface",a.getInternalApiInterface);SQ(a,"addEventListener",a.A7);SQ(a,"removeEventListener",a.Gda);SQ(a,"cueVideoByPlayerVars",a.e8);SQ(a,"loadVideoByPlayerVars",a.I$);SQ(a,"preloadVideoByPlayerVars",a.rda);SQ(a,"getAdState",a.getAdState);SQ(a,"sendAbandonmentPing",a.sendAbandonmentPing);SQ(a,"setLoopRange",a.setLoopRange);SQ(a,"getLoopRange",a.getLoopRange);SQ(a,"setAutonavState",a.setAutonavState);SQ(a,"seekTo",a.fea);SQ(a,"seekBy",a.dea);SQ(a,"seekToLiveHead", +a.seekToLiveHead);SQ(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);SQ(a,"seekToStreamTime",a.seekToStreamTime);SQ(a,"startSeekCsiAction",a.startSeekCsiAction);SQ(a,"getStreamTimeOffset",a.getStreamTimeOffset);SQ(a,"getVideoData",a.x9);SQ(a,"setInlinePreview",a.setInlinePreview);SQ(a,"getAppState",a.getAppState);SQ(a,"updateLastActiveTime",a.updateLastActiveTime);SQ(a,"setBlackout",a.setBlackout);SQ(a,"setUserEngagement",a.setUserEngagement);SQ(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings); +SQ(a,"getPresentingPlayerType",a.lK);SQ(a,"canPlayType",a.canPlayType);SQ(a,"updatePlaylist",a.updatePlaylist);SQ(a,"updateVideoData",a.updateVideoData);SQ(a,"updateEnvironmentData",a.updateEnvironmentData);SQ(a,"sendVideoStatsEngageEvent",a.lea);SQ(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);SQ(a,"setSafetyMode",a.setSafetyMode);SQ(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)}); +SQ(a,"getVideoAspectRatio",a.getVideoAspectRatio);SQ(a,"getPreferredQuality",a.getPreferredQuality);SQ(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);SQ(a,"setPlaybackQualityRange",a.tea);SQ(a,"onAdUxClicked",a.onAdUxClicked);SQ(a,"getFeedbackProductData",a.getFeedbackProductData);SQ(a,"getStoryboardFrame",a.getStoryboardFrame);SQ(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);SQ(a,"getStoryboardLevel",a.getStoryboardLevel);SQ(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels); +SQ(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);SQ(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);SQ(a,"addCueRange",a.addCueRange);SQ(a,"addUtcCueRange",a.addUtcCueRange);SQ(a,"showAirplayPicker",a.showAirplayPicker);SQ(a,"dispatchReduxAction",a.dispatchReduxAction);SQ(a,"getPlayerResponse",a.o9);SQ(a,"getWatchNextResponse",a.C9);SQ(a,"getHeartbeatResponse",a.j9);SQ(a,"changeMarkerVisibility",a.changeMarkerVisibility);SQ(a,"getCurrentTime",a.d9);SQ(a,"getDuration",a.DY); +SQ(a,"getPlayerState",a.getPlayerState);SQ(a,"getPlayerStateObject",a.p9);SQ(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);SQ(a,"getProgressState",a.getProgressState);SQ(a,"getVolume",a.getVolume);SQ(a,"setVolume",a.HM);SQ(a,"isMuted",a.isMuted);SQ(a,"mute",a.qL);SQ(a,"unMute",a.eN);SQ(a,"loadModule",a.loadModule);SQ(a,"unloadModule",a.unloadModule);SQ(a,"getOption",a.RY);SQ(a,"getOptions",a.getOptions);SQ(a,"setOption",a.setOption);SQ(a,"loadVideoById",a.y_);SQ(a,"loadVideoByUrl",a.z_);SQ(a, +"playVideo",a.VS);SQ(a,"loadPlaylist",a.loadPlaylist);SQ(a,"nextVideo",a.nextVideo);SQ(a,"previousVideo",a.previousVideo);SQ(a,"playVideoAt",a.playVideoAt);SQ(a,"getDebugText",a.getDebugText);SQ(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);SQ(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);SQ(a,"getVideoContentRect",a.getVideoContentRect);SQ(a,"setSqueezeback",a.setSqueezeback);SQ(a,"setAutonav",a.setAutonav);SQ(a,"isNotServable",a.isNotServable);SQ(a,"channelSubscribed",a.channelSubscribed); +SQ(a,"channelUnsubscribed",a.channelUnsubscribed);SQ(a,"togglePictureInPicture",a.togglePictureInPicture);SQ(a,"supportsGaplessAudio",a.supportsGaplessAudio);SQ(a,"supportsGaplessShorts",a.supportsGaplessShorts);SQ(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)}); +SQ(a,"clearQueue",a.clearQueue);SQ(a,"getAudioTrack",a.W8);SQ(a,"setAudioTrack",a.mea);SQ(a,"getAvailableAudioTracks",a.Z8);SQ(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);SQ(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);SQ(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);SQ(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);SQ(a,"setMinimized",a.setMinimized);SQ(a,"setOverlayVisibility",a.setOverlayVisibility);SQ(a,"confirmYpcRental",a.confirmYpcRental); +SQ(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);SQ(a,"isSubtitlesOn",a.isSubtitlesOn);SQ(a,"queueNextVideo",a.queueNextVideo);SQ(a,"handleExternalCall",a.handleExternalCall);SQ(a,"logApiCall",a.logApiCall);SQ(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);SQ(a,"setScreenLayer",a.setScreenLayer);SQ(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);SQ(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);SQ(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);SQ(a, +"syncVolume",a.syncVolume);SQ(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);SQ(a,"openSettingsMenuItem",a.openSettingsMenuItem);SQ(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);SQ(a,"getVisibilityState",a.getVisibilityState);SQ(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);SQ(a,"setGlobalCrop",a.setGlobalCrop);SQ(a,"setInternalSize",a.setInternalSize);SQ(a,"setFauxFullscreen",a.setFauxFullscreen)}; +iR=function(a,b,c){a=g.hR(a.Qe(),b);return c?(c.addOnDisposeCallback(a),null):a}; +g.jR=function(a,b,c){return a.app.U().gf?b:g.bD("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})}; +sMa=function(a){a.Qe().element.setAttribute("aria-live","polite")}; +g.kR=function(a,b){g.gR.call(this,a,b);rMa(this);UQ(this,"addEventListener",this.C7);UQ(this,"removeEventListener",this.Ida);UQ(this,"cueVideoByPlayerVars",this.f8);UQ(this,"loadVideoByPlayerVars",this.J$);UQ(this,"preloadVideoByPlayerVars",this.sda);UQ(this,"loadVideoById",this.y_);UQ(this,"loadVideoByUrl",this.z_);UQ(this,"playVideo",this.VS);UQ(this,"loadPlaylist",this.loadPlaylist);UQ(this,"nextVideo",this.nextVideo);UQ(this,"previousVideo",this.previousVideo);UQ(this,"playVideoAt",this.playVideoAt); +UQ(this,"getVideoData",this.aZ);UQ(this,"seekBy",this.eea);UQ(this,"seekTo",this.hea);UQ(this,"showControls",this.showControls);UQ(this,"hideControls",this.hideControls);UQ(this,"cancelPlayback",this.cancelPlayback);UQ(this,"getProgressState",this.getProgressState);UQ(this,"isInline",this.isInline);UQ(this,"setInline",this.setInline);UQ(this,"setLoopVideo",this.setLoopVideo);UQ(this,"getLoopVideo",this.getLoopVideo);UQ(this,"getVideoContentRect",this.getVideoContentRect);UQ(this,"getVideoStats",this.A9); +UQ(this,"getCurrentTime",this.f9);UQ(this,"getDuration",this.DY);UQ(this,"getPlayerState",this.r9);UQ(this,"getVideoLoadedFraction",this.y9);UQ(this,"mute",this.qL);UQ(this,"unMute",this.eN);UQ(this,"setVolume",this.HM);UQ(this,"loadModule",this.loadModule);UQ(this,"unloadModule",this.unloadModule);UQ(this,"getOption",this.RY);UQ(this,"getOptions",this.getOptions);UQ(this,"setOption",this.setOption);UQ(this,"addCueRange",this.addCueRange);UQ(this,"getDebugText",this.getDebugText);UQ(this,"getStoryboardFormat", +this.getStoryboardFormat);UQ(this,"toggleFullscreen",this.toggleFullscreen);UQ(this,"isFullscreen",this.isFullscreen);UQ(this,"getPlayerSize",this.getPlayerSize);UQ(this,"toggleSubtitles",this.toggleSubtitles);UQ(this,"setCenterCrop",this.setCenterCrop);UQ(this,"setFauxFullscreen",this.setFauxFullscreen);UQ(this,"setSizeStyle",this.setSizeStyle);UQ(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);UQ(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);jMa(this)}; +g.lR=function(a){a=a.Bb();var b=a.Ge.get("endscreen");return b&&b.yv()?!0:a.PH()}; +g.mR=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)}; +g.oR=function(a){var b=nR(a.Bb());return a.app.Bj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Kl()&&b.aq()||!!a.getPlaylist()}; +g.pR=function(a,b){g.VQ(a,"addEmbedsConversionTrackingParams",[b])}; +g.rR=function(a){return(a=g.qR(a.Bb()))?a.oK():{}}; +g.tMa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"}; +g.sR=function(a,b,c){a=a.qb().element;var d=$b(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1}); +d<0&&(d=-(d+1));oe(a,b,d);b.setAttribute("data-layer",String(c))}; +g.tR=function(a){var b=a.U();if(!b.Od)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!MQ(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Kl();var f=c.Wa&&c.Wa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Ff&&f;return!c.ypcPreview&&(!d||e)&&!g.Ob(c.Ga,"ypc")&& +!a&&(!g.uO(b)||f)}; +uMa=function(a){a=g.cR(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.TU)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.oa("iqss",{trigger:d},!0),!0):!1}; +uR=function(){Cs.apply(this,arguments);this.requestHeaders={}}; +wR=function(){vR||(vR=new uR);return vR}; +xR=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization}; +g.yR=function(a,b,c,d){d=d===void 0?!1:d;g.ix.call(this,b);var e=this;this.J=a;this.Fa=d;this.N=new g.oE(this);this.qa=new g.Xx(this,c,!0,void 0,void 0,function(){e.vY()}); +g.P(this,this.N);g.P(this,this.qa)}; +vMa=function(a){a.B&&(document.activeElement&&g.qe(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.ts(a.N);a.Y=void 0}; +zR=function(a,b,c){a.Dk()?a.Nb():a.pd(b,c)}; +AR=function(a,b,c,d){d=new g.S({I:"div",Na:["ytp-linked-account-popup-button"],va:d,X:{role:"button",tabindex:"0"}});b=new g.S({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",va:b},{I:"div",S:"ytp-linked-account-popup-description",va:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.yR.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.P(this,this.dialog); +d.listen("click",function(){e.Nb()}); +g.P(this,d);g.sR(this.J,this.element,4);this.hide()}; +g.BR=function(a,b,c,d){g.ix.call(this,a);this.priority=b;c&&this.Uj(c);d&&this.Bd(d)}; +g.YR=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Na:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",va:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",va:"{{label}}"},{I:"div",S:"ytp-menuitem-content",va:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",va:"{{secondaryIcon}}"});return a}; +bS=function(a){g.BR.call(this,g.YR({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Eb=a.Pm();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Mc(c)}); +this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; +cS=function(a){return a?g.lx(a):""}; +dS=function(a){g.O.call(this);this.api=a}; +eS=function(a){dS.call(this,a);var b=this;SQ(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); +SQ(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); +a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); +a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new bS(b.api);g.P(b,b.menuItem)})}; +wMa=function(a){this.api=a;this.j={}}; +fS=function(a,b,c,d){b in a.j||(c=new g.PC(c,d,{id:b,priority:2,namespace:"appad"}),a.api.jf([c],1),a.j[b]=c)}; +gS=function(a){dS.call(this,a);var b=this;this.events=new g.oE(this);g.P(this,this.events);this.j=new wMa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); +this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;fS(d,"part2viewed",1,0x8000000000000);fS(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,fS(d,"videoplaytime25",c*.25,c),fS(d,"videoplaytime50",c*.5,c),fS(d,"videoplaytime75",c*.75,c),fS(d,"videoplaytime100",c,0x8000000000000),fS(d,"conversionview",c,0x8000000000000),fS(d,"videoplaybackstart",1,c),fS(d,"videoplayback2s",2E3,c),fS(d,"videoplayback10s",1E4,c))}); +this.events.T(this.api,g.RC("appad"),this.B);this.events.T(this.api,g.SC("appad"),this.B)}; +AMa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.w(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.oo(c,d);d=void 0;d=d===void 0?!1:d;(d=IC(JC(c,xMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=IC(JC(c,yMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=IC(JC(c,zMa),c,d,"Nielsen OCR URL"));g.Lu(c,void 0,d)}return!0}; +hS=function(a,b){BMa(a,b).then(function(c){g.Lu(b,void 0,void 0,c)})}; +iS=function(a,b){b.forEach(function(c){hS(a,c)})}; +BMa=function(a,b){return g.mC(a.api.U())&&$q(b)&&Zq(b)?g.XO(a.api.U(),g.HQ(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):wr()}; +CMa=function(a){dS.call(this,a);this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})), +contentCpn:b.clientPlaybackNonce}};g.$s("adsClientStateChange",e)}})}; +jS=function(a){g.S.call(this,{I:"button",Na:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.DD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&& +DMa(this);iR(a,this.element,this);this.DD()}; +DMa=function(a){a.B.push(a.T(a.J,"videodatachange",a.DD));a.B.push(a.T(a.J,"videoplayerreset",a.DD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.DD));a.B.push(a.T(a.J,"autonavchange",a.cW))}; +EMa=function(a){a.isChecked=a.isChecked;a.Ea("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Xh()}; +FMa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&YP(a.Md())}; +GMa=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new jS(a);g.P(b,c);a.Hz(c)})}; +kS=function(a,b){g.BR.call(this,g.YR({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +lS=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; +HMa=function(a){var b=!a.U().Wk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b}; +g.mS=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.ty(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Hy(a,d,!0);return!1}; +g.nS=function(a,b,c){if(MO(b.U())&&b.getPresentingPlayerType()!==2){if(g.ty(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.ty(c);d&&b.pauseVideo();g.Hy(a,void 0,!0);d&&(g.Iy(a),c.preventDefault())}return!1}; +JMa=function(){var a=IMa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; +oS=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}}; +pS=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; +sS=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";kS.call(this,b,g.qS.D4);var c=this;this.J=a;this.j=!1;this.B=new g.Oo(function(){g.Yo(c.element,"ytp-menuitem-highlighted")},0); +this.Eb=a.Pm();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(rS,this.D);g.P(this,this.B)}; +tS=function(a){dS.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){KMa(b)}); +a.addEventListener("highlightSettingsMenu",function(c){KMa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.Wo(d.element,"ytp-menuitem-highlighted"),g.Wo(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())}); +SQ(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})}; +KMa=function(a){a.menuItem||(a.menuItem=new sS(a.api),g.P(a,a.menuItem),a.menuItem.Ta(a.j))}; +uS=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"applicationvideodatachange",function(c,d){b.WR(c,d)})}; +vS=function(a,b,c,d){kS.call(this,"Stable Volume",g.qS.h7);g.Wo(this.element,"ytp-drc-menu-item");this.Eb=a.Pm();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.B,this);lS(this,a);this.Eb.Uc(this)}; +wS=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new vS(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.P(b,b.menuItem))}); +SQ(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)}); +SQ(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); +SQ(this.api,"hasDrcAudioTrack",function(){return b.B()}); +var c;this.j=(c=g.ys("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; +xS=function(a){dS.call(this,a);var b=this;this.j={};this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}); +this.events.T(a,g.RC("embargo"),function(c){b.api.Xo(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.w(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Lf("auth",2,"This video isn't available in your current playback area",eE({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})}; +LMa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)}; +MMa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}}; +yS=function(a){dS.call(this,a);var b=this;this.j=[];this.events=new g.oE(a);g.P(this,this.events);SQ(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Dp&&b.addEmbedsConversionTrackingParams(c)}); +this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Bg(c.visualElement.getAsJspb(),2),b.j.push(c))})}; +NMa=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){CK(BK(),16623);b.j=g.tw();var d=a.U().Fi&&!c.Hg;if(FQ(c)&&d){CK(BK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&EK(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&EK(c)}}else CK(BK(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&EK(h)}); +this.events.T(a,"loadvideo",function(){CK(BK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.T(a,"cuevideo",function(){CK(BK(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.T(a,"largeplaybuttonclicked",function(c){CK(BK(),27240,c.visualElement)}); +this.events.T(a,"playlistnextbuttonclicked",function(c){CK(BK(),27240,c.visualElement)}); +this.events.T(a,"playlistprevbuttonclicked",function(c){CK(BK(),27240,c.visualElement)}); +this.events.T(a,"playlistautonextvideo",function(){CK(BK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +zS=function(a){g.O.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)}; +PMa=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){OMa(b)})}; +OMa=function(a){a.j=new zS(a.api.getRootNode());g.P(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.NO();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})}; +QMa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null}; +AS=function(a){g.S.call(this,{I:"div",Na:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",va:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",va:"\u2022"},{I:"span",va:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +SMa=function(a,b){a.j||(a.B=b,a.C=(0,g.rt)(),a.j=new g.No(function(){RMa(a)},null),RMa(a))}; +RMa=function(a){var b=Math,c=b.round,d=Math.min((0,g.rt)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",vK({seconds:b}));b<=0&&a.j?BS(a):a.j&&a.j.start()}; +BS=function(a){a.j&&(a.j.dispose(),a.j=null)}; +TMa=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new AS(a);g.P(b,b.j);g.sR(a,b.j.element,4);b.j.hide()})}; +CS=function(a){g.S.call(this,{I:"button",Na:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Na:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",Na:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.Xx(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.P(this, +this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()}; +DS=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);SQ(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); +SQ(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); +var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&MO(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new CS(a);g.P(b,b.j);a.Hz(b.j)})}; +UMa=function(a){g.S.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Na:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.qx()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", +va:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ea("ytp-gated-actions-overlay-background");this.B=this.Ea("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ea("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")}); +this.hide()}; +WMa=function(a,b){var c=0;c=0;for(var d={};c +e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;WMa(c,d.actionButtons||[]);c.show()}else c.hide()}); +g.sR(this.api,this.j.element,4)}; +YMa=function(a){dS.call(this,a);var b=this;this.j=null;this.events=new g.oE(a);g.P(this,this.events);var c=a.U();c.Oj=!1;c.Ya=!1;c.zm=!1;UQ(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()}); +UQ(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()}); +UQ(a,"updateSubtitlesUserSettings",function(f){a.updateSubtitlesUserSettings(f)}); +UQ(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})}); +UQ(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()}); +UQ(a,"getPreferredQuality",function(){return a.getPreferredQuality()}); +UQ(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()}); +UQ(a,"setPlaybackQuality",function(f){a.setPlaybackQuality(f)}); +var d=this.api.cj(),e=d.subscribe("visibilitystatechange",function(){a.Hc("onPictureInPictureChange",d.Ej())}); +this.addOnDisposeCallback(function(){d.rh(e)}); +UQ(a,"setRootNodeClickAction",function(f){b.j=f}); +this.events.T(a.getRootNode(),"click",function(){switch(b.j){case "togglePictureInPicture":a.togglePictureInPicture();break;case "play":a.playVideo()}})}; +ZMa=function(a){dS.call(this,a);a=a.U();a.uh.push("flix");a.Ya=!1;a.Oj=!1}; +ES=function(a){dS.call(this,a);var b=this;UQ(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); +UQ(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.x(g.Ca.apply(0,arguments)))}); +TQ(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()}); +TQ(this.api,"setSphericalProperties",function(){var c=g.Ca.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.x(c))})}; +FS=function(a){dS.call(this,a);SQ(a,"createClientVe",this.createClientVe.bind(this));SQ(a,"createServerVe",this.createServerVe.bind(this));SQ(a,"destroyVe",this.destroyVe.bind(this));SQ(a,"hasVe",this.hasVe.bind(this));SQ(a,"logClick",this.logClick.bind(this));SQ(a,"logVisibility",this.logVisibility.bind(this));SQ(a,"setTrackingParams",this.setTrackingParams.bind(this))}; +GS=function(a){dS.call(this,a);var b=this;this.events=new g.oE(a);g.P(this,this.events);SQ(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); +SQ(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); +SQ(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; +HS=function(a,b,c){var d=a.api.getCurrentTime()*1E30&&e>0&&(c.width+=e,g.Xl(b.element,"width",c.width+"px")));a.size=c}}; +g.YS=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),XS(a,c,b))}; +g.ZS=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];XS(a,b,c,!0)}}; +XS=function(a,b,c,d){rNa(a);b&&(b.unsubscribe("size-change",a.OC,a),b.unsubscribe("back",a.ij,a));c.subscribe("size-change",a.OC,a);c.subscribe("back",a.ij,a);if(a.Gb){g.Wo(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;qNa(a);g.nm(a.element,e);a.G=new g.Oo(function(){sNa(a,b,c,d)},20,a); +a.G.start()}else c.Ja(a.element),b&&b.detach()}; +sNa=function(a,b,c,d){a.G.dispose();a.G=null;g.Wo(a.element,"ytp-popup-animating");d?(g.Wo(b.element,"ytp-panel-animate-forward"),g.Yo(c.element,"ytp-panel-animate-back")):(g.Wo(b.element,"ytp-panel-animate-back"),g.Yo(c.element,"ytp-panel-animate-forward"));g.nm(a.element,a.size);a.K=new g.Oo(function(){g.Yo(a.element,"ytp-popup-animating");b.detach();g.Zo(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); +a.K.start()}; +rNa=function(a){a.G&&g.Qo(a.G);a.K&&g.Qo(a.K)}; +$S=function(a){g.WS.call(this,a,"ytp-shopping-product-menu");this.Ne=new g.US(this.J);g.P(this,this.Ne);this.hide();g.YS(this,this.Ne);g.sR(this.J,this.element,4)}; +uNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=tNa(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; +vNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&tNa(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; +tNa=function(a,b,c,d,e){b=new g.BR(g.YR({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",wNa(e));b.setIcon(wNa(d));g.P(a,b);a.Ne.Uc(b,!0);return b}; +wNa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return nsa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return ux()}}; +aT=function(a){SS.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.S({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.S({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.S({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.S({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",va:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",va:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text", +va:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.RC("suggested_action_view_model"),this.Yaa);this.T(this.J,g.SC("suggested_action_view_model"),this.Zaa);this.T(this.overflowButton.element,"click",this.Y5);this.T(a,"featuredproductdismissed",this.Tu);this.J.createServerVe(this.banner.element,this.banner,!0)}; +bT=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,RS(a),a.fm(),g.hx(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.hx(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.hx(a.overflowButton,a.isVisible))}; +cT=function(){aT.apply(this,arguments)}; +xNa=function(a){dS.call(this,a);this.j=new cT(this.api);g.P(this,this.j);g.sR(this.api,this.j.element,4)}; +dT=function(a){dS.call(this,a);var b=this;this.j="";this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.w(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}}); +this.events.T(a,"videoplayerreset",function(){b.j&&yNa(b)}); +this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})}; +yNa=function(a){var b=a.api.Vc();b&&(b.getVideoData().Dfa=a.j)}; +g.eT=function(a,b,c,d,e,f,h){g.BR.call(this,g.YR({"aria-haspopup":"true"}),b,a);this.Eb=d;this.K=!1;this.C=null;this.options={};this.B=new g.US(c,void 0,a,e,f,h);g.P(this,this.B);this.listen("keydown",this.Z5);this.listen("click",this.open)}; +zNa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}}; +fT=function(a,b){g.eT.call(this,"Sleep timer",g.qS.SLEEP_TIMER,a,b);this.J=a;this.Y={};this.G=this.sA("Off");this.N=this.j="";a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", +fill:"#fff"}}]});this.D=new g.S({I:"div",Na:["ytp-menuitem-label-wrapper"],V:[{I:"div",va:"End of video"},{I:"div",Na:["ytp-menuitem-sublabel"],va:"{{content}}"}]});g.P(this,this.D);this.listen("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"settingsMenuVisibilityChanged",this.wca);a.createClientVe(this.element,this,218889);this.Ta();this.J.ib("onSleepTimerFeatureAvailable")}; +ANa=function(a){var b="Off 10 15 20 30 45 60".split(" "),c;((c=a.J.getVideoData())==null?0:c.isLivePlayback)||b.push("End of video");c=a.J.getPlaylist();var d;c&&((d=c.listId)==null?void 0:d.type)!=="RD"&&b.push("End of playlist");a.vl(g.pl(b,a.sA));a.Y=g.ec(b,a.sA,a);b=a.sA("End of video");a.options[b]&&a.options[b].Uj(a.D)}; +BNa=function(a,b){var c=a.Y[b],d=c==="End of video"||c==="End of playlist";c==="Off"&&(a.j="");a.J.getPlayerState()!==0&&a.J.getPlayerState()!==5||!d?(a.G=b,g.eT.prototype.Gg.call(a,b),a.Ui(b),a.J.ib("onSleepTimerSettingsChanged",c)):a.J.ib("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; +gT=function(a){dS.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new fT(b.api,b.api.Pm()),g.P(b,b.menuItem))}); +a.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!b.menuItem){var d;(d=b.api.Pm())==null||d.pd()}b.menuItem.open()}}); +SQ(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()}); +SQ(a,"setSleepTimerTimeLeft",function(c){b.setSleepTimerTimeLeft(c)}); +SQ(a,"setVideoTimeLeft",function(c){b.setVideoTimeLeft(c)})}; +g.iT=function(a,b,c,d,e){b=b===void 0?!1:b;d=d===void 0?!1:d;e=e===void 0?!1:e;g.ax.call(this);this.Y=e;this.N=!1;this.D=new qs(this);this.G=this.K=null;this.C=this.B=!1;g.P(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.mc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));hT(this)}; +jT=function(a){g.ts(a.D,!a.j)}; +hT=function(a){a.G=null;a.K=null;a.T(kT("over"),a.Zx);a.T("touchstart",a.TN);a.j&&a.T(kT("down"),a.haa)}; +CNa=function(a,b){for(var c=0;cf.start&&d>=5;A+=H}y=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else y="";m={video_id_and_cpn:String(c.videoId)+" / "+y,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none", +playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=NLa(c);var M;n=((M=c.D)==null?0:M.audio.j)?"DRC":Math.round(a*h)+"%";M=Math.round(a)+"% / "+n;a=c.Ij.toFixed(1);isFinite(Number(a))&&(M+=" (content loudness "+a+"dB)");m.volume=M;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(M=e.video)a=M.fps,a>1&&(m.resolution+="@"+a), +(a=g.zT(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=HNa(e),!c.D||e.audio&&e.video?e.d0&&(m.codecs+=" / "+e.d0+"A"):m.codecs+=" / "+HNa(c.D),M.B||M.primaries?(a=M.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(M.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.w(e.debugInfo),M=e.next();!M.done;M=e.next())M=M.value, +m.fmt_debug_info+=M.label+":"+M.text+" ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;M=c.Wd;m.live_mode_style=e||M?"":"display:none";m.live_latency_style=e?"":"display:none";if(M)m.live_mode="Post-Live"+(VP(c)?" Manifestless":"");else if(e){M=xT(l,"livelatency");m.live_latency_secs=M.toFixed(2)+"s";e=VP(c)?"Manifestless, ":"";c.La&&(e+="Windowed, ");a="Uncertain";if(M>=0&&M<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")switch(c.latencyClass){case "NORMAL":a= +"Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples= +wT(l,"bandwidth");m.network_activity_samples=wT(l,"networkactivity");m.live_latency_samples=wT(l,"livelatency");m.buffer_health_samples=wT(l,"bufferhealth");b=g.KQ(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";QP(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240804_00_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60? +m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m}; +HNa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag}; +AT=function(a,b,c,d,e){g.S.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"}; +BT=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.ie("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c1?2:1,a.C.height=a.heightPx*c,a.C.style.height= +a.heightPx+"px",a.B.scale(1,c)));b=g.w(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+20&&(a.G=g.gr(function(){JT(a)},b)),a.D=!0)}; +JT=function(a){var b,c,d,e;g.J(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.Hq("EOM_VISITOR_DATA")||g.Hq("VISITOR_DATA");d=b.lm?b.datasyncId:c;e=WN(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Tf=KT(a,e);g.ua(f)})}; +KT=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Lb.vg(c?"pot_cms":"pot_csms");var d=a.j.Xx({zl:b,Vh:{Ow:b,R$:150,Kz:!0,HC:!0}});a.Lb.vg(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.cR(a.api.app))==null?void 0:f.xa;h&&h.rB(!1)}}return d}catch(l){return g.Cw(l),""}}; +GT=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new fF),a.j.ready().then(function(){a.Lb.vg("pot_if");JT(a)}))}; +YNa=function(a){dS.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.oE(a);g.P(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}); +SQ(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}); +SQ(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})}; +LT=function(a){g.O.call(this);this.features=[];var b=this.j,c=new FS(a),d=new eS(a),e=new MS(a),f=new IT(a);var h=g.kC(a.U())?void 0:new xS(a);var l=new KS(a),m=new LNa(a),n=new SNa(a),p=new ES(a);var q=g.kC(a.U())?new YNa(a):void 0;var r=a.L("html5_enable_ssap")?new rT(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new tS(a):void 0;var u=new DS(a);var y=a.L("enable_courses_player_overlay_purchase")?new XMa(a):void 0; +var A=g.OO(a.U())?new TMa(a):void 0;var D=new yS(a);var F=a.U().D?new NMa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().Od?new GMa(a):void 0;var N=g.OO(a.U())?new GS(a):void 0;var M=a.L("web_enable_speedmaster")&&g.OO(a.U())?new oT(a):void 0;var X=a.U().Yk?void 0:new RNa(a);var V=a.L("report_pml_debug_signal")?new CMa(a):void 0;var fa=new LS(a),pa=new PS(a);var Z=a.L("enable_web_player_player_in_bar_feature")&&g.Cy(a.U())?new nNa(a):void 0;var R=a.U().playerStyle==="flix"?new ZMa(a): +void 0;var W=navigator.mediaSession&&window.MediaMetadata&&a.U().Oj?new IS(a):void 0;var v=a.L("html5_enable_drc")&&!a.U().K?new wS(a):void 0;var U=new gS(a);var cb=a.U();var Ab=cb.K&&((Ab=cb.getWebPlayerContextConfig())==null?void 0:Ab.houseBrandEnvironment)==="apps-elements"?new YMa(a):void 0;cb=g.OO(a.U())?new xNa(a):void 0;var Va=a.L("html5_enable_d6de4")?new NS(a):void 0;var fb=g.OO(a.U())&&a.L("web_sleep_timer")?new gT(a):void 0;var bb=g.uO(a.U())?new PMa(a):void 0;var pb=a.L("html5_enable_audio_track_stickiness")? +new dT(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,N,M,X,V,fa,pa,Z,R,W,v,U,Ab,cb,Va,fb,bb,void 0,pb,new uS(a))}; +MT=function(){this.B=this.j=NaN}; +NT=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new MT;this.j=b||null;this.C=!1}; +ZNa=function(a,b,c){var d=g.AO(b.Da)&&!b.Da.K;if(b.Da.Zj&&(wO(b.Da)||b.Da.Ma==="shortspage"||UO(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.Hq("TIMING_ACTION")||Gq("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&Gq("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Yh();for(var e=g.w(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,Oz(f,d[f],a.timerName);d=g.Lq(Cta)(a.j.AJ);g.Pz(d,a.timerName);d=a.j;d.B={};d.AJ={}}g.Pz({playerInfo:{visibilityState:g.Lq(Bta)()},playerType:"LATENCY_PLAYER_HTML5"}, +a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(Rz("_start",a.timerName)?c=g.Lq(Jz)("_start",a.timerName)+a.B:g.Cw(new g.Ks("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!Rz("pbs",a.timerName)&&a.tick("pbs",c)}}; +$Na=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Aa){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.BJ;var l={};if(d==null?0:d.K)l.cttAuthInfo={token:d.K,videoId:d.videoId};e&&(l.startTime=e);Qz(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce}; +c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.Pz(d,a);Oz("pbs",h!=null?h:(0,g.rt)(),a)}}; +OT=function(a){Mta();Lta();a.timerName=""}; +aOa=function(a){if(a.j){var b=a.j;b.B={};b.AJ={}}a.C=!1;a.G=void 0;a.B=NaN}; +PT=function(a,b){g.ax.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=Rq(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= +b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new mP("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.nP(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.w(a);for(c=a.next();!c.done;c=a.next())(c= +c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=iP(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]}; +QT=function(a){return!!(a.playlist||a.list||a.api)}; +bOa=function(a){var b=a.index+1;return b>=a.length?0:b}; +cOa=function(a){var b=a.index-1;return b<0?a.length-1:b}; +g.RT=function(a,b,c,d){b=b!==void 0?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.IP(a.Da,b),g.P(a,e),e.Cn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; +ST=function(a,b){a.index=g.Cd(b,0,a.length-1);a.startSeconds=0}; +dOa=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.RT(a);a.items=[];for(var d=g.w(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; +gOa=function(a,b){var c,d,e,f,h,l,m;return g.J(function(n){if(n.j==1){c=g.gA();var p=a.U(),q={context:g.QQ(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r= +b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var u,y,A,D,F,H;r=((H=g.Q((u=r)==null?void 0:(y=u.embedPreview)==null?void 0:(A=y.thumbnailPreviewRenderer)==null?void 0:(D=A.playButton)==null?void 0:(F=D.buttonRenderer)==null?void 0:F.navigationEndpoint,g.ZP))==null?void 0:H.videoId)||null}else r=null}u=(u=r)?u:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var N;A==="user_uploads"?N={username:y}:N={playlistId:y};eOa(p,u,b,N);q.playlistRequest= +N}else b.playlist?(N={templistVideoIds:b.playlist.toString().split(",")},eOa(p,u,b,N),q.playlistRequest=N):u&&(N={videoId:u},p&&(N.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=N);d=q;e=g.Ty(fOa);g.va(n,2);return g.G(n,g.Wz(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ga=Zr(b,g.uO(h)),h.C=h.Ga==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&EK(l.trackingParams)),n.return(new g.IP(h,b));m=g.xa(n);m instanceof Error||(m=Error("b259802748"));g.Bw(m);return n.return(a)})}; +eOa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; +g.UT=function(a,b){TT.get(a);TT.set(a,b)}; +g.VT=function(a){g.ax.call(this);this.loaded=!1;this.player=a}; +hOa=function(){this.B=[];this.j=[]}; +g.WT=function(a,b){return b?a.j.concat(a.B):a.j}; +g.XT=function(a,b){switch(b.kind){case "asr":iOa(b,a.B);break;default:iOa(b,a.j)}}; +iOa=function(a,b){g.Mb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; +g.ZT=function(a){g.O.call(this);this.W=a;this.B=new hOa;this.G=[];this.Z=[];this.D=new g.ej}; +g.$T=function(a,b,c){g.ZT.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.lw;this.Z=b.OD;this.C=g.DQ(b)}; +jOa=function(){this.tj=!1}; +kOa=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.KF===void 0?!1:b.KF;var c=new jOa;c.tj=a||b;return c}; +g.bU=function(a){this.Da=a;this.N=new jOa;this.Rv=this.Qv=!1;this.lq=2;this.Va=20971520;this.Fa=8388608;this.Ga=120;this.Iq=g.ZB(this.Da.experiments,"html5_min_readbehind_secs");this.lE=g.ZB(this.Da.experiments,"html5_min_readbehind_cap_secs");this.al=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.tb=NaN;this.mw=this.lm=this.xx=2;this.fl=aU(this,"html5_request_size_min_kb",64)*1024;this.Wa=2097152;this.OB=aU(this,"html5_bypass_contention_secs");this.lw=1048576;this.zm=!1; +this.bl=aU(this,"html5_repredict_interval_ms",1800);this.hE=aU(this,"html5_head_miss_secs",5);this.bG=aU(this,"html5_min_upgrade_health_secs",10);this.Kb=15;this.Xi=1;this.Z=1.15;this.qa=1.05;this.wm=1;this.gF=aU(this,"html5_min_seconds_between_format_selections",8);this.eE=aU(this,"html5_max_buffer_health_for_downgrade_secs",15);this.jt=VN;this.Oj=this.Od=!1;this.Wk=6;this.C=!1;this.Yk=g.ZB(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Sv=g.ZB(this.Da.experiments,"html5_post_interrupt_readahead"); +this.sB=this.Da.L("html5_allow_onesie_for_ssap");this.TC=this.Da.L("html5_disable_classic_alr");this.Uv=g.ZB(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Bw=100;this.Gj=10;this.iG=6;this.yw=aU(this,"html5_ssdai_failure_retry_limit",3);this.ym=this.Da.experiments.kb("html5_clone_original_for_fallback_location");this.Fj=!1;this.Wc=g.ZB(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.dk=g.ZB(this.Da.experiments,"html5_subsegment_readahead_timeout_secs"); +this.VD=g.ZB(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.bk=g.ZB(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.XD=g.ZB(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.Aw=g.ZB(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.ZD=g.ZB(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Nj=aU(this,"html5_hopeless_secs",15);this.Qp=1;this.je=!1;this.ID= +this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");this.iE=g.ZB(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.xI=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.aD=this.Da.L("html5_prefer_server_bwe3");this.YD=this.Da.L("html5_last_slice_transition");this.RD=this.Da.L("html5_store_xhr_headers_readable");this.ww=this.Tf=this.wk=!1;this.kq=g.ZB(this.Da.experiments,"html5_max_drift_per_track_secs");this.Wq=this.Da.L("html5_no_placeholder_rollbacks");this.TD= +this.Da.L("html5_subsegment_readahead_enable_mffa");this.uh=this.Da.L("html5_allow_video_keyframe_without_audio");this.iI=this.Da.L("html5_enable_vp9_fairplay");this.Jb=!0;this.Qf=this.Xa=this.Cd=!1;this.Gn=!0;this.nw=!1;this.D="";this.nz=1048576;this.Pf=[];this.dD=this.Da.L("html5_woffle_resume");this.im=this.Da.L("html5_abs_buffer_health");this.UD=this.Da.L("html5_interruption_resets_seeked_time");this.jE=g.ZB(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ra=!1;this.Dp= +this.Da.L("html5_log_additional_source_buffer_updates");this.Bp=this.Da.L("html5_explicitly_dispose_xhr");this.Vv=!1;this.mm=!this.Da.L("html5_encourage_array_coalescing");this.xm=!1;this.pD=this.Da.L("html5_restart_on_unexpected_detach");this.xj=0;this.Ob="";this.OD=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.aB=this.Da.L("html5_abort_before_separate_init");this.KD=Lr();this.MD=this.Da.L("html5_serialize_server_stitched_ad_request");this.bC= +this.Da.L("html5_skip_buffer_check_seek_to_head");this.uf=!1;this.jm=this.Da.L("html5_attach_po_token_to_bandaid");this.rq=g.ZB(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.Zj=this.Da.L("html5_rewrite_timestamps_for_webm");this.Tb=this.Da.L("html5_only_media_duration_for_discontinuities");this.nD=g.ZB(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.bE=this.Da.L("html5_onesie_premieres");this.bD=this.Da.L("html5_drop_onesie_for_live_mode_mismatch"); +this.yG=g.ZB(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.ir=g.ZB(this.Da.experiments,"html5_attach_num_random_bytes_to_bandaid");this.jH=g.ZB(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.Cw=this.Da.L("html5_update_container_type_on_codec_family_change");this.Rf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.oD=this.Da.L("html5_enable_sabr_host_fallback");this.ra=!1;this.VC=this.Da.L("html5_disable_ssap_append_pause");this.Fn=this.Da.L("html5_init_source_buffer_after_metadata"); +this.QD=this.Da.L("html5_gapless_fallback_on_append_error");this.Ew=!1;this.La=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.dE=this.Da.L("html5_use_post_for_media");this.Sd=this.Da.L("html5_use_live_ump_heartbeat");this.bx=this.Da.L("html5_use_sps_ump_part");this.SD=this.Da.L("html5_handle_sps_status");this.zo=this.Da.L("html5_enable_sps_non_fatal_logs");this.JD=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.fb= +this.Ma=!1;this.ZC=this.Da.Sf;this.lD=this.Da.L("html5_reset_primary_stats_on_redirector_failure");this.eD=this.Da.L("html5_remap_to_original_host_when_redirected");this.Bn=this.Cj=this.B=this.yp=!1;this.Aj=this.Da.L("html5_enable_sabr_format_selection");this.Hn=this.Da.L("html5_sabr_support_quality_constraints");this.hD=this.Da.L("html5_sabr_remove_all_quality_constraints");this.eC=this.Da.L("html5_iterative_seeking_buffered_time");this.hm=this.Da.L("html5_use_network_error_code_enums");this.UC= +this.Da.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.HD=this.Da.L("html5_enable_sabr_request_timing");this.zp=this.Da.L("html5_enable_server_format_filter");this.oz=this.Da.L("html5_drc_edit_sync_workaround");this.gD=this.Da.L("html5_enable_lawnmower");this.iD=this.Da.L("html5_enable_lawnmower_messaging");this.Vi=this.Da.zc()?g.ZB(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"): +0;this.WD=g.ZB(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Zq=g.ZB(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.cG=g.ZB(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Zq;this.cE=this.Da.L("html5_live_defrag_only_h264_playbacks");this.aE=this.Da.L("html5_live_defrag_only_h264_formats");this.cD=this.Da.L("html5_record_now");this.Sf=!1;this.Dn=g.ZB(this.Da.experiments,"html5_drm_byterate_soft_cap");this.En=g.ZB(this.Da.experiments,"html5_drm_live_byterate_soft_cap"); +this.Ep=this.jw=!1;this.Aa=this.Da.L("html5_sabr_log_request_creation");this.yc=this.Da.L("html5_sabr_report_request_cancellation_info");this.Hg=this.Pv=this.zw=!1;this.xw=this.Da.L("html5_spoof_4k");this.Bq=aU(this,"html5_min_media_duration_for_cabr_slice");this.kE=this.mm?0:aU(this,"html5_min_media_duration_for_append_prop");this.jD=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.We=!0;this.MC=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.WC=this.Da.L("html5_disable_urgent_adaptation"); +this.BB=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.qw=this.Da.L("html5_send_video_playback_ustreamer_config");this.bq=aU(this,"html5_max_discontinuity_rewrite_count");this.Cp=aU(this,"html5_fixed_media_duration_for_request");this.jl=this.Da.L("html5_use_init_selected_audio");this.Ya=!1;this.hf=aU(this,"html5_sabr_request_limit_per_period");this.mz=this.Ap=this.G=this.pw=!1;this.Rc=this.Da.L("html5_sabr_live_partial_segment");this.gf=this.Da.L("html5_sabr_dispose_media_objects"); +this.Cn=!1;this.Ij=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Tv=this.Mq=!1;this.kD=this.Da.L("html5_enable_d6de4");this.bB=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.fE=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.ob=this.Da.L("html5_update_buffer_timeline_until_update_end");this.Fi=this.yb=!1;this.LD=this.Da.L("html5_enable_ssap_multi_audio_format_filtering");this.mD=this.Da.L("html5_enable_po_token_live_caption"); +this.PD=this.Da.L("html5_ssdai_report_missing_start_event");this.Lw=this.uw=this.Y=this.Ab=!1;this.ow=this.Da.L("html5_sabr_fail_request_after_handle_available_slices");this.Ov=g.ZB(this.Da.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Xv=!1;this.Dd=this.Da.L("html5_append_pause_high_res_logging");this.wc=this.Dw=this.il=this.Wv=!1}; +lOa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Qv&&(a.Va=36700160,a.Fa=5242880,a.Wa=Math.max(4194304,a.Wa),a.Qv=!0);b.video.j>2160&&!a.Rv&&(a.Va=104857600,a.tb=13107200,a.Rv=!0);g.ZB(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.Gr()&&g.Er("samsung")&&(g.Er("kant")||g.Er("muse"))&&(a.tb=g.ZB(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.Gr()&&g.Er("kant")&&(a.tb=1310720);a.Dn!==0&&b.isEncrypted()&&(a.tb=a.Dn);a.En!==0&&b.isEncrypted()&& +c&&(a.tb=a.En);b.tb&&(a.lw=Math.max(a.fl,Math.min(a.Wa,5*b.tb)))}; +mOa=function(a){aU(a,"html5_max_platform_audio_megabytes")<=0||!a.B||!g.mC(a.Da)||(a.Fa=Math.max(aU(a,"html5_max_platform_audio_megabytes")*1048576,a.Fa))}; +cU=function(a){return a.B&&a.Aj}; +dU=function(a){return a.B&&a.Cj&&a.playbackStartPolicy}; +eU=function(a,b,c,d){a.Cj&&(a.playbackStartPolicy=b,a.zI=c,a.yI=d)}; +aU=function(a,b,c){return g.ZB(a.Da.experiments,b)||(c===void 0?0:c)}; +g.fU=function(a,b){return IE(a.info.mimeType)?b?a.info.itag===b:!0:!1}; +g.nOa=function(a,b){if(a.j!=null&&g.kC(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.Vb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.fU(c,"386")}); +a=!!a.j&&!a.j.isManifestless&&YHa(a.j);return b||a}; +g.gU=function(a,b,c,d,e,f){g.ZT.call(this,a);this.videoId=c;this.GZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.Vq(b).hl||"";a=a.split("_").join("-");this.C=g.Wq(b,{hl:a})}; +jU=function(a,b){var c=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){hU(c,d)},function(d){iU(c,d)})}; +lU=function(a){if(kU(a)){if(a instanceof jU)return a;if(oOa(a))return new jU("wait",{promise:a})}return new jU("done",{result:a})}; +mU=function(a){return new jU("wait",{promise:a})}; +nU=function(a){return new jU("fail",{error:a})}; +pU=function(a,b){var c=mU();a.onSuccess.push(function(d){hU(c,d)}); +a.onFailure.push(function(d){try{var e=b(d);hU(c,e)}catch(f){iU(c,f)}}); +oU(a);return c}; +hU=function(a,b){if(kU(b)){if(oOa(b)){b.then(function(c){hU(a,c)},function(c){iU(a,c)}); +return}if(b instanceof jU){b.kf(function(c){hU(a,c)}); +pU(b,function(c){iU(a,c)}); +return}}a.currentState="done";a.result=b;oU(a)}; +iU=function(a,b){a.currentState="fail";a.error=b;oU(a)}; +oU=function(a){if(a.currentState==="done"){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState==="fail")for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)}; +qU=function(a,b){this.B=a;this.j=b;this.onFailure=void 0}; +pOa=function(a,b){return{Jz:a.Jz&&b.Jz,wd:a.wd&&b.wd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}}; +sU=function(a,b){var c=qOa,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={Jz:!!this.C,wd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new qU([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming}, +ix:function(){return WebAssembly.compileStreaming(fetch(d.path))}, +onFailure:function(){return d.capabilities.streaming=!1}}, +{name:"sync",condition:function(e){return e.sync}, +ix:function(){return rOa(d).kf(function(e){return new WebAssembly.Module(e)})}, +onFailure:function(){return d.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +ix:function(){return rOa(d).kf(function(e){return WebAssembly.compile(e)})}, +onFailure:function(){return d.capabilities.wd=!1}}]); +this.K=new qU([{name:"instantiateStreaming",condition:function(e){return e.wd&&e.streaming&&!d.B&&!d.j}, +ix:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=lU(h.module);return{instance:h.instance,Eo:!1}})}, +onFailure:function(){return d.capabilities.streaming=!1}}, +{name:"sync",condition:function(e){return e.wd&&e.sync}, +ix:function(e,f){return rU(d,e).kf(function(h){return{instance:new WebAssembly.Instance(h,f),Eo:!1}})}, +onFailure:function(){return d.capabilities.sync=!1}}, +{name:"async",condition:function(e){return e.wd}, +ix:function(e,f){return rU(d,e).kf(function(h){return WebAssembly.instantiate(h,f)}).kf(function(h){return{instance:h, +Eo:!1}})}, +onFailure:function(){return d.capabilities.wd=!1}}, +{name:"asmjs",condition:function(e){return e.Jz}, +ix:function(e,f){return mU(d.C(f).then(function(h){return{instance:{exports:h},Eo:!0}}))}, +onFailure:function(){return d.capabilities.Jz=!1}}],function(e,f,h){return d.D(h,e.instance.exports)})}; +uOa=function(a){var b=sOa;return b.instantiate(a?pOa(b.capabilities,a):b.capabilities,new tOa)}; +rOa=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=lU(c); +return c}).then(void 0,function(c){g.Cw(Error("wasm module fetch failure: "+c.message,{cause:c})); +a.B=void 0;throw c;}); +a.B=mU(b);return a.B}; +rU=function(a,b){if(!b.wd)return nU(Error("wasm unavailable"));if(a.j)return a.j;a.j=pU(a.compile(b).kf(function(c){a.j=lU(c);return c}),function(c){g.Cw(Error("wasm module compile failure: "+c.message,{cause:c})); +a.j=void 0;throw c;}); +return a.j}; +vOa=function(){}; +wOa=function(){}; +tOa=function(){this.env=new vOa;this.wasi_snapshot_preview1=new wOa}; +qOa=function(a,b){a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}}; +tU=function(a,b){this.instance=a;this.Eo=b;this.exports=this.instance.exports}; +yOa=function(a,b,c){c=c===void 0?!1:c;var d=uU.FC();return xOa(a,b,{Jz:c,wd:!0,sync:!0,streaming:!0}).kf(function(e){uU.lA(e.Eo?"winitjs":"winit",d);return e})}; +xOa=function(a,b,c){sOa||(sOa=new sU(a,b));return uOa(c).kf(function(d){return new tU(d.instance,d.Eo)})}; +zOa=function(a,b){g.O.call(this);var c=this;this.J=a;this.j=b;this.AJ={};this.B={};this.C=null;this.D=new Set;this.G=new g.oE(this);this.hd={toa:function(){return c.j}}; +this.K=this.J.L("web_player_defer_modules");this.Ge=new Map;g.P(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)}; +g.vU=function(a){return a.Ge.get("captions")}; +FOa=function(a,b){switch(b){case "ad":return AOa(a);case "annotations_module":return a.J.jd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.bV||a.controlsType==="3"?!1:a.La.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Xa||!!g.AQ(b)||!!g.BQ(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return BOa(a);case "embed":return g.uO(a.J.U());case "endscreen":return g.COa(a);case "heartbeat":return a.UT();case "inline_preview":return a.J.U().showInlinePreviewUi; +case "kids":return HO(a.J.U());case "remote":return a.J.U().Nj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().Fj;case "captions":return DOa(a);case "unplugged":return g.BO(a.J.U());case "ux":return a.J.U().Ya;case "webgl":return EOa(a);case "ypc":return a.PH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Fi&&!a.bG;case "yto":return!!a.J.getVideoData().Ga.includes("yto");default:return g.Bw(Error("Module descriptor "+b+" does not match")),!1}}; +wU=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ge.get(b);if(!h||d)if(e||(e=function(){wU(a,b,c,d)}),f||(f=function(){a.J.Cg(b)}),h=h||GOa(a,b,FOa(a,b),e,f))a.Ge.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Ai("onApiChange")}; +IOa=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.J(function(l){if(l.j==1)return(c=a.Ge.get("asmjs"))&&!b?l.return(c):(d=TT.get("asmjs"))!=null?(e=d,l.Ia(2)):g.G(l,new Promise(function(m,n){HOa(a,"asmjs",function(){var p=TT.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3); +l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ge.set("asmjs",h);h.create();return l.return(h)})}; +LOa=function(a){JOa(a)&&a.jP();KOa(a)&&(wU(a,"captions",!0),wU(a,"endscreen"),a.xJ(),wU(a,"creatorendscreen",!0))}; +KOa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c}; +JOa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Ob(a.Ga,"ad")||ALa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.w(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h= +e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d=11;a=a.api.U().Z&&DU;return!(!b&&!a)}; +NU=function(a,b){return!a.api.isInline()&&!gPa(a,os(b))&&g.ty(b)}; +fPa=function(a){a.Ig.Iv();if(a.XM&&a.iP)a.iP=!1;else if(!a.api.U().Ra&&!a.Fr()){var b=a.api.getPlayerStateObject();g.T(b,2)&&g.lR(a.api)||a.QH(b);!a.api.U().Ab||b.isCued()||g.T(b,1024)?a.Ws():a.UM.isActive()?(a.LQ(),a.UM.stop()):a.UM.start()}}; +iPa=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.ty(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.T(b,4)||g.T(b,8)||g.T(b,2)||a.Ws(),!0):!1}; +jPa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()}; +ePa=function(a){var b=Fr()&&lna()>=67&&!a.api.U().Z;a=a.api.U().disableOrganicUi;return!g.Er("tizen")&&!YN&&!b&&!a}; +OU=function(a,b){b=b===void 0?2:b;g.ax.call(this);this.api=a;this.j=null;this.Fd=new qs(this);g.P(this,this.Fd);this.B=Xsa;this.Fd.T(this.api,"presentingplayerstatechange",this.f6);this.j=this.Fd.T(this.api,"progresssync",this.Tc);this.mp=b;this.mp===1&&this.Tc()}; +g.PU=function(a){g.S.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",va:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.Oo(this.show,10,this);this.j=new g.Oo(this.hide,500,this);g.P(this,this.B);g.P(this,this.j);this.hide()}; +RU=function(a,b,c){if(b<=0){c=zx();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";QU(a,c,b,d+"%")}; +kPa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:msa();var c=a.J.getPlaybackRate(),d=g.bD("Speed is $RATE",{RATE:String(c)});QU(a,b,d,c+"x")}; +lPa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";QU(a,JMa(),b)}; +QU=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.Ro(a.j);a.B.start();a.updateValue("title",d);g.$o(a.element,"ytp-bezel-text-hide",!d)}; +mPa=function(a,b){g.S.call(this,{I:"button",Na:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?psa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{I:"div",S:"ytp-cards-button-title",va:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div", +S:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.Xx(this,250,!0,100);g.P(this,this.B);g.$o(this.C,"ytp-show-cards-title",g.uO(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.fba);this.NH(!0)}; +nPa=function(a,b){g.S.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[psa()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.qx()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.Yg= +b;this.D=new g.Xx(this,250,!1,250);this.j=null;this.N=new g.Oo(this.wba,300,this);this.K=new g.Oo(this.vba,2E3,this);this.G=[];this.B=null;this.Y=new g.Oo(function(){c.element.style.margin="0"},250); +this.onClickCommand=this.C=null;g.P(this,this.D);g.P(this,this.N);g.P(this,this.K);g.P(this,this.Y);a.U().L("player_new_info_card_format")?(g.Wo(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ea("ytp-cards-teaser-close-button"),"click",this.g6),this.T(this.Ea("ytp-cards-teaser-info-icon"),"click",this.tU),this.T(this.Ea("ytp-cards-teaser-label"),"click",this.tU)):this.listen("click",this.tU);this.T(b.element,"mouseover",this.jW);this.T(b.element,"mouseout",this.iW);this.T(a,"cardsteasershow", +this.Hca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.L3);this.T(a,"presentingplayerstatechange",this.L3);this.T(a,"appresize",this.UN);this.T(a,"onShowControls",this.UN);this.T(a,"onHideControls",this.O7);this.listen("mouseenter",this.i6)}; +oPa=function(a){g.S.call(this,{I:"button",Na:[SU.BUTTON,SU.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:SU.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.tx()]},{I:"div",S:SU.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +pPa=function(a,b){a.j=b;a.element.classList.toggle(SU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.XD:c.VD)?(a=a.api.Mm())?Vz(a,b):g.Bw(Error("No innertube service available when updating notification preferences.")):g.Bw(Error("No update preferences command available.")):g.Bw(Error("No video data when updating notification preferences."))}; +rPa=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=qPa(a,b);if(a=g.Md(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))lqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; +qPa=function(a,b){var c=document.location.protocol;return Ifa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; +g.TU=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.AO(r);g.S.call(this,{I:"div",Na:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.bD("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":VO(r),"data-tooltip-opaque":String(g.uO(r)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",va:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.bD("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":VO(r),"data-tooltip-opaque":String(g.uO(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count", +va:d}:""]}],X:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var y=this.Ea("ytp-sb-subscribe"),A=this.Ea("ytp-sb-unsubscribe");f&&g.Wo(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var D=function(){if(r.Aa){var H=u.channelId;if(m||n){var N={c:H};var M;g.JK.isInitialized()&&(M=OBa(N));N=M||"";if(M=p.getVideoData())if(M=M.subscribeCommand){var X=p.Mm();X?(Vz(X,M,{botguardResponse:N,feature:m}),p.ib("SUBSCRIBE",H)):g.Bw(Error("No innertube service available when updating subscriptions."))}else g.Bw(Error("No subscribe command in videoData.")); +else g.Bw(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else rPa(g.KO(u.J.U()),"sb_button",u.D)},F=function(){var H=u.channelId; +if(m||n){var N=p.getVideoData();Vz(p.Mm(),N.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",H)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; +this.T(y,"click",D);this.T(A,"click",F);this.T(y,"keypress",function(H){H.keyCode===13&&D(H)}); +this.T(A,"keypress",function(H){H.keyCode===13&&F(H)}); +this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(sMa(p),iR(p,y,this),iR(p,A,this))}else g.Wo(y,"ytp-sb-disabled"),g.Wo(A,"ytp-sb-disabled")}; +uPa=function(a){g.S.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ea("ytp-title-channel");this.B=this.Ea("ytp-title-channel-logo");this.channelName=this.Ea("ytp-title-expanded-title");this.G=this.Ea("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this, +37220);g.uO(this.api.U())&&sPa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Md(tPa(b));c.preventDefault()}); +this.T(this.B,"click",this.Kaa);this.Ta()}; +vPa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.TU("Subscribe",null,"Subscribed",null,!0,!1,b.gm,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); +a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new oPa(a.api);a.j=e;g.P(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.mm&&(e.show(),a.api.logVisibility(e.element,!0))}); +a.T(a.api,"UNSUBSCRIBE",function(){b.mm&&(e.hide(),a.api.logVisibility(e.element,!1),pPa(e,!1))})}}; +sPa=function(a){var b=a.api.U();vPa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.HP),a.T(a.channel,"mouseleave",a.ZO),a.T(a.channel,"focusin",a.HP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.ZO()})); +a.C=new g.Oo(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); +g.P(a,a.C);a.T(a.channel,wPa,function(){xPa(a)}); +a.T(a.api,"onHideControls",a.uT);a.T(a.api,"appresize",a.uT);a.T(a.api,"fullscreentoggled",a.uT)}; +xPa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; +yPa=function(a){var b=a.api.getPlayerSize();return g.uO(a.api.U())&&b.width>=524}; +tPa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.WO(b)+c.Ab;g.OQ(c)&&(d="https://music.youtube.com"+c.Ab);if(!g.uO(b))return d;b={};g.VQ(a.api,"addEmbedsConversionTrackingParams",[b]);return g.Ji(d,b)}; +UU=function(a){var b=g.YR({"aria-haspopup":"true"});g.BR.call(this,b,a);this.listen("keydown",this.j)}; +VU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; +zPa=function(a,b){g.S.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Aa&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", +va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Aa||a.U().Tb||(a=this.Ea("ytp-user-info-panel-login"),this.T(a,"click",this.k6));this.closeButton=new g.S({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.yx()]});this.closeButton.Ja(this.element); +g.P(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.j6);this.Ta()}; +BPa=function(a,b,c){g.US.call(this,a);this.Eb=b;this.ke=c;this.getVideoUrl=new UU(6);this.po=new UU(5);this.Xn=new UU(4);this.uc=new UU(3);this.tH=new g.BR(g.YR({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.BR(g.YR(),1,"Stats for nerds");this.aA=new g.ix({I:"div",Na:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.OX=new TS(this.J,this.aA);this.qI=this.uu=null;g.uO(this.J.U())&&(this.closeButton= +new g.S({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.yx()]}),g.P(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.R7,this));g.uO(this.J.U())&&(this.Wl=new g.BR(g.YR(),8,"Account"),g.P(this,this.Wl),this.Uc(this.Wl,!0),this.Wl.listen("click",this.xca,this),a.createClientVe(this.Wl.element,this.Wl,137682));this.J.U().En&&(this.Ql=new kS("Loop",7),g.P(this,this.Ql),this.Uc(this.Ql,!0),this.Ql.listen("click",this.oba,this),a.createClientVe(this.Ql.element, +this.Ql,28661));g.P(this,this.getVideoUrl);this.Uc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.dba,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.po);this.Uc(this.po,!0);this.po.listen("click",this.eba,this);a.createClientVe(this.po.element,this.po,28660);g.P(this,this.Xn);this.Uc(this.Xn,!0);this.Xn.listen("click",this.cba,this);a.createClientVe(this.Xn.element,this.Xn,28658);g.P(this,this.uc);this.Uc(this.uc,!0);this.uc.listen("click",this.bba, +this);g.P(this,this.tH);this.Uc(this.tH,!0);this.tH.listen("click",this.dca,this);g.P(this,this.showVideoInfo);this.Uc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.yca,this);g.P(this,this.aA);this.aA.listen("click",this.Paa,this);g.P(this,this.OX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Eaa("Chromium")>=43&&(b=!0);Eaa("Firefox")<=40&&(b=!1);b&&(this.uu=new g.S({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.P(this,this.uu), +this.uu.Ja(this.element));var d;(d=this.Wl)==null||d.setIcon(tsa());var e;(e=this.Ql)==null||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.uc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.tH.setIcon(nsa());this.showVideoInfo.setIcon(osa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);APa(this);this.GM(this.J.getVideoData())}; +WU=function(a,b){var c=!1;if(a.uu){var d=a.uu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Eb.Nb():(a.aA.Bd(b,"text"),g.YS(a.Eb,a.OX),pS(a.aA.element),a.uu&&(a.uu=null,APa(a)));return c}; +APa=function(a){var b=!!a.uu;a.uc.Uj(b?"Copy debug info":"Get debug info");VU(a.uc,!b);a.Xn.Uj(b?"Copy embed code":"Get embed code");VU(a.Xn,!b);a.getVideoUrl.Uj(b?"Copy video URL":"Get video URL");VU(a.getVideoUrl,!b);a.po.Uj(b?"Copy video URL at current time":"Get video URL at current time");VU(a.po,!b);a.Xn.setIcon(b?ksa():null);a.getVideoUrl.setIcon(b?rx():null);a.po.setIcon(b?rx():null)}; +CPa=function(a){return g.uO(a.J.U())?a.Wl:a.Ql}; +EPa=function(a,b){g.WS.call(this,a);this.ke=b;this.D=new g.oE(this);this.ra=new g.Oo(this.Mca,1E3,this);this.Aa=this.C=null;g.P(this,this.D);g.P(this,this.ra);a.createClientVe(this.element,this,28656);g.Wo(this.element,"ytp-contextmenu");DPa(this);this.hide()}; +DPa=function(a){g.ts(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Wa||(b=a.J.qb(),a.D.T(b,"contextmenu",a.Naa),a.D.T(b,"touchstart",a.m6,null,!0),a.D.T(b,"touchmove",a.W0,null,!0),a.D.T(b,"touchend",a.W0,null,!0))}; +FPa=function(a){a.J.isFullscreen()?g.sR(a.J,a.element,10):a.Ja(document.body)}; +XU=function(a,b,c){c=c===void 0?240:c;g.S.call(this,{I:"button",Na:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Me=b;this.j=c;this.visible=!1;this.tooltip=this.Me.Qe();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.$o(this.element,"ytp-show-copylink-title",g.uO(b));a.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.hR(this.tooltip,this.element))}; +GPa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.kq&&!g.NQ(c)&&!a.api.jd()&&!b}; +HPa=function(a){a.updateValue("icon",nx());if(a.api.U().B)a.tooltip.RH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Xh();a.tooltip.RH(a.element);var b=a.listen("mouseleave",function(){a.Nc(b);a.Ta();a.tooltip.Gm()})}}; +IPa=function(a,b){return g.J(function(c){if(c.j==1)return g.va(c,2),g.G(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.ie("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Mt){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f); +return d.call(c,e)})}; +YU=function(a){g.S.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div", +S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Oo(this.show,10,this);this.B=new g.Oo(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ea("ytp-doubletap-static-circle");g.P(this,this.D);g.P(this,this.B);this.hide();this.N=this.Ea("ytp-doubletap-fast-forward-ve");this.Y=this.Ea("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y, +this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")}; +ZU=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.Ro(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.Wo(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";JPa(a,a.G?a.C:c)}; +KPa=function(a,b,c){g.Ro(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Wo(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; +JPa=function(a,b){b=g.bD("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; +LPa=function(a){SS.call(this,a,!1,!0);this.Fa=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ga=new g.S({I:"div",S:"ytp-featured-product-open-in-new"});g.P(this,this.Ga);this.countdownTimer=new g.S({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.B=new g.S({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", +va:"{{trendingOffer}}"}]});this.B.hide();g.P(this,this.B);this.overflowButton=new g.S({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.S({I:"button",Na:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.N=new g.S({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); +this.N.hide();g.P(this,this.N);this.K=new g.S({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",va:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.P(this,this.K);this.banner=new g.S({I:"a",S:"ytp-featured-product-container", +V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ga]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",va:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text", +va:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div", +S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",va:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",va:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",va:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor", +va:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.RC("featured_product"),this.pea);this.T(this.J,g.SC("featured_product"),this.gC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.hba);this.T(this.overflowButton.element,"click",this.n6);this.T(a,"featuredproductdismissed",this.Tu)}; +MPa=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; +OPa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.w(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs), +!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(vK({seconds:b}))),a.N.Bd(b)):a.N.Bd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();$U(a);var u;(u=a.Tb)==null||u.start()}else NPa(a)}; +NPa=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();aV(a)}; +PPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; +QPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null}; +RPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null}; +SPa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)== +null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price}; +TPa=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Gb?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Gb||a.K.Gb||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName}; +VPa=function(a,b){bV(a);if(b){var c=g.bQ.getState().entities;c=tK(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.w(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Fa.push(d);var f=void 0;e=g.w((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=UPa(h.startTimeSec);f!==void 0&&(h=UPa(h.endTimeSec),b.push(new g.PC(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier, +namespace:"featured_product"})))}}}a.J.jf(b)}}}; +aV=function(a){if(a.trendingOfferEntityKey){var b=g.bQ.getState().entities;if(b=tK(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?$U(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:TPa(a)}))}else $U(a)}else $U(a)}; +$U=function(a){a.B.hide();a.banner.update({vendor:TPa(a)})}; +bV=function(a){a.Fa=[];a.gC();a.J.qf("featured_product")}; +WPa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Bd(vK({seconds:b}));if(b>0){var h;(h=a.Kb)==null||h.start()}}; +XPa=function(a){var b;(b=a.Kb)==null||b.stop();a.countdownTimer.hide()}; +UPa=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a}; +bQa=function(a,b,c){g.S.call(this,{I:"div",Na:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",va:"{{disclaimer}}"},{I:"a",Na:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ea("ytp-info-panel-action-item-disclaimer");this.button= +this.Ea("ytp-info-panel-action-item-button");this.qe=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.Q(b==null?void 0:b.onTap,Ew);var d=g.Q(c,g.Fx);this.qe=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.qe=!0,g.Jd(this.button,g.rd(a))):(d=g.Q(c,YPa))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.qe=!0,g.Jd(this.button,g.rd(a,[ZPa]))):(c=g.Q(c,$Pa))&&!this.j&&(a=c.phoneNumber? +"tel:"+c.phoneNumber:"",this.qe=!0,g.Jd(this.button,g.rd(a,[aQa])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:ux(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:ux()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.qe&&(this.B={externalLinkData:{url:a}})}; +cQa=function(a,b){var c=dx();g.yR.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",va:"{{title}}"},{I:"button",Na:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.qx()]}]},{I:"div",S:"ytp-info-panel-detail-body",va:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ea("ytp-info-panel-detail-items"); +this.C=new g.oE(this);this.itemData=[];this.D=c;b=this.Ea("ytp-info-panel-detail-close");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail-skrim");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()}); +g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()}; +dQa=function(a,b){a=g.w(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)}; +gQa=function(a,b){g.S.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",va:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",va:"{{chevron}}"}]});var c=this;this.J=a;this.De=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Fr();zR(b)}); +this.C=new g.Xx(this,250,!1,100);g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.q6);this.T(this.J,"paidcontentoverlayvisibilitychange",this.x0);this.T(this.J,"infopaneldetailvisibilitychange",this.x0);var d=a.getVideoData()||{};eQa(d)&&fQa(this,d);this.T(a,"onShowControls",this.p6);this.T(a,"onHideControls",this.o6)}; +fQa=function(a,b){if(!b.Fi||!a.J.uo()){var c=b.jE||1E4,d=eQa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Ro(a.j),a.videoId=b.videoId,d?(hQa(a,c,b),a.pd()):(a.Nb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),hQa(a,c,b),a.pd())}}; +eQa=function(a){var b,c,d,e;return!!((b=a.Pf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Pf)==null?0:(e=d.bodyText)==null?0:e.content)}; +hQa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Oo(a.vea,b,a);g.P(a,a.j);var d;b=((d=c.Pf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Pf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Pf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Pf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Pf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.px()})}; +iQa=function(a,b){a.j&&(g.T(b,8)?(a.B=!0,a.pd(),a.j.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))}; +cV=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; +dV=function(a,b){var c=0;a=g.w(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1}; +jQa=function(a,b){for(var c=0,d=g.w(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b0?b[0]:null;var c=g.de("ytp-chrome-bottom"),d=g.de("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b}; +zQa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.pm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.ex({I:"span",S:"ytp-promotooltip-details-icon", +V:[xQa[a.tooltipRenderer.targetId]]});g.P(a,h);for(var l=[],m=g.w(d),n=m.next();!n.done;n=m.next())n=new g.ex({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.P(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.ne(a.details),e=g.w(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value); +else a.update({details:f});e=!0}}g.pm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.Q(e,g.bI))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.Q(e,g.bI).text.runs[0].text&&(a.update({acceptButtonText:g.Q(e,g.bI).text.runs[0].text.toString()}),f=!0);g.pm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,y;((t=g.Q(p,g.bI))==null?0:(u=t.text)==null?0:(y=u.runs)==null?0:y.length)&&g.Q(p,g.bI).text.runs[0].text&&(a.update({dismissButtonText:g.Q(p,g.bI).text.runs[0].text.toString()}), +q=!0);g.pm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=wQa(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.hx(a,!0);yQa(a);a.Gb&&!a.Y&&(a.Y=!0,a.hd.HH(0));a.j&&a.J.logVisibility(a.element,a.Gb)}}; +jV=function(a){g.hx(a,!1);a.j&&a.J.logVisibility(a.element,a.Gb)}; +AQa=function(a){var b,c,d,e=((b=g.Q(a.acceptButton,g.bI))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.Q(a.acceptButton,g.bI).text.runs[0].text,f,h,l;b=((f=g.Q(a.dismissButton,g.bI))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.Q(a.dismissButton,g.bI).text.runs[0].text;return e||b}; +yQa=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.hx(a,!1);else if(b=g.om(a.targetElement),b.width&&b.height){a.J.Ey(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.om(a.Ea("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.oo().height-c-b.height-12,a.element.style.top=d+"px"); +d=a.Ea("ytp-promotooltip-pointer");var e=g.mm(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.hx(a,!1)}; +kV=function(a){g.S.call(this,{I:"button",Na:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.wx()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.xd(a.getPlayerStateObject());iR(this.J,this.element,this)}; +lV=function(a,b){b=b===void 0?240:b;g.S.call(this,{I:"button",Na:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"div",S:"ytp-search-icon",va:"{{icon}}"},{I:"div",S:"ytp-search-title",va:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);iR(a,this.element,this)}; +g.mV=function(a,b,c,d){d=d===void 0?240:d;g.S.call(this,{I:"button",Na:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Me=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Me.Qe();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta); +this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.hR(this.tooltip,this.element))}; +BQa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.uO(b)&&g.oR(a.api)&&g.T(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.kq||d||g.NQ(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b}; +CQa=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Me.Fr(),zR(a.B,a.element,!1)):g.Bw(b))}; +EQa=function(a,b){var c=dx(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:dx(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},va:"Share"},{I:"a",Na:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox", +checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[oS()]},{I:"div",S:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Na:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.qx()]}]};g.yR.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Qe();this.C=[];this.G=this.Ea("ytp-share-panel-inner-content"); +this.closeButton=this.Ea("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.hR(this.tooltip,this.closeButton));this.D=this.Ea("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Ea("ytp-share-panel-link");this.addOnDisposeCallback(g.hR(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=DQa(e,h); +g.nS(h,e.api,f)&&e.api.ib("SHARE_CLICKED")}); +this.listen("click",this.v6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.P$);this.hide()}; +GQa=function(a,b){FQa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f'),(y=t.document)&&y.write&&(y.write(g.wd(u)),y.close()))):((t=Jba(y,t,r,H))&&u.noopener&&(t.opener=null),t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); +e.pn.addOnDisposeCallback(g.hR(a.tooltip,e.pn.element));l==="Facebook"?a.api.createClientVe(e.pn.element,e.pn,164504):l==="Twitter"&&a.api.createClientVe(e.pn.element,e.pn,164505);a.T(e.pn.element,"click",function(p){return function(){a.api.logClick(p.pn.element)}}(e)); +a.api.logVisibility(e.pn.element,!0);a.C.push(e.pn);d++}}var m=b.more||b.moreLink,n=new g.S({I:"a",Na:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=DQa(a,q);g.nS(q,a.api,p)&&a.api.ib("SHARE_CLICKED")}); +n.addOnDisposeCallback(g.hR(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)}); +a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)}; +DQa=function(a,b){var c={};g.uO(a.api.U())&&(g.VQ(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Ji(b,c));return b}; +FQa=function(a){for(var b=g.w(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ib(c);a.C=[]}; +nV=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0}; +HQa=function(a,b){a.startSec+=b;a.endSec+=b}; +JQa=function(a){SS.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;IQa(this);this.T(this.J,"changeProductsInVideoVisibility",this.Lba);this.T(this.J,"videodatachange",this.onVideoDataChange)}; +KQa=function(a){a.K&&a.Ma.element.removeChild(a.K.element);a.K=void 0}; +MQa=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.Q(c,LQa))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.S({I:"img", +S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.P(a,c);return c})}; +NQa=function(a,b){a.isContentForward=b;g.$o(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; +oV=function(a){var b=a.isContentForward&&!a.JM();g.$o(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.$o(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)}; +pV=function(a,b,c){return new g.PC(a*1E3,b*1E3,{priority:9,namespace:c})}; +OQa=function(a){a.J.qf("shopping_overlay_visible");a.J.qf("shopping_overlay_preview_collapsed");a.J.qf("shopping_overlay_preview_expanded");a.J.qf("shopping_overlay_expanded")}; +IQa=function(a){a.T(a.J,g.RC("shopping_overlay_visible"),function(){a.If(!0)}); +a.T(a.J,g.SC("shopping_overlay_visible"),function(){a.If(!1)}); +a.T(a.J,g.RC("shopping_overlay_expanded"),function(){a.ra=!0;RS(a)}); +a.T(a.J,g.SC("shopping_overlay_expanded"),function(){a.ra=!1;RS(a)}); +a.T(a.J,g.RC("shopping_overlay_preview_collapsed"),function(){a.j=!0;oV(a)}); +a.T(a.J,g.SC("shopping_overlay_preview_collapsed"),function(){a.j=!1;oV(a)}); +a.T(a.J,g.RC("shopping_overlay_preview_expanded"),function(){a.B=!0;oV(a)}); +a.T(a.J,g.SC("shopping_overlay_preview_expanded"),function(){a.B=!1;oV(a)})}; +RQa=function(a){g.S.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ea("ytp-shorts-title-channel-logo");this.channelName=this.Ea("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Md(PQa(b));c.preventDefault()}); +a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Md(PQa(b));c.preventDefault()}); +QQa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()}; +QQa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.TU("Subscribe",null,"Subscribed",null,!0,!1,b.gm,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); +a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; +PQa=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.WO(b)+c.Ab;if(!g.uO(b))return c;b={};g.VQ(a.api,"addEmbedsConversionTrackingParams",[b]);return g.Ji(c,b)}; +qV=function(a){g.yR.call(this,a,{I:"button",Na:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.Oo(function(){b.hide()},5E3); +this.Qf=this.Cj=NaN;g.P(this,this.j);this.K=function(){b.show()}; +this.G=function(){b.hide()}; +this.D=function(){var c=b.J.getCurrentTime();c>b.Cj/1E3&&c0?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Oo(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); +this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.bD(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);iR(a,this.element, +this)}; +ZQa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Xh()}; +wV=function(a,b){sV.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.SC("timedMarkerCueRange"),this.Tc);this.T(a,"updatemarkervisibility",this.updateVideoData)}; +$Qa=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.hf;if(c)for(a=a.D.La,c=g.w(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}}; +xV=function(a){g.S.call(this,{I:"button",Na:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[usa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.jR(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});iR(a,this.element,this);a.createClientVe(this.element, +this,62946);this.Ta()}; +aRa=function(a,b,c){c=c===void 0?!1:c;g.S.call(this,{I:"button",Na:["ytp-mute-button","ytp-button"],X:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Aa=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",zx());this.tooltip=b.Qe();this.j=new g.ex({I:"svg",X:{height:"100%", +version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, +{I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.P(this,this.j);this.K=this.j.Ea("ytp-svg-volume-animation-speaker"); +this.Aa=this.K.getAttribute("d");this.C=g.ce("ytp-svg-volume-animation-mover",this.j.element);this.B=g.ce("ytp-svg-volume-animation-hider",this.j.element);this.Fa=new DT;g.P(this,this.Fa);this.qa=new DT;g.P(this,this.qa);this.listen("click",this.xba);this.T(a,"appresize",this.kW);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.hR(b.Qe(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/), +d=new g.yR(a,{I:"span",Na:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},va:b[2]},b[4]]},100,!0),g.P(this,d),d.hide(),d.subscribe("show",function(e){a.VE(d,e)}),g.sR(a,d.element,4)); +this.message=d;a.createClientVe(this.element,this,28662);this.kW(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())}; +dRa=function(a,b){a.ra=b;var c=a.Aa;b&&(c+=ONa(bRa,cRa,b));a.K.setAttribute("d",c)}; +eRa=function(a,b){a.Y=b;for(var c=20*b,d=0;d=3&&a.J.getPresentingPlayerType()!==2}; +jRa=function(a){var b=nR(a.J.Bb());return b?a.j?b.Kl():b.aq():!1}; +gRa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.Kl();c=g.oR(a.J)&&(!a.j||c);var d=a.j&&g.tR(a.J),e=jRa(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.jR(a.J,"Next","SHIFT+n"),l=g.jR(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.RT(a.playlist,a.j?bOa(a.playlist):cOa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId; +b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.sy(m.lengthSeconds):null;b.preview=m.fh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=(m=a.videoData)==null?void 0:g.$P(m))b.url=l.Il(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.sy(l.lengthSeconds): +null,b.preview=l.fh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.hR(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Nc(a.G),a.G=null);a.tooltip.Xh()}; +lRa=function(a,b){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"}, +va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[vx()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.qx()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Ea("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ea("ytp-fine-scrubbing-dismiss");this.Aa=this.Ea("ytp-fine-scrubbing-draggable");this.playButton=this.Ea("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.La=this.j=0;this.Ma=void 0; +this.qa=NaN;this.Ra=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ga=!1;kRa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.hR(b,this.dismissButton));this.addOnDisposeCallback(g.hR(b,this.playButton));this.Fa=new g.iT(this.Aa,!0);this.Fa.subscribe("dragstart",this.YN,this);this.Fa.subscribe("dragmove",this.XN,this);this.Fa.subscribe("dragend",this.x6,this);this.T(a,"SEEK_COMPLETE",this.IB);a.L("web_fix_fine_scrubbing_false_play")&& +this.T(a,"rootnodemousedown",function(d){c.ra=d}); +this.G.addEventListener("keydown",function(){}); +g.P(this,this.Fa);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +kRa=function(a,b){var c=g.sy(b),d=g.bD("Seek to $PROGRESS",{PROGRESS:g.sy(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})}; +mRa=function(a){a.qa=NaN;a.Y=0;a.N=a.C}; +pRa=function(a){var b=a.api.Ak();if(b){var c=90*a.scale,d=AP(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=BP(b,b.zz()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=ha.D.length;)d= +void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,(d=a.B.pop())==null||d.dispose(); +for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; +qRa=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; +nRa=function(){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; +oRa=function(){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})}; +sRa=function(a){g.S.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", +"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ea("ytp-heat-map-svg");this.C=this.Ea("ytp-heat-map-path");this.G=this.Ea("ytp-heat-map-graph");this.D=this.Ea("ytp-heat-map-play");this.B=this.Ea("ytp-heat-map-hover");this.qe=!1;this.j=60;a=""+g.Sa(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path", +a);this.api.L("web_heat_map_v2")&&g.Wo(this.api.getRootNode(),"ytp-heat-map-v2")}; +tRa=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")}; +BV=function(){g.S.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Na:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ea("ytp-progress-linear-live-buffer");this.C=this.Ea("ytp-ad-progress-list"); +this.G=this.Ea("ytp-load-progress");this.K=this.Ea("ytp-play-progress");this.B=this.Ea("ytp-hover-progress");this.j=this.Ea("ytp-chapter-hover-container")}; +CV=function(a,b){g.Xl(a.j,"width",b)}; +uRa=function(a,b){g.Xl(a.j,"margin-right",b+"px")}; +vRa=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN}; +wRa=function(){g.S.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.EV=function(a,b){g.ix.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Na:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"}, +{I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Na:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Na:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end", +X:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.hf=!1;this.Sf=this.Va=this.N=this.Rf=0;this.Od=null;this.Ma={};this.Ob={};this.clipEnd=Infinity;this.Ab=this.Ea("ytp-clip-end");this.yc=new g.iT(this.Ab,!0);this.wc=this.Ea("ytp-clip-end-exclude");this.Rc=this.Ea("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Ea("ytp-clip-start");this.Wc=new g.iT(this.Kb,!0);this.qa=this.fb=0;this.progressBar=this.Ea("ytp-progress-bar");this.yb={};this.La={};this.Tb=this.Ea("ytp-chapters-container"); +this.uh=this.Ea("ytp-timed-markers-container");this.j=[];this.K=[];this.je={};this.uf=null;this.Wa=-1;this.ob=this.Aa=0;this.Y=null;this.Tf=this.Ea("ytp-scrubber-button");this.Hg=this.Ea("ytp-scrubber-container");this.Xa=new g.Fd;this.Pf=new vRa;this.C=new yy(0,0);this.Hb=null;this.D=this.gf=!1;this.Qf=null;this.ra=this.Ea("ytp-heat-map-container");this.Cd=this.Ea("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Ya=this.Ea("ytp-fine-scrubbing-container");this.Sd=this.Ea("ytp-fine-scrubbing-edu"); +this.B=void 0;this.Fa=this.Dd=this.Ga=!1;this.tooltip=b.Qe();this.addOnDisposeCallback(g.hR(this.tooltip,this.Ab));g.P(this,this.yc);this.yc.subscribe("hoverstart",this.u0,this);this.yc.subscribe("hoverend",this.t0,this);this.T(this.Ab,"click",this.qM);this.addOnDisposeCallback(g.hR(this.tooltip,this.Kb));g.P(this,this.Wc);this.Wc.subscribe("hoverstart",this.u0,this);this.Wc.subscribe("hoverend",this.t0,this);this.T(this.Kb,"click",this.qM);xRa(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange", +this.Q9);this.T(a,"videodatachange",this.mu);this.T(a,"videoplayerreset",this.P9);this.T(a,"cuerangesadded",this.sfa);this.T(a,"cuerangesremoved",this.Jda);this.T(a,"onLoopRangeChange",this.lW);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.RC("timedMarkerCueRange"),this.Kca);this.T(a,"updatemarkervisibility",this.N3);var c;((c=a.getVideoData())==null?0:c.Ih())&&a.L("html5_lifa_ad_disable_progress_bar")&&this.T(a,"serverstitchedvideochange",this.tfa);this.updateVideoData(a.getVideoData(), +!0);this.lW(a.getLoopRange());DV(this)&&!this.B&&(this.B=new lRa(this.api,this.tooltip),a=g.fm(this.element).x||0,this.B.kc(a,this.N),this.B.Ja(this.Ya),g.P(this,this.B),this.T(this.B.dismissButton,"click",this.gx),this.T(this.B.playButton,"click",this.KP),this.T(this.B.element,"dblclick",this.KP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Cd,this,140127,!0);this.api.createClientVe(this.Sd,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden= +!0)}; +xRa=function(a){if(a.j.length===0){var b=new BV;a.j.push(b);g.P(a,b);b.Ja(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();CV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""}; +yRa=function(a){var b=b===void 0?NaN:b;var c=new sRa(a.api);a.G.push(c);g.P(a,c);c.Ja(a.ra);b>=0&&(c.element.style.width=b+"px")}; +zRa=function(a){for(;a.K.length;)a.K.pop().dispose()}; +BRa=function(a){var b,c,d,e,f;return(f=g.Q((e=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,qP))==null?void 0:e.playerBar,ARa))==null?void 0:f.chapters}; +CRa=function(a){for(var b=a.j,c=[],d=0;d=h&&y<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;y=d===0;y=y===void 0?!1:y;tRa(h,u);q=p;t=h.j;y=y===void 0?!1:y;var A=1E3/q.length,D=[];D.push({x:0,y:100});for(var F=0;F0&&(c=f[f.length-1])}g.FV(a);l=[];b=g.w(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.Q(e.value,JRa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n= +e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.lx(m):""});a.heatMarkersDecorations=l}}; +FRa=function(a,b){a.K.push(b);g.P(a,b);b.Ja(a.uh,a.uh.children.length)}; +GRa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=GV(a,c.timeRangeStartMillis/(a.C.j*1E3),HV(a));g.Xl(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}}; +DRa=function(a,b){var c=0,d=!1;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.Q(e,LRa)){e=g.Q(e,LRa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.lx(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new BV,a.j.push(f),g.P(a,f),f.Ja(a.Tb,a.Tb.children.length));a.j[c].startTime= +e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c=0;d--)if(a.j[d].width>0){uRa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;CV(a.j[d],e+"px");break}a.j[c].width=0;CV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,CV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,CV(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b< +a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)}; +MRa=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Aa,l=a.ob===0?3:h*a.ob,m=g.w(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c1);n=(f===0?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];r!==void 0&&r.width> +0?r.width+=n:qa.ob&&(a.ob=m/f),d=!0)}c++}}return d}; +IV=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=((d=a.api.getVideoData())==null?0:MQ(d))&&b.airingStart&&b.airingEnd?NRa(a,b.airingStart,b.airingEnd):NRa(a,b.seekableStart,b.seekableEnd);d=zy(c,b.loaded,0);b=zy(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;JV(a,b,d);e&&ORa(a);PRa(a)}}}; +NRa=function(a,b,c){return QRa(a)?new yy(Math.max(b,a.Hb.startTimeMs/1E3),Math.min(c,a.Hb.endTimeMs/1E3)):new yy(b,c)}; +RRa=function(a,b){var c;if(((c=a.Hb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[dV(a.j,b.startTimeMs)],g.$o(b.j,"ytp-repeating-chapter",!1)),a.Hb&&(b=a.j[dV(a.j,a.Hb.startTimeMs)],g.$o(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.$o(d.j,"ytp-exp-chapter-hover-container",!a.Hb)})}; +LV=function(a,b){var c=Ysa(a.C,b.B);if(a.j.length>1){c=KV(a,b.C,!0);for(var d=0,e=0;e0&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c}; +SRa=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Aa)<4}; +ORa=function(a){a.Tf.style.removeProperty("height");for(var b=g.w(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())TRa(a,c.value);MV(a);JV(a,a.qa,a.fb)}; +HV=function(a){var b=a.Xa.x;b=g.Cd(b,0,a.N);a.Pf.update(b,a.N);return a.Pf}; +OV=function(a){return(a.D?135:90)-NV(a)}; +NV=function(a){var b=48,c=a.api.U();a.D?b=54:g.uO(c)&&!c.B&&(b=40);return b}; +JV=function(a,b,c){a.qa=b;a.fb=c;var d=HV(a),e=a.C.j,f=Ysa(a.C,a.qa),h=g.bD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.sy(f,!0),DURATION:g.sy(e,!0)}),l=dV(a.j,f*1E3);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Hb&&a.api.getPresentingPlayerType()!==2&&(e=a.Hb.startTimeMs/1E3,f=a.Hb.endTimeMs/1E3);e=zy(a.C,e,0);l=zy(a.C,f,1);h=a.api.getVideoData();f=g.Cd(b,e,l);c=(h==null?0:g.KQ(h))?1:g.Cd(c, +e,l);b=GV(a,b,d);g.Xl(a.Hg,"transform","translateX("+b+"px)");PV(a,d,e,f,"PLAY_PROGRESS");(h==null?0:MQ(h))?(b=a.api.getProgressState().seekableEnd)&&PV(a,d,f,zy(a.C,b),"LIVE_BUFFER"):PV(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}}; +PV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Aa*(a.D?3:2),l=c*h;c=KV(a,l);var m=d*h;h=KV(a,m);e==="HOVER_PROGRESS"&&(h=KV(a,b.j*d,!0),m=b.j*d-URa(a,b.j*d)*(a.D?3:2));d=Math.max(l-VRa(a,c),0);for(l=c;l=a.j.length)return a.N;for(var c=0,d=0;d0||a.wc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Rc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Xl(b,"background-size",f+"px"),g.Xl(b,"background-position-x",a+"px"))}; +QV=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Xl(b,"transform","scalex("+(d?c/d:0)+")")}; +KV=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=URa(a,b)*(a.D?3:2));c=g.w(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; +GV=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.w(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Aa)+(a.D?3:2)*(e<0?0:e)+c.D}; +URa=function(a,b){for(var c=a.j.length,d=0,e=g.w(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d}; +g.YRa=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Rf=b;a.N=c;a.D=d;DV(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);ORa(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.FV(a);a.B&&f&&DV(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-NV(a),a.Ya.style.height=c+"px",g.Xl(a.ra,"transform","translateY("+-d+"px)"),g.Xl(a.progressBar,"transform","translateY("+-d+"px)")),pRa(a.B))}; +MV=function(a){var b=!!a.Hb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Hb?(c=a.Hb.startTimeMs/1E3,d=a.Hb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&da.qa);g.$o(a.Tf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}}; +TRa=function(a,b){var c=a.Ma[b];b=a.Ob[b];var d=HV(a),e=zy(a.C,c.start/1E3,0),f=vva(c,a.D)/d.width;var h=zy(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Cd(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";QV(a,b,g.Cd((h-c)*d.j+d.D,0,d.width),d.width,!0)}; +ZRa=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.pe(a.Ob[c]),delete a.Ma[c],delete a.Ob[c])}; +DV=function(a){var b=g.OO(a.api.U())&&(a.api.L("web_enable_pip_on_miniplayer")||a.api.L("web_enable_auto_pip")),c;return!((c=a.api.getVideoData())==null?0:c.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.Ej()||!b)}; +RV=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Ya.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))}; +$Ra=function(a,b){var c=b/OV(a)*NV(a);g.Xl(a.progressBar,"transform","translateY("+-b+"px)");g.Xl(a.ra,"transform","translateY("+-b+"px)");g.Xl(a.Ya,"transform","translateY("+c+"px)");a.Ya.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=NV(a)-c+"px")}; +aSa=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.iT(a.progressBar,!0),a.Y.subscribe("hovermove",a.Oba,a),a.Y.subscribe("hoverend",a.Nba,a),a.Y.subscribe("dragstart",a.Mba,a),a.Y.subscribe("dragmove",a.Qba,a),a.Y.subscribe("dragend",a.Pba,a),a.Qf=a.listen("keydown",a.z6)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Nc(a.Qf),a.Y.cancel(),a.Y.dispose(),a.Y=null)}; +QRa=function(a){var b;return!((b=a.Hb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2}; +SV=function(a,b){g.S.call(this,{I:"button",Na:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Eb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);iR(a,this.element,this)}; +TV=function(a,b){g.S.call(this,{I:"button",Na:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":dx(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.xx()]});this.J=a;this.Eb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);iR(a,this.element,this);this.J.createClientVe(this.element, +this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())}; +bSa=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())}; +UV=function(a,b){kS.call(this,"Annotations",g.qS.r4);this.J=a;this.Eb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()}; +VV=function(a,b){g.eT.call(this,"Audio track",g.qS.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.S({I:"div",V:[{I:"span",va:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.P(this,this.countLabel);this.Uj(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()}; +WV=function(a,b){kS.call(this,"Autoplay",g.qS.w4);this.J=a;this.Eb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()}; +cSa=function(a,b){g.BR.call(this,g.YR({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Eb=b;this.T(this.element,"click",this.onClick);this.Eb.Uc(this)}; +dSa=function(a,b){var c;g.OO(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",X:{href:"/account_downloads"}}]});g.eT.call(this,"Quality",g.qS.d7,a,b,void 0,void 0,c);this.J=a;this.Aa={};this.Y={};this.D={};this.Fa=new Set;this.j=this.G=!1;this.N="unknown";this.qa="";this.ra=new g.Su;g.P(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap"); +a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Wo(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.ED);this.T(a,"videoplayerreset",this.ED);this.T(a,"onPlaybackQualityChange",this.mW);this.ED();a.createClientVe(this.element,this,137721)}; +fSa=function(a,b,c){var d=a.Aa[b],e=g.rE[b];return eSa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)}; +gSa=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=eSa(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",va:d});return a}; +eSa=function(a,b,c,d){b={I:"span",Na:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,va:e}));return b}; +XV=function(a,b,c,d){g.S.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",X:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.j=this.Ea("ytp-input-slider");this.B=d?d:a;this.init();this.T(this.j,"input",this.G)}; +hSa=function(a,b){a.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")}; +YV=function(a){XV.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.ie("P");this.qa=mba(this.Y,this);g.Wo(this.j,"ytp-speedslider");g.Wo(this.C,"ytp-speedslider-text");a=this.C;var b=this.j;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.C.textContent=this.B+"x";this.T(this.j,"change",this.ra)}; +ZV=function(a,b,c,d,e,f,h){g.S.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Ga=f;this.range=this.C-this.B;this.Ma=this.Ea("ytp-slider-section");this.D=this.Ea("ytp-slider");this.ra=this.Ea("ytp-slider-handle");this.K=new g.iT(this.D, +!0);this.j=h?h:c;g.P(this,this.K);this.K.subscribe("dragmove",this.B6,this);this.T(this.element,"keydown",this.C6);this.T(this.element,"wheel",this.A6);this.init()}; +$V=function(a){ZV.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.ie("P");this.Fa=mba(this.Aa,this);g.Wo(this.D,"ytp-speedslider");g.Wo(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);iSa(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)}; +iSa=function(a){a.G.textContent=jSa(a,a.j)+"x"}; +jSa=function(a,b){a=Number(g.Cd(b,a.B,a.C).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))}; +kSa=function(a){g.ix.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new YV(a):this.j=new $V(a);g.P(this,this.j);this.element.appendChild(this.j.element)}; +lSa=function(a){var b=new kSa(a);TS.call(this,a,b,"Custom");g.P(this,b)}; +mSa=function(a,b){var c=new lSa(a);g.eT.call(this,"Playback speed",g.qS.g7,a,b,aW(a)?void 0:"Custom",aW(a)?void 0:function(){g.YS(b,c)}); +g.P(this,c);this.G=new YV(a);g.P(this,this.G);a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.J=a;this.Y=null;aW(a)?(this.j=g.bD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.N=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);var d;this.J.L("html5_lifa_ui_disablement")&&((d=this.J.getVideoData())==null?0:d.Ih())&&this.T(a,"serverstitchedvideochange",this.Ta);this.Ta()}; +oSa=function(a,b){var c=nSa(b);a.options[c]?a.Ui(c):b===a.D&&a.j&&(a.Ui(a.j),a.Bd(b.toString()))}; +qSa=function(a){a.vl(a.N.map(nSa));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.N.includes(b)||aW(a.J))pSa(a,b),g.eT.prototype.Gg.call(a,a.j)}; +pSa=function(a,b){a.D=b;a.j=g.bD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.N.map(nSa);b.unshift(a.j);a.vl(b)}; +nSa=function(a){return a.toString()}; +aW=function(a){return a.L("web_settings_menu_surface_custom_playback")}; +rSa=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")}; +tSa=function(a,b,c,d){var e=new g.US(b,void 0,"Video Override");g.eT.call(this,d.text||"",a,b,c,"Video Override",function(){g.YS(c,e)}); +var f=this;g.Wo(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.ec(a,this.nW,this);this.G=e;g.P(this,this.G);b=new g.BR({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.P(this,b);this.G.Uc(b,!0);this.D=new g.BR({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.P(this,this.D);this.G.Uc(this.D,!0);this.T(this.D.element,"click", +function(){sSa(f,!0)}); +this.j=new g.BR({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.P(this,this.j);this.G.Uc(this.j,!0);this.T(this.j.element,"click",function(){sSa(f,!1)}); +this.vl(g.pl(a,this.nW))}; +sSa=function(a,b){a.publish("settingChange",a.N+"Override",!b);a.Eb.ij()}; +bW=function(a,b){g.US.call(this,a,void 0,"Options");var c=this;this.Ou={};for(var d=0;d=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Aa*a.scale,d=HKa(a.B,a.D,b);UQa(a.bg,d,b,c,!0);a.Ga.start()}}; +TSa=function(a){var b=a.j;a.type===3&&a.Ma.stop();a.api.removeEventListener("appresize",a.Fa);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null}; +VSa=function(a){g.S.call(this,{I:"button",Na:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.uO(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",va:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;sMa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize", +this.GD);this.T(a,"videodatachange",this.GD);this.T(a,"presentingplayerstatechange",this.GD);this.GD();a=this.J.U();var b=g.ys("yt-player-watch-later-pending");a.D&&b?(YBa(),USa(this)):this.Ta(2);g.$o(this.element,"ytp-show-watch-later-title",g.uO(a));iR(this.J,this.element,this)}; +WSa=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.uO(c)&&g.oR(a.J)&&g.T(a.J.getPlayerStateObject(),128),f=c.C;return c.We&&b.width>=240&&!d.isAd()&&d.We&&!e&&!g.NQ(d)&&!a.J.jd()&&!f}; +XSa=function(a,b){rPa(g.KO(a.J.U()),"wl_button",function(){YBa({videoId:b});window.location.reload()})}; +USa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Mm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; +a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.RH(a.element);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_ADDED")}; +Vz(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.ib("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +YSa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=oS();break;case 1:c=nx();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path", +Fc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}}; +g.nW=function(){g.MU.apply(this,arguments);this.NK=(this.Yr=g.uO(this.api.U()))&&(this.api.U().B||Qr()||Or());this.UO=48;this.VO=69;this.GE=this.Ii=null;this.Ru=[];this.VM=this.Di=this.WM=this.Yw=this.ke=null;this.gI=[];this.contextMenu=this.Dg=this.overflowButton=this.zi=this.Yg=this.searchButton=this.copyLinkButton=this.shareButton=this.tp=this.Ug=this.title=this.channelAvatar=this.TB=this.tooltip=null;this.BO=!1;this.gH=this.Ox=this.eF=this.fF=null;this.MS=this.CR=this.hP=!1}; +ZSa=function(a){var b=a.api.U(),c=g.T(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()}; +$Sa=function(a){if(a.Og()&&!a.api.jd()&&a.zi){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.tp||b&&!WSa(a.tp)||rQa(a.zi,a.tp);!a.shareButton||b&&!BQa(a.shareButton)||rQa(a.zi,a.shareButton);!a.copyLinkButton||b&&!GPa(a.copyLinkButton)||rQa(a.zi,a.copyLinkButton)}else{if(a.zi){b=a.zi;for(var c=g.w(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.qe(a.Ug.element,a.searchButton.element)&&a.searchButton.Ja(a.Ug.element);a.tp&&!g.qe(a.Ug.element, +a.tp.element)&&a.tp.Ja(a.Ug.element);a.shareButton&&!g.qe(a.Ug.element,a.shareButton.element)&&a.shareButton.Ja(a.Ug.element);a.copyLinkButton&&!g.qe(a.Ug.element,a.copyLinkButton.element)&&a.copyLinkButton.Ja(a.Ug.element)}}; +aTa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(am(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=aTa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexd/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Je())&&d.isView()&&(d=d.mediaElement);if(d&&d.qx().length>12&&g.nQ(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&dQ(f)&&(d=b.nA(),l= +c.nA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(zE(d)||zE(l)))return{msg:"av1"};b=a.B&&f.Ck()&&WE();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(g.nQ(f)&&g.nQ(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.kE)if(b)f.oa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels|| +2)?{msg:"channel-count"}:a.D&&f.Ck()&&d.video.fps!==l.video.fps?{msg:"fps"}:null}; +oTa=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Qk||e.Qk)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.Go())return{nq:"no-empty"};a=nTa(c,a,b,Infinity);return a!=null?{nq:a.msg}:null}; +vW=function(a){g.O.call(this);this.app=a;this.D=this.C=this.wb=this.j=null;this.B=1;this.events=new g.oE(this);this.events.T(this.app.Ua,g.SC("gaplessshortslooprange"),this.N);g.P(this,this.events)}; +pTa=function(){this.j=this.C=this.G=this.D=this.B=!1}; +qTa=function(a){var b=new pTa;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b}; +g.wW=function(a,b,c,d){d=d===void 0?!1:d;gF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; +rTa=function(a,b,c,d,e,f){f=f===void 0?0:f;g.O.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.zd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Uq=new fF;this.yn=d-b.Dc()*1E3;this.Uq.then(void 0,function(){}); +this.timeout=new g.Oo(function(){h.Sg("timeout")},1E4); +g.P(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}}; +xTa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.J(function(q){if(q.j==1){if(a.Ka())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.xW.FC();return g.G(q,a.Uq,2)}g.xW.lA("gtfta",b);c=a.j.Je();if(c.isEnded())return a.Sg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!ZE(a.D))return a.Sg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Mr()!==a.D)return a.Sg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error|| +"")));d=sTa(a);e=d.h0;f=d.UX;h=d.f0;a.j.Sj(!1,!0);l=tTa(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.xF();a.zd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.LH(m.XB,m.YB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Bx:!0,zU:3,Zc:"gapless_pseudo"}),l.play(),wr());n=c.uc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();uTa(a.j,f,!1, +p,a.B.getVideoData().clientPlaybackNonce);uTa(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.W2=!0;a.zd.U().L("html5_gapless_monitor_pbs")&&a.G===1&&vTa(a.B);g.Be(function(){!a.B.getVideoData().Aa&&a.B.getPlayerState().isOrWillBePlaying()&&wTa(a.B)}); +yW(a,6);a.dispose();return q.return(Promise.resolve())})}; +CTa=function(a){if(a.B.getVideoData().C){var b=a.zd.U().L("html5_gapless_suspend_next_loader")&&a.G===1;yTa(a.B,a.D,b,zTa(a));yW(a,3);ATa(a);var c=BTa(a);b=c.TT;c=c.J2;b.subscribe("updateend",a.Bz,a);c.subscribe("updateend",a.Bz,a);a.Bz(b);a.Bz(c)}}; +ATa=function(a){a.j.unsubscribe("internalvideodatachange",a.Mn,a);a.B.unsubscribe("internalvideodatachange",a.Mn,a);a.zd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Mn,a),a.B.unsubscribe("internalvideoformatchange",a.Mn,a));a.j.unsubscribe("mediasourceattached",a.Mn,a);a.B.unsubscribe("statechange",a.qW,a)}; +tTa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.wW(a,b,c,d)}; +yW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Uq.resolve())}; +zTa=function(a){return a.zd.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&TP(a.j.getVideoData())}; +sTa=function(a){var b=a.j.Je();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:zW(a.j,!0);c=Math.min(a.yn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Vf()+d;return{h8:b,h0:a,UX:c,f0:Infinity}}; +BTa=function(a){return{TT:a.C.j.Hd,J2:a.C.B.Hd}}; +ETa=function(a){g.O.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=qTa(this.app.U());this.K=function(){g.Be(function(){DTa(b)})}}; +FTa=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.Go()||AW(a);a.D=new fF;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Vc(),m=l.getVideoData().isLivePlayback?Infinity:zW(l,!0)*1E3;f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.RC("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.PC(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0, +b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,zW(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,zW(b)+m)),h=tIa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Cd=!0;d.getVideoData().Y=!0;g.BW(d,!0);f={};a.B&&(f=g.LI(a.B.Xb().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{Bx:!0,zU:3,Zc:"videoqueuer_queued"});a.C=new rTa(a.N,a.app.Vc(),a.j,c,a.app,e);c=a.C;c.status.status!== +Infinity&&(yW(c,1),c.j.subscribe("internalvideodatachange",c.Mn,c),c.B.subscribe("internalvideodatachange",c.Mn,c),c.zd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Mn,c),c.B.subscribe("internalvideoformatchange",c.Mn,c)),c.j.subscribe("mediasourceattached",c.Mn,c),c.B.subscribe("statechange",c.qW,c),c.j.subscribe("newelementrequired",c.D0,c),c.Mn());return a.D}; +DTa=function(a){var b,c,d,e,f,h,l,m,n;g.J(function(p){switch(p.j){case 1:if(a.Ka()||!a.D||!a.j)return p.return();a.Z&&CW(a.app.Vc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Vc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ia(2);break}g.va(p,3);return g.G(p,xTa(a.C),5);case 5:g.wa(p,2);break;case 3:d=e=g.xa(p);case 2:if(!a.j)return p.return();g.xW.hv("vqsp",function(){DW(a.app,a.j)}); +f=a.j.Je();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.xW.hv("vqpv",function(){a.app.playVideo()}); +if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),GTa(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;AW(a);n&&n.resolve();return p.return(Promise.resolve())}})}; +AW=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.RC("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Sg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.cR(a.app,1)&&a.j!==a.app.Vc()&&a.j.dispose();a.j&&b&&EW(a.j);a.j=null;a.Z=!1}; +HTa=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1}; +ITa=function(a,b,c){if(a.Go())return"qie";if(a.j==null||a.j.Ka()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.mf())return"vinm";if(HTa(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":nTa(d.policy,d.j,d.B,d.yn)!=null?a="pge":(c=BTa(d),b=c.TT,a=g.ZB(d.zd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=OE(c.J2.oe(),d),b=OE(b.oe(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null}; +JTa=function(){var a=Dna();return!(!a||a==="visible")}; +LTa=function(a){var b=KTa();b&&document.addEventListener(b,a,!1)}; +MTa=function(a){var b=KTa();b&&document.removeEventListener(b,a,!1)}; +KTa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[ds+"VisibilityState"])return"";a=ds+"visibilitychange"}return a}; +NTa=function(){g.ax.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.If()}; +LTa(this.G);this.K=this.getVisibilityState(this.oi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Ej(),this.SA(),this.ZA(),this.Ek())}; +qT=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.Ej()||a.SA()||a.ZA()||a.Ek())}; +FW=function(a,b){g.O.call(this);var c=this;this.policy=a;this.gb=b;this.B=0;this.j=null;this.tf=[];this.C=null;this.hd={jo:function(){return c.gb}}; +this.gb.length===1||g.ql(this.gb,function(d){return!!d.range})}; +GW=function(a,b,c){a.j&&(JJ(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.w(a.gb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(CM(h)&&!c&&a.B+b.totalLength-e0){b=g.w(b.gb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.sG.length>0)for(c=g.w(b.sG),d=c.next();!d.done;d=c.next())a+=d.value.Ks||0;return a+b.MZ}; +STa=function(a,b){if(IW){var c=0;a=a.fd.get(b);if(a==null||!a.Hj)return 0;a=g.w(a.Hj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.fd.get(b))==null?void 0:c.tf.totalLength)||0}; +KW=function(a,b){a=a.fd.get(b);if(IW){if(a==null||!a.nE)return!1;b=a.Hj.size>0;return a.Wx.length>0||b}return!(a==null||!a.nE)&&!(a==null||!a.tf.totalLength)}; +TTa=function(a,b){var c=a.fd.get(b),d=RTa(a,b),e=!d&&!!c.bytesReceived;if(IW){var f;if((f=a.manifest)==null?0:f.Vb){a=g.w(c.Hj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Ix)return!1;return e}}else if(f=a.Fx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Nz+STa(a,b)===c.bytesReceived}; +UTa=function(a,b,c){a.fd.set(b,{tf:new IJ,Nz:0,bytesReceived:0,MZ:0,dT:!1,Ng:!1,Fx:!1,Gh:c,ET:[],gb:[],sG:[],nE:!1,Hj:new Map,UH:new Map,Wx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})}; +VTa=function(a,b,c,d){c.gb.push.apply(c.gb,g.x(d));if(IW){c.UH.has(b)||c.UH.set(b,[]);var e;(e=c.UH.get(b)).push.apply(e,g.x(d))}else if(c.dg)for(a=g.w(d),b=a.next();!b.done;b=a.next())c.dg.gb.push(b.value);else{c.dg=new FW(a.Fe,[].concat(g.x(c.gb)));var f;((f=a.Fe)==null?0:f.gf)&&g.P(a,c.dg)}}; +WTa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.K.get(b);if(!e)return[];if(c.Fo){var f;return((f=e.nx(0,c.clipId))==null?void 0:f.gb)||[]}if(e.Um()){var h=c.startMs,l=c.durationMs,m=1E3,n;if(((n=a.Fe)==null?0:n.B)&&c.timeRange){var p;h=(p=c.timeRange.Tg)!=null?p:-1;var q;l=(q=c.timeRange.SE)!=null?q:-1;var r;m=(r=c.timeRange.Vs)!=null?r:-1}if(c.qC<0||c.Nq<0||l<0||h<0||c.Ks<0||m<0)return JW(a,b),[];a=zM(c.qC,c.Ks);b=c.wL||0;return[new BM(3,e,a,"makeSliceInfosMediaBytes",c.Nq-1,h/m,l/m,b, +a.length-b,void 0,c.Tj,c.clipId)]}if(c.Nq<0)return JW(a,b),[];var t;return((t=a.manifest)==null?0:t.Vb)?(b=e.Vj,n=b*e.info.tb,p=((h=a.Fe)==null?0:h.Rc)?c.wL:void 0,((m=a.Fe)==null?0:m.Dw)&&c.timeRange&&!p&&(l=c.timeRange.Tg/c.timeRange.Vs),[new BM(3,e,void 0,"makeSliceInfosMediaBytes",c.Nq,l,b,p,n,!0,c.Tj,c.clipId)]):[]}; +XTa=function(a,b,c){a.manifest=b;a.Fe=c;b=g.w(a.fd);for(c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;for(var e=g.w(d.ET),f=e.next();!f.done;f=e.next()){f=f.value;var h=WTa(a,c,f);VTa(a,f.fq,d,h)}}}; +YTa=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength}); +(a=a.fd.get(c))&&!a.Ng&&(IW?(a.Hj.has(b)||a.Hj.set(b,{data:new IJ,hJ:0,Ix:!1}),JJ(a.Hj.get(b).data,d)):JJ(a.tf,d),a.bytesReceived+=d.totalLength,a.dT=!0)}; +PTa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); +var c=a.fd.get(b);c&&!c.Ng&&(c.Ng=!0,c.Bg&&c.Bg(),ZTa(a)&&a.D.o0())}; +ZTa=function(a){a=g.w(a.fd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Ng)return!1;return!0}; +LW=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)}; +$Ta=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0)); +c&&(b=String.fromCharCode.apply(String,g.x(new Uint8Array(c))));a.close()}return b}; +eUa=function(a){var b=a.experiments,c=b.kb.bind(b);aUa=c("html5_use_async_stopVideo");bUa=c("html5_pause_for_async_stopVideo");cUa=c("html5_not_reset_media_source");$E=c("html5_not_reset_media_source");dUa=c("html5_not_reset_media_source");UE=c("html5_retain_source_buffer_appends_for_debugging");DNa=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(MW=!0);var d=g.ZB(b,"html5_cobalt_override_quic");d&&LW("QUIC",+(d>0));(d=g.ZB(b,"html5_cobalt_audio_write_ahead_ms"))&& +LW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&LW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&LW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.ZB(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}}); +bJa(a.G);IW=c("html5_use_ump_request_slicer");dTa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(VN=!1);c("html5_pr_start_secs")&&($La=!0);g.ZB(a.experiments,"html5_byterate_soft_cap_mweb")&&(bL=!0);c("html5_use_non_active_broadcast_for_post_live")&&(QM=!0)}; +fUa=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")}; +gUa=function(a){if(a.experiments.kb("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=fUa(b),d=g.ZB(a.experiments,b);c&&d&&LW(c,d)}}; +NW=function(a,b,c,d,e){e=e===void 0?[]:e;g.O.call(this);this.W=a;this.pc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])}; +hUa=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.w(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.w(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.w(f.segments),l=h.next();!l.done;l=h.next())(l=OW(l.value))&&d.push(l);f.removeAll()}}}(c=OW(b))&&d.push(c);d=g.w(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; +PW=function(a,b,c,d){if(!a.j||b>c)return!1;b=new NW(a.W,b,c,a.j,d);d=g.w(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=OW(c);e&&e!==OW(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Ye())?a.j.get(b.Ye()).push(b):a.j.set(b.Ye(),[b]);return!0}; +QW=function(a,b){return a.B.get(b)}; +iUa=function(a,b,c){a.B.set(b,c)}; +RW=function(a,b,c,d,e,f){return new jUa(c,c+(d||0),!d,b,a,e,f)}; +jUa=function(a,b,c,d,e,f,h){g.O.call(this);this.pc=a;this.C=b;this.B=c;this.type=d;this.D=e;this.videoData=f;this.cL=h;this.j=new Map;mQ(f)}; +OW=function(a){return a.videoData.clientPlaybackNonce}; +kUa=function(a){if(a.j.size)for(var b=g.w(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; +lUa=function(a){this.end=this.start=a}; +g.SW=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ga=new Map;this.Ya=new Map;this.Ma=new Map;this.B=new Map;this.D=[];this.G=[];this.C=new Map;this.wc=new Map;this.Y=new Map;this.Tb=NaN;this.Jb=this.Xa=this.Ob=null;this.Kb=new g.Oo(function(){mUa(d,d.Tb,d.Ob||void 0)}); +this.events=new g.oE(this);this.Ab=15E3;this.Z=new g.Oo(function(){d.Aa=!0;var e=d.ea,f=d.Ab;e.oa("sdai",{aftimeout:f});e.Gd(new fE("ad.fetchtimeout",{timeout:f}));nUa(d);d.FF(!1)},this.Ab); +this.Aa=!1;this.K=new Map;this.yb=[];this.ra=null;this.je=new Set;this.Fa=[];this.yc=[];this.Dd=[];this.Sd=[];this.j=void 0;this.Wa=0;this.Ra=!0;this.qa=!1;this.La=[];this.Cd=new Set;this.We=new Set;this.Od=new Set;this.Al=0;this.fb=new Set;this.Wc=0;this.Rn=this.Rc=!1;this.Pb=this.N="";this.ob=null;this.hd={yna:function(){return d.B}, +Jna:function(){return d.D}, +zna:function(){return d.C}, +A8:function(e){d.onCueRangeEnter(d.B.get(e))}, +rna:function(e){d.onCueRangeExit(d.B.get(e))}, +Dpa:function(e,f){d.B.set(e,f)}, +Fpa:function(e){d.Pb=e}, +nF:function(){return d.nF()}}; +this.ea.getPlayerType();oUa(this.ea,this);this.Va=this.W.zc();g.P(this,this.Kb);g.P(this,this.events);g.P(this,this.Z);this.events.T(this.api,g.RC("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.SC("serverstitchedcuerange"),this.onCueRangeExit)}; +sUa=function(a,b,c,d,e,f,h,l){var m=pUa(a,f,f+e);a.Aa&&a.ea.oa("sdai",{adaftto:1});a.Rn&&a.ea.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.oa("sdai",{attl0d:1});f>h&&TW(a,{reason:"enterTime_greater_than_return",pc:f,Xd:h});var p=n.Xc()*1E3;fn&&TW(a,{reason:"parent_return_greater_than_content_duration", +Xd:h,jpa:n});n=null;p=g.Zb(a.G,{Xd:f},function(q,r){return q.Xd-r.Xd}); +p>=0&&(n=a.G[p],n.Xd>f&&qUa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p.5&&a.ea.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.iz();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.C.get(b.adCpn);var m=a.C.get(c.adCpn)}e?a.ea.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):tUa(a,m,l,c.Vg,b.Vg,d,e)}else if(!b.isAd&&c.isAd){a.Pb=e.cpn;a.api.publish("serverstitchedvideochange"); +l=VW(a,"a2c");a.ea.oa("sdai",l);a.Al=0;if(l=c.Zd)a.Wa=l.end;var n;c.adCpn&&(n=a.C.get(c.adCpn));n&&WW(a.ea,n,e,c.Vg,b.Vg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.C.get(b.adCpn));p&&(a.Wa=0,a.Pb=p.cpn,a.api.publish("serverstitchedvideochange",p.rd,p.yr),n=VW(a,"c2a",p),a.ea.oa("sdai",n),a.Al=1,WW(a.ea,e,p,c.Vg,b.Vg,d,!!f))}}; +uUa=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Zb(a.G,{pc:c},function(e,f){return e.pc-f.pc}); +d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Xd>=c)?{On:a,Su:b}:{On:void 0,Su:b}}; +wUa=function(a,b){var c="";(b=vUa(a,b))&&(c=b.getId());return c?a.C.get(c):void 0}; +vUa=function(a,b){if(a.Pb){var c=a.B.get(a.Pb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.w(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; +mUa=function(a,b,c){var d=a.Jb||a.api.Vc().getPlayerState();YW(a,!0);a.ea.seekTo(b,c);a=a.api.Vc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; +YW=function(a,b){a.Tb=NaN;a.Ob=null;a.Kb.stop();a.Xa&&b&&xUa(a.Xa);a.Jb=null;a.Xa=null}; +yUa=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.w(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.pcc)&&d.push(f);a.G=d;d=g.w(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.oa("sdai",{rmAdCR:1}));d=uUa(a,b/1E3);b=d.On;d=d.Su;if(b&&(d=d*1E3-b.pc,e=b.pc+d,b.durationMs=d,b.Xd=e,d=a.B.get(b.cpn))){e=g.w(a.D);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= +b.pc+b.durationMs:f.end===d.start&&(f.end=b.pc);d.start=b.pc;d.end=b.pc+b.durationMs}if(b=uUa(a,c/1E3).On){var h;d="playback_timelinePlaybackId_"+b.rd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pc+"_parentReturnTimeMs_"+b.Xd;a.Pl("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +zUa=function(a){a.Ga.clear();a.Ya.clear();a.Ma.clear();a.B.clear();a.D=[];a.G=[];a.C.clear();a.wc.clear();a.Y.clear();a.K.clear();a.yb=[];a.ra=null;a.je.clear();a.Fa=[];a.yc=[];a.Dd=[];a.Sd=[];a.La=[];a.Cd.clear();a.We.clear();a.Od.clear();a.fb.clear();a.Aa=!1;a.j=void 0;a.Wa=0;a.Ra=!0;a.qa=!1;a.Al=0;a.Wc=0;a.Rc=!1;a.Rn=!1;a.N="";a.Z.isActive()&&UW(a)}; +BUa=function(a,b,c,d,e,f){if(!a.Rn)if(!a.W.L("html5_ssdai_use_media_time")&&g.AUa(a,c))a.Va&&a.ea.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=ZW(a,b,c,d,f),!(a.ea.getVideoData().Ih()&&(b==null?0:b.XA)))return b}; +ZW=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=$W(a,b))return f;var h=aX(a,c-1,d!=null?d:2);if(e)return a.ea.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.Fz,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?$W(a,b-5):a.K.get(c-1);if((h==null?void 0:h.Fz)===2&&(a.ea.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f}; +$W=function(a,b){b+=a.fu();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.w(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.yr?e.yr*1E3:e.pc;if(d>=e.pc-c*1E3&&d<=f+e.durationMs+c*1E3){b={On:e,Su:b};break a}}b={On:void 0,Su:b}}else b=uUa(a,b,1);return b.On}; +CUa=function(a){if(a.La.length)for(var b=g.w(a.La),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.w(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.w(a.D);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.D=[];a.Ga.clear();a.Ya.clear();a.Ma.clear();a.j||(a.Ra=!0)}; +tUa=function(a,b,c,d,e,f,h){if(b&&c){a.Pb=c.cpn;a.api.publish("serverstitchedvideochange",c.rd,c.yr);var l=VW(a,"a2a",c);a.ea.oa("sdai",l);a.Al++;WW(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})}; +aX=function(a,b,c){if(c===1){if(a.Ga.has(b))return a.Ga.get(b)}else{if(c===2&&a.Ya.has(b))return a.Ya.get(b);if(c===3&&a.Ma.has(b))return a.Ma.get(b)}}; +EUa=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;DUa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.ea.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.D.splice(d,1);continue}d++}else DUa(a,b,c)}; +DUa=function(a,b,c){b=a.zJ(b,c);c=!0;g.cc(a.D,b,function(h,l){return h.start-l.start}); +for(var d=0;d0){var e=a.D[d],f=a.D[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.D.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.aF("serverstitchedcuerange",36E5),b=g.w(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; +bX=function(a,b,c){if(c===void 0||!c){c=g.w(a.yb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.yb.push(new lUa(b))}}; +g.AUa=function(a,b){a=g.w(a.yb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; +qUa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",cpa:b,pc:c,Xd:d,pna:e.rd,qna:((f=e.videoData)==null?void 0:f.videoId)||"",mna:e.durationMs,nna:e.pc,ona:e.Xd};TW(a,b)}; +TW=function(a,b,c){a=a.ea;a.oa("timelineerror",b);b=new fE("dai.timelineerror",b);c?a.Lf("dai.timelineerror",1,"RETRYABLE_ERROR",eE(b.details)):a.Gd(b)}; +FUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; +GUa=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.w(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; +HUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c}; +IUa=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Xd!==b.pc&&c++;return c}; +JUa=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.w(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Xd!==e.pc&&(e=e.cpn,b===e&&(d=!0),d&&!a.We.has(e)&&(a.ea.oa("sdai",{decoratedAd:e}),a.We.add(e)))}}; +nUa=function(a){a.Va&&a.ea.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Wc)+"_isTimeout_"+a.Aa})}; +pUa=function(a,b,c){if(a.Fa.length)for(var d=g.w(a.Fa),e=d.next(),f={};!e.done;f={dA:void 0},e=d.next()){f.dA=e.value;e=f.dA.startSecs*1E3;var h=f.dA.Ch*1E3+e;if(b>e&&be&&c0&&d>b*1E3+a.iea)return!1;if(d=QUa(a,c)){b=!1;c=void 0;d=g.w(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}OW(e)===a.Pb&&(b=!0)}d=void 0;if(c)d=OW(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:OW(f)}if(d)return a.finishSegmentByCpn(a.Pb,d,2,void 0),!0;var h;a.api.oa("ssap",{mfnc:1,mfncc:(h= +a.timeline.j)==null?void 0:OW(h)})}return!1}; +dX=function(a,b){a=QW(a.timeline,b);return(a==null?0:a.length)?a[0].Ye():0}; +fX=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Sl:0};var e=RUa(a,b,c);if(e)return{clipId:OW(e)||"",Sl:e.Ye()};a.api.oa("mci",{cs:OW(d),mt:b,tl:eX(a),invt:!!c});return{clipId:"",Sl:0}}; +gX=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Zh()-b.Ye())/1E3;b=b.j.values();b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Zh()-d.Ye())/1E3}return a}; +SUa=function(a,b){return(a=cX(a,b*1E3))?a.Ye():0}; +TUa=function(a,b){var c=QW(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.w(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Zh()-c.Ye())/1E3;else return gX(a);return b}; +cX=function(a,b){if(a=QW(a.timeline,a.Pb)){a=g.w(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ye()<=b&&c.Zh()>=b)return c}}; +UUa=function(a){var b=a.ea.getVideoData();a.Pb&&(a=a.Pn.get(a.Pb))&&(b=a);return b}; +QUa=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.ac(e);b=g.Zb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.w(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ye()!==b.Zh())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}}; +RUa=function(a,b,c){c=c===void 0?!1:c;var d=QUa(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.w(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.Ye()<=b&&f.Zh()>b)return f;if(c&&d.Ye()===d.Zh())return a[0]}}else a.api.oa("ssap",{ctnf:1})}; +KUa=function(a,b){var c;if(a.Xy)for(c=a.aH.shift();c&&c!==a.Xy;)c=a.aH.shift();else c=a.aH.shift();if(c){if(a.Kk.has(c))VUa(a,c);else if(a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===4:b===3)a.sL.stop(),a.api.playVideo(1);a.hI.set(a.Pb,b);a.api.oa("ssap",{onvftn:1});WUa(a,c);return!1}a.api.oa("ssap",{onvftv:1});a.sL.stop();return!0}; +VUa=function(a,b){b=QW(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.sL.start(b[0].cL)}; +WUa=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce;a.nN&&(a.events.Nc(a.nN),a.nN=null,a.ea.qP=-1);var e=a.Pb,f=!1;if(e===""){e=d;f=!0;var h=a.ea.cj().isBackground()||a.ea.getPlayerState().isSuspended();a.api.U().L("html5_ssap_tiny_seek_on_initial_transition")&&!h&&a.ea.seekTo(.001)}else e===void 0&&((h=a.ea.xA().Mg)&&a.timeline.B.has(h)&&(e=h),a.api.oa("ssap",{mcc:e+";"+b}),a.ea.Gd(new fE("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b})));if(e===b)f&&c&&XUa(a,c,f);else{h= +a.hI.get(e);if(!(f||h&&YUa(a,h))){var l=a.api.iz(a.Pb);a.api.oa("ssap",{nmec:l,cpc:a.Pb,ec:b})}a.Pb=b;ZUa(a);b=QW(a.timeline,a.Pb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.YK=e,c=a.Pn.get(e));h?a.hI.delete(e):h=f?1:2;a.api.L("html5_enable_video_progress_logging")&&l===2&&!b.B&&(a.nN=a.events.T(a.api,"onVideoProgress",a.Tca));a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostro:h,pcpn:e,ccpn:a.Pb});a:{var m=a.Pb;if(!a.pk.has(m))for(var n=g.w(a.pk),p=n.next();!p.done;p= +n.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.Pb;q=a.ea.xA();if(q.Mg!==p){var r=q.Xb(q.Mg);m=q.Xb(p);q.Mg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.zc()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.LI(p.provider),$Ua(p,n,"SU")),isNaN(p.K)||g.ir(p.K)),m.resume())}m=Math.max(0,hX(a,e));n=a.ea.getCurrentTime();n=Math.max(0,n-dX(a,a.Pb)/1E3);p=b.getVideoData(); +q=a.ea.xA();r=e;var t=a.Pb,u=YUa(a,h),y=a.ea.getPlayerState();if(r!==t){var A=q.Xb(r),D=q.Xb(t),F,H=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce),N;F=t===((N=D.getVideoData())==null?void 0:N.clientPlaybackNonce);var M;N=H?((M=A.getVideoData())==null?void 0:M.videoId)||"":"nvd";var X;M=F?((X=D.getVideoData())==null?void 0:X.videoId)||"":"nvd";H&&(X=A.qoe)!=null&&(iX(X,4,u?4:0,t,M,m),X.reportStats());F&&(jX(D),(X=D.qoe)!=null&&(iX(X,4,u?5:1,r,N,n),X.reportStats()),aVa(D,new g.hy(y,D.De)), +bVa(D));cVa(q,r)}a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostri:h,pcpn:e,ccpn:a.Pb});var V;$Na(e,a.Pb,d,p,(V=a.ZM.get(e))!=null?V:(0,g.rt)(),c);a.ZM.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Pb,pvdmc:a.Pb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Pb,tpcc:d,tpv:(p==null?0:p.qe())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",p,l,c,h);b.B||a.ea.getVideoData().publish("dataupdated");a.Kk.delete(e);a.Xy="";p&&l===1?XUa(a,p):a.ea.oa("ssap",{nis:a.Pb}); +l===2?a.Al++:a.Al=0}}}; +XUa=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.M2){var d=b.startSeconds;b=QW(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].Ye()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.fQ()||(a.ea.seekTo(d,{gU:!0}),a.M2=!1,a.ea.oa("ssap",{is:a.Pb,co:c?"1":"0",tse:d.toFixed()}))}}; +dVa=function(a,b,c){b=QW(a.timeline,b);if(b!=null&&b.length&&(b=QUa(a,b[0].Ye()))){b=g.w(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(OW(d)===c)break;if(d=OW(d)){var e=a.pk.get(d);e&&a.api.L("html5_ssap_remove_cue_ranges_fix")&&a.ea.removeCueRange(e);a.pk.delete(d)}}}}; +eVa=function(a,b,c){RUa(a,b)||a.ea.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:eX(a)})}; +ZUa=function(a){var b=a.Pb,c=a.Pn.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-dX(a,b)/1E3,c.Wk=a>0?a:0)}; +hX=function(a,b){b=b||a.Pb;var c=a.Pn.get(b);return c?c.Wk:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Wk}; +eX=function(a){var b=a.Pb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.w(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.Ye()+";";f+="et."+h.Zh()+";";var l=OW(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l: +"nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.Gl()}; +LUa=function(a){a.ea.qH(Array.from(a.pk.values()));a.pk.clear()}; +YUa=function(a,b){return a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===5||b===6||b===7:b===3}; +gVa=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.Oo(function(){fVa(d,d.qa,d.Y||void 0)}); +this.ra=[];this.Aa=new g.Oo(function(){var e=d.ra.pop();if(e){var f=e.rd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.Po(d.Aa,4500))}}); +this.events=new g.oE(this);c.getPlayerType();g.P(this,this.Z);g.P(this,this.Aa);g.P(this,this.events);this.events.T(this.api,g.RC("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Mk)}; +kVa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=f===void 0?e+d:f;if(e>f)return kX(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Xc()*1E3;if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ +m.Dc(),kX(a,m,h,l),"";n=null;for(var p=g.w(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.pc&&eq.pc)return kX(a,"overlappingReturn",h,l),"";if(f===q.pc)return kX(a,"outOfOrder",h,l),"";e===q.Xd&&(n=q)}h="cs_childplayback_"+hVa++;l={Zd:lX(d,!0),yn:Infinity,target:null};var r={rd:h,playerVars:b,playerType:c,durationMs:d,pc:e,Xd:f,Qt:l};a.B=a.B.concat(r).sort(function(y,A){return y.pc-A.pc}); +n?iVa(a,n,{Zd:lX(n.durationMs,!0),yn:n.Qt.yn,target:r}):(b={Zd:lX(e,!1),yn:e,target:r},a.K.set(b.Zd,b),m.addCueRange(b.Zd));b=!0;if(a.j===a.api.Vc()&&(m=m.getCurrentTime()*1E3,m>=r.pc&&mb)break;if(f>b)return{On:d,Su:b-e};c=f-d.Xd/1E3}return{On:null,Su:b-c}}; +fVa=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Vc().getPlayerState();oX(a,!0);b=isFinite(b)?b:a.j.Zn();var e=oVa(a,b);b=e.On;e=e.Su;var f=b&&!mX(a,b)||!b&&a.j!==a.api.Vc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||nX(a);b?jVa(a,b,e,c,d):pVa(a,e,c,d)}; +pVa=function(a,b,c,d){var e=a.j,f=a.api.Vc();e!==f&&a.api.My();e.seekTo(b,Object.assign({},{Zc:"application_timelinemanager"},c));qVa(a,d)}; +jVa=function(a,b,c,d,e){var f=mX(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.IP(a.W,b.playerVars);h.rd=b.rd;a.api.Ju(h,b.playerType)}h=a.api.Vc();f||h.addCueRange(b.Qt.Zd);h.seekTo(c,Object.assign({},{Zc:"application_timelinemanager"},d));qVa(a,e)}; +qVa=function(a,b){a=a.api.Vc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; +oX=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&xUa(a.D);a.G=null;a.D=null}; +mX=function(a,b){a=a.api.Vc();return!!a&&a.getVideoData().rd===b.rd}; +rVa=function(a){var b=a.B.find(function(e){return mX(a,e)}); +if(b){var c=a.api.Vc();nX(a);var d=new g.lF(8);b=nVa(a,b)/1E3;pVa(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}}; +tVa=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.w(a.K),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;l.yn>=d&&l.target&&l.target.Xd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.w(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.pc>=d&&l.Xd<=e){var m=a;m.N===l&&nX(m);mX(m,l)&&m.api.My()}else f.push(l);a.B=f;d=oVa(a,b/1E3);b=d.On;d=d.Su;b&&(d*=1E3,sVa(a,b,d,b.Xd===b.pc+b.durationMs?b.pc+d:b.Xd));(b=oVa(a,c/1E3).On)&& +kX(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.rd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.Xd+"}.Child playbacks can only have duration updated not their start."))}; +sVa=function(a,b,c,d){b.durationMs=c;b.Xd=d;d={Zd:lX(c,!0),yn:c,target:null};iVa(a,b,d);mX(a,b)&&a.api.Vc().getCurrentTime()*1E3>c&&(b=nVa(a,b)/1E3,c=a.api.Vc().getPlayerState(),pVa(a,b,{},c))}; +kX=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; +vVa=function(a){a&&a!=="web"&&uVa.includes(a)}; +rX=function(a,b){g.O.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Oo(function(){pX(c);qX(c)}); +g.P(this,this.j)}; +wVa=function(a){pX(a);return a.data.map(function(b){return b.value})}; +pX=function(a){var b=(0,g.rt)();a.data.forEach(function(c){c.expiref?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cm;if(wX(a)){var n=DVa(a);var p=isNaN(n)||g.Nt||xX&&g.jt||m;Mt&&!g.lc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Ul(p,0,b.width,b.height)):p=new g.Ul(0, +0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Ul((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.jt&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.$o(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.L2)a.Bc.style.display="";a.kR=!0}else{p=-b.height;Mt?p*=window.devicePixelRatio:g.RO&&(p-=window.screen.height);p=new g.Ul(0,p,b.width,b.height);if(l||a.L2)a.Bc.style.display="none";a.kR=!1}Vl(a.iM,p)||(a.iM=p,g.BO(f)?(a.Bc.style.setProperty("width", +p.width+"px","important"),a.Bc.style.setProperty("height",p.height+"px","important")):g.nm(a.Bc,p.getSize()),d=new g.Fd(p.left,p.top),g.dm(a.Bc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Ul((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Vl(a.WB,b)||(a.WB=b,d=!0);g.Xl(a.Bc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.fM&&(m&&(a.Bc.addEventListener(rS,a.LL),a.Bc.addEventListener("transitioncancel",a.LL),a.Bc.classList.add(g.uX.VIDEO_CONTAINER_TRANSITIONING)),a.fM=m,a.app.Ua.publish("playerUnderlayVisibilityChange", +a.fM?"transitioning":"hidden"));return d}; +HVa=function(){this.csn=g.tw();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; +IVa=function(a){if(a.csn!==g.tw())if(a.csn==="UNDEFINED_CSN")a.csn=g.tw();else{var b=g.tw(),c=g.rw();if(b&&c){a.csn=b;for(var d=g.w(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.kr("combine_ve_grafts")?DK(BK(),e,c):g.Lq(g.Ow)(void 0,b,c,e))}if(b)for(a=g.w(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.Vw(b,c)}}; +JVa=function(a,b){this.Kc=a;this.policy=b;this.playbackRate=1}; +KVa=function(a,b){var c=Math.min(2.5,lO(a.Kc));a=yX(a);return b-c*a}; +MVa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.Cp)return Math.ceil(a.policy.Cp*b);a.policy.im&&(d=Math.abs(d));d/=a.playbackRate;var f=1/oO(a.Kc);c=Math.max(.9*(d-3),lO(a.Kc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Nj>0&&e&&(c=Math.max(c,a.policy.Nj));return LVa(a,c,b)}; +LVa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.fl,a.policy.mw*c),Math.min(Math.min(a.policy.Wa,31*c),Math.ceil(b*c))))||a.policy.fl}; +NVa=function(a,b,c){c=MVa(a,b.j.info.tb,c.j.info.tb,0);var d=lO(a.Kc)+c/oO(a.Kc);return Math.max(d,d+a.policy.bG-c/b.j.info.tb)}; +yX=function(a){return oO(a.Kc,!a.policy.Oj,a.policy.lw)}; +zX=function(a){return yX(a)/a.playbackRate}; +OVa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.w(b&&d.length>0?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return a0&&(this.j=c.Ov)}; +TVa=function(a,b,c,d,e){if(!e.info.Re){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:XM(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:XM(h,e))||(c=e);if(a.policy.Rc&&c.info.Ub)return a.logger&&a.logger({incompleteSegment:c.info.Sc()}),d;h=a.gQ(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.r8;h=h.startTimeMs;!a.policy.Rf&&a.policy.j&&a.bd&&(f=dX(a.bd,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,vn:e,Zi:e,NB:h,MB:c};e=QVa(b,d.startTimeMs);(c=e>=0?b[e]:null)&&RVa(a, +c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f=n+h.j?h=!0:p+h.j=0?a:-a-2}; +UVa=function(a,b){if(a.Rb){var c=a.Rb.oe();if(c.length!==0){if(a.policy.bB&&a.D&&b){var d=a.D,e=d.info.Ue;!OE(c,e)&&d.info.D>0&&(0,g.rt)()-a.G<5E3&&(a.logger&&a.logger({dend:d.info.Sc()}),c=Dwa(c,e,e+.01))}d=[];for(var f=e=0;e=h){var p=0;if(a.bd){var q=fX(a.bd,m*1E3);q&&(p=q.Sl/1E3)}q=Object.assign({},a.kd[f]);var r=a.manifest.K.get(eIa(a.kd[f].formatId)),t=Math.max(m, +h);h=r.index.Li(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.pw&&f===a.B&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.vn=h+a.C,q.startTimeMs=m*1E3):(q.vn=t,q.startTimeMs=u);q.NB=q.startTimeMs;h=void 0;m=((h=a.D)==null?void 0:h.info.duration)||11;f===a.B&&la.j/1E3);h=m+a.C;p=(r.index.aK(m)+p)*1E3;q.Zi=h;q.durationMs=p-q.startTimeMs;q.MB=q.durationMs;q.vn<=q.Zi&&d.push(q)}na.j)return!1;if(SVa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.MB=b.durationMs,b.Zi=Math.max(b.Zi,c.Zi),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.vn,h=b.Zi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.vn=c.vn;b.MB=c.durationMs;b.Zi=c.Zi;c.formatId=a;c.startTimeMs=e;c.NB=e;c.durationMs=d-e;c.MB=c.durationMs; +c.vn=f;c.Zi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.MB=b.durationMs);return!1}; +SVa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Vb||b.lmt===c.lmt}; +WVa=function(a,b,c){if(a.logger){for(var d=[],e=0;e=b+a.C}),d=a.By.some(function(e){return e.info.Pa===b}); +return c||d}; +AX=function(a,b,c,d,e){this.xa=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Wd;this.D=null;this.C=0}; +ZVa=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Pa;a.xo(d)||c&&c.Pa===d?(b.G=!a.xo(d),b.qa=!a.xo(d)):(b.G=!0,b.qa=!0)}}; +aWa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);$Va(a.videoTrack);$Va(a.audioTrack);a.policy.K||wIa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.xa;c.policy.yb||(c.currentTime=b);a.G=!0;a.D=new fF;return a.D}; +cWa=function(a,b,c,d,e){var f=a.policy.Rc?e:void 0;if(!b.j.hg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof BX))a:{if(b.C.length&&(f=b.C[0],f instanceof CX&&f.qh&&f.Ei)){f=!0;break a}f=!1}f||a.policy.B||DX(b);return c}var h=EX(b,c);if(!isNaN(h))return h;if(a.xa.gR(c*1E3))return c;e.cB||(b.lk(),a.policy.il?a.xa.uv(!1):a.xa.uv(!0));return d&&(a=PE(d.oe(),c),!isNaN(a))?(FX(b,a+bWa,f),c):FX(b,c,f)}; +fWa=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Jb||g.Be(function(){GX(a)}); +else{if(a.isSeeking()&&a.j){var e=dWa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.Be(function(){a.xa.oa("seekreason",{reason:"behindMinSq",tgt:e});eWa(a,e)}); +return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.bC||!a.B;EX(a.videoTrack,a.j)>=0&&EX(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.xa.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.Be(function(){if(a.B||!a.policy.Jb)GX(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j432E3&&xIa(a.manifest);a.C&&(e=a.C,a.C=0);g.Be(function(){a.policy.K||eWa(a,e,102)}); +a.xa.oa("initManifestlessSync",{st:e,ost:e+a.xa.Dc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&eWa(a,e,102)}}}; +KX=function(a,b){var c=this;this.Cb=a;this.requestNumber=++gWa;this.j=this.now();this.qa=this.G=NaN;this.N=this.j;this.B=this.Ob=this.D=0;this.K=this.j;this.Ra=this.Ga=this.Va=this.yc=this.wc=this.Fa=this.ra=this.C=0;this.Z=void 0;this.Ya=0;this.Y=this.isActive=!1;this.Ab=this.ob=0;this.hd={Loa:function(){return c.Np}}; +this.Kc=b.Kc;this.snapshot=mJa(this.Kc);this.policy=this.Kc.Ra;this.Rp=!!b.Rp;this.qv=b.qv;b.KJ&&(JX||(JX=XJ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.Z=new Uint8Array(2048));var d;this.Np=(d=b.Np)!=null?d:!1;jJa(this.Kc)}; +hWa=function(a){a.Va=Math.max(a.Va,a.D-a.wc);a.Ga=Math.max(a.Ga,a.N-a.yc);a.Fa=0}; +LX=function(a,b,c){kJa(a.Kc,b);if(a.Z){if(a.Ya+20>a.Z.length){var d=new Uint8Array(a.Z.length*2);d.set(a.Z);a.Z=d}iWa(a,Math.ceil(b)-Math.ceil(a.N));iWa(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.D/1024)))}d=b-a.N;var e=c-a.D;a.Ob=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3);a.N=b;a.D=c;a.Fa&&c>a.Fa&&hWa(a)}; +iWa=function(a,b){for(;b>31;)a.Z[a.Ya++]=JX[(b&31)+32],b>>=5;a.Z[a.Ya++]=JX[b]}; +jWa=function(a){return a.Z?g.UJ(a.Z.subarray(0,a.Ya)):""}; +kWa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +MX=function(a,b){KX.call(this,a,b);this.yb=this.Kb=!1;this.Ma=this.Aa=Infinity;this.La=NaN;this.Jb=!1;this.Xa=NaN;this.Tb=0;this.jA=b.jA||1;this.LS=b.LS||this.jA;this.Rl=b.Rl;this.Pa=b.Pa;this.gh=b.gh;lWa(this);this.pT(this.j);this.Wa=(this.Xa-this.j)/1E3}; +mWa=function(a,b,c){a.Rp||(b=Math.max(b,.01),hO(a.Kc,b,c,b))}; +nWa=function(a,b){return b?a.RK()&&!a.policy.j?!0:b>=2048:!1}; +oWa=function(a){return(a.K-a.j)/1E3}; +lWa=function(a){a.La=a.j+a.snapshot.delay*1E3;a.Jb=!1}; +rWa=function(a,b){if(a.Rl&&a.Pa!==void 0&&a.gh!==void 0){var c=Math,d=c.min,e=a.Aa;var f=a.Rl;var h=a.j;if(pWa(f,a.Pa))f=b;else{var l=0;f.tj&&(l=.2);f=h+(f.Wj+l)*1E3}a.Aa=d.call(c,e,f);c=Math;d=c.min;e=a.Ma;f=a.Rl;h=a.j;l=qWa(f,a.Pa,a.gh);l!==2&&(b=l?b:h+f.Wj*1E3,f.tj&&(b+=f.Wj*1E3));a.Ma=d.call(c,e,b);a.Aa<=a.j?lWa(a):(a.La=a.Aa,a.Jb=!0)}}; +sWa=function(a){a.Rl&&rWa(a,a.now());return a.Jb}; +tWa=function(a,b){if(b+1<=a.totalLength){var c=PJ(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=PJ(a,b++);else if(c===2)c=PJ(a,b++),a=PJ(a,b++),a=(c&63)+64*a;else if(c===3){c=PJ(a,b++);var d=PJ(a,b++);a=PJ(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=PJ(a,b++);d=PJ(a,b++);var e=PJ(a,b++);a=PJ(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),MJ(a,c,4)?a=jBa(a).getUint32(c-a.C,!0):(d=PJ(a,c+2)+256*PJ(a,c+3),a=PJ(a,c)+256*(PJ(a,c+1)+ +256*d)),b+=5;return[a,b]}; +NX=function(a){this.Cb=a;this.j=new IJ}; +OX=function(a,b){this.info=a;this.callback=b;this.state=1;this.PB=this.IQ=!1;this.dg=null}; +uWa=function(a){return g.ql(a.info.gb,function(b){return b.type===3})}; +vWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.status=0;this.j=new IJ;this.B=0;this.Ka=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.GB()}; +this.xhr.onload=function(){return e.onDone()}; +this.xhr.onerror=function(){return e.onError()}; +this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.rt)();e.Cb.Ds(f,e.B)},function(){},d.body||null)}; +wWa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; +yKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=PX.FC();d=new g.CJ(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;PX.lA("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})}; +DKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=PX.FC();d=new g.CJ(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;PX.lA("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})}; +xWa=function(a,b){var c=this;this.j=a;this.Cb=b;this.loaded=this.status=0;this.error="";a=yM(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new IJ;this.Js().then(function(){c.Cb.Ro()},function(d){c.error=""+d||"unknown_err"; +c.Cb.Ro()})}; +zWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.Ka()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Cb.Yu(),yWa(e)); +else e.onDone();else e.onError(Error("null_response"))}; +this.Z=function(f){var h=(0,g.rt)();e.Ka()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),yWa(e),e.Cb.Ds(h,e.B)))}; +this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; +this.j=new IJ;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; +yWa=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Zs)}; +AWa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Cb=b;this.B=this.status=0;this.Ka=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.GB(f)}; +a=wK(function(f){d.onDone(f)}); +this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",wK(function(f){d.Bg(f)}),!1)}; +QX=function(a,b,c,d,e){if(xL(a.base))return new xWa(a,c);a=a.Be();return d?SBa()?new vWa(a,b,c,e):new zWa(a,b,c,e):new AWa(a,c,e)}; +RX=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.O.call(this);this.Cb=a;this.policy=b;this.ge=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Ay=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.Oo(this.Mda,this.policy.bl,this)}; +BWa=function(a){a.resource.Z=(0,g.rt)();a=SX(a);a.B=(0,g.rt)();a.started+=1}; +CWa=function(a,b,c){a.timing.SR((0,g.rt)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;pM(SX(a));if((b=a.Ay)!=null&&(a=a.ge.base,!((0,g.rt)()=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)}; +SX=function(a){return qM(a.C,wL(a.ge.base))}; +DWa=function(a){var b=a.timing.wr();b.shost=wL(a.ge.base);return b}; +EWa=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)}; +FWa=function(a,b){for(var c=g.w(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.ac(d,function(l,m){return m.maxFramerate-l.maxFramerate}); +for(var e=[d[0]],f=0,h=1;ha.j||c.push(d)}return c}; +LWa=function(a,b,c){var d=IWa[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=JWa[a]||[]);b.push.apply(b,g.x(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.x(KWa[a]||[]))}; +RWa=function(a,b){var c=gQ(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Ck();if(d){if(!e.B){if(f&&VX)return VX;if(WX)return WX}}else if(WX&&!e.B)return WX;var h=[],l=[],m={},n=XX.concat(MWa);d&&(n=XX.concat(NWa));a.L("html5_early_media_for_drm")&&(n=n.concat(OWa),a.L("allow_vp9_1080p_mq_enc")&&n.push(PWa));var p=[].concat(g.x(QWa));c.Z&&(p[0]=["141"]);n=g.w(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.w(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u= +YO(t,f&&d);if(u&&u.video&&!(zE(u)&&!c.Ga&&u.video.j>c.xj)){var y=g.ZB(a.U().experiments,"html5_drm_byterate_soft_cap");y>0&&Bwa(u)&&u.tb>y||(r?(h.push(t),LWa(t,h,a)):(u=mL(c,u,e),u===!0?(r=!0,h.push(t),LWa(t,h,a)):m[t]=u))}}}p=g.w(p);for(n=p.next();!n.done;n=p.next())for(n=g.w(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=KJa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!AE(q)&&!BE(q)))if(q=mL(c,q,e),q===!0){l.push(r);LWa(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B= +!1,VX=WX=void 0),f?VX={video:h,audio:l}:WX={video:h,audio:l};WX={video:h,audio:l};e.B=!1;return WX}; +VWa=function(a){var b={},c=a.ea,d=a.Da,e=c.getVideoData(),f=NK(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.B$=f,b.lastManualDirection=TBa(),f=Pna()||0,f>0&&(f=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.rt)())-f,d.L("html5_use_date_now_for_local_storage")?f>0&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.Hea=NK();f=d.L("html5_use_streamer_bandwidth_for_low_latency_live")&&e.isLowLatencyLiveStream;if(d.schedule.Z&&!f){var m;f=d.L("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((m=a.Fe)==null||!m.Oj):!1;b.G7=oO(d.schedule,!f)}m=g.NO();var n=g.rE.medium,p=Math.floor(n*16/9);f=e.Ck()?n:p;n=e.Ck()?p:n;b.Q7=Math.max(h.width*m,f);b.P7=Math.max(h.height*m,n);b.visibility=l;b.Wea=tv();b.t8=g.LI(c.Xb().provider)*1E3;d.L("html5_sabr_support_quality_constraints")&&a.Uz&&(b.Uz=a.Uz);d.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(b.sabrLicenseConstraint=a.sabrLicenseConstraint);if(d.L("html5_enable_platform_backpressure_with_sabr")){if(b.ax=3,a.uH||(b.ax^=1),!a.xH|| +eQ(e))b.ax^=2}else{if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.ax=3;d.L("html5_onesie_audio_only_playback")&&eQ(e)&&(b.ax=1)}h=e.uf?e.uf:gQ(e);if(d.L("html5_onesie_media_capabilities")){l=d.G;m=[];f=[];n=d.L("html5_shorts_onesie_mismatched_fix");e=e.Ck();var q=XX.concat(MWa);n&&(q=XX.concat(NWa));d.L("html5_early_media_for_drm")&&(q=q.concat(OWa),d.L("allow_vp9_1080p_mq_enc")&&q.push(PWa));p=[].concat(g.x(QWa));h.Z&&(p[0]=["141"]);q=g.w(q);for(var r=q.next();!r.done;r= +q.next()){r=g.w(r.value);for(var t=r.next();!t.done;t=r.next()){t=t.value;var u=YO(t,e&&n);if(u&&u.video){var y=g.ZB(d.experiments,"html5_drm_byterate_soft_cap");if(!(y>0&&Bwa(u)&&u.tb>y)&&mL(h,u,l)===!0){m.push({videoCodec:SWa[vE[t]],maxWidth:u.video.width,maxHeight:u.video.height,maxFramerate:u.video.fps});break}}}}e=g.w(p);for(n=e.next();!n.done;n=e.next())for(n=g.w(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=KJa(p))&&q.audio&&(d.L("html5_onesie_51_audio")||!AE(q)&&!BE(q))&&mL(h,q,l)=== +!0){f.push({audioCodec:TWa[vE[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={videoFormatCapabilities:m,audioFormatCapabilities:f}}var A;if((A=a.Fe)==null?0:A.B&&A.zp){A=d.G;l=[];m=[];f=new Map;if((e=A.j)&&e.size>0)for(e=g.w(e.values()),n=e.next();!n.done;n=e.next())p=n.value,p.Gh?m.push({audioCodec:TWa[p.rb],numChannels:p.numChannels,spatialCapabilityBitmask:UWa[p.rb]}):(q=SWa[p.rb],n={videoCodec:q,maxWidth:p.maxWidth||0,maxHeight:p.maxHeight||0,maxFramerate:p.maxFramerate||0,is10BitSupported:p.SF|| +!1},p.maxBitrateBps&&(n.maxBitrateBps=p.maxBitrateBps,r=YO(p.itag),t=void 0,((t=r)==null?0:t.video)&&mL(h,r,A)===!0&&(r=r.tb*8,r>n.maxBitrateBps&&(n.maxBitrateBps=r))),p=q+"_"+p.SF,q=f.get(p)||[],q.push(n),f.set(p,q));l=FWa(l,f);b.mediaCapabilities={videoFormatCapabilities:l,audioFormatCapabilities:m,hdrModeBitmask:3}}var D;if((D=a.Fe)==null?0:D.B){b.Vo=h.Vo;var F;b.xj=(F=a.Fe)==null?void 0:F.xj}d.Sf&&(b.q8=d.Sf);b.ZS=a.IE;b.Qy=a.Qy;if(d.L("html5_fix_time_since_last_seek_reporting")?a.mq!==void 0: +a.mq)b.Xea=(0,g.rt)()-a.mq;a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);VN||(b.eaa=!0);D=lO(d.schedule)*1E3;D>0&&(b.V7=D);var H;((H=a.Fe)==null?0:H.jw)&&a.gy&&a.gy0?a:d.schedule.interruptions[0]||0);return b}; +YX=function(a,b,c,d,e,f){var h={};b&&(h.RB=b);if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.fT=e);h.fN=[];h.zM=[];if(g.WP(a)&&a.sabrContextUpdates.size>0)for(b=g.w(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())WWa(h,c.value,d);TP(a)&&!g.WP(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&WWa(h,f,d);a.bB&&(h.Bea=a.bB);d=a.U().j;h.clientInfo={clientName:XWa[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel= +d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.qp&&(h.qp=a.qp);return h}; +WWa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.zM.push(b):a.fN.push(d)}; +CX=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.cH===void 0?[]:h.cH;var m=h.YH===void 0?!1:h.YH;var n=h.Mw===void 0?0:h.Mw;var p=h.poToken===void 0?"":h.poToken;var q=h.Ay===void 0?void 0:h.Ay;var r=h.kH===void 0?"":h.kH;var t=h.qh===void 0?0:h.qh;var u=h.Ei===void 0?new Uint8Array(0):h.Ei;var y=h.QM===void 0?!1:h.QM;f=h.uq===void 0?0:h.uq;h=h.RB===void 0?void 0:h.RB;OX.call(this,b,e);var A=this;this.policy=a;this.logger=new g.yN("dash/request");this.Vz=this.zg=0;this.z2=!1;this.Ur=this.eq= +null;this.wZ=!1;this.Ei=this.qh=null;this.dN=this.G3=!1;this.iJ=null;this.uq=this.Tp=0;this.Bu=!1;this.hd={xd:function(F){A.xd(F)}, +roa:function(){return A.dg}, +Npa:function(F){A.dg=F}, +Mpa:function(F){A.zg=F}, +Lpa:function(F){A.yd.lastError=F}, +vQ:function(){return A.xhr}}; +this.timing=new MX(this,c);this.YH=m;this.qh=t;this.Ei=u;this.ge=g.LM(this.info,this.policy,d);this.ge.set("rn",this.Xp().toString());this.ge.set("rbuf",(n*1E3).toFixed().toString());this.YH&&this.ge.set("smb","1");this.policy.jm&&p&&this.ge.set("pot",p);r&&this.ge.set("bbs",r);this.policy.useUmp&&!xL(this.ge.base)&&(this.Yl=new NX(this),this.ge.set("ump","1"),this.ge.set("srfvp","1"));if(a=this.policy.jt?this.policy.ID&&!isNaN(this.info.gh)&&this.info.gh>this.policy.iE?!1:!0:!1)b=null,this.policy.aE&& +this.policy.wk?b=[1]:y&&(b=[]),b!=null&&(this.policy.jD&&b.push(2),this.ge.set("defsel",b.join(",")));this.yd=new RX(this,this.policy,this.ge,this.info.resource,this.timing,this.logger,d,q);this.cH=l||null;this.PB=YWa(this);BWa(this.yd);d=void 0;if(this.policy.dE||this.Yl||this.policy.La)d={method:"POST"},l=(0,g.ZX)([120,0]),q={},this.policy.kD&&h&&(h=YX(void 0,h),q.IC=h),this.policy.qw&&this.Ei&&(q.videoPlaybackUstreamerConfig=this.Ei),this.policy.La&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length> +0?d.body=g.pK(q,g.XK):d.body=l;if(this.qh&&this.Ei){this.ge.set("iwts","1");d={method:"POST"};h={Qy:this.qh*1E3};var D;l=(D=this.info.D)==null?void 0:D.jn;D=g.pK({Cr:h,jn:l||void 0,videoPlaybackUstreamerConfig:this.Ei},g.XK);d.body=D}try{this.xhr=QX(this.ge,this.policy.N,this.timing,a,d),this.yd.B.start(),f&&(this.Qu=new g.Oo(this.P_,f,this),this.Qu.start(f+(this.timing.Kc.N.eh()||0)*1E3)),this.policy.cD&&kWa(this.timing,this.Be()),this.logger.debug(function(){return"Sent, itag="+A.ge.get("itag")+ +" seg="+A.info.gb[0].Pa+" range="+A.ge.get("range")+" time="+Math.round(A.info.gb[0].Ue)+"-"+Math.round(g.Kb(A.info.gb).Mf)+" rtp="+(A.timing.mK()-Date.now()).toFixed(0)}),g.Be(function(){})}catch(F){ZWa(this,F,!0)}}; +YWa=function(a){if(!(KM(a.info)&&a.info.Np()&&a.policy.je&&a.cH)||a.info.resource.B>=2||NK()>0||!ZBa())return!1;var b=a.ge.get("aitags");if(!b)return!1;b=Sd(b).split(",");for(var c=[],d=g.w(a.cH),e=d.next();!e.done;e=d.next())e=e.value,g.Ob(b,e)&&c.push(e);if(!c.length)return!1;a.ge.set("altitags",g.Rd(c.join(",")));return!0}; +ZWa=function(a,b,c){c=c===void 0?!1:c;g.Bw(b);a.yd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Be(function(){TX(a.yd)}):TX(a.yd)}; +$Wa=function(a){if(a.policy.TC)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.mF();c=!c||c<=a.policy.rq;return(!a.xhr.JC()||!b||b.indexOf("text/plain")!==-1)&&c}; +aXa=function(a,b){var c=SJ(b);return LC(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""}; +bXa=function(a,b){a.timing.Y=!0;a.timing.policy.j&&a.timing.ov();if(a.policy.Sd){var c;(c=a.Qu)==null||c.stop()}GW(a.dg,b,!1)}; +cXa=function(a,b){a.info=b;if(a.dg){var c=a.dg;b=b.gb;(b.length!==c.gb.length||b.length=h,l=a.manifest.isManifestless&&a.policy.Vv,f){if(a.policy.PD){var m; +if(((m=a.j)==null?void 0:m.Lg.event)==="predictStart"&&a.j.Paa.G&&(a.G=NaN,a.N=NaN);if(a.j&&a.j.Pa===b)a:{d=a.j;if(a.policy.Ab){if(a.ra===b)break a;a.ra=b}f=d.Lg;var h=e.Uu(f);a.oa("sdai",{onqevt:f.event,sq:b,mt:c,gab:h,cst:f.startSecs});if(h)f.event!=="predictStart"?d.JF?eY(a,4,"cue"):(a.G=b,a.N=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.N.toFixed(3)}),a.Y=Date.now(),eY(a,2,"join"),e.uK(d.Lg)):(a.policy.G? +(a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),eY(a,3,"predict"),e.uK(d.Lg));else if(a.B===1){var l;((l=a.K)==null?0:l.xP(c))?(yXa(a.xa,c,c,b),eY(a,4,"sk2had")):eY(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B=== +1&&eY(a,5,"noad")}; +BXa=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G){a=a.videoTrack;var d;return!((d=a.Z)==null||!YVa(d,c))||zXa(a.D,c)}d=AXa(a.videoTrack);if(c>(d?d.Pa:-1))return!1}return!0}; +fY=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.N)?a.N:b}; +uXa=function(a,b){if(a.j){var c=a.j.Lg.Ch-(b.startTime+a.Z-a.j.Lg.startSecs);c<=0||(c=new LL(a.j.Lg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Lg.context,a.j.Lg.identifier,"stop",a.j.Lg.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Pa}),dY(a,c,b.Pa))}}; +eY=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; +gY=function(a,b,c,d){(d===void 0?0:d)?eY(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&eY(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))}; +hY=function(a,b,c){this.audio=a;this.video=b;this.reason=c}; +iY=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0}; +jY=function(a,b,c){g.O.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1}; +kY=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.rt)()+c;a.C.set(b.info.id,c)}; +lY=function(a){for(var b=g.w(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d<(0,g.rt)()&&a.C.delete(c)}return a.C}; +CXa=function(a){return a.K&&lY(a).size>0}; +mY=function(a,b){a.j!==b&&(a.j=b,a.B=!0)}; +DXa=function(a,b){var c;b&&(c=g.Mb(a.D.j,function(e){return e.id===b})); +if(!c&&(c=g.Mb(a.D.j,function(e){var f;return!((f=e.Yb)==null||!f.isDefault)}),a.policy.jl&&b)){var d; +a.oa("iaf",{id:b,sid:(d=c)==null?void 0:d.id})}return c}; +EXa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.xa=a;this.Aa=b;this.policy=c;this.manifest=d;this.K=e;this.fb=f;this.logger=new g.yN("dash/abr");this.j=HP;this.C=this.N=null;this.Y=-1;this.La=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.Ma={};this.Xa=new eO(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Fa=0;this.Ya=!1;this.Ga=new Set;this.Ra=!1;this.hd={s2:function(){nY(h)}}; +this.G=new jY(this.policy,e,function(l,m){h.xa.oa(l,m)})}; +JXa=function(a,b,c){oY(a,b);FXa(a,c);a.N=a.B;GXa(a);HXa(a);a.C=a.nextVideo;a.N=a.B;return IXa(a)}; +MXa=function(a,b){if(KXa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+hL(b)}),oY(a,b),a.Z=a.D.length-1,nY(a),pY(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new hY(a.B,a.C,b.reason); +b.reason==="r"&&(a.Y=-1);oY(a,b);pY(a);if(b.reason==="r"&&a.nextVideo===a.C)return new hY(a.B,a.nextVideo,b.reason);LXa(a);return null}; +NXa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new hY(a.N,a.C,c?"t":"m")}; +OXa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,IXa(a)}else a.Wa=a.N!==b,a.N=b;return null}; +PXa=function(a,b){if(b.j.info.video&&b.Re){var c=(b.Ub+b.B)/b.duration,d=b.j.info.tb;c&&d&&(a.Xa.Dm(1,c/d),a.policy.C&&c/d>1.5&&a.xa.oa("overshoot",{sq:b.Pa,br:c,max:d}))}}; +qY=function(a,b,c){kY(a.G,b,c===void 0?!1:c);a.Y=-1;oY(a,a.j)}; +rY=function(a,b){return new hY(a.N,a.C,b||a.j.reason)}; +LXa=function(a){if(a.C&&a.nextVideo&&sY(a,a.C.info)a.policy.xj,l=e<=a.policy.xj?zE(d):xE(d);if(!f||h||l)c[e]=d}return c}; +oY=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.rt)();c=g.Ym(c,function(r){if(r.tb>this.policy.tb)return!1;var t=this.manifest.j[r.id];return lY(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+KE(r)+"; 4 load failures"}),!1):this.Ga.has(+r.itag)?!1:!0},a); +CXa(a.G)&&(c=g.Ym(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos); +var e=g.Ym(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Mb(c,function(r){return r.id===a.G.j}); +f?e=[f]:mY(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.OD&&xX&&g.jt&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); +if(e.length>0)if(WE()){var h=QXa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.rb===h[r.video.j].rb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j; +if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n}); +var p=QXa(a,b)[n].rb;e=e.filter(function(r){return!!r&&!!r.video&&r.rb===p})}}e.length||(e=[c[0]]); +e.sort(function(r,t){return sY(a,r)-sY(a,t)}); +c={};for(b=1;bc.DO.video.width?(g.Qb(e,b),b--):sY(a,c.iO)*a.policy.Z>sY(a,c.DO)&&(g.Qb(e,b-1),b--);var q=e[e.length-1];a.Ya=!!a.C&&!!a.C.info&&a.C.info.rb!==q.rb;a.logger.debug(function(){return"Constraint: "+hL(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+KE(q)}); +a.D=e;a.Va.clear();c=!1;for(b=0;b=1080&&(c=!0);lOa(a.policy,q,a.manifest.Vb)}; +FXa=function(a,b){if(a.policy.jl){var c=DXa(a.G,b);b||c||(c=RXa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Mb(a.K.j,function(d){return!!d.Yb&&d.Yb.isDefault}))||(c=RXa(a)),c=c||a.K.j[0]; +a.B=a.manifest.j[c.id];nY(a)}; +SXa=function(a,b){for(var c=0;c+1d}; +nY=function(a){if(!a.B||!a.policy.D&&!a.B.info.Yb){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j)); +a.B=a.manifest.j[b[0].id];if(b.length>1){var c=!1;if(c=a.policy.Cd?!0:a.j.isLocked()?a.j.j<240:SXa(a,a.B))a.B=a.manifest.j[g.Kb(b).id]}}}; +pY=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.Kb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+KE(a.nextVideo.info)}); +else{for(var b=Math.min(a.Z,a.D.length-1),c=zX(a.Aa),d=sY(a,a.B.info),e=c/a.policy.qa-d;b>0&&!(sY(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+KE(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+hL(a.j)}); +a.Z=b}}; +GXa=function(a){var b=a.policy.qa,c=zX(a.Aa),d=c/b-sY(a,a.B.info);b=g.Nb(a.D,function(e){return sY(this,e)1E3&&(b=c));return b}; +VXa=function(a){var b=a===void 0?{}:a;a=b.tj===void 0?!1:b.tj;var c=b.wk===void 0?!1:b.wk;b=b.jt===void 0?!1:b.jt;return a?b?3:2:c?-1:1}; +XXa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Fa=c;this.D=this.B=0;this.Gf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new fF;this.ra=this.Aa=!1;this.hd={loa:function(){return d.C}, +Hna:function(){return d.chunkSize}, +Bna:function(){return d.N}, +Ana:function(){return d.K}}; +(b=WXa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.nz,this.C=0,this.N=g.ov(16),this.K=g.ov(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new wWa(this.N,this.K))}; +WXa=function(a){if(a.policy.Pf&&a.policy.dD)for(var b=g.w(a.policy.Pf),c=b.next(),d={};!c.done;d={YO:void 0,oP:void 0},c=b.next())if(c=g.Vq(c.value),d.YO=+c.clen,d.oP=+c.csz,d.YO>0&&d.oP>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.YO,a.csz=d.oP,a.ck=c.ck,a.civ=c.civ,a}; +tY=function(a){return!!a.Gf&&a.Gf.Mi()}; +bYa=function(a,b){if(!tY(a)&&!a.Ka()){if(!(a.Aa||(a.Aa=!0,a.C>0))){var c=YXa(a);c=yP(a.policy.D,a.j.info,uY(a),c,a.policy.fb);ZXa(a,c)}if(b.info.type===1){if(a.Gf){vY(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=zM(0,b.j.totalLength)}else if(b.info.type===2)a.Gf&&a.Gf.type===1||vY(a,Error("Woffle: Index before init")),a.indexRange=zM(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Gf){vY(a,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(a.Gf.type===3&&!EM(a.Gf,b.info)&&(a.Y=[],b.info.Pa!==FM(a.Gf)||b.info.Ub!==0))return;if(b.info.Re){c=g.w(a.Y);for(var d=c.next();!d.done;d=c.next())$Xa(a,d.value);a.Y=[]}else{a.Y.push(b);a.Gf=b.info;return}}else{vY(a,Error("Woffle: Unexpected slice type"));return}a.Gf=b.info;$Xa(a,b);aYa(a)}}; +$Xa=function(a,b){var c=0,d=NJ(b.j);if(a.D=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=gYa(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=Bf(Yf(n,7)),b==null||a.Ke||(a.cryptoPeriodIndex=b),b=Bf(Yf(n,10)),b!=null&&b>0&&!a.Ke&&(a.j=b),n=Qda(n, +2,Tf(n.xb)&34?Rda:Sda,void 0===Yda?2:5),n=g.w(n),b=n.next();!b.done;b=n.next())a.C.push(g.Qe(Ze(b.value),4))}; +iYa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Qe(a.initData):""+a.cryptoPeriodIndex}; +yY=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.fH===void 0?void 0:d.fH;d=d.HK===void 0?!1:d.HK;this.videoId=a;this.status=b;this.videoDuration=c;this.fH=e;this.HK=d}; +jYa=function(a,b,c,d,e){this.videoId=a;this.MP=b;this.B=c;this.bytesDownloaded=d;this.j=e}; +zY=function(a){this.j=a;this.offset=0}; +kYa=function(a){if(a.offset>=a.j.totalLength)throw Error();return PJ(a.j,a.offset++)}; +lYa=function(a,b){b=b===void 0?!1:b;var c=kYa(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=kYa(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+kYa(a),d*=128;return b?c:c-d}; +mYa=function(a){try{var b=lYa(a,!0),c=lYa(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; +nYa=function(a){for(var b=new zY(a),c=-1,d=0,e=0;!d||!e;){var f=mYa(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Om()}else if(h===186){if(f!==2)return;e=b.Om()}h===374648427?c=b.Om()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=OJ(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new IJ([b]);JJ(d,a);return d}; +pYa=function(a,b,c){var d=this;this.xa=a;this.policy=b;this.K=c;this.logger=new g.yN("dash");this.B=[];this.j=null;this.Aa=-1;this.Y=0;this.Ga=NaN;this.qa=0;this.C=NaN;this.Z=this.La=0;this.Wa=-1;this.Ma=this.G=this.D=this.Fa=null;this.Xa=this.Va=NaN;this.N=this.ra=this.Ya=this.fb=null;this.ob=!1;this.Ra=this.timestampOffset=0;this.hd={TY:function(){return d.B}}; +if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.fb&&a.oa("atv",{ap:this.policy.fb});this.N=new XXa(this.policy,e,function(h,l,m){AY(a,new yY(d.policy.D,2,{fH:new jYa(f,h,e.info,l,m)}))}); +this.N.Z.promise.then(function(h){d.N=null;h===1?AY(a,new yY(d.policy.D,h)):d.xa.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +h instanceof wY&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.xa.oa("offlinenwerr",{em:l}),oYa(d),AY(a,new yY(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.xa.oa("dldbwerr",{em:l}),oYa(d),AY(a,new yY(d.policy.D,4,{HK:!0})))})}}; +qYa=function(a){return a.B.length?a.B[0]:null}; +zXa=function(a,b){return a.B.some(function(c){return c.info.Pa===b})}; +xYa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Ub+a.G.B;if(c.info.Ub>0)if(c.info.Pa===a.G.Pa&&c.info.Ub=0&&a.G.Pa>=0&&!EM(a.G,c.info))throw new g.Ks("improper_continuation",a.G.Sc(),c.info.Sc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:EM(e,f)||(Math.abs(e.Ue-f.Ue)<=1E-6&&e.Pa===f.Pa?0:iEa(e,f)))||rYa(a,"d")}else if(c.info.Ub>0)throw new g.Ks("continuation_of_null",c.info.Sc());a.G=c.info; +a.K=c.info.j;if(c.info.Ub===0){if(a.j)if(!a.xa.isOffline()||a.policy.al)a.xa.oa("slice_not_fully_processed",{buffered:a.j.info.Sc(),push:c.info.Sc()});else throw new g.Ks("slice_not_fully_processed",a.j.info.Sc(),c.info.Sc());BY(a);a.La=d}else{if(a.La&&d&&a.La!==d)throw a=new g.Ks("lmt_mismatch",c.info.Pa,a.La,d),a.level="WARNING",a;!c.info.j.Um()&&a.D&&(d=c.info,e=a.D.nj,d.C="updateWithEmsg",d.Pa=e)}if(a.j){d=XM(a.j,c);if(!d)throw new g.Ks("failed_to_merge",a.j.info.Sc(),c.info.Sc());a.j=d}else a.j= +c;a:{c=g.CE(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Re)break a;a.j.info.type===6?sYa(a,b,a.j):tYa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Aa<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+80))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Om()+p,m=!0);else{if(l&&(q=== +160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Om()+p);if(q===160){f<0&&(e=f=h.Om()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Aa=f;a.Y=e-f}if(a.Aa>d)break;a.Aa?(d=uYa(a,a.Aa),d.G&&vYa(a,d),sYa(a,b,d),wYa(a,d),a.Aa=0):a.Y&&(d=uYa(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,wYa(a,d))}}a.j&&a.j.info.Re&&(wYa(a,a.j),a.j=null)}; +tYa=function(a,b){!b.info.j.Um()&&b.info.Ub===0&&(g.CE(b.info.j.info)||b.info.j.info.Ke())&&NHa(b);if(b.info.type===1)try{vYa(a,b),yYa(a,b)}catch(e){g.Bw(e);var c=GM(b.info);c.hms="1";a.xa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.AQ(b);a.N&&bYa(a.N,b);if(c.hg()&&a.policy.B)a:{a=a.xa.manifest;b=b.info.clipId;c=EE(c.info,a.Vb);if(b){var d=dIa(a,c);if(a.Wa[d])break a;a.Wa[d]=b}a.Va.push(c)}}; +oYa=function(a){var b;(b=a.N)==null||b.dispose();a.N=null}; +zYa=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0); +a.j&&(b+=a.j.j.totalLength);return b}; +AYa=function(a){if(a.ra&&!a.policy.Wq){var b=a.xa;b.manifest.isManifestless&&tN(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.fb;a.C=a.G?a.C-a.qa:NaN;BY(a)}; +uYa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=IHa(c,b);a.j=c[1];return c[0]}; +vYa=function(a,b){var c=WM(b);if(yE(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new $L(c);bM(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;xE(d)&&!yE(d)&&(d=WM(b),(new $L(d)).Fo(),fM([408125543,374648427,174,224],21936,d));b.info.j.info.yg()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.CE(d.info)?d.B=ODa(c):d.info.Ke()&&(d.B=VDa(c))));b.info.j.info.Ke()&& +b.info.yg()&&(c=WM(b),(new $L(c)).Fo(),fM([408125543,374648427,174,224],30320,c)&&fM([408125543,374648427,174,224],21432,c));if(a.policy.KD&&b.info.j.info.Ke()){c=WM(b);var e=new $L(c);if(bM(e,[408125543,374648427,174,29637])){d=eM(e,!0);e=e.start+e.pos;for(var f=0;f=CY(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&BYa(c)&&(b=a.Fa,MW?(l=LHa(c),h=1/l,l=CY(a,l),b=CY(b)+h-l):b=b.getDuration()- +a.getDuration(),b=1+b/c.info.duration,NDa(WM(c),b))}else{h=!1;a.D||(NHa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.nj,f.C="updateWithEmsg",f.Pa=d,f=c.B,f.Mi&&(d=a.K.index,d.B=!f.Mi,d.C="emsg"),f=c.info.j.info,d=WM(c),g.CE(f)?YL(d,1701671783):f.Ke()&&fM([408125543],307544935,d)));a:if((f=$M(c,a.policy.Tb))&&MHa(c))l=CYa(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.Zj?a.C+f:NaN;else{if(a.policy.ww){if(d=m=a.xa.Hp(YM(c),1),a.C>=0&&c.info.type!==6){if(a.policy.Zj&&isNaN(a.Va)){g.Cw(new g.Ks("Missing duration while processing previous chunk", +c.info.Sc()));a.xa.isOffline()&&!a.policy.al||DYa(a,c,d);rYa(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ma?a.Ma.Pa:-1,t=a.Xa,u=a.Va,y=a.policy.kq&&n>a.policy.kq,A=Math.abs(p)>10,D=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Ra+=1;var F=(e=a.D)==null?void 0:OL(e);e={audio:""+ +a.Gh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(y||A)};if(F==null?0:F.length)e.adCpn=F[0];a.xa.handleError("qoe.avsync", +e);a.Wa=q}y||A||D||(d=a.C);e=CYa(a,c,m);f-=e;a.Z=n+e;a.policy.C&&(p&&!D||e)&&(n=(l=a.D)==null?void 0:OL(l),a.xa.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;DYa(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.bq&&a.Ra>=a.policy.bq&&(a.Ra=0,a.xa.Lq({resetForRewrites:"count"})))}a.Ma= +c.info;a.Va=ZM(c);c.C>=0&&(a.Xa=c.C);if(h&&a.D){h=EYa(a,!0);HM(c.info,h);a.j&&HM(a.j.info,h);b=g.w(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Pa!==((e=a.D)==null?void 0:e.nj)||HM(l,h);(c.info.Re||a.j&&a.j.info.Re)&&c.info.type!==6||(a.ra=h,b=a.xa,b.manifest.isManifestless&&FYa(b,h,null,!!a.K.info.video),a.policy.uf||GYa(a))}}yYa(a,c);a.timestampOffset&&KHa(c,a.timestampOffset)}; +wYa=function(a,b){if(b.info.Re){a.fb=b.info;if(a.D){var c=a.D,d=EYa(a,!1),e=null;if(a.D.JF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=OL(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.w(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.w(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= +m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.w(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new fYa(e,f,h,l,g.JDa(c),g.KDa(c))}a.xa.tS(a.K,d,e);a.ra||a.policy.uf||GYa(a);a.ra=null}BY(a)}a.N&&bYa(a.N,b);if(c=a.Uo())if(c=XM(c,b,a.policy.mm)){a.B.pop();a.B.push(c);return}a.B.push(b)}; +BY=function(a){a.j=null;a.Aa=-1;a.Y=0;a.D=null;a.Ga=NaN;a.qa=0;a.ra=null}; +rYa=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.Ma=null;a.Xa=NaN;a.Va=NaN;a.Ya=null;a.xa.oa("mdstm",b)}; +yYa=function(a,b){if(a.K.info.le){if(b.info.j.info.Ke()){var c=new $L(WM(b));if(bM(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=eM(c,!0);c=d!==16?null:jM(c,d)}else c=null;d="webm"}else b.info.G=dYa(WM(b)),c=eYa(b.info.G),d="cenc";c&&c.length&&(c=new xY(c,d),a.policy.iI&&g.CE(b.info.j.info)&&(d=TDa(WM(b)))&&(c.B=d),c.Ke=b.info.j.info.Ke(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.xa.wy(c))}}; +GYa=function(a){var b=a.D,c=HDa(b);c&&(c.startSecs+=a.Ga,a.xa.sS(a.K,c,b.nj,b.JF()))}; +EYa=function(a,b){var c,d=a.D;if(c=HDa(d))c.startSecs+=a.Ga;return new BL(d.nj,a.Ga,b?d.Vj:a.qa,d.ingestionTime,"sq/"+d.nj,void 0,void 0,b,c)}; +DYa=function(a,b,c){if(!JHa(b,c))return b=GM(b.info),b.smst="1",a.xa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0}; +CYa=function(a,b,c){var d=0;if(b.info.j.info.Ke()&&!MHa(b))return 0;if(a.Fa&&!a.Gh()){var e=0;c&&g.CE(b.info.j.info)?e=c-a.C:b.info.j.info.Ke()&&(e=a.Z);var f=b.info.Pa;c=$M(b,a.policy.Tb);var h=a.Fa;var l=h.Wa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.CE(b.info.j.info))NDa(WM(b),d);else if(b.info.j.info.Ke()&&(f=e-h,!g.CE(b.info.j.info)&&(b.info.j.info.Ke(),d=new $L(WM(b)),l=b.G?d:new $L(new DataView(b.info.j.j.buffer)),$M(b,!0)))){var n= +f*1E3,p=lM(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||mM(d))if(dM(d,160))if(eM(d,!0),dM(d,155)){if(f=d.pos,m=eM(d,!0),d.pos=f,n=n*1E9/p,p=gM(d),n=p+Math.max(-p*.7,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;f>=0;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=$M(b,a.policy.Tb);d=c-d}d&&b.info.j.info.Ke()&&a.xa.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; +BYa=function(a){return a.info.j.Um()&&a.info.Pa===a.info.j.index.qd()}; +CY=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; +HYa=function(a,b){b<0||(a.B.forEach(function(c){KHa(c,b)}),a.timestampOffset=b)}; +BX=function(a,b,c,d,e){OX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Zf=d;this.lastError=null;this.Bg=function(){f.Ka()||(f.Zf.fd.has(f.formatId)?(f.isComplete()||f.j.start(),KW(f.Zf,f.formatId)&&f.AB(2),f.Zf.Ng(f.formatId)&&(TTa(f.Zf,f.formatId)?f.xd(4):(f.lastError="net.closed",f.xd(5)))):(f.lastError="player.exception",f.xd(5)))}; +this.j=new g.Oo(function(){f.isComplete()||(f.lastError="net.timeout",f.xd(5))},this.policy.jH); +this.j.start();OTa(this.Zf,this.formatId,this.Bg);g.Be(this.Bg)}; +DY=function(a,b,c,d){g.O.call(this);var e=this;this.xa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.yN("dash");this.C=[];this.ra=[];this.B=this.Rb=null;this.Ma=!1;this.La=this.Ra=0;this.K=-1;this.qa=!1;this.Fa=-1;this.Aa=this.Ga=null;this.Y=NaN;this.hd={hQ:function(){return e.D}, +joa:function(){return e.C}, +Fna:function(){return e.Z}}; +this.D=new pYa(a,b,c);this.policy.B&&(this.Z=new PVa(this.D,this.xa.getManifest(),this.policy,function(f){e.policy.Ep&&e.xa.oa("buftl",f)})); +this.tb=c.info.tb;this.N=this.policy.Y?!1:c.TA();this.isManifestless=c.TA();this.G=this.N;g.P(this,this.Ga)}; +EY=function(a,b,c){c=c===void 0?!1:c;b&&MW&&HYa(a.D,b.tQ());if(!c){var d;(d=a.Z)==null||XVa(d)}a.Rb=b;(b=a.Z)!=null&&(b.Rb=a.Rb)}; +FY=function(a){var b=a.Rb&&a.Rb.Kr();if(a.policy.Ew){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.D)==null?void 0:c.info}return a||null}return b}; +IYa=function(a){for(var b={},c=0;c4&&a.ra.shift()}; +KYa=function(a,b){if(b.Tl()){var c=b.Vk();c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.C&&b instanceof BX&&a.xa.oa("omblss",{s:d.info.Sc()}),GY(a,b.info.gb,d,b.qQ())}}; +GY=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.xa.oa("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:LYa(a,c);break;case 4:var e=c.info.j,f=e.aW(c),h;((h=a.B)==null?0:h.type===4)&&sHa(c.info,a.B)&&(a.B=e.kC(a.B).pop());c=g.w(f);for(e=c.next();!e.done;e=c.next())GY(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Fa||(e.Fa=(0,g.rt)(),HF("fvb_r",e.Fa,e.j))):(e=a.timing,e.K||(e.K=(0,g.rt)(),HF("fab_r",e.K,e.j))); +xYa(a.D,b,c,d);a.policy.B&&MYa(a);break;case 6:xYa(a.D,b,c,d),a.B=c.info}}; +LYa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.rt)(),HF("vis_r",c.Ma,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.rt)(),HF("ais_r",c.Z,c.j));tYa(a.D,b);a=a.xa;a.videoTrack.j.hg()&&a.audioTrack.j.hg()&&a.policy.B&&!a.manifest.Vb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+EE(a.audioTrack.j.info,!1),vf:""+EE(a.videoTrack.j.info,!1),a:""+b,v:""+c}))}; +IX=function(a){return qYa(a.D)}; +MYa=function(a){a.C.length?a.B=g.Kb(g.Kb(a.C).info.gb):a.D.B.length?a.B=a.D.Uo().info:a.B=FY(a)}; +HY=function(a,b){var c={kd:[],To:[]},d;if((a=a.Z)==null)a=void 0;else{WVa(a,a.kd,"og");UVa(a,b);WVa(a,a.kd,"trim");var e=VVa(a);b=e.kd;e=e.By;for(var f=[],h=0;h0){var r=NE(q,m);r>=0&&(p=(q.end(r)-m)*1E3)}f.push({formatId:EE(l.info.j.info,a.manifest.Vb),Tj:l.info.Tj, +sequenceNumber:l.info.Pa+a.C,UJ:n,s_:l.info.B,I8:p})}a={kd:b,To:f}}return(d=a)!=null?d:c}; +EX=function(a,b,c){c=c===void 0?!1:c;if(a.Rb){var d=a.Rb.oe(),e=PE(d,b),f=NaN,h=FY(a);h&&(f=PE(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&NYa(OYa(a),0))return b}a=PYa(a,b,c);return a>=0?a:NaN}; +FX=function(a,b,c){a.j.hg();var d=PYa(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.Rc&&c!=null&&c.cB||(d.By=[]);UVa(d,!0);d.B=QVa(d.kd,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Gf&&e.Gf.type===3)e=e.Gf.startTime;else if(e.C>0){var f=e.j.index;f=g.Zb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=(h=a.xa.Bf())==null?void 0:(l=fX(h,b))==null?void 0:l.clipId;a.B=a.j.Or(b, +void 0,c).gb[0]}else a.B=a.policy.Y?null:a.j.Or(b).gb[0];IY(a)&&a.Rb&&a.Rb.abort();a.La=0;return a.B?a.B.startTime:b}; +$Va=function(a){a.N=!0;a.G=!0;a.K=-1;FX(a,Infinity)}; +JY=function(a){for(var b=0,c=g.w(a.C),d=c.next();!d.done;d=c.next())b+=uHa(d.value.info);return b+=zYa(a.D)}; +LY=function(a,b){b=b===void 0?!1:b;var c=a.xa.getCurrentTime(),d=a.D.Uo(),e=(d==null?void 0:d.info.Mf)||0;a.policy.Mq&&(d==null?0:d.info.j.TA())&&!d.info.Re&&(e=d.info.Ue);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.xa.Bf())==null?void 0:dX(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Rb)return a.policy.B&&b&&!isNaN(c)&&d?e-c:0;if((f=FY(a))&&KY(a,f))return f.Mf;f=a.Rb.oe(!0);return b&&d?(b=0,a.policy.B&&(b=RE(f,e+.02)),b+e-c):RE(f,c)}; +QYa=function(a,b){if(a.C.length){if(a.C[0].info.gb[0].startTime<=b)return;DX(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();MYa(a);a.B&&b=0;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=$M(l,e.policy.Tb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.Ya,e.B.length!==0||e.G||rYa(e,"r"));e.xa.oa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});a.policy.B?a.B=null:d>c?FX(a,d):a.B=a.j.zt(b-1,!1).gb[0]}; +NY=function(a,b){var c;for(c=0;c0?c||b.Pa>=a.Fa:c}; +OY=function(a){var b;return IY(a)||KY(a,(b=a.D.Uo())==null?void 0:b.info)}; +OYa=function(a){var b=[],c=FY(a);c&&b.push(c);b=g.Tb(b,a.D.jo());c=g.w(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.w(d.info.gb),f=e.next(),h={};!f.done;h={wH:void 0},f=e.next())h.wH=f.value,d.IQ&&(b=g.Ym(b,function(l){return function(m){return!sHa(m,l.wH)}}(h))),(DM(h.wH)||h.wH.type===4)&&b.push(h.wH)}a.B&&!hEa(a.B,g.Kb(b),a.B.j.Um())&&b.push(a.B); +return b}; +NYa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return b<0?NaN:NYa(a,c?b:0)?a[b].startTime:NaN}; +PY=function(a){return!(!a.B||a.B.j===a.j)}; +SYa=function(a){return PY(a)&&a.j.hg()&&a.B.j.info.tbb&&d.Mf1)for(a=0;a0)return 2;if(b<0)return 1;c=a.qd();return b(0,g.rt)()?0:1}; +TY=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.O.call(this);var u=this;this.xa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.QM=r;this.Ei=t;this.qa=!1;this.kH="";this.Rl=null;this.gh=NaN;this.ra=!1;this.B=null;this.qh=this.Z=NaN;this.uq=this.K=0;this.logger=new g.yN("dash");this.hd={hR:function(y,A){return u.hR(y,A)}}; +this.policy.ir>0&&(this.kH=g.ov(this.policy.ir));this.policy.Vi&&(this.N=new SY(this.xa,this.policy,this.schedule),g.P(this,this.N))}; +jZa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.eD)||(f=wL(d.j)===wL(d.C));f?d=!1:(e=qM(e,wL(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.rt)()0&&h.Z===0&&a.xa.gs),c=d,f=PY(b),d=c.j.yz(c,e),(e=d.C)&&d.gb.length>1&&(f||d.resource.B||d.gb[0].j!==c.j?d=c.j.yz(c,d.gb[0].B):(f=d.gb[d.gb.length-1],h=f.B/e,!f.Re&&h<.4&&(d=c.j.yz(c,e-f.B)))),c=d):(d.Pa<0&&(c=GM(d),c.pr=""+b.C.length,a.xa.isSeeking()&&(c.sk="1"),c.snss=d.C,a.xa.oa("nosq", +c)),c=f.BD(d));if(a.policy.Ma)for(d=g.w(c.gb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Um()?(c=MVa(a.G,b.j.info.tb,c.j.info.tb,0),c=d.j.yz(d,c)):c=d.j.BD(d);if(a.B){var l=c.gb[0].j.info.id;d=a.j;e=c.gb[0].Pa;d=e<0&&!isNaN(d.G)?d.G:e;e=fY(a.j,c.gb[0].Ue,d);var m=b===a.audioTrack?1:2;h=c.gb[0].j.info.rb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Lg.event;if(n.j.Pa===d){n=p==="predictStart"?void 0:n.j.Lg.event;break a}if(n.j.Pa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n= +void 0}if(a.policy.La&&a.j.B!==0){var q=a.B.sK(e,d,l,m,h,n);d<0&&m===2&&gY(a.j,0,0,!0);if(q){var r;l=((r=q.jn)==null?void 0:r.Ot)||"";var t;r=((t=q.jn)==null?void 0:t.kU)||-1;a.xa.oa("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.oA(e,d,l,m,h,n),d<0&&m===2&&gY(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.MD&&b.isRequestPending(d-1)){a.xa.oa("sdai",{wt_daistate_on_sg:d-1});return}a.xa.oa("sdai",r);t&&(c.j=new g.uL(t));a.policy.C&&(t=c.resource.jK("id")|| +"",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.xa.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.xa.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.xm&&c.gb[0].Pa!==-1&&c.gb[0].Pa=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!vM(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.xa.isSuspended&&(!pO(a.schedule)||a.xa.GJ))return!1;if(a.policy.D&&xP>=5)return g.Po(a.xa.oG),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Pa===-1||b.C.length>=a.policy.Qp||!a.policy.xI&&b.C.length>0&&!a.policy.N.tj)return!1;if(b.N)return!a.manifest.isLive|| +!isNaN(a.gh)}if(XYa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.hg())return!1;FX(b,a.xa.getCurrentTime())}if(IX(b)&&(b.Uo()!==IX(b)||a.xa.isSuspended))return!1;e=(d=a.policy.OB)&&!b.C.length&&LY(b,!0)=a.policy.lq)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.hg()&&(b.B=g.Kb(d.j.kC(d)),d=b.B); +if(!d.Mi()&&!d.j.xt(d))return!1;f=a.manifest.Wd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.qd();var h=c.j.index.qd();f=Math.min(f,h);if(b.j.index.dK()>0&&f>0&&d.Pa>=f)return b.Fa=f,c.Fa=f,!1}if(d.j.info.audio&&d.type===4||d.Mi())return!1;f=!b.G&&!c.G;if(e=!e)e=d.Mf,e=!!(c.B&&!KY(c,c.B)&&c.B.MfkZa(a,b)?(kZa(a,b),!1):(a=b.Rb)&&a.isLocked()?!1:!0}; +kZa=function(a,b){var c=a.j;c=c.j?c.j.Lg:null;if(a.policy.Ma&&c)return c.startSecs+c.Ch+15;b=VY(a.xa,b);a.policy.Kb>0&&(c=((0,g.rt)()-a.xa.mq)/1E3,b=Math.min(b,a.policy.Kb+a.policy.Xi*c));c=a.xa.getCurrentTime()+b;return a.policy.Sv&&(b=lZa(a.xa)+a.policy.Sv,b=0||b.resource.jK("defrag")==="1"||b.resource.jK("otf")==="1"){b=null;break a}e=zM(0,4096)}e=new IM([new BM(5,d.j,e,"createProbeRequestInfo"+d.C,d.Pa)],b.B);e.Yj=c;e.j=b.j;b=e}b&&iZa(a,b)}}; +iZa=function(a,b){a.xa.wK(b);var c=uHa(b),d=a.xa.kK();c={Kc:a.schedule,jA:c,LS:KVa(a.G,c),Np:CM(b.gb[0]),Rp:xL(b.resource.j),KJ:a.policy.C,qv:function(e,f){a.xa.oH(e,f)}}; +a.Rl&&(c.Pa=b.gb[0].Pa,c.gh=b.gh,c.Rl=a.Rl);d={Mw:vHa(b,a.xa.getCurrentTime()),cH:a.policy.je&&KM(b)&&b.gb[0].j.info.video?UXa(a.C):void 0,YH:a.policy.Ma,poToken:a.xa.Zt(),Ay:a.xa.zA(),kH:a.kH,qh:isNaN(a.qh)?null:a.qh,Ei:a.Ei,QM:a.QM,uq:a.uq,RB:d};return new CX(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.Nr()||!(!a.xa.Qa||a.xa.isSuspended||LY(l)>3)){var m=fZa(e,a.policy,a.D);m===1&&(a.ra=!0);mZa(a,e,m);if(e.isComplete()|| +e.Ka()&&f<3){if(a.policy.C){var n=e.timing.wr();n.rst=e.state;n.strm=e.xhr.JC();n.cncl=e.xhr&&e.yd.D?1:0;a.xa.oa("rqs",n)}e.z2&&a.xa.oa("sbwe3",{},!0)}if(!a.Ka()&&e.state>=2){rXa(a.timing,e,h);var p=a.xa;a.qh&&e.iJ&&p&&(a.qh=NaN,a.xa.QT(e.iJ),a.xa.BE(),a.xa.oa("cabrUtcSeek",{mediaTimeSeconds:e.iJ}));e.pC&&(e.Tp>0&&a.xa.oa("sError",{errorHttpResponseCode:e.Tp.toString()}),a.qh&&e.pC&&!e.pC.action&&(a.xa.Lu(a.qh),a.qh=NaN,a.xa.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.qh})));a.policy.bx&&e.qj&& +a.xa.Ym(e.qj);a.policy.Sd&&(a.uq=e.uq);if(e.state===3){NY(l,e);KM(e.info)&&WY(a,l,h,!0);if(a.B){var q=e.info.oA();q&&a.B.Jl(e.info.gb[0].Pa,h.info.id,q,e.info.gb[0].startTime)}a.xa.He()}else if(e.isComplete()&&e.info.gb[0].type===5){if(e.state!==4)e.Ml()&&a.xa.handleError(e.Eh(),e.Vp());else{var r=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof CX&&r.Nr()&&r.Jv(!0)}e.dispose()}else{e.Ml()||nZa(a,e);var t;((t=e.gB)==null?0:t.itagDenylist)&&a.xa.DL(e.gB.itagDenylist); +if(e.state===4)oZa(a,e),a.j&&xXa(a.j,e.info,a.B);else if(a.policy.jt&&e.Tl()&&!e.isComplete()&&!oZa(a,e)&&!e.Ml())break a;e.Ml()&&(pZa(a,e),isNaN(a.qh)||(a.xa.Lu(a.qh),a.qh=NaN));a.xa.He();var u=gZa(e,a.policy,a.D);mZa(a,e,u)}}}}}catch(y){f=a.qa?1:0,a.qa=!0,e=gE(f),f=hE(y,f),a.xa.handleError(f.errorCode,f.details,f.severity),e||a.xa.lk()}},d)}; +nZa=function(a,b){if(b.PB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c}); +var d=TXa(a.C,c),e=b.info.C;e&&(e-=d.iQ(),d.C=!0,b.info.gb[0].j.C=!1,cXa(b,d.nx(e)),XY(a.xa,a.videoTrack,d),YYa(a.videoTrack,d),a.xa.GS(d.info.video.quality),(e=b.qQ())&&d.info.lastModified&&d.info.lastModified!==+e&&NY(a.videoTrack,b))}else b.PB=!1}}; +pZa=function(a,b){var c=b.info.gb[0].j,d=b.Eh();if(xL(c.resource.j)){var e=g.Re(b.Wf(),3);a.xa.oa("dldbrerr",{em:e||"none"})}e=b.info.gb[0].Pa;var f=fY(a.j,b.info.gb[0].Ue,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&qZa(a.xa)){if(!(b.info.resource.B>=a.policy.yw&&a.B&&b.info.hq()&&d==="net.badstatus"&&a.B.OE(f,e))){e=(c.info.video&&c.resource.B>1||b.zg===410||b.zg===500||b.zg===503)&&!(lY(a.C.G).size>0)&&!xL(c.resource.j);f=b.Vp();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1"); +a.xa.handleError(d,f);a.Ka()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),qY(a.C,c)),NY(h,b),a.xa.He())}}else h=1,a.B&&b.info.hq()&&d==="net.badstatus"&&a.B.OE(f,e)&&(h=0),a.manifest.isLive&&b.Eh()==="net.badstatus"&&a.K<=a.policy.Gj*2?(wIa(a.manifest),a.manifest.Wd||a.manifest.isPremiere?HX(a.xa,0,{Zc:"badStatusWorkaround"}):a.manifest.C?HX(a.xa,a.manifest.Ra,{Zc:"badStatusWorkaround", +Hp:!0}):YY(a.xa)):a.xa.handleError(d,b.Vp(),h)}; +oZa=function(a,b){if(a.policy.useUmp&&b.Ka())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.Ka(),b.isComplete()||b.Tl(),d.N=!1);b.UP()&&a.xa.sJ.Dm(1,b.UP());var e=b.dK(),f=b.IY();uN(a.manifest,e,f)}if(b.info.Np()&&!JM(b.info))for(var h=g.w(b.Vk()),l=h.next();!l.done;l=h.next())LYa(d,l.value);for(a.xa.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();KYa(d,m);d.Ra=m.BY()}d.C.length&&KYa(d,d.C[0]);var n=!!IX(d); +n&&b instanceof BX&&(c.info.Gh()?kXa(a.timing):jXa(a.timing));return n}catch(p){b=b.Vp();b.origin="hrhs";a:{a=a.xa;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.Ks&&c.args)for(d=g.w(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.w(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.Cw(c);if(c.level==="WARNING"){a.ea.Lq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}}; +rZa=function(a){var b=a.videoTrack.j.index;a.Rl=new cZa({wk:a.policy.wk,tj:a.policy.N.tj,Wj:b.Wj,qd:function(){return b.qd()}, +kx:function(){return b.kx()}})}; +WY=function(a,b,c,d){if(!(c.hg()||c.YA()||c.C||!vM(c.resource,a.policy,a.D)||c.info.rb==="f"||a.policy.B)){if(d){d=a.G;var e=c.info;d=LVa(d,e.video?d.policy.xx:d.policy.lm,e.tb)}else d=0;d=c.nx(d);a=iZa(a,d);JM(d)&&JYa(b,a);c.C=!0}}; +ZY=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.xa=a;this.Fe=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.Y=f;this.isAudioOnly=h;this.Fa=l;this.B=HP;this.Aa=!1;this.logger=new g.yN("sabr");this.Z=this.ra=this.qa=!1;this.videoInfos=this.G=this.Y.videoInfos;this.C=this.N=this.Y.j;this.j=new jY(b,f,function(n,p){m.xa.oa(n,p)}); +sZa(this)&&mOa(this.Fe);tZa(this);this.isAudioOnly&&uZa(this,this.manifest.j["0"])}; +sZa=function(a){a=g.w(a.N);for(var b=a.next();!b.done;b=a.next())if(BE(b.value))return!0;return!1}; +vZa=function(a,b){var c=[];b=g.w(b);for(var d=b.next();!d.done;d=b.next())c.push(EE(d.value,a.manifest.Vb));return c}; +uZa=function(a,b,c){b!==a.D&&(a.D&&(a.Aa=!0),a.D=b,a.CL(b,a.videoTrack,c))}; +zZa=function(a,b){a.logger.debug("setConstraint: "+hL(b));a.Fe.j&&(a.ra=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&wZa(a,b.j):xZa(a,b)?yZa(a,b.B,b.j):a.videoInfos=a.G;a.B=b}; +xZa=function(a,b){return a.Fe.Hn&&b.reason==="b"||a.Fe.hD?!1:a.Fe.BB?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"}; +AZa=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:cL(b,a.B)}; +BZa=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.Aa?!0:a.D?b!==d?!0:!a.j.B||a.Fe.Ij&&a.j.j===a.D.info.itag?!1:!0:!1}; +wZa=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Mb(a.videoInfos,function(e){return e.id===c}); +d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.xa.oa("sabrpf",{pfid:""+c, +vfids:""+d.join(".")}),yZa(a,b,b),mY(a.j,""))}else yZa(a,b,b)}; +yZa=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Ym(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})}; +tZa=function(a){var b=null;if(b=a.Fe.jl?DXa(a.j,a.Fa):g.Mb(a.N,function(c){var d;return!((d=c.Yb)==null||!d.isDefault)}))a.C=[b]}; +CZa=function(a,b){return a.map(function(c){return FE(c,b)})}; +DZa=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=lY(a.j);b=g.Ym(a.videoInfos,function(d){return d.tb>a.Fe.tb?!1:!c.has(d.id)}); +CXa(a.j)&&(b=g.Ym(b,function(d){return d.video.width<=854&&d.video.height<=480})); +return b}; +EZa=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.WP(e),h=VWa({Da:e.U(),ea:a.ea,IE:a.IE,Fe:a.Fe,mq:a.mq,gy:a.gy,Nw:a.Nw,bz:a.bz,Jq:a.Jq,isPrefetch:a.isPrefetch,uH:a.uH,xH:a.xH,Uz:a.Uz,sabrLicenseConstraint:e.sabrLicenseConstraint,Qy:a.Qy}),l=YX(e,a.RB,a.nextRequestPolicy,a.Bk,a.fT,a.Nda),m=a.FH,n=a.GH;if(n===void 0&&m===void 0){var p;n=d.Vb;n=(m=(p=a.HO)==null?void 0:p.video)?[EE(m.info,n)]:[];var q;p=d.Vb;m=(m=(q=a.HO)==null?void 0:q.audio)?[EE(m.info,p)]:[]}if(e.Ei)var r=e.Ei;e={Cr:h, +To:a.To,FH:m,GH:n,videoPlaybackUstreamerConfig:r,IC:l};a.jn&&(e.jn=a.jn);if(f&&b){f=new Map;var t=g.w(d.Va);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Wa[dIa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.w(a.kd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:fX(q,l),q=r.clipId,r=r.Sl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,kd:[],Ex:n})),r!==0&&(h.startTimeMs= +l-r),d.get(q).kd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:eX(b)}));e.WH=[];d=g.w(d.entries());for(f=d.next();!f.done;f=d.next())f=g.w(f.value),f.next(),f=f.next().value,e.WH.push(f);if(a.kd.length&&!e.WH.length){if(c){e="";a=g.w(a.kd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+ +(((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:eX(b)})}return}a.ZK&&(e.ZK=a.ZK);a.WK&&(e.WK=a.WK)}else e.kd=a.kd,e.Ex=d.Va,f&&((t=a.kd)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e}; +$Y=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Cb=c;this.B=null;this.hd={Koa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}}; +FZa=function(a,b,c){if(a.Zr())return!0;a.data=b;a.j=EZa(b,c,function(d,e){var f;(f=a.Cb)==null||f.Hk(d,e)}); +if(!a.j)return!1;a.B=g.pK(a.j,yCa);return!0}; +gXa=function(a,b,c){a.Yj===void 0&&(a.Yj=a.resource.Yj(b,c));return a.Yj}; +GZa=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.Cr)==null?void 0:c.ZS)||0}; +HZa=function(a){var b,c;return!!((b=a.j)==null?0:(c=b.Cr)==null?0:c.Qy)}; +IZa=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,a_a(b,c,f));break;case 1:a_a(b,gZ,VZa);break;case 0:b_a(b, +b.j&7);c=kZ(b,16);e=kZ(b,16);(c^e)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(a.C*2),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output}; +a_a=function(a,b,c){b=ZZa(b);c=ZZa(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=iZ[n];h+=kZ(a,hZ[n]);m=$Za(a,c);l=jZ[m];l+=kZ(a,WZa[m]);if(d_a&&hc.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<=0)return b_a(a,c&15),c>>4;for(b_a(a,7);c<0;)c=b[kZ(a,1)-c];return c>>4}; +kZ=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<>=b;a.j-=b;return c}; +b_a=function(a,b){a.j-=b;a.register>>=b}; +ZZa=function(a){for(var b=[],c=g.w(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h7&&(f+=b[h]);for(e=1;e>m&1;l=f<<4|h;if(h<=7)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; +e_a=function(a){var b,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.c_a(new g.XZa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new IJ([]);case 2:return g.G(m,d.read(),5);case 5:f=m.B;h=f.value;if(l=f.done){m.Ia(4);break}e.append(h);m.Ia(2);break;case 4:return m.return(NJ(e))}})}; +lZ=function(a,b){this.j=a;this.wd=b}; +f_a=function(a){return pU(pU(pU(nU(),function(){return a.wd.kf(function(b){return a.LZ(a.j,b)})}),function(){return a.KZ(a.j)}),function(){return a.JZ(a.j)})}; +g_a=function(a){$X.call(this,"onesie");this.Jc=a;this.j={};this.C=!0;this.D=null;this.queue=new UZa(this);this.G={}}; +h_a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.w(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.qZ){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||fZ(e)}}}; +k_a=function(a,b){var c=b.totalLength,d=!1;switch(a.D){case 0:a.Jc.L("html5_future_ump_fetcher_inflate")?pU(i_a(a,b,a.C).kf(function(e){j_a(a.Jc,e)}),function(e){a.Jc.aj(e)}):a.GL(b,a.C).then(function(e){j_a(a.Jc,e)},function(e){a.Jc.aj(e)}); +break;case 2:a.Kd("ormk");b=NJ(b);a.queue.decrypt(b);break;default:d=!0}a.Jc.Sm&&a.Jc.oa("ombup","id.11;pt."+a.D+";len."+c+(d?";ignored.1":""));a.D=null}; +i_a=function(a,b,c){a.Jc.GL();b=NJ(b);b=lU(b);c&&(b=b.kf(function(d){return pU(l_a(a.Jc,d,a.iv),function(e){return nU({name:"DecryptError",message:e})})})); +a.Jc.enableCompression&&(b=b.kf(function(d){return pU(f_a(new lZ(d,a.Jc.U().dk)),function(e){return nU({name:"DecompressError",message:e})})})); +return pU(b.kf(function(d){return hK(d,sCa)}),function(d){var e,f,h,l={name:(f=d.name)!=null?f:"unknown", +message:(h=d.message)!=null?h:"unknown",wasm:a.Jc.U().wd?((e=a.Jc.U().wd)==null?0:e.Eo)?"1js":"1":"0",enc:a.C,gz:a.Jc.enableCompression};l.webcrypto=""+ +!!BJ();l.enc=""+ +a.C;return nU(new fE("onesie.response.parse",l))}).kf(function(d){if(d.PL!==1)throw d={st:d.PL, +webcrypto:""+ +!!BJ(),textencoder:""+ +!!g.Ja.TextEncoder},new fE("onesie.response.badproxystatus",d);if(d.GK!==200)throw new fE("onesie.response.badstatus",{st:d.GK});return g.UJ(d.body)})}; +m_a=function(a){return new Promise(function(b){setTimeout(b,a)})}; +n_a=function(a,b){var c=a.U();c=a.Cd&&c.L("html5_onesie_preload_use_content_owner");var d=a.HS,e=WN(b.W.experiments,"debug_bandaid_hostname");if(e)b=rW(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=wL(new g.uL(d.url));b=rW(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=dO(a.videoId);a=[];if(f)for(f=g.w(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}}; +o_a=function(a,b,c){c=c===void 0?0:c;var d,e;return g.J(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(m_a(c)),g.G(f,Promise.race(d),2);e=n_a(a,b);return f.return(e)})}; +p_a=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");BJ()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&dQ(b)&&b.Cd,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),VN||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad", +"0"),a.set("oavd","0")))}; +q_a=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.al,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.UQ&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.yb()});g.Hq("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.Hq("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Hq("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=WN(b.experiments, +"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=XJ(JSON.stringify(a));return{url:h,NQ:f,postBody:a,yda:e,DC:e}}; +s_a=function(a,b,c,d,e,f){var h=g.pK(a,rCa,a.DC?void 0:c.wd),l={encryptedClientKey:b.j.encryptedClientKey,w2:!0,hY:!0,BP:r_a(c,!!a.DC),W3:c.experiments.kb("html5_use_jsonformatter_to_parse_player_response")};if(a.DC)l.mfa=h;else{a=b.encrypt(h);var m;a=((m=c.wd)==null?void 0:m.NR(a))||a;m=l.iY=a;(0,g.rt)();m=cBa(new bBa(b.j.C),m,b.iv);l.BZ=m;l.iv=b.iv}b=d.getVideoData();c=VWa({Da:c,ea:d,IE:b.startSeconds*1E3,uH:!0,xH:!0});return{VQ:l,Cr:c,onesieUstreamerConfig:e,qp:f,IC:YX(b)}}; +t_a=function(a,b,c){var d,e,f;return g.J(function(h){if(h.j==1)return d=g.pK(b,rCa),g.G(h,RZa(c,d),2);if(h.j!=3)return e=h.B,g.G(h,SZa(c,e),3);f=h.B;return h.return({iY:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,BZ:f,w2:!0,hY:!0,BP:r_a(a,!!b.DC),W3:a.experiments.kb("html5_use_jsonformatter_to_parse_player_response")})})}; +u_a=function(a,b,c,d,e,f){var h,l,m;return g.J(function(n){if(n.j==1)return g.G(n,t_a(c,a,b),2);h=n.B;l=d.getVideoData();m=VWa({Da:c,ea:d,IE:l.startSeconds*1E3,uH:!0,xH:!0});return n.return({VQ:h,Cr:m,onesieUstreamerConfig:e,qp:f,IC:YX(l)})})}; +r_a=function(a,b){a=oO(a.schedule,!0);b=b||!!BJ()&&a>1572864;return"DecompressionStream"in window||!b}; +nZ=function(a,b){g.O.call(this);var c=this;this.ea=a;this.playerRequest=b;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.yN("onesie");this.Sm=this.W.zc();this.pP=this.W.bl;this.VG=new QZa(this.pP.j,this.W.dk);this.xhr=null;this.state=1;this.Uq=new fF;this.vZ=!1;this.playerResponse="";this.Yl=new NX(this);this.Zm=new g_a(this);this.nI=this.W.L("html5_onesie_check_timeout");this.SO=new g.Oo(this.L7,500,this);this.WG=new g.Oo(this.EQ,1E4,this);this.OL=new g.Oo(function(){if(!c.isComplete()){var d= +mZ(c);c.aj(new fE("net.timeout",d))}},g.ZB(this.W.experiments,"html5_onesie_request_timeout_ms")); +this.Z0=new g.Oo(this.X$,2E3,this);this.Zu="";this.PK=this.WZ=!1;this.GA=this.ea.zA();this.IS="";this.yH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.BR=this.RA=!1;this.ZH=[];this.xv=this.nj=-1;g.P(this.videoData,this);g.P(this,this.SO);g.P(this,this.WG);g.P(this,this.Z0);a=ZN();VN&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.ag=new Map);this.wY=new Map;this.g0=new Map;this.Z1=new Map}; +eZ=function(a,b){var c;return(c=a.ag)==null?void 0:c.get(b)}; +w_a=function(a,b,c){var d;return g.J(function(e){if(e.j==1)return a.Kd("oprd_s"),v_a(a)?g.G(e,TZa(a.VG,b,c),3):(d=a.VG.decrypt(b,c),e.Ia(2));e.j!=2&&(d=e.B);a.Kd("oprd_c");return e.return(d)})}; +l_a=function(a,b,c){a.Kd("oprd_s");var d=a.VG;d.B||(d.B=new LZa(d.j.j,d.wd));d=d.B;a:{if(b.length<=131072&&d.wd&&!d.wd.Eo){var e=MZa(d,b,c);if(e.currentState==="done"){b=e;break a}}b.length<=32768?b=NZa(d,b,c):(e=PZa(d,b,c),b=e.currentState==="done"?e:OZa(d,b,c))}a.Kd("oprd_c");return b}; +x_a=function(a){return a.L("html5_onesie_host_probing")||a.Sm?VN:!1}; +j_a=function(a,b){a.Kd("oprr");a.playerResponse=b;a.BR||(a.yH=!1);oZ(a)}; +oZ=function(a){if(!a.playerResponse)return!1;if(a.RA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&eQ(a.videoData);if(a.ag&&a.yH){if(!a.ag.has(a.Zu))return!1;var c=a.ag.get(a.Zu),d;if(d=c){d=!1;for(var e=g.w(c.fd.keys()),f=e.next();!f.done;f=e.next())if(f=c.fd.get(f.value))for(var h=g.w(f.sG),l=h.next();!l.done;l=h.next())l.value.Ks>0&&(f.Gh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Kd("ofr");a.Uq.resolve(a.playerResponse);if(!a.nI){var m;(m=a.OL)==null||m.start();a.WG.start()}return a.RA= +!0}; +z_a=function(a){if(a.ag&&!a.L("html5_onesie_media_capabilities")){a.Kd("ogsf_s");var b=RWa(a.ea.getVideoData(),function(d,e){a.oa(d,e)}),c=y_a(a.ea); +b.video=HWa(c,b.video);a.Kd("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}}; +v_a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.DC)||g.QO(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!BJ()}; +mZ=function(a){if(!a.Nd)return{};var b=a.Nd.wr();b.d=jWa(a.Nd);b.shost=a.t2;b.ty="o";return b}; +A_a=function(a,b){var c,d;(d=(a=(c=a.ag)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d}; +B_a=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);var q=this;this.ea=a;this.xa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Kc=h;this.ra=l;this.C=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.Ma=this.La=!1;this.Bk=new Set;this.D=this.Ga=this.Y=this.Jq=0;this.K=null;this.hd={qoa:function(){return q.j}, +Mna:function(){return q.G}, +Zma:function(){q.j.length=0}, +aoa:function(){return q.Bk}, +Wna:function(){return q.Y}, +Jpa:function(r){q.Y=r}, +Opa:function(r){q.D=r}}; +this.videoData=this.ea.getVideoData();this.policy.Vi&&(this.Fa=new SY(this.xa,this.policy,this.Kc),g.P(this,this.Fa))}; +E_a=function(a,b){b=b===void 0?!1:b;if(C_a(a,b)){a.policy.Aa&&a.xa.oa("sabrcrq",{create:1});var c=new $Y(0,a.manifest.Y,a);a.policy.hf>0&&a.D++;b=D_a(a,c,b);a.j.push(b);var d;(d=a.Fa)==null||dZa(d,a.manifest.Y)}}; +H_a=function(a,b){var c=HY(a.audioTrack,a.xa.isSeeking()),d=HY(a.videoTrack,a.xa.isSeeking()),e=[].concat(g.x(c.kd),g.x(d.kd)),f=[].concat(g.x(c.To),g.x(d.To)),h=!pZ(a,a.audioTrack),l=!pZ(a,a.videoTrack),m=dO(a.xa.Zt()),n=a.xa.kK(),p,q,r=a.ea,t=a.manifest,u;var y=a.policy.K&&((u=a.xa)==null?void 0:u.YF());u=a.xa.getCurrentTime()||0;u=F_a(a,u);var A=a.xa.Dc()||0;u+=A;A=vQ(a.videoData)||g.uQ(a.videoData);var D=0;y?(A&&(D=Number.MAX_SAFE_INTEGER),a.videoData.La&&(D=Math.ceil(a.videoData.Ra*1E3))):D= +Math.ceil(u*1E3);y=Math.min(Number.MAX_SAFE_INTEGER,D);u=a.B;A=a.Bk;D=a.policy;var F=a.xa.mq,H=lZa(a.xa)*1E3,N=(p=a.Aa)==null?void 0:p.Nw;p=(q=a.Aa)==null?void 0:q.bz;var M;q=Number((M=a.C.D)==null?void 0:M.info.itag)||0;var X;M=Number((X=a.C.K)==null?void 0:X.info.itag)||0;b={ea:r,manifest:t,kd:e,To:f,IE:y,nextRequestPolicy:u,Bk:A,Fe:D,mq:F,gy:H,Nw:N,bz:p,Jq:a.Jq,isPrefetch:b||a.xa.isSuspended,uH:h,xH:l,fT:m,ZK:q,WK:M,RB:n};if(e=a.ea.ox())b.Qy=e*1E3;if(a.policy.Aj){e=a.C;f=e.qa;if(e.Fe.j&&!f&&e.Fe.LD)for(h= +g.w(e.C),l=h.next();!l.done;l=h.next())if(l.value.Yb){f=!0;break}e=e.Fe.j&&!f?[]:vZa(e,e.C);b.FH=e;e=a.C;e.Fe.j&&!e.ra?e=[]:(f=DZa(e),f.length===0&&(f=e.G),e=vZa(e,f));b.GH=e}else a.wK(a.videoTrack.j),a.wK(a.audioTrack.j),b.HO=rY(a.ra);a.policy.Hn&&(e=a.ea.RP().o1,b.Uz=e.j);if(a.policy.G){c=G_a(a,c.kd,d.kd);var V;if(d=(V=a.K)==null?void 0:V.rQ(c))b.jn=d}a.policy.ra&&a.j.length>0&&a.j[0].LO()&&(b.Nda=a.j[0].oQ());return b}; +F_a=function(a,b){if(a.xa.isSeeking())return b;var c=a.ea.Je();if(!c)return b;c=c.Dh();if(c.length===0||OE(c,b))return b;if(a.policy.Y&&!ZYa(a.videoTrack,b)&&!ZYa(a.audioTrack,b))return a.xa.oa("sundrn",{b:0,lt:b}),b;for(var d=b,e=Infinity,f=0;fb)){var h=b-c.end(f);h0){var c=Math.floor((0,g.rt)()/1E4);if(c===a.Ga){if(a.D>=a.policy.hf){if(a.D===a.policy.hf){var d={reason:"toomanyrequests"};d.limit=a.D;a.xa.handleError("player.exception",d);a.D+=1}return!1}}else a.Ga=c,a.D=0}b=!b&&!pO(a.Kc);if(a.xa.isSuspended&&(a.xa.GJ||b)||a.qa&&(0,g.rt)()0&&(!a.policy.ra||a.j.length!==1||!a.j[0].LO())||(d=a.manifest.Y)==null||!vM(d,a.policy,a.G))return!1;d=a.policy.fE&&a.policy.j&&a.xa.Bf();if(OY(a.audioTrack)&&OY(a.videoTrack)&& +!d)return!1;if(a.policy.j&&a.N&&!a.xa.Bf())return a.Hk("ssap",{pauseontlm:1}),!1;if(a.policy.Pv&&pZ(a,a.audioTrack)&&pZ(a,a.videoTrack))return a.policy.C&&a.xa.oa("sabrHeap",{a:""+JY(a.audioTrack),v:""+JY(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=G_a(a,HY(a.audioTrack,a.xa.isSeeking()).kd,HY(a.videoTrack,a.xa.isSeeking()).kd),c=a.Z,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Aa&&a.xa.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Aa&& +a.xa.oa("sabrcrq",{nopolicy:1}),!0;if(a.ea.ox())return a.policy.Aa&&a.xa.oa("sabrcrq",{utc:1}),!0;if(a.C.Z)return a.policy.Aa&&a.xa.oa("sabrcrq",{audio:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Aa&&a.xa.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.xa.YF())return a.policy.Aa&&a.xa.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(VY(a.xa,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(VY(a.xa,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d, +b);c=LY(a.audioTrack,!0)*1E3;var f=LY(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.C&&a.policy.Hg){var l=a.xa.uc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.xa.oa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.xa,a.Qa&&a.Qa.j&&a.Qa.B&&a.ub&&!vN(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.oe(),b=a.Qa.B.oe(),c=c?PE(c,d):d,d=b?PE(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=gX(a.ub),d=d>=a-.01)):d=!1);return d?!1:!0}; +D_a=function(a,b,c){var d={Kc:a.Kc,qv:function(m,n){a.ea.oH(m,n)}, +Np:a.policy.Cn,KJ:a.policy.C},e=gXa(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,J_a(a));c=H_a(a,c);if((a.policy.j||a.policy.ra)&&a.policy.C&&c.Bk){for(var f=e="",h=g.w(c.Bk),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.xa.oa("sabrbldrqs",{ctxts:e,misctxts:f})}FZa(b,c,a.xa.Bf())||!a.policy.j&&!a.policy.ra||a.xa.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new bY(a.policy,b,a.manifest,a.G,a,d,a.xa.zA(),a.policy.Rf?a.xa.Bf():void 0); +cY(a.timing);a.policy.Aa&&a.xa.oa("sabrcrq",{rn:d.Xp(),probe:b.Zr()});return d}; +qZ=function(a,b){if(b.Ka()||a.Ka())a.policy.K||a.xa.He();else{if(a.policy.C&&b.isComplete()&&b instanceof bY){var c=a.xa,d=c.oa;var e=Object.assign(b.Nd.wr(),{rst:b.state,strm:b.xhr.JC(),d:jWa(b.Nd),cncl:b.xhr&&b.yd.D?1:0,rqb:b.Y1});e=Object.assign(IZa(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Zr()&&b instanceof bY)a.policy.wc?b.d_()?(b.dispose(),a.j.length===0?a.xa.He():(a=a.j[0],a instanceof bY&&a.Nr()&&a.Jv(!1))):b.Ml()&&a.xa.handleError(b.Eh(),b.Vp()):(b.dispose(),a.xa.He());else{if(b.b_())b instanceof +bY&&rXa(a.timing,b),J_a(a),K_a(a);else if(b.Ml())c=a.ea.ox(),b instanceof bY&&HZa(b.info)&&c&&a.xa.Lu(c),b instanceof nZ?a.j.pop():(c=1,b.canRetry()&&qZa(a.xa)&&(L_a(a,b),c=0),a.xa.handleError(b.Eh(),b.Vp(),c));else{if(a.xa.isSuspended&&!b.isComplete())return;K_a(a)}b.Ka()||b instanceof nZ||(b.isComplete()?c=gZa(b,a.policy,a.G):(c=fZa(b,a.policy,a.G),c===1&&(a.La=!0)),c!==0&&(b=new $Y(1,b.info.resource),b.Yj=c===2,D_a(a,b)));a.xa.He()}}}; +K_a=function(a){for(;a.j.length&&a.j[0].HQ(a.mf());){var b=a.j.shift();M_a(a,b);a.policy.gf&&b instanceof bY&&b.dispose();if(a.policy.G){var c=a;if(!c.policy.Ab&&b.HQ(c.mf())){var d=b.Xp();if(c.Ra!==d){var e=b.YY();b=e.nj;var f=e.xv;e=e.hq;!c.K||f<0||(c.Ra=d,d=fY(c.Z,f/1E3,b),f=c.xa.Dc()||0,wXa(c.Z,b,d-f,e,c.K))}}}}a.j.length&&M_a(a,a.j[0])}; +M_a=function(a,b){if(a.policy.Aj){var c=new Set(b.Ir(a.mf()));c=g.w(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof nZ))){var f=a.C,h=f.manifest.Vb;d=CZa(f.C,h);f=CZa(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.jo(e,a.mf()),b.Tl(e,a.mf()))){e=b.Vk(e,a.mf());if(a.policy.j&&(f=d[0].j.info,(h=a.xa.Bf())&&f)){var l=b.zY();if(h.api.L("html5_ssap_set_format_info_for_all")||l!==h.ea.getVideoData().clientPlaybackNonce)if(h=QW(h.timeline,l))if(h=h[0].getVideoData())f.Gh()? +h.D=f:h.B=f}e=g.w(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.C&&b instanceof nZ&&a.xa.oa("omblss",{s:f.info.Sc()});h=f.info.j.info.Gh();var m=f.info.j;if(h){l=void 0;var n=a.C,p=(l=b.mQ(a.mf()))==null?void 0:l.token;n.Z=!1;m!==n.K&&(n.K=m,n.CL(m,n.audioTrack,p))}else l=void 0,uZa(a.C,m,(l=b.mQ(a.mf()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof nZ&&(l.N=!1,b instanceof nZ&&(h?kXa(a.timing):jXa(a.timing)));GY(l,d,f)}}}}else for(d=b.yY()||rY(a.ra),c=new Set(b.Ir(a.mf())), +a.policy.j?e=c:e=[((f=d.video)==null?void 0:FE(f.info,a.manifest.Vb))||"",((h=d.audio)==null?void 0:FE(h.info,a.manifest.Vb))||""],d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Tl(e,a.mf()))for(f=b.Vk(e,a.mf()),f=g.w(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.C&&b instanceof nZ&&a.xa.oa("omblss",{s:h.info.Sc()}),l=b.jo(e,a.mf()),m=(n=h.info.j.info.Gh())?a.audioTrack:a.videoTrack,b instanceof nZ&&(m.N=!1,b instanceof nZ&&(n?kXa(a.timing):jXa(a.timing))),GY(m,l,h)}; +L_a=function(a,b){a.policy.ra?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())}; +N_a=function(a,b){for(var c=[],d=0;d0)for(var b=g.w(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.Bk.add(c)}if(a.policy.ra&&a.j.length)for(b=g.w(a.j),c=b.next();!c.done;c=b.next())(c=c.value.oQ())&&c.type&&c.sendByDefault&&a.Bk.add(c.type)}; +P_a=function(a){a.policy.yc&&(a.Aa=void 0,a.Jq=0)}; +Q_a=function(a,b){if(b.Ml()||b.Ka()){var c=a.xa,d=c.oa,e=b.state;a=a.mf();var f,h;if((b=(f=b.ag)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Ir();for(var l=0;l=a.policy.Aw,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.dk&&!a.C;if(!f&&!c&&V_a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.rt)()/1E3-(a.Vz.eh()||0)-a.N.j-a.policy.Wc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){rZ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.bk;d=f.Ue&&d<=f.Mf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Gh()}),!1;(a=a.ra)!=null&&(a.fd.get(c).nE=!0);return!0}; +b0a=function(a){if(!a.manifest.Vb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&uZ(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&uZ(a.ea)&&(b.Wd||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.bD&&!!((c=a.qa)==null?0:(d=c.v_)==null?0:d.oda)!==a.manifest.Wd)return a.oa("ombplmm",{}),!1;c=b.Ob||b.liveUtcStartSeconds||b.je;if(a.manifest.Wd&&c)return a.oa("ombplst",{}),!1;if(a.manifest.qa)return a.oa("ombab",{}),!1;c=Date.now();if(vN(a.manifest)&& +!isNaN(a.Aa)&&c-a.Aa>a.policy.yG*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.bf&&a.manifest.C||!a.policy.bE&&a.manifest.isPremiere||jQ(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; +c0a=function(a,b){var c=b.j,d=a.manifest.Vb;if(b0a(a))if(a.ra&&a.ra.fd.has(FE(c.info,d))){if(d=FE(c.info,d),a0a(a,b)){var e=new IM(a.ra.jo(d)),f=function(h){try{if(h.Ml())a.handleError(h.Eh(),h.Vp()),NY(b,h),KM(h.info)&&WY(a.D,b,c,!0),a.He();else if(oZa(a.D,h)){var l;(l=a.C)==null||xXa(l,h.info,a.K);a.He()}}catch(m){h=hE(m),a.handleError(h.errorCode,h.details,h.severity),a.lk()}}; +c.C=!0;JM(e)&&(JYa(b,new BX(a.policy,d,e,a.ra,f)),cY(a.timing))}}else a.oa("ombfmt",{})}; +vZ=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=XY,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Li(b)||0;e.Fa!==b&&(e.Ma={},e.Fa=b,oY(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.rt)()-e.Yb.j&&b.reason==="b";d||e||c?(a.ea.Lq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Ij||(a.B.j.B=!1)):(a.policy.Ij&&(a.B.j.B=!1),xZ(a))}}else if(!KXa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); +c=a.j.j;j0a(a,MXa(a.j,b));vZ(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Tf&&b.reason==="l"&&PY(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.Ya&&!WE();d||e||c||f?a.ea.Lq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):xZ(a)}}; +l0a=function(a,b,c){if((!a.Qa||ZE(a.Qa)&&!a.policy.zm)&&!a.Kg.isSeeking()&&(cU(a.policy)||PY(b)&&b.j.hg()&&a.j.qa)){var d=a.getCurrentTime()+NVa(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); +QYa(b,d)}}; +j0a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+KE(b.video.info)}),m0a(a.ea,new iY(b.video,b.reason))); +if(a.j.Wa){var c=rY(a.j,"a");a.ea.vy(new iY(c.audio,c.reason))}}; +xZ=function(a){g.Po(a.yb)}; +n0a=function(a,b){var c=(0,g.rt)()-b,d=LY(a.audioTrack,!0)*1E3,e=LY(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c}); +if(a.policy.C&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),dU(a.policy))){var f=zX(a.Y);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:OVa(a.Y,a.gs,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.gs,ps:(a.policy.zI||"").toString(),rn:(a.policy.yI||"").toString()})}}; +o0a=function(a){if(a.policy.j&&RY(a.videoTrack)&&RY(a.audioTrack))return"ssap";if(XYa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.ob&&$Ya(a.videoTrack)&&$Ya(a.audioTrack))return"updateEnd";if(OY(a.audioTrack)||OY(a.videoTrack)&&a.videoTrack.j.info.rb!=="f")return"";if(a.Kg.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.B){var e=b.policy.Yk;dU(b.policy)&&(e=OVa(b,!1,zX(b)));b=e;c=LY(d,!0)>=b&&LY(c,!0)>=b}else c.C.length|| +d.C.length?(e=c.j.info.tb+d.j.info.tb,e=10*(1-zX(b)/e),b=Math.max(e,b.policy.Yk),c=LY(d,!0)>=b&&LY(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&qYa(c.D).info.D360);d=dU(a.policy)&&a.policy.Bn;if(!a.gs||!d&&c)return"";c=a.policy.Wk;dU(a.policy)&&(c=OVa(a.Y,a.gs,zX(a.Y)));c=TYa(a.videoTrack, +a.getCurrentTime(),c)||TYa(a.audioTrack,a.getCurrentTime(),c);return dU(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||hZa(a.D,a.videoTrack,a.audioTrack)||hZa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""}; +p0a=function(a){if(a.G){var b=a.G.He(a.audioTrack,QE(a.Qa.B.oe()));b&&a.ea.seekTo(b,{Bx:!0,Zc:"pollSubsegmentReadahead",Hp:!0})}}; +v0a=function(a,b,c){if(a.policy.ob&&$Ya(b))return!1;if(c.aR())return!0;if(!c.mJ())return!1;var d=IX(b);if(!d||d.info.type===6)return!1;var e=a.policy.kE;if(e&&!d.info.Re){var f=d.info.Ue-a.getCurrentTime();if(d.info.De)return a.policy.B&&s0a(a,b),!1;t0a(a,b);var l;a.policy.We&&c===((l=a.Qa)==null?void 0:l.j)&&a.Wa&&(c.tK()===0?(a.Wa=!1,a.policy.We=!1):a.Ya=c.tK());if(!u0a(a,c,d))return!1;a.policy.ob&&d.info.Mi()?d.isLocked=!0: +(b.Qs(d),PXa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.Sc()+", buffered: "+ME(c.oe())})); +return!0}; +s0a=function(a,b){a.policy.Dd&&(b===a.videoTrack?a.La=a.La||(0,g.rt)():a.Ga=a.Ga||(0,g.rt)())}; +t0a=function(a,b){a.policy.Dd&&(b===a.videoTrack?a.La=0:a.Ga=0)}; +u0a=function(a,b,c){var d=a.policy.Ra?(0,g.rt)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=w0a(a,c,f)||f);var h=NJ(f);f=a.policy.Ra?(0,g.rt)():0;e=x0a(a,b,h,c.info,e);a.policy.Ra&&(!c.info.Ub||c.info.Re||c.info.Ue<10)&&(b=b.uc({as:c.info.Sc(),pdur:Math.round(f-d),adur:Math.round((0,g.rt)()-f)}),b.omt=(a.getCurrentTime()+a.Dc()).toFixed(3),b.to=a.Dc(),a.oa("sba",b));if(e==="s")return a.Ra&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Ra=!1,a.ob=!1),a.fb=0,!0;if(e==="i"||e==="x")return y0a(a, +"checked",e,c.info),!1;if(e==="q"){if(!a.Ra)return a.logger.debug("QuotaExceeded, retrying."),a.Ra=!0,!1;if(!a.ob)return a.ob=!0,a.ea.seekTo(a.getCurrentTime(),{Zc:"quotaExceeded",Hp:!0}),!1;c.info.yg()?(b=a.policy,b.Va=Math.floor(b.Va*.8),b.Ga=Math.floor(b.Ga*.8)):(b=a.policy,b.Fa=Math.floor(b.Fa*.8),b.Ga=Math.floor(b.Ga*.8));cU(a.policy)?kY(a.B.j,c.info.j,!1):qY(a.j,c.info.j)}a.ea.Lq({reattachOnAppend:e});return!1}; +w0a=function(a,b,c){var d;if(d=a.policy.xw&&a.Qa&&!a.Qa.qa&&!a.ea.LJ())b=b.info.j.info,d=b.Ke()&&xE(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,lE('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=nYa(c),a.policy.C&&a.oa("sp4k",{s:!!c}),c}; +y0a=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",cU(a.policy)?!d.j.info.video||lY(a.B.j).size>0||kY(a.B.j,d.j,!1):!d.j.info.video||lY(a.j.G).size>0||qY(a.j,d.j)):c==="i"&&(a.fb<15?(a.fb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=GM(d);var h;d.mrs=(h=a.Qa)==null?void 0:dF(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; +FYa=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=IE(f.j[p].info.mimeType)||f.j[p].info.yg();if(d===m)if(m=f.j[p].index,m.xo(b.Pa)){if(!f.Xa){h=m;m=b;var n=h.Wn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.PN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.PN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;fWa(a.Kg,b,d,f);a.C.tS(b,c,d,e);b.Pa===a.manifest.bf&&f&&rN(a.manifest)&&b.startTime>rN(a.manifest)&&(a.manifest.Ra=b.startTime+(isNaN(a.timestampOffset)? +0:a.timestampOffset),a.Kg.isSeeking()&&a.Kg.j1)return"r";m.Ga=new g.Oo(function(){if(!a.Ka()&&b.aG()){var p;a.oa("nue",{ls:(p=b.Kr())==null?void 0:p.Sc()});b.Kr()&&(b.Kr().uO+=1);b.qJ();a.Qa&&a.VB()}},2E4,a); +m.Ga.start()}if(a.policy.Dp&&(d==null?0:d.Mi())){var n;if((n=m.Aa)==null?0:n.isActive())g.Qo(m.Aa),a.oa("sbac",{as:d.Sc()});m.Aa=new g.Oo(function(){a.oa("sbum5s",{as:d.Sc()})},5E3,a); +m.Aa.start()}a.policy.Lw&&(d==null?void 0:d.j)instanceof MM&&d.Mi()&&a.oa("poseos",{itag:d.j.info.itag,seg:d.Pa,lseg:d.j.index.qd(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(p){if(p instanceof DOMException){if(p.code===11)return"i";if(p.code===12)return"x";if(p.code===22||p.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:ME(b.oe()).replace(/,/g,"_"),vheap:JY(a.videoTrack),aheap:JY(a.audioTrack),message:g.Re(p.message,3),track:a.Qa?b===a.Qa.B? +"v":"a":"u"},Y_a()),a.handleError("player.exception",c),"q";g.Bw(p)}return"u"}return a.Qa.Ng()?"m":"s"}; +HX=function(a,b,c){a.ea.seekTo(b,c)}; +AY=function(a,b){a.ea.FL(b)}; +VY=function(a,b){if(a.Ra&&!a.gs)return 3;if(a.isSuspended)return 1;var c;if((c=a.Qa)==null?0:c.Qa&&c.Qa.streaming===!1)return 4;c=(b.j.info.audio?a.policy.Fa:a.policy.Va)/(b.tb*a.policy.wm);if(a.policy.Iq>0&&a.Qa&&ZE(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.Fk()){b=b.oe();var d=NE(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Iq,a.policy.lE)))}a.policy.Ga>0&&(c=Math.min(c,a.policy.Ga));return c}; +B0a=function(a){a.Va&&!a.isSuspended&&pO(a.schedule)&&(A0a(a,a.Va),a.Va="")}; +A0a=function(a,b){pW(b,"cms",function(c){a.policy.C&&a.oa("pathprobe",c)},function(c){a.ea.handleError(c)})}; +C0a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Ng()&&(b.Mw=LY(a.videoTrack),b.B=LY(a.audioTrack),a.policy.C)){var c=JY(a.videoTrack),d=JY(a.audioTrack),e=ME(a.Qa.B.oe(),"_",5),f=ME(a.Qa.j.oe(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=yX(a.Y);a.logger.debug(function(){return eE(b.j)})}; +D0a=function(a,b){a.K=b;a.C&&(a.C.K=b);a.K.ST(a.videoTrack.j.info.Ke());a.D.B=a.K;a.policy.G&&(a.Z.K=a.K)}; +E0a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Kg.isSeeking()&&a.Qa&&!a.Qa.Ng()){var c=a.getCurrentTime()<=b&&b=b&&Z_a(a,d.startTime,!1)}); +return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; +K0a=function(a){var b=FY(a.videoTrack),c=FY(a.audioTrack);return b&&!bZa(a.videoTrack)?b.startTime:c&&!bZa(a.audioTrack)?c.startTime:NaN}; +z0a=function(a,b,c){a.policy.QD&&dQ(a.ea.getVideoData())?(a.ea.XF()||y0a(a,"sepInit",b,c.info),L0a(a.ea,"sie")):y0a(a,"sepInit",b,c.info)}; +qZa=function(a){return a.ea.BA()0){var e=d.j.shift();N0a(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.rt)(),d.B.start(Math.max(0,e)))}},0); +g.P(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)}; +N0a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.w(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)}; +O0a=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a}; +P0a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; +Q0a=function(a){var b=QJ(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=PL(b.slice(d+2));if(b==null)return null;a=new P0a(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.xwa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new O0a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])|| +60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a}; +R0a=function(a,b,c){c=c===void 0?"":c;g.O.call(this);this.message=a;this.requestNumber=b;this.Ve=c;this.onError=this.onSuccess=null;this.j=new g.Zh(5E3,2E4,.2)}; +S0a=function(a,b,c){a.onSuccess=b;a.onError=c}; +U0a=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ka())if(e.status!==0&&e.response)if(Oz("drm_net_r",void 0,a.Ve),e=new Uint8Array(e.response),e=Q0a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else T0a(a,e)}, +onError:function(e){T0a(a,e)}}; +c&&(b=Mfa(b,"access_token",c));g.pr(b,d)}; +T0a=function(a,b){if(!a.Ka())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)}; +W0a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ka()){Oz("drm_net_r",void 0,a.Ve);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Se(f.license)}catch(u){g.Bw(u)}if(h!==0||l){l=new P0a(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.w(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=V0a[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]|| +(m.push(r),h[r]=!0);var t=null;try{t=Se(q.keyId)}catch(u){g.Bw(u)}t&&(n[g.Qe(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Se(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}}, +onError:function(f){if(!a.Ka())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}}; +d&&(e.kX="Bearer "+d);g.Yu(c,"player/get_drm_license",b,e)}; +X0a=function(a,b,c,d){g.ax.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Fa=[];this.D=[];this.Z=!1;this.j={};this.Aa=NaN;this.status="";this.K=NaN;this.B=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ra&&(a.vvt=this.videoData.ra,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment)); +this.W.Aa&&(a.authuser=this.W.Aa);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.yb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(WN(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.JN(this.B)?IN(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+ +Rca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=Li(this.baseUrl,"ek")||"";if(b=Li(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Fa=c.Ke?[g.Qe(c.initData,4)]:c.C;CZ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; +a1a=function(a,b){CZ(a,{createkeysession:1});a.status="gr";Oz("drm_gk_s",void 0,a.videoData.Ya);a.url=Y0a(a);try{a.C=b.createSession(a.Y,function(c){CZ(a,{m:c})})}catch(c){b="t.g"; +c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(Z0a(a.C,function(c,d){$0a(a,c,d)},function(c,d,e){if(!a.Ka()){d=void 0; +var f=1;g.JN(a.B)&&g.BO(a.W)&&a.W.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ka()||(CZ(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.xq(c)}),g.P(a,a.C))}; +Y0a=function(a){var b=a.baseUrl;pva(b)||a.error("drm.net",2,"t.x");if(!Li(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]}); +c.length>0&&(a.G.fexp=c.join())}c=g.w(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Mfa(b,d,a.G[d]);return b}; +$0a=function(a,b,c){if(!a.Ka())if(b){CZ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":b1a(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(Oz("drm_gk_f",void 0,a.videoData.Ya),a.ra=!0,a.publish("newsession",a));if(FN(a.B)&&(b=c1a(b),!b))return;g.JN(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=mBa(g.Qe(b)));b=new R0a(b,++a.requestNumber,a.videoData.Ya);S0a(b,function(d){d1a(a, +d)},function(d,e,f){if(!a.Ka()){var h=0,l; +(l=d.j.B>=3)||(l=a.Ga&&(0,g.rt)()-a.Aa>36E4);l&&(h=1,e="drm.net.retryexhausted");CZ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(gE(h),d)&&e1a(a,d)}}); +g.P(a,b);f1a(a,b)}else a.error("drm.unavailable",1,"km.empty")}; +b1a=function(a,b){CZ(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.Ji("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:QJ(b)}),responseType:"arraybuffer"}; +g.tr(c,b,3,500).then(wK(function(d){d=d.xhr;if(!a.Ka()){d=new Uint8Array(d.response);var e=QJ(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),wK(function(d){a.Ka()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}}; +DZ=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b}; +f1a=function(a,b){a.status="km";Oz("drm_net_s",void 0,a.videoData.Ya);if(a.videoData.useInnertubeDrmService()){var c=new g.Xu(a.W.al),d={context:g.du(c.config_||g.cu())};d.drmSystem=g1a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Qe(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null? +0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.ra&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ra, +scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.JN(a.B)&&(d.fairplayKeyId=g.Qe(Sca(a.fairplayKeyId)));g.XO(a.W,g.HQ(a.videoData)).then(function(l){W0a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.XO(a.W,g.HQ(a.videoData)).then(function(l){U0a(b,a.url,l); +a.status="rs"})}; +d1a=function(a,b){if(!a.Ka())if(CZ(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{Oz("drm_kr_s",void 0,a.videoData.Ya);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&& +!a.videoData.eE&&a.publish("newlicense",new O0a({})),a.videoData.eE=!0,a.Z=sm(a.D,function(d){return d.includes("HDR")})); +b.j&&(a.W.L("html5_enable_vp9_fairplay")&&IN(a.B)?(c=g.Qe(Sca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=uc(b.j,function(d){return{type:d,status:"unknown"}})); +GN(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Se(QJ(b.message)):HN(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=mBa(g.Qe(b.message)));a.C&&(CZ(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){Oz("drm_kr_f",void 0,a.videoData.Ya);DZ(a)||(CZ(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Re(d.message,3); +a.error("drm.keyerror",1,d)})); +a.N&&(a.Aa=(0,g.rt)());g.JN(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&IN(a.B)&&a.publish("qualitychange",h1a(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}}; +e1a=function(a,b){var c=b.j.getValue();c=new g.Oo(function(){f1a(a,b)},c); +g.P(a,c);c.start();g.$h(b.j);CZ(a,{rtyrq:1})}; +i1a=function(a,b){for(var c=[],d=g.w(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)}; +j1a=function(a){var b={};b[a.status]=DZ(a)?i1a(a,"."):a.D.join(".");return b}; +k1a=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a}; +l1a=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1}; +m1a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status}; +CZ=function(a,b){var c=c===void 0?!1:c;eE(b);(c||a.W.zc())&&a.publish("ctmp","drmlog",b)}; +n1a=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b}; +h1a=function(a){return g.Ob(a,"UHD2")||g.Ob(a,"UHD2HDR")?"highres":g.Ob(a,"UHD1")||g.Ob(a,"UHD1HDR")?"hd2160":g.Ob(a,"HD")||g.Ob(a,"HDHDR")?"hd1080":g.Ob(a,"HD720")||g.Ob(a,"HD720HDR")?"hd720":"large"}; +c1a=function(a){for(var b="",c=0;c'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new EZ(null,null,null,null,a)}; +t1a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c}; +q1a=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=0&&a.push(d);a=parseFloat(a.join("."))}else a=NaN;a>19.2999?(a=c.zw,c=c.yw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new AZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new BZ(b,this,a);break a;default:c=null}if(this.G=c)g.P(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.eX,this),this.G.subscribe("log_qoe",this.wj,this);LN(this.W.experiments);this.wj({cks:this.j.getInfo()})}; +v1a=function(a){var b=a.D.xO();b?b.then(wK(function(){x1a(a)}),wK(function(c){if(!a.Ka()){g.Bw(c); +var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.wj({mdkrdy:1}),a.Y=!0); +a.qa&&(b=a.qa.xO())}; +z1a=function(a,b,c){a.Ra=!0;c=new xY(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));y1a(a,c)}; +y1a=function(a,b){if(!a.Ka()){a.wj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.wj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Ga&&!a.videoData.isLivePlayback)HZ(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ke)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;hYa(b);b.Ke||(d&&b.j!==d?a.publish("ctmp","cpsmm", +{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.eX(b)}}; +x1a=function(a){if(!a.Ka())if(a.W.L("html5_drm_set_server_cert")||IN(a.j)){var b=a.D.setServerCertificate();b?b.then(wK(function(c){a.W.zc()&&a.publish("ctmp","ssc",{success:c})}),wK(function(c){a.publish("ctmp","ssce",{n:c.name, +m:c.message})})).then(wK(function(){A1a(a)})):A1a(a)}else A1a(a)}; +A1a=function(a){a.Ka()||(a.Y=!0,a.wj({onmdkrdy:1}),HZ(a))}; +B1a=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")}; +HZ=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Fa){for(;a.C.length;){var b=a.C[0],c=B1a(a)?iYa(b):g.Qe(b.initData);if(IN(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||IN(a.j)){a.C.shift();continue}else a.B.delete(c);hYa(b);break}}a.C.length&&a.createSession(a.C[0])}}; +C1a=function(a){var b;if(b=g.Gr()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.UJ(b),a.publish("ctmp","drm",{metrics:b}))}; +D1a=function(a){g.O.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.hG=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.ZB(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.Oo(function(){IZ(b.ea)},g.ZB(this.Da.experiments,"html5_delayed_retry_delay_ms")); +g.P(this,this.j)}; +J1a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;dQ(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&L0a(a.ea,"pe");a.Da.L("html5_lifa_disable_ssdai_on_decode_error")&&a.videoData.Ih()&&(b==="fmt.decode"||b==="fmt.unplayable")&&E1a(a.ea,c);if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Pk.G&&d&&d.itag==="22")return a.ea.Pk.G=!0,a.Gd("qoe.restart",{reason:"fmt.unplayable.22"}),JZ(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f= +a.videoData.R4)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ea.Lf(b,1,"VIDEO_UNAVAILABLE",eE((new fE(b,c,1)).details));return!0}var h=a.hG+3E4<(0,g.rt)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Gd("auth",c),!0;h||qT(a.ea.cj())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:AE(e)||BE(e))&&(eJa(a.Da.G,e.rb),c.acfallexp=e.rb,f=h=!0);!h&&a.C> +0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.xa;!h&&((d==null?0:zE(d))||(d==null?0:xE(d)))&&(eJa(a.Da.G,d.rb),f=h=!0,c.cfallexp=d.rb);if(a.Da.L("html5_ssap_ignore_decode_error_for_next_video")&&g.WP(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&qT(a.ea.cj())){if(c.cid!==c.ccid)return c.ignerr="1",a.Gd("ssap.transitionfailure",c),!0;a.Gd("ssap.transitionfailure",c);if(F1a(a.ea))return!0}if(!h)return G1a(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.WP(a.videoData)&& +b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&qT(a.ea.cj())&&(a.Gd("ssap.transitionfailure",c),F1a(a.ea)))return!0;h=!1;a.G?a.hG=(0,g.rt)():h=a.G=!0;var l=a.videoData;if(l.ob){l=l.ob.EY();var m=Date.now()/1E3+1800;l=l6048E5&&N1a(a,"signature");return!1}; +N1a=function(a,b){try{window.location.reload(),a.Gd("qoe.restart",{detail:"pr."+b})}catch(c){}}; +P1a=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Gd("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});IZ(a.ea,!0)}; +Q1a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; +R1a=function(a,b,c){this.W=a;this.SH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.ZB(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; +T1a=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.mC(a.W)&&(c=c.compose(S1a(a,b)));return c}; +V1a=function(a,b){var c,d=U1a(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=$Ia(a.W.G,b.j.videoInfos,c),new aL(0,a,!0,"o")):new aL(0,0,!1,"o")}; +U1a=function(a,b){return b&&g.mC(a.W)?b.some(function(c){return c.video.fps>32}):!1}; +W1a=function(a,b){var c=a.ea.bK();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.PU>0&&eL(b.videoData.eC)&&(a=c.PU,b.videoData.eC=new aL(0,a,!1,"u"));return b.videoData.eC}; +S1a=function(a,b){if(g.mC(a.W)&&sL(a.W.G,tL.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.zO(a.W)&&(e=window.screen&&window.screen.width?new g.Hd(window.screen.width,window.screen.height):null);e||(e=a.W.Gn?a.W.Gn.clone():a.SH.gi());(Mr||xX||d)&&e.scale(g.NO());d=e;eQ(b.videoData)||IQ(b.videoData);b=b.j.videoInfos;if(b.length){e=g.ZB(a.W.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!== +"EQUIRECTANGULAR_THREED_TOP_BOTTOM"||xO||(e=.45);a=g.ZB(a.W.experiments,"html5_viewport_undersend_maximum");for(f=0;f6E4&&(a.B=0);a.B++;a.N=g.Wa();if(a.B!==4)return!1;Y1a(a,b.videoData.B);return!0}; +a2a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.ZB(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.rt)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.rt)()-a.D)/1E3;a.D=(0,g.rt)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.W.zc()&&a.ea.oa("ddf",{dr:c.droppedVideoFrames, +de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.mC(a.W))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;Y1a(a,b.videoData.B);a.ea.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},$1a()));return!0}; +Y1a=function(a,b){var c=a.W,d=b.rb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&AIa("VideoPlayer",321298775,b,f.toFixed(0)),c=AN(c,d,e,h),f>0&&(c=Math.min(c,f)),!KZ.has(b)&&QK().includes(b))VBa(b,c,!0);else if(KZ.has(b)||h==null){a:{var l=l===void 0?!0:l;d=QK().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.xs("yt-player-performance-cap-active-set",d,2592E3)}zN.set(b,c)}else KZ.add(b), +h==null||h.set(b,c);else VBa(b,f);a.ea.jp()}; +b2a=function(a,b){if(!b.j.j)return a.G?new aL(0,360,!1,"b"):HP;for(var c=!1,d=!1,e=g.w(b.j.videoInfos),f=e.next();!f.done;f=e.next())zE(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.ZB(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.w(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!zE(h))if(f=AN(a.W,h.rb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new aL(0,d,!1,"b")}; +c2a=function(a,b){var c=a.ea.cj();return c.isInline()&&!b.ZD?new aL(0,480,!1,"v"):c.isBackground()&&tv()/1E3>60&&!g.mC(a.W)?new aL(0,360,!1,"v"):HP}; +e2a=function(a,b,c){if(a.W.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.mC(a.W)&&(NK(-1)>=1080||b.osid))return HP;var d=g.ZB(a.W.experiments,"html5_autonav_quality_cap"),e=g.ZB(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&tv()/1E3>e?(c&&(d=d2a(a,c,d)),new aL(0,d,!1,"e")):HP}; +d2a=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.LI(a.provider),a.delay.start()))}; +h2a=function(a){if(!(a.B<0)){var b=g.LI(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; +i2a=function(a){var b;switch((b=a.W.playerCanaryStage)==null?void 0:b.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"}}; +k2a=function(a,b){b?j2a.test(a):(a=g.Vq(a),Object.keys(a).includes("cpn"))}; +m2a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Yq(a)&&Zq()){if(h){var n;((n=l2a.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=l2a.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.Hq("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= +d:g.Hq("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Hq("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Aa)&&!PO(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.lm&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&j2a.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null}; +n2a=function(a,b,c,d,e,f,h,l){Zq()&&c.token&&(a=g.Wq(a,{ctt:c.token,cttype:c.yU,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:k2a(a,d.L("html5_assert_cpn_with_regex")),h?Vu().sendAndWrite(a,b):Vu().sendThenWrite(a,b,l)):b?(k2a(a,d.L("html5_assert_cpn_with_regex")),g.pr(a,b)):g.Lu(a,e)}; +p2a=function(a){for(var b=[],c=0;c500&&c.oa("vmlock",{diff:f.toFixed()});c.Ga=e},250)); +a.ea.Bf()&&b&&(this.Aa=b-Math.round(g.LI(a)*1E3));this.provider.videoData.mj&&(this.remoteControlMode=q2a[this.provider.videoData.mj]||0);this.provider.videoData.Rj&&(a=cDa(this.provider.videoData.Rj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)}; +g.NZ=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))}; +r2a=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.NZ(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Vf(c);if(a.D&&d*1E3>a.D.j0+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.j0;a.Ma=b*1E3-e.Wda-d-e.Eda;e=(0,g.rt)()-d;b=a.Ma;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.K&&(h.cttAuthInfo={token:d.K,videoId:d.videoId});h.startTime=e-b;Qz(f,h);g.Pz({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, +f);Oz("pbs",e,f)}else e=a.provider.ea.Yh(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.Ck()||g.Cw(new g.Ks("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.Ma.toFixed(),prev_ad:+c});delete a.D}}; +PZ=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.LI(a.provider);var c=a.provider.ea.AF(),d=c.Xs-(a.Va||0);d>0&&g.NZ(a,b,"bwm",[d,(c.Hv-(a.Ob||0)).toFixed(3)]);isNaN(a.Va)&&c.Xs&&a.isOffline&&a.oM(!1);a.Va=c.Xs;a.Ob=c.Hv;isNaN(c.bandwidthEstimate)||g.NZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.zc()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.W.zc()||a.provider.W.L("html5_log_meminfo"))d=Y_a(),Object.values(d).some(function(e){return e!==void 0})&&a.oa("meminfo",d); +a.qa&&g.NZ(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.yc!==d&&(g.NZ(a,b,"vis",[d]),a.yc=d);r2a(a,b);(d=s2a(a.provider))&&d!==a.Kb&&(g.NZ(a,b,"conn",[d]),a.Kb=d);t2a(a,b,c)}; +t2a=function(a,b,c){if(!isNaN(c.Mw)){var d=c.Mw;c.B96E3&&(new g.Oo(a.reportStats,0,a)).start()}; +x2a=function(a){a.provider.videoData.Cd&&QZ(a,"prefetch");a.provider.videoData.yc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.yc});a.provider.videoData.yb&&QZ(a,"monitor");a.provider.videoData.isLivePlayback&&QZ(a,"live");VN&&QZ(a,"streaming");a.provider.videoData.mj&&a.oa("ctrl",{mode:a.provider.videoData.mj},!0);if(a.provider.videoData.Rj){var b=a.provider.videoData.Rj.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.EX&&(b=a.provider.videoData.EX.replace(/,/g, +"."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.kQ(c)||g.wQ(c)||g.xQ(c)||g.yQ(c);(b||c)&&(b=(0,g.RZ)())&&(a.j.gpu=[b]);IQ(a.provider.videoData)&&g.NZ(a,g.LI(a.provider),"dt",["1"]);a.provider.W.zc()&&(b=(0,g.rt)()-a.provider.W.Rf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.gr(function(){a.reportStats()},1E4)}; +z2a=function(a,b,c){var d=g.LI(a.provider);y2a(a,d,b,0,c);PZ(a,d);w2a(a)}; +y2a=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;a.provider.W.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&A2a(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&A2a(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+iA());e&&c.push(B2a(e));g.NZ(a,b,"error",c);a.C=!0}; +C2a=function(a){a.B>=0||(a.provider.W.Pf||a.provider.ea.getVisibilityState()!==3?a.B=g.LI(a.provider):a.Wa=!0)}; +$Ua=function(a,b,c,d){if(c!==a.De){b=10&&a.playTimeSecs<=180&&(a.provider.ea.EG(),a.j.qoealert=["1"],a.fb=!0)),c!=="B"||a.De!=="PL"&&a.De!=="PB"||(a.isBuffering=!0),a.G=b);a.De==="PL"&&(c==="B"||c==="S")||a.provider.W.zc()?PZ(a,b):(a.ob||c!=="PL"||(a.ob=!0,t2a(a,b,a.provider.ea.AF())),r2a(a,b));c==="PL"&&g.Po(a.Rc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.NZ(a, +b,"vps",e);a.De=c;a.Jb=b;a.G=b;a.C=!0}}; +QZ=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c}; +iX=function(a,b,c,d,e,f){var h=g.LI(a.provider);c!==1&&c!==3&&c!==5||g.NZ(a,h,"vps",[a.De]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l}; +A2a=function(a,b){if(!a.Xa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Xa=!0}}; +B2a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; +D2a=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.qq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=SZ(this.provider)}; +TZ=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Kb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=SZ(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j}; +F2a=function(a){E2a(a);a.K=g.gr(function(){a.update()},100); +a.qq=g.LI(a.provider);a.B=SZ(a.provider)}; +E2a=function(a){g.ir(a.K);a.K=NaN}; +G2a=function(a,b,c){c-=a.qq;return b===a.j&&c>.5}; +H2a=function(a,b,c,d){this.W=b;this.yc=c;this.segments=[];this.experimentIds=[];this.Ya=this.Tb=this.isFinal=this.delayThresholdMet=this.Ab=this.Cd=this.autoplay=this.autonav=!1;this.Rc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Xa=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.ra=c==="atr";this.Qf=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.Hn+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState= +d.state,d.rti>0&&(this.Z=d.rti)):(this.uh=d.mos,this.Hg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Sd=d.inview),d.size&&(this.Wc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.je=g.Fc(b.j);this.N=WN(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Ob=g.Fc(b.Ob);this.Pf=b.Rc;this.experimentIds=XIa(b.experiments);this.Wa=b.Aj;this.Rc=b.qa;this.region= +b.region;this.userAge=b.userAge;this.ob=b.Cj;this.Od=tv();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Aa=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Rf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Sf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.uf=b.D&&b.L("embeds_append_synth_ch_headers");g.uO(b)&&(this.La=b.Ga);g.$r(g.DO(b))&&this.K.push(1);this.accessToken= +g.HQ(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.Bp[this.yc]?this.Fa=a.Bp[this.yc]:a.Bp.playback&&(this.Fa=a.Bp.playback):a.Fa&&(this.Fa=a.Fa);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=GQ(a);this.C&&(this.Cd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Oq&&CQ(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=EQ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ab=a.Ff; +a.K&&(this.Y=a.K,this.Jb=a.An);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Wk;this.Kb=a.Kb;a.B&&(this.We=a.B.itag,a.D&&a.D.itag!==this.We&&(this.yb=a.D.itag));a.j&&kL(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=CQ(a);this.Ya=a.Hg?!1:a.Vi;this.gf=a.Bn;if(b=pQ(a))this.Tf=b;this.hf=a.Qv;this.Va=a.Va;this.eventId=a.eventId;this.playlistId=a.g_||a.playlistId;this.aB=a.aB;this.mj=a.mj;this.Rj=a.Rj;this.bq=a.bq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata= +a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.cD=a.cD;this.referrer=a.referrer;this.Ep=a.gX||a.Ep;this.fb=a.gD;this.BB=a.BB;this.userGenderAge=a.userGenderAge;this.Tv=a.Tv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.uO(this.W)&&a.mutedAutoplay&&this.K.push(2);a.jd(new g.Hd(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.OQ(a)&&this.K.push(4);this.Ra=a.SW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)}; +I2a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.XO(a.W,a.accessToken).then(function(d){return m2a(a.uri,a.W,a.pageId,c,d,b,a.uf)})}; +L2a=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ma,a.Dd=b(),a.Od=0,a.send()):I2a(a).then(function(c){var d=J2a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Ji(a.uri,d);a.W.L("vss_through_gel_double")&&K2a(d);a.Aa?(c==null&&(c={}),a.Ga?Vu().sendAndWrite(d,c):Vu().sendThenWrite(d,c)):c?g.pr(d,c):g.Lu(d)})}}; +J2a=function(a){var b={ns:a.Rc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.We,fs:a.Tb?"1":"0",rt:a.B(a.Dd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Pf,lact:a.Od,live:a.Tf,cl:(659391501).toString(),mos:a.uh,state:a.playerState,volume:a.Hg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.je);a.N==="all"?Object.assign(b,a.Ob):a.N==="once"&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.Cd&&(b.sautoplay="1");a.Ab&&(b.dni="1");!a.D&&a.La&&(b.epm=M2a[a.La]); +a.isFinal&&(b["final"]="1");a.Ya&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Wa&&(b.hl=a.Wa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.ob&&(b.uga=a.ob+a.userAge);a.Ma!==void 0&&(b.len=a.B(a.Ma));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.Ep&&(b.feature=a.Ep);a.mj&&(b.ctrl=a.mj);a.Rj&&(b.ytr=a.Rj);a.yb&&(b.afmt=a.yb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.wc&&(b.lio=a.B(a.wc)); +a.D?(b.idpj=a.gf,b.ldpj=a.hf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Tv&&(b.ald=a.Tv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Wc&&(a.C||a.D)&&(b.size=a.Wc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Sd!=null&&(a.C||a.D)&&(b.inview=a.B(a.Sd));a.D&&(b.volume=UZ(a,g.pl(a.segments,function(d){return d.volume})),b.st=UZ(a,g.pl(a.segments,function(d){return d.startTime})),b.et=UZ(a,g.pl(a.segments,function(d){return d.endTime})), +sm(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=UZ(a,g.pl(a.segments,function(d){return d.playbackRate}))),sm(a.segments,function(d){return d.j!=="-"})&&(b.als=g.pl(a.segments,function(d){return d.j}).join(",")),sm(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.pl(a.segments,function(d){return""+ +d.previouslyEnded}).join(","))); +b.muted=UZ(a,g.pl(a.segments,function(d){return d.muted?1:0})); +sm(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=UZ(a,g.pl(a.segments,function(d){return d.visibilityState}))); +sm(a.segments,function(d){return d.connectionType!==0})&&(b.conn=UZ(a,g.pl(a.segments,function(d){return d.connectionType}))); +sm(a.segments,function(d){return d.B!==0})&&(b.blo=UZ(a,g.pl(a.segments,function(d){return d.B}))); +sm(a.segments,function(d){return!!d.C})&&(b.blo=g.pl(a.segments,function(d){return d.C}).join(",")); +sm(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.pl(a.segments,function(d){return d.compositeLiveStatusToken}).join(",")); +sm(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.pl(a.segments,function(d){return d.G}).join(",")); +sm(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.pl(a.segments,function(d){return d.clipId}).join(",")); +if(sm(a.segments,function(d){return!!d.D})){var c="au"; +a.C&&(c="au_d");b[c]=g.pl(a.segments,function(d){return d.D}).join(",")}Zq()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment); +a.Qf&&(b.etype=a.qa!==void 0?a.qa:0);a.fb&&(b.uoo=a.fb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=N2a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Fa?O2a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.cD,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.bq&&(b.ssrt="1"),a.BB&&(b.upt=a.BB));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn= +a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Ra&&(b.host_cpn=a.Ra);return b}; +O2a=function(a,b){if(b&&a.Fa){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);a.Fa.ns==="3pp"&&(b.ns="3pp");for(var f=g.w(Object.keys(a.Fa)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Fa[h]||(b[h]=a.Fa[h])}}; +UZ=function(a,b){return g.pl(b,a.B).join(",")}; +K2a=function(a){a.indexOf("watchtime")!==-1&&g.$s("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})}; +P2a=function(a,b){a.attestationResponse&&I2a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Aa?a.Ga?Vu().sendAndWrite(b,c):Vu().sendThenWrite(b,c):g.pr(b,c)})}; +VZ=function(a){g.O.call(this);this.provider=a;this.K="paused";this.G=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Fa=this.Aa=this.qa=this.B=!1;this.C=this.D=NaN;this.j=new D2a(a)}; +T2a=function(a){if(!a.B){a.provider.videoData.BH===16623&&g.Cw(Error("Playback for EmbedPage"));var b=WZ(a,"playback");a:{if(a.provider.W.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.Bn,h=a.provider.videoData.Qv,l=-f;e=g.w(e);for(var m=e.next();!m.done;m= +e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.Bn,10,10,40+a.provider.videoData.Qv-a.provider.videoData.Bn,40]}F2a(a.j);b.G=XZ(a);a.C>0&&(b.j-=a.C);b.send();a.provider.videoData.Ew&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Ew,oid:d.wW,ptchn:d.vW,pltype:d.xW,content_v:EQ(d)},d.ww&&Object.assign(c,{m:d.ww}),b=g.Ji(b.Fa+"ptracking",c),Q2a(a,b));a.provider.videoData.Kb||(R2a(a), +S2a(a),a.gt());a.B=!0;b=a.j;b.j=b.provider.ea.Vf();b.qq=g.LI(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssinit",{})}}; +XZ=function(a,b){b=b===void 0?NaN:b;var c=g.LI(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+11E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=XZ(a,e));h.send();a.Y++}},(e-c)*1E3); +return a.D=e}; +YZ=function(a){g.hr(a.G);a.G=NaN}; +U2a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||TZ(a);var b=a.segments;a.segments=[];return b}; +WZ=function(a,b){var c=W2a(a.provider);Object.assign(c,{state:a.K});b=new H2a(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.ea.Vf();c=a.provider.videoData.clientPlaybackNonce;a.provider.W.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.XJ(c));a.provider.videoData.isLivePlayback||(b.Ma=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.lf(b.j))&&(b.wc=c-b.j);b.Dd=g.LI(a.provider);b.segments=[SZ(a.provider)];return b}; +V2a=function(a,b){var c=WZ(a,"watchtime");X2a(a)&&(c.delayThresholdMet=!0,a.Aa=!0);if(a.C>0){for(var d=g.w(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.j-=a.C}else c.j=a.j.fQ();c.segments=b;return c}; +ZZ=function(a,b){var c=Y2a(a,!isNaN(a.D));b&&(a.D=NaN);return c}; +Y2a=function(a,b){var c=V2a(a,U2a(a));!isNaN(a.D)&&b&&(c.Z=a.D);return c}; +X2a=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.B&&!a.Aa)b=a.j,b=b.G+b.provider.ea.Vf()-b.C>=a.provider.videoData.Kb;return!!b}; +R2a=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Fa&&(Q2a(a,a.provider.videoData.youtubeRemarketingUrl),a.Fa=!0)}; +S2a=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(Q2a(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)}; +Z2a=function(a){a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssfi",{});if(!a.Ka()&&a.B){a.K="paused";var b=ZZ(a);b.isFinal=!0;b.send();a.dispose()}}; +$2a=function(a,b){if(!a.Ka())if(g.T(b.state,2)||g.T(b.state,512)){if(a.K="paused",g.jy(b,2)||g.jy(b,512))g.jy(b,2)&&(a.j.previouslyEnded=!0),a.B&&(YZ(a),ZZ(a).send(),a.D=NaN)}else if(g.T(b.state,8)){a.provider.W.L("html5_shorts_gapless_vss_pbs_fix")&&dQ(a.provider.videoData)&&!a.B&&T2a(a);a.K="playing";var c=a.B&&isNaN(a.G)?XZ(a):NaN;!isNaN(c)&&(iy(b,64)<0||iy(b,512)<0)&&(a=Y2a(a,!1),a.G=c,a.send())}else a.K="paused"}; +a3a=function(a,b,c){if(!a.qa){c||(c=WZ(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}}; +Q2a=function(a,b){var c=a.provider.W;g.XO(a.provider.W,g.HQ(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=m2a(b,c,e,f,d);n2a(b,d,{token:a.provider.videoData.K,yU:a.provider.videoData.An,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; +b3a=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; +$Z=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0}; +g.LI=function(a){return c3a(a)()}; +c3a=function(a){if(!a.j){var b=g.Ua(function(d){var e=(0,g.rt)();d&&e<=631152E6&&(a.ea.oa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b(); +a.j=function(){return Math.round(b()-c)/1E3}; +a.ea.yS()}return a.j}; +W2a=function(a){var b=a.ea.Pr()||{};b.fs=a.ea.RF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.mA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.bl&&(c.infringe=1);(a.Hg?0:a.Vi)&&(c.splay=1); +(d=pQ(a))&&(c.live=d);a.Oq&&(c.sautoplay=1);a.Qk&&(c.autoplay=1);a.aB&&(c.sdetail=a.aB);a.Va&&(c.partnerid=a.Va);a.osid&&(c.osid=a.osid);a.SD&&(c.cc=g.dKa(a.SD));return Object.assign(b,c)}; +s2a=function(a){var b,c;if(b=((c=navigator.connection)==null?void 0:c.type)||"")return d3a[b]||d3a.other;if(g.mC(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; +SZ=function(a){var b=new b3a,c;b.G=((c=W2a(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.W.ob&&(b.B=1);b.C=a.videoData.mz;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.Yb&&c.Yb.id&&c.Yb.id!=="und"&&(b.D=c.Yb.id);b.connectionType=s2a(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.mA()||"-";b.j=a.videoData.QW||"-";return b}; +g.a_=function(a,b){g.O.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.De=new g.lF;this.hd={moa:function(){return c.qoe}, +xoa:function(){return c.j}, +Vna:function(){return c.B}}; +this.provider.videoData.qe()&&!this.provider.videoData.wm&&(this.j=new VZ(this.provider),this.provider.W.L("html5_ssap_vss_fix")&&(this.j.C=this.provider.videoData.Od/1E3),g.P(this,this.j),this.qoe=new g.OZ(this.provider,b),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Mg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Mg,this.j));if(a.W.playerCanaryState==="canary"||a.W.playerCanaryState==="holdback")this.B=new LZ(this.provider),g.P(this,this.B)}; +e3a=function(a){return!!a.j&&!!a.qoe}; +jX=function(a){a.B&&g2a(a.B);a.qoe&&C2a(a.qoe)}; +f3a=function(a){if(a.qoe){a=a.qoe;for(var b=a.provider.videoData,c=a.provider.W,d=g.w(c.uh),e=d.next();!e.done;e=d.next())QZ(a,e.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(d=g.w(b.Dp),e=d.next();!e.done;e=d.next())QZ(a,e.value);else b.uh&&QZ(a,a.provider.videoData.uh);b.Vb()&&(d=b.j,VP(b)&&QZ(a,"manifestless"),d&&sN(d)&&QZ(a,"live-segment-"+sN(d).toFixed(1)));TP(b)&&QZ(a,"sabr");b.Ih()&&QZ(a,"lifa");b.gatewayExperimentGroup&&(d=b.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? +d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),QZ(a,d));c.qa!=="yt"&&(a.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!IQ(b)&&a.oM(!0);c.zc()&&(d=$Ta())&&a.oa("cblt",{m:d});if(jQ(b)){var f;((f=c.getWebPlayerContextConfig())==null?0:f.enableProximaLowLatency)&&c.L("html5_wpcc_proxima")?QZ(a,"proximawpcc"):a.provider.ea.getProximaLatencyPreference()?QZ(a,"proximaui"):QZ(a,"proximaexp")}}}; +bVa=function(a){if(a.provider.ea.Bf()){if(a.D)return;a.D=!0}a.j&&T2a(a.j);if(a.B){a=a.B;var b=g.LI(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; +g3a=function(a,b){a.j&&(a=a.j,b===58?a.j.update():a.B&&(YZ(a),ZZ(a).send(),a.D=NaN))}; +aVa=function(a,b){if(g.jy(b,1024)||g.jy(b,512)||g.jy(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var d;(d=a.C.get(a.Mg))==null||$2a(d,b)}else a.j&&$2a(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.LI(d.provider),f=d.getPlayerState(c);$Ua(d,e,f,c.seekSource||void 0);f=c.dh;g.T(c,128)&&f&&(f.lM=f.lM||"",y2a(d,e,f.errorCode,f.iA,f.lM));(g.T(c,2)||g.T(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=0&& +(d.j.user_intent=[d.B.toString()]),d.N=!0);w2a(d)}a.B&&(d=a.B,h2a(d),d.playerState=b.state,d.B>=0&&g.jy(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Bf()&&(a.De=b.state)}; +h3a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var b;(b=a.C.get(a.Mg))!=null&&TZ(b.j)}else a.j&&TZ(a.j.j)}; +i3a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.De==="PL"&&(b.De="N");var c=g.LI(b.provider);g.NZ(b,c,"vps",[b.De]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.zc()&&b.oa("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.w(a.C.values()),c=b.next();!c.done;c=b.next())Z2a(c.value);else a.j&&Z2a(a.j);a.dispose()}; +j3a=function(a,b){a.j&&a3a(a.j,b)}; +k3a=function(a){if(!a.j)return null;var b=WZ(a.j,"atr");return function(c){a.j&&a3a(a.j,c,b)}}; +l3a=function(a,b,c,d){c.adFormat=c.wc;var e=b.ea;b=new VZ(new $Z(c,b.W,{getDuration:function(){return c.lengthSeconds}, +getCurrentTime:function(){return e.getCurrentTime()}, +Vf:function(){return e.Vf()}, +XJ:function(){return e.XJ()}, +Bf:function(){return e.Bf()}, +AF:function(){return e.AF()}, +getPlayerSize:function(){return e.getPlayerSize()}, +getAudioTrack:function(){return c.getAudioTrack()}, +getPlaybackRate:function(){return e.getPlaybackRate()}, +EF:function(){return e.EF()}, +getVisibilityState:function(){return e.getVisibilityState()}, +Yh:function(){return e.Yh()}, +Pr:function(){return e.Pr()}, +getVolume:function(){return e.getVolume()}, +isMuted:function(){return e.isMuted()}, +RF:function(){return e.RF()}, +mA:function(){return e.mA()}, +getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, +yS:function(){e.yS()}, +EG:function(){e.EG()}, +oa:function(f,h){e.oa(f,h)}})); +b.C=d;g.P(a,b);return b}; +m3a=function(){this.Mw=0;this.C=this.Hv=this.Xs=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; +b_=function(a,b,c){g.O.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Mg="";this.hd={ao:function(){return Array.from(d.j.keys())}}}; +cVa=function(a,b){a.j.has(b)&&(i3a(a.j.get(b)),a.j.delete(b))}; +n3a=function(){this.j=g.QC;this.array=[]}; +p3a=function(a,b,c){var d=[];for(b=o3a(a,b);bc)break}return d}; +q3a=function(a,b){var c=[];a=g.w(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; +r3a=function(a){return a.array.slice(o3a(a,0x7ffffffffffff),a.array.length)}; +o3a=function(a,b){a=$b(a.array,function(c){return b-c.start||1}); +return a<0?-(a+1):a}; +s3a=function(a,b){var c=NaN;a=g.w(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; +y3a=function(a,b){this.videoData=a;this.j=b}; +z3a=function(a,b,c){return b.eJ(c).then(function(){return wr(new y3a(b,b.C))},function(d){d instanceof Error&&g.Cw(d); +var e=jE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=lE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.$N(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.wx(),d:!!b.Wc,drm:b.ej(),f18:b.Sf.indexOf("itag=18")>=0,c18:e};b.j&&(b.ej()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=lE('video/mp4; codecs="avc1.42001E"'), +e.cVP9=lE('video/webm; codecs="vp9"'));b.G&&(e.drmsys=b.G.keySystem,f=0,b.G.j&&(f=Object.keys(b.G.j).length),e.drmst=f);return new fE(d,e,h)})}; +A3a=function(a){this.G=a;this.C=this.B=0;this.D=new uT(50)}; +f_=function(a,b,c){g.ax.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new B3a;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.yb?c.B=3:g.uQ(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.ZB(b,"html5_liveness_drift_proxima_override");if(jQ(a)&&d){c.j=d;var e;((e=a.j)==null?0:XHa(e))&&c.j--}TP(a)&&b.kb("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.N=!0);if(g.Er("trident/")||g.Er("edge/"))c.C=Math.max(c.C,g.ZB(b,"html5_platform_minimum_readahead_seconds")|| +3);g.ZB(b,"html5_minimum_readahead_seconds")&&(c.C=g.ZB(b,"html5_minimum_readahead_seconds"));g.ZB(b,"html5_maximum_readahead_seconds")&&(c.K=g.ZB(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.ZB(b,"html5_liveness_drift_chunk_override"))c.j=b;iQ(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=e_(this,C3a(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; +D3a=function(a,b){if(b)return b=a.videoData,b=C3a(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),e_(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return e_(a,a.j-1);if(a.policy.D)return e_(a,a.j+1)}return a.j}; +E3a=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=D3a(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b}; +g_=function(a,b){return b>=a.Zn()-F3a(a)}; +G3a=function(a,b,c){b=g_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C}; +H3a=function(a,b){b=g_(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b}; +F3a=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*h_(a)}; +C3a=function(a,b,c){c.yb&&b--;iQ(c)&&(b=1);if(jQ(c)&&(a=g.ZB(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:XHa(d))&&b++}return b}; +h_=function(a){return a.videoData.j?sN(a.videoData.j)||5:5}; +e_=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/h_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/h_(a))),b)}; +B3a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.N=this.G=!1}; +k_=function(a){g.O.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.B=null;this.K=this.D=0;this.G=new g.Oo(this.He,1E3,this);this.ob=new i_({delayMs:g.ZB(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ga=new i_({delayMs:g.ZB(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.yb=j_(this,"html5_seek_set_cmt");this.Va=j_(this,"html5_seek_jiggle_cmt");this.Ya=j_(this,"html5_seek_new_elem");this.Tb=j_(this,"html5_unreported_seek_reseek");this.Aa=j_(this,"html5_long_rebuffer_jiggle_cmt"); +this.Ma=j_(this,"html5_long_rebuffer_ssap_clip_not_match");this.Fa=new i_({delayMs:2E4});this.Wa=j_(this,"html5_seek_new_elem_shorts");this.fb=j_(this,"html5_seek_new_media_source_shorts_reuse");this.Xa=j_(this,"html5_seek_new_media_element_shorts_reuse");this.Ra=j_(this,"html5_reseek_after_time_jump");this.Z=j_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=j_(this,"html5_gapless_slow_seek");this.Y=j_(this,"html5_gapless_slice_append_stuck");this.ra=j_(this,"html5_gapless_slow_start"); +this.N=j_(this,"html5_ads_preroll_lock_timeout");this.Ob=j_(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new i_({delayMs:g.ZB(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,bA:!this.W.L("html5_report_slow_ads_as_error")});this.Ab=new i_({delayMs:g.ZB(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,bA:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new i_({delayMs:g.ZB(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.La=j_(this,"html5_slow_start_no_media_source"); +this.C={};g.P(this,this.G)}; +j_=function(a,b){var c=g.ZB(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new i_({delayMs:c,bA:a})}; +I3a=function(a,b){a.j=b}; +l_=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Gd(e,b,h),b.bA||f()):(b.tM&&b.B&&!b.D?(c=(0,g.rt)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.tM,c=b.j&&c-b.j>b.nT||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.uc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.oa("workaroundReport",l),d&&(b.reset(),a.C[e]=!1)))}; +i_=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.nT===void 0?1E3:b.nT;var d=b.tM===void 0?3E4:b.tM;b=b.bA===void 0?!1:b.bA;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.nT=c;this.tM=d;this.bA=b}; +M3a=function(a){g.O.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new J3a;this.Fa=new k_(this.ea);this.K=this.j=this.xa=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.La=NaN;this.C=null;this.Ra=NaN;this.G=this.qa=null;this.ra=!1;this.ob=NaN;this.Jb=0;this.Z=!1;this.Ma=new g.Oo(function(){K3a(b,!1)},2E3); +this.Ab=new g.Oo(function(){m_(b)}); +this.Wa=new g.Oo(function(){b.ra=!0;L3a(b,{})}); +this.timestampOffset=0;this.N=!0;this.Va=0;this.yb=NaN;this.Ga=new g.Oo(function(){var c=b.W.uf;c.j+=1E4/36E5;c.j-c.C>1/6&&(pJa(c),c.C=c.j);b.Ga.start()},1E4); +this.Ya=this.Kb=!1;this.Y=0;this.fb=!1;this.Aa=0;g.P(this,this.Fa);g.P(this,this.Ma);g.P(this,this.Wa);g.P(this,this.Ab);g.P(this,this.Ga)}; +P3a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new A3a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(VP(a.videoData)&&a.xa){var c=a.xa.sJ.eh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ma;break a}}c=0}return c}),a.j=new f_(a.videoData,a.W.experiments,function(){return a.Vd(!0)})); +n_(a.ea)?(b=N3a(a),b.kN?(TP(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.iC(b.kN,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{Zc:"seektimeline_startPlayback",seekSource:15}),a.N=!1):O3a(a)||(a.D=a.D||(g.WP(a.videoData)?0:a.videoData.startSeconds)||0)}; +R3a=function(a,b){(a.xa=b)?Q3a(a,!0):o_(a)}; +S3a=function(a,b){g.Po(a.Fa.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Po(a.Ga):a.Ga.stop());if(a.mediaElement)if(b.CB.state===8&&sF(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Dh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?NE(c,Math.max(b-3.5,0)):NE(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+10?(p_(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Ya=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(p_(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Ya=!0))}; +U3a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c50&&e.B.shift())),e=a.j,G3a(e,c,b===void 0?!0:b),H3a(e,c),b&&K3a(a,!0));d!==a.Kb&&(b=a.getCurrentTime()-a.ob<=500,c=a.Jb>=1E3,b||c||(b=a.ea.Xb(),b.qoe&&(b=b.qoe,c=g.LI(b.provider), +g.NZ(b,c,"lh",[d?"1":"0"])),a.Kb=d,a.Jb++,a.ob=a.getCurrentTime()))}; +K3a=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!g_(c,d)&&c.jq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d0&&hF(a.mediaElement)>0&&(a.B=q_(a,a.B,!1)),!a.mediaElement||!Z3a(a))a.Ab.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Ra-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime()); +else{if(a.videoData.YD)a.videoData.YD=!1;else if(!SP(a.videoData)&&a.B>=a.Vd()-.1){a.B=a.Vd();a.C.resolve(a.Vd());CW(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Fa.j=c;a.Ra=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.Z=!1)}catch(d){}}}}; +Z3a=function(a){if(!a.mediaElement||a.mediaElement.ql()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.ej())return b;if(a.B>=0){var c=a.mediaElement.AA();if(c.length||!b)return OE(c,a.B-a.timestampOffset)}return b}; +Y3a=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.W.zc()&&(b=a.uc(),b["native"]=""+ +a.Z,b.otgt=""+(a.B+a.timestampOffset),a.ea.oa("seekEnd",b)));o_(a)}; +o_=function(a){a.B=NaN;a.Ra=NaN;a.C=null;a.qa=null;a.G=null;a.ra=!1;a.Z=!1;a.Va=0;a.Ma.stop();a.Wa.stop()}; +a4a=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.Z&&f!==a.B){var h=!!a.C;a.C=new fF;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){Y3a(a,m)},function(){o_(a)}); +if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Tsa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.SW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.yL()}a.Ra=f;I3a(a.Fa,d.getCurrentTime());a.seekTo(f,{seekSource:104,Zc:"seektimeline_mediaElementEvent"});c&&eVa(c,f*1E3,!!h);a.Z=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":n_(a.ea)||$3a(a);m_(a);break;case "progress":m_(a);break;case "pause":a.Y=a.getCurrentTime()}a.Y&& +((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Y>10&&a.seekTo(a.Y,{Zc:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Y=0))}; +b4a=function(a){return(vQ(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||O3a(a))&&!!a.videoData.j}; +O3a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9}; +N3a=function(a){var b=0,c=NaN,d="";if(!a.N)return{startSeconds:b,kN:c,source:d};a.videoData.La?b=a.videoData.Ra:SP(a.videoData)&&(b=Infinity);if(g.uQ(a.videoData))return{startSeconds:b,kN:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.je&&(d="stss",b=a.videoData.je);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>a.Vd()||ba.Vd()||c +0?(d.onesie="0",a.handleError(new fE("html5.missingapi",d)),!1):!0}; +j4a=function(a){var b=wR();xR(b,a);return g.gA(b,EBa())}; +g4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,N,M,X,V,fa,pa,Z,R;return g.J(function(W){if(W.j==1)return b.fetchType="onesie",c=bMa(b,a.getPlayerSize(),a.getVisibilityState()),d=new nZ(a,c),g.G(W,d.fetch(),2);e=W.B;f={player_response:e};b.loading=!1;h=a.zd.Nu;if(d.ag){l=g.w(d.ag.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.w(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(y=u.Ir(),b.ZC=y);h.ex=d}A=g.w(d.wY.entries());for(D=A.next();!D.done;D= +A.next())F=D.value,H=g.w(F),N=H.next().value,M=H.next().value,X=N,V=M,h.B.set(X,V,180);g.MP(b,f,!0);if(b.loading||JP(b))return W.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.ZC=[];fa={};pa="onesie.response";Z=0;b.errorCode?(pa="auth",fa.ec=b.errorCode,fa.ed=b.errorDetail,fa.es=b.Tn||"",Z=2):(fa.successButUnplayable="1",fa.disposed=""+ +b.Ka(),fa.afmts=""+ +/adaptiveFormats/.test(e),fa.cpn=b.clientPlaybackNonce);R=new fE(pa,fa,Z);return W.return(Promise.reject(R))})}; +e4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.J(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f0)){t.Ia(5);break}return g.G(t,Me(5E3),6);case 6:h=new g.Ks("Retrying OnePlatform request",{attempt:f}),g.Cw(h);case 5:return g.va(t,7),g.G(t,k4a(a,b),9);case 9:return t.return();case 7:l=g.xa(t);m=hE(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n=== +"manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(gE(m.severity)){t.Ia(4);break}case 3:f++;t.Ia(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new fE(q,{backend:"op"},r)))}})}; +k4a=function(a,b){function c(pa){pa.readyState===2&&a.Kd("ps_c")} +var d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,N,M,X,V,fa;return g.J(function(pa){switch(pa.j){case 1:b.fetchType="gp";d=a.U();e=g.XO(d,g.HQ(b));if(!e.j){f=e.getValue();pa.Ia(2);break}return g.G(pa,e.j,3);case 3:f=pa.B;case 2:return h=f,l=j4a(h),m=bMa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.Ty(l4a),p=g.HQ(b),q=(0,g.rt)(),r=!1,t="empty",u=0,a.Kd("psns"),y={GB:c},g.G(pa,g.Wz(l,m,n,void 0,y),4);case 4:A=pa.B;a.Kd("psnr");if(b.Ka())return pa.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message, +u=A.error.code):A.errorMetadata&&(r=!0,t="its",u=A.errorMetadata.status):r=!0;if(r)return D=0,F=((0,g.rt)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Hq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.mj||"",token_eq:p===g.HQ(b)?"1":"0"}:{backend:"op", +rc:""+u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Hq("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.mj||"",token_eq:p===g.HQ(b)?"1":"0"},N="manifest.net.connect",u===429?(N="auth",D=2):u>200&&(N="manifest.net.badstatus",u===400&&(D=2)),pa.return(Promise.reject(new fE(N,H,D)));b.loading=!1;g.MP(b,{raw_player_response:A},!0); +M=A;g.AO(b.U())&&M&&M.trackingParams&&EK(M.trackingParams);if(b.errorCode)return X={ec:b.errorCode,ed:b.errorDetail,es:b.Tn||""},pa.return(Promise.reject(new fE("auth",X,2)));if(!b.loading&&!JP(b))return V=b.isAd()?"auth":"manifest.net.retryexhausted",fa=b.isAd()?2:1,pa.return(Promise.reject(new fE(V,{successButUnplayable:"1",hasMedia:g.rQ(b)?"1":"0"},fa)));g.ua(pa)}})}; +d4a=function(a,b,c){function d(u){u=hE(u);if(gE(u.severity))return Promise.reject(u);a.handleError(u);return!1} +function e(){return!0} +var f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:var y=a.U(),A=a.getPlayerSize(),D=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.Va===38&&y.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.Ji("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.G4});else if(b.Va===30&&y.playerStyle==="docs")F=g.Ji("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.Tda,authkey:b.Hfa,eurl:y.Rc});else if(b.Va=== +33&&y.playerStyle==="google-live")F=g.Ji("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{y.qa!=="yt"&&g.Bw(Error("getVideoInfoUrl for invalid namespace: "+y.qa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:y.Rc,ps:y.playerStyle,el:CQ(b),hl:y.Aj,list:b.playlistId,agcid:b.DX,aqi:b.adQueryId,sts:19940,lact:tv()};Object.assign(H,y.j);y.forcedExperiments&&(H.forced_experiments=y.forcedExperiments);b.ra?(H.vvt=b.ra,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)): +g.HQ(b)&&(H.access_token=g.HQ(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.iD!==null&&(H.ad_id=b.iD);b.mD!==null&&(H.ad_sys=b.mD);b.cE!==null&&(H.encoded_ad_playback_context=b.cE);b.RD&&(H.tpra="1");y.captionsLanguagePreference&&(H.cc_lang_pref=y.captionsLanguagePreference);y.Jb&&y.Jb!==2&&(H.cc_load_policy=y.Jb);var N=g.Fs(g.Es(),65);g.OO(y)&&N!=null&&!N&&(H.device_captions_on="1");y.mute&&(H.mute=y.mute);b.annotationsLoadPolicy&& +y.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.xw&&(H.endscreen_ad_tracking=b.xw);(N=y.La.get(b.videoId))&&N.YM&&(H.ic_track=N.YM);b.Ma&&(H.itct=b.Ma);GQ(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.gF&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Rj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.Sw&&(H.ytrcc=b.Sw);b.yG&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1"); +b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(N=b.forceAdsUrl.split("|").length===3,H.force_ad_params=N?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Cd&&(H.preload=b.Cd);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Hg?0:b.Vi)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");EQ(b)&&(H.content_v=EQ(b));b.yb&&(H.livemonitor=1);y.Aa&&(H.authuser=y.Aa);y.pageId&&(H.pageid=y.pageId);y.fb&&(H.ei=y.fb);y.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");y.N&&b.yI&&(H.live_start_walltime= +b.yI);y.N&&b.dk&&(H.live_manifest_duration=b.dk);y.N&&b.playerParams&&(H.player_params=b.playerParams);y.N&&b.cycToken&&(H.cyc=b.cycToken);y.N&&b.TD&&(H.tkn=b.TD);D!==0&&(H.vis=D);y.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.zp&&(H.kids_age_up_mode=b.zp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.OB&&(H.upg_content_filter_mode="1");y.widgetReferrer&&(H.widget_referrer=y.widgetReferrer.substring(0,128));b.qa?(A=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+ +","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.Hn&&(H.internalipoverride=b.Hn);y.embedConfig&&(H.embed_config=y.embedConfig);y.Bn&&(H.co_rel="1");y.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(y.ancestorOrigins).join(","));y.homeGroupInfo!==void 0&&(H.home_group_info=y.homeGroupInfo);y.livingRoomAppMode!==void 0&&(H.living_room_app_mode=y.livingRoomAppMode);y.enablePrivacyFilter&& +(H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.mw&&b.nw&&(H.clip=b.mw,H.clipt=b.nw);b.uw&&(H.disable_watch_next="1");b.Gn&&(H.forced_by_var="1");for(var M in H)!m4a.has(M)&&H[M]&&String(H[M]).length>512&&(g.Cw(Error("GVI param too long: "+M)),H[M]="");M=y.Fa;g.BO(y)&&(M=KC(M.replace(/\b(?:www|web)([.-])/,"tv$1"))||y.Fa);y=g.Ji(M+"get_video_info",H);F&&(y=Zma(y,F));F=y}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m0)){u.Ia(5);break}return g.G(u, +Me(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Xq(f,p);case 5:return g.G(u,n4a(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.Cw(new g.Ks("b/152131571",btoa(f)))}catch(X){}return u.return(Promise.reject(new fE(r,{backend:"gvi"},t)))}})}; +n4a=function(a,b){function c(A){return d(A.xhr)} +function d(A){if(!a.Ka()){A=A?A.status:-1;var D=0,F=((0,g.rt)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";A===429?(H="auth",D=2):A>200&&(H="manifest.net.badstatus",A===400&&(D=2));return Promise.reject(new fE(H,F,D))}} +var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var D={};a.ID&&(D.ytrext=a.ID);(l=g.Cc(D)?void 0:D)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Xq(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b);m={};e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData);(n=WN(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length> +0&&(f.headers=m);p=(0,g.rt)();return g.G(A,fN(sr,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=Tq(q.responseText);g.MP(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Tn||""},A.return(Promise.reject(new fE("auth",t,2)));if(!a.loading&&!JP(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,A.return(Promise.reject(new fE(u,{successButUnplayable:"1"},y)));g.ua(A)})}; +s_=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.J(function(l){if(l.j==1){d=a.U();if(c&&(!g.QO(d)||CQ(b)!=="embedded")||b.uw||CQ(b)!=="adunit"&&(g.mC(d)||HO(d)||g.Cy(d)||g.BO(d)||g.UN(d)==="WEB_CREATOR"))return l.return();e=g.XO(d,g.HQ(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ia(2))}l.j!=2&&(f=l.B);h=f;return l.return(o4a(a,b,h))})}; +o4a=function(a,b,c){var d,e,f,h,l;return g.J(function(m){if(m.j==1){g.va(m,2);d=j4a(c);var n=b.U();g.Es();var p={context:g.QQ(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};CQ(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Bn&&(p.showContentOwnerOnly=!0);b.gY&&(p.showShortsOnly=!0);g.Fs(0,141)&&(p.autonavState=g.Fs(0,140)?"STATE_OFF":"STATE_ON");if(g.OO(n)){var q=g.Fs(0,65);q=q!=null? +!q:!1;var r=!!g.ys("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.Ty(p4a);a.Kd("wn_s");return g.G(m,g.Wz(d,e,f),4)}if(m.j!=2)return h=m.B,a.Kd("wn_r"),!h||"error"in h&&h.error||(l=h,g.AO(b.U())&&l.trackingParams&&EK(l.trackingParams),g.MP(b,{raw_watch_next_response:h},!1)),g.wa(m,0);g.xa(m);g.ua(m)})}; +q4a=function(a){a.Kd("vir");a.Kd("ps_s");Tz("vir",void 0,"video_to_ad");var b=i4a(a);b.then(function(){a.Kd("virc");Tz("virc",void 0,"video_to_ad");a.Kd("ps_r");Tz("ps_r",void 0,"video_to_ad")},function(){a.Kd("virc"); +Tz("virc",void 0,"video_to_ad")}); +return b}; +g.v_=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.IP(a):m;n=n===void 0?!0:n;g.ax.call(this);var p=this;this.W=a;this.playerType=b;this.Lb=c;this.SH=d;this.getVisibilityState=f;this.visibility=h;this.zd=l;this.videoData=m;this.H7=n;this.logger=new g.yN("VideoPlayer");this.wE=new x3a(this.W);this.ze=null;this.QB=new GZ;this.Er=null;this.Pk=new R1a(this.W,this.SH,this);this.oZ=!0;this.Qa=this.xa=null;this.Cq=[];this.Dq=new r_;this.Jf=this.YG=null;this.Gs=new r_;this.aM=null;this.xZ=this.yu=!1;this.bM= +NaN;this.s1=!1;this.playerState=new g.lF;this.eM=[];this.QC=new g.oE;this.Cl=new D1a(this);this.mediaElement=null;this.Tx=new g.Oo(this.mba,15E3,this);this.DT=this.tL=!1;this.Hy=NaN;this.bJ=!1;this.yO=0;this.QF=!1;this.VK=NaN;this.qU=new vT(new Map([["bufferhealth",function(){return T3a(p.Qc)}], +["bandwidth",function(){return p.SP()}], +["networkactivity",function(){return p.W.schedule.qa}], +["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?r4a(p):NaN}], +["rawlivelatency",function(){return r4a(p)}]])); +this.hG=0;this.loop=!1;this.playbackRate=1;this.l_=0;this.Qc=new M3a(this);this.oX=!1;this.dM=[];this.oR=this.t1=0;this.yT=this.O3=!1;this.Hv=this.Xs=0;this.qP=-1;this.lO=new g.Oo(this.G9,0,this);this.W2=!1;this.ub=this.bd=null;this.paa=[this.QC,this.lO,this.Tx,this.qU];this.If=function(){var q=p.Xb();q.provider.W.Pf||q.provider.ea.getVisibilityState()===3||(q.provider.W.Pf=!0);h3a(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&g2a(r)}q.qoe&&(q=q.qoe,q.Wa&&q.B<0&&q.provider.W.Pf&& +C2a(q),q.C&&PZ(q));p.xa&&t_(p);p.W.Qp&&!p.videoData.backgroundable&&p.mediaElement&&!p.oi()&&(p.isBackground()&&p.mediaElement.OI()?(p.oa("bgmobile",{suspend:1}),p.Yo(!0,!0)):p.isBackground()||u_(p)&&p.oa("bgmobile",{resume:1}))}; +this.hd={xq:function(q){p.xq(q)}, +Ipa:function(q){p.ze=q}, +eoa:function(){return p.lB}, +xA:function(){return p.mB}, +Cna:function(){return p.zO}, +Dna:function(){return p.AO}, +dpa:function(){}, +U:function(){return p.W}, +Je:function(){return p.mediaElement}, +gpa:function(q){p.ML(q)}}; +this.logger.debug(function(){return"creating, type "+b}); +this.Ah=new c_(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.RC("endcr")||g.T(p.playerState,32)||CW(p); +e(q,r,p.playerType)},function(q,r){g.WP(p.videoData)&&p.oa(q,r)}); +g.P(this,this.Ah);g.P(this,this.Qc);s4a(this,m);this.videoData.subscribe("dataupdated",this.Sca,this);this.videoData.subscribe("dataloaded",this.TO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Ky,this);this.yJ();LTa(this.If);this.visibility.subscribe("visibilitystatechange",this.If);this.zO=new g.Oo(this.BM,g.ZB(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.AO= +new g.Oo(this.BM,g.ZB(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; +bF=function(a){return a.L("html5_not_reset_media_source")&&!a.ej()&&!a.videoData.isLivePlayback&&g.DQ(a.videoData)&&!a.W.supportsGaplessShorts()}; +s4a=function(a,b){if(a.playerType===2||a.W.kq)b.cV=!0;var c=hKa(b.wc,b.MC,a.W.D,a.W.N);c&&(b.adFormat=c);a.playerType===2&&(b.Qk=!0);if(a.isFullscreen()||a.W.D)c=g.ys("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&p_(a,b.endSeconds)}; +u4a=function(a){if(a.videoData.Y){var b=a.zd.Vc();a.videoData.Rv=a.videoData.Rv||(b==null?void 0:b.WP());a.videoData.Sv=a.videoData.Sv||(b==null?void 0:b.ZP())}if(FLa(a.videoData)||!LQ(a.videoData))b=a.videoData.errorDetail,a.Lf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Tn||void 0);a.videoData.Tf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&t4a(a);a.L("html5_enable_d6de4")&&a.lI()}; +v4a=function(a){i3a(a.lB);g.ib(a.lB);for(var b=a.mB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())i3a(d.value);b.j.clear();g.ib(a.mB)}; +w4a=function(a){return a.mediaElement&&a.mediaElement.gw()?a.mediaElement.Ib():null}; +w_=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;a.U().K&&a.U().houseBrandUserStatus&&a.oa("hbut",{status:a.U().houseBrandUserStatus});if(a.videoData.qe())return!0;a.Lf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.BW=function(a,b){(b=b===void 0?!1:b)||g.WP(a.videoData)||jX(a.Xb());a.yu=b;!w_(a)||a.Dq.Cu()?g.mC(a.W)&&a.videoData.isLivePlayback&&a.Dq.Cu()&&!a.Dq.j&&!a.yu&&a.TO():(a.Dq.start(),b=a.Xb(),g.LI(b.provider),b.qoe&&x2a(b.qoe),a.TO())}; +x4a=function(a){var b=a.videoData;q4a(a).then(void 0,function(c){a.videoData!==b||b.Ka()||(c=hE(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Lf(c.errorCode,2,unescape(a.videoData.errorReason),eE(c.details),a.videoData.errorDetail,a.videoData.Tn||void 0):a.handleError(c))})}; +oUa=function(a,b){a.bd=b;a.xa&&D0a(a.xa,new g.yZ(b))}; +A4a=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Cq=g.Ub(a.videoData.Ga),g.rQ(a.videoData)){a.Lb.tick("bpd_s");x_(a).then(function(){a.Lb.tick("bpd_c");if(!a.Ka()){a.yu&&(a.Ec(oF(oF(a.playerState,512),1)),u_(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&p_(a,c.endSeconds);a.Dq.j=!0;y_(a,"dataloaded");a.Gs.Cu()&&y4a(a);f2a(a.Pk,a.Jf)}}); +a.L("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.Ij.toFixed(3)},!0);var b=RLa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);z4a(a)}else y_(a,"dataloaded")}; +x_=function(a){z_(a);a.Jf=null;var b=z3a(a.W,a.videoData,a.oi());a.YG=b;a.YG.then(function(c){B4a(a,c)},function(c){a.Ka()||(c=hE(c),a.visibility.isBackground()?(A_(a,"vp_none_avail"),a.YG=null,a.Dq.reset()):(a.Dq.j=!0,a.Lf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",eE(c.details))))}); +return b}; +JZ=function(a){a.logger.debug("Updating for format change");x_(a).then(function(){return u_(a)}); +a.playerState.isOrWillBePlaying()&&a.playVideo()}; +B4a=function(a,b){if(!a.Ka()&&!b.videoData.Ka()){a.logger.debug("finished building playback data");a.Jf=b;P3a(a.Qc,a.Jf);if(a.videoData.isLivePlayback){var c=xVa(a.zd.Nu,a.videoData.videoId)||a.xa&&!isNaN(a.xa.Aa);c=a.L("html5_onesie_live")&&c;n_(a)||a.videoData.Ob>0&&!VP(a.videoData)||c||a.seekTo(a.Vd(),{Zc:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&QLa(a.videoData)){a.handleError(new fE("fmt.missing",{missabrurl:"1"},2));return}a.xa? +g.Cw(Error("Duplicated Loader")):(c=g.ZB(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&uZ(a)&&xVa(a.zd.Nu,a.videoData.I4)?g.fr(function(){a.Ka()||a.xa||C4a(a)},c):C4a(a)}else!a.videoData.C.j&&IQ(a.videoData)&&a.FL(new yY(a.videoData.videoId||"",4)); +B_(a);X1a(b).then(function(){var d={};a.jp(d);a.W.zc()&&a.L("html5_log_media_perf_info")&&a.oa("av1Info",d);t_(a)})}}; +D4a=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.BW(a);w_(a)&&!g.T(a.playerState,128)&&(a.Gs.Cu()||(a.Gs.start(),a.videoData.jl?a.Ec(oF(a.playerState,4)):a.Ec(oF(oF(a.playerState,8),1))),y4a(a))}; +y4a=function(a){a.Ka();a.logger.debug("try finish readying playback");if(a.Gs.j)a.logger.debug("already finished readying");else if(a.Dq.j)if(g.T(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Cq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Cq}); +else if(a.Ah.started||u3a(a.Ah),a.uo())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.xa&&(a.xZ=sXa(a.xa.timing));a.Gs.j||(a.Gs.j=!0);var b=a.L("html5_onesie_live")&&a.xa&&!isNaN(a.xa.Aa);!a.videoData.isLivePlayback||a.videoData.Ob>0&&!VP(a.videoData)||b||n_(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{Zc:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.DT=!0));f3a(a.Xb());a.logger.debug("finished readying playback");a.publish("playbackready", +a);Rz("pl_c",a.Lb.timerName)||(a.Lb.tick("pl_c"),Tz("pl_c",void 0,"video_to_ad"));Rz("pbr",a.Lb.timerName)||(a.Lb.tick("pbr"),Tz("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")}; +CW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Ec(b?new g.lF(14):new g.lF)}; +p_=function(a,b){a.Er&&E4a(a);a.Er=new g.PC(b*1E3,0x7ffffffffffff);a.Er.namespace="endcr";a.addCueRange(a.Er)}; +E4a=function(a){a.removeCueRange(a.Er);a.Er=null}; +F4a=function(a,b,c,d,e){var f=a.Xb(e);e=g.WP(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.zT(a);f.UG(new Q1a(e,c,b,h?h.itag:"",d));c=a.Pk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")}; +g.zT=function(a){var b=C_(a);return eL(b)||!a.Jf?null:g.Mb(a.Jf.j.videoInfos,function(c){return b.D(c)})}; +C_=function(a){if(a.Jf){var b=a.Pk;var c=a.Jf;a=a.lx();if(b.ea.cj().isInline())var d=HP;else b.L("html5_exponential_memory_for_sticky")?d=qO(b.W.uf,"sticky-lifetime")<.5?"auto":fL[NK()]:d=fL[NK()],d=g.dL("auto",d,!1,"s");if(eL(d)){d=S1a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.w(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;mna()&&!g.mC(b.W)&&xE(c.j.videoInfos[0])&& +(f=Math.min(f,g.rE.large));h=g.ZB(b.W.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));if(l=g.ZB(b.W.experiments,"html5_max_vertical_resolution")){h=4320;for(m=0;ml&&(h=Math.min(h,n.video.j))}if(h<4320){for(m=l=0;m32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.ZB(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=d2a(b,c,f);d=e.call(d,g.ZB(b.W.experiments,"html5_byterate_soft_cap_mweb")>0&&b.W.B&&!g.AO(b.W)?new aL(0,f===4320?0:f,!1,"d",g.ZB(b.W.experiments,"html5_byterate_soft_cap_mweb")):new aL(0,f===4320?0:f,!1,"d")).compose(c2a(b,c.videoData)).compose(e2a(b,c.videoData,c)).compose(b2a(b, +c)).compose(V1a(b,c));if(eL(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(W1a(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(b2a(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(W1a(b,c)));d=d.compose(V1a(b,c));b=c.videoData.bC.compose(d).compose(c.videoData.u_).compose(a)}else b=HP;return b}; +y_a=function(a){var b=a.Pk;a=a.videoData;var c=c2a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(e2a(b,a));return c}; +g.G4a=function(a,b,c,d){a.videoData.bC=b;if(a.Jf&&c){c=a.Pk;var e=a.Jf;if(e.j.j){var f=NK(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=U1a(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=$Ia(c.W.G,e.j.videoInfos,l),b.j!==0&&l=480;if(c.L("html5_exponential_memory_for_sticky")){m= +c.W.uf;n=1;var p=p===void 0?!1:p;rJa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Rr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Rr["sticky-lifetime"]=0);p&&qO(m,"sticky-lifetime")>.0625&&(n=m.Rr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Rr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n= +PK();b=g.w(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.xs("yt-player-performance-cap",n,m?2592E3:604800)}else g.zs("yt-player-performance-cap");XBa(c);if(c){c=g.w(zN.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||zN.delete(m);c=g.w(KZ.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||KZ.delete(m);c=g.w(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else zN.clear(),KZ.clear(), +p.clear()}}}}a.xa&&(p=a.xa,d=d||"",cU(p.policy)?mY(p.B.j,d):mY(p.j.G,d));B_(a)}; +t4a=function(a){a.videoData.ow="";a.videoData.videoId?a.zd.PP(a.videoData.videoId).then(function(b){a.videoData.ow=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.oa("pomvid",{})}; +B_=function(a){if(!a.Ka()&&!g.T(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)t_(a);else{var b=C_(a),c=a.videoData;a:{var d=a.videoData.Dd;if(b.j){for(var e=g.w(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.rE[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ob=d;F4a(a,b.reason,H4a(a,a.videoData.ob))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Qc.N=!1,a.playVideo()}}; +t_=function(a){if(a.videoData.C&&a.videoData.C.j){var b=C_(a);a.xa&&k0a(a.xa,b)}}; +I4a=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.jt&&((b=a.videoData.B)==null?0:DE(b)))}; +J4a=function(a){if(!I4a(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)}; +L4a=function(a){var b=K4a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Yb.getName()===b})}; +K4a=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b +0&&(b.Pf=d.Pv));b.Tf=d.Zj;b.xj=BN(c,{},d.C||void 0,fQ(d));b.fb=eQ(d)&&g.Cy(c);TP(d)&&(c.L("html5_sabr_report_partial_segment_estimated_duration")&&(b.Xv=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.pw=!0),b.B=!0,b.yp=c.L("html5_sabr_enable_utc_seek_requests"),b.Bn=c.L("html5_disable_client_resume_policy_for_sabr"),b.zw=c.L("html5_trigger_loader_when_idle_network"),b.mz=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.Pv=c.L("html5_enable_platform_backpressure_with_sabr"), +b.Hg=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.jw=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Ap=c.L("html5_sabr_exclude_quality_ordinal_check"),b.Ep=c.L("html5_log_high_res_buffer_timeline"),b.Ew=c.L("html5_gapless_sabr_btl_last_slice")&&dQ(d),VP(d)&&(b.Cn=c.L("html5_disable_variability_tracker_for_live"),b.Ya=c.L("html5_sabr_use_accurate_slice_info_params")),b.Tv=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"), +b.ra=c.L("html5_enable_sabr_request_pipelining")&&!g.WP(d),b.Mq=c.L("html5_ignore_partial_segment_from_live_readahead"),b.Lw=c.L("html5_use_non_active_broadcast_for_post_live"),b.yb=c.L("html5_use_centralized_player_time"),b.Fi=c.L("html5_consume_onesie_sabr_seek"),b.Y=c.L("html5_enable_sabr_seek_loader_refactor"),b.il=c.L("html5_reset_onesie_request_on_start_time_mismatch"),b.Dw=c.L("html5_update_segment_start_time_from_media_header"),b.wc=c.L("html5_probe_request_on_sabr_request_progress"),b.G&& +(b.uw=c.L("html5_reset_server_stitch_state_for_non_sabr_seek"),b.Wv=c.L("html5_remove_ssdai_append_pause"),b.Ab=c.L("html5_consume_ssdai_info_with_streaming")));b.K=b.B&&c.L("html5_sabr_live");sL(c.G,tL.BITRATE)&&(b.tb=NaN);if(l=g.ZB(c.experiments,"html5_request_size_max_kb"))b.Wa=l*1024;c.G.D?b.Ob="; "+tL.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Ob="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Cj=!0,eU(b, +l.playbackStartPolicy,2));l=M4a(a);a.QB.removeAll();a:{c=a.zd.Nu;if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);c=e;break a}c=void 0}a.xa=new g.tZ(a,a.W.schedule,b,a.videoData.j,a.videoData.C,C_(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Ya);b=a.yu&&g.mC(a.W)&&a.videoData.isLivePlayback;a.xa.initialize(a.getCurrentTime(),C_(a),b);a.videoData.probeUrl&&(a.xa.Va=a.videoData.probeUrl);if(a.Cq.length||a.yu)a.videoData.cotn||D_(a,!1);R3a(a.Qc,a.xa);a.bd&&D0a(a.xa,new g.yZ(a.bd));a.ub&& +(a.xa.MH(a.ub),a.Qc.N=!1);g.KQ(a.videoData)&&(a=a.xa,a.policy.Gj=a.policy.iG)}; +z_=function(a){a.xa&&(a.xa.dispose(),a.xa=null,R3a(a.Qc,null));bF(a)?N4a(a):EW(a)}; +N4a=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.fA(),a.Qa.K)try{a.W.zc()&&a.oa("rms",{l:"vprms",sr:bF(a),rs:dF(a.Qa)});a.Qa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.Ks("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=hE(b),a.handleError(b),EW(a)}else EW(a)}; +EW=function(a){a.Qa&&(a.logger.debug("remove media source"),Lwa(a.Qa),a.fA(),a.Qa.dispose(),a.Qa=null)}; +O4a=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.Gr()&&a.videoData.cR()&&Nwa(a.mediaElement);var b=a.mediaElement.Mr(a.nA(),a.XP())}catch(d){if(J1a(a.Cl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Lf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}yTa(a,b)}var c;return((c=a.Mr())==null?void 0:c.C)||null}; +yTa=function(a,b,c,d){function e(f){try{P4a(a,f,c,d)}catch(h){g.Cw(h),a.handleError(new fE("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}} +c=c===void 0?!1:c;d=d===void 0?!1:d;Q4a(a);a.Qa=b;bF(a)&&dF(a.Qa)==="open"?e(a.Qa):Gwa(a.Qa,e)}; +Q4a=function(a){if(a.xa){var b=a.getCurrentTime()-a.Dc();a.xa.seek(b,{}).Xk(function(){})}else C4a(a)}; +P4a=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&VP(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e}); +f>a.Qa.getDuration()&&a.Qa.fp(f)}else a.Qa.fp(e);h0a(a.xa,a.Qa,c,d);a.publish("mediasourceattached")}}; +m0a=function(a,b){F4a(a,b.reason,b.j.info,b.token,b.videoId)}; +IZ=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.J(function(h){if(h.j==1){a.xa&&a.xa.vx();a.xa&&a.xa.Ka()&&z_(a);if(a.L("html5_enable_vp9_fairplay")&&a.ej()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Ec(oF(a.playerState,2048));a.publish("newelementrequired");return b?g.G(h,x_(a),2):h.Ia(2)}a.videoData.Vb()&&((e=a.xa)==null?0:e.Aa)&&!n_(a)&&((f=a.isAtLiveHead())&&SP(a.videoData)?a.seekTo(Infinity,{Zc:"videoPlayer_getNewElement"}): +a.videoData.Wd&&a.xa&&(l=a.xa,l.manifest.Vb&&(l.manifest.Wd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{Zc:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):vN(l.manifest)&&YY(l))));c&&a.seekTo(0,{seekSource:105});g.T(a.playerState,8)&&a.playVideo();g.ua(h)})}; +E_=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Y=!1;b&&IZ(a);a.xa&&e0a(a.xa)}; +GTa=function(a,b){a.oa("newelem",{r:b});IZ(a)}; +R4a=function(a,b){a.Lb.D.YR();g.T(a.playerState,32)||(a.Ec(oF(a.playerState,32,b==null?void 0:b.seekSource)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Tc()}; +xUa=function(a,b){b=b==null?void 0:b.seekSource;g.T(a.playerState,32)?(a.Ec(qF(a.playerState,16,32,b)),a.publish("endseeking",a)):g.T(a.playerState,2)||a.Ec(oF(a.playerState,16,b));a.Lb.D.dS(a.videoData,a.playerState.isPaused())}; +S4a=function(a,b){a.W.experiments.kb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.yL(),b&&a.Lf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +GNa=function(a){var b=0,c="";if(a.bd){if(a.bd.Rn)return"D,";b=a.bd.VP();c=a.bd.Gl().substring(0,4)}else a.ub&&(b=a.ub.VP(),c=a.ub.Gl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""}; +y_=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)}; +T4a=function(a){for(var b=g.w("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.QC.T(a.mediaElement,c.value,a.ML,a);a.W.ym&&a.mediaElement.gw()&&(a.QC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.uaa,a),a.QC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.vaa,a))}; +vTa=function(a){g.ir(a.bM);U4a(a)||(a.bM=g.gr(function(){return U4a(a)},100))}; +U4a=function(a){var b=a.mediaElement;b&&a.tL&&!a.videoData.Aa&&!Rz("vfp",a.Lb.timerName)&&b.ql()>=2&&!b.isEnded()&&QE(b.Dh())>0&&a.Lb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Aa&&b.getDuration()>0&&(b.isPaused()&&b.ql()>=2&&QE(b.Dh())>0&&(Rz("pbp",a.Lb.timerName)||a.Lb.tick("pbp"),!a.videoData.jl||a.s1||b.isSeeking()||(a.s1=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),d_(a.wE,b))?(wTa(a),!0):!1}; +wTa=function(a){g.ir(a.bM);a.Tx.stop();a.videoData.Aa=!0;a.W.yp=!0;a.W.Kb=0;var b=a.Cl;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.rb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();V4a(a);g.T(a.playerState,8)&&a.Ec(pF(a.playerState,65));a.yu=!1;bVa(a.Xb());g.Po(a.zO);a.publish("playbackstarted");(a=g.La("yt.scheduler.instance.clearPriorityThreshold"))?a():Ts(0,0)}; +V4a=function(a){var b=a.zd.Md(),c={},d={};!Rz("pbs",a.Lb.timerName)&&Dz.measure&&Dz.getEntriesByName&&(Dz.getEntriesByName("mark_nr")[0]?Ota("mark_nr"):Ota());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);a.mediaElement&&a.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=b.B?Number(b.B.itag):-1;b.Cd&&(d.preloadType=String(a.xZ?2:1));c.liveStreamMode=W4a[pQ(b)];c.playerInfo=d;a.Lb.infoGel(c);if(a.xa){b=a.xa.timing; +window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var e in b)b.hasOwnProperty(e)&&a.Lb.tick(e,b[e])}}; +X4a=function(a,b,c,d){b=Math.floor(b/c*4);b>a.qP&&(a.oa("vpq",{q:b,cpn:d||a.videoData.clientPlaybackNonce}),a.qP=b)}; +Y4a=function(a){a.Xb().Bg();if(SP(a.videoData)&&Date.now()>a.l_+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&pN(a.videoData.j))){var b=a.Xb();if(b.qoe){b=b.qoe;var c=b.provider.ea.AF(),d=g.LI(b.provider);t2a(b,d,c);c=c.C;isNaN(c)||g.NZ(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.kC(b.U())?!0:g.UN(b.U())==="TVHTML5"?b.il==="6":!1):b=g.kC(a.W);b&&a.oa("rawlat",{l:xT(a.qU,"rawlivelatency").toFixed(3)});a.l_=Date.now()}a.videoData.B&&DE(a.videoData.B)&&(b=w4a(a))&& +b.videoHeight!==a.oR&&(a.oR=b.videoHeight,F4a(a,"a",H4a(a,a.videoData.ob)))}; +H4a=function(a,b){if(b.j.video.quality==="auto"&&DE(b.getInfo())&&a.videoData.Dd)for(var c=g.w(a.videoData.Dd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.oR&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()}; +r4a=function(a){if(!SP(a.videoData))return NaN;var b=0;a.xa&&a.videoData.j&&(b=VP(a.videoData)?a.xa.sJ.eh()||0:a.videoData.j.Ma);return(0,g.rt)()/1E3-a.lf()-b}; +$4a=function(a){a.mediaElement&&a.mediaElement.oi()&&(a.VK=(0,g.rt)());a.W.Iq?g.fr(function(){Z4a(a)},0):Z4a(a)}; +Z4a=function(a){var b;if((b=a.Qa)==null||!b.Tm()){if(a.mediaElement)try{a.aM=a.mediaElement.playVideo()}catch(d){A_(a,"err."+d)}if(a.aM){var c=a.aM;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); +if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.aM===c)if(d&&d.name==="AbortError"&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message}); +else{var e="promise";d&&d.name&&(e+=";m."+d.name);A_(a,e);a.oX=!0;a.videoData.Hg=!0}})}}}; +A_=function(a,b){g.T(a.playerState,128)||(a.Ec(qF(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))}; +u_=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=O4a(a);var d;(d=a.xa)==null||d.resume()}else z_(a),a.videoData.ob&&(c=a.videoData.ob.CD());b=c;d=a.mediaElement.OI();c=!1;d&&b!==null&&b.resource===d.resource||(a5a(a,b),c=!0);g.T(a.playerState,2)||(b=a.Qc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={Zc:"seektimeline_resumeTime"},b.videoData.Aa||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(TP(a.videoData)){if(!a.videoData.ej())break a}else if(!g.nQ(a.videoData))break a; +if(a.mediaElement)if((d=a.videoData.G)&&a.mediaElement.gw()){var e=a.mediaElement.Ib();if(a.ze)if(e!==a.ze.element)F_(a);else if(b&&d.flavor==="fairplay"&&!Hr())F_(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&Hr()&&d.flavor==="widevine")a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.ze=new w1a(e,a.videoData,a.W);a.ze.subscribe("licenseerror",a.EL,a);a.ze.subscribe("qualitychange",a.kba,a);a.ze.subscribe("heartbeatparams", +a.HG,a);a.ze.subscribe("keystatuseschange",a.xq,a);a.ze.subscribe("ctmp",a.oa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.ze.wy(new xY(b5a,"cenc",!1));b=g.w(a.QB.keys);for(d=b.next();!d.done;d=b.next())d=a.QB.get(d.value),a.ze.wy(d);a.L("html5_eme_loader_sync")||a.QB.removeAll()}}else a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c}; +a5a=function(a,b){a.Lb.tick("vta");Tz("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&V3a(a.Qc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&Ts(0,4);!a.videoData.Aa&&a.playerState.isOrWillBePlaying()&&a.Tx.start();if(I4a(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}}; +F_=function(a){a.ze&&(a.ze.dispose(),a.ze=null)}; +zW=function(a,b){b=b===void 0?!1:b;SP(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.jq()||g.uQ(a.videoData))?a=a.getCurrentTime():g.WP(a.videoData)&&a.ub?(b=a.ub,a=a.getCurrentTime(),a=(a=RUa(b,a*1E3))?(a.Zh()-a.Ye())/1E3:0):a=a.Vd(b);return a}; +c5a=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(F_(a),EW(a),O4a(a)):(a.videoData.ob&&a.videoData.ob.GT(),a.mediaElement.stopVideo()),a.playVideo())}; +d5a=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.oa("bufreason",{r:b,lact:tv()})}; +WW=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.Xb();if(n.qoe){var t=n.qoe,u=b.cpn,y=c.cpn,A=p.videoData.wc,D=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,H=y!==D&&r!==F;D=u!==D&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=D?u:"",t.Y=D?q:"",t.adFormat=D?A:void 0,iX(t,2,h?4:f?2:0,y,r,e),t.reportStats(),t.adCpn=H?y:"",t.Y=H?r:"",t.adFormat=H?A:void 0,iX(t, +2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),ZZ(f,!0).send(),YZ(f),d!==n.provider.videoData.clientPlaybackNonce){Z2a(f);var N;(N=n.j)==null||U2a(N);n.C.delete(d)}}else n.Mg=n.provider.videoData.clientPlaybackNonce,n.Mg&&n.j&&(n.C.set(n.Mg,n.j),ZZ(n.j).send(),YZ(n.j));N=c.cpn;p=p.videoData;e-=a.fu();if(n.C.has(N)){e=n.C.get(N);var M=e.B&&isNaN(e.G)?XZ(e):NaN;e=Y2a(e,!1);isNaN(M)||(e.G=M);e.send()}else e=l3a(n,n.provider,p,e),n.C.set(N,e),$2a(e,new g.hy(oF(new g.lF,8), +new g.lF)),T2a(e),(M=n.j)==null||YZ(M);n.Mg=N;a.L("html5_unify_csi_server_stitched_transition_logging")?$Na(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.K&&(n.cttAuthInfo={token:a.K,videoId:a.videoId}),l&&(n.startTime=l),Qz(b,n),g.Pz({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),Oz("pbs",m!=null?m:(0,g.rt)(),b))}}}; +E1a=function(a,b){a.videoData.WU=!0;a.Gd(new fE("qoe.restart",b));IZ(a,!0)}; +e5a=function(a,b){if(a.W.zc()&&a.mediaElement){var c=a.mediaElement.uc();c.omt=(a.mediaElement.getCurrentTime()+a.Dc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.LI(a.Xb().provider)*1E3).toFixed();c.e=b;a.dM[a.t1++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})}; +f5a=function(a){if(a.W.zc()){a.dM.sort(function(d,e){return+d.rt-+e.rt}); +for(var b=g.w(a.dM),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.dM=[];a.t1=0}}; +g5a=function(a){if(g.Er("cobalt")&&g.Er("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}}; +uTa=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})}; +D_=function(a,b){var c;(c=a.xa)==null||wZ(c,b)}; +uZ=function(a){return g.Ob(a.Cq,"ad")}; +F1a=function(a){return g.WP(a.videoData)&&a.ub?PUa(a.ub):!1}; +z4a=function(a){QP(a.videoData,"html5_set_debugging_opt_in")&&(a=g.Es(),g.Fs(0,183)||(Hs(183,!0),a.save()))}; +h5a=function(a){return g.WP(a.videoData)&&a.ub?gX(a.ub):a.videoData.Vd()}; +L0a=function(a,b){a.zd.Go()||(a.oa("sgap",{f:b}),a.zd.clearQueue(!1,b==="pe"))}; +n_=function(a){return TP(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")}; +g.G_=function(a,b,c,d){g.O.call(this);var e=this;this.logger=new g.yN("App");this.yB=this.Bj=!1;this.kt={};this.kM={};this.oC=[];this.OZ=!1;this.WQ=null;this.TZ=!1;this.Lx=!0;this.ZT=!1;this.p_=this.qR=null;this.C_=!0;this.mediaElement=this.Hb=null;this.OR=NaN;this.XG=!1;this.ye=this.SC=this.ub=this.ue=this.screenLayer=this.wb=this.playlist=null;this.hd={Bf:function(){return e.ub}, +MH:function(h){e.ub=h}, +rO:function(h,l){e.ub&&e.ub.rO(h,l)}}; +this.logger.debug("constructor begin");this.config=Ona(b||{});this.webPlayerContextConfig=c;aoa();b=this.config.args||{};this.W=new IO(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.P(this,this.W);eUa(this.W);gUa(this.W);this.W.experiments.kb("jspb_serialize_with_worker")&&Iqa();this.W.experiments.kb("gzip_gel_with_worker")&&Apa();this.W.B&&!i5a&&(window.addEventListener(rO?"touchstart":"click",mTa,{capture:!0,passive:!0}),i5a=!0);this.L("html5_onesie")&&(this.Ay=new qW(this.W), +g.P(this,this.Ay));this.O2=Tr(wO(this.W)&&!0,b.enablesizebutton);this.jR=Tr(!1,b.player_wide);this.visibility=new NTa;g.P(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.AC(Tr(!1,b.player_wide));this.Bj=Tr(!1,b.external_list);this.events=new g.oE(this);g.P(this,this.events);this.L("start_client_gcf")&&(wv(Av(),{hH:au,OU:Xoa()}),this.U7=Av().resolve(au),$oa(this.U7));this.xda=new WQ;g.P(this,this.xda);this.Wr=new HVa;d=new XQ;this.Ua=new g.kR(this,d);g.P(this,this.Ua);this.template= +new BVa(this);g.P(this,this.template);this.appState=1;this.Si=j5a(this);g.P(this,d);d={};this.wO=(d.internalvideodatachange=this.WR,d.playbackready=this.zaa,d.playbackstarted=this.Aaa,d.statechange=this.Baa,d);this.N8=new LT(this.Ua);this.Qd=k5a(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&l5a||b)this.W.dk=ROa(this.Qd,b),pU(this.W.dk.kf(function(h){e.W.wd=h;var l;(l=g.cR(e))==null||l.oa("wasm",{a:h.Eo})}),function(h){g.Cw(h); +h="message"in h&&h.message||h.toString()||"";var l;(l=g.cR(e))==null||l.oa("wasm",{e:h})}); +else if(d&&!l5a){var f;(f=g.cR(this))==null||f.oa("wasm",{e:"wasm unavailable"})}this.Lb=new NT(this.W,this.Qd);this.Ua.publish("csiinitialized");this.sb=m5a(this);this.sb.setPlaybackRate(this.W.D?1:n5a(this,Number(g.ys("yt-player-playback-rate"))||1));g.bx(this.sb,this.wO,this);u4a(this.sb);f={};this.C1=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.YR,f.contentPoTokenReady=this.FG,f.endseeking=this.dS,f.internalAbandon= +this.IG,f.internalaudioformatchange=this.zG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.UG,f.liveviewshift=this.lba,f.playbackstalledatstart=this.Eca,f.progresssync=this.Sba,f.onAbnormalityDetected=this.yL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.IB,f.SEEK_TO=this.sca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.Hba,f.playbackready=this.Iba, +f.statechange=this.Y0,f.connectionissue=this.EG,f.newelementrequired=this.E0,f.heartbeatparams=this.HG,f.videoelementevent=this.ML,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.zca,f.nonfatalerror=this.Aba,f);this.Mu=new g.oE(this);g.P(this,this.Mu);f=10;g.mC(this.W)&&(f=3);PO(this.W)&&(f=g.ZB(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Nu=new tX;g.P(this,this.Nu);this.Fy=new rX(f,function(h){h!==g.cR(e,h.getPlayerType())&&h.dispose()}); +g.P(this,this.Fy);this.IP=this.TJ=-1;this.xM=new g.Oo(this.template.resize,16,this.template);g.P(this,this.xM);this.bd=new gVa(this.Ua,this.W,this.sb);this.Eq=new NW(this.W);this.Zk=new ETa(this);g.P(this,this.Zk);this.oN=new vW(this);g.P(this,this.oN);vVa(this.W.j.c);this.events.T(this.Ua,g.RC("appapi"),this.waa);this.events.T(this.Ua,g.SC("appapi"),this.xaa);this.events.T(this.Ua,g.RC("appprogressboundary"),this.Rba);this.events.T(this.Ua,g.SC("applooprange"),this.AM);this.events.T(this.Ua,"presentingplayerstatechange", +this.Mk);this.events.T(this.Ua,"resize",this.eca);this.template.Ja($d(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.Cba);this.Qd.J.U().Fj&&wU(this.Qd,"offline");this.W.Ya&&g.UT("ux",g.oW);this.jX=new g.Oo(this.Bda,g.ZB(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.P(this,this.jX);this.Md().qe()&&(g.As()&&this.Md().Ga.push("remote"),o5a(this));this.Lb.tick("fs");p5a(this);this.W.Ya&&wU(this.Qd,"ux",!0);g.uO(this.Qd.J.U())&&wU(this.Qd,"embed");this.L("web_player_sentinel_is_uniplayer")|| +g.Cw(new g.Ks("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.kr("web_player_sentinel_yt_experiments_sync");a!==f&&g.Cw(new g.Ks("b/195699950",{yt:a,player:f}));c||g.Cw(new g.Ks("b/179532961"));this.H3=q5a(this);if(c=g.ZB(this.W.experiments,"html5_block_pip_safari_delay"))this.OP=new g.Oo(this.yX,c,this),g.P(this,this.OP);xr=this.W.yc;c=g.ZB(this.W.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.m1= +new g.Ke(c),g.P(this,this.m1),this.events.T(this.m1,"tick",function(){e.n1&&r5a.lA("apit",e.n1);e.n1=r5a.FC()})); +this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")}; +q5a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.wb||a.sb).Xb().Gd("player.exception",eE(c)))} +Dw.subscribe("handleError",b);Jq.push(b);return function(){Dw.unsubscribe("handleError",b);var c=Jq.indexOf(b);c!==-1&&Jq.splice(c,1)}}; +m5a=function(a){var b=new g.IP(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.cA(1,b)}; +s5a=function(a,b){if(a.sb!==b){b.getVideoData().autonavState=a.sb.getVideoData().autonavState;cx(a.sb,a.wO,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);g.bx(b,a.wO,a);o5a(a)}}; +k5a=function(a){var b="",c=zVa(a);c.indexOf("//")===0&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.Cw(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new zOa(a.Ua,b);t5a(a,b);return b}; +t5a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c); +b.C=c}; +j5a=function(a){if(a.W.storeUserVolume){a=g.ys("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Cd(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a}; +H_=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.tT(g.ie("AUDIO")):uW.pop()||new g.tT(g.ie("VIDEO"));g.P(a,a.mediaElement);a.wb&&a.wb.setMediaElement(a.mediaElement);try{a.W.Wc?(a.SC&&a.events.Nc(a.SC),a.SC=a.events.T(a.mediaElement,"volumechange",a.uba)):(a.mediaElement.tC(a.Si.muted),a.mediaElement.setVolume(a.Si.volume/100))}catch(e){a.Sg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g, +"_")));return}g.ts(a.Mu);u5a(a);var b=a.template,c=a.mediaElement.Ib();b.Bc=c;b.FK=!1;b.Bc.parentNode||oe(b.Zz,b.Bc,0);b.iM=new g.Ul(0,0,0,0);GVa(b);vX(b);c=b.Bc;g.Wo(c,"video-stream");g.Wo(c,g.uX.MAIN_VIDEO);var d=b.app.U();d.Wk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in iE()&&(c.playsInline=!0):d.xm&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Bq&&b.Bc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Sg("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}}; +DW=function(a,b,c){if(a.wb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId}); +var d=null;if(a.wb){d=a.wb.getPlayerState();a.logger.debug("set presenting player, destroy modules");xU(a.Qd,3);I_(a,"cuerangesremoved",a.wb.Fl());a.Zk&&!b.isGapless()&&a.wb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=bF(b)&&bF(a.wb);a.Lb.Fv("iv_s");v5a(a,e)}b.getPlayerType()===1&&s5a(a,b);w5a(a,b);a.wb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.bx(b,a.C1,a);if(b.TK())x5a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.rF(d,b.getPlayerState())&& +a.Y0(new g.hy(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.Dq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Ai("onPlaybackQualityChange",c.quality);I_(a,"cuerangesadded",a.wb.Fl());c=b.getPlayerState();g.T(c,2)?y5a(a):g.T(c,8)?b.playVideo():b.VF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().SW=(f=g.cR(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!== +2||a.Ef()||(f=b.getVideoData(),a.sb.Jy(f.clientPlaybackNonce,f.wc||"",f.breakType||0,f.Ij,f.videoId||""));a.logger.debug("finish set presenting player")}}}; +y5a=function(a){if(!z5a(a)){var b=a.sb.Je();b&&(b=b.ZE(),b instanceof Promise&&b.catch(function(){})); +J_(a,tF(a.getPlayerStateObject()))}}; +u5a=function(a){var b=a.mediaElement;mE()?a.Mu.T(b,"webkitpresentationmodechanged",a.pca):window.document.pictureInPictureEnabled&&(a.Mu.T(b,"enterpictureinpicture",function(){a.Ry(!0)}),a.Mu.T(b,"leavepictureinpicture",function(){a.Ry(!1)})); +Mr&&(a.Mu.T(b,"webkitbeginfullscreen",function(){a.qn(3)}),a.Mu.T(b,"webkitendfullscreen",function(){a.qn(0)}))}; +w5a=function(a,b){var c=b.getPlayerType();if(b!==a.sb&&b!==a.kt[c]){var d;(d=a.kt[c])==null||d.dispose();a.kt[c]=b}}; +v5a=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ye){c=a.ye;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Sj(),H_(a));a.wb&&(a.wb.Sj(!b),cx(a.wb,a.C1,a),a.wb.getPlayerType()!==1&&a.wb.dispose());a.wb=null;a.logger.debug("finish clear presenting player")}; +g.cR=function(a,b){return b?b===1?a.sb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.kt[2]||a.wb:a.wb:g.WP(a.getVideoData())&&b===2?a.kt[2]||a.wb:a.kt[b]||null:a.wb}; +A5a=function(a,b,c,d){a=a.cA(b,c,d);u4a(a);return a}; +K_=function(a,b){return a.Ef(b)?a.sb:b}; +L_=function(a,b){var c=a.wb;return c&&b===a.sb&&a.Ef(b)&&a.Ef(c)?c:b}; +D5a=function(a){a.logger.debug("start application playback");if(a.sb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=M_(a);a.Md().isLoaded();b&&a.Pq(6);B5a(a);JOa(a.Qd)||C5a(a)}}; +C5a=function(a){if(!M_(a)){var b=yU(a.Qd);b&&!b.created&&AOa(a.Qd)&&(a.logger.debug("reload ad module"),b.create())}}; +B5a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Qd;JOa(c)||c.jP();!l5a&&c.J.L("html5_allow_asmjs")&&QOa(c);wU(c,"embed");wU(c,"inline_preview");wU(c,"kids");wU(c,"remote");wU(c,"miniplayer");wU(c,"offline");wU(c,"unplugged");wU(c,"ypc",!1,!0);wU(c,"ypc_clickwrap",!1,!0);wU(c,"yto",!1,!0);wU(c,"webgl",!1,!0);KOa(c)||(wU(c,"captions",!0),wU(c,"endscreen"),c.xJ(),wU(c,"creatorendscreen",!0));c.PX();a.Ua.publish("videoready",b)}; +N_=function(a){a=a.Md();a.qe();return FQ(a)}; +p5a=function(a){a.logger.debug("start prepare initial playback");a.sP();var b=a.config.args;H_(a);var c=a.Md();a.Ua.Ai("onVolumeChange",a.Si);if(b&&QT(b)){var d=MO(a.W);d&&!a.Bj&&(b.fetch=0);var e=g.uO(a.W);e&&!a.Bj&&(b.fetch=0);O_(a,b);g.uO(a.W)&&a.Lb.tick("ep_pr_s");if(!d||a.Bj)if(e&&!a.Bj)E5a(a);else if(!c.qe())a.playlist.onReady(function(){P_(a)})}DW(a,a.sb); +g.T(a.sb.getPlayerState(),128)||(b=zwa(!a.W.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Sg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Sg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.qe()&&N_(a)&&(a.W.Fi||a.W.Vi)?Q_(a):c.MD?a.Ua.mutedAutoplay():g.ys("yt-player-playback-on-reload")?(g.$s("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Aa}),g.xs("yt-player-playback-on-reload",!1),Q_(a)):UO(a.W)||F5a(a),g.OO(a.W)||g.UN(a.W)=== +"MWEB"?(g.Ps(g.Rs(),function(){R_(a)}),g.Ps(g.Rs(),function(){iua()})):(R_(a),iua()),a.logger.debug("finish prepare initial playback"))}; +R_=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Po(a.jX);else{var b=a.getVideoData().botguardData;b&&g.MK(b,a.W,a.getVideoData().zr||"")}}; +F5a=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Pq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.QO(a.W)?g.Ps(g.Rs(),function(){wU(a.Qd,"remote")}):wU(a.Qd,"remote"); +wU(a.Qd,"miniplayer");a.logger.debug("initialized to CUED mode")}; +Q_=function(a){a.logger.debug("start initialize application playback");if(g.T(a.sb.getPlayerState(),128))return!1;var b=a.sb.getVideoData();N_(a)&&a.W.Vi&&(uW.length&&a.yB?(S_(a,{muted:!1,volume:a.Si.volume},!1),T_(a,!1)):uW.length||a.Si.muted||(S_(a,{muted:!0,volume:a.Si.volume},!1),T_(a,!0)));N_(a)&&g.uO(a.W)&&b.mutedAutoplay&&(S_(a,{muted:!0,volume:a.Si.volume},!1),T_(a,!0));b.zZ&&S_(a,{muted:!0,volume:a.Si.volume},!1);G5a(a,1,b,!1);a.Ua.publish("initializingmode");DW(a,a.sb);a.Pq(3);var c;if(!(c= +!a.W.Fn)){if(c=a.ye){c=a.ye;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.OZ}c&&(a.Sj(),H_(a),a.sb.setMediaElement(a.mediaElement));D4a(a.sb);if(g.T(a.sb.getPlayerState(),128))return!1;b.jl||J_(a,3);return a.OZ=!0}; +M_=function(a){a=nR(a.Qd);return!!a&&a.loaded}; +H5a=function(a,b){if(!a.Hb)return!1;var c=a.Hb.startTimeMs*.001-1,d=a.Hb.endTimeMs*.001;a.Hb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d}; +K5a=function(a){var b,c=(b=g.cR(a))==null?void 0:b.xa;a.wb&&dQ(a.getVideoData())&&c&&c.policy.Xa&&(b=g.ZB(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=I5a(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.oN,J5a(a.app,"gaplessshortslooprange"),b=new g.PC(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Vc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; +L5a=function(a){if(!(g.T(a.sb.getPlayerState(),64)&&a.Md().isLivePlayback&&a.Hb.startTimeMs<5E3)){if(a.Hb.type==="repeatChapter"){var b,c=(b=kMa(a.Bb()))==null?void 0:b.Ji(),d;b=(d=a.getVideoData())==null?void 0:d.Yk;c instanceof g.MU&&b&&(d=b[dV(b,a.Hb.startTimeMs)],c.rH(0,d.title));isNaN(Number(a.Hb.loopCount))?a.Hb.loopCount=0:a.Hb.loopCount++;a.Hb.loopCount===1&&a.Ua.ib("innertubeCommand",a.getVideoData().L4)}c={Zc:"application_loopRangeStart"};if(a.Hb.type==="clips"||a.Hb.type==="shortsLoop")c.seekSource= +58;a.sb.seekTo(a.Hb.startTimeMs*.001,c)}}; +n5a=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b}; +I5a=function(a,b){b=g.cR(a,b);if(!b)return 0;b=K_(a,b);return U_(a,zW(b),b)}; +U_=function(a,b,c){if(a.Ef(c)){c=c.getVideoData();if(V_(a))c=b;else{a=a.bd;for(var d=g.w(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.rd===e.rd){b+=e.pc/1E3;break}d=b;a=g.w(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.rd===e.rd)break;var f=e.pc/1E3;if(f1&&(e=!1);if(!a.XG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){}); +a.XG=!0}}else a.XG&&(a.XG=!1,c.unlock())}; +I_=function(a,b,c){a.Ua.publish(b,c);var d=g.mC(a.W)||g.BO(a.W)||g.Cy(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(e,c.map(function(f){return{getId:function(){return this.id}, +end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}}; +a0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.cR(a,e);h&&(h.getPlayerType()===2&&!a.Ef(h)||g.uQ(h.getVideoData()))||(a.getPresentingPlayerType()===3?nR(a.Qd).GG("control_seek",b,c):(h===a.sb&&a.Hb&&!H5a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))}; +x5a=function(a,b,c){c&&(a.Sj(),H_(a));c=g.cR(a);c.Gd(new fE("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?VP(d)&&g.kC(a.W)&&(e.live_utc_start=c.lf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.ra&&(e.vvt=d.ra);d.K&&(e.vss_credentials_token=d.K,e.vss_credentials_token_type=d.An);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Gn&&(e.force_gvi=d.Gn);e.autoplay=1;e.reload_count=d.yc+1;e.reload_reason=b;d.gD&&(e.unplugged_partner_opt_out= +d.gD);d.Xi&&(e.ypc_is_premiere_trailer=d.Xi);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.ue&&C5a(a)}; +$5a=function(a,b){a.Md().autonavState=b;g.xs("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)}; +a6a=function(a){var b=a.getVideoData().bl,c=a.W.ob,d=a.isInline()&&!a.getVideoData().m2,e=a.mediaElement;b||c||d?e.uP():(e.zP(),S_(a,a.Si))}; +W_=function(a){var b=yU(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())}; +V_=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.ue}; +b6a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.w(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=am(a,d);b.hidden=!!a.hidden}; +zVa=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?lq(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""}; +c6a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; +d6a=function(){var a=null;yna().then(function(b){return a=b},function(b){return a=c6a(b)}); +return a}; +e6a=function(){var a=Me(1E3,"NO_BID");return Ie(kca([yna(),a]).Xk(c6a),function(){a.cancel()})}; +b0=function(a){return a.Od?g.Fs(g.Es(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +c0=function(a){this.player=a;this.C=this.j=1}; +h6a=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=Yq(c),h=g.Ci(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Ci(c)?!1:!0;if(f||h||d!==""){var l={};c=Sq(cr(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))}); +m.has("bid")&&(l.bid=m.get("bid"));l.params=[];f6a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))}); +g6a(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1}; +k6a=function(a,b){var c=!1;if(b==="")return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";d[0]==="!"&&(d=d.substring(1),h="INACTIVE");d=d.split("-");d.length<3||(d[0]in i6a&&(f.clientName=i6a[d[0]]),d[1]in j6a&&(f.platform=j6a[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)}); +return c}; +m6a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in l6a))return!1;a=a.split(RegExp("[:&]"));var b=l6a.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<=2?h[1]:"";var l=o6a.test(b),m=p6a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=q6a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=r6a.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=FO(a.player.U().Fa);p=a.player.getVideoData(1);var t=g.Py(p.Ma,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";h6a(a,t,b,u.toString(),a.player.U()); +var y={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19940,autonavState:b0(a.player.U())};d&&(d={},k6a(d,c.YT_REMOTE)&&(y.mdxContext=d));if(d=s6a.includes(r)?void 0:g.Ar("PREF")){for(var A=d.split(RegExp("[:&]")),D=0,F=A.length;D1&&H[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0; +break}}y.autoCaptionsDefaultOn=m6a(d)}b=t6a.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:y};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:Sq(cr(u.toString())),overridePlaybackContext:b};e!==void 0&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams= +c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=TLa(p))&&(h.getAdBreakContext=a);return h}; +v6a=function(){c0.apply(this,arguments)}; +w6a=function(a,b,c,d,e){var f=c.Ww;c=c.Zd;var h=a.player.U().Ij,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Ch:0,AUTONAV_STATE:b0(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Lr()*1E3,LACT:tv(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().gi().height,P_W:a.player.qb().gi().width,YT_REMOTE:h?h.join(","): +""},m=br(ar);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())}); +d!==""&&(l.BISCOTTI_ID=d);d={};$q(b)&&(d.sts="19940",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return Xq(g.oo(b,l),d)}; +x6a=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.XO(c,e).then(function(f){if(f&&Zq()){var h=wR();xR(h,f)}return g.Wz(a.player.Mm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; +y6a=function(a){this.Oa=a}; +z6a=function(a){this.J=a}; +A6a=function(a){this.Oa=a}; +C6a=function(a){g.O.call(this);this.Zg=a;this.N6=B6a(this)}; +B6a=function(a){var b=new zua(a.Zg.od);g.P(a,b);a=g.w([new y6a(a.Zg.Oa),new z6a(a.Zg.J),new A6a(a.Zg.Oa),new qA(a.Zg.Ol,a.Zg.No),new sA,new vA(a.Zg.Kf,a.Zg.Dl,a.Zg.Oa),new rA,new pA]);for(var c=a.next();!c.done;c=a.next())Aua(b,c.value);a=g.w(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())tA(b,c.value,function(){}); +return b}; +d0=function(a){var b=a.Sa,c=a.Ca;a=a.Le;var d=new CAa,e={vk:new vwa(b.get(),c),Ca:c};return{Sb:new pJ(c,a,b,e),context:e,Pg:d}}; +e0=function(a,b,c,d,e){g.O.call(this);this.J=a;this.B=b;this.Ha=c;this.Sa=d;this.xf=e;this.listeners=[];var f=new qs(this);g.P(this,f);f.T(a,"internalAbandon",this.IG);this.addOnDisposeCallback(function(){g.ts(f)})}; +f0=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.C=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +D6a=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.D="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.C=!1;a.B=!1}; +E6a=function(a,b){a=g.w(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){Oz("ad_i");g.Pz({isMonetized:!0});break}}; +F6a=function(a){var b;(b=a.J.getVideoData(1))!=null&&b.Aa&&(a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),Qz("video_to_ad",b))}; +$F=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});Qz("ad_to_video",b);G6a(a)}; +G6a=function(a){if(a.C)if(a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")Lz("video_to_ad");else{var b={adBreakType:DF(a.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType};a.actionType==="ad_to_video"?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId));a.adFormat&&(b.adType=a.adFormat);a.contentCpn&& +(b.clientPlaybackNonce=a.contentCpn);a.videoId&&(b.videoId=a.videoId);a.adCpn&&(b.adClientPlaybackNonce=a.adCpn);a.adVideoId&&(b.adVideoId=a.adVideoId);g.Pz(b,a.actionType)}}; +g0=function(a){g.O.call(this);this.J=a;this.j=new Map;this.B=new qs(this);g.P(this,this.B);this.B.T(this.J,g.RC("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.SC("ad"),this.onCueRangeExit,this)}; +H6a=function(a,b,c,d,e){g.PC.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; +h0=function(a){this.J=a}; +i0=function(a){this.J=a}; +I6a=function(a){return j0(a)&&EI(a,"html5_ssap_play_cached_preroll")}; +cE=function(a,b){b=b===void 0?!1:b;return a.J.U().L("html5_ssap_force_ads_ctmp")?!0:(b||a.J.U().zc())&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")}; +j0=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.WP(b))!=null?c:!1}; +EI=function(a,b){return a.J.U().L(b)}; +J6a=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")}; +KI=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; +sAa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")}; +K6a=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")}; +nI=function(a){return a.J.U().experiments.kb("enable_desktop_player_underlay")}; +L6a=function(a){return a.J.U().experiments.kb("html5_load_empty_player_in_media_break_sub_lra")}; +OF=function(a){return a.J.U().experiments.kb("html5_load_ads_instead_of_cue")}; +PF=function(a){return a.J.U().experiments.kb("html5_preload_ads")}; +jJ=function(a){return a.J.U().experiments.kb("enable_ads_control_flow_deterministic_id_generation")}; +M6a=function(a){return a.J.U().experiments.kb("enable_desktop_discovery_video_abandon_pings")}; +N6a=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +O6a=function(){g.ax.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.w(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; +k0=function(){if(P6a===null){P6a=new O6a;sl(mo).B="b";var a=sl(mo),b=fo(a)=="h"||fo(a)=="b",c=!(xl(),!1);b&&c&&(a.D=!0,a.G=new Lja)}return P6a}; +Q6a=function(a,b,c){a.j[b]=c}; +R6a=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +l0=function(a,b,c){this.Ha=a;this.J=b;this.Ca=c;this.B=new Set;this.j=new Map;k0().subscribe("adactiveviewmeasurable",this.py,this);k0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.oy,this);k0().subscribe("adviewableimpression",this.qy,this);k0().subscribe("adaudioaudible",this.jy,this);k0().subscribe("adaudiomeasurable",this.ly,this)}; +n0=function(a,b,c){var d=c.Ct,e=c.sI,f=c.listener,h=c.r7;c=c.Ho===void 0?!1:c.Ho;if(a.j.has(b))gy("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);Xk(xl().Lc,"fmd",1);Vka(sl(mo),d);var l=c?b:void 0;Q6a(k0(),b,{bQ:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ha.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:m0(a.Ha.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}})}}; +o0=function(a,b){a.j.has(b)?(a.j.delete(b),delete k0().j[b]):gy("Unexpected unregistration of layout in LidarApi")}; +U6a=function(a,b,c){var d={};S6a(a,d,b,c);T6a(d);d.LACT=p0(function(){return tv().toString()}); +d.VIS=p0(function(){return a.getVisibilityState().toString()}); +d.SDKV="h.3.0";d.VOL=p0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); +d.VED="";return d}; +V6a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.Bw(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.Bw(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=p0(Yc(Math.round(Wd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=p0(Yc("0"));return c}; +p0=function(a){return{toString:function(){return a()}}}; +W6a=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)} +function e(l,m){(m=c[m])&&(f[l]=h(m))} +if(!c||g.Cc(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l}; +e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f}; +S6a=function(a,b,c,d){b.CPN=p0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.Cw(Error("Video data is null.")),e=null);return e}); +b.AD_MT=p0(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?X6a(a,h,f):0}else e=X6a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()}); +b.MT=p0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()}); +b.P_H=p0(function(){return a.qb().gi().height.toString()}); +b.P_W=p0(function(){return a.qb().gi().width.toString()}); +b.PV_H=p0(function(){return a.qb().getVideoContentRect().height.toString()}); +b.PV_W=p0(function(){return a.qb().getVideoContentRect().width.toString()})}; +T6a=function(a){a.CONN=p0(Yc("0"));a.WT=p0(function(){return Date.now().toString()})}; +X6a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)}; +Y6a=function(){}; +Z6a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,y,A,D;g.J(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.oo(b.baseUrl,W6a(c,f,d));l={};if(!b.headers){F.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ia(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.w(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.Hq("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Hq("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Hq("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= +g.Hq("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":y=a.j();!p&&y&&(l["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(A=void 0,(A=a.C())==null?0:A.kb("enable_datasync_id_header_in_web_vss_pings"))D=a.B(),Yq(h)&&g.Hq("LOGGED_IN")&&D&&(l["X-Yt-DataSync-Id"]=D)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.Lu(h,void 0,f,Object.keys(l).length!== +0?l:void 0,"",!0,e),g.ua(F)}})}; +$6a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e}; +a7a=function(a,b){this.j=a;this.Ca=b}; +q0=function(a,b,c,d,e,f,h){var l=l===void 0?new $6a(function(){var m=a.U(),n=a.getVideoData(1);return g.XO(m,n?g.HQ(n):"")},function(){return a.U().pageId},function(){return a.U().Aa},function(){var m; +return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l; +this.J=a;this.B=b;this.zb=c;this.Sa=d;this.Sb=e;this.Ca=f;this.Pg=h;this.D=l;this.cI=null;this.j=new Map;this.C=new a7a(l,this.Ca)}; +c7a=function(a,b,c,d,e){var f=TI(a.B.get(),c);f?(c=mD(a,b7a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):gy("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; +Eva=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=TI(a.B.get(),b);if(h){var l=a.zb.get().Sh(b,c),m=mD(a,b7a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Sb.ws("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new eya(n,p),void 0,void 0,h.adLayoutLoggingData))})}else gy("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b, +trackingType:c})}; +gG=function(a,b){g.$s("adsClientStateChange",b)}; +d7a=function(a,b){a.j.has(b.uA())?gy("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.uA(),b)}; +e7a=function(a,b){a.j.delete(b.uA())||gy("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +jG=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Ky(b,c):a.J.getVideoData(1).oa(b,c)}; +b7a=function(a){var b=SB(a.Ba,"metadata_type_ad_placement_config");a=SB(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,R_:a}}; +mD=function(a,b,c,d,e,f){var h=c?f7a(a):{},l=c?g7a(a,c.layoutId):{},m=h7a(a),n,p=e!=null?e:(n=zF(a.Sa.get(),2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=zF(a.Sa.get(),1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Pg.j.get(c.layoutId))==null?0:q.Ho)e=c.layoutId}q={};a=Object.assign({},U6a(a.J,e,d),V6a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=p0(function(){return"1"}),q.AD_CPN=p0(function(){return p|| +""}),q)); +(c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=p0(function(){return(b.R_||0).toString()})); +c={};f=Object.assign({},a,f);a=g.w(Object.values(i7a));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c}; +f7a=function(a){var b={},c,d=(c=a.cI)==null?void 0:c.rj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=p0(function(){return Math.round(d*1E3).toString()})); +b.SURVEY_LOCAL_TIME_EPOCH_S=p0(function(){return Math.round(Date.now()/1E3).toString()}); +return b}; +g7a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.QP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.qN.toString(),b.ERRORCODE=a.rI.toString(),b.ERROR_MSG=a.errorMessage,b}; +h7a=function(a){var b={},c=a.J.getVideoData(1);b.ASR=p0(function(){var d;return(d=c==null?void 0:c.Vv)!=null?d:null}); +b.EI=p0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null}); +return b}; +r0=function(a,b,c){g.O.call(this);this.J=a;this.Us=b;this.Ca=c;this.listeners=[];this.tR=null;this.qO=new Map;b=new g.oE(this);g.P(this,b);b.T(a,"videodatachange",this.Rca);b.T(a,"serverstitchedvideochange",this.tca);this.Xw=zF(this)}; +zF=function(a,b){var c=a.J.getVideoData(b);return c?a.eJ(c,b||a.J.getPresentingPlayerType(!0)):null}; +j7a=function(a,b,c){var d=a.eJ(b,c);a.Xw=d;a.listeners.forEach(function(e){e.HL(d)})}; +YD=function(a,b,c){a.J.getVideoData(1).oa(b,c)}; +k7a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +s0=function(a,b,c){g.O.call(this);this.J=a;this.Sa=b;this.Ca=c;this.listeners=[];this.EE=[];this.j=function(){gy("Called 'doUnlockPreroll' before it's initialized.")}; +b=new qs(this);c=new g.oE(this);g.P(this,c);g.P(this,b);b.T(a,"progresssync",this.Tba);b.T(a,"presentingplayerstatechange",this.Kba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.nh);b.T(a,"overlayvisibilitychange",this.Kj);b.T(a,"shortsadswipe",this.Mj);b.T(a,"resize",this.kc);c.T(a,g.RC("appad"),this.Jj)}; +t0=function(a){j0(a.Ca.get())||a.j()}; +l7a=function(a,b){a.EE=a.EE.filter(function(c){return c!==b})}; +u0=function(a,b,c){return a.getCurrentTimeSec(b,c)}; +m7a=function(a,b){var c;b=(c=a.Sa.get().qO.get(b))!=null?c:null;if(b===null)return gy("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)}); +d.map(function(h){return g.Q(h,eI)}).forEach(function(h){var l; +(h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{Fw:e, +adSlots:d,KC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}}; +z0=function(a){g.O.call(this);this.J=a;this.listeners=[];this.j=new qs(this);g.P(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.VR);this.j.T(this.J,"aduxmouseout",this.UR);this.j.T(this.J,"muteadaccepted",this.taa)}; +r7a=function(a,b,c){b=g.pl(b,function(d){return new Dsa(d,c,d.id)}); +a.J.ib("onAdUxUpdate",b)}; +A0=function(a,b){a=g.w(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)}; +B0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}}; +s7a=function(a,b){var c=a.startSecs+a.Ch;c=c<=0?null:c;if(c===null)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{b8:new lp(b,c),q$:new LL(b,c-b,a.context,a.identifier,a.event,a.j)}}; +t7a=function(){this.j=[]}; +wxa=function(a,b,c){var d=g.Zb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; +C0=function(a,b,c){g.O.call(this);this.J=a;this.Ca=b;this.Oa=c;this.listeners=[];this.D=!1;this.bN=[];this.B=null;this.G=new B0(this,K6a(b.get()));this.C=new t7a;this.j=null}; +u7a=function(a,b){a.bN.push(b);for(var c=!1,d=g.w(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.C0(b)||c;a.D=c}; +w7a=function(a,b){gG(a.Oa.get(),{cuepointTrigger:{event:v7a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Ch*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; +v7a=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Ld(a,"Unexpected cuepoint event")}}; +D0=function(a){this.J=a}; +x7a=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; +E0=function(a){this.J=a}; +F0=function(a){this.J=a}; +y7a=function(a){this.J=a}; +z7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=AC(function(){return new iJ(f.Ca)}); +g.P(this,h);var l=AC(function(){return new kJ(h,f.Ca)}); +g.P(this,l);var m=AC(function(){return new RI}); +g.P(this,m);var n=AC(function(){return new PI(a)}); +g.P(this,n);var p=AC(function(){return new lJ(h,l,f.Ca)}); +g.P(this,p);var q=AC(function(){return new qJ}); +g.P(this,q);this.Ac=AC(function(){return new z0(b)}); +g.P(this,this.Ac);this.Mb=AC(function(){return new CC(e)}); +g.P(this,this.Mb);this.Cc=AC(function(){return new f0(b)}); +g.P(this,this.Cc);this.Pc=AC(function(){return new g0(b)}); +g.P(this,this.Pc);this.md=AC(function(){return new D0(b)}); +g.P(this,this.md);this.od=AC(function(){return new h0(b)}); +g.P(this,this.od);this.Ca=AC(function(){return new i0(b)}); +g.P(this,this.Ca);var r=AC(function(){return new y0(d)}); +g.P(this,r);var t=AC(function(){return new $B(f.Ca)}); +g.P(this,t);this.Xf=AC(function(){return new E0(b)}); +g.P(this,this.Xf);this.Lo=AC(function(){return new FC}); +g.P(this,this.Lo);this.Sa=AC(function(){return new r0(b,q,f.Ca)}); +g.P(this,this.Sa);var u=d0({Sa:this.Sa,Ca:this.Ca,Le:t}),y=u.context,A=u.Pg;this.Sb=u.Sb;this.xf=AC(function(){return new C0(b,f.Ca,f.Oa)}); +g.P(this,this.xf);this.Gc=AC(function(){return new F0(b)}); +g.P(this,this.Gc);this.Ha=AC(function(){return new s0(b,f.Sa,f.Ca)}); +g.P(this,this.Ha);u=AC(function(){return new GI(h,p,l,f.Ca,t,"SLOT_TYPE_ABOVE_FEED",f.Ha,f.rk)}); +g.P(this,u);this.df=AC(function(){return new GC}); +this.zb=AC(function(){return new l0(f.Ha,b,f.Ca)}); +g.P(this,this.zb);this.Oa=AC(function(){return new q0(b,m,f.zb,f.Sa,f.Sb,f.Ca,A)}); +g.P(this,this.Oa);this.Sk=new NI(MI,G0,function(F,H,N,M){return mI(l.get(),F,H,N,M)},n,p,l,t,this.Ca,this.Sa); +g.P(this,this.Sk);this.Rd=new OI(n,u,c,this.Ca,a,this.Sa,this.Ha,this.Cc);g.P(this,this.Rd);var D=new e0(b,this.Rd,this.Ha,this.Sa,this.xf);this.wh=AC(function(){return D}); +this.sy=D;this.rk=new JI(n,p,this.wh,this.xf,this.Ha,this.Ca,this.Oa,this.Gc);g.P(this,this.rk);this.Eg=new QI(n,p,this.Pc,this.wh,y);g.P(this,this.Eg);this.Td=new dI(this.Ca,n,p,u,this.Sa,this.Eg,c);g.P(this,this.Td);this.gk=AC(function(){return new YC(r,l,t,f.Ca,f.Oa,f.Ha,f.Gc)}); +g.P(this,this.gk);this.Xe=AC(function(){return new ZC}); +g.P(this,this.Xe);this.Xg=new YI(a,this.Ac,this.Ca);g.P(this,this.Xg);this.ac=new ZI(a);g.P(this,this.ac);this.Rw=new $I(a);g.P(this,this.Rw);this.yh=new bJ(a,this.wh,y);g.P(this,this.yh);this.yf=new cJ(a,this.Pc,this.Ha,this.Sa,y);g.P(this,this.yf);this.Sx=new dJ(a,this.Sa);g.P(this,this.Sx);this.cf=new eJ(a);g.P(this,this.cf);this.Yd=new hJ(a);g.P(this,this.Yd);this.Ok=new fJ(a);g.P(this,this.Ok);this.cz=new gJ(a);g.P(this,this.cz);this.Yd=new hJ(a);g.P(this,this.Yd);this.Pe=AC(function(){return new UI}); +g.P(this,this.Pe);this.Tk=AC(function(){return new VI(f.Ha)}); +g.P(this,this.Tk);this.YW=AC(function(){return new Zva(f.Ac,f.Oa,a,m,f.zb)}); +g.P(this,this.YW);this.fk=AC(function(){return new FD(f.Td,n,h)}); +g.P(this,this.fk);this.yk=AC(function(){return new KD(f.Ca,f.Oa,f.cf,f.zb)}); +g.P(this,this.yk);this.Rk=AC(function(){return new qG(a,f.Yd,f.cf,f.Sa,f.Gc,f.Ha,f.Oa,q,f.xf,f.zb,f.df,f.md,f.Pc,f.Cc,f.od,f.Mb,f.Xf,f.Ca,m,y,A)}); +g.P(this,this.Rk);this.WS=AC(function(){return new mwa(f.Ha,f.Oa,f.Ca,f.zb)}); +g.P(this,this.WS);this.vu=AC(function(){return new Uxa(f.Ac,f.Ha,f.Oa,m,f.zb,f.Rw,f.cz,f.Mb,f.Ca,c)}); +g.P(this,this.vu);this.I3=AC(function(){return new $va(f.Ac)}); +g.P(this,this.I3);this.mO=new x0(a,this.Lo,h);g.P(this,this.mO);this.oh={LB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_ABOVE_FEED",this.Xe],["SLOT_TYPE_FORECASTING",this.Xe], +["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Xe]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Rw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.yf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.yf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.yf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Sx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Sx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.cz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Bv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Pe],["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.Tk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Pe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Pe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Pe]]),Gu:new Map([["SLOT_TYPE_ABOVE_FEED", +this.YW],["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_PLAYER_BYTES",this.Rk],["SLOT_TYPE_PLAYBACK_TRACKING",this.WS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.WS],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_UNDERLAY",this.I3]])};this.listeners=[m.get()];this.hB={Td:this.Td,Dl:this.Ca.get(),jb:this.Mb.get(),SB:this.Ha.get(),Rd:this.Rd,Ax:h.get(),jG:this.Lo.get(),No:this.Xg,Ol:m.get(),Kf:this.Sa.get()}}; +A7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=AC(function(){return new iJ(f.Ca)}); +g.P(this,h);var l=AC(function(){return new kJ(h,f.Ca)}); +g.P(this,l);var m=AC(function(){return new RI}); +g.P(this,m);var n=AC(function(){return new PI(a)}); +g.P(this,n);var p=AC(function(){return new lJ(h,l,f.Ca)}); +g.P(this,p);var q=AC(function(){return new qJ}); +g.P(this,q);this.Ac=AC(function(){return new z0(b)}); +g.P(this,this.Ac);this.Mb=AC(function(){return new CC(e)}); +g.P(this,this.Mb);this.Cc=AC(function(){return new f0(b)}); +g.P(this,this.Cc);this.Pc=AC(function(){return new g0(b)}); +g.P(this,this.Pc);this.md=AC(function(){return new D0(b)}); +g.P(this,this.md);this.od=AC(function(){return new h0(b)}); +g.P(this,this.od);this.Ca=AC(function(){return new i0(b)}); +g.P(this,this.Ca);var r=AC(function(){return new y0(d)}); +g.P(this,r);var t=AC(function(){return new $B(f.Ca)}); +g.P(this,t);var u=AC(function(){return new GI(h,p,l,f.Ca,t,null,null,f.rk)}); +g.P(this,u);this.Xf=AC(function(){return new E0(b)}); +g.P(this,this.Xf);this.Lo=AC(function(){return new FC}); +g.P(this,this.Lo);this.Sa=AC(function(){return new r0(b,q,f.Ca)}); +g.P(this,this.Sa);var y=d0({Sa:this.Sa,Ca:this.Ca,Le:t}),A=y.context,D=y.Pg;this.Sb=y.Sb;this.xf=AC(function(){return new C0(b,f.Ca,f.Oa)}); +this.Ha=AC(function(){return new s0(b,f.Sa,f.Ca)}); +g.P(this,this.Ha);this.zb=AC(function(){return new l0(f.Ha,b,f.Ca)}); +g.P(this,this.zb);this.Oa=AC(function(){return new q0(b,m,f.zb,f.Sa,f.Sb,f.Ca,D)}); +g.P(this,this.Oa);this.df=AC(function(){return new GC}); +g.P(this,this.df);this.Sk=new NI(MI,G0,function(H,N,M,X){return mI(l.get(),H,N,M,X)},n,p,l,t,this.Ca,this.Sa); +g.P(this,this.Sk);this.Rd=new OI(n,u,c,this.Ca,a,this.Sa,this.Ha,this.Cc);g.P(this,this.Rd);var F=new e0(b,this.Rd,this.Ha,this.Sa,this.xf);this.wh=AC(function(){return F}); +this.sy=F;this.rk=new JI(n,p,this.wh,this.xf,this.Ha,this.Ca,this.Oa);g.P(this,this.rk);this.Eg=new QI(n,p,this.Pc,this.wh,A);g.P(this,this.Eg);this.Td=new dI(this.Ca,n,p,u,this.Sa,this.Eg,c);g.P(this,this.Td);this.gk=AC(function(){return new YC(r,l,t,f.Ca,f.Oa,f.Ha)}); +g.P(this,this.gk);this.Xe=AC(function(){return new ZC}); +g.P(this,this.Xe);this.Xg=new YI(a,this.Ac,this.Ca);g.P(this,this.Xg);this.ac=new ZI(a);g.P(this,this.ac);this.Rw=new $I(a);g.P(this,this.Rw);this.yh=new bJ(a,this.wh,A);g.P(this,this.yh);this.yf=new cJ(a,this.Pc,this.Ha,this.Sa,A);g.P(this,this.yf);this.cf=new eJ(a);g.P(this,this.cf);this.Ok=new fJ(a);g.P(this,this.Ok);this.cz=new gJ(a);g.P(this,this.cz);this.Gc=AC(function(){return new F0(b)}); +g.P(this,this.Gc);this.Yd=new hJ(a);g.P(this,this.Yd);this.Pe=AC(function(){return new UI}); +g.P(this,this.Pe);this.Tk=AC(function(){return new VI(f.Ha)}); +g.P(this,this.Tk);this.fk=AC(function(){return new FD(f.Td,n,h)}); +g.P(this,this.fk);this.yk=AC(function(){return new KD(f.Ca,f.Oa,f.cf,f.zb)}); +g.P(this,this.yk);this.vu=AC(function(){return new Vxa(f.Ac,f.Ha,f.Oa,m,f.zb,f.Rw,f.cz,f.Mb,f.Ca,c)}); +g.P(this,this.vu);this.Rk=AC(function(){return new rG(a,f.Yd,f.cf,f.Oa,f.zb,f.df,f.md,f.Sa,f.Ha,f.Pc,f.Cc,f.od,f.Mb,f.Xf,f.Ca,f.Gc,A,D)}); +g.P(this,this.Rk);this.mO=new x0(a,this.Lo,h);g.P(this,this.mO);this.oh={LB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe], +["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Rw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.cz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_BYTES",this.Rk]])};this.listeners=[m.get()];this.hB={Td:this.Td,Dl:this.Ca.get(),jb:this.Mb.get(),SB:this.Ha.get(),Rd:this.Rd,Ax:h.get(),jG:this.Lo.get(),No:this.Xg, +Ol:m.get(),Kf:this.Sa.get()}}; +B7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=AC(function(){return new iJ(f.Ca)}); +g.P(this,h);var l=AC(function(){return new kJ(h,f.Ca)}); +g.P(this,l);var m=AC(function(){return new RI}); +g.P(this,m);var n=AC(function(){return new PI(a)}); +g.P(this,n);var p=AC(function(){return new lJ(h,l,f.Ca)}); +g.P(this,p);var q=AC(function(){return new qJ}); +g.P(this,q);this.Ac=AC(function(){return new z0(b)}); +g.P(this,this.Ac);this.Mb=AC(function(){return new CC(e)}); +g.P(this,this.Mb);this.Cc=AC(function(){return new f0(b)}); +g.P(this,this.Cc);this.Pc=AC(function(){return new g0(b)}); +g.P(this,this.Pc);this.md=AC(function(){return new D0(b)}); +g.P(this,this.md);this.od=AC(function(){return new h0(b)}); +g.P(this,this.od);this.Ca=AC(function(){return new i0(b)}); +g.P(this,this.Ca);var r=AC(function(){return new y0(d)}); +g.P(this,r);var t=AC(function(){return new $B(f.Ca)}); +g.P(this,t);var u=AC(function(){return new GI(h,p,l,f.Ca,t,null,null,null)}); +g.P(this,u);this.Xf=AC(function(){return new E0(b)}); +g.P(this,this.Xf);this.Sa=AC(function(){return new r0(b,q,f.Ca)}); +g.P(this,this.Sa);var y=d0({Sa:this.Sa,Ca:this.Ca,Le:t}),A=y.context,D=y.Pg;this.Sb=y.Sb;this.Ha=AC(function(){return new s0(b,f.Sa,f.Ca)}); +g.P(this,this.Ha);this.zb=AC(function(){return new l0(f.Ha,b,f.Ca)}); +g.P(this,this.zb);this.Oa=AC(function(){return new q0(b,m,f.zb,f.Sa,f.Sb,f.Ca,D)}); +g.P(this,this.Oa);this.df=AC(function(){return new GC}); +g.P(this,this.df);this.Sk=new NI(MI,G0,function(H,N,M,X){return mI(l.get(),H,N,M,X)},n,p,l,t,this.Ca,this.Sa); +g.P(this,this.Sk);this.Rd=new OI(n,u,c,this.Ca,a,this.Sa,this.Ha,this.Cc);g.P(this,this.Rd);var F=new e0(b,this.Rd,this.Ha,this.Sa);this.wh=AC(function(){return F}); +this.sy=F;this.Eg=new QI(n,p,this.Pc,this.wh,A);g.P(this,this.Eg);this.Td=new dI(this.Ca,n,p,u,this.Sa,this.Eg,c);g.P(this,this.Td);this.gk=AC(function(){return new YC(r,l,t,f.Ca,f.Oa,f.Ha)}); +g.P(this,this.gk);this.Xe=AC(function(){return new ZC}); +g.P(this,this.Xe);this.Xg=new YI(a,this.Ac,this.Ca);g.P(this,this.Xg);this.ac=new ZI(a);g.P(this,this.ac);this.yh=new bJ(a,this.wh,A);g.P(this,this.yh);this.yf=new cJ(a,this.Pc,this.Ha,this.Sa,A);g.P(this,this.yf);this.cf=new eJ(a);g.P(this,this.cf);this.Ok=new fJ(a);g.P(this,this.Ok);this.Gc=AC(function(){return new F0(b)}); +g.P(this,this.Gc);this.Yd=new hJ(a);g.P(this,this.Yd);this.Pe=AC(function(){return new UI}); +g.P(this,this.Pe);this.Tk=AC(function(){return new VI(f.Ha)}); +g.P(this,this.Tk);this.fk=AC(function(){return new FD(f.Td,n,h)}); +g.P(this,this.fk);this.yk=AC(function(){return new KD(f.Ca,f.Oa,f.cf,f.zb)}); +g.P(this,this.yk);this.f1=AC(function(){return new kwa(f.Ac,f.Ha,f.Oa,m,c,f.Ca)}); +g.P(this,this.f1);this.Rk=AC(function(){return new rG(a,f.Yd,f.cf,f.Oa,f.zb,f.df,f.md,f.Sa,f.Ha,f.Pc,f.Cc,f.od,f.Mb,f.Xf,f.Ca,f.Gc,A,D)}); +g.P(this,this.Rk);this.oh={LB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_ABOVE_FEED",this.Pe],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER", +this.f1],["SLOT_TYPE_PLAYER_BYTES",this.Rk]])};this.listeners=[m.get()];this.hB={Td:this.Td,Dl:this.Ca.get(),jb:this.Mb.get(),SB:this.Ha.get(),Rd:this.Rd,Ax:h.get(),jG:null,No:this.Xg,Ol:m.get(),Kf:this.Sa.get()}}; +C7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=AC(function(){return new iJ(f.Ca)}); +g.P(this,h);var l=AC(function(){return new kJ(h,f.Ca)}); +g.P(this,l);var m=AC(function(){return new RI}); +g.P(this,m);var n=AC(function(){return new PI(a)}); +g.P(this,n);var p=AC(function(){return new lJ(h,l,f.Ca)}); +g.P(this,p);var q=AC(function(){return new qJ}); +g.P(this,q);this.In=AC(function(){return new y7a(b)}); +g.P(this,this.In);this.Ac=AC(function(){return new z0(b)}); +g.P(this,this.Ac);this.Mb=AC(function(){return new CC(e)}); +g.P(this,this.Mb);this.Cc=AC(function(){return new f0(b)}); +g.P(this,this.Cc);this.Pc=AC(function(){return new g0(b)}); +g.P(this,this.Pc);this.md=AC(function(){return new D0(b)}); +g.P(this,this.md);this.od=AC(function(){return new h0(b)}); +g.P(this,this.od);this.Ca=AC(function(){return new i0(b)}); +g.P(this,this.Ca);var r=AC(function(){return new y0(d)}); +g.P(this,r);var t=AC(function(){return new $B(f.Ca)}); +g.P(this,t);var u=AC(function(){return new GI(h,p,l,f.Ca,t,null,null,null)}); +g.P(this,u);this.Xf=AC(function(){return new E0(b)}); +g.P(this,this.Xf);this.Sa=AC(function(){return new r0(b,q,f.Ca)}); +g.P(this,this.Sa);var y=d0({Sa:this.Sa,Ca:this.Ca,Le:t}),A=y.context,D=y.Pg;this.Sb=y.Sb;this.Ha=AC(function(){return new s0(b,f.Sa,f.Ca)}); +g.P(this,this.Ha);this.zb=AC(function(){return new l0(f.Ha,b,f.Ca)}); +g.P(this,this.zb);this.Oa=AC(function(){return new q0(b,m,f.zb,f.Sa,f.Sb,f.Ca,D)}); +g.P(this,this.Oa);this.df=AC(function(){return new GC}); +g.P(this,this.df);this.Sk=new NI(zAa,G0,function(H,N,M,X){return QAa(l.get(),H,N,M,X)},n,p,l,t,this.Ca,this.Sa); +g.P(this,this.Sk);this.Rd=new OI(n,u,c,this.Ca,a,this.Sa,this.Ha,this.Cc);g.P(this,this.Rd);var F=new e0(b,this.Rd,this.Ha,this.Sa);this.wh=AC(function(){return F}); +this.sy=F;this.Eg=new QI(n,p,this.Pc,this.wh,A);g.P(this,this.Eg);this.Td=new dI(this.Ca,n,p,u,this.Sa,this.Eg,c);g.P(this,this.Td);this.gk=AC(function(){return new YC(r,l,t,f.Ca,f.Oa,f.Ha)}); +g.P(this,this.gk);this.Xe=AC(function(){return new ZC}); +g.P(this,this.Xe);this.Xg=new YI(a,this.Ac,this.Ca);g.P(this,this.Xg);this.ac=new ZI(a);g.P(this,this.ac);this.yh=new bJ(a,this.wh,A);g.P(this,this.yh);this.yf=new cJ(a,this.Pc,this.Ha,this.Sa,A);g.P(this,this.yf);this.cf=new eJ(a);g.P(this,this.cf);this.Ok=new fJ(a);g.P(this,this.Ok);this.Gc=AC(function(){return new F0(b)}); +g.P(this,this.Gc);this.Yd=new hJ(a);g.P(this,this.Yd);this.Pe=AC(function(){return new UI}); +g.P(this,this.Pe);this.Tk=AC(function(){return new VI(f.Ha)}); +g.P(this,this.Tk);this.fk=AC(function(){return new FD(f.Td,n,h)}); +g.P(this,this.fk);this.yk=AC(function(){return new KD(f.Ca,f.Oa,f.cf,f.zb)}); +g.P(this,this.yk);this.Rk=AC(function(){return new rG(a,f.Yd,f.cf,f.Oa,f.zb,f.df,f.md,f.Sa,f.Ha,f.Pc,f.Cc,f.od,f.Mb,f.Xf,f.Ca,f.Gc,A,D)}); +g.P(this,this.Rk);this.f4=AC(function(){return new Xxa(f.Ac,f.Ha,f.Oa,m,f.In,c,f.Sa)}); +g.P(this,this.f4);this.oh={LB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Pe],["SLOT_TYPE_PLAYER_BYTES",this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_IN_PLAYER",this.f4],["SLOT_TYPE_PLAYER_BYTES", +this.Rk]])};this.listeners=[m.get()];this.hB={Td:this.Td,Dl:this.Ca.get(),jb:this.Mb.get(),SB:this.Ha.get(),Rd:this.Rd,Ax:h.get(),jG:null,No:this.Xg,Ol:m.get(),Kf:this.Sa.get()}}; +D7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=AC(function(){return new iJ(f.Ca)}); +g.P(this,h);var l=AC(function(){return new kJ(h,f.Ca)}); +g.P(this,l);var m=AC(function(){return new RI}); +g.P(this,m);var n=AC(function(){return new PI(a)}); +g.P(this,n);var p=AC(function(){return new lJ(h,l,f.Ca)}); +g.P(this,p);var q=AC(function(){return new qJ}); +g.P(this,q);this.In=AC(function(){return new y7a(b)}); +g.P(this,this.In);this.Ac=AC(function(){return new z0(b)}); +g.P(this,this.Ac);this.Mb=AC(function(){return new CC(e)}); +g.P(this,this.Mb);this.Cc=AC(function(){return new f0(b)}); +g.P(this,this.Cc);this.Pc=AC(function(){return new g0(b)}); +g.P(this,this.Pc);this.md=AC(function(){return new D0(b)}); +g.P(this,this.md);this.od=AC(function(){return new h0(b)}); +g.P(this,this.od);this.Ca=AC(function(){return new i0(b)}); +g.P(this,this.Ca);var r=AC(function(){return new y0(d)}); +g.P(this,r);var t=AC(function(){return new $B(f.Ca)}); +g.P(this,t);this.Xf=AC(function(){return new E0(b)}); +g.P(this,this.Xf);this.Sa=AC(function(){return new r0(b,q,f.Ca)}); +g.P(this,this.Sa);var u=d0({Sa:this.Sa,Ca:this.Ca,Le:t}),y=u.context,A=u.Pg;this.Sb=u.Sb;this.xf=AC(function(){return new C0(b,f.Ca,f.Oa)}); +g.P(this,this.xf);this.Gc=AC(function(){return new F0(b)}); +g.P(this,this.Gc);this.Ha=AC(function(){return new s0(b,f.Sa,f.Ca)}); +g.P(this,this.Ha);u=AC(function(){return new GI(h,p,l,f.Ca,t,null,f.Ha,f.rk,3)}); +g.P(this,u);this.df=AC(function(){return new GC}); +this.zb=AC(function(){return new l0(f.Ha,b,f.Ca)}); +g.P(this,this.zb);this.Oa=AC(function(){return new q0(b,m,f.zb,f.Sa,f.Sb,f.Ca,A)}); +g.P(this,this.Oa);this.Rd=new OI(n,u,c,this.Ca,a,this.Sa,this.Ha,this.Cc);g.P(this,this.Rd);var D=new e0(b,this.Rd,this.Ha,this.Sa,this.xf);this.wh=AC(function(){return D}); +this.sy=D;this.Sk=new NI(AAa,G0,function(F,H,N,M){return QAa(l.get(),F,H,N,M)},n,p,l,t,this.Ca,this.Sa); +g.P(this,this.Sk);this.rk=new JI(n,p,this.wh,this.xf,this.Ha,this.Ca,this.Oa,this.Gc);g.P(this,this.rk);this.Eg=new QI(n,p,this.Pc,this.wh,y);g.P(this,this.Eg);this.Td=new dI(this.Ca,n,p,u,this.Sa,this.Eg,c);g.P(this,this.Td);this.gk=AC(function(){return new YC(r,l,t,f.Ca,f.Oa,f.Ha,f.Gc)}); +g.P(this,this.gk);this.Xe=AC(function(){return new ZC}); +g.P(this,this.Xe);this.Xg=new YI(a,this.Ac,this.Ca);g.P(this,this.Xg);this.ac=new ZI(a);g.P(this,this.ac);this.yh=new bJ(a,this.wh,y);g.P(this,this.yh);this.yf=new cJ(a,this.Pc,this.Ha,this.Sa,y);g.P(this,this.yf);this.Sx=new dJ(a,this.Sa);g.P(this,this.Sx);this.cf=new eJ(a);g.P(this,this.cf);this.Ok=new fJ(a);g.P(this,this.Ok);this.Yd=new hJ(a);g.P(this,this.Yd);this.Pe=AC(function(){return new UI}); +g.P(this,this.Pe);this.Tk=AC(function(){return new VI(f.Ha)}); +g.P(this,this.Tk);this.fk=AC(function(){return new FD(f.Td,n,h)}); +g.P(this,this.fk);this.yk=AC(function(){return new KD(f.Ca,f.Oa,f.cf,f.zb)}); +g.P(this,this.yk);this.Rk=AC(function(){return new qG(a,f.Yd,f.cf,f.Sa,f.Gc,f.Ha,f.Oa,q,f.xf,f.zb,f.df,f.md,f.Pc,f.Cc,f.od,f.Mb,f.Xf,f.Ca,m,y,A)}); +g.P(this,this.Rk);this.vu=AC(function(){return new Yxa(f.Ac,f.Ha,f.Oa,m,f.In,c,f.Ca,f.Sa)}); +g.P(this,this.vu);this.oh={LB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.gk],["SLOT_TYPE_FORECASTING",this.Xe],["SLOT_TYPE_IN_PLAYER",this.Xe],["SLOT_TYPE_PLAYER_BYTES",this.Xe]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.yh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Sx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Sx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.cf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.yh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ok],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),Bv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pe],["SLOT_TYPE_FORECASTING",this.Pe],["SLOT_TYPE_IN_PLAYER",this.Pe],["SLOT_TYPE_PLAYER_BYTES", +this.Tk]]),Gu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.yk],["SLOT_TYPE_PLAYER_BYTES",this.Rk],["SLOT_TYPE_IN_PLAYER",this.vu]])};this.listeners=[m.get()];this.hB={Td:this.Td,Dl:this.Ca.get(),jb:this.Mb.get(),SB:this.Ha.get(),Rd:this.Rd,Ax:h.get(),jG:null,No:this.Xg,Ol:m.get(),Kf:this.Sa.get()}}; +F7a=function(a,b,c,d){g.O.call(this);var e=this;this.j=E7a(function(){return e.B},a,b,c,d); +g.P(this,this.j);this.B=(new BC(this.j)).C();g.P(this,this.B)}; +H0=function(a){return a.j.hB}; +E7a=function(a,b,c,d,e){try{var f=b.U();if(g.OO(f))var h=new z7a(a,b,c,d,e);else if(g.QO(f))h=new A7a(a,b,c,d,e);else if(HO(f))h=new B7a(a,b,c,d,e);else if(g.Cy(f))h=new C7a(a,b,c,d,e);else if(g.BO(f))h=new D7a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),gy("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Goa:h.j.cver,Foa:h.j.ctheme,Eoa:h.j.cplayer,npa:h.playerStyle}),new p7a(a,b,c,d,e)}}; +G7a=function(a){Mx.call(this,a)}; +H7a=function(a,b,c,d,e){Ux.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Ea("ytp-ad-timed-pie-countdown");this.D=this.Ea("ytp-ad-timed-pie-countdown-container"); +this.B=this.Ea("ytp-ad-timed-pie-countdown-inner");this.G=this.Ea("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()}; +I7a=function(a,b,c,d,e,f){jx.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div", +S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.cU=e;this.IM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ga=this.Ea("ytp-ad-action-interstitial-instream-info");this.ra=this.Ea("ytp-ad-action-interstitial-image-container");this.Y=new Ix(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-image");g.P(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Ea("ytp-ad-action-interstitial-headline-container"); +this.G=new Sx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-headline");g.P(this,this.G);this.G.Ja(this.Wa);this.Va=this.Ea("ytp-ad-action-interstitial-description-container");this.C=new Sx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-description");g.P(this,this.C);this.C.Ja(this.Va);this.Xa=this.Ea("ytp-ad-action-interstitial-background-container");this.La=new Ix(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb,"ytp-ad-action-interstitial-background",!0);g.P(this,this.La);this.La.Ja(this.Xa);this.fb=this.Ea("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ea("ytp-ad-action-interstitial-slot");this.wf=this.Ea("ytp-ad-action-interstitial-card");this.D=new qs;g.P(this,this.D);this.hide()}; +J7a=function(a){var b=g.de("html5-video-player");b&&g.$o(b,"ytp-ad-display-override",a)}; +N7a=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.fb=this.Ga=this.D=this.Xa=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Ea("ytp-ad-overlay-container");this.La=new cy(a,45E3,6E3,.3,.4);g.P(this,this.La);this.C=K7a(this);g.P(this,this.C);this.C.Ja(a);this.B=L7a(this);g.P(this,this.B);this.B.Ja(a);this.j=M7a(this);g.P(this,this.j);this.j.Ja(a);this.hide()}; +K7a=function(a){var b=new g.ix({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[Ax(O7a)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){I0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){I0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.ZN);b.hide();return b}; +L7a=function(a){var b=new g.ix({I:"div",Na:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[Ax(O7a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){I0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){I0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.ZN);a.T(b.Ea("ytp-ad-overlay-text-image"),"click",a.Ica);b.hide();return b}; +M7a=function(a){var b=new g.ix({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[Ax(O7a)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ea("ytp-ad-overlay-image"),"click",function(c){I0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.ZN);b.hide();return b}; +P7a=function(a,b){if(b){var c=g.Q(b,$H)||null;if(c==null)g.Bw(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.de("video-ads ytp-ad-module")||null,b==null)g.Bw(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.ix({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(a,a.Ga),a.Ga.Ja(b),b=new Rx(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.Ga.element,!1),g.P(a,b),b.init(Zw("ad-info-hover-text-button"), +c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.raa,a);b.subscribe("e",a.vS,a);a.T(a.G,"click",a.saa);var d=g.de("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.Q((e=g.Q(c.button,g.bI))==null?void 0:e.serviceEndpoint,Nsa))a.Wa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); +a.fb=b}else g.Bw(Error("Ad info button container within overlay ad was not present."))}else g.Cw(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +R7a=function(a,b){if(Q7a(a,J0)||a.api.isMinimized())return!1;var c=kx(b.title),d=kx(b.description);if(g.rb(c)||g.rb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",kx(b.title));a.C.updateValue("description",kx(b.description));a.C.updateValue("displayUrl",kx(b.displayUrl));b.navigationEndpoint&&g.Vb(a.Y,b.navigationEndpoint);a.C.show();a.La.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++}); +return!0}; +S7a=function(a,b){if(Q7a(a,J0)||a.api.isMinimized())return!1;var c=kx(b.title),d=kx(b.description);if(g.rb(c)||g.rb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",kx(b.title));a.B.updateValue("description",kx(b.description));a.B.updateValue("displayUrl",kx(b.displayUrl));a.B.updateValue("imageUrl",esa(b.image));b.navigationEndpoint&&g.Vb(a.Y,b.navigationEndpoint);a.Xa=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.logVisibility(a.B.element,!0); +a.T(a.B.element,"mouseover",function(){a.ra++}); +return!0}; +T7a=function(a,b){if(a.api.isMinimized())return!1;var c=fsa(b.image),d=c;c.width0?(b=new Ay(a.api,a.j),b.Ja(a.playerOverlay), +g.P(a,b)):g.Bw(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.Bw(Error("addCommonComponents() needs to be called before starting countdown."))}; +d8a=function(a){function b(c){return{toString:function(){return c()}}} +a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()}); +a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Wa()-a.C).toString()})}; +e8a=function(a,b,c,d,e){N0.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; +f8a=function(a,b,c){a.noneOfTheAbove=new Z7a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(Zw("survey-none-of-the-above"),b,c)}; +h8a=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)}); +g8a(a,!0)}; +g8a=function(a,b){var c=a.D;a=i8a(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof my&&!c.j.D&&Wsa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())}; +i8a=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()}; +O0=function(a,b,c,d,e){N0.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])}); +var f=this;this.hide()}; +P0=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ea("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ea("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ea("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +l8a=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.Q(c,YH)?j8a(a,g.Q(c,YH),a.macros):g.Q(c,XH)&&k8a(a,g.Q(c,XH),a.macros);a.j=b}; +j8a=function(a,b,c){var d=new O0(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Zw("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; +k8a=function(a,b,c){var d=new e8a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Zw("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; +Q0=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ea("ytp-ad-survey-interstitial");this.B=this.Ea("ytp-ad-survey-interstitial-contents");this.text=this.Ea("ytp-ad-survey-interstitial-text"); +this.logoImage=this.Ea("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Xx(this,500,!1,300);g.P(this,this.transition)}; +n8a=function(a,b){b=b&&Hx(b)||"";if(g.rb(b))g.Cw(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Kla(d.style);b=new g.td([c,Hba(m8a,b)].map(Fba).join(""),Bd);a.style.cssText=ud(b)}}; +o8a=function(a){var b=g.de("html5-video-player");b&&g.$o(b,"ytp-ad-display-override",a)}; +R0=function(a){this.content=a.content;if(a.commandRuns){a=g.w(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.Q(b,p8a),b.onTap&&(this.interaction={onTap:b.onTap})}}; +S0=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()}; +T0=function(a,b,c,d){jx.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.adBadgeText.Ja(this.element);g.P(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +U0=function(a,b,c,d,e,f){f=f===void 0?0:f;Ux.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Ea("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Xx(this,400,!1,100,function(){h.hide()}); +g.P(this,this.transition);this.hide()}; +V0=function(a,b,c,d){jx.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()}; +q8a=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +W0=function(a,b,c,d){jx.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()}; +r8a=function(a,b,c,d,e){Ux.call(this,a,{I:"div",Na:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new V0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.adAvatar);oe(this.element,this.adAvatar.element,0);this.headline=new S0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb);g.P(this,this.headline);this.headline.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.description);this.description.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new W0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb);g.P(this,this.adButton);this.adButton.Ja(this.element);this.hide()}; +s8a=function(a,b,c,d){jx.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ea("ytp-skip-ad-button__text");this.transition=new g.Xx(this,500,!1,100,function(){e.hide()}); +g.P(this,this.transition);this.j=new cy(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.j);this.hide()}; +t8a=function(a,b,c,d,e){Ux.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j);g.P(this,this.B);this.B.Ja(this.element);this.C=new s8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.C);this.C.Ja(this.element);this.hide()}; +X0=function(a,b,c,d){jx.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()}; +Y0=function(a,b,c,d,e){jx.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Ea("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ea("ytp-ad-player-overlay-layout__ad-info-container"); +this.G=this.Ea("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Ea("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; +Z0=function(a,b,c){Mx.call(this,a);this.api=a;this.jb=b;this.B={};a=new g.S({I:"div",Na:["video-ads","ytp-ad-module"]});g.P(this,a);YN&&g.Wo(a.element,"ytp-ads-tiny-mode");this.G=new lv(a.element);g.P(this,this.G);g.sR(this.api,a.element,4);nI(c)&&(c=new g.S({I:"div",Na:["ytp-ad-underlay"]}),g.P(this,c),this.C=new lv(c.element),g.P(this,this.C),g.sR(this.api,c.element,0));g.P(this,ysa())}; +u8a=function(a,b){a=g.Dc(a.B,b.id,null);a==null&&g.Cw(Error("Component not found for element id: "+b.id));return a||null}; +v8a=function(a){g.VT.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new v6a(this.player):new c0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new C6a({No:H0(b.j).No,Kf:H0(b.j).Kf,J:b.player,Dl:H0(b.j).Dl,Oa:b.j.j.Oa,Ol:H0(b.j).Ol,od:b.j.j.od});b.B=d.N6;return b.B}; +this.j=new F7a(this.player,this,this.C,this.D);g.P(this,this.j);var c=a.U();!lC(c)||g.BO(c)||HO(c)||(g.P(this,new Z0(a,H0(this.j).jb,H0(this.j).Dl)),g.P(this,new G7a(a)))}; +w8a=function(a){a.created!==a.loaded&&gy("Created and loaded are out of sync")}; +z8a=function(a){g.VT.prototype.load.call(a);var b=H0(a.j).Dl;try{a.player.getRootNode().classList.add("ad-created")}catch(l){gy(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.kb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.Q(l,eI)}); +e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Vb();b=x8a(f,h,b,H0(a.j).Ax);f=c&&c.clientPlaybackNonce||"";c=c&&c.Jp||!1;h=1E3*a.player.getDuration(1);y8a(a);a.j.j.sy.Lk(f,h,c,b.VL,b.dX,b.VL,e,d)}; +y8a=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Jp)||g.Hq("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=lC(b)&&!g.kC(b)&&b.playerStyle==="desktop-polymer";c&&(b=a.player.getInternalApi(),(a=a.player.getInternalApi())?(a.addEventListener("updateKevlarOrC3Companion",bta),a.addEventListener("updateEngagementPanelAction",cta),a.addEventListener("changeEngagementPanelVisibility",dta)):(b.addEventListener("updateKevlarOrC3Companion",bta),b.addEventListener("updateEngagementPanelAction", +cta),b.addEventListener("changeEngagementPanelVisibility",dta)),window.addEventListener("yt-navigate-start",fta))}; +$0=function(a,b){b===a.Bt&&(a.Bt=void 0)}; +A8a=function(a){var b=H0(a.j).Rd,c=b.D().pQ("SLOT_TYPE_PLAYER_BYTES",1);b=zF(b.Sa.get(),1).clientPlaybackNonce;var d=!1;c=g.w(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof iH?e.slotEntryTrigger.Kv:void 0;f&&f===b&&(d&&gy("More than 1 preroll playerBytes slot detected",e),d=!0)}d||t0(H0(a.j).SB)}; +B8a=function(a){if(j0(H0(a.j).Dl))return!0;var b="";a=g.w(H0(a.j).Ol.pj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Za==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&gy("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; +C8a=function(a){a=g.w(H0(a.j).Ol.pj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +Dya=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=H0(a.j).Dl,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Vb();c=x8a(b,c,f,H0(a.j).Ax);Hya(H0(a.j).Td,d,c.VL,c.dX,b,e)}; +x8a=function(a,b,c,d){b={VL:[],dX:b};a=g.w(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.Q((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,FI)?(h=g.Q((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,FI),h=MAa(h,p),g.Hw(f.sandwichedLinearAdRenderer.adVideoStart,FI,h)):g.Q((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,FI)&& +(m=g.Q((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,FI),h=MAa(m,p),g.Hw(f.linearAdSequenceRenderer.adStart,FI,h))}b.VL.push(e)}return b}; +g.a1=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=Dma(a);return b.parseFromString(g.wd(a),"application/xml")}throw Error("Your browser does not support loading xml documents");}; +g.b1=function(a){g.O.call(this);this.callback=a;this.j=new jp(0,0,.4,0,.2,1,1,1);this.delay=new g.No(this.next,window,this);g.P(this,this.delay)}; +g.D8a=function(a){var b=a.U();return b.Cd&&!b.C&&g.uO(b)?a.jd()?(a=a.oo(),Math.min(a.width,a.height)>=315):!a.Og():!1}; +g.c1=function(a){g.S.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.oE(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.S({I:"h2",S:"ytp-related-title",va:"{{title}}"});this.previous=new g.S({I:"button",Na:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.ox()]});this.N=new g.b1(function(c){b.suggestions.element.scrollLeft=-c}); +this.next=new g.S({I:"button",Na:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.px()]});g.P(this,this.D);this.K=a.U().D;g.P(this,this.title);this.title.Ja(this.element);this.suggestions=new g.S({I:"div",S:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.Ja(this.element);g.P(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.P6,this);g.P(this,this.N);E8a(this);g.P(this,this.next);this.next.Ja(this.element);this.next.listen("click", +this.O6,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.uy);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.qb().getPlayerSize());this.onVideoDataChange()}; +E8a=function(a){for(var b={IA:0};b.IA<16;b={IA:b.IA},++b.IA){var c=new g.S({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", +va:"{{duration}}"}]}]});g.P(a,c);var d=c.Ea("ytp-suggestion-link");g.Xl(d,"transitionDelay",b.IA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.IA;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Il(),l={},g.pR(a.api,l),h=g.Ji(h,l),g.nS(h,a.api,f)):g.mS(f,a.api,a.K,m||void 0)&&a.api.vp(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b)); +c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}}; +F8a=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)}; +g.d1=function(a){var b=a.api.Hh()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.$o(a.element,"ytp-scroll-min",b>=0);g.$o(a.element,"ytp-scroll-max",b<=c)}; +H8a=function(a){for(var b=a.suggestionData.length,c=0;c>>0)+"_",e=0;return b}); +ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); +ia("Set",function(a){function b(c){this.j=new Map;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} +if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.w([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; +b.prototype.add=function(c){c=c===0?0:c;this.j.set(c,c);this.size=this.j.size;return this}; +b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; +b.prototype.clear=function(){this.j.clear();this.size=0}; +b.prototype.has=function(c){return this.j.has(c)}; +b.prototype.entries=function(){return this.j.entries()}; +b.prototype.values=function(){return this.j.values()}; +b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; +return b}); +ia("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}}); +ia("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ea(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h=f}}); +ia("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); +ia("String.prototype.repeat",function(a){return a?a:function(b){var c=Ea(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); +ia("Array.prototype.values",function(a){return a?a:function(){return Da(this,function(b,c){return c})}}); +ia("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); +ia("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push(b[d]);return c}}); +ia("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}}); +ia("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); +ia("globalThis",function(a){return a||g.da}); +ia("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}}); +ia("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); +ia("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); +ia("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}}); +ia("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}}); +ia("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); +ia("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}} +if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a; +b.prototype.add=function(c){this.j.set(c,!0);return this}; +b.prototype.has=function(c){return this.j.has(c)}; +b.prototype.delete=function(c){return this.j.delete(c)}; +return b}); +ia("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#d;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); +ia("Int8Array.prototype.copyWithin",Ga);ia("Uint8Array.prototype.copyWithin",Ga);ia("Uint8ClampedArray.prototype.copyWithin",Ga);ia("Int16Array.prototype.copyWithin",Ga);ia("Uint16Array.prototype.copyWithin",Ga);ia("Int32Array.prototype.copyWithin",Ga);ia("Uint32Array.prototype.copyWithin",Ga);ia("Float32Array.prototype.copyWithin",Ga);ia("Float64Array.prototype.copyWithin",Ga);ia("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); +ia("Int8Array.prototype.findLastIndex",Ia);ia("Uint8Array.prototype.findLastIndex",Ia);ia("Uint8ClampedArray.prototype.findLastIndex",Ia);ia("Int16Array.prototype.findLastIndex",Ia);ia("Uint16Array.prototype.findLastIndex",Ia);ia("Int32Array.prototype.findLastIndex",Ia);ia("Uint32Array.prototype.findLastIndex",Ia);ia("Float32Array.prototype.findLastIndex",Ia);ia("Float64Array.prototype.findLastIndex",Ia);ia("Number.parseInt",function(a){return a||parseInt}); +ia("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h>>0);maa=0;g.k=db.prototype;g.k.y7=function(a){var b=g.Ca.apply(1,arguments),c=this.TP(b);c?c.push(new paa(a)):this.B2(a,b)}; +g.k.B2=function(a){this.j.set(this.OV(g.Ca.apply(1,arguments)),[new paa(a)])}; +g.k.TP=function(){var a=this.OV(g.Ca.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; +g.k.b9=function(){var a=this.TP(g.Ca.apply(0,arguments));return a&&a.length?a[0]:void 0}; +g.k.clear=function(){this.j.clear()}; +g.k.OV=function(){var a=g.Ca.apply(0,arguments);return a?a.join(","):"key"};g.z(eb,db);eb.prototype.B=function(a){var b=g.Ca.apply(1,arguments),c=0,d=this.b9(b);d&&(c=d.j);this.B2(c+a,b)};g.z(gb,db);gb.prototype.Qh=function(a){this.y7(a,g.Ca.apply(1,arguments))};g.O.prototype.Mq=!1;g.O.prototype.Ka=function(){return this.Mq}; +g.O.prototype.dispose=function(){this.Mq||(this.Mq=!0,this.ya())}; +g.O.prototype[Symbol.dispose]=function(){this.dispose()}; +g.O.prototype.addOnDisposeCallback=function(a,b){this.Mq?b!==void 0?a.call(b):a():(this.zo||(this.zo=[]),b&&(a=a.bind(b)),this.zo.push(a))}; +g.O.prototype.ya=function(){if(this.zo)for(;this.zo.length;)this.zo.shift()()};g.Xa(kb,Error);kb.prototype.name="CustomError";var Uba;g.Xa(nb,kb);nb.prototype.name="AssertionError";g.ob.prototype.stopPropagation=function(){this.B=!0}; +g.ob.prototype.preventDefault=function(){this.defaultPrevented=!0};var fba=function(){if(!g.Ja.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +try{var c=function(){}; +g.Ja.addEventListener("test",c,b);g.Ja.removeEventListener("test",c,b)}catch(d){}return a}();var e1=Ma(1,!0),zb=Ma(610401301,!1),uea,Mda;Ma(899588437,!1);uea=Ma(188588736,!0);g.O8a=Ma(641353869,e1);g.P8a=Ma(644029907,e1);g.Q8a=Ma(1822726157,e1);Mda=Ma(645172343,e1);Ma(651175828,!1);Ma(653718497,e1);Ma(2147483644,!1);Ma(2147483645,!1);Ma(2147483646,e1);Ma(2147483647,!0);var Bb=!!g.La("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var vb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},taa=/&/g,uaa=//g,waa=/"/g,xaa=/'/g,yaa=/\x00/g,saa=/[\x00&<>"']/;var Cb,R8a=g.Ja.navigator;Cb=R8a?R8a.userAgentData||null:null;var Gaa,rl,sm;Gaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0); +for(var c=0;c=0;c--)if(c in a&&a[c]===b)return c;return-1}; +g.dc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;fparseFloat(X8a)){W8a=String(f1);break a}}W8a=X8a}var Uaa=W8a,Saa={};var wPa=Vaa("AnimationEnd"),rS=Vaa("TransitionEnd");g.Xa(nc,g.ob); +nc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY= +a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&nc.Of.preventDefault.call(this)}; +nc.prototype.stopPropagation=function(){nc.Of.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; +nc.prototype.preventDefault=function(){nc.Of.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Waa="closure_listenable_"+(Math.random()*1E6|0);var Xaa=0;var cba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=Ic.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=Kc(a,b,d,e);h>-1?(b=a[h],c||(b.kJ=!1)):(b=new Yaa(b,this.src,f,!!d,e),b.kJ=c,a.push(b));return b}; +g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Kc(e,b,c,d);return b>-1?(pc(e[b]),g.Qb(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1}; +g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e-1?a[e]:null}; +g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.vc(this.listeners,function(f){for(var h=0;h>>0);g.Xa(g.Vc,g.O);g.Vc.prototype[Waa]=!0;g.k=g.Vc.prototype;g.k.addEventListener=function(a,b,c,d){g.Mc(this,a,b,c,d)}; +g.k.removeEventListener=function(a,b,c,d){jba(this,a,b,c,d)}; +g.k.dispatchEvent=function(a){var b=this.OS;if(b){var c=[];for(var d=1;b;b=b.OS)c.push(b),++d}b=this.s7;d=a.type||a;if(typeof a==="string")a=new g.ob(a,b);else if(a instanceof g.ob)a.target=a.target||b;else{var e=a;a=new g.ob(d,b);g.Hc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=Wc(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Wc(h,d,!0,a)&&e,a.B||(e=Wc(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var $8a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};dd.prototype.toString=function(){return this.j}; +var oba={},nba={};fd("");var gd;g.jd.prototype.toString=function(){return this.I1+""}; +var pba={};g.md.prototype.toString=function(){return this.K1}; +g.qd=new g.md("about:invalid#zClosurez");var aQa=pd("tel"),ZPa=pd("sms"),qba=[pd("data"),pd("http"),pd("https"),pd("mailto"),pd("ftp"),new od(function(a){return/^[^:]*([/?#]|$)/.test(a)})],rba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Bd={};g.td.prototype.toString=function(){return this.H1.toString()}; +var Fla=new g.td("",Bd),uba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),tba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),sba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),vba=/\/\*/;var Cba={};g.vd.prototype.toString=function(){return this.G1.toString()}; +var a9a=/^[a-zA-Z0-9-]+$/,b9a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},c9a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},zba=new g.vd(g.Ja.trustedTypes&&g.Ja.trustedTypes.emptyHTML||"",Cba);yd.prototype.toString=function(){return this.j};zd.prototype.toString=function(){return this.J1.toString()};var d9a=bd(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.wd(zba);return!b.parentElement});g.k=g.Fd.prototype;g.k.clone=function(){return new g.Fd(this.x,this.y)}; +g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; +g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; +g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; +g.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};g.k=g.Hd.prototype;g.k.clone=function(){return new g.Hd(this.width,this.height)}; +g.k.area=function(){return this.width*this.height}; +g.k.aspectRatio=function(){return this.width/this.height}; +g.k.isEmpty=function(){return!this.area()}; +g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.k.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var Qd={};g.e9a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Vba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Xd.prototype;g.k.Ib=function(a){return $d(this.j,a)}; +g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))}; +g.k.Ea=function(a){return g.de(a,this.j)}; +g.k.setProperties=ee;g.k.createElement=function(a){return ge(this.j,a)}; +g.k.appendChild=g.ke;g.k.append=function(a,b){Zba(Yd(a),a,arguments,1)}; +g.k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +g.k.removeNode=g.pe;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}; +g.k.contains=g.qe;var ue;xe.prototype.add=function(a,b){var c=fca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c}; +xe.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a}; +var fca=new Xc(function(){return new ye},function(a){return a.reset()}); +ye.prototype.set=function(a,b){this.Km=a;this.scope=b;this.next=null}; +ye.prototype.reset=function(){this.next=this.scope=this.Km=null};var ze,Ae=!1,dca=new xe;gca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1}; +var hca=new Xc(function(){return new gca},function(a){a.reset()}); +g.De.prototype.then=function(a,b,c){return rca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; +g.De.prototype.$goog_Thenable=!0;g.k=g.De.prototype;g.k.Xk=function(a,b){return rca(this,null,a,b)}; +g.k.catch=g.De.prototype.Xk;g.k.cancel=function(a){if(this.j==0){var b=new Je(a);g.Be(function(){nca(this,b)},this)}}; +g.k.kfa=function(a){this.j=0;Ce(this,2,a)}; +g.k.lfa=function(a){this.j=0;Ce(this,3,a)}; +g.k.J8=function(){for(var a;a=oca(this);)pca(this,a,this.j,this.N);this.K=!1}; +var vca=we;g.Xa(Je,kb);Je.prototype.name="cancel";g.Xa(g.Ke,g.Vc);g.k=g.Ke.prototype;g.k.enabled=!1;g.k.ud=null;g.k.setInterval=function(a){this.dj=a;this.ud&&this.enabled?(this.stop(),this.start()):this.ud&&this.stop()}; +g.k.Vea=function(){if(this.enabled){var a=g.Wa()-this.q_;a>0&&a>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=Bf(b); +b!=null&&b!=null&&(kh(a,c,0),hh(a.j,b))}),x9a=Ah(function(a,b,c){if(a.B!==0)return!1; +Ch(b,c,Qg(a.j));return!0},function(a,b,c){b=Af(b); +b!=null&&(b=parseInt(b,10),kh(a,c,0),Cea(a.j,b))});g.z(bfa,ch);g.z(Ih,ch);var Nh=[1,2,3];var y9a=[0,Nh,u9a,o9a,s9a];var z9a=[0,j1,[0,g9a,j9a]];g.z(Jh,ch);var Mh=[1,2,3];var A9a=[0,Mh,l9a,i9a,k1,z9a];g.z(Kh,ch);var B9a=[0,j1,y9a,A9a];var C9a=[0,[1,2,3],k1,[0,i1,-1,r9a],k1,[0,i1,-1,m9a,r9a],k1,[0,i1]];g.z(Lh,ch);Lh.prototype.Jr=function(){Qda(this,3,Gf,3,void 0,!0);throw Error();};Lh.prototype.j=afa([0,i1,C9a,t9a,j1,B9a,p9a,q9a]);g.z(cfa,ch);var jfa={};g.k=Oh.prototype;g.k.isEnabled=function(){if(!g.Ja.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{rG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.bea;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.rG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+ +e:"")}; +g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e=0;b--)this.remove(a[b])}; +var yr=new Oh(typeof document=="undefined"?null:document);g.z(Rh,ch);Wh.prototype.setInterval=function(a){this.intervalMs=a;this.Ve&&this.enabled?(this.stop(),this.start()):this.Ve&&this.stop()}; +Wh.prototype.start=function(){var a=this;this.enabled=!0;this.Ve||(this.Ve=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())}; +Wh.prototype.stop=function(){this.enabled=!1;this.Ve&&(clearTimeout(this.Ve),this.Ve=void 0)}; +Wh.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.NE||this.j.enabled||this.j.start()}}; +g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Aa>d&&this.Y0&&(c.Y=Date.now(),c.Aa=c.Y+m),n=m1.j?m1.B(n,m1.j,175237375,!0):m1.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=Bg(n,1,-1),n!==-1&&(c.D=new g.Zh(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0}; +l=function(m,n){var p=Zda(e,ii);var q=$da(e,14);g.$h(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.ra=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.NE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z}; +c.network&&c.network.send(d,h,l)}}}}; +g.k.JP=function(){wfa(this.B,!0);this.flush();wfa(this.B,!1)}; +g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; +ki.prototype.KH=function(a){this.j.KH(a);return this}; +ki.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(bg(oi(this),di,11)){var h=pi(this);ag(h,3,zf(c))}bg(oi(this),di,11)&&(c=pi(this),ag(c,4,zf(e)));bg(oi(this),di,11)&&(e=pi(this),ag(e,5,zf(f)));f=this.j.clone();e=Date.now().toString();f=ag(f,4,Ef(e));a=xg(f,ii,3,a.slice());d&&(f=new Xh,d=ag(f,13,zf(d)),f=new Yh,d=wg(f,Xh,2,d),f=new hi,d=wg(f,Yh,1,d),d=Ig(d,2,9),wg(a,hi,18,d));b&&Fg(a,14,b);return a};qi.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return f=(e=d.p7?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.va(u,2,3),h=Object.assign({},{method:a.requestType, +headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.G(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ia(3);break}if((n=b)==null){u.Ia(7);break}return g.G(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.ya(u);clearTimeout(f);g.za(u,0);break;case 2:p=g.xa(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ia(3)}})}; +qi.prototype.qK=function(){return 4};g.z(ri,g.O);ri.prototype.bY=function(){this.D=!0;return this}; +ri.prototype.build=function(){this.network||(this.network=new qi);var a=new mi({logSource:this.logSource,iF:this.iF?this.iF:mfa,sessionIndex:this.sessionIndex,vfa:this.B,Mx:this.C,NE:!1,bY:this.D,qX:this.qX,network:this.network});g.P(this,a);if(this.j){var b=this.j,c=ni(a.B);Gg(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.aC&&(a.aC=this.aC);this.pageId&&(a.pageId=this.pageId);this.Rz&&((c=this.Rz)?(a.experimentIds||(a.experimentIds=new Rh),b=a.experimentIds,c=c.hn(),Gg(b,4,c)):a.experimentIds&& +ag(a.experimentIds,4));xfa(a.B);this.network.KH&&this.network.KH(this.logSource);this.network.wea&&this.network.wea(a);return a};g.z(si,g.O);si.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new cfa,c=[],d=0;d0&&(this.getStatus(),this.qa=g.Le(this.P5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a), +this.Z=!1}catch(h){this.getStatus(),Qfa(this,h)}}; +g.k.P5=function(){typeof Pi!="undefined"&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Oi(this))}; +g.k.ya=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Oi(this,!0));g.Ni.Of.ya.call(this)}; +g.k.M0=function(){this.Ka()||(this.Ga||this.Z||this.G?Rfa(this):this.Vba())}; +g.k.Vba=function(){Rfa(this)}; +g.k.isActive=function(){return!!this.j}; +g.k.isComplete=function(){return g.Qi(this)==4}; +g.k.getStatus=function(){try{return g.Qi(this)>2?this.j.status:-1}catch(a){return-1}}; +g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a}; +g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};Vi.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; +c=c===void 0?function(){}:c; +Ofa(a.url,function(d){d=d.target;Ri(d)?b(g.Si(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)}; +Vi.prototype.qK=function(){return 1};Xi.prototype.start=function(){this.startMillis=Wi()}; +Xi.prototype.done=function(){this.startMillis!=null&&this.logger.nG(this.event,Wi()-this.startMillis)}; +g.z(Yi,g.O);g.z($i,Yi);g.k=$i.prototype;g.k.E_=function(){}; +g.k.vR=function(){}; +g.k.nG=function(){}; +g.k.Pl=function(){}; +g.k.vt=function(){}; +g.k.wR=function(a,b,c){return c}; +g.k.G_=function(){}; +g.k.D_=function(){}; +g.k.F_=function(){}; +g.z(aj,Yi);g.k=aj.prototype;g.k.E_=function(){this.qa.j.qm("/client_streamz/bg/fic",this.jh)}; +g.k.vR=function(){this.Fa.j.qm("/client_streamz/bg/fsc","",this.jh)}; +g.k.nG=function(a,b){if(a==="t")this.Aa.Qh(b,"",this.jh);else if(a==="n")this.Ga.Qh(b,"",this.jh);else if(a==="h"||a==="u"||a==="k"){if(a=this.D.get(a))this.N.j.qm("/client_streamz/bg/fcc",a,this.jh),this.Z.Qh(b,a,this.jh)}else this.Y.Qh(b,a,"",this.B,this.jh)}; +g.k.Pl=function(a){var b=this.C.get(a);b?this.ra.j.qm("/client_streamz/bg/fiec","",this.jh,b):this.errorCount.j.qm("/client_streamz/bg/cec",a,"",this.B,this.jh)}; +g.k.wR=function(a,b,c){function d(h){if(!e.Ka()){var l=Wi()-f;e.Ma.Qh(l,a,b,h,e.B,e.jh)}} +var e=this,f=Wi();c.then(function(){d(0)},function(h){h instanceof ti?d(h.code):d(-1)}); +return c}; +g.k.G_=function(a){this.Ra.j.qm("/client_streamz/bg/po/csc",a,this.B,this.jh)}; +g.k.D_=function(a){this.K.j.qm("/client_streamz/bg/po/ctav",a,this.B,this.jh)}; +g.k.F_=function(a){this.La.j.qm("/client_streamz/bg/po/cwsc",a,this.B,this.jh)}; +g.k.vt=function(){this.j.JN()};g.z(bj,ch);g.z(cj,ch);g.z(dj,ch);var G9a=Hh(dj),Vfa=function(a){return vf(function(b){return b instanceof a&&!(kf(b.xb)&2)})}(dj); +dj.messageId="bfkj";g.z(fj,g.O);fj.prototype.snapshot=function(a){var b=this;if(this.Ka())throw Error("Already disposed");this.Uf.vR();return this.B.then(function(c){var d=c.E7;return new Promise(function(e){var f=new Xi(b.Uf,"n");d(function(h){f.done();b.Uf.vt();e(h)},[a.zl, +a.eU,a.e4,a.hU])})})}; +fj.prototype.Q2=function(a){var b=this;if(this.Ka())throw Error("Already disposed");this.Uf.vR();var c=Zi(this.Uf,function(){return b.C([a.zl,a.eU,a.e4,a.hU])},"n"); +this.Uf.vt();return c}; +fj.prototype.WL=function(a){this.B.then(function(b){var c;(c=b.cda)==null||c(a)})}; +g.z(gj,Error);g.z(kj,ch);g.z(lj,ch);g.z(mj,ch);nj.prototype.bF=function(a,b){var c=this,d,e,f,h,l;return g.J(function(m){if(m.j==1){var n=new kj;d=Hg(n,1,c.hC);a&&Hg(d,2,a);b&&Hg(d,3,b);e=c.j();return g.G(m,c.client.create(d,e),2)}f=m.B;h=Ze(ig(f,2));if(h.length){n=m.return;var p=new Uint8Array(h.length);for(var q=0;q0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.z(wj,g.O);wj.prototype.Xx=function(a,b){var c=this.Pu(a);b==null||b(c);return Zi(this.logger,function(){return g.Qe(c,2)},this.j)}; +g.z(zj,wj);zj.prototype.Pu=function(a,b){var c=this;++this.G>=this.K&&this.C.resolve();var d=a();a=Zi(this.logger,function(){return c.D(d)},"C"); +if(a===void 0)throw new gj(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new gj(18,"ODM:Invalid");b==null||b(a);return a}; +g.z(Aj,wj);Aj.prototype.Pu=function(){return this.D}; +g.z(Bj,wj);Bj.prototype.Pu=function(){var a=this;return Zi(this.logger,function(){return Se(a.D)},"d")}; +Bj.prototype.Xx=function(){return this.D}; +g.z(Cj,wj);Cj.prototype.Pu=function(){if(this.D)return this.D;this.D=Bga(this,function(a){return"_"+zga(a)}); +return Bga(this,function(a){return a})}; +g.z(Gj,wj);Gj.prototype.Pu=function(a){var b=a();if(b.length>118)throw new gj(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.D&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d150))try{this.cache=new uga(a,this.logger)}catch(b){this.reportError(new gj(22,"GBJ:init",b))}}; +Hj.prototype.reportError=function(a){this.logger.Pl(a.code);this.onError(a);return a}; +(function(a){return vf(function(b){if(!kU(b))return!1;for(var c=g.w(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.Joa===!0)continue;return!1}if(!e(b[d]))return!1}return!0})})({Ri:function(a){return vf(function(b){return b instanceof a})}(pj)},"");g.z(Jj,ch);var I9a=Hh(Jj);Hga.prototype.getMetadata=function(){return this.C};Kj.prototype.getMetadata=function(){return this.j}; +Kj.prototype.getStatus=function(){return null};Lj.prototype.getName=function(){return this.name}; +Lj.prototype.getName=Lj.prototype.getName;var J9a=new Lj("/google.internal.waa.v1.Waa/Create",kj,Jj,function(a){return a.hn()},I9a);g.z(Mj,ch);var aga=new Lj("/google.internal.waa.v1.Waa/GenerateIT",lj,Mj,function(a){return a.hn()},Hh(Mj));g.z(Nj,ch);var K9a=new Lj("/google.internal.waa.v1.Waa/Ping",mj,Nj,function(a){return a.hn()},Hh(Nj));var iha=new Set(["SAPISIDHASH","APISIDHASH"]);var dha=Promise;g.z(Oj,ch);Oj.prototype.getValue=function(){var a=Yf(this,2);if(Array.isArray(a)||a instanceof ch)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ig(this,2)};g.z(Pj,ch);Pj.prototype.getMessage=function(){return Dg(this,2)}; +var Nga=Hh(Pj);Qj.prototype.on=function(a,b){a=="data"?this.C.push(b):a=="metadata"?this.G.push(b):a=="status"?this.K.push(b):a=="end"?this.D.push(b):a=="error"&&this.B.push(b);return this}; +Qj.prototype.removeListener=function(a,b){a=="data"?Uj(this.C,b):a=="metadata"?Uj(this.G,b):a=="status"?Uj(this.K,b):a=="end"?Uj(this.D,b):a=="error"&&Uj(this.B,b);return this}; +Qj.prototype.cancel=function(){this.j.abort()}; +Qj.prototype.cancel=Qj.prototype.cancel;Qj.prototype.removeListener=Qj.prototype.removeListener;Qj.prototype.on=Qj.prototype.on;g.Xa(g.Vj,wi);g.Vj.prototype.j=function(){var a=new Wj(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a}; +g.Vj.prototype.D=Yc({});g.Vj.prototype.setCredentialsMode=function(a){this.B=a}; +g.Xa(Wj,g.Vc);g.k=Wj.prototype;g.k.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Y=b;this.readyState=1;Xj(this)}; +g.k.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Ja).fetch(new Request(this.Y,b)).then(this.V9.bind(this),this.zK.bind(this))}; +g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,Yj(this));this.readyState=0}; +g.k.V9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,Xj(this)),this.j&&(this.readyState=3,Xj(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.T9.bind(this),this.zK.bind(this));else if(typeof g.Ja.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= +[]}else this.response=this.responseText="",this.N=new TextDecoder;Oga(this)}else a.text().then(this.U9.bind(this),this.zK.bind(this))}; +g.k.K9=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Yj(this):Xj(this);this.readyState==3&&Oga(this)}}; +g.k.U9=function(a){this.j&&(this.response=this.responseText=a,Yj(this))}; +g.k.T9=function(a){this.j&&(this.response=a,Yj(this))}; +g.k.zK=function(){this.j&&Yj(this)}; +g.k.setRequestHeader=function(a,b){this.Z.append(a,b)}; +g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""}; +g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; +g.k.setCredentialsMode=function(a){this.G=a}; +Object.defineProperty(Wj.prototype,"withCredentials",{get:function(){return this.G==="include"}, +set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Zj.prototype.toString=function(){var a=[],b=this.G;b&&a.push(gk(b,L9a,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(gk(b,L9a,!0),"@"),a.push(g.Rd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(gk(c,c.charAt(0)=="/"?M9a:N9a,!0));(c=this.D.toString())&&a.push("?",c);(c=this.K)&&a.push("#",gk(c,O9a));return a.join("")}; +g.Zj.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.ak(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.bk(b,a.j):c=a.C!=null;var d=a.B;if(c)g.ck(b,a.C);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.tb(e,"./")||g.tb(e,"/.")){d=qb(e,"/");e=e.split("/");for(var f=[],h=0;h1||f.length==1&&f[0]!="")&&f.pop(), +d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.D.toString()!=="";c?dk(b,a.D.clone()):c=!!a.K;c&&(b.K=a.K);return b}; +g.Zj.prototype.clone=function(){return new g.Zj(this)}; +var L9a=/[#\/\?@]/g,N9a=/[#\?:]/g,M9a=/[#\?]/g,Qga=/[#\?@]/g,O9a=/#/g;g.k=fk.prototype;g.k.add=function(a,b){jk(this);this.C=null;a=kk(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this}; +g.k.remove=function(a){jk(this);a=kk(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1}; +g.k.clear=function(){this.j=this.C=null;this.B=0}; +g.k.isEmpty=function(){jk(this);return this.B==0}; +g.k.forEach=function(a,b){jk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; +g.k.ao=function(){jk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d0?String(a[0]):b}; +g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c>>3;f.C!=1&&f.C!=2&&f.C!=15&&ok(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} +function c(m){f.D++;f.D==5&&m&240&&ok(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())} +function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} +function e(){if(f.C<15){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0} +for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l0?a:null};pk.prototype.isInputValid=function(){return this.j===null}; +pk.prototype.Wf=function(){return this.j}; +pk.prototype.TI=function(){return!1}; +pk.prototype.parse=function(a){this.j!==null&&Yga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Xga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Xca(c.j.slice(0,d*4))}catch(h){Xga(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){Yga(this,a,h.message)}this.B+=a.length;return b};var Q9a={INIT:0,gE:1,eO:2,Cz:3,YC:4,XC:5,STRING:6,cO:7,uW:8,JW:9,KW:10,LW:11,XU:12,YU:13,ZU:14,aV:15,yW:16,zW:17,BW:18,c7:19,dO:20};g.k=rk.prototype;g.k.isInputValid=function(){return this.G!=3}; +g.k.Wf=function(){return this.Y}; +g.k.done=function(){return this.G===2}; +g.k.TI=function(){return!1}; +g.k.parse=function(a){function b(){for(;r0;)if(u=a[r++], +f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-y;continue;case m.JW:if(!u)continue;u==="r"?f.j=m.KW:sk(f,a,r);continue;case m.KW:if(!u)continue;u==="u"?f.j=m.LW:sk(f,a,r);continue;case m.LW:if(!u)continue;u==="e"?f.j=d():sk(f,a,r);continue;case m.XU:if(!u)continue;u==="a"?f.j=m.YU: +sk(f,a,r);continue;case m.YU:if(!u)continue;u==="l"?f.j=m.ZU:sk(f,a,r);continue;case m.ZU:if(!u)continue;u==="s"?f.j=m.aV:sk(f,a,r);continue;case m.aV:if(!u)continue;u==="e"?f.j=d():sk(f,a,r);continue;case m.yW:if(!u)continue;u==="u"?f.j=m.zW:sk(f,a,r);continue;case m.zW:if(!u)continue;u==="l"?f.j=m.BW:sk(f,a,r);continue;case m.BW:if(!u)continue;u==="l"?f.j=d():sk(f,a,r);continue;case m.c7:u==="."?f.j=m.dO:sk(f,a,r);continue;case m.dO:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j= +d();continue;default:sk(f,a,r)}}} +function d(){var u=h.pop();return u!=null?u:m.gE} +function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)} +for(var f=this,h=f.ra,l=f.Aa,m=Q9a,n=a.length,p=0,q=-1,r=0;r0?(t=f.K,f.K=[],t):null}return null};tk.prototype.isInputValid=function(){return this.G===null}; +tk.prototype.Wf=function(){return this.G}; +tk.prototype.TI=function(){return!1}; +tk.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);} +function c(){f.C=new rk({Qma:!0,k8:!0})} +function d(m){if(m)for(var n=0;n1)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}} +for(var f=this,h=0;h0?(a=f.D,f.D=[],a):null};uk.prototype.vQ=function(){return this.j}; +uk.prototype.getStatus=function(){return this.D}; +uk.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Qi(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Si(this.j);a=[];if(g.Ti(this.j)instanceof Array){var f=g.Ti(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?vk(this,7):c==7?vk(this,8):d||vk(this,3)),this.B||(this.B=Zga(this.j),this.B==null&&vk(this,5)),this.D>2)wk(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.TI())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);n!=null&&this.G&&this.G(n)}catch(p){vk(this,5);wk(this);break a}}b==4?(e.length!= +0||this.Y?vk(this,2):vk(this,4),wk(this)):vk(this,1)}}}catch(p){vk(this,6),wk(this)}};g.k=$ga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this}; +g.k.addListener=function(a,b){this.on(a,b);return this}; +g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Rb(c,b);(a=this.j[a])&&g.Rb(a,b);return this}; +g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; +g.k.Qaa=function(a){var b=this.B.data;b&&aha(a,b);(b=this.j.data)&&aha(a,b);this.j.data=[]}; +g.k.Fca=function(){switch(this.C.getStatus()){case 1:xk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:xk(this,"error");break;case 8:xk(this,"close");break;case 2:xk(this,"end")}};bha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return cha(function(h){var l=h.j,m=h.getMetadata(),n=fha(e,!1);m=gha(e,m,n,f+l.getName());var p=hha(n,l.B,!0);h=l.j(h.B);n.send(m,"POST",h);return p},this.D).call(this,Iga(d,b,c))};yk.prototype.create=function(a,b){return oj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},J9a)}; +yk.prototype.ping=function(a,b){return oj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},K9a)};var R9a=1,Gk=new WeakMap;g.z(zk,g.O);zk.prototype.signal=function(){var a=new Bk(!1);this.signals.add(a);g.P(this,a);return a}; +zk.prototype.dB=function(a){return Ak(this,a).dB()}; +g.z(Bk,g.O);g.k=Bk.prototype;g.k.xO=function(){var a=this,b=R9a++;Ck(function(){jha(a,b)}); +return b}; +g.k.detach=function(a){var b=this;Ck(function(){var c=b.slots.get(a);c&&c.YX()})}; +g.k.value=function(a){return this.promise(!0,a)}; +g.k.dB=function(){return this.o_}; +g.k.next=function(a){return this.promise(!1,a)}; +g.k.promise=function(a,b){var c=this,d=mca();Ck(function(){if(c.Ka())d.reject(new Je("Signal initially disposed"));else if(b&&b.Ka())d.reject(new Je("Owner initially disposed"));else if(a&&c.vX&&c.sZ)d.resolve(c.o_);else if(c.mC.add(d),Ie(d.promise,function(){c.mC.delete(d)}),b){var e=function(){d.reject(new Je("Owner asynchronously disposed"))}; +Ie(d.promise,function(){var f=Gk.get(b);f&&g.Rb(f,e)}); +mha(b,e)}}); +return d.promise}; +g.k.ya=function(){var a=this;g.O.prototype.ya.call(this);Ck(function(){for(var b=g.w(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.YX,c();a.slots.clear();b=g.w(a.mC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Je("Signal asynchronously disposed"));a.mC.clear()})}; +var Ek=[],Fk=!1;g.z(Hk,g.O);Hk.prototype.start=function(){var a=this;if(this.Ka())throw new Nk("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Dk(Ak(d,a.C),a)}a.Cb.DS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3; +a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Dk(Ak(d,a.C),a)}a.Cb.DS(a)},this.milliseconds); +this.state=1}}; +Hk.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Mk);var b;(b=this.Cb.s0)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&Dk(Ak(c,this.G))}}}; +Hk.prototype.ya=function(){this.clear();var a;(a=this.B)==null||a.reject(new Nk);this.state=4;g.O.prototype.ya.call(this)}; +Hk.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.da.Object.defineProperties(Hk.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, +isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, +isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, +tick:{configurable:!0,enumerable:!0,get:function(){return this.D}}, +Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.ej),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Mk("Timer has been cancelled."));case 4:return Promise.reject(new Nk("Timer has been disposed."));default:Ld(this.state)}}}, +DS:{configurable:!0,enumerable:!0,get:function(){if(this.Ka())throw new Nk("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new zk(this)),this.C=this.j.signal());return this.C}}, +s0:{configurable:!0,enumerable:!0,get:function(){if(this.Ka())throw new Nk("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new zk(this)),this.G=this.j.signal());return this.G}}}); +g.z(Mk,kb);g.z(Nk,kb);g.z(Ok,Hj);g.k=Ok.prototype;g.k.isReady=function(){return!!this.j}; +g.k.ready=function(){var a=this;return g.J(function(b){return g.G(b,a.C.promise,0)})}; +g.k.bF=function(a){return qha(this,this.logger.wR("c",a===void 0?1:a,this.ex.bF(ij().j,null)),new gj(10,"JVZ:Timeout"))}; +g.k.prefetch=function(){this.state===1&&(this.MF=this.bF())}; +g.k.start=function(){if(this.state===1){this.state=2;var a=new Xi(this.logger,"r");this.ready().finally(function(){return void a.done()}); +sha(this)}}; +g.k.Pu=function(a){tha(this,a);return Gga(this,pha(a),!1)}; +g.k.Xx=function(a){tha(this,a);return Gga(this,pha(a),!0)};var xha={NONE:0,Dha:1},dia={H4:0,Gka:1,Fka:2,Hka:3},yl={s4:"a",yha:"d",VIDEO:"v"};Qk.prototype.isVisible=function(){return this.Hx?this.Ae>=.3:this.Ae>=.5};var $k={iha:0,Tha:1},bia={NONE:0,Iia:1,aia:2};Rk.prototype.getValue=function(){return this.B}; +g.z(Sk,Rk);Sk.prototype.C=function(a){this.B===null&&g.Ac(this.D,a)&&(this.B=a)}; +g.z(Tk,Rk);Tk.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)}; +g.z(Uk,Rk);Uk.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};Vk.prototype.disable=function(){this.B=!1}; +Vk.prototype.enable=function(){this.B=!0}; +Vk.prototype.isEnabled=function(){return this.B}; +Vk.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var um=document,dl=window;var fja=!g.Zl&&!Jb();al.prototype.now=function(){return 0}; +al.prototype.B=function(){return 0}; +al.prototype.C=function(){return 0}; +al.prototype.j=function(){return 0};g.z(cl,al);cl.prototype.now=function(){return bl()&&dl.performance.now?dl.performance.now():al.prototype.now.call(this)}; +cl.prototype.B=function(){return bl()&&dl.performance.memory?dl.performance.memory.totalJSHeapSize||0:al.prototype.B.call(this)}; +cl.prototype.C=function(){return bl()&&dl.performance.memory?dl.performance.memory.usedJSHeapSize||0:al.prototype.C.call(this)}; +cl.prototype.j=function(){return bl()&&dl.performance.memory?dl.performance.memory.jsHeapSizeLimit||0:al.prototype.j.call(this)};var Aha=bd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +g.Ja.addEventListener("test",null,b)}catch(c){}return a});Bha.prototype.isVisible=function(){return gl(um)===1};fd("csi.gstatic.com");fd("googleads.g.doubleclick.net");fd("partner.googleadservices.com");fd("pubads.g.doubleclick.net");fd("securepubads.g.doubleclick.net");fd("tpc.googlesyndication.com");var Dha={Tfa:"allow-forms",Ufa:"allow-modals",Vfa:"allow-orientation-lock",Wfa:"allow-pointer-lock",Xfa:"allow-popups",Yfa:"allow-popups-to-escape-sandbox",Zfa:"allow-presentation",aga:"allow-same-origin",cga:"allow-scripts",dga:"allow-top-navigation",ega:"allow-top-navigation-by-user-activation"},Hha=bd(function(){return Eha()});var Lha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");ll.prototype.Be=function(a,b,c){a=a+"//"+b+c;var d=Pha(this)-c.length;if(d<0)return"";this.j.sort(function(n,p){return n-p}); +c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.C;break}c=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};tl.prototype.setInterval=function(a,b){return dl.setInterval(a,b)}; +tl.prototype.clearInterval=function(a){dl.clearInterval(a)}; +tl.prototype.setTimeout=function(a,b){return dl.setTimeout(a,b)}; +tl.prototype.clearTimeout=function(a){dl.clearTimeout(a)};g.z(vl,ch);vl.prototype.j=afa([0,h9a,k9a,-2,n9a]);var cia={oka:1,o7:2,Gja:3};eia.prototype.cT=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Lc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var n1=null;var Bl=g.Ja.performance,S9a=!!(Bl&&Bl.mark&&Bl.measure&&Bl.clearMarks),zl=bd(function(){var a;if(a=S9a){var b;if(n1===null){n1="";try{a="";try{a=g.Ja.top.location.hash}catch(c){a=g.Ja.location.hash}a&&(n1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=n1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a}); +Al.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(zl()&&g.dc(this.events,kia),this.events.length=0)}; +Al.prototype.start=function(a,b){if(!this.j)return null;var c=iia()||hia();a=new jia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Bl&&zl()&&Bl.mark(b);return a}; +Al.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=iia()||hia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Bl&&zl()&&Bl.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};lia.prototype.zR=function(a,b,c,d,e){e=e||this.kY;try{var f=new ll;f.j.push(1);f.B[1]=ml("context",a);b.error&&b.meta&&b.id||(b=new Fl(Gl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=ml("msg",h)}var l=b.meta||{};if(this.sO)try{this.sO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Nha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=ml("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(Ai);var r=yi(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5); +f.B[5]=n;fia(this.j,e,f,c)}catch(t){try{fia(this.j,e,{context:"ecmserr",rctx:a,msg:Gl(t),url:m&&m.j.url},c)}catch(u){}}return this.fU}; +g.z(Fl,gia);var Dl,El,Cl=new Al;Dl=new function(){var a="https:";dl&&dl.location&&dl.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01}; +El=new lia;dl&&dl.document&&(dl.document.readyState=="complete"?nia():Cl.j&&fl(dl,"load",function(){nia()}));var qia=Date.now(),Nl=-1,Ll=-1,Hja,Ol=-1,Ml=!1;g.k=Pl.prototype;g.k.getHeight=function(){return this.bottom-this.top}; +g.k.clone=function(){return new Pl(this.top,this.right,this.bottom,this.left)}; +g.k.contains=function(a){return this&&a?a instanceof Pl?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; +g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; +g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; +g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; +g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Sl.prototype.Ib=function(){return this.N};var T9a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},pn={i7:"start",M4:"firstquartile",Z6:"midpoint",j7:"thirdquartile",COMPLETE:"complete",ERROR:"error",Y6:"metric",PAUSE:"pause",e7:"resume",f7:"skip",n7:"viewable_impression",b7:"mute",l7:"unmute",N4:"fullscreen",K4:"exitfullscreen",A4:"bufferstart",z4:"bufferfinish",O4:"fully_viewable_audible_half_duration_impression",X6:"measurable_impression",q4:"abandon",J4:"engagedview",S4:"impression",E4:"creativeview",W6:"loaded", +ska:"progress",CLOSE:"close",eha:"collapse",aka:"overlay_resize",bka:"overlay_unmeasurable_impression",cka:"overlay_unviewable_impression",fka:"overlay_viewable_immediate_impression",dka:"overlay_viewable_end_of_session_impression",F4:"custom_metric_viewable",t4:"audio_audible",v4:"audio_measurable",u4:"audio_impression"},Ska="start firstquartile midpoint thirdquartile resume loaded".split(" "),Tka=["start","firstquartile","midpoint","thirdquartile"],Jja=["abandon"],Jn={UNKNOWN:-1,i7:0,M4:1,Z6:2, +j7:3,COMPLETE:4,Y6:5,PAUSE:6,e7:7,f7:8,n7:9,b7:10,l7:11,N4:12,K4:13,O4:14,X6:15,q4:16,J4:17,S4:18,E4:19,W6:20,F4:21,A4:22,z4:23,u4:27,v4:28,t4:29};var tia={Kfa:"addEventListener",cia:"getMaxSize",dia:"getScreenSize",fia:"getState",gia:"getVersion",Bka:"removeEventListener",eja:"isViewable"};g.k=g.Ul.prototype;g.k.clone=function(){return new g.Ul(this.left,this.top,this.width,this.height)}; +g.k.contains=function(a){return a instanceof g.Fd?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; +g.k.getSize=function(){return new g.Hd(this.width,this.height)}; +g.k.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.k.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.k.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.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var xia={};Gia.prototype.update=function(a){a&&a.document&&(this.N=Tl(!1,a,this.isMobileDevice),this.j=Tl(!0,a,this.isMobileDevice),Iia(this,a),Hia(this,a))};wm.prototype.cancel=function(){ul().clearTimeout(this.j);this.j=null}; +wm.prototype.schedule=function(){var a=this,b=ul(),c=xl().j.j;this.j=b.setTimeout(wl(c,Il(143,function(){a.B++;a.C.sample()})),ria())};g.k=xm.prototype;g.k.yD=function(){return!1}; +g.k.initialize=function(){return this.isInitialized=!0}; +g.k.qA=function(){return this.j.Ga}; +g.k.HF=function(){return this.j.qa}; +g.k.aj=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Ga=a,this.Z=0,this.j!=this||zm(this)}; +g.k.getName=function(){return this.j.Ra}; +g.k.Wt=function(){return this.j.JY()}; +g.k.JY=function(){return{}}; +g.k.Qr=function(){return this.j.Z}; +g.k.PV=function(){var a=tm();a.j=Tl(!0,this.C,a.isMobileDevice)}; +g.k.QV=function(){Hia(tm(),this.C)}; +g.k.ZY=function(){return this.D.j}; +g.k.sample=function(){}; +g.k.isActive=function(){return this.j.K}; +g.k.CA=function(a){var b=this.j;this.j=a.Qr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,zm(this)):this.K!==this.j.K&&(this.K=this.j.K,zm(this))}; +g.k.nu=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&Lia(this)}}; +g.k.Kq=function(){return this.Y}; +g.k.dispose=function(){this.Fa=!0}; +g.k.Ka=function(){return this.Fa};g.k=Am.prototype;g.k.KN=function(){return!0}; +g.k.LI=function(){}; +g.k.dispose=function(){if(!this.Ka()){var a=this.B;g.Rb(a.G,this);a.Y&&this.Kq()&&Kia(a);this.LI();this.qa=!0}}; +g.k.Ka=function(){return this.qa}; +g.k.Wt=function(){return this.B.Wt()}; +g.k.Qr=function(){return this.B.Qr()}; +g.k.qA=function(){return this.B.qA()}; +g.k.HF=function(){return this.B.HF()}; +g.k.CA=function(){}; +g.k.nu=function(){this.Gt()}; +g.k.Kq=function(){return this.ra};g.k=Bm.prototype;g.k.Qr=function(){return this.j.Qr()}; +g.k.qA=function(){return this.j.qA()}; +g.k.HF=function(){return this.j.HF()}; +g.k.create=function(a,b,c){var d=null;this.j&&(d=this.MI(a,b,c),ym(this.j,d));return d}; +g.k.RV=function(){return this.zD()}; +g.k.zD=function(){return!1}; +g.k.init=function(a){return this.j.initialize()?(ym(this.j,this),this.D=a,!0):!1}; +g.k.CA=function(a){a.Qr()==0&&this.D(a.qA(),this)}; +g.k.nu=function(){}; +g.k.Kq=function(){return!1}; +g.k.dispose=function(){this.G=!0}; +g.k.Ka=function(){return this.G}; +g.k.Wt=function(){return{}};Cm.prototype.add=function(a,b,c){++this.C;a=new Mia(a,b,c);this.j.push(new Mia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Ria.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Em(this.j);b.length>0&&(a+="?"+b);return a};Fm.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(c===void 0?!a:c)this.D=0};var Wia=[1,.75,.5,.3,0];Gm.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Mm.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.Ae):b.Ae;this.ra=Math.max(this.ra,b.Ae);this.Aa=this.Aa!=-1?Math.min(this.Aa,b.Uk):b.Uk;this.Ga=Math.max(this.Ga,b.Uk);this.Xa.update(b.Uk,c.Uk,b.j,a,d);this.B.update(b.Ae,c.Ae,b.j,a,d);c=d||c.Hx!=b.Hx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)}; +Mm.prototype.us=function(){return this.Ra.C>=this.Ya};if(um&&um.URL){var U9a=um.URL,V9a;if(V9a=!!U9a){var W9a;a:{if(U9a){var X9a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var o1=X9a.exec(decodeURIComponent(U9a));if(o1){W9a=o1[1]&&o1[1].length>1?o1[1].substring(1):"true";break a}}catch(a){}}W9a=""}V9a=W9a.length>0}El.fU=!V9a};var Y9a=new Pl(0,0,0,0);var dja=new Pl(0,0,0,0);g.z(Rm,g.O);g.k=Rm.prototype; +g.k.ya=function(){if(this.qk.j){if(this.Vw.MR){var a=this.qk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Vw.MR,el());this.Vw.MR=null}this.Vw.LR&&(a=this.qk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Vw.LR,el()),this.Vw.LR=null)}this.XH&&this.XH.dispose();this.Yf&&this.Yf.dispose();delete this.gL;delete this.AR;delete this.K3;delete this.qk.Ku;delete this.qk.j;delete this.Vw;delete this.XH;delete this.Yf;delete this.Lc;g.O.prototype.ya.call(this)}; +g.k.au=function(){return this.Yf?this.Yf.j:this.position}; +g.k.cT=function(a){xl().cT(a)}; +g.k.Kq=function(){return!1}; +g.k.iK=function(){return new Mm}; +g.k.Dj=function(){return this.gL}; +g.k.OY=function(a){return hja(this,a,1E4)}; +g.k.Ta=function(a,b,c,d,e,f,h){this.wu||(this.TE&&(a=this.GO(a,c,e,h),d=d&&this.wi.Ae>=(this.Hx()?.3:.5),this.KU(f,a,d),this.qq=b,a.Ae>0&&-1===this.m3&&(this.m3=b),this.s3==-1&&this.us()&&(this.s3=b),this.uR==-2&&(this.uR=Pm(this.au())?a.Ae:-1),this.wi=a),this.AR(this))}; +g.k.KU=function(a,b,c){this.Dj().update(a,b,this.wi,c)}; +g.k.jQ=function(){return new Qk}; +g.k.GO=function(a,b,c,d){c=this.jQ();c.j=b;b=ul().B;b=gl(um)===0?-1:b.isVisible()?0:1;c.B=b;c.Ae=this.bP(a);c.Hx=this.Hx();c.Uk=d;return c}; +g.k.bP=function(a){return this.opacity===0&&Yk(this.Lc,"opac")===1?0:a}; +g.k.Hx=function(){return!1}; +g.k.KM=function(){return this.u$||this.x$}; +g.k.Zx=function(){Kl()}; +g.k.xB=function(){Kl()}; +g.k.Yp=function(){return 0}; +g.k.us=function(){return this.gL.us()}; +g.k.cZ=function(){var a=this.TE;a=(this.hasCompleted||this.Ka())&&!a;var b=xl().B!==2||this.cfa;return this.wu||b&&a?2:this.us()?4:3}; +g.k.WJ=function(){return 0};g.Tm.prototype.next=function(){return g.p1}; +g.p1={done:!0,value:void 0};g.Tm.prototype.Am=function(){return this};g.z(nja,Qk);var q1=pja([void 0,1,2,3,4,8,16]),r1=pja([void 0,4,8,16]),Z9a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Xm("p0",r1),p1:Xm("p1",r1),p2:Xm("p2",r1),p3:Xm("p3",r1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Wm("mtos1",[0,2,4],!1,r1),mtos2:Wm("mtos2",[0,2,4],!1,r1),mtos3:Wm("mtos3",[0,2,4],!1,r1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Xm("a0",r1),a1:Xm("a1",r1),a2:Xm("a2",r1),a3:Xm("a3",r1),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", +vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Xm("c0",r1),c1:Xm("c1",r1),c2:Xm("c2",r1),c3:Xm("c3",r1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Xm("qmtos",q1),qnc:Xm("qnc",q1),qmv:Xm("qmv",q1),qnv:Xm("qnv",q1), +raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Xm("ss0",r1),ss1:Xm("ss1",r1),ss2:Xm("ss2",r1),ss3:Xm("ss3",r1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},$9a=Object.assign({},Z9a,{avid:Yc("audio"),avas:"avas",vs:"vs"}),a$a={atos:"atos",avt:Wm("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0), +t:"t"};an.prototype.getValue=function(){return this.B}; +an.prototype.update=function(a,b){a>=32||(this.j&1<=.5;rm(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Fa+=a,this.Y+=e?a:0);this.j.update(b.Ae,c.Ae,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.fb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.Wa.update(a,b.Ae>=1);this.Va.update(a, +Vm(b))}};vja.prototype.B=function(a){this.C||(this.j(a)?(a=Gka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.z(dn,vja);dn.prototype.j=function(){return!0}; +dn.prototype.K=function(){return!1}; +dn.prototype.getId=function(){var a=this,b=Bc(pn,function(c){return c==a.D}); +return Jn[b].toString()}; +dn.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.z(en,dn);en.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);dn.prototype.B.call(this,a)};g.z(fn,wja);fn.prototype.B=function(){return null}; +fn.prototype.C=function(){return[]};g.z(gn,Am);g.k=gn.prototype;g.k.KO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=Dia(a.getBoundingClientRect())}catch(n){c=new Pl(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Aia(a,b),h=f.x,l=f.y;var m=new Pl(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=Y9a.clone()}this.j=m}}; +g.k.wX=function(){this.D=this.B.D.j}; +g.k.YZ=function(a){var b=Yk(this.Lc,"od")==1;return cja(a,this.D,this.element,b)}; +g.k.xX=function(){this.timestamp=Kl()}; +g.k.Gt=function(){this.xX();this.KO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Hd(a.videoWidth,a.videoHeight);a=this.j;var c=Ql(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.wX(); +a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Pl(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new Pl(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Pl(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.YZ(c)?c=new Pl(0,0,0,0):(d=tm().D,b=new Pl(0,d.height,d.width,0),d=Qm(c,this.j),e=Qm(c,tm().j),b=Qm(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Pl(0,0,0, +0):Rl(c,-this.j.left,-this.j.top);vm()||(e=d=0);this.N=new Sl(a,this.element,this.j,c,d,e,this.timestamp,b)}; +g.k.getName=function(){return this.B.getName()};var b$a=new Pl(0,0,0,0);g.z(hn,gn);g.k=hn.prototype;g.k.KN=function(){this.C();return!0}; +g.k.nu=function(){gn.prototype.Gt.call(this)}; +g.k.xX=function(){}; +g.k.KO=function(){}; +g.k.Gt=function(){this.C();gn.prototype.Gt.call(this)}; +g.k.CA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(tm().j=new Pl(0,0,0,0),this.j=new Pl(0,0,0,0),this.D=new Pl(0,0,0,0),this.timestamp=-1));this.K=a};var s1={},Gja=(s1.firstquartile=0,s1.midpoint=1,s1.thirdquartile=2,s1.complete=3,s1);g.z(kn,Rm);g.k=kn.prototype;g.k.Kq=function(){return!0}; +g.k.Io=function(){return this.Ik==2}; +g.k.OY=function(a){return hja(this,a,Math.max(1E4,this.C/3))}; +g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.Hc(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;ul();this.ob=!1;e=yja(this,b);xja(this)===1&&(f=e);Rm.prototype.Ta.call(this,a,b,c,d,m,f,h);this.xs&&this.xs.C&&g.dc(this.K,function(n){n.B(l)})}; +g.k.KU=function(a,b,c){Rm.prototype.KU.call(this,a,b,c);nn(this).update(a,b,this.wi,c);this.fb=Vm(this.wi)&&Vm(b);this.Ga==-1&&this.Xa&&(this.Ga=this.Dj().C.j);this.Jg.C=0;a=this.us();b.isVisible()&&$m(this.Jg,"vs");a&&$m(this.Jg,"vw");rm(b.volume)&&$m(this.Jg,"am");Vm(b)?$m(this.Jg,"a"):$m(this.Jg,"mut");this.NA&&$m(this.Jg,"f");b.B!=-1&&($m(this.Jg,"bm"),b.B==1&&($m(this.Jg,"b"),Vm(b)&&$m(this.Jg,"umutb")));Vm(b)&&b.isVisible()&&$m(this.Jg,"avs");this.fb&&a&&$m(this.Jg,"avw");b.Ae>0&&$m(this.Jg, +"pv");on(this,this.Dj().C.j,!0)&&$m(this.Jg,"gdr");Km(this.Dj().B,1)>=2E3&&$m(this.Jg,"pmx");this.ob&&$m(this.Jg,"tvoff")}; +g.k.iK=function(){return new bn}; +g.k.Dj=function(){return this.gL}; +g.k.jQ=function(){return new nja}; +g.k.GO=function(a,b,c,d){a=Rm.prototype.GO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.NA;a.paused=this.Io();a.volume=c.volume;rm(a.volume)||(this.Jb++,b=this.wi,rm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a}; +g.k.bP=function(a){return tm(),this.NA?1:Rm.prototype.bP.call(this,a)}; +g.k.Yp=function(){return 1}; +g.k.getDuration=function(){return this.C}; +g.k.cZ=function(){return this.wu?2:Aja(this)?5:this.us()?4:3}; +g.k.WJ=function(){return this.yb?this.Dj().G.C>=2E3?4:3:2};var c$a=g.Wa();Rja.prototype.reset=function(){this.j=[];this.B=[]}; +var un=sl(Rja);g.z(xn,Bm);g.k=xn.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()}; +g.k.Wt=function(){return(this.B?this.B:this.j).Wt()}; +g.k.Qr=function(){return(this.B?this.B:this.j).Qr()}; +g.k.init=function(a){var b=!1;(0,g.dc)(this.C,function(c){c.initialize()&&(b=!0)}); +b&&(this.D=a,ym(this.j,this));return b}; +g.k.dispose=function(){(0,g.dc)(this.C,function(a){a.dispose()}); +Bm.prototype.dispose.call(this)}; +g.k.RV=function(){return sm(this.C,function(a){return a.yD()})}; +g.k.zD=function(){return sm(this.C,function(a){return a.yD()})}; +g.k.MI=function(a,b,c){return new gn(a,this.j,b,c)}; +g.k.nu=function(a){this.B=a.B};var $ja={threshold:[0,.3,.5,.75,1]};g.z(yn,gn);g.k=yn.prototype;g.k.KN=function(){var a=this;this.Y||(this.Y=Kl());if(pia(298,function(){return aka(a)}))return!0; +this.B.aj("msf");return!1}; +g.k.LI=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}}; +g.k.Gt=function(){var a=zn(this);a.length>0&&An(this,a);gn.prototype.Gt.call(this)}; +g.k.KO=function(){}; +g.k.YZ=function(){return!1}; +g.k.wX=function(){}; +g.k.Wt=function(){var a={};return Object.assign(this.B.Wt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))}; +g.k.getName=function(){return"nio"};g.z(Bn,Bm);Bn.prototype.getName=function(){return"nio"}; +Bn.prototype.zD=function(){return!tm().B&&this.j.j.C.IntersectionObserver!=null}; +Bn.prototype.MI=function(a,b,c){return new yn(a,this.j,b,c)};g.z(Cn,xm);Cn.prototype.ZY=function(){return tm().j}; +Cn.prototype.yD=function(){var a=cka();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,zm(this)),this.Z=a);return a==2};Dn.prototype.sample=function(){Gn(this,vn(),!1)}; +Dn.prototype.D=function(){var a=vm(),b=Kl();a?(Ml||(Nl=b,g.dc(un.j,function(c){var d=c.Dj();d.La=cn(d,b,c.Ik!=1)})),Ml=!0):(this.N=hka(this,b),Ml=!1,Hja=b,g.dc(un.j,function(c){c.TE&&(c.Dj().Z=b)})); +Gn(this,vn(),!a)}; +var En=sl(Dn);var jka=null,co="",bo=!1;var mka=lka().Mp,In=lka().Pp;var pka={Uha:"visible",Cga:"audible",qla:"time",rla:"timetype"},qka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, +audible:function(a){return a=="0"||a=="1"}, +timetype:function(a){return a=="mtos"||a=="tos"}, +time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; +oka.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.z(Mn,dn);Mn.prototype.getId=function(){return this.N}; +Mn.prototype.K=function(){return!0}; +Mn.prototype.j=function(a){var b=a.Dj(),c=a.getDuration();return sm(this.Z,function(d){if(d.j!=void 0)var e=ska(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.z(Nn,rja);Nn.prototype.j=function(a){var b=new qja;b.j=Zm(a,Z9a);b.B=Zm(a,a$a);return b};g.z(On,dn);On.prototype.j=function(a){return Aja(a)};g.z(Pn,wja);g.z(Qn,dn);Qn.prototype.j=function(a){return a.Dj().us()};g.z(Rn,en);Rn.prototype.j=function(a){var b=g.Ob(this.N,Yk(xl().Lc,"ovms"));return!a.wu&&(a.Ik!=0||b)};g.z(Sn,Pn);Sn.prototype.B=function(){return new Rn(this.j)}; +Sn.prototype.C=function(){return[new Qn("viewable_impression",this.j),new On(this.j)]};g.z(Tn,hn);Tn.prototype.C=function(){var a=g.La("ima.admob.getViewability"),b=Yk(this.Lc,"queryid");typeof a==="function"&&b&&a(b)}; +Tn.prototype.getName=function(){return"gsv"};g.z(Un,Bm);Un.prototype.getName=function(){return"gsv"}; +Un.prototype.zD=function(){var a=tm();xl();return a.B&&!1}; +Un.prototype.MI=function(a,b,c){return new Tn(this.j,b,c)};g.z(Vn,hn);Vn.prototype.C=function(){var a=this,b=g.La("ima.bridge.getNativeViewability"),c=Yk(this.Lc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Cc(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Eia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?b$a.clone():Eia(e);a.timestamp=d.opt_nativeTime||-1;tm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})}; +Vn.prototype.getName=function(){return"nis"};g.z(Wn,Bm);Wn.prototype.getName=function(){return"nis"}; +Wn.prototype.zD=function(){var a=tm();xl();return a.B&&!1}; +Wn.prototype.MI=function(a,b,c){return new Vn(this.j,b,c)};g.z(Xn,xm);g.k=Xn.prototype;g.k.yD=function(){return this.B.Mo!=null}; +g.k.JY=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Aa&&(a.mlc=1);a.mtop=this.B.Dea;this.N&&(a.mse=this.N);this.La&&(a.msc=1);a.mcp=this.B.compatibility;return a}; +g.k.wv=function(a){var b=g.Ca.apply(1,arguments);try{return this.B.Mo[a].apply(this.B.Mo,b)}catch(c){Jl(538,c,.01,function(d){d.method=a})}}; +g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.HF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.aj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.aj("w"),!1;tm().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?wka(this):Om(this.C,"load",function(){ul().setTimeout(Il(292,function(){return wka(a)}),100)},292); +return!0}; +g.k.PV=function(){var a=tm(),b=Bka(this,"getMaxSize");a.j=new Pl(0,b.width,b.height,0)}; +g.k.QV=function(){tm().D=Bka(this,"getScreenSize")}; +g.k.dispose=function(){yka(this);xm.prototype.dispose.call(this)};var $ha=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=Zn.prototype;g.k.EJ=function(a){Sm(a,!1);Vja(a)}; +g.k.rK=function(){}; +g.k.pH=function(a,b,c,d){var e=this;a=new kn(dl,a,c?b:-1,7,this.mP(),this.QX());a.jj=d;vha(a.Lc);Xk(a.Lc,"queryid",a.jj);a.cT("");kja(a,function(){return e.jZ.apply(e,g.x(g.Ca.apply(0,arguments)))},function(){return e.X9.apply(e,g.x(g.Ca.apply(0,arguments)))}); +(d=sl(wn).j)&&gja(a,d);a.qk.Ku&&sl(dka);return a}; +g.k.CA=function(a){switch(a.Qr()){case 0:if(a=sl(wn).j)a=a.j,g.Rb(a.G,this),a.Y&&this.Kq()&&Kia(a);ao();break;case 2:Fn()}}; +g.k.nu=function(){}; +g.k.Kq=function(){return!1}; +g.k.X9=function(a,b){a.wu=!0;switch(a.Yp()){case 1:Hka(a,b);break;case 2:this.oT(a)}}; +g.k.g$=function(a){var b=a.N(a);b&&(b=b.volume,a.yb=rm(b)&&b>0);Dja(a,0);return qn(a,"start",vm())}; +g.k.NC=function(a,b,c){Gn(En,[a],!vm());return this.Zp(a,b,c)}; +g.k.Zp=function(a,b,c){return qn(a,c,vm())}; +g.k.b$=function(a){return ho(a,"firstquartile",1)}; +g.k.d$=function(a){a.Xa=!0;return ho(a,"midpoint",2)}; +g.k.h$=function(a){return ho(a,"thirdquartile",3)}; +g.k.Y9=function(a){var b=ho(a,"complete",4);ln(a);return b}; +g.k.Z9=function(a){a.Ik=3;return qn(a,"error",vm())}; +g.k.e2=function(a,b,c){b=vm();if(a.Io()&&!b){var d=a.Dj(),e=Kl();d.Z=e}Gn(En,[a],!b);a.Io()&&(a.Ik=1);return qn(a,c,b)}; +g.k.f$=function(a,b){b=this.NC(a,b||{},"skip");ln(a);return b}; +g.k.c$=function(a,b){Sm(a,!0);return this.NC(a,b||{},"fullscreen")}; +g.k.a$=function(a,b){Sm(a,!1);return this.NC(a,b||{},"exitfullscreen")}; +g.k.RS=function(a,b,c){b=a.Dj();var d=Kl();b.La=cn(b,d,a.Ik!=1);Gn(En,[a],!vm());a.Ik==1&&(a.Ik=2);return qn(a,c,vm())}; +g.k.e$=function(a){Gn(En,[a],!vm());return a.B()}; +g.k.FQ=function(a){Gn(En,[a],!vm());this.W1(a);ln(a);return a.B()}; +g.k.jZ=function(){}; +g.k.oT=function(){}; +g.k.W1=function(){}; +g.k.SV=function(){}; +g.k.nP=function(){}; +g.k.QX=function(){this.j||(this.j=this.nP());return this.j==null?new fn:new Sn(this.j)}; +g.k.mP=function(){return new Nn};g.z(io,dn);io.prototype.j=function(a){return a.WJ()==4};g.z(jo,en);jo.prototype.j=function(a){a=a.WJ();return a==3||a==4};g.z(ko,Pn);ko.prototype.B=function(){return new jo(this.j)}; +ko.prototype.C=function(){return[new io(this.j)]};g.z(lo,rja);lo.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new qja;b.j=Zm(a,$9a);b.B=Zm(a,a$a);return b};Lka.prototype.B=function(){return g.La(this.j)};g.z(mo,Zn);g.k=mo.prototype;g.k.rK=function(a,b){var c=this,d=sl(wn);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Pka(this,a,b);break;case "gsv":e=Oka(this,a,b);break;case "exc":e=Qka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Jka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Yp()==1&&(e.N==g.Zc&&(e.N=function(f){return c.SV(f)}),Nka(this,e,b)); +return e}; +g.k.SV=function(a){a.B=0;a.Fa=0;if(a.D=="h"||a.D=="n"){xl();a.Ya&&(xl(),fo(this)!="h"&&fo(this));var b=g.La("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.jj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.La("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.jj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.La("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.jj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null? +a.B|=16:g.Cc(c)?a.B|=32:c.errorCode!=null&&(a.Fa=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in T9a)b[d]==null&&(a.Z|=T9a[d]);Kka(b,"currentTime");Kka(b,"duration");rm(c.volume)&&rm()&&(c.volume*=NaN);return c}; +g.k.nP=function(){xl();fo(this)!="h"&&fo(this);var a=Rka(this);return a!=null?new Lka(a):null}; +g.k.oT=function(a){!a.j&&a.wu&&go(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)}; +g.k.W1=function(a){a.N2&&(a.us()?go(this,a,"overlay_viewable_end_of_session_impression"):go(this,a,"overlay_unviewable_impression"),a.N2=!1)}; +g.k.jZ=function(){}; +g.k.pH=function(a,b,c,d){if(aia()){var e=Yk(xl().Lc,"mm"),f={};(e=(f[yl.s4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[yl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Vka(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Jl(1044,Error())}a=Zn.prototype.pH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new lja),b.j[a.jj]=a.G,a.G.G=c$a);return a}; +g.k.EJ=function(a){a&&a.Yp()==1&&this.D&&delete this.G.j[a.jj];return Zn.prototype.EJ.call(this,a)}; +g.k.QX=function(){this.j||(this.j=this.nP());return this.j==null?new fn:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new ko(this.j):new Sn(this.j)}; +g.k.mP=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new lo:new Nn}; +var d$a=Hl(193,Xka,void 0,Ika);g.Ka("Goog_AdSense_Lidar_sendVastEvent",d$a);var e$a=Il(194,function(a,b){b=b===void 0?{}:b;a=Uka(sl(mo),a,b);return Wka(a)}); +g.Ka("Goog_AdSense_Lidar_getViewability",e$a);var f$a=Hl(195,function(){return Vha()}); +g.Ka("Goog_AdSense_Lidar_getUrlSignalsArray",f$a);var g$a=Il(196,function(){return JSON.stringify(Vha())}); +g.Ka("Goog_AdSense_Lidar_getUrlSignalsList",g$a);var dva=ma(["//tpc.googlesyndication.com/sodar/",""]);g.k=ala.prototype;g.k.kP=function(a){this.wpc.c(a)}; +g.k.Pu=function(a){return this.wpc.m($ka(a))}; +g.k.Xx=function(a){return this.wpc.mws($ka(a))}; +g.k.dispose=function(){}; +g.k.Ka=function(){return!1}; +no.prototype.snapshot=function(a){return this.Ri.s(Object.assign({},a.zl&&{c:a.zl},a.eU&&{s:a.eU},a.hU!==void 0&&{p:a.hU}))}; +no.prototype.WL=function(a){this.Ri.e(a)}; +no.prototype.dispose=function(){dla(this);this.C=!0}; +no.prototype.Ka=function(){return this.C};var Sma=(new Date).getTime();var ela="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),fla=/\bocr\b/;var hla=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var h$a=0,i$a=0,j$a=0;var po;po=null;g.ro=!1;g.Co=1;g.Bo=Symbol("SIGNAL");g.Eo={version:0,j_:0,Bl:!1,cg:void 0,Gy:void 0,dn:void 0,rL:0,gj:void 0,Hu:void 0,Uw:!1,eP:!1,L1:function(){return!1}, +M1:function(){}, +wJ:function(){}, +ena:function(){}};var k$a=Symbol("UNSET"),l$a=Symbol("COMPUTING"),m$a=Symbol("ERRORED");Object.assign({},g.Eo,{value:k$a,Bl:!0,error:null,EP:ila,L1:function(a){return a.value===k$a||a.value===l$a}, +M1:function(a){if(a.value===l$a)throw Error("Detected cycle in computations.");var b=a.value;a.value=l$a;var c=g.so(a);try{var d=a.cna()}catch(e){d=m$a,a.error=e}finally{g.zo(a,c)}b!==k$a&&b!==m$a&&d!==m$a&&a.EP(b,d)?a.value=b:(a.value=d,a.version++)}});var ola;g.qla=null;ola=Object.assign({},g.Eo,{EP:ila,value:void 0});g.n$a=Object.assign({},g.Eo,{eP:!0,Uw:!1,wJ:function(a){a.schedule!==null&&a.schedule(a.fC)}, +IF:!1,Oz:g.Do});g.o$a=sla(!1);g.p$a=sla(!0);var q$a=Symbol("updater");g.z(Go,g.Vc);Go.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Jo.jk(this.G);delete Go.instance}; +Go.prototype.Jh=function(){return this.j}; +Go.prototype.He=function(){var a=this;this.G=this.Jo.Wi(function(){var b;return g.J(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ia(3):g.G(c,Fo(a),3):g.G(c,Fo(a),3);a.He();g.ua(c)})},3E4)};Io.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; +Io.prototype.get=function(a){return!!this.data[a]};var Ko;g.Xa(g.No,g.O);g.k=g.No.prototype;g.k.start=function(){this.stop();this.D=!1;var a=vla(this),b=wla(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Mc(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(lba(this.C),20)}; +g.k.stop=function(){if(this.isActive()){var a=vla(this),b=wla(this);a&&!b&&this.B.mozRequestAnimationFrame?Sc(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; +g.k.isActive=function(){return this.j!=null}; +g.k.Q5=function(){this.D&&this.j&&Sc(this.j);this.j=null;this.K.call(this.G,g.Wa())}; +g.k.ya=function(){this.stop();g.No.Of.ya.call(this)};g.Xa(g.Oo,g.O);g.k=g.Oo.prototype;g.k.AD=0;g.k.ya=function(){g.Oo.Of.ya.call(this);this.stop();delete this.j;delete this.B}; +g.k.start=function(a){this.stop();this.AD=g.Le(this.C,a!==void 0?a:this.dj)}; +g.k.stop=function(){this.isActive()&&g.Ja.clearTimeout(this.AD);this.AD=0}; +g.k.isActive=function(){return this.AD!=0}; +g.k.TV=function(){this.AD=0;this.j&&this.j.call(this.B)};g.So.prototype[Symbol.iterator]=function(){return this}; +g.So.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.Xa(g.ap,g.Vc);g.k=g.ap.prototype;g.k.isPlaying=function(){return this.j==1}; +g.k.isPaused=function(){return this.j==-1}; +g.k.zL=function(){this.Sn("begin")}; +g.k.Bs=function(){this.Sn("end")}; +g.k.onFinish=function(){this.Sn("finish")}; +g.k.onStop=function(){this.Sn("stop")}; +g.k.Sn=function(a){this.dispatchEvent(a)};var r$a=bd(function(){var a=g.ie("DIV"),b=g.mc?"-webkit":Yl?"-moz":g.Zl?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!a9a.test("div"))throw Error("");if("DIV"in c9a)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!a9a.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof dd)e=ed(e);else if(h.toLowerCase()=="style"){if(!g.Qa(e))throw Error("");if(!(e instanceof +g.td)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];m!=null&&(m=Array.isArray(m)?m.map(yba).join(" "):yba(m),l+=f+":"+m+";")}e=l?new g.td(l,Bd):Fla}e=ud(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in b9a)if(e instanceof g.jd)e=g.kd(e).toString();else if(e instanceof g.md)e=g.nd(e);else if(typeof e==="string")e=g.rd(e).toString();else throw Error("");}f=h+'="'+sb(String(e))+ +'"';d+=" "+f}}var n="":(b=Bba(b),n+=">"+g.wd(b).toString()+"");n=xd(n);if(d9a())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.wd(n);return g.$l(a.firstChild,"transition")!=""});g.Xa(bp,g.ap);g.k=bp.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.zL();this.Sn("play");this.startTime=g.Wa();this.j=1;if(r$a())return g.Xl(this.B,this.K),this.C=g.Le(this.jda,void 0,this),!0;this.LN(!1);return!1}; +g.k.jda=function(){g.om(this.B);zla(this.B,this.N);g.Xl(this.B,this.D);this.C=g.Le((0,g.Ta)(this.LN,this,!1),this.G*1E3)}; +g.k.stop=function(){this.isPlaying()&&this.LN(!0)}; +g.k.LN=function(a){g.Xl(this.B,"transition","");g.Ja.clearTimeout(this.C);g.Xl(this.B,this.D);this.endTime=g.Wa();this.j=0;if(a)this.onStop();else this.onFinish();this.Bs()}; +g.k.ya=function(){this.stop();bp.Of.ya.call(this)}; +g.k.pause=function(){};var Bla={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};cp("Element","attributes")||cp("Node","attributes");cp("Element","innerHTML")||cp("HTMLElement","innerHTML");cp("Node","nodeName");cp("Node","nodeType");cp("Node","parentNode");cp("Node","childNodes");cp("HTMLElement","style")||cp("Element","style");cp("HTMLStyleElement","sheet");var Ila=Dla("getPropertyValue"),Jla=Dla("setProperty");cp("Element","namespaceURI")||cp("Node","namespaceURI");var Hla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Nla,G8a,Mla,Lla,Ola;Nla=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");G8a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.s$a=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.dp=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Mla=/^http:\/\/.*/;g.t$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Lla=/\s+/;Ola=/[\d\u06f0-\u06f9]/;fp.prototype.Am=function(){return new gp(this.B())}; +fp.prototype[Symbol.iterator]=function(){return new hp(this.B())}; +fp.prototype.j=function(){return new hp(this.B())}; +g.z(gp,g.Tm);gp.prototype.next=function(){return this.B.next()}; +gp.prototype[Symbol.iterator]=function(){return new hp(this.B)}; +gp.prototype.j=function(){return new hp(this.B)}; +g.z(hp,fp);hp.prototype.next=function(){return this.C.next()};jp.prototype.clone=function(){return new jp(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};lp.prototype.clone=function(){return new lp(this.start,this.end)};(function(){if(Y5a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.yb()))?a[1]:"0"}return xX?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.yb()))?a[0].replace(/_/g,"."):"10"):g.Pr?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.yb()))?a[1]:""):T8a||U8a||V8a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.yb()))?a[1].replace(/_/g,"."):""):""})();var Qla=function(){if(g.KN)return mp(/Firefox\/([0-9.]+)/);if(g.Zl||g.Nt||g.sO)return Uaa;if(g.kE){if(hc()||ic()){var a=mp(/CriOS\/([0-9.]+)/);if(a)return a}return mp(/Chrome\/([0-9.]+)/)}if(g.jt&&!hc())return mp(/Version\/([0-9.]+)/);if(Mr||Nr){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.yb()))return a[1]+"."+a[2]}else if(g.tO)return(a=mp(/Android\s+([0-9.]+)/))?a:mp(/Version\/([0-9.]+)/);return""}();g.Xa(g.op,g.O);g.k=g.op.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e}; +g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.rh(a)}return!1}; +g.k.rh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Rb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; +g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e0&&this.D==0)for(;c=this.C.pop();)this.rh(c)}}return e!=0}return!1}; +g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.rh,this),delete this.B[a])}else this.j.length=0,this.B={}}; +g.k.ya=function(){g.op.Of.ya.call(this);this.clear();this.C.length=0};g.pp.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.ui(b))}; +g.pp.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; +g.pp.prototype.remove=function(a){this.j.remove(a)};g.Xa(qp,g.pp);qp.prototype.set=function(a,b){qp.Of.set.call(this,a,Tla(b))}; +qp.prototype.B=function(a){a=qp.Of.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; +qp.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Xa(rp,qp);rp.prototype.set=function(a,b,c){if(b=Tla(b)){if(c){if(c=c.length)return g.p1;var e=c.key(b++);if(a)return g.Um(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Um(e)}; +return d}; +g.k.clear=function(){vp(this);this.j.clear()}; +g.k.key=function(a){vp(this);return this.j.key(a)};g.Xa(wp,up);g.Xa(Wla,up);g.Xa(xp,tp);xp.prototype.set=function(a,b){this.B.set(this.j+a,b)}; +xp.prototype.get=function(a){return this.B.get(this.j+a)}; +xp.prototype.remove=function(a){this.B.remove(this.j+a)}; +xp.prototype.Am=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Tm;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.Um(a?e.slice(c.j.length):c.B.get(e))}; +return d};zp.prototype.getValue=function(){return this.B}; +zp.prototype.clone=function(){return new zp(this.j,this.B)};g.k=Ap.prototype;g.k.Fh=function(a,b){var c=this.j;c.push(new zp(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c}; +g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=a*2+1,h=a*2+2;f=he.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; +g.k.Qm=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var cq={},t1,y$a=[],u1=0;u1<256;u1++){t1=u1;for(var z$a=0;z$a<8;z$a++)t1=t1&1?3988292384^t1>>>1:t1>>>1;y$a[u1]=t1}cq=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^y$a[(a^b[d])&255];return a^-1};var Tp={};Tp={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 Mp=[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],Pp=[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],sma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],hma=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Xp=Array(576);Ep(Xp);var Yp=Array(60);Ep(Yp);var Op=Array(512);Ep(Op);var Lp=Array(256);Ep(Lp);var Np=Array(29);Ep(Np);var Qp=Array(30);Ep(Qp);var pma,qma,rma,oma=!1;var hq;hq=[new gq(0,0,0,0,function(a,b){var c=65535;for(c>a.cn-5&&(c=a.cn-5);;){if(a.jc<=1){dq(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Fb+=a.jc;a.jc=0;var d=a.yl+c;if(a.Fb===0||a.Fb>=d)if(a.jc=a.Fb-d,a.Fb=d,Zp(a,!1),a.xe.Ie===0)return 1;if(a.Fb-a.yl>=a.uj-262&&(Zp(a,!1),a.xe.Ie===0))return 1}a.Fh=0;if(b===4)return Zp(a,!0),a.xe.Ie===0?3:4;a.Fb>a.yl&&Zp(a,!1);return 1}), +new gq(4,4,8,4,eq),new gq(4,5,16,8,eq),new gq(4,6,32,32,eq),new gq(4,4,16,16,fq),new gq(8,16,32,32,fq),new gq(8,16,128,128,fq),new gq(8,32,128,256,fq),new gq(32,128,258,1024,fq),new gq(32,258,258,4096,fq)];var nma={};nma=function(){this.input=null;this.fz=this.yj=this.iy=0;this.output=null;this.AU=this.Ie=this.zB=0;this.msg="";this.state=null;this.rP=2;this.Ud=0};var tma=Object.prototype.toString; +iq.prototype.push=function(a,b){var c=this.xe,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Xla(a):tma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.iy=0;c.yj=c.input.length;do{c.Ie===0&&(c.output=new Dp.pz(d),c.zB=0,c.Ie=d);a=mma(c,e);if(a!==1&&a!==0)return this.Bs(a),this.ended=!0,!1;if(c.Ie===0||c.yj===0&&(e===4||e===2))if(this.options.to==="string"){var f=Dp.dU(c.output,c.zB);b=f;f=f.length;if(f<65537&&(b.subarray&& +x$a||!b.subarray))b=String.fromCharCode.apply(null,Dp.dU(b,f));else{for(var h="",l=0;l0||c.Ie===0)&&a!==1);if(e===4)return(c=this.xe)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=Up(c,-2):(c.state=null,a=d===113?Up(c,-3):0)):a=-2,this.Bs(a),this.ended=!0,a===0;e===2&&(this.Bs(0),c.Ie=0);return!0}; +iq.prototype.Bs=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Dp.tY(this.chunks));this.chunks=[];this.err=a;this.msg=this.xe.msg};var kq="@@redux/INIT"+jq(),zma="@@redux/REPLACE"+jq();var Ama=typeof Symbol==="function"&&Symbol.observable||"@@observable";var A$a=[0,v9a,-3,l1];g.z(nq,ch);nq.prototype.getType=function(){return Eg(this,11)};var gYa=function(){var a=[0,x9a,w9a,i1,v9a,i1,-1,l1,v9a,l1,-1,x9a,l1,w9a,j1,A$a,i1,-1,l1];return function(b,c){if(h1.length){var d=h1.pop();gea(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Wg(b,c);try{var e=new nq,f=e.xb;rh(a)(f,b);var h=e}finally{b.free()}return h}}();var Nsa=new g.oq("adInfoDialogEndpoint");var Cua=new g.oq("adPingingEndpoint");var Vwa=new g.oq("crossDeviceProgressCommand");var GH=new g.oq("actionCompanionAdRenderer");var RD=new g.oq("adActionInterstitialRenderer");var B$a=new g.oq("adDurationRemainingRenderer");var $H=new g.oq("adHoverTextButtonRenderer");var Lsa=new g.oq("adInfoDialogRenderer");var FI=new g.oq("adMessageRenderer");var aI=new g.oq("adPreviewRenderer");var IH=new g.oq("adsEngagementPanelRenderer");var qya=new g.oq("dismissablePanelTextPortraitImageRenderer");var C$a=new g.oq("flyoutCtaRenderer");var HH=new g.oq("imageCompanionAdRenderer");var PD=new g.oq("instreamAdPlayerOverlayRenderer");var D$a=new g.oq("instreamAdPlayerUnderlayRenderer");var b8a=new g.oq("instreamSurveyAdBackgroundImageRenderer");var ZH=new g.oq("instreamSurveyAdPlayerOverlayRenderer");var RH=new g.oq("instreamSurveyAdRenderer"),YH=new g.oq("instreamSurveyAdSingleSelectQuestionRenderer"),XH=new g.oq("instreamSurveyAdMultiSelectQuestionRenderer"),v1=new g.oq("instreamSurveyAdAnswerRenderer"),E$a=new g.oq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var PH=new g.oq("instreamVideoAdRenderer");var F$a=new g.oq("textOverlayAdContentRenderer"),G$a=new g.oq("enhancedTextOverlayAdContentRenderer"),H$a=new g.oq("imageOverlayAdContentRenderer");var QD=new g.oq("playerOverlayLayoutRenderer");var uya=new g.oq("aboveFeedAdLayoutRenderer");var vya=new g.oq("belowPlayerAdLayoutRenderer");var tya=new g.oq("inPlayerAdLayoutRenderer");var UH=new g.oq("playerBytesAdLayoutRenderer");var WH=new g.oq("playerUnderlayAdLayoutRenderer");var QH=new g.oq("adIntroRenderer");var mya=new g.oq("playerBytesSequentialLayoutRenderer");var Bza=new g.oq("slidingTextPlayerOverlayRenderer");var SH=new g.oq("surveyTextInterstitialRenderer");var I$a=new g.oq("simpleAdBadgeRenderer");var nG=new g.oq("skipAdRenderer"),J$a=new g.oq("skipButtonRenderer");var eI=new g.oq("adSlotRenderer");var VH=new g.oq("squeezebackPlayerSidePanelRenderer");var K$a=new g.oq("timedPieCountdownRenderer");var L$a=new g.oq("adAvatarViewModel");var M$a=new g.oq("adBadgeViewModel");var N$a=new g.oq("adButtonViewModel");var O$a=new g.oq("adDisclosureBannerViewModel");var P$a=new g.oq("adPreviewViewModel");var Q$a=new g.oq("playerAdAvatarLockupCardButtonedViewModel");var R$a=new g.oq("skipAdButtonViewModel");var S$a=new g.oq("skipAdViewModel");var T$a=new g.oq("visitAdvertiserLinkViewModel");var JH=new g.oq("bannerImageLayoutViewModel");var KH=new g.oq("topBannerImageTextIconButtonedLayoutViewModel");var LH=new g.oq("adsEngagementPanelLayoutViewModel");g.sQ=new g.oq("browseEndpoint");var U$a=new g.oq("confirmDialogEndpoint");var gra=new g.oq("rawColdConfigGroup");var fra=new g.oq("rawHotConfigGroup");g.ly=new g.oq("commandExecutorCommand");g.z(Fma,ch);var yJa={Ola:0,Zla:1,lma:32,qma:61,xma:67,tma:86,kma:42,mma:60,bma:62,pma:73,oma:76,uma:88,vma:90,yma:99,hma:98,wma:100,zma:41,Ama:69,Bma:70,Cma:71,Oja:2,Pja:27,ANDROID:3,hga:54,iga:14,tga:91,jga:55,kga:24,lga:20,nga:18,pga:21,wga:30,zga:29,Aga:28,Ula:101,Bga:34,vga:36,oga:38,IOS:5,Kia:15,Uia:92,Lia:40,Nia:25,Oia:17,Pia:19,Qia:64,Ria:66,Sia:26,Wia:22,Xia:33,Yia:68,Zia:35,Tia:53,Via:37,Mia:39,Bla:7,Cla:57,Dla:43,Fla:59,Ela:93,yga:74,Gla:75,Hla:85,Ila:65,Kla:80,Lla:8,zla:10,Nla:58,Mla:63,Jla:72,xga:23, +Fma:11,Gma:13,bha:12,Ala:16,jma:56,rma:31,Lja:77,hia:84,nma:87,jia:89,iia:94,yja:95};g.z(pq,ch);pq.prototype.c9=function(){return Dg(this,3)}; +pq.prototype.k9=function(){return Dg(this,5)}; +pq.prototype.Ls=function(a){return Gg(this,5,a)};g.z(qq,ch);g.z(Gma,ch);g.z(rq,ch);rq.prototype.getDeviceId=function(){return Dg(this,6)}; +rq.prototype.getPlayerType=function(){return Eg(this,36)}; +rq.prototype.setHomeGroupInfo=function(a){return wg(this,Gma,81,a)}; +rq.prototype.clearLocationPlayabilityToken=function(){return ag(this,89)};g.z(sq,ch);sq.prototype.getValue=function(){return Dg(this,rg(this,cra)===2?2:-1)}; +var cra=[2,3,4,5,6];g.z(tq,ch);g.z(uq,ch);g.z(vq,ch);vq.prototype.getToken=function(){return Ag(this,2)}; +vq.prototype.setToken=function(a){return Gg(this,2,a)};g.z(wq,ch);wq.prototype.setSafetyMode=function(a){return Ig(this,5,a)};g.z(xq,ch);xq.prototype.IH=function(a){return wg(this,rq,1,a)};var cI=new g.oq("thumbnailLandscapePortraitRenderer");g.V$a=new g.oq("changeEngagementPanelVisibilityAction");var jta=new g.oq("continuationCommand");g.W$a=new g.oq("openPopupAction");g.w1=new g.oq("webCommandMetadata");var lLa=new g.oq("metadataBadgeRenderer");var Qy=new g.oq("signalServiceEndpoint");var Ew=new g.oq("innertubeCommand");var p8a=new g.oq("loggingDirectives");var rna={Iha:"EMBEDDED_PLAYER_MODE_UNKNOWN",Fha:"EMBEDDED_PLAYER_MODE_DEFAULT",Hha:"EMBEDDED_PLAYER_MODE_PFP",Gha:"EMBEDDED_PLAYER_MODE_PFL"};var HLa=new g.oq("channelThumbnailEndpoint");var GLa=new g.oq("embeddedPlayerErrorMessageRenderer");var CLa=new g.oq("embeddedPlayerOverlayVideoDetailsRenderer"),ILa=new g.oq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),JLa=new g.oq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var iLa=new g.oq("embedsInfoPanelRenderer");var X$a=new g.oq("feedbackEndpoint");var Y$a=new g.oq("callToActionButtonViewModel");var Z$a=new g.oq("interactionLoggingCommandMetadata");var npa={gma:"WEB_DISPLAY_MODE_UNKNOWN",cma:"WEB_DISPLAY_MODE_BROWSER",ema:"WEB_DISPLAY_MODE_MINIMAL_UI",fma:"WEB_DISPLAY_MODE_STANDALONE",dma:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(yq,ch);yq.prototype.setTrackingParams=function(a){return ag(this,1,jf(a,!1,!1))};g.z(zq,ch);zq.prototype.getPlayerType=function(){return Eg(this,7)}; +zq.prototype.mf=function(){return Dg(this,19)}; +zq.prototype.setVideoId=function(a){return Gg(this,19,a)};g.z(Aq,ch);g.z(Bq,ch);g.z(Cq,ch); +var $$a=[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];g.z(Dq,ch);g.z(Eq,ch);Eq.prototype.mf=function(){return Ag(this,rg(this,dw)===1?1:-1)}; +Eq.prototype.setVideoId=function(a){return pg(this,1,dw,Ff(a))}; +Eq.prototype.getPlaylistId=function(){return Ag(this,rg(this,dw)===2?2:-1)}; +var dw=[1,2];g.z(Hma,ch);var aQ=new g.oq("changeKeyedMarkersVisibilityCommand");var aab=new g.oq("changeMarkersVisibilityCommand");var nLa=new g.oq("loadMarkersCommand");var bab=new g.oq("suggestedActionDataViewModel");var LQa=new g.oq("productListItemRenderer");var cab=new g.oq("shoppingOverlayRenderer");var DLa=new g.oq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var dab=new g.oq("adFeedbackEndpoint");var eab=new g.oq("menuEndpoint");var $Pa=new g.oq("phoneDialerEndpoint");var YPa=new g.oq("sendSmsEndpoint");var BLa=new g.oq("copyTextEndpoint");var fab=new g.oq("shareEndpoint"),gab=new g.oq("shareEntityEndpoint"),hab=new g.oq("shareEntityServiceEndpoint"),iab=new g.oq("webPlayerShareEntityServiceEndpoint");g.Fx=new g.oq("urlEndpoint");g.ZP=new g.oq("watchEndpoint");var jab=new g.oq("watchPlaylistEndpoint");var dNa=new g.oq("compositeVideoOverlayRenderer");var kab=new g.oq("miniplayerRenderer");var zLa=new g.oq("paidContentOverlayRenderer");var XKa=new g.oq("playerMutedAutoplayOverlayRenderer"),YKa=new g.oq("playerMutedAutoplayEndScreenRenderer");var mKa=new g.oq("unserializedPlayerResponse"),ZKa=new g.oq("unserializedPlayerResponse");var lab=new g.oq("playlistEditEndpoint");var x1;g.bI=new g.oq("buttonRenderer");x1=new g.oq("toggleButtonRenderer");var oya=new g.oq("counterfactualRenderer");var mab=new g.oq("resolveUrlCommandMetadata");var nab=new g.oq("modifyChannelNotificationPreferenceEndpoint");var Bua=new g.oq("pingingEndpoint");var oab=new g.oq("unsubscribeEndpoint");g.tQ=new g.oq("subscribeButtonRenderer");var pab=new g.oq("subscribeEndpoint");var VMa=new g.oq("buttonViewModel");var pya=new g.oq("qrCodeRenderer");var AJa={rja:"LIVING_ROOM_APP_MODE_UNSPECIFIED",oja:"LIVING_ROOM_APP_MODE_MAIN",nja:"LIVING_ROOM_APP_MODE_KIDS",pja:"LIVING_ROOM_APP_MODE_MUSIC",qja:"LIVING_ROOM_APP_MODE_UNPLUGGED",mja:"LIVING_ROOM_APP_MODE_GAMING"};var fLa=new g.oq("autoplaySwitchButtonRenderer");var qP,ARa,tKa,LRa;qP=new g.oq("decoratedPlayerBarRenderer");ARa=new g.oq("chapteredPlayerBarRenderer");tKa=new g.oq("multiMarkersPlayerBarRenderer");LRa=new g.oq("chapterRenderer");g.ERa=new g.oq("markerRenderer");var jLa=new g.oq("desktopOverlayConfigRenderer");var hLa=new g.oq("gatedActionsOverlayViewModel");var IRa=new g.oq("heatMarkerRenderer");var HRa=new g.oq("heatmapRenderer");var mLa=new g.oq("watchToWatchTransitionRenderer");var ELa=new g.oq("playlistPanelRenderer");var qab=new g.oq("productUpsellSuggestedActionViewModel");var rab=new g.oq("suggestedActionTimeRangeTrigger"),sab=new g.oq("suggestedActionsRenderer"),tab=new g.oq("suggestedActionRenderer");var JRa=new g.oq("timedMarkerDecorationRenderer");var CDa=new g.oq("cipher");var nKa=new g.oq("playerVars");var $Ka=new g.oq("playerVars");var y1=g.Ja.window,uab,vab,Fq=(y1==null?void 0:(uab=y1.yt)==null?void 0:uab.config_)||(y1==null?void 0:(vab=y1.ytcfg)==null?void 0:vab.data_)||{};g.Ka("yt.config_",Fq);var Jq=[];var Rma=/^[\w.]*$/,Nma={q:!0,search_query:!0},Mma=String(Rq);var ar=new function(){var a=window.document;this.j=window;this.B=a}; +g.Ka("yt.ads_.signals_.getAdSignalsString",function(a){return Sq(cr(a))});g.Wa();var Tma="XMLHttpRequest"in g.Ja?function(){return new XMLHttpRequest}:null;var wab="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(wab);var Xma={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-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Yma="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.x(wab)),ena=!1,Vma=Zma,bna=or;g.z(rr,kb);ur.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:wr(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:vr(a):this}; +ur.prototype.getValue=function(){return this.B}; +ur.prototype.$goog_Thenable=!0;var xr=!1;var Mt=Mr||Nr;var pna=/^([0-9\.]+):([0-9\.]+)$/;g.z(bs,kb);bs.prototype.name="BiscottiError";g.z(as,kb);as.prototype.name="BiscottiMissingError";var tna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},cs=null;var Dba=ma(["data-"]),Cna={};var xab=0,ds=g.mc?"webkit":Yl?"moz":g.Zl?"ms":g.sO?"o":"",yab=g.La("ytDomDomGetNextId")||function(){return++xab}; +g.Ka("ytDomDomGetNextId",yab);var Gna={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};js.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +js.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +js.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ks=g.Ja.ytEventsEventsListeners||{};g.Ka("ytEventsEventsListeners",ks);var Jna=g.Ja.ytEventsEventsCounter||{count:0};g.Ka("ytEventsEventsCounter",Jna);var Nna=bd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +window.addEventListener("test",null,b)}catch(c){}return a}),Kna=bd(function(){var a=!1; +try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); +window.addEventListener("test",null,b)}catch(c){}return a});var z1;z1=window;g.rt=z1.ytcsi&&z1.ytcsi.now?z1.ytcsi.now:z1.performance&&z1.performance.timing&&z1.performance.now&&z1.performance.timing.navigationStart?function(){return z1.performance.timing.navigationStart+z1.performance.now()}:function(){return(new Date).getTime()};g.Xa(ps,g.O);ps.prototype.Y=function(a){a.j===void 0&&Hna(a);var b=a.j;a.B===void 0&&Hna(a);this.j=new g.Fd(b,a.B)}; +ps.prototype.au=function(){return this.j||new g.Fd}; +ps.prototype.qa=function(){if(this.j){var a=(0,g.rt)();if(this.D!=0){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; +ps.prototype.ya=function(){g.ir(this.Z);g.ms(this.ra)};g.z(qs,g.O);qs.prototype.T=function(a,b,c,d,e){c=g.Lq((0,g.Ta)(c,d||this.ob));c={target:a,name:b,callback:c};var f;e&&Nna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; +qs.prototype.Nc=function(a){for(var b=0;b=M.Kn)||A.j.version>=X||A.j.objectStoreNames.contains(N)||F.push(N)}m=F;if(m.length===0){y.Ia(5);break}n=Object.keys(c.options.As); +p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,Boa(c,t);return y.return(r);case 8:throw b(), +q instanceof Error&&!g.kr("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),kt(q,c.name,"",(u=c.options.version)!=null?u:-1);}})} +function b(){c.j===d&&(c.j=void 0)} +var c=this;if(!this.C)throw Boa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, +closed:b,Sea:b,upgrade:this.options.upgrade};return this.j=d=a()};var Kt=new It("YtIdbMeta",{As:{databases:{Kn:1}},upgrade:function(a,b){b(1)&&g.ut(a,"databases",{keyPath:"actualName"})}});var Pt,Ot=new function(){}(new function(){});new g.ej;g.z(St,It);St.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Koa:Joa)(a,b,Object.assign({},c))}; +St.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Ooa:Loa)(this.name,a)};var Gab={},Qoa=g.Tt("ytGcfConfig",{As:(Gab.coldConfigStore={Kn:1},Gab.hotConfigStore={Kn:1},Gab),shared:!1,upgrade:function(a,b){b(1)&&(g.Bt(g.ut(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Bt(g.ut(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.z(Vt,g.O);Vt.prototype.ya=function(){for(var a=g.w(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.O.prototype.ya.call(this)};au.prototype.Ls=function(a){this.hotHashData=a;g.Ka("yt.gcf.config.hotHashData",this.hotHashData||null)};var Hab=typeof TextEncoder!=="undefined"?new TextEncoder:null,Fpa=Hab?function(a){return Hab.encode(a)}:function(a){a=g.Pe(a); +for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; +g.k.yM=function(){var a=this;if(!Gu(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Lh.PY("QUEUED",this.zf).then(function(b){b&&!a.vM(b,a.R1)?a.Jo.Wi(function(){return g.J(function(c){if(c.j==1)return b.id===void 0?c.Ia(2):g.G(c,a.Lh.vT(b.id,a.zf),2);a.yM();g.ua(c)})}):a.kh.Jh()&&a.LC()})};var Ju;var jra={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, +mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, +kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, +transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, +ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, +ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, +accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, +musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, +yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, +notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, +tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, +iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, +mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, +mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, +clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, +mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, +mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, +cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471, +webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494, +miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503};var Jab={},Xpa=g.Tt("ServiceWorkerLogsDatabase",{As:(Jab.SWHealthLog={Kn:1},Jab),shared:!0,upgrade:function(a,b){b(1)&&g.Bt(g.ut(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var Mu={},cqa=0;var Nu;Pu.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; +Pu.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null}; +Pu.prototype.removeParams=function(a){return a.split("?")[0]}; +Pu.prototype.removeParams=Pu.prototype.removeParams;Pu.prototype.isEndpointCFR=Pu.prototype.isEndpointCFR;Pu.prototype.requestComplete=Pu.prototype.requestComplete;Pu.getInstance=Qu;g.z(Ru,g.Vc);g.k=Ru.prototype;g.k.Jh=function(){return this.j.Jh()}; +g.k.ey=function(a){this.j.j=a}; +g.k.D9=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; +g.k.w8=function(){this.B=!0}; +g.k.listen=function(a,b){return this.j.listen(a,b)}; +g.k.CM=function(a){a=Fo(this.j,a);a.then(function(b){g.kr("use_cfr_monitor")&&Qu().requestComplete("generate_204",b)}); +return a}; +Ru.prototype.sendNetworkCheckRequest=Ru.prototype.CM;Ru.prototype.listen=Ru.prototype.listen;Ru.prototype.enableErrorFlushing=Ru.prototype.w8;Ru.prototype.getWindowStatus=Ru.prototype.D9;Ru.prototype.networkStatusHint=Ru.prototype.ey;Ru.prototype.isNetworkAvailable=Ru.prototype.Jh;Ru.getInstance=fqa;g.z(g.Su,g.Vc);g.Su.prototype.Jh=function(){var a=g.La("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; +g.Su.prototype.ey=function(a){var b=g.La("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; +g.Su.prototype.CM=function(a){var b=this,c;return g.J(function(d){c=g.La("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.kr("skip_network_check_if_cfr")&&Qu().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.ey(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Jh())})):c?d.return(c(a)):d.return(!0)})};var Tu;g.z(Uu,Hu);Uu.prototype.writeThenSend=function(a,b){b||(b={});b=Wu(a,b);g.Ms()||(this.j=!1);Hu.prototype.writeThenSend.call(this,a,b)}; +Uu.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Wu(a,b);g.Ms()||(this.j=!1);Hu.prototype.sendThenWrite.call(this,a,b,c)}; +Uu.prototype.sendAndWrite=function(a,b){b||(b={});b=Wu(a,b);g.Ms()||(this.j=!1);Hu.prototype.sendAndWrite.call(this,a,b)}; +Uu.prototype.awaitInitialization=function(){return this.C.promise};var kqa=g.Ja.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ka("ytNetworklessLoggingInitializationOptions",kqa);g.Xu.prototype.isReady=function(){!this.config_&&gpa()&&(this.config_=g.cu());return!!this.config_};var Kab,$u,bv;Kab=g.Ja.ytPubsubPubsubInstance||new g.op;$u=g.Ja.ytPubsubPubsubSubscribedKeys||{};bv=g.Ja.ytPubsubPubsubTopicToKeys||{};g.av=g.Ja.ytPubsubPubsubIsSynchronous||{};g.op.prototype.subscribe=g.op.prototype.subscribe;g.op.prototype.unsubscribeByKey=g.op.prototype.rh;g.op.prototype.publish=g.op.prototype.publish;g.op.prototype.clear=g.op.prototype.clear;g.Ka("ytPubsubPubsubInstance",Kab);g.Ka("ytPubsubPubsubTopicToKeys",bv);g.Ka("ytPubsubPubsubIsSynchronous",g.av); +g.Ka("ytPubsubPubsubSubscribedKeys",$u);var qqa={};g.z(kv,g.O);kv.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)}; +g.z(lv,kv);lv.prototype.Ib=function(){return this.j};g.z(tqa,g.O);var mv=Date.now().toString();var rv={};var xv=Symbol("injectionDeps");uv.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +xqa.prototype.resolve=function(a){return a instanceof vv?yv(this,a.key,[],!0):yv(this,a,[])};var zv;var Bv=window;var Fv=g.kr("web_enable_lifecycle_monitoring")&&Cv()!==0,Dqa=g.kr("web_enable_lifecycle_monitoring");Aqa.prototype.cancel=function(){for(var a=g.w(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.jM||this.scheduler.jk(b.jobId),b.jM=!0;this.B.resolve()};g.k=Gv.prototype;g.k.install=function(a){this.plugins.push(a);return this}; +g.k.uninstall=function(){var a=this;g.Ca.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})}; +g.k.transition=function(a,b){var c=this;Fv&&zqa(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a}); +if(d){this.B&&(Bqa(this.B),this.B=void 0);Eqa(this,a,b);this.state=a;Fv&&Dv(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); +d(Cqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; +g.k.Vda=function(a){var b=g.Ca.apply(1,arguments);g.Rs();for(var c=g.w(a),d=c.next(),e={};!d.done;e={kG:void 0},d=c.next())e.kG=d.value,$na(function(f){return function(){Iv(f.kG.name);f.kG.callback.apply(f.kG,g.x(b));Jv(f.kG.name)}}(e))}; +g.k.Uda=function(a){var b=g.Ca.apply(1,arguments),c,d,e,f;return g.J(function(h){h.j==1&&(g.Rs(),c=g.w(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ia(0);e.iB=d.value;e.aJ=void 0;f=function(l){return function(){Iv(l.iB.name);var m=l.iB.callback.apply(l.iB,g.x(b));typeof(m==null?void 0:m.then)==="function"?l.aJ=m.then(function(){Jv(l.iB.name)}):Jv(l.iB.name)}}(e); +$na(f);return e.aJ?g.G(h,e.aJ,3):h.Ia(3)}e={iB:void 0,aJ:void 0};d=c.next();return h.Ia(2)})}; +g.k.F2=function(a){var b=g.Ca.apply(1,arguments),c=this,d=a.map(function(e){return{lR:function(){Iv(e.name);e.callback.apply(e,g.x(b));Jv(e.name)}, +priority:Hv(c,e)}}); +d.length&&(this.B=new Aqa(d))}; +g.da.Object.defineProperties(Gv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Lv;g.z(Kv,Gv);Kv.prototype.G=function(a,b){var c=this;this.j=g.Ps(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); +a(b==null?void 0:b.event)}; +Kv.prototype.K=function(a,b){this.j&&(g.Ho.jk(this.j),this.j=null);a(b==null?void 0:b.event)};var lw=[];g.Ka("yt.logging.transport.getScrapedGelPayloads",function(){return lw});Mv.prototype.storePayload=function(a,b){a=Nv(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a}; +Mv.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Pv(this,a.keys.splice(0,1)[0]),c=[],d=0;d=0){d=!1;break a}}d=!0}d&&(b=Gw(b))&&this.CH(b)}}; +g.k.N1=function(a){return a}; +g.k.T5=function(a){var b=this.Aa;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=uqa(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0}; +g.k.R5=function(a){if(this.Aa){var b=this.Aa,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&uqa(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; +g.k.CH=function(a){this.layoutId?this.jb.executeCommand(a,this.layoutId):g.Bw(new g.Ks("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)}; +g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)}; +g.k.ya=function(){this.clear(null);this.Nc(this.ob);for(var a=g.w(this.Fa),b=a.next();!b.done;b=a.next())this.Nc(b.value);g.ix.prototype.ya.call(this)};g.z(Bx,jx); +Bx.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.Cw(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}a!=null&&g.Wo(this.element,a);b.text!=null&&(a=g.lx(b.text),g.rb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.ix({I:"span",S:"ytp-ad-button-text",va:a}),g.P(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&& +b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.rb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=Ax(b.icon),b!=null&&(this.B=new g.ix({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.P(this,this.B)),this.D?oe(this.element,this.B.element,0):this.B.Ja(this.element))}}; +Bx.prototype.clear=function(){this.hide()}; +Bx.prototype.onClick=function(a){jx.prototype.onClick.call(this,a);a=g.w(xsa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.Bw(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(Cx,g.O);Cx.prototype.ya=function(){this.B&&g.ms(this.B);this.j.clear();Dx=null;g.O.prototype.ya.call(this)}; +Cx.prototype.register=function(a,b){b&&this.j.set(a,b)}; +var Dx=null;g.z(Gx,jx); +Gx.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.bI)||null;b==null?g.Bw(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.button),this.button.init(Zw("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.lx(a)),this.button.Ja(this.element),this.G&&!g.Vo(this.button.element,"ytp-ad-clickable")&&g.Wo(this.button.element, +"ytp-ad-clickable"),a&&(this.B=new g.ix({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.ix({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.P(this,b)),g.P(this,this.B),this.B.Ja(this.element),b=Ex(a),oe(this.B.element,b,0)),this.show())}; +Gx.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();jx.prototype.hide.call(this)}; +Gx.prototype.show=function(){this.button&&this.button.show();jx.prototype.show.call(this)};g.z(Ix,jx); +Ix.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&Hx(a)||"";g.rb(c)?Math.random()<.01&&g.Cw(Error("Found AdImage without valid image URL")):(this.j?g.Xl(this.element,"backgroundImage","url("+c+")"):ee(this.element,{src:c}),ee(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +Ix.prototype.clear=function(){this.hide()};g.z(Jx,jx);g.k=Jx.prototype;g.k.hide=function(){jx.prototype.hide.call(this);this.C&&this.C.focus()}; +g.k.show=function(){this.C=document.activeElement;jx.prototype.show.call(this);this.D.focus()}; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.Bw(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.Bw(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Bsa(this,b):g.Bw(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.k.clear=function(){g.ts(this.j);this.hide()}; +g.k.ZR=function(){this.hide()}; +g.k.MN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.Bw(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.k.aS=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.Bw(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(Kx,jx);g.k=Kx.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.Bw(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.Bw(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}a!=null&&g.Wo(this.D,a)}a={};b.defaultText? +(c=g.lx(b.defaultText),g.rb(c)||(a.buttonText=c,this.api.U().experiments.kb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.kb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.pm(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=Ax(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra= +!0,c=Ax(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.pm(this.Y,!0),g.pm(this.G,!1)),g.pm(this.j,!1)):g.pm(this.B,!1);g.Cc(a)||this.update(a);b.isToggled&&(g.Wo(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Lx(this);this.T(this.element,"change",this.UV);this.show()}}; +g.k.onClick=function(a){this.Fa.length>0&&(this.toggleButton(!this.isToggled()),this.UV());jx.prototype.onClick.call(this,a)}; +g.k.UV=function(){g.$o(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.w(Csa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.Bw(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Lx(this)}; +g.k.clear=function(){this.hide()}; +g.k.toggleButton=function(a){g.$o(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Lx(this)}; +g.k.isToggled=function(){return this.j.checked};g.z(Mx,qs);Mx.prototype.K=function(a){if(Array.isArray(a)){a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Dsa&&this.D(b)}};g.z(Nx,jx);g.k=Nx.prototype;g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.Bw(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.Cw(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.Cw(Error("AdFeedbackRenderer.title was not set.")),Hsa(this,b)):g.Bw(Error("AdFeedbackRenderer.reasons were not set."))}; +g.k.clear=function(){ns(this.G);ns(this.Y);this.D.length=0;this.hide()}; +g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();jx.prototype.hide.call(this);this.C&&this.C.focus()}; +g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;jx.prototype.show.call(this);this.G.focus()}; +g.k.v0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.k.Pca=function(){this.hide()}; +Ox.prototype.Ib=function(){return this.j.element}; +Ox.prototype.getCommand=function(){return this.B}; +Ox.prototype.isChecked=function(){return this.C.checked};g.z(Px,Jx);Px.prototype.ZR=function(a){Jx.prototype.ZR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +Px.prototype.MN=function(a){Jx.prototype.MN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +Px.prototype.aS=function(a){Jx.prototype.aS.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(Qx,jx);g.k=Qx.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.Bw(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.Cw(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.Q(b.closeOverlayRenderer,g.bI)||null)this.j=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.P(this,this.j),this.j.init(Zw("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.lx(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c=this.La?(this.Ga.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.La-a)/1E3)),a!=this.Xa&&(Tx(this.C,{TIME_REMAINING:String(a)}),this.Xa=a)))}};g.z(ay,Ux);g.k=ay.prototype; +g.k.init=function(a,b,c){Ux.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.Q(b.actionButton,g.bI))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.rb(g.Ud(e[0].url))&&(e[0].url=d.profilePicture)}else g.Cw(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(Zw("ad-image"),b.image,c);this.G.init(Zw("ad-text"), +b.headline,c);this.D.init(Zw("ad-text"),b.description,c);this.B.init(Zw("button"),a,c);c=Mo(this.B.element);Lo(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.WF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ea("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ea("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ea("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.Ea("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ea("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ea("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ea("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.WV.bind(this));this.Ga=b.startMs||0;Vx(this)}else g.Bw(Error("FlyoutCtaRenderer has no valid action button."));else g.Bw(Error("FlyoutCtaRenderer has no description AdText."));else g.Bw(Error("FlyoutCtaRenderer has no headline AdText."));else g.Cw(Error("FlyoutCtaRenderer has no image."))}; +g.k.onClick=function(a){Ux.prototype.onClick.call(this,a);this.api.pauseVideo();!g.qe(this.B.element,a.target)&&this.ra&&(this.layoutId?this.jb.executeCommand(this.ra,this.layoutId):g.Bw(Error("Missing layoutId for flyout cta.")))}; +g.k.Wo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.La)&&1E3*a.current>=this.Ga&&(Wx(this),g.Yo(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; +g.k.Gq=function(){this.clear()}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.WV.bind(this))}; +g.k.show=function(){this.B&&this.B.show();Ux.prototype.show.call(this)}; +g.k.hide=function(){this.B&&this.B.hide();Ux.prototype.hide.call(this)}; +g.k.WV=function(a){a=="hidden"?this.show():this.hide()};g.z(by,jx);g.k=by.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,x1),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,x1),this.C.init(Zw("toggle-button"),a,c),this.B.init(Zw("toggle-button"),b,c),this.T(this.element,"change",this.XV),this.D.show(100),this.show(),c=g.w(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.jb.executeCommand(a,this.layoutId):g.Bw(Error("Missing layoutId for instream user sentiment."))}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){this.C.hide();this.B.hide();jx.prototype.hide.call(this)}; +g.k.show=function(){this.C.show();this.B.show();jx.prototype.show.call(this)}; +g.k.XV=function(){yla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()}; +g.k.onClick=function(a){this.Fa.length>0&&this.XV();jx.prototype.onClick.call(this,a)};g.z(cy,g.O);g.k=cy.prototype;g.k.ya=function(){this.reset();g.O.prototype.ya.call(this)}; +g.k.reset=function(){g.ts(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())}; +g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.ZV,this);this.D.T(this.B,"mouseout",this.YV,this);this.qa&&(this.D.T(this.B,"focusin",this.ZV,this),this.D.T(this.B,"focusout",this.YV,this));this.j?this.j.start():(this.K=this.C=!0,g.Xl(this.B,{opacity:this.Y}))}; +g.k.ZV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()}; +g.k.YV=function(){this.K?this.G.start():this.j&&this.j.start()}; +g.k.lX=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.z(ky,Ux);g.k=ky.prototype; +g.k.init=function(a,b,c){Ux.prototype.init.call(this,a,b,c);this.ra=b;(this.Ga=Vsa(this))&&g.Cw(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Cc(b))g.Bw(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Cc(b.message))g.Bw(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=Ax(a);b==null?g.Bw(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")): +(this.C=new g.ix({I:"button",Na:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.P(this,this.C),this.C.Ja(this.D.element),this.B=new Sx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(Zw("ad-text"),this.ra.message,c),g.P(this,this.B),oe(this.C.element,this.B.element, +0));var d=d===void 0?null:d;c=this.api.U();!(this.Fa.length>0)&&c.B&&(YN?0:"ontouchstart"in document.documentElement&&(Cha()||hl()))&&(this.Nc(this.ob),d&&this.Nc(d),this.Fa=[this.T(this.element,"touchstart",this.T5,this),this.T(this.element,"touchmove",this.S5,this),this.T(this.element,"touchend",this.R5,this)])}}; +g.k.clear=function(){this.La.reset();this.hide()}; +g.k.hide=function(){this.D.hide();this.B&&this.B.hide();Wx(this);Ux.prototype.hide.call(this)}; +g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(Ssa(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;Ux.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");if(this.Wa||!this.Ga)this.api.onAdUxClicked(this.componentType, +this.layoutId)}}; +g.k.N1=function(a){if(!this.Wa)return this.Ga&&gy("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.Q(a,g.ly))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b=this.G&&Wsa(this,!0)};g.z(ny,Bx);ny.prototype.init=function(a,b,c){Bx.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.lx(b.text),a=!g.rb(a));a?b.navigationEndpoint==null?g.Cw(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.Cw(Error("Button style was not a link-style type in renderer,")):this.show():g.Cw(Error("No visit advertiser text was present in the renderer."))};g.z(oy,jx); +oy.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);a=b.text;g.rb(kx(a))?g.Cw(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new Sx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),a.init(Zw("simple-ad-badge"),b,c),a.Ja(this.element),g.P(this,a)),this.api.U().experiments.kb("enable_unified_ad_badge_style_fix")&&this.C&& +this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; +oy.prototype.clear=function(){this.hide()};g.z(py,$w);g.z(qy,g.ax);g.k=qy.prototype;g.k.YJ=function(){return this.durationMs}; +g.k.stop=function(){this.j&&this.Fd.Nc(this.j)}; +g.k.Tc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")}; +g.k.getProgressState=function(){return this.B}; +g.k.U5=function(a){g.jy(a,2)&&this.publish("g")};g.z(ry,g.ax);g.k=ry.prototype;g.k.YJ=function(){return this.durationMs}; +g.k.start=function(){this.j||(this.j=!0,this.Ve.start())}; +g.k.stop=function(){this.j&&(this.j=!1,this.Ve.stop())}; +g.k.Tc=function(){this.rj+=100;var a=!1;this.rj>this.durationMs&&(this.rj=this.durationMs,this.Ve.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.rj/1E3};this.publish("h");a&&this.publish("g")}; +g.k.getProgressState=function(){return this.B};g.z(uy,Ux);g.k=uy.prototype;g.k.init=function(a,b,c){Ux.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.Cw(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new Sx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.B.init(Zw("ad-text"),a,{});this.B.Ja(this.element);g.P(this,this.B)}this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Wx(this);Ux.prototype.hide.call(this)}; +g.k.Gq=function(){this.hide()}; +g.k.Wo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof qy?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof ry?a.seekableEnd:this.api.getDuration(2,!1))-a.current,Tx(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.sy(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; +g.k.show=function(){Vx(this);Ux.prototype.show.call(this)};g.z(vy,Sx);vy.prototype.onClick=function(a){Sx.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.z(wy,jx); +wy.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.rb(b.text.content)){this.j=new g.ix({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.P(this,this.j);this.j.Ja(this.element);var d,e;a=((d=b.interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label)||b.text.content;this.element.setAttribute("aria-label",a);var f;if((f=b.interaction)==null?0:f.onTap)this.B=new g.ix({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.px()]}), +g.P(this,this.B),this.B.Ja(this.element);this.show()}}else g.Bw(Error("No banner text found in AdDisclosureBanner."))}; +wy.prototype.clear=function(){this.hide()};g.z(Ay,g.ix);Ay.prototype.Tc=function(){var a=this.B.getProgressState();this.progressBar.style.width=zy(new yy(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"}; +Ay.prototype.onStateChange=function(){g.BO(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Tc,this),this.Tc()):this.j!==-1&&(this.hide(),this.B.rh(this.j),this.j=-1))};g.z(By,jx); +By.prototype.init=function(a,b,c,d){jx.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.Q(c,nG),c=g.Q(c,aI),a?(c=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,this.Y),c.Ja(this.G),c.init(Zw("skip-button"),a,this.macros),g.P(this,c)):c&&(a=new Zx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!1),a.Ja(this.G),a.init(Zw("ad-preview"),c,this.macros),$x(a),g.P(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, +c=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.Ga),c.init(Zw("instream-user-sentiment"),a,this.macros),g.P(this,c));if(a=g.Q(b,C$a))if(a=g.Q(a,C$a))c=new ay(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!!b.showWithoutLinkedMediaLayout),g.P(this,c),c.Ja(this.C),c.init(Zw("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Ad",isTemplated:!1}}), +c=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,c),c.Ja(this.j),c.init(Zw("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d),g.P(this,d),d.Ja(this.j),d.init(Zw("ad-duration-remaining"), +a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,$H))&&(a=new Rx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.j),a.init(Zw("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.Q(b.visitAdvertiserRenderer,g.bI))&&(c=Zsa(this)&&this.D?this.D:this.j)&&(d=new ny(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,d),d.Ja(c),d.init(Zw("visit-advertiser"),a,this.macros),Jo(d.element),a=Mo(d.element), +Lo(d.element,a+" This link opens in new tab"));!(d=this.api.U())||g.zO(d)||d.controlsType!="3"&&!d.disableOrganicUi||(d=new Ay(this.api,this.B),d.Ja(this.La),g.P(this,d));b.adDisclosureBannerRenderer&&(b=g.Q(b.adDisclosureBannerRenderer,O$a))&&(d=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),d.Ja(this.ra),d.init(Zw("ad-disclosure-banner"),b),g.P(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Wo(this.element,"ytp-ad-player-overlay-updated-focus-style"); +this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()}; +By.prototype.clear=function(){this.hide()};Fy.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)}; +Fy.prototype.get=function(a){return this.j.get(a)}; +Fy.prototype.remove=function(a){this.j.remove(a)};var Jy=null,Ky=null,Ly=null,eta=null;g.Ka("yt.www.ads.eventcache.getLastCompanionData",function(){return Jy}); +g.Ka("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.Ka("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Ky}); +g.Ka("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Ly}); +g.Ka("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return eta});var gta=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);My.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.gq.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; +My.prototype.replace=function(a,b){a=g.w(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];ita(this,b)};var Pab=window.location.hostname.split(".").slice(-2).join("."),E1;Oy.getInstance=function(){E1=g.La("yt.clientLocationService.instance");E1||(E1=new Oy,g.Ka("yt.clientLocationService.instance",E1));return E1}; +g.k=Oy.prototype; +g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C|| +this.locationPlayabilityToken}; +g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.Hq("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Ny(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.zr("YT_CL",JSON.stringify({loctok:a}),15552E3,Pab,!0))}; +g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=Ny(this))&&this.localStorage.remove("yt-location-playability-token"):g.Br("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; +g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.Hq("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b, +maximumAge:0,timeout:c})})}; +g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; +g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=mta.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)}; +g.k.get=function(a){if(this.contains(a))return this.j[a]}; +g.k.set=function(a,b){this.j[a]=b}; +g.k.ao=function(){return Object.keys(this.j)}; +g.k.remove=function(a){delete this.j[a]};Ry.prototype.getModuleId=function(a){return a.serviceId.getModuleId()}; +Ry.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Ld(b)}}return a}; +Ry.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a}; +new Ry;var F1={},nta=(F1.WEB_UNPLUGGED="^unplugged/",F1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",F1.WEB_UNPLUGGED_OPS="^unplugged/",F1.WEB_UNPLUGGED_PUBLIC="^unplugged/",F1.WEB_CREATOR="^creator/",F1.WEB_KIDS="^kids/",F1.WEB_EXPERIMENTS="^experiments/",F1.WEB_MUSIC="^music/",F1.WEB_REMIX="^music/",F1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",F1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",F1);Uy.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?eu:c;var d={context:g.Py(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.Ty(this.C());(e=(f=g.Q(a.commandMetadata,g.w1))==null?void 0:f.apiUrl)&&(b=e);f=kna(Cr(b));a=Object.assign({},{command:a},void 0);d={input:f,tv:Dr(f),gq:d,config:a};d.config.Iw?d.config.Iw.identity=c:d.config.Iw={identity:c};return d}g.Bw(new g.Ks("Error: Failed to create Request from Command.",a))}; +g.da.Object.defineProperties(Uy.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.z(Vy,Uy);g.z(Wy,Vy);Wy.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",tv:Dr("/getDatasyncIdsEndpoint","GET"),gq:{}}}; +Wy.prototype.C=function(){return[]}; +Wy.prototype.B=function(){}; +Wy.prototype.j=function(){};var Qab={},Uta=(Qab.GET_DATASYNC_IDS=Sy(Wy),Qab);var G1={},uta=(G1.auto_search="LATENCY_ACTION_AUTO_SEARCH",G1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",G1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",G1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",G1.app_startup="LATENCY_ACTION_APP_STARTUP",G1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",G1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",G1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",G1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", +G1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",G1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",G1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",G1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",G1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",G1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",G1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",G1["asset.metadata"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",G1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",G1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",G1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",G1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",G1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",G1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",G1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", +G1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",G1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",G1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",G1.browse="LATENCY_ACTION_BROWSE",G1.cast_splash="LATENCY_ACTION_CAST_SPLASH",G1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",G1.channels="LATENCY_ACTION_CHANNELS",G1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",G1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS", +G1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",G1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",G1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",G1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",G1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",G1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",G1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",G1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", +G1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",G1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",G1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",G1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",G1.chips="LATENCY_ACTION_CHIPS",G1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",G1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",G1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", +G1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",G1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",G1.embed="LATENCY_ACTION_EMBED",G1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",G1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",G1.explore="LATENCY_ACTION_EXPLORE",G1.favorites="LATENCY_ACTION_FAVORITES",G1.home="LATENCY_ACTION_HOME",G1.inboarding="LATENCY_ACTION_INBOARDING",G1.library="LATENCY_ACTION_LIBRARY",G1.live= +"LATENCY_ACTION_LIVE",G1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",G1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",G1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",G1.onboarding="LATENCY_ACTION_ONBOARDING",G1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",G1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",G1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",G1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",G1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS", +G1["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",G1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",G1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",G1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",G1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",G1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",G1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",G1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING", +G1["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",G1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",G1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",G1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",G1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",G1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",G1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",G1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",G1["owner.videos"]= +"LATENCY_ACTION_CREATOR_CMS_VIDEOS",G1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",G1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",G1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",G1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",G1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",G1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",G1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",G1.prebuffer="LATENCY_ACTION_PREBUFFER", +G1.prefetch="LATENCY_ACTION_PREFETCH",G1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",G1.profile_switcher="LATENCY_ACTION_LOGIN",G1.reel_watch="LATENCY_ACTION_REEL_WATCH",G1.results="LATENCY_ACTION_RESULTS",G1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",G1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",G1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",G1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",G1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",G1.search_ui= +"LATENCY_ACTION_SEARCH_UI",G1.search_suggest="LATENCY_ACTION_SUGGEST",G1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",G1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",G1.seek="LATENCY_ACTION_PLAYER_SEEK",G1.settings="LATENCY_ACTION_SETTINGS",G1.store="LATENCY_ACTION_STORE",G1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",G1.tenx="LATENCY_ACTION_TENX",G1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",G1.watch="LATENCY_ACTION_WATCH",G1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", +G1["watch,watch7"]="LATENCY_ACTION_WATCH",G1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",G1["watch,watch7ad"]="LATENCY_ACTION_WATCH",G1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",G1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",G1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",G1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",G1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",G1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",G1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT", +G1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",G1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",G1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",G1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",G1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",G1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",G1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",G1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", +G1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",G1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",G1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",G1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",G1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",G1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",G1);g.z(yz,fu);var Ita=new gu("aft-recorded",yz);var Rab=g.Ja.ytLoggingGelSequenceIdObj_||{};g.Ka("ytLoggingGelSequenceIdObj_",Rab);var Bz=g.Ja.ytLoggingLatencyUsageStats_||{};g.Ka("ytLoggingLatencyUsageStats_",Bz);zz.prototype.tick=function(a,b,c,d){Cz(this,"tick_"+a+"_"+b)||g.$s("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})}; +zz.prototype.info=function(a,b,c){var d=Object.keys(a).join("");Cz(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.$s("latencyActionInfo",a,{cttAuthInfo:c}))}; +zz.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(a=2&&c.ssdaiAdsConfig&&gy("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||wva(a)})}; +TC.prototype.NO=function(){iva(this.j)};UC.prototype.cF=function(){var a=this;hva(this.j,function(){var b=SB(a.slot.Ba,"metadata_type_ad_break_request_data");return a.B.get().fetch({U3:b.getAdBreakUrl,TX:new g.PC(b.iT,b.hT)})})}; +UC.prototype.NO=function(){iva(this.j)};VC.prototype.cF=function(){var a=this.slot.Ba,b,c=(b=this.slot.fulfilledLayout)!=null?b:SB(a,"metadata_type_fulfilled_layout");Nua(this.callback,this.slot,c)}; +VC.prototype.NO=function(){eC(this.callback,this.slot,new QB("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};XC.prototype.build=function(a,b){return b.fulfilledLayout||WC(b,{Ld:["metadata_type_fulfilled_layout"]})?new VC(a,b):this.C(a,b)};g.z(YC,XC); +YC.prototype.C=function(a,b){if(WC(b,{Ld:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new TC(a,b,this.j,this.B,this.Le,this.Ca,this.Oa,this.Ha,this.Gc);if(WC(b,{Ld:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new UC(a,b,this.j,this.B,this.Le,this.Ca);throw new QB("Unsupported slot with type: "+b.slotType+" and client metadata: "+TB(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(ZC,XC);ZC.prototype.C=function(a,b){throw new QB("Unsupported slot with type: "+b.slotType+" and client metadata: "+TB(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=xva.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Hf(this.slot,a,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=SB(a.Ba,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.vc(this.slot,a),Fya(this.B,this.slot, +b)):gy("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}}; +g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new PB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.Oc(this.slot,a,b),zva(this))};g.z(dD,g.ax);g.k=dD.prototype;g.k.dc=function(){return this.B.slot}; +g.k.bb=function(){return this.B.layout}; +g.k.init=function(){this.C.get().addListener(this)}; +g.k.release=function(){this.C.get().removeListener(this);this.dispose()}; +g.k.BQ=function(){}; +g.k.zQ=function(){}; +g.k.yQ=function(){}; +g.k.vK=function(){}; +g.k.startRendering=function(a){var b=this;cD(this.B,a,function(){return void b.LM()})}; +g.k.LM=function(){this.C.get().LM(this.j)}; +g.k.Id=function(a,b){var c=this;cD(this.B,a,function(){var d=c.C.get();r7a(d,c.j,3);c.j=[];c.callback.Oc(c.slot,a,b)})}; +g.k.ya=function(){this.C.Ka()||this.C.get().removeListener(this);g.ax.prototype.ya.call(this)}; +g.da.Object.defineProperties(dD.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});kD.prototype.Sh=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&Cva(a)){var d=this.C.get(b);d&&c.push.apply(c,g.x(d))}nD(this,a,c);this.j.add(a);b&&this.j.add(b)}; +kD.prototype.Zb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&Cva(a);c&&(b=!this.j.has(c));this.Sh(a,b)}};g.z(Fva,$w);g.z(sD,dD);g.k=sD.prototype;g.k.gg=function(a,b){gD("ads-engagement-panel-layout",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,LH),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new Fva(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(Hva,$w);g.z(tD,dD);g.k=tD.prototype;g.k.gg=function(a,b){gD("banner-image",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,JH),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new Hva(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(uD,$w);g.z(vD,dD);g.k=vD.prototype;g.k.gg=function(a,b){gD("action-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,GH),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new uD(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(Kva,$w);g.z(wD,dD);g.k=wD.prototype;g.k.gg=function(a,b){gD("image-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,HH),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Kva(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(Mva,$w);g.z(xD,dD);g.k=xD.prototype;g.k.gg=function(a,b){gD("shopping-companion",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Mva(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(yD,dD);g.k=yD.prototype;g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new uD(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(){}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)}; +g.k.gg=function(){};g.k=Tva.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().EE.push(this);var a=SB(this.layout.Ba,"metadata_type_video_length_seconds"),b=SB(this.layout.Ba,"metadata_type_active_view_traffic_type");hD(this.layout.Db)&&n0(this.zb.get(),this.layout.layoutId,{Ct:b,sI:a,listener:this})}; +g.k.release=function(){this.Ha.get().removeListener(this);l7a(this.Ha.get(),this);hD(this.layout.Db)&&o0(this.zb.get(),this.layout.layoutId)}; +g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; +g.k.Id=function(a,b){M6a(this.Ca.get())&&!this.j&&(this.eb.Zb("abandon"),this.j=!0);this.callback.Oc(this.slot,a,b)}; +g.k.Jj=function(a){switch(a.id){case "part2viewed":this.eb.Zb("start");this.eb.Zb("impression");break;case "videoplaytime25":this.eb.Zb("first_quartile");break;case "videoplaytime50":this.eb.Zb("midpoint");break;case "videoplaytime75":this.eb.Zb("third_quartile");break;case "videoplaytime100":M6a(this.Ca.get())?this.j||(this.eb.Zb("complete"),this.j=!0):this.eb.Zb("complete");rD(this.eb)&&pD(this.eb,Infinity,!0);break;case "engagedview":rD(this.eb)||this.eb.Zb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:gy("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.hj=function(){}; +g.k.nh=function(){}; +g.k.Kj=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.Ag=function(){}; +g.k.Ni=function(){}; +g.k.bS=function(a){rD(this.eb)&&pD(this.eb,a*1E3,!1)}; +g.k.Mj=function(){}; +g.k.py=function(){this.eb.Zb("active_view_measurable")}; +g.k.qy=function(){this.eb.Zb("active_view_viewable")}; +g.k.oy=function(){this.eb.Zb("active_view_fully_viewable_audible_half_duration")}; +g.k.ly=function(){this.eb.Zb("audio_measurable")}; +g.k.jy=function(){this.eb.Zb("audio_audible")};g.z(zD,dD);g.k=zD.prototype;g.k.init=function(){dD.prototype.init.call(this);var a=SB(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.hc};this.j.push(new py(a,this.layout.layoutId,SB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))}; +g.k.wq=function(){this.D||this.Ha.get().resumeVideo(1)}; +g.k.startRendering=function(a){dD.prototype.startRendering.call(this,a);v0(this.Ha.get(),"ad-showing");this.callback.vc(this.slot,a);this.G.Bt=this}; +g.k.Id=function(a,b){dD.prototype.Id.call(this,a,b);w0(this.Ha.get(),"ad-showing");$0(this.G,this)}; +g.k.gg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ha.get().Io(1))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo()}}; +g.k.ya=function(){dD.prototype.ya.call(this)};g.z(AD,$w);g.z(BD,dD);g.k=BD.prototype;g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new AD(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(){}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)}; +g.k.gg=function(){};g.z(CD,$w);g.z(DD,dD);DD.prototype.init=function(){dD.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,RD)||SB(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=eD(this.eb);this.j.push(new CD(a,b,this.layout.layoutId,{adsClientData:this.layout.hc},!0,!0))}; +DD.prototype.startRendering=function(a){dD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; +DD.prototype.gg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=SB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.JL(this.dc(),this.layout)}}; +DD.prototype.ya=function(){dD.prototype.ya.call(this)};FD.prototype.build=function(a,b,c,d){if(ED(d,{Ld:["metadata_type_ad_break_response_data"],Ee:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new xva(a,c,d,this.B,this.C,this.j);throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+TB(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(Wva,$w);g.z(GD,dD);g.k=GD.prototype;g.k.gg=function(a,b){gD("ads-engagement-panel",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,IH),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Wva(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};g.z(HD,dD);g.k=HD.prototype;g.k.gg=function(a,b){gD("top-banner-image-text-icon-buttoned",a,this.K.get().pj,this.Oa.get(),this.D,this.G,this.dc(),this.bb(),b)}; +g.k.startRendering=function(a){fD(this.eb,this.dc(),this.bb(),g.Q(this.bb().renderingContent,KH),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new AD(b,c,d,e,f)},this.j); +dD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():gy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.ya=function(){cC(this.qc(),this);dD.prototype.ya.call(this)};Zva.prototype.build=function(a,b,c,d){if(ED(d,Xva())||g.Q(d.renderingContent,IH)!==void 0)return new GD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Jva())||g.Q(d.renderingContent,GH)!==void 0)return new vD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Lva())||g.Q(d.renderingContent,HH)!==void 0)return new wD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Nva()))return new xD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Sva()))return new yD(a,c,d,this.Ac,this.Oa,this.qc, +this.zb,this.j);if(ED(d,Iva())||g.Q(d.renderingContent,JH)!==void 0)return new tD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Yva())||g.Q(d.renderingContent,KH)!==void 0)return new HD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Uva()))return new BD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);if(ED(d,Gva())||g.Q(d.renderingContent,LH)!==void 0)return new sD(a,c,d,this.Ac,this.Oa,this.qc,this.zb,this.j);throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ +TB(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.z(ID,$w);g.z(JD,dD);JD.prototype.init=function(){dD.prototype.init.call(this);var a=SB(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new ID(g.Q(a,D$a),this.layout.layoutId,{adsClientData:this.layout.hc}))}; +JD.prototype.gg=function(){}; +JD.prototype.startRendering=function(a){dD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; +JD.prototype.ya=function(){dD.prototype.ya.call(this)};$va.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.w(lD()),f=e.next();!f.done;f=e.next())b.push(f.value);if(ED(d,{Ld:b,Ee:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new JD(a,c,d,this.Ac);throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+TB(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=awa.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.eb.Zb("impression"),aG(this.Oi,a,"normal"))}; +g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new PB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Oc(this.slot,a,b)};g.k=cwa.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.eb.Zb("impression"),aG(this.Oi,a,"normal"))}; +g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new PB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Oc(this.slot,a,b)};KD.prototype.build=function(a,b,c,d){if(!this.Ca.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ED(d,bwa()))return new awa(a,c,d,this.Oa,this.Oi)}else if(ED(d,{Ld:[],Ee:["LAYOUT_TYPE_FORECASTING"]}))return new cwa(a,c,d,this.Oa,this.Oi);throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+TB(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(fwa,$w);g.z(LD,dD);g.k=LD.prototype;g.k.init=function(){dD.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,QD)||SB(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.hc};this.j.push(new fwa(a,SB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))}; +g.k.wq=function(){this.D||this.Ha.get().resumeVideo(2)}; +g.k.startRendering=function(a){dD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.Bt=this}; +g.k.Id=function(a,b){dD.prototype.Id.call(this,a,b);$0(this.G,this)}; +g.k.gg=function(a){if(SI(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Io(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser-link":this.Ha.get().pauseVideo();gwa(this).sM();break; +case "skip-button":if(a=gwa(this),!this.layout.renderingContent&&a.QK)gy("Requesting to skip by LegacyPlayerBytes when components enabled"),a.yy(this.dc(),this.layout);else{var b;(a=(b=SB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.JL(this.dc(),this.layout)}}}; +g.k.ya=function(){dD.prototype.ya.call(this)};g.z(MD,dD);g.k=MD.prototype;g.k.init=function(){dD.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,PD)||SB(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.hc},c;(c=!!this.layout.renderingContent)||(c=!ND(this).QK);this.j.push(new py(a,this.layout.layoutId,SB(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; +g.k.wq=function(){this.D||this.Ha.get().resumeVideo(2)}; +g.k.startRendering=function(a){dD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.Bt=this}; +g.k.Id=function(a,b){dD.prototype.Id.call(this,a,b);$0(this.G,this)}; +g.k.gg=function(a){if(SI(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Io(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();ND(this).sM();break;case "skip-button":if(a= +ND(this),!this.layout.renderingContent&&a.QK)gy("Requesting to skip by LegacyPlayerBytes"),a.yy(this.dc(),this.layout);else{var b;(a=(b=SB(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.JL(this.dc(),this.layout)}}}; +g.k.ya=function(){dD.prototype.ya.call(this)};g.z(iwa,$w);g.z(OD,dD);g.k=OD.prototype;g.k.startRendering=function(a){var b=this;cD(this.B,a,function(){b.j.push(new iwa(SB(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.hc));b.LM();b.callback.vc(b.slot,a);g.T(m0(b.Ha.get(),1),512)&&b.callback.Hf(b.dc(),b.bb(),new PB("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.k.Ni=function(){}; +g.k.Ag=function(a){if(a.state.isError()){var b;this.callback.Hf(this.dc(),this.bb(),new PB("A player error happened during adNotify",{playerErrorCode:(b=a.state.dh)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.k.onFullscreenToggled=function(){}; +g.k.nh=function(){}; +g.k.Kj=function(){}; +g.k.hj=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Jj=function(){}; +g.k.Mj=function(){}; +g.k.gg=function(){};kwa.prototype.build=function(a,b,c,d){if(a=SD(a,c,d,this.Ac,this.Ha,this.Oa,this.B,this.j,this.Ca))return a;throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+TB(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=lwa.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().EE.push(this);var a=SB(this.layout.Ba,"metadata_type_video_length_seconds"),b=SB(this.layout.Ba,"metadata_type_active_view_traffic_type"),c=SB(this.layout.Ba,"metadata_type_active_view_identifier");hD(this.layout.Db)&&n0(this.zb.get(),this.layout.layoutId,{Ct:b,sI:a,listener:this,r7:c})}; +g.k.release=function(){this.Ha.get().removeListener(this);l7a(this.Ha.get(),this);hD(this.layout.Db)&&o0(this.zb.get(),this.layout.layoutId)}; +g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; +g.k.Id=function(a,b){VD(this,"abandon");this.callback.Oc(this.slot,a,b)}; +g.k.Jj=function(a){switch(a.id){case "part2viewed":this.eb.Zb("start");this.eb.Zb("impression");break;case "videoplaytime25":this.eb.Zb("first_quartile");break;case "videoplaytime50":this.eb.Zb("midpoint");break;case "videoplaytime75":this.eb.Zb("third_quartile");break;case "videoplaytime100":VD(this,"complete");rD(this.eb)&&pD(this.eb,Infinity,!0);break;case "engagedview":rD(this.eb)||this.eb.Zb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:gy("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.hj=function(){}; +g.k.nh=function(){}; +g.k.Kj=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.Ag=function(a){this.j||(g.jy(a,4)&&!g.jy(a,2)?oD(this.eb,"pause"):iy(a,4)<0&&!(iy(a,2)<0)&&oD(this.eb,"resume"))}; +g.k.Ni=function(){}; +g.k.bS=function(a){rD(this.eb)&&pD(this.eb,a*1E3,!1)}; +g.k.Mj=function(){VD(this,"swipe")}; +g.k.py=function(){this.eb.Zb("active_view_measurable")}; +g.k.qy=function(){this.eb.Zb("active_view_viewable")}; +g.k.oy=function(){this.eb.Zb("active_view_fully_viewable_audible_half_duration")}; +g.k.ly=function(){this.eb.Zb("audio_measurable")}; +g.k.jy=function(){this.eb.Zb("audio_audible")};mwa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.w(lD()),f=e.next();!f.done;f=e.next())b.push(f.value);if(ED(d,{Ld:b,Ee:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new lwa(a,c,d,this.Ha,this.Oa,this.Ca,this.zb):new Tva(a,c,d,this.Ha,this.Oa,this.Ca,this.zb);throw new PB("Unsupported layout with type: "+d.layoutType+" and client metadata: "+TB(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); +};var ZD={contentCpn:"",It:new Map};vwa.prototype.Hk=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Kf.Lm(),c));YD(this.Kf,a,b)};var Xab,J1,wwa; +Xab={fga:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Dga:"AUTHENTICATION_MALFORMED",Ega:"AUTHENTICATION_MISSING",Gga:"BAD_REQUEST",Nga:"CAST_SESSION_DEVICE_MISMATCHED",Oga:"CAST_SESSION_VIDEO_MISMATCHED",Pga:"CAST_TOKEN_EXPIRED",Qga:"CAST_TOKEN_FAILED",Rga:"CAST_TOKEN_MALFORMED",Sga:"CGI_PARAMS_MALFORMED",Tga:"CGI_PARAMS_MISSING",sha:"DEVICE_FALLBACK",Mha:"GENERIC_WITH_LINK_AND_CPN",Nha:"ERROR_HDCP",Oha:"LICENSE",Qha:"VIDEO_UNAVAILABLE",Wha:"FORMAT_UNAVAILABLE",bia:"GEO_FAILURE", +uia:"HTML5_AUDIO_RENDERER_ERROR",via:"GENERIC_WITHOUT_LINK",wia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",xia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",yia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",zia:"HTML5_SPS_UMP_STATUS_REJECTED",Jia:"INVALID_DRM_MESSAGE",uka:"PURCHASE_NOT_FOUND",vka:"PURCHASE_REFUNDED",Cka:"RENTAL_EXPIRED",Ika:"RETRYABLE_ERROR",Qka:"SERVER_ERROR",Yka:"SIGNATURE_EXPIRED",ila:"STOPPED_BY_ANOTHER_PLAYBACK",jla:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",kla:"STREAMING_NOT_ALLOWED", +lla:"STREAM_LICENSE_NOT_FOUND",tla:"TOO_MANY_REQUESTS",ula:"TOO_MANY_REQUESTS_WITH_LINK",wla:"TOO_MANY_STREAMS_PER_ENTITLEMENT",xla:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Rla:"VIDEO_FORBIDDEN",Sla:"VIDEO_NOT_FOUND",Jga:"BROWSER_OR_EXTENSION_ERROR"};J1={}; +g.IU=(J1.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",J1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",J1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",J1.LICENSE="Sorry, there was an error licensing this video.",J1.VIDEO_UNAVAILABLE= +"Video unavailable",J1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",J1.GEO_FAILURE="This video isn't available in your country.",J1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",J1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",J1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",J1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +J1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",J1.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",J1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",J1.PURCHASE_NOT_FOUND="This video requires payment.",J1.PURCHASE_REFUNDED="This video's purchase has been refunded.",J1.RENTAL_EXPIRED="This video's rental has expired.",J1.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",J1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",J1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",J1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",J1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",J1.SERVER_ERROR="There was an internal server error. Please try again later.",J1.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",J1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",J1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",J1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",J1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",J1.TOO_MANY_REQUESTS="Please log in to watch this video.", +J1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",J1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",J1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",J1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",J1.VIDEO_FORBIDDEN="Access to this video is forbidden.",J1.VIDEO_NOT_FOUND="This video can not be found.",J1.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",J1); +wwa={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 Yab;var Zab=g.yb(),$ab=Zab.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$ab||$ab.length<2)Yab=void 0;else{var abb=Zab.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Yab=abb&&abb.length===6?Number(abb[5].replace("_",".")):0}var OP=Yab,DU=OP>=0;g.z(g.oE,qs);g.oE.prototype.T=function(a,b,c,d,e){return qs.prototype.T.call(this,a,b,c,d,e)};var K1={},lN=(K1.FAIRPLAY="fairplay",K1.PLAYREADY="playready",K1.WIDEVINE="widevine",K1.CLEARKEY=null,K1.FLASHACCESS=null,K1.UNKNOWN=null,K1.WIDEVINE_CLASSIC=null,K1);pE.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var L1={},tL=(L1.WIDTH={name:"width",video:!0,valid:640,Co:99999},L1.HEIGHT={name:"height",video:!0,valid:360,Co:99999},L1.FRAMERATE={name:"framerate",video:!0,valid:30,Co:9999},L1.BITRATE={name:"bitrate",video:!0,valid:3E5,Co:2E9},L1.EOTF={name:"eotf",video:!0,valid:"bt709",Co:"catavision"},L1.CHANNELS={name:"channels",video:!1,valid:2,Co:99},L1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Co:"invalidformat"},L1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +Co:"nope"},L1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Co:"av99.0.05M.08"},L1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Co:"invalid"},L1);var bbb=["h","H"],cbb=["9","("],dbb=["9h","(h"],ebb=["8","*"],fbb=["a","A"],gbb=["o","O"],hbb=["m","M"],ibb=["mac3","MAC3"],jbb=["meac3","MEAC3"],M1={},GIa=(M1.h=bbb,M1.H=bbb,M1["9"]=cbb,M1["("]=cbb,M1["9h"]=dbb,M1["(h"]=dbb,M1["8"]=ebb,M1["*"]=ebb,M1.a=fbb,M1.A=fbb,M1.o=gbb,M1.O=gbb,M1.m=hbb,M1.M=hbb,M1.mac3=ibb,M1.MAC3=ibb,M1.meac3=jbb,M1.MEAC3=jbb,M1),kbb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),oDa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var N1={},vE=(N1["0"]="f",N1["160"]="h",N1["133"]="h",N1["134"]="h",N1["135"]="h",N1["136"]="h",N1["137"]="h",N1["264"]="h",N1["266"]="h",N1["138"]="h",N1["298"]="h",N1["299"]="h",N1["304"]="h",N1["305"]="h",N1["214"]="h",N1["216"]="h",N1["374"]="h",N1["375"]="h",N1["140"]="a",N1["141"]="ah",N1["327"]="sa",N1["258"]="m",N1["380"]="mac3",N1["328"]="meac3",N1["161"]="H",N1["142"]="H",N1["143"]="H",N1["144"]="H",N1["222"]="H",N1["223"]="H",N1["145"]="H",N1["224"]="H",N1["225"]="H",N1["146"]="H",N1["226"]= +"H",N1["227"]="H",N1["147"]="H",N1["384"]="H",N1["376"]="H",N1["385"]="H",N1["377"]="H",N1["149"]="A",N1["261"]="M",N1["381"]="MAC3",N1["329"]="MEAC3",N1["598"]="9",N1["278"]="9",N1["242"]="9",N1["243"]="9",N1["244"]="9",N1["775"]="9",N1["776"]="9",N1["777"]="9",N1["778"]="9",N1["779"]="9",N1["780"]="9",N1["781"]="9",N1["782"]="9",N1["783"]="9",N1["247"]="9",N1["248"]="9",N1["353"]="9",N1["355"]="9",N1["356"]="9",N1["271"]="9",N1["577"]="9",N1["313"]="9",N1["579"]="9",N1["272"]="9",N1["302"]="9", +N1["303"]="9",N1["407"]="9",N1["408"]="9",N1["308"]="9",N1["315"]="9",N1["330"]="9h",N1["331"]="9h",N1["332"]="9h",N1["333"]="9h",N1["334"]="9h",N1["335"]="9h",N1["336"]="9h",N1["337"]="9h",N1["338"]="so",N1["600"]="o",N1["250"]="o",N1["251"]="o",N1["194"]="*",N1["195"]="*",N1["220"]="*",N1["221"]="*",N1["196"]="*",N1["197"]="*",N1["279"]="(",N1["280"]="(",N1["317"]="(",N1["318"]="(",N1["273"]="(",N1["274"]="(",N1["357"]="(",N1["358"]="(",N1["275"]="(",N1["359"]="(",N1["360"]="(",N1["276"]="(",N1["583"]= +"(",N1["584"]="(",N1["314"]="(",N1["585"]="(",N1["561"]="(",N1["277"]="(",N1["361"]="(h",N1["362"]="(h",N1["363"]="(h",N1["364"]="(h",N1["365"]="(h",N1["366"]="(h",N1["591"]="(h",N1["592"]="(h",N1["367"]="(h",N1["586"]="(h",N1["587"]="(h",N1["368"]="(h",N1["588"]="(h",N1["562"]="(h",N1["409"]="(",N1["410"]="(",N1["411"]="(",N1["412"]="(",N1["557"]="(",N1["558"]="(",N1["394"]="1",N1["395"]="1",N1["396"]="1",N1["397"]="1",N1["787"]="1",N1["788"]="1",N1["398"]="1",N1["399"]="1",N1["400"]="1",N1["401"]= +"1",N1["571"]="1",N1["402"]="1",N1["694"]="1h",N1["695"]="1h",N1["696"]="1h",N1["697"]="1h",N1["698"]="1h",N1["699"]="1h",N1["700"]="1h",N1["701"]="1h",N1["702"]="1h",N1["703"]="1h",N1["386"]="3",N1["387"]="w",N1["406"]="6",N1["645"]="(",N1["646"]="(",N1["647"]="(",N1["648"]="(",N1["649"]="(",N1["650"]="(",N1["651"]="(",N1["652"]="(",N1["653"]="(",N1["654"]="(",N1["655"]="(",N1["656"]="(",N1["657"]="(",N1["658"]="(",N1["659"]="(",N1["660"]="(",N1["661"]="(",N1["662"]="(",N1["663"]="(",N1["664"]="(", +N1["665"]="(",N1["666"]="(",N1["667"]="(",N1["668"]="(",N1["669"]="(",N1["670"]="(",N1["671"]="(",N1["672"]="(",N1["673"]="(",N1["674"]="(h",N1["675"]="(h",N1["676"]="(h",N1["677"]="(h",N1["678"]="(h",N1["679"]="(h",N1["680"]="(h",N1["681"]="(h",N1["682"]="(h",N1["683"]="(h",N1["684"]="(h",N1["685"]="(h",N1["686"]="(h",N1["687"]="(h",N1["688"]="A",N1["689"]="A",N1["690"]="A",N1["691"]="MEAC3",N1["773"]="i",N1);var O1={},fIa=(O1.STEREO_LAYOUT_UNKNOWN=0,O1.STEREO_LAYOUT_LEFT_RIGHT=1,O1.STEREO_LAYOUT_TOP_BOTTOM=2,O1);var P1,fL;P1={};g.rE=(P1.auto=0,P1.tiny=144,P1.light=144,P1.small=240,P1.medium=360,P1.large=480,P1.hd720=720,P1.hd1080=1080,P1.hd1440=1440,P1.hd2160=2160,P1.hd2880=2880,P1.highres=4320,P1);fL={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var tE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");sE.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};wE.prototype.Ke=function(){return this.containerType===2}; +wE.prototype.isEncrypted=function(){return!!this.le}; +wE.prototype.Gh=function(){return!!this.audio}; +wE.prototype.yg=function(){return!!this.video};g.z(TE,g.ax);g.k=TE.prototype;g.k.appendBuffer=function(a,b,c){if(this.Hd.hF()!==this.appendWindowStart+this.start||this.Hd.VJ()!==this.appendWindowEnd+this.start||this.Hd.Dc()!==this.timestampOffset+this.start)this.Hd.supports(1),this.Hd.HT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Hd.Qq(this.timestampOffset+this.start);this.Hd.appendBuffer(a,b,c)}; +g.k.abort=function(){this.Hd.abort()}; +g.k.remove=function(a,b){this.Hd.remove(a+this.start,b+this.start)}; +g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.k.clear=function(){this.Hd.clear()}; +g.k.HT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; +g.k.tQ=function(){return this.timestampOffset+this.start}; +g.k.hF=function(){return this.appendWindowStart}; +g.k.VJ=function(){return this.appendWindowEnd}; +g.k.Qq=function(a){this.timestampOffset=a}; +g.k.Dc=function(){return this.timestampOffset}; +g.k.oe=function(a){a=this.Hd.oe(a===void 0?!1:a);return SE(a,this.start,this.end)}; +g.k.Fk=function(){return this.Hd.Fk()}; +g.k.tK=function(){return this.Hd.tK()}; +g.k.Tm=function(){return this.Hd.Tm()}; +g.k.aR=function(){return this.Hd.aR()}; +g.k.Qz=function(){this.Hd.Qz()}; +g.k.Nx=function(a){return this.Hd.Nx(a)}; +g.k.jx=function(){return this.Hd.jx()}; +g.k.eK=function(){return this.Hd.eK()}; +g.k.IU=function(a,b){this.Hd.IU(a,b)}; +g.k.supports=function(a){return this.Hd.supports(a)}; +g.k.Kr=function(){return this.Hd.Kr()}; +g.k.isView=function(){return!0}; +g.k.mJ=function(){return this.Hd.mJ()?this.isActive:!1}; +g.k.isLocked=function(){return this.wI&&!this.isActive}; +g.k.uc=function(a){a=this.Hd.uc(a);a.vw=this.start+"-"+this.end;return a}; +g.k.fK=function(){return this.Hd.fK()}; +g.k.rF=function(){return this.Hd.rF()}; +g.k.nQ=function(){return this.Hd.nQ()}; +g.k.ya=function(){cx(this.Hd,this.nZ);g.ax.prototype.ya.call(this)}; +g.k.aG=function(){return this.Hd.aG()}; +g.k.qJ=function(){this.Hd.qJ()};var MW=!1;g.z(VE,g.ax);g.k=VE.prototype;g.k.appendBuffer=function(a,b,c){this.zE=!1;c&&(this.fG=c);if(a.length){var d;((d=this.Rb)==null?0:d.appendBuffer)?this.Rb.appendBuffer(a):this.Rb?this.Rb.append(a):this.rg&&this.rg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.pR=this.fG),b.type===3&&(this.Gf=b,b.Mi()&&(this.vI=!0)),this.eG.push(b.Sc()),this.eG.length>4&&this.eG.shift());this.nC&&(this.nC.length>=2||a.length>1048576?delete this.nC:this.nC.push(a))}; +g.k.abort=function(){try{this.Rb?this.Rb.abort():this.rg&&this.rg.webkitSourceAbort(this.id)}catch(a){dUa&&g.Bw(new g.Ks("Error while abort the source buffer: "+a.name+", "+a.message))}this.fG=this.Gf=null;this.vI=!1}; +g.k.remove=function(a,b,c){this.zE=!1;var d;if((d=this.Rb)==null?0:d.remove)c&&c({b:ME(this.oe()),s:a,e:b}),this.Rb.remove(a,b)}; +g.k.removeAll=function(){this.remove(this.hF(),this.VJ())}; +g.k.clear=function(){this.Tm()||(this.abort(),this.removeAll(),this.pR=this.fG=this.Gf=null,this.appendWindowStart=this.timestampOffset=0,this.JO=LE([],[]),this.zE=!1,this.nC=UE?[]:void 0,this.rJ=!0,this.vI=!1)}; +g.k.hF=function(){if(MW&&this.yg)return this.appendWindowStart;var a;return((a=this.Rb)==null?void 0:a.appendWindowStart)||0}; +g.k.VJ=function(){var a;return((a=this.Rb)==null?void 0:a.appendWindowEnd)||0}; +g.k.HT=function(a,b){this.Rb&&(MW&&this.yg?(this.appendWindowStart=a,this.Rb.appendWindowEnd=b):a>this.hF()?(this.Rb.appendWindowEnd=b,this.Rb.appendWindowStart=a):(this.Rb.appendWindowStart=a,this.Rb.appendWindowEnd=b))}; +g.k.tQ=function(){return this.timestampOffset}; +g.k.Qq=function(a){MW?this.timestampOffset=a:this.supports(1)&&(this.Rb.timestampOffset=a)}; +g.k.Dc=function(){return MW?this.timestampOffset:this.supports(1)?this.Rb.timestampOffset:0}; +g.k.oe=function(a){if(a===void 0?0:a)return this.zE||this.Fk()||(this.JO=this.oe(!1),this.zE=!0),this.JO;try{return this.Rb?this.Rb.buffered:this.rg?this.rg.webkitSourceBuffered(this.id):LE([0],[Infinity])}catch(b){return LE([],[])}}; +g.k.Fk=function(){var a;return((a=this.Rb)==null?void 0:a.updating)||!1}; +g.k.Tm=function(){return this.rJ}; +g.k.aR=function(){return!this.rJ&&this.Fk()}; +g.k.Qz=function(){this.rJ=!1}; +g.k.Nx=function(a){var b=a==null?void 0:a.rb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.rb&&a===this.containerType}; +g.k.jx=function(){return this.fG}; +g.k.eK=function(){return this.pR}; +g.k.IU=function(a,b,c){if(this.containerType!==a||c)this.supports(4),WE()&&this.Rb.changeType(b);this.containerType=a}; +g.k.Kr=function(){return this.Gf}; +g.k.isView=function(){return!1}; +g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Rb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Rb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Rb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Rb)==null?0:e.addEventListener)&&((f=this.Rb)==null?0:f.removeEventListener));case 4:return!(!this.Rb||!this.Rb.changeType);default:return!1}}; +g.k.mJ=function(){return!this.Fk()}; +g.k.isLocked=function(){return!1}; +g.k.uc=function(a){a.to=this.Dc();a.up=this.Fk();var b,c=((b=this.Rb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Rb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=ME(this.oe())}catch(e){}return a}; +g.k.tK=function(){var a;return((a=this.Rb)==null?void 0:a.writeHead)||0}; +g.k.fK=function(){for(var a={},b=0;b=7&&ywa(this,function(){g.fr(function(){Owa(a,a.getCurrentTime(),0)},500)}); +return b}; +g.k.seekTo=function(a){this.ql()>0&&(DU&&OP<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; +g.k.Yo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;aF(this,{l:"mer",sr:(a=this.ea)==null?void 0:bF(a),rs:dF(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.Ks("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.Bw(a),this.stopVideo()}else this.stopVideo()}; +g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Qa)==null||Lwa(b);if(aUa){if(!this.C){var c=new fF;c.then(void 0,function(){}); +this.C=c;bUa&&this.pause();g.fr(function(){a.C===c&&(jF(a),c.resolve())},200)}}else jF(this)}}; +g.k.vA=function(){var a=this.Dh();return QE(a)>0&&this.getDuration()?PE(a,this.getCurrentTime()):0}; +g.k.mx=function(){var a=this.getDuration();return a===Infinity?1:a?this.vA()/a:0}; +g.k.uc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:ME(this.qx(),",",3),vbu:ME(this.Dh()),vbs:ME(this.AA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.ql(),vns:""+this.hK(),vec:""+this.Eh(),vemsg:this.Wf(),vvol:""+this.getVolume(),vdom:""+ +this.bR(),vsrc:""+ +!!this.ai(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}}; +g.k.hasError=function(){return this.Eh()>0}; +g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.DP(a)}; +g.k.removeEventListener=function(a,b){this.D.Nc(a,b,!1,this)}; +g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(cUa){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((c==null?0:c.Tm())||b<=((c==null?void 0:c.N)||0)){var d;aF(this,{l:"mede",sr:(d=this.ea)==null?void 0:bF(d),et:a.type});return!1}if(this.IK)return aF(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.IK=!1),!1}return this.D.dispatchEvent(a)}; +g.k.zP=function(){this.K=!1}; +g.k.uP=function(){this.K=!0;this.tC(!0)}; +g.k.HX=function(){this.K&&!this.gK()&&this.tC(!0)}; +g.k.ya=function(){this.N&&this.removeEventListener("volumechange",this.HX);aUa&&jF(this);g.O.prototype.ya.call(this)}; +var aUa=!1,bUa=!1,cUa=!1;g.k=g.lF.prototype;g.k.isPaused=function(){return g.T(this,4)}; +g.k.isPlaying=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)}; +g.k.isOrWillBePlaying=function(){return g.T(this,8)&&!g.T(this,2)&&!g.T(this,1024)}; +g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)}; +g.k.isBuffering=function(){return g.T(this,1)&&!g.T(this,2)}; +g.k.isError=function(){return g.T(this,128)}; +g.k.isSuspended=function(){return g.T(this,512)}; +g.k.VF=function(){return g.T(this,64)&&g.T(this,4)}; +g.k.toString=function(){return"PSt."+this.state.toString(16)}; +var Q1={},R1=(Q1.BUFFERING="buffering-mode",Q1.CUED="cued-mode",Q1.ENDED="ended-mode",Q1.PAUSED="paused-mode",Q1.PLAYING="playing-mode",Q1.SEEKING="seeking-mode",Q1.UNSTARTED="unstarted-mode",Q1);g.z(vF,g.O);g.k=vF.prototype;g.k.pA=function(){return this.C}; +g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){var a=SB(this.layout.Ba,"metadata_type_video_length_seconds"),b=SB(this.layout.Ba,"metadata_type_active_view_traffic_type");hD(this.layout.Db)&&n0(this.zb.get(),this.layout.layoutId,{Ct:b,sI:a,listener:this,Ho:this.Te()});d7a(this.Oa.get(),this);a=this.Pg;b=this.layout.layoutId;var c={Ho:this.Te()};a.j.set(b,c);this.Dx()}; +g.k.release=function(){hD(this.layout.Db)&&o0(this.zb.get(),this.layout.layoutId);e7a(this.Oa.get(),this);this.Pg.j.delete(this.layout.layoutId);this.Ly()}; +g.k.Fs=function(){}; +g.k.Hs=function(){}; +g.k.startRendering=function(a){bE(wF(this));xF(this,a)&&(yF(this),this.Ts(a),this.Te()||this.dJ(!1))}; +g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.j=this.Ha.get().isMuted()||this.Ha.get().getVolume()===0;this.Zb("impression");this.Zb("start");if(this.Ha.get().isMuted()){EF(this,"mute");var c;a=((c=uF(this))==null?void 0:c.muteCommands)||[];DC(this.Mb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Sh("fullscreen");var d;c=((d=uF(this))==null?void 0:d.fullscreenCommands)||[];DC(this.Mb.get(),c,this.layout.layoutId)}this.Te()||(d=this.Cc.get(), +d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(Tz("pbs",void 0,d.actionType),g.kr("finalize_all_timelines")&&Nta(d.actionType))));this.Hq(1);this.nS(b);var e;b=((e=uF(this))==null?void 0:e.impressionCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.uL=function(a,b,c){this.N={qN:3,rI:a==="load_timeout"?402:400,errorMessage:b.message};this.Zb("error");var d;a=((d=uF(this))==null?void 0:d.errorCommands)||[];DC(this.Mb.get(),a,this.layout.layoutId);this.Te()||this.hp.Hf(this.slot,this.layout,b,c)}; +g.k.z3=function(){if(this.lc==="rendering"){EF(this,"pause");var a,b=((a=uF(this))==null?void 0:a.pauseCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId);this.Hq(2)}}; +g.k.A3=function(){if(this.lc==="rendering"){EF(this,"resume");var a,b=((a=uF(this))==null?void 0:a.resumeCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.jz=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){var c={currentTimeSec:a,flush:b};dE(this.B,"p_ip",c);pD(this.eb,a*1E3,b);this.j||pD(this.eb,a*1E3,b===void 0?!1:b);var d=this.tA();if(d){d/=1E3;if(a>=d*.25||b)this.Zb("first_quartile"),dE(this.B,"p_fq",c);if(a>=d*.5||b)this.Zb("midpoint"),dE(this.B,"p_sq",c);if(a>=d*.75||b)this.Zb("third_quartile"),dE(this.B,"p_tq",c);this.Ca.get().J.U().experiments.kb("enable_progress_command_flush_on_kabuki")?Rva(this.D,a*1E3,b):Rva(this.D,a*1E3,Wwa(this)? +b:!1)}}}; +g.k.Lm=function(){var a;return((a=zF(this.Sa.get(),1))==null?void 0:a.clientPlaybackNonce)||""}; +g.k.kz=function(a,b){a.layoutId!==this.layout.layoutId?this.hp.Hf(this.slot,a,new PB("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; +g.k.Oc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.Te()||(a=c!=="normal"||this.position+1===this.K)&&this.dJ(a),this.y3(c),this.Hq(0),c){case "abandoned":if(qD(this.eb,"impression")){var d,e=((d=uF(this))==null?void 0:d.abandonCommands)||[];DC(this.Mb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=uF(this))==null?void 0:e.completeCommands)||[];DC(this.Mb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f= +uF(this))==null?void 0:f.skipCommands)||[];DC(this.Mb.get(),d,this.layout.layoutId)}}; +g.k.uA=function(){return this.layout.layoutId}; +g.k.QP=function(){return this.N}; +g.k.py=function(){if(this.lc==="rendering"){this.eb.Zb("active_view_measurable");var a,b=((a=uF(this))==null?void 0:a.activeViewMeasurableCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.oy=function(){if(this.lc==="rendering"){this.eb.Zb("active_view_fully_viewable_audible_half_duration");var a,b=((a=uF(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.qy=function(){if(this.lc==="rendering"){this.eb.Zb("active_view_viewable");var a,b=((a=uF(this))==null?void 0:a.activeViewViewableCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.jy=function(){if(this.lc==="rendering"){this.eb.Zb("audio_audible");var a,b=((a=uF(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.ly=function(){if(this.lc==="rendering"){this.eb.Zb("audio_measurable");var a,b=((a=uF(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.dJ=function(a){this.Cc.get().dJ(SB(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.K,!1)}; +g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Sh("fullscreen");var b,c=((b=uF(this))==null?void 0:b.fullscreenCommands)||[];DC(this.Mb.get(),c,this.layout.layoutId)}else this.Sh("end_fullscreen"),b=((c=uF(this))==null?void 0:c.endFullscreenCommands)||[],DC(this.Mb.get(),b,this.layout.layoutId)}; +g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ha.get().isMuted()){EF(this,"mute");var a,b=((a=uF(this))==null?void 0:a.muteCommands)||[];DC(this.Mb.get(),b,this.layout.layoutId)}else EF(this,"unmute"),a=((b=uF(this))==null?void 0:b.unmuteCommands)||[],DC(this.Mb.get(),a,this.layout.layoutId)}; +g.k.nh=function(){}; +g.k.Kj=function(){}; +g.k.hj=function(){}; +g.k.Jj=function(){}; +g.k.Mj=function(){}; +g.k.Sh=function(a){this.eb.Sh(a,!this.j)}; +g.k.Zb=function(a){this.eb.Zb(a,!this.j)}; +g.k.Te=function(){var a=SB(this.slot.Ba,"metadata_type_eligible_for_ssap");return a===void 0?(gy("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ca.get().Te(a)};g.z(IF,vF);g.k=IF.prototype;g.k.cP=function(){this.layoutExitReason?this.hp.Oc(this.slot,this.layout,this.layoutExitReason):Swa(this)}; +g.k.Dx=function(){}; +g.k.Ly=function(){var a=this.Oa.get();a.cI===this&&(a.cI=null);this.Ve.stop()}; +g.k.Fs=function(){this.Ve.stop();vF.prototype.z3.call(this)}; +g.k.Hs=function(){KF(this);vF.prototype.A3.call(this)}; +g.k.tA=function(){return SB(this.bb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.k.Id=function(a,b){var c=this;this.kz(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,AF(c,b),c.Ve.stop())})}; +g.k.Tc=function(){var a=Date.now(),b=a-this.sR;this.sR=a;this.rj+=b;this.rj>=this.tA()?this.gZ():(this.jz(this.rj/1E3),JF(this,this.rj))}; +g.k.y3=function(){}; +g.k.Ni=function(){}; +g.z(LF,IF);g.k=LF.prototype;g.k.Ag=function(a){if(this.lc!=="not_rendering"){a=BF(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&TD(a)&&this.vJ():b?g.jy(a,2)?gy("Receive player ended event during MediaBreak",this.dc(),this.bb()):CF(this,a):this.tx()}}; +g.k.Ts=function(){Uwa(this);o7a(this.Ha.get());this.Oa.get().cI=this;Rz("pbp")||Rz("pbs")||Tz("pbp");Rz("pbp","watch")||Rz("pbs","watch")||Tz("pbp",void 0,"watch");this.vJ()}; +g.k.nS=function(a){this.Cc.get();var b=SB(a.Ba,"metadata_type_ad_placement_config").kind,c=this.position===0;a=SB(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:DF(b),adType:exa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";Oz("ad_mbs",void 0,d);g.Pz(a,d);KF(this)}; +g.k.tx=function(){this.DE()}; +g.k.gZ=function(){Xwa(this);this.DE()}; +g.z(MF,IF);g.k=MF.prototype;g.k.Ag=function(a){this.lc!=="not_rendering"&&(a=BF(this,a),CF(this,a))}; +g.k.Ts=function(){gy("startRenderingHelper in SSAP")}; +g.k.nS=function(){KF(this)}; +g.k.tx=function(){gy("handleAdPlayerNoLongerPresenting in SSAP")}; +g.k.gZ=function(){Xwa(this);this.hp.jC(this.dc(),this.bb(),"normal")}; +g.z(NF,MF);NF.prototype.Id=function(a,b){var c=this;this.kz(a,function(){XD(c.C,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,AF(c,b),c.Ve.stop())})}; +NF.prototype.startRendering=function(a){bE(wF(this));xF(this,a)&&(yF(this),this.Oa.get().cI=this)};g.z(QF,vF);g.k=QF.prototype;g.k.cP=function(){this.layoutExitReason?this.hp.Oc(this.slot,this.layout,this.layoutExitReason):Swa(this)}; +g.k.tx=function(){this.Te()&&gy("Unexpected ad player in SSAP",this.slot,this.layout);this.DE()}; +g.k.Ag=function(a){if(this.lc!=="not_rendering"){a=BF(this,a);var b=this.Ha.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&TD(a)&&this.vJ():b?g.jy(a,2)?this.DE():CF(this,a):this.tx()}}; +g.k.Dx=function(){SB(this.bb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=SB(this.bb().Ba,"metadata_type_shrunken_player_bytes_config")}; +g.k.Ly=function(){SB(this.bb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Kt&&this.Pc.get().removeCueRange(this.Kt);this.Kt=void 0;var a;(a=this.iL)==null||a.dispose();this.tB&&this.tB.dispose()}; +g.k.Ts=function(a){var b=OF(this.Ca.get()),c=PF(this.Ca.get());if(b&&c&&!this.Te()){c=SB(a.Ba,"metadata_type_preload_player_vars");var d=g.ZB(this.Ca.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.tB&&this.tB.start(d*1E3)}$wa(this,a);Uwa(this);b?(c=this.md.get(),a=SB(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):x7a(this.md.get(),SB(a.Ba,"metadata_type_player_vars"));var e;(e=this.iL)==null||e.start();b||this.md.get().J.playVideo(2)}; +g.k.nS=function(){var a;(a=this.iL)==null||a.stop();this.Kt="adcompletioncuerange:"+this.bb().layoutId;this.Pc.get().addCueRange(this.Kt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.vk;var b=this.Kt,c=this.bb().layoutId;if(cE(a.Ca.get(),!0)){var d={};a.Hk("mccr",(d.cid=b,d.p_ac=c,d))}(this.adCpn=Twa(this))||gy("Media layout confirmed started, but ad CPN not set.");this.od.get().bv("onAdStart",this.adCpn);this.cX=Date.now()}; +g.k.tA=function(){var a;return(a=zF(this.Sa.get(),2))==null?void 0:a.kda}; +g.k.sM=function(){this.eb.Sh("clickthrough")}; +g.k.Id=function(a,b){var c=this;this.kz(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;AF(c,b);var d;(d=c.iL)==null||d.stop();c.tB&&c.tB.stop();axa(c)}})}; +g.k.onCueRangeEnter=function(a){if(a!==this.Kt)gy("Received CueRangeEnter signal for unknown layout.",this.dc(),this.bb(),{cueRangeId:a});else{var b=this.context.vk,c=this.bb().layoutId;if(cE(b.Ca.get(),!0)){var d={};b.Hk("mccre",(d.cid=a,d.p_ac=c,d))}this.Pc.get().removeCueRange(this.Kt);this.Kt=void 0;EI(this.context.Ca.get(),"html5_ssap_flush_at_stop_rendering")&&this.Te()||(a=SB(this.bb().Ba,"metadata_type_video_length_seconds"),this.jz(a,!0),this.Zb("complete"))}}; +g.k.y3=function(a){a!=="abandoned"&&this.od.get().bv("onAdComplete");this.od.get().bv("onAdEnd",this.adCpn)}; +g.k.onCueRangeExit=function(){}; +g.k.Ni=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().xC(!0),this.jz(a))}; +g.k.jz=function(a,b){vF.prototype.jz.call(this,a,b===void 0?!1:b);if(a>=5&&!this.rZ){b=Date.now()-this.cX;a*=1E3;var c={contentCpn:this.Lm(),adCpn:Twa(this)},d=b<1E3?0:1;dy(d,"i.k_",{metadata:c,v7:b,w7:Math.floor(a/1E3)});Gq("IKDSTAT",d);d===0&&this.bU()&&this.od.get().bv("onAbnormalityDetected");this.rZ=!0}}; +g.k.bU=function(){if(!this.Ca.get().bU())return!1;var a=SB(this.dc().Ba,"metadata_type_player_bytes_slot_metadata");a===void 0&&gy("PlayerBytesSlotMetadata is not filled",this.dc(),this.bb());return(a==null?void 0:a.Au)===!0};g.z(RF,QF);RF.prototype.Ag=function(a){this.lc!=="not_rendering"&&(a=BF(this,a),CF(this,a))}; +RF.prototype.Ts=function(){gy("startRenderingHelper in SSAP")}; +g.z(SF,RF);SF.prototype.Id=function(a,b){var c=this;this.kz(a,function(){if(XD(c.C,b)){c.lc="rendering_stop_requested";c.layoutExitReason=b;AF(c,b);if(EI(c.context.Ca.get(),"html5_ssap_flush_at_stop_rendering")&&b==="normal"){var d=SB(c.bb().Ba,"metadata_type_video_length_seconds");c.jz(d,!0)}axa(c)}})}; +SF.prototype.startRendering=function(a){bE(wF(this));xF(this,a)&&(yF(this),$wa(this,a))};g.z(VF,g.O);g.k=VF.prototype;g.k.init=function(){var a=SB(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sa.get().addListener(this);this.Jd.init();nwa([this.layout],this.Sa.get());this.tO()}; +g.k.tO=function(){var a=SB(this.Jd.bb().Ba,"metadata_type_player_vars");a?this.md.get().addPlayerResponseForAssociation({playerVars:a}):(a=fxa(this.Jd.bb()),this.md.get().addPlayerResponseForAssociation({BJ:a}))}; +g.k.HL=function(){}; +g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.Fs=function(){this.Jd.Fs()}; +g.k.Hs=function(){this.Jd.Hs()}; +g.k.yy=function(){gy("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; +g.k.vc=function(a,b){this.Jd.vc(a,b)}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.Ni=function(a){this.Jd.Ni(a)}; +g.k.onFullscreenToggled=function(a){this.Jd.onFullscreenToggled(a)}; +g.k.nh=function(a){this.Jd.nh(a)}; +g.k.hj=function(a){this.Jd.hj(a)}; +g.k.onVolumeChange=function(){this.Jd.onVolumeChange()}; +g.k.Jj=function(){}; +g.k.Mj=function(){}; +g.k.Kj=function(){}; +g.z(UF,VF);g.k=UF.prototype;g.k.ZQ=function(){return this.Ha.get().getPresentingPlayerType()===2}; +g.k.CG=function(a){swa({cpn:a,Kf:this.Sa.get(),hs:!0});this.layout.layoutId===a&&(LAa(this.Yd,this.slot.slotId),this.Gv.vc(this.slot,this.layout))}; +g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void gy("wrong layout");this.Ha.get().addListener(this);bC(this.qc(),this);this.Jd.startRendering(this.layout)}; +g.k.Ag=function(a){this.Jd.Ag(a)}; +g.k.Oc=function(a,b,c){this.Jd.Oc(a,b,c)}; +g.k.release=function(){this.Sa.get().removeListener(this);this.Jd.release();owa();cC(this.qc(),this)}; +g.k.Id=function(a,b){a.layoutId!==this.layout.layoutId?gy("wrong layout"):(this.Jd.Id(this.layout,b),this.ZQ()&&this.Gc.get().finishSegmentByCpn(this.layout.layoutId,zF(this.Sa.get(),1).clientPlaybackNonce),this.Ha.get().removeListener(this))}; +g.k.DG=function(a,b,c){twa({cpn:a,Kf:this.Sa.get(),hs:!0});this.bb().layoutId===a&&(this.Jd.pA().currentState<2&&(a=GF(c),EI(this.params.context.Ca.get(),"html5_fix_non_video_expiration")&&a==="error"?this.Gv.Hf(this.slot,this.layout,new PB("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):aG(this.cf,this.layout,a)),this.Gv.Oc(this.slot,this.layout,this.Jd.pA().j))};g.z(WF,g.O);g.k=WF.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.HL=function(){}; +g.k.Af=function(){return this.Rh[this.oE]}; +g.k.El=function(){return this.oE}; +g.k.Fs=function(a,b){var c=this.Af();b.layoutId!==YF(c,a,b)?gy("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Fs()}; +g.k.Hs=function(a,b){var c=this.Af();b.layoutId!==YF(c,a,b)?gy("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Hs()}; +g.k.yy=function(a,b){var c=this.Af();jxa(this,a,b);kxa(c,a,b)&&this.SJ(c.dc(),c.bb(),"skipped")}; +g.k.JL=function(a,b){var c=this.Af();lxa(this);mxa(c,a,b)&&(a=nxa(this,c,a,b),a!==void 0&&(this.Te()?this.LX():pxa(this,c.dc(),c.bb(),a)))}; +g.k.T0=function(a,b){var c=Object.assign({},XF(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.hs;if(c.Ho){var f={};aE(c.Kf,"wrse",(f.ec=d,f.is=e,f.ctp=$D(d),f))}nC(this.Sq,a,b)}; +g.k.vc=function(a,b){var c;(c=this.Af())==null||c.vc(a,b)}; +g.k.Oc=function(a,b,c){b.layoutId===this.bb().layoutId&&(this.Cx=!1,cC(this.qc(),this));var d;(d=this.Af())==null||d.Oc(a,b,c)}; +g.k.Ni=function(a){var b;(b=this.Af())==null||b.Ni(a)}; +g.k.xK=function(a,b,c){this.El()===-1&&(this.callback.vc(this.slot,this.layout),this.oE++);var d=this.Af();d?(d.uL(a,b,c),this.Te()&&this.callback.Hf(this.slot,this.layout,b,c)):gy("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.El()),layoutId:this.bb().layoutId})}; +g.k.onFullscreenToggled=function(a){var b;(b=this.Af())==null||b.onFullscreenToggled(a)}; +g.k.nh=function(a){var b;(b=this.Af())==null||b.nh(a)}; +g.k.hj=function(a){var b;(b=this.Af())==null||b.hj(a)}; +g.k.onVolumeChange=function(){var a;(a=this.Af())==null||a.onVolumeChange()}; +g.k.dP=function(a,b,c){oC(this.Sq,a,b,c)}; +g.k.nU=function(a){a.startRendering(a.bb())}; +g.k.init=function(){var a=SB(this.bb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Rh.length<1)throw new QB("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Rh.length)});if(a=SB(this.bb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.w(this.Rh);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Oua(this.Sq,this.slot,b.bb()),Pua(this.Sq,this.slot,b.bb());if(this.Te())for(this.Sa.get().addListener(this), +nwa(ixa(this),this.Sa.get()),a=ixa(this),a=g.w(a),b=a.next();!b.done;b=a.next())this.tO(b.value)}; +g.k.tO=function(a){var b=SB(a.Ba,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&gy("Non-video ad contains playerVars",this.slot,a),this.md.get().addPlayerResponseForAssociation({playerVars:b})):(a=fxa(a),this.md.get().addPlayerResponseForAssociation({BJ:a}))}; +g.k.release=function(){var a=SB(this.bb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=SB(this.bb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.w(this.Rh);for(var b=a.next();!b.done;b=a.next())b=b.value,Qua(this.Sq,this.slot,b.bb()),b.release();this.Te()&&(this.Sa.get().removeListener(this),owa())}; +g.k.kz=function(a){return a.layoutId!==this.bb().layoutId?(this.callback.Hf(this.dc(),a,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.bb().layoutId+("and LayoutType: "+this.bb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.k.WI=function(){this.Ha.get().addListener(this);bC(this.qc(),this)}; +g.k.Ag=function(a){if(a.state.isError()){var b,c;this.xK((b=a.state.dh)==null?void 0:b.errorCode,new PB("There was a player error during this media layout.",{playerErrorCode:(c=a.state.dh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Af())&&b.Ag(a)}; +g.k.Te=function(){var a=SB(this.dc().Ba,"metadata_type_eligible_for_ssap");return a===void 0?(gy("Expected SSAP eligibility in PlayerBytes slots",this.dc(),this.bb()),!1):this.Ca.get().Te(a)}; +g.k.Kj=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.Jj=function(){}; +g.k.Mj=function(){}; +g.z(bG,WF);g.k=bG.prototype;g.k.xR=function(){var a=this.Af();a&&a.tx()}; +g.k.V0=function(a,b,c){this.SJ(a,b,c)}; +g.k.U0=function(a,b){this.SJ(a,b,"error")}; +g.k.SJ=function(a,b,c){var d=this;oxa(this,a,b,c,function(){ZF(d,d.El()+1)})}; +g.k.startRendering=function(a){this.kz(a)&&(this.WI(),F6a(this.Cc.get()),L6a(this.Ca.get())||o7a(this.Ha.get()),this.El()===-1&&ZF(this,this.El()+1))}; +g.k.Id=function(a,b){var c=this;this.Cx=!0;this.El()===this.Rh.length?this.callback.Oc(this.slot,this.layout,b):(a=this.Af(),a.Id(a.bb(),b),this.EZ=function(){c.callback.Oc(c.slot,c.layout,b)}); +this.Ha.get().J.My();x7a(this.md.get(),{});a=m0(this.Ha.get(),1);a.isPaused()&&!g.T(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Cx&&this.xR()}; +g.k.DG=function(){}; +g.k.CG=function(){}; +g.k.jC=function(){}; +g.k.LX=function(){}; +g.z(cG,WF);cG.prototype.V0=function(a,b,c){a=Object.assign({},XF(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};aE(a.Kf,"prse",(d.xc=b,d.ler=c,d.ctp=$D(b),d))}; +cG.prototype.U0=function(){gy("onSubLayoutError in SSAP")}; +cG.prototype.SJ=function(){gy("exitSubLayoutAndPlayNext in SSAP")}; +cG.prototype.LX=function(){gy("confirmExitSubLayoutAndPlayTarget in SSAP")}; +g.z(dG,cG);g.k=dG.prototype;g.k.Af=function(){return this.Bh}; +g.k.El=function(){var a=this;return this.Rh.findIndex(function(b){var c;return b.bb().layoutId===((c=a.Bh)==null?void 0:c.bb().layoutId)})}; +g.k.nU=function(a){fy(this.Bh===void 0,"replacing another adapter");this.Bh=a;a.startRendering(a.bb())}; +g.k.dP=function(a,b,c){oC(this.Sq,a,b,c);var d;fy(b.layoutId===((d=this.Bh)==null?void 0:d.bb().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:ey(b)})&&(this.Bh=void 0)}; +g.k.release=function(){cG.prototype.release.call(this);fy(this.Bh===void 0,"currentAdapter is still active during release");this.Bh=void 0}; +g.k.ZQ=function(){return this.Ha.get().getPresentingPlayerType()===2}; +g.k.Id=function(a,b){fy(a.layoutId===this.bb().layoutId,"StopRendering for wrong layout")&&XD(this.Tw.B,b)&&this.Bh&&(a=this.Bh,a.pA().currentState<2&&a.Id(a.bb(),b),this.ZQ()&&this.Gc.get().finishSegmentByCpn(this.Bh.bb().layoutId,zF(this.Sa.get(),1).clientPlaybackNonce))}; +g.k.Oc=function(a,b,c){cG.prototype.Oc.call(this,a,b,c);b.layoutId===this.bb().layoutId&&this.Ha.get().removeListener(this)}; +g.k.Lm=function(){return zF(this.Sa.get(),1).clientPlaybackNonce}; +g.k.DG=function(a,b,c){twa(Object.assign({},XF(this),{cpn:a}));if(this.Bh&&this.Bh.bb().layoutId===a)qxa(this,this.Bh,c);else{var d,e;gy("Exiting cpn does not match active cpn",this.slot,(d=this.Bh)==null?void 0:d.bb(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Bh)==null?void 0:e.bb().layoutId})}b===this.Lm()&&(this.Bh!==void 0&&(gy("active adapter is not properly exited",this.slot,this.layout,{activeLayout:ey(this.Bh.bb())}),qxa(this,this.Bh,c)),this.Tw.B.currentState<2&&(a=GF(c),EI(this.Ca.get(), +"html5_fix_non_video_expiration")&&a==="error"?this.callback.Hf(this.slot,this.layout,new PB("Non video ad expired into content during SSAP composite layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):aG(this.Oi,this.layout,a)),this.callback.Oc(this.slot,this.layout,this.Tw.B.j))}; +g.k.startRendering=function(a){this.kz(a)&&(a=this.Tw,fy(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.WI())}; +g.k.CG=function(a){swa(Object.assign({},XF(this),{cpn:a}));var b=this.Rh.find(function(c){return c.bb().layoutId===a}); +b?(this.Tw.j!==2&&(LAa(this.Yd,this.slot.slotId),fy(this.Tw.j===2,"Expect started"),this.callback.vc(this.slot,this.layout)),this.nU(b),nC(this.Sq,this.slot,b.bb())):rxa(this,a)}; +g.k.yy=function(a,b){jxa(this,a,b);var c=this.Af();c?kxa(c,a,b)&&sxa(this,"skipped"):txa(this,"onSkipRequested")}; +g.k.JL=function(a,b){var c;a:{if(c=this.Af()){if(lxa(this),mxa(c,a,b)&&(a=nxa(this,c,a,b),a!==void 0)){c={q7:c,Qea:this.Rh[a]};break a}}else txa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.q7,a=a.Qea,c.Id(c.bb(),"skipped"),a=a.bb().layoutId,this.Gc.get().finishSegmentByCpn(c.bb().layoutId,a)}; +g.k.T0=function(){gy("Not used in html5_ssap_fix_layout_exit")}; +g.k.Ag=function(a){var b;(b=this.Af())==null||b.Ag(a)}; +g.k.xK=function(){gy("Not used in html5_ssap_fix_layout_exit")}; +g.k.jC=function(a,b,c){var d;if(((d=this.Af())==null?void 0:d.bb().layoutId)!==b.layoutId)return void gy("requestToExitSubLayout: wrong layout");sxa(this,c)};g.z(eG,g.O);g.k=eG.prototype;g.k.dc=function(){return this.Jd.dc()}; +g.k.bb=function(){return this.Jd.bb()}; +g.k.init=function(){var a=SB(this.bb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Dx()}; +g.k.Dx=function(){this.Jd.init()}; +g.k.release=function(){var a=SB(this.bb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Ly()}; +g.k.Ly=function(){this.Jd.release()}; +g.k.Fs=function(){this.Jd.Fs()}; +g.k.Hs=function(){this.Jd.Hs()}; +g.k.yy=function(a,b){gy("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.dc(),this.bb(),{requestingSlot:a,requestingLayout:b})}; +g.k.startRendering=function(a){a.layoutId!==this.bb().layoutId?this.callback.Hf(this.dc(),a,new PB("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.bb().layoutId+("and LayoutType: "+this.bb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),bC(this.qc(),this),F6a(this.Cc.get()),L6a(this.Ca.get())||o7a(this.Ha.get()),this.Ts(a))}; +g.k.Ts=function(a){this.Jd.startRendering(a)}; +g.k.Id=function(a,b){this.Cx=!0;this.PM(a,b);this.Ha.get().J.My();x7a(this.md.get(),{});a=m0(this.Ha.get(),1);a.isPaused()&&!g.T(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.Cx&&this.xR()}; +g.k.PM=function(a,b){this.Jd.Id(a,b)}; +g.k.vc=function(a,b){this.Jd.vc(a,b)}; +g.k.Oc=function(a,b,c){b.layoutId===this.bb().layoutId&&(this.Cx=!1,cC(this.qc(),this));this.Jd.Oc(a,b,c);b.layoutId===this.bb().layoutId&&$F(this.Cc.get())}; +g.k.xR=function(){this.Jd.tx()}; +g.k.Ni=function(a){this.Jd.Ni(a)}; +g.k.Ag=function(a){if(a.state.isError()){var b,c;this.xK((b=a.state.dh)==null?void 0:b.errorCode,new PB("There was a player error during this media layout.",{playerErrorCode:(c=a.state.dh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Jd.Ag(a)}; +g.k.xK=function(a,b,c){this.Jd.uL(a,b,c)}; +g.k.onFullscreenToggled=function(a){this.Jd.onFullscreenToggled(a)}; +g.k.nh=function(a){this.Jd.nh(a)}; +g.k.hj=function(a){this.Jd.hj(a)}; +g.k.onVolumeChange=function(){this.Jd.onVolumeChange()}; +g.k.Kj=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.Jj=function(){}; +g.k.Mj=function(){};g.k=fG.prototype;g.k.dc=function(){return this.slot}; +g.k.bb=function(){return this.layout}; +g.k.init=function(){this.xf.get().addListener(this);this.Ha.get().addListener(this);this.Dx();var a=SB(this.layout.Ba,"metadata_type_layout_enter_ms"),b=SB(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=(c=this.Sa.get().Xw)==null?void 0:c.clientPlaybackNonce;c=this.layout.hc.adClientDataEntry;gG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.xf.get();e=wxa(e.C,a,b);e!==null&&(gG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, +cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Gc.get().Pz(e,b))}; +g.k.release=function(){this.Ly();this.xf.get().removeListener(this);this.Ha.get().removeListener(this)}; +g.k.startRendering=function(){this.Ts();this.callback.vc(this.slot,this.layout)}; +g.k.Id=function(a,b){this.PM(b);this.driftRecoveryMs!==null&&(hG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(xxa(this)-SB(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ha.get().J.Lr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Oc(this.slot,this.layout,b)}; +g.k.C0=function(){return!1}; +g.k.y0=function(a){var b=SB(this.layout.Ba,"metadata_type_layout_enter_ms"),c=SB(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a0&&pC(this.j(),b)}; +g.k.Ph=function(a){this.G.delete(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof BH&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&pC(this.j(),b)}; +g.k.Mh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof sH&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&pC(this.j(),b)}; +g.k.rf=function(a){this.C.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof wH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&pC(this.j(),b)}; +g.k.sf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof xH)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof lH){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&pC(this.j(),b)}; +g.k.Nh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof yH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&pC(this.j(),b)}; +g.k.Oh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof zH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&pC(this.j(),b)}; +g.k.lh=function(a,b){this.K.add(b.layoutId)}; +g.k.jg=function(a,b){this.K.delete(b.layoutId)}; +g.k.vc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof mH)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof rH){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof lH&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&pC(this.j(),c)}; +g.k.Oc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof oH&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof nH){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&pC(this.j(),a)}; +g.k.Qg=function(){}; +g.k.Lk=function(){this.D.clear()}; +g.k.Oo=function(){};g.z($I,g.O);$I.prototype.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof jH))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new EH(a,b,c,d))}; +$I.prototype.Zl=function(a){this.Wb.delete(a.triggerId)};g.z(bJ,g.O);bJ.prototype.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof iH||b instanceof uH))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new EH(a,b,c,d))}; +bJ.prototype.Zl=function(a){this.Wb.delete(a.triggerId)}; +bJ.prototype.Lk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.w(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof iH&&l.trigger.Kv===a&&f.push(l);e.call(d,b,g.x(f));if(!I6a(this.context.Ca.get())){d=b.push;e=d.apply;f=[];h=g.w(this.Wb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof uH){var m=l.trigger.j===a;m?c&&m&&(gy("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}), +f.push(l)):f.push(l)}e.call(d,b,g.x(f))}b.length&&pC(this.j(),b)}; +bJ.prototype.Oo=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.w(this.Wb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof uH&&l.j===a&&e.push(h)}d.call(c,b,g.x(e));b.length&&pC(this.j(),b)};g.z(cJ,g.O);g.k=cJ.prototype;g.k.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof qH)HAa(this,a,b,c,d,e,b.j.start,b.j.end,b.Kv,b.visible);else if(b instanceof kH)HAa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Kv,b.visible);else throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");}; +g.k.Zl=function(a){var b=this.Wb.get(a.triggerId);b&&this.Pc.get().removeCueRange(b.CJ);this.Wb.delete(a.triggerId)}; +g.k.onCueRangeEnter=function(a){var b=IAa(this,a);if(b&&(b=this.Wb.get(b)))if(g.T(m0(this.Ha.get()),32))this.j.add(b.CJ);else{var c=b==null?void 0:b.xE.trigger;if(c instanceof qH||c instanceof kH){if(cE(this.context.Ca.get())){var d=b.xE.slot,e=b.xE.layout,f={};this.context.vk.Hk("cre",(f.ca=b.xE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}pC(this.B(),[b.xE])}}}; +g.k.onCueRangeExit=function(a){(a=IAa(this,a))&&(a=this.Wb.get(a))&&this.j.delete(a.CJ)}; +g.k.Ag=function(a){if(iy(a,16)<0){a=g.w(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.vc=function(){}; +g.k.Oc=function(){}; +g.k.Qg=function(){}; +g.k.Ni=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.nh=function(){}; +g.k.Kj=function(){}; +g.k.hj=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Jj=function(){}; +g.k.Mj=function(){};g.z(dJ,g.O);g.k=dJ.prototype; +g.k.Vl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new QB("Tried to re-register the trigger.");a=new EH(a,b,c,d);if(a.trigger instanceof aya)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof pH)this.C.set(a.trigger.triggerId,a);else throw new QB("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&pC(this.D(),[a])}; +g.k.Zl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; +g.k.HL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.x(JAa(this.C,this.j)));a!=null&&b.push.apply(b,g.x(JAa(this.B,a)));this.j=a;b.length&&pC(this.D(),b)}}; +g.k.DG=function(){}; +g.k.CG=function(){};g.z(eJ,g.O);g.k=eJ.prototype;g.k.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof tH))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new EH(a,b,c,d))}; +g.k.Zl=function(a){this.Wb.delete(a.triggerId)}; +g.k.vc=function(){}; +g.k.Oc=function(){}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){};g.z(fJ,g.O);g.k=fJ.prototype;g.k.Qg=function(a,b){for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&pC(this.j(),c)}; +g.k.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof gva))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new EH(a,b,c,d))}; +g.k.Zl=function(a){this.Wb.delete(a.triggerId)}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.vc=function(){}; +g.k.Oc=function(){};g.z(gJ,g.O);g.k=gJ.prototype;g.k.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof DH))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new EH(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)}; +g.k.Zl=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof DH))throw new QB("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),b.size===0&&this.j.delete(a.triggeringLayoutId)}; +g.k.Rg=function(){}; +g.k.Ph=function(){}; +g.k.Mh=function(){}; +g.k.rf=function(){}; +g.k.sf=function(){}; +g.k.Nh=function(){}; +g.k.Oh=function(){}; +g.k.lh=function(){}; +g.k.jg=function(){}; +g.k.Qg=function(){}; +g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.w(a);var d=a.next();for(b={};!d.done;b={aN:void 0},d=a.next())b.aN=d.value,d=new g.Oo(function(e){return function(){var f=c.Wb.get(e.aN.triggerId);pC(c.C(),[f])}}(b),b.aN.durationMs),d.start(),this.B.set(b.aN.triggerId,d)}}; +g.k.Oc=function(){};g.z(hJ,g.O);hJ.prototype.Vl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new QB("Tried to register duplicate trigger for slot.");if(!(b instanceof gH))throw new QB("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new EH(a,b,c,d))}; +hJ.prototype.Zl=function(a){this.Wb.delete(a.triggerId)};lJ.prototype.Au=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.z(oJ,g.O);g.k=oJ.prototype;g.k.logEvent=function(a){this.ws(a)}; +g.k.ek=function(a,b,c){this.ws(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)}; +g.k.Uh=function(a,b,c,d){this.ws(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)}; +g.k.ON=function(a,b,c,d){EI(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);XB(this.j.get())&&this.ws(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; +g.k.RI=function(a,b,c,d,e){this.ws(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; +g.k.tm=function(a,b,c,d){this.ws("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})}; +g.k.ws=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;EI(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Wpa:d,bqa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Ca.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.XT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||gy("Empty PACF event type",e,f);var u=XB(r.j.get()), +y={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=WB(u,e));f&&(A.layoutData=Jua(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=VB(l.trigger,l.category));b&&(A.opportunityData=Kua(u,b,c,d));u={organicPlaybackContext:{contentCpn:zF(r.Sa.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=zF(r.Sa.get(),1).Vb;var D;u.organicPlaybackContext.isMdxPlayback= +(D=zF(r.Sa.get(),1))==null?void 0:D.isMdxPlayback;var F;if((F=zF(r.Sa.get(),1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(D=(H=zF(r.Sa.get(),2))==null?void 0:H.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:D};u&&(A.externalContext=u);y.adClientData=A;m&&(y.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(y.serializedAdServingData=n.serializedAdServingDataEntry);p&&(y.errorInfo=p);g.$s("adsClientStateChange",{adsClientEvent:y})}}; +q&&q>0?g.Ps(g.Rs(),function(){return t()},q):t()}catch(u){EI(this.Ca.get(),"html5_log_pacf_logging_errors")&&g.Ps(g.Rs(),function(){gy(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}}; +g.k.XT=function(){return this.Ca.get().XT()};var mbb=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(pJ,oJ);g.k=pJ.prototype; +g.k.ek=function(a,b,c){oJ.prototype.ek.call(this,a,b,c);cE(this.Ca.get())&&(c={},this.context.vk.Hk("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))}; +g.k.Uh=function(a,b,c,d){var e=mbb.has(a);oJ.prototype.Uh.call(this,a,b,c,d);cE(this.Ca.get(),e)&&(d={},this.context.vk.Hk("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d.p_ac=c==null?void 0:c.layoutId,d)))}; +g.k.RI=function(a,b,c,d,e){oJ.prototype.RI.call(this,a,b,c,d,e);cE(this.Ca.get())&&(c={},this.context.vk.Hk("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))}; +g.k.ON=function(a,b,c,d){oJ.prototype.ON.call(this,a,b,c,d);if(cE(this.Ca.get())){var e={};this.context.vk.Hk("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; +g.k.tm=function(a,b,c,d){oJ.prototype.tm.call(this,a,b,c,d);if(cE(this.Ca.get(),!0)){var e={};this.context.vk.Hk("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; +g.k.ws=function(a,b,c,d,e,f,h,l,m,n,p){if(g.mC(this.Ca.get().J.U())){var q=this.Ca.get();q=g.ZB(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;oJ.prototype.ws.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};qJ.prototype.clear=function(){this.j.clear()};var XAa=!1,sJ,tJ,uJ,vJ,wJ;g.z(xJ,g.O); +xJ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,ZAa(this,this.K,0));for(;b+64<=c;b+=64)ZAa(this,a,b);b=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{EK:b,xn:c}}; +IJ.prototype.isFocused=function(a){return a>=this.C&&a=0;var l2a=window;var JBa=bd(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var IK;g.JK=new oA;IK=0;var KK={CO:function(a){a.reverse()}, +ND:function(a,b){a.splice(0,b)}, +pU:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var m4a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var VN=SBa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Nt?!0:!1;var vJa={Rfa:"adunit",rha:"detailpage",Cha:"editpage",Eha:"embedded",jja:"leanback",pka:"previewpage",rka:"profilepage",m7:"unplugged",mka:"playlistoverview",hla:"sponsorshipsoffer",Uka:"shortspage",lia:"handlesclaiming",Bia:"immersivelivepage",nha:"creatormusic",Cia:"immersivelivepreviewpage",Lfa:"admintoolyurt"};var aDa={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},bDa={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"},q2a={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var RKa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.$K.prototype.getLanguageInfo=function(){return this.Yb}; +g.$K.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags}; +g.$K.prototype.toString=function(){return this.Yb.name}; +g.$K.prototype.getLanguageInfo=g.$K.prototype.getLanguageInfo;aL.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j}; +aL.prototype.compose=function(a){if(a.C&&eL(a))return HP;if(a.C||eL(this))return a;if(this.C||eL(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;bL&&(d=this.tb!==0&&a.tb!==0?Math.min(this.tb,a.tb):this.tb===0?a.tb:this.tb);return bL&&b===this.B&&c===this.j&&d===this.tb||!bL&&b===this.B&&c===this.j?this:bL?new aL(b,c,!1,c===this.j&&d===this.tb?this.reason:a.reason,d):new aL(b,c,!1,c===this.j?this.reason:a.reason)}; +aL.prototype.D=function(a){return!a.video||bL&&this.tb!==0&&this.tb=0}; +g.k.Yt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN}; +g.k.Xc=function(){return this.segments[0].startTime}; +g.k.yA=function(){return this.segments.length}; +g.k.Om=function(){return 0}; +g.k.Li=function(a){return(a=this.kA(a))?a.Pa:-1}; +g.k.nK=function(a){return(a=this.Wn(a))?a.sourceURL:""}; +g.k.getStartTime=function(a){return(a=this.Wn(a))?a.startTime:0}; +g.k.aK=function(a){return this.getStartTime(a)+this.getDuration(a)}; +g.k.pK=aa(1);g.k.isLoaded=function(){return this.segments.length>0}; +g.k.Wn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Zb(this.segments,new BL(a,0,0,0,""),function(b,c){return b.Pa-c.Pa}); +return this.j=a>=0?this.segments[a]:null}; +g.k.kA=function(a){if(this.j&&this.j.startTime<=a&&a=0?this.segments[a]:this.segments[Math.max(0,-a-2)]}; +g.k.append=function(a){if(a.length)if(a=g.Ub(a),this.segments.length){var b=this.segments.length?g.Kb(this.segments).endTime:0,c=a[0].Pa-this.qd();c>1&&Haa(this.segments);for(c=c>0?0:-c+1;ca.Pa&&this.index.Yn()<=a.Pa+1}; +g.k.update=function(a,b,c){this.index.append(a);DDa(this.index,c);a=this.index;a.B=b;a.C="update"}; +g.k.hg=function(){return this.YA()?!0:wM.prototype.hg.call(this)}; +g.k.zt=function(a,b){var c=this.index.nK(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.tb>0?this.info.tb*e:1E3;return new IM([new BM(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)}; +g.k.iQ=function(){return this.YA()?0:this.initRange.length}; +g.k.US=function(){return!1};PM.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new PM,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+NM(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+NM(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Ch:0,m=Date.parse(yHa(NM(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=NM(a,"media"));a=b?h-b.Pa:1;c.K=a>0?0:-a+1;a=g.w(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")|| +0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new wHa(h,l,n,m+p,f);c.j.push(t);var u=d;var y=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var D=u.getAttribute("yt:cuepointDuration");if(t&&D){t=Number(t);A=-t/y+A;y=Number(D)/y;D=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new LL(A,y,D,F,Cbb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&& +(c.B=g.Kb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Vb(this.j,c.j);g.Vb(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())}; +PM.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.z(RM,g.CL);g.k=RM.prototype;g.k.xo=function(a,b){a=SM(this,a);return a>=0&&(b||!this.segments[a].pending)}; +g.k.Yn=function(){return this.Ln?this.segments.length?this.kA(this.Xc()).Pa:-1:g.CL.prototype.Yn.call(this)}; +g.k.Xc=function(){if(this.Wd)return 0;if(!this.Ln)return g.CL.prototype.Xc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Kb(this.segments).endTime-this.Dr,0);return this.bf>0&&this.kA(a).Pa0&&this.Ur0&&this.eq>0&&!b&&(b=this.kA(this.Dr))&&(a=Math.min(b.Pa-1,a));return a}; +g.k.kx=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.k.PN=function(a){var b=SM(this,a.Pa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.pB&&a.Pa%(300/this.Wj)===0){var c=this.segments[0].Pa,d=Math.floor(this.pB/this.Wj);a=a.Pa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}}; +g.k.dK=function(){return this.eq}; +g.k.ZF=function(a){return QM?!this.B&&a>=0&&this.qd()<=a:g.CL.prototype.ZF.call(this,a)}; +g.k.kA=function(a){if(!this.Ln)return g.CL.prototype.kA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Wj+1);else{b=$b(this.segments,function(d){return a=d.endTime?1:0}); +if(b>=0)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Pa-b.Pa-1))+1)+b.Pa}return this.Wn(b)}; +g.k.Wn=function(a){if(!this.Ln)return g.CL.prototype.Wn.call(this,a);if(!this.segments.length)return null;var b=SM(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Wj;if(c===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new BL(a,d,b,0,"sq/"+a,void 0,void 0, +!0)}; +var QM=!1;g.z(TM,MM);g.k=TM.prototype;g.k.TA=function(){return!0}; +g.k.hg=function(){return!0}; +g.k.xt=function(a){return this.Jx()&&a.B&&!a.Re||!a.j.index.ZF(a.Pa)}; +g.k.nx=function(){}; +g.k.Or=function(a,b){return typeof a!=="number"||isFinite(a)?MM.prototype.Or.call(this,a,b===void 0?!1:b):new IM([new BM(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Vj,void 0,this.Vj*this.info.tb)],"")}; +g.k.zt=function(a,b){var c=c===void 0?!1:c;if(this.index.xo(a))return MM.prototype.zt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Vj*this.info.tb),f=this.Vj;b&&(f=e=0);return new IM([new BM(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.z(UM,wM);g.k=UM.prototype;g.k.Um=function(){return!1}; +g.k.Jx=function(){return!1}; +g.k.TA=function(){return!1}; +g.k.nx=function(){return new IM([new BM(1,this,void 0,"otfInit")],this.G)}; +g.k.yz=function(){return null}; +g.k.BD=function(a){this.xt(a);return GHa(this,FM(a),!1)}; +g.k.Or=function(a,b){b=b===void 0?!1:b;a=this.index.Li(a);b&&(a=Math.min(this.index.qd(),a+1));return GHa(this,a,!0)}; +g.k.AQ=function(a){a.info.type===1&&(this.j||(this.j=OJ(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&HHa(this,a.B))}; +g.k.xt=function(a){return a.B===0?!0:this.index.qd()>a.Pa&&this.index.Yn()<=a.Pa+1}; +g.k.iQ=function(){return 0}; +g.k.US=function(){return!1};g.k=g.bN.prototype;g.k.xo=function(a){return a<=this.qd()}; +g.k.Om=function(a){return this.offsets[a]}; +g.k.getStartTime=function(a){return this.Tg[a]/this.j}; +g.k.aK=function(a){return this.getStartTime(a)+this.getDuration(a)}; +g.k.pK=aa(0);g.k.lf=function(){return NaN}; +g.k.getDuration=function(a){a=this.CY(a);return a>=0?a/this.j:-1}; +g.k.CY=function(a){return a+1=0}; +g.k.Yt=function(){return this.B?this.Tg[this.count]/this.j:NaN}; +g.k.Xc=function(){return 0}; +g.k.yA=function(){return this.count}; +g.k.nK=function(){return""}; +g.k.Li=function(a){a=g.Zb(this.Tg.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)}; +g.k.isLoaded=function(){return this.qd()>=0}; +g.k.LY=function(a,b){if(a>=this.qd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,PHa(this,a)/this.getDuration(a));return c}; +g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.Tg;this.Tg=new Float64Array(a+1);for(a=0;a0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new BM(4,this,zM(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new IM(d)}; +g.k.AQ=function(a){if(a.info.type===1){if(this.j)return;this.j=OJ(a.j)}else if(a.info.type===2){if(this.G||this.index.qd()>=0)return;if(g.CE(this.info)){var b=this.index,c=WM(a);a=a.info.range.start;var d=g.QL(c,0,1936286840);c=PDa(d);b.j=c.Vs;var e=c.s8;b.offsets[0]=c.P8+a+d.size;b.Tg[0]=e;b.B=!0;a=c.sU.length;for(d=0;d0&&a===f[0].uJ)for(a=0;a=b+c)break}e.length||g.Bw(new g.Ks("b189619593",""+a,""+b,""+c));return new IM(e)}; +g.k.aW=function(a){for(var b=this.kC(a.info),c=a.info.range.start+a.info.Ub,d=[],e=0;e=this.index.Om(c+1);)c++;return this.zF(c,b,a.B).gb}; +g.k.xt=function(a){a.Mi();return this.hg()?!0:a.range.end+1this.info.contentLength&&(b=new xM(b.start,this.info.contentLength-1)),new IM([new BM(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.kC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ub+a.B;a.type===3&&(a.Mi(),c=a.Pa,d===a.range.end+1&&(c+=1));return this.zF(c,d,b)}; +g.k.BD=function(){return null}; +g.k.Or=function(a,b,c){b=b===void 0?!1:b;a=this.index.Li(a);b&&(a=Math.min(this.index.qd(),a+1));return this.zF(a,this.index.Om(a),0,c)}; +g.k.Um=function(){return!0}; +g.k.Jx=function(){return!0}; +g.k.TA=function(){return!1}; +g.k.iQ=function(){return this.indexRange.length+this.initRange.length}; +g.k.US=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var X1={},gIa=(X1.COLOR_PRIMARIES_BT709="bt709",X1.COLOR_PRIMARIES_BT2020="bt2020",X1.COLOR_PRIMARIES_UNKNOWN=null,X1.COLOR_PRIMARIES_UNSPECIFIED=null,X1),Y1={},RHa=(Y1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Y1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Y1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Y1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Y1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Y1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Y1);g.eN.prototype.getName=function(){return this.name}; +g.eN.prototype.getId=function(){return this.id}; +g.eN.prototype.getIsDefault=function(){return this.isDefault}; +g.eN.prototype.toString=function(){return this.name}; +g.eN.prototype.getName=g.eN.prototype.getName;g.eN.prototype.getId=g.eN.prototype.getId;g.eN.prototype.getIsDefault=g.eN.prototype.getIsDefault;var VHa=/action_display_post/;var WHa,hN,iN;g.z(jN,g.ax);g.k=jN.prototype;g.k.isLoading=function(){return this.state===1}; +g.k.Ml=function(){return this.state===3}; +g.k.Zca=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Vb=this.B=!0;this.timeline||(this.timeline=new AHa);EHa(this.timeline,a);this.publish("refresh");for(a=0;a=0?p=yM(r):q=q+"?range="+r}m.call(l,new BL(n.Pa,n.startSecs,n.Ch,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.ob)}FHa(this.timeline);return!0}this.duration=xHa(NM(a,"mediaPresentationDuration")); +a:{for(a=0;a0))return this.Vd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!IE(a[b].info.mimeType))return c.Xc()}return 0}; +g.k.getStreamTimeOffset=function(){return this.N}; +g.k.lf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Li(a),e=c.lf(d);if(e)return e+a-c.getStartTime(d)}}return NaN}; +var wN=null,Dbb,xN=!((Dbb=navigator.mediaCapabilities)==null||!Dbb.decodingInfo),mIa={commentary:1,alternate:2,dub:3,main:4};g.yN.prototype.info=function(){}; +g.yN.prototype.debug=function(){}; +var BIa=new Map,EIa=new Map,CIa=new function(){var a=this;this.j=new Map;this.hd={Ena:function(){return a.j}}};var KZ=new Set,zN=new Map;CN.prototype.clone=function(a){return new CN(this.flavor,a,this.B,this.experiments)}; +CN.prototype.uc=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +CN.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var Ebb={},MN=(Ebb.playready=["com.youtube.playready","com.microsoft.playready"],Ebb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Ebb),Z1={},g1a=(Z1.widevine="DRM_SYSTEM_WIDEVINE",Z1.fairplay="DRM_SYSTEM_FAIRPLAY",Z1.playready="DRM_SYSTEM_PLAYREADY",Z1),$1={},Fbb=($1.widevine=1,$1.fairplay=2,$1.playready=3,$1);ON.prototype.Qh=function(a,b){b=b===void 0?1:b;this.Nn+=b;this.B+=a;a/=b;for(var c=0;c0)d+="."+NN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new IIa;return a}; +g.k.toString=function(){return""};g.k=NIa.prototype;g.k.isActive=function(){return!1}; +g.k.MK=function(){}; +g.k.PA=function(){}; +g.k.FC=function(){}; +g.k.lA=function(){}; +g.k.hv=function(a,b){return b()}; +g.k.uY=function(){return{}}; +g.k.toString=function(){return""};var a2,Gbb,Hbb,Ibb,Jbb,Kbb,b2,uU,PX,r5a,TN;a2=new NIa;Gbb=!!+Iq("html5_enable_profiler");Hbb=!!+Iq("html5_onesie_enable_profiler");Ibb=!!+Iq("html5_offline_encryption_enable_profiler");Jbb=!!+Iq("html5_performance_impact_profiling_timer_ms");Kbb=!!+Iq("html5_drm_enable_profiler");b2=Gbb||Hbb||Ibb||Jbb||Kbb?new KIa:a2;g.xW=Gbb?b2:a2;uU=Hbb?b2:a2;PX=Ibb?b2:a2;r5a=Jbb?b2:a2;TN=Kbb?b2:a2;var SN;g.z(QN,g.O); +QN.prototype.initialize=function(a,b){for(var c=this,d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.le)for(var h=g.w(Object.keys(f.le)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=MN[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.w(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new CN(l,n,f.le[l],this.Da.experiments),this.j[l]=this.j[l]|| +{},this.j[l][f.mimeType]=!0}}}Hr()&&(this.C["com.youtube.fairplay"]=new CN("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=HIa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})}; +QN.prototype.L=function(a){return this.Da.experiments.kb(a)};var W4a={"":"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"};UIa.prototype.L=function(a){return this.experiments.kb(a)};var xJa={RED:"red",Dma:"white"};VIa.prototype.kb=function(a){return this.flags[a]==="true"};var YIa=Promise.resolve(),aJa=window.queueMicrotask?window.queueMicrotask.bind(window):ZIa;XN.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Mt?a=a||Lbb[b]:yO===2.2?a=a||Mbb[b]:Fr()&&(a=a||Nbb[b]);return!!a}; +XN.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):lE(a)}; +var Mbb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Nbb={"application/x-mpegURL":"maybe"},Lbb={"application/x-mpegURL":"maybe"};g.z(aO,g.ax);aO.prototype.add=function(a,b){if(!this.items[a]&&(b.oJ||b.QO||b.YM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}}; +aO.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; +aO.prototype.get=function(a){return this.items[a]||null}; +aO.prototype.isEmpty=function(){return g.Cc(this.items)};g.z(bO,g.CJ);bO.prototype.j=function(a,b){return g.CJ.prototype.j.call(this,a,b)}; +bO.prototype.B=function(a,b,c){var d=this;return g.J(function(e){return e.j==1?g.G(e,g.CJ.prototype.B.call(d,a,b,c),2):e.return(e.B)})}; +g.z(cO,g.DJ);cO.prototype.encrypt=function(a,b){return g.DJ.prototype.encrypt.call(this,a,b)};eO.prototype.Dm=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a}; +eO.prototype.eh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};fO.prototype.Dm=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.Bl=!0}; +fO.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.Bl&&(g.ac(this.G,function(c,d){return b.values[c]-b.values[d]}),this.Bl=!1); +return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0}; +fO.prototype.eh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.z(gO,g.O);gO.prototype.Va=function(){var a;(a=this.Ga)==null||a.start();if(pO(this)&&this.policy.Y){var b;(b=this.zd)==null||b.wG()}};g.z(qJa,g.O);var wJa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),CJa={qga:"caoe",rga:"capsv",Hga:"cbrand",Iga:"cbr",Kga:"cbrver",Vga:"cchip",cha:"ccappver",dha:"ccrv",Vha:"cfrmver",Eia:"c",Hia:"cver",Gia:"ctheme",Fia:"cplayer",Fja:"cmodel",Rja:"cnetwork",Yja:"cos",Zja:"cosver",hka:"cplatform",Eka:"crqyear"};g.z(IO,g.O);g.k=IO.prototype;g.k.L=function(a){return this.experiments.kb(a)}; +g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.KO(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.BO(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),Mt&&(a=Ima())&&(b.ebc=a));return g.Ji(f,b)}; +g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.KO(this)+"/embed/"+b;d&&(b=g.Ji(b,{list:d}));d=c.width;c=c.height;b=Td(b);a=Td(a!=null?a:"YouTube video player");return'')}; +g.k.supportsGaplessAudio=function(){return g.kE&&!Mt&&lna()>=74||g.KN&&g.lc(68)?!0:!1}; +g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.jt?!1:!0}; +g.k.getPlayerType=function(){return this.j.cplayer}; +g.k.zc=function(){return this.Qf}; +g.k.Wu=function(){this.L("html5_enable_lawnmower_messaging")}; +var GJa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],BJa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],EJa=[19];var c2={},JJa=(c2["140"]={numChannels:2},c2["141"]={numChannels:2},c2["251"]={audioSampleRate:48E3,numChannels:2},c2["380"]={numChannels:6},c2["328"]={numChannels:6},c2),d2={},HJa=(d2["1"]='video/mp4; codecs="av01.0.08M.08"',d2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',d2["9"]='video/webm; codecs="vp9"',d2["("]='video/webm; codecs="vp9"',d2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',d2.h='video/mp4; codecs="avc1.64001e"',d2.H='video/mp4; codecs="avc1.64001e"',d2.o= +'audio/webm; codecs="opus"',d2.a='audio/mp4; codecs="mp4a.40.2"',d2.ah='audio/mp4; codecs="mp4a.40.2"',d2.mac3='audio/mp4; codecs="ac-3"; channels=6',d2.meac3='audio/mp4; codecs="ec-3"; channels=6',d2),e2={},IJa=(e2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},e2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},e2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},e2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},e2["701"]={width:3840,height:2160,bitrate:2E7,fps:60},e2["700"]={width:2560, +height:1440,bitrate:1E7,fps:60},e2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},e2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},e2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},e2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},e2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},e2["360"]={width:1920,height:1080,bitrate:5331E3, +fps:30,cryptoblockformat:"subsample"},e2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},e2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},e2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},e2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},e2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},e2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},e2["302"]={width:1280,height:720,bitrate:25E5, +fps:60},e2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},e2["298"]={width:1280,height:720,bitrate:35E5,fps:60},e2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},e2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},e2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},e2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},e2["398"]={width:1280,height:720,bitrate:1E6,fps:60},e2["397"]={width:854,height:480,bitrate:4E5,fps:30},e2["396"]={width:640,height:360,bitrate:25E4,fps:30},e2["313"]= +{width:3840,height:2160,bitrate:8E6,fps:30},e2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},e2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},e2["247"]={width:1280,height:720,bitrate:15E5,fps:30},e2["244"]={width:854,height:480,bitrate:52E4,fps:30},e2["243"]={width:640,height:360,bitrate:28E4,fps:30},e2["137"]={width:1920,height:1080,bitrate:4E6,fps:30},e2["136"]={width:1280,height:720,bitrate:3E6,fps:30},e2["135"]={width:854,height:480,bitrate:1E6,fps:30},e2["385"]={width:1920,height:1080, +bitrate:6503313,fps:60},e2["376"]={width:1280,height:720,bitrate:5706960,fps:60},e2["384"]={width:1280,height:720,bitrate:3660979,fps:60},e2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},e2["224"]={width:1280,height:720,bitrate:453E4,fps:30},e2["145"]={width:1280,height:720,bitrate:2682052,fps:30},e2);g.k=ZO.prototype;g.k.getInfo=function(){return this.j}; +g.k.CD=function(){return null}; +g.k.EY=function(){var a=this.CD();return a?(a=g.Vq(a.resource),Number(a.expire)):NaN}; +g.k.GT=function(){}; +g.k.getHeight=function(){return this.j.video.height};LJa.prototype.build=function(){OJa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.w(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Yb){if(e.Yb.getIsDefault()){c=e.Yb.getId();break a}c||(c=e.Yb.getId())}}d=g.w(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.Yb||e.Yb.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.w(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.w(e);for(var f=e.next();!f.done;f= +e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Yb){p=f.Yb;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=aP(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(NJa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.w(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Obb,d=(h=d.Yb)?'#EXT-X-MEDIA:URI="'+aP(this,d.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=this.G.length>0?Obb:void 0;d=g.w(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(NJa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+= +",FRAME-RATE="+h.fps),h.RC&&(l+=",VIDEO-RANGE="+h.RC),a.push(l),a.push(aP(this,e.url,"")));return a.join("\n")}; +var Obb="text";g.z(bP,ZO);bP.prototype.EY=function(){return this.expiration}; +bP.prototype.CD=function(){if(!this.resource||this.resource.Ka()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new XE(a)}return this.resource};g.z(cP,ZO);cP.prototype.CD=function(){return new XE(this.B.Be())}; +cP.prototype.GT=function(){this.B=zL(this.B)};g.z(dP,ZO);dP.prototype.CD=function(){return new XE(this.B)};var f2={},$Ja=(f2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",f2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",f2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",f2);g.k=g.eP.prototype;g.k.getId=function(){return this.id}; +g.k.getName=function(){return this.name}; +g.k.isServable=function(){return this.j}; +g.k.Be=function(){return this.url}; +g.k.getXtags=function(){return this.xtags}; +g.k.toString=function(){return this.languageCode+": "+g.fP(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.k.qe=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var eKa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},fKa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},gKa=/^(\d*)_((\d*)_?(\d*))$/;var iKa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},jKa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var g2={},VKa=(g2.ALWAYS=1,g2.BY_REQUEST=3,g2.UNKNOWN=void 0,g2),h2={},aLa=(h2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",h2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",h2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",h2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",h2);var hBa; +hBa=function(a){for(var b=Object.keys(a),c={},d=0;dd-b?-1:a}; +g.k.zz=function(){return this.B.qd()}; +g.k.QN=function(){return this.B.Yn()}; +g.k.bW=function(a){this.B=a};g.z(GP,EP);GP.prototype.B=function(a,b){return EP.prototype.B.call(this,"$N|"+a,b)}; +GP.prototype.G=function(a,b,c){return new FP(a,b,c,this.isLive)};var eLa=[],XP=new Set;g.z(g.IP,g.ax);g.k=g.IP.prototype;g.k.U=function(){return this.Da}; +g.k.L=function(a){return this.Da.L(a)}; +g.k.Kh=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.uf)==null||!a.ob)}; +g.k.z0=function(){this.Ka()||(this.j.B||this.j.unsubscribe("refresh",this.z0,this),this.FX(-1))}; +g.k.FX=function(a){if(!this.isLivePlayback||!this.G||this.G.flavor!="fairplay"){var b=jIa(this.j,this.iI);if(b.length>0){for(var c=g.w(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Xc());this.publish("cuepointupdated",b,a);this.iI+=b.length;if(VP(this)&&this.Da.zc())for(b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.kD.start=this.Wk, +this.kD.end=c+3)}}}; +g.k.ej=function(){return this.le?!0:!!this.j&&nL(this.j)}; +g.k.eJ=function(a){var b=this;if(this.Ka())return vr();this.Dd=this.ob=this.C=null;QP(this,"html5_high_res_logging_always")&&(this.Da.Qf=!0);return sLa(this,a).then(void 0,function(){return tLa(b,a)}).then(void 0,function(){return uLa(b)}).then(void 0,function(){return wLa(b)})}; +g.k.Ak=function(){if(this.cotn)return null;var a=g.kC(this.Da)||this.L("web_l3_storyboard");if(!this.al)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.al=new EP(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=$aa(this.j.j).index)&&(this.al=new GP(b.spec,this.j.isLive,c,a))}else this.sB?this.al=new EP(this.sB,this.lengthSeconds,void 0,!1,a):this.Cw&&this.j&& +(b=$aa(this.j.j).index)&&(this.al=new GP(this.Cw,this.j.isLive,b,a));return this.al}; +g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.sB||this.Cw}; +g.k.Vd=function(){return this.j&&!isNaN(this.j.Vd())?this.j.Vd():VP(this)?0:this.lengthSeconds}; +g.k.Xc=function(){return this.j&&!isNaN(this.j.Xc())?this.j.Xc():0}; +g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Li(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null}; +g.k.qe=function(){return!this.Ka()&&!(!this.videoId&&!this.wm)}; +g.k.wx=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)}; +g.k.isLoaded=function(){return JP(this)&&!this.Aj&&!this.yp}; +g.k.fh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.ra||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:LO(this.Da,this.videoId,a)}; +g.k.Vb=function(){return this.isLivePlayback||this.Wd||this.La||!(!this.liveUtcStartSeconds||!this.dk)}; +g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Wd&&!this.isLivePlayback&&this.j.B)}; +g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.Bw||[]:[]}; +g.k.getAudioTrack=function(){var a=this;if(this.D&&!DE(this.D))return g.Mb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.fl; +if(this.Bw){if(!this.Qp)for(var b=g.w(this.Bw),c=b.next();!c.done;c=b.next())if(c=c.value,c.Yb.getIsDefault()){this.Qp=c;break}return this.Qp||this.fl}return this.fl}; +g.k.getPlayerResponse=function(){return this.playerResponse}; +g.k.getWatchNextResponse=function(){return this.Wa}; +g.k.getHeartbeatResponse=function(){return this.iE}; +g.k.Il=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)}; +g.k.cR=function(){return!!this.j&&(ZHa(this.j)||$Ha(this.j)||aIa(this.j))}; +g.k.getEmbeddedPlayerResponse=function(){return this.Ii}; +g.k.Ck=function(){return(this.eventLabel||this.Da.Ma)==="shortspage"}; +g.k.isAd=function(){return this.iG||!!this.adFormat}; +g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.k.Ih=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)}; +g.k.UT=function(){return WKa(this)?this.l4:this.Wq||this.Xi}; +g.k.PH=function(){return this.Oj||this.Xi}; +g.k.YI=function(){return QP(this,"html5_samsung_vp9_live")}; +g.k.useInnertubeDrmService=function(){return!0}; +g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)}; +g.k.Ky=function(a,b,c){this.publish("ctmpstr",a,b,c)}; +g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.k.jd=function(a,b){if(!g.uO(this.Da))return!1;var c;if(((c=this.Da.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.Da.Ga||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;if(this.L("embeds_enable_embedded_player_flags")){var d,e;return!!(((d=this.embeddedPlayerConfig)==null?0:(e=d.embeddedPlayerFlags)==null?0:e.isShortsExperienceEligible)&&a.width<=a.height)}var f;return!!(((f=this.embeddedPlayerConfig)==null?0:f.isShortsExperienceEligible)&&a.width<= +a.height)}; +g.k.ya=function(){g.ax.prototype.ya.call(this);this.Uv=null;delete this.Gfa;delete this.accountLinkingConfig;delete this.j;this.C=this.iE=this.playerResponse=this.Wa=null;this.Sf=this.adaptiveFormats="";delete this.botguardData;this.hf=this.suggestions=this.Xv=null};var YLa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ZLa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},XLa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},$La=!1,ULa={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"},WLa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},VLa={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.z(RQ,g.O);g.k=RQ.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.N[a],e=this.state.Z[a],f=d;if(e)if(c&&JC(c,Wab))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.w(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.Cw(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; +g.k.logApiCall=function(a,b,c){var d=this.app.U();d.zp&&!this.state.Y.has(a)&&(this.state.Y.add(a),g.$s("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ga,errorCode:c}))}; +g.k.publish=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.B.publish.apply(this.state.B,[a].concat(g.x(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; +g.k.ib=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)))}; +g.k.Hc=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; +g.k.Ai=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)));this.state.G.publish.apply(this.state.G,[a].concat(g.x(b)))}; +g.k.L=function(a){return this.app.U().L(a)}; +g.k.ya=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.O.prototype.ya.call(this)};g.z(WQ,g.op);WQ.prototype.publish=function(a){var b=g.Ca.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.op.prototype.publish.call.apply(g.op.prototype.publish,[this,a].concat(g.x(b.shift())))}finally{this.G.delete(a)}return c};g.z(XQ,g.O);XQ.prototype.ya=function(){this.G.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.Y=this.j=this.Z=this.N=this.K=void 0};var gMa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.z(ZQ,RQ);g.k=ZQ.prototype;g.k.getApiInterface=function(){return Array.from(this.state.K)}; +g.k.B7=function(a,b){this.state.G.subscribe(a,b)}; +g.k.Hda=function(a,b){this.state.G.unsubscribe(a,b)}; +g.k.getPlayerState=function(a){return M5a(this.app,a)}; +g.k.q9=function(){return M5a(this.app)}; +g.k.gea=function(a,b,c){bR(this)&&(Z_(this.app,!0,1),a0(this.app,a,b,c,1))}; +g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?I5a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)}; +g.k.e9=function(){return this.app.getCurrentTime(1)}; +g.k.l9=function(){var a=this.app.lf(1);return isNaN(a)?this.getCurrentTime(1):a}; +g.k.i9=function(){return this.app.getDuration(1)}; +g.k.HM=function(a,b){a=g.Cd(Math.floor(a),0,100);isFinite(a)&&S_(this.app,{volume:a,muted:this.isMuted()},b)}; +g.k.yea=function(a){this.HM(a,!1)}; +g.k.qL=function(a){S_(this.app,{muted:!0,volume:this.getVolume()},a)}; +g.k.jaa=function(){this.qL(!1)}; +g.k.eN=function(a){g.aR(this.app)||S_(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)}; +g.k.jfa=function(){this.eN(!1)}; +g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Ff&&(a.pfp={enableIma:g.NQ(this.app.getVideoData())&&this.app.Md().allowImaMonetization,autoplay:FQ(this.app.Md()),mutedAutoplay:this.app.Md().mutedAutoplay});return a}; +g.k.VS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.Ef()){var b=yU(this.app.Bb());if(!B8a(b)||C8a(b))return}a===3?nR(this.app.Bb()).GG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.WP(this.app.Md())&&a===2||this.app.playVideo(a)}; +g.k.ida=function(){Z_(this.app,!0,1);this.VS()}; +g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.Ef()||B8a(yU(this.app.Bb())))b===3?nR(this.app.Bb()).GG("control_pause"):this.app.pauseVideo(b,a)}; +g.k.Jea=function(){var a=this.app,b=!1;a.W.wc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)}; +g.k.clearVideo=function(){}; +g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.Ap?Nab:Mab:[1]}; +g.k.getPlaybackQuality=function(a){return(a=g.cR(this.app,a))?a.getPlaybackQuality():"unknown"}; +g.k.sea=function(){}; +g.k.getAvailableQualityLevels=function(a){return(a=g.cR(this.app,a))?(a=g.pl(a.Vt(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]}; +g.k.a9=function(){return this.getAvailableQualityLevels(1)}; +g.k.v9=function(){return this.bZ()}; +g.k.w9=function(){return 1}; +g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; +g.k.bZ=function(){return this.getVideoLoadedFraction()}; +g.k.z9=function(){return 0}; +g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; +g.k.setSize=function(){this.app.qb().resize()}; +g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=YQ(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; +g.k.H$=function(a,b,c){a=this.loadVideoById(a,b,c,1);Z_(this.app,a,1)}; +g.k.cueVideoById=function(a,b,c,d){a=YQ(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; +g.k.d8=function(a,b,c){this.cueVideoById(a,b,c,1)}; +g.k.loadVideoByUrl=function(a,b,c,d){a=fMa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; +g.k.K$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);Z_(this.app,a,1)}; +g.k.cueVideoByUrl=function(a,b,c,d){a=fMa(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; +g.k.g8=function(a,b,c){this.cueVideoByUrl(a,b,c,1)}; +g.k.B9=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Md(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; +g.k.g9=function(){return this.app.getDebugText()}; +g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Md();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Md().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.k.z7=function(a,b,c){return S5a(this.app,a,b,c)}; +g.k.removeCueRange=function(a){return U5a(this.app,a)}; +g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)}; +g.k.F$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);Z_(this.app,!0,1)}; +g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; +g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)}; +g.k.maa=function(){this.nextVideo();Z_(this.app,!0,1)}; +g.k.previousVideo=function(a){this.app.previousVideo(a)}; +g.k.uda=function(){this.previousVideo();Z_(this.app,!0,1)}; +g.k.playVideoAt=function(a){this.app.playVideoAt(a)}; +g.k.hda=function(a){this.playVideoAt(a);Z_(this.app,!0,1)}; +g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; +g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; +g.k.s9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;cd?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Kh(),clipEnd:b.clipEnd, +clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}}; +g.k.isInline=function(){return this.app.isInline()}; +g.k.setInline=function(a){this.app.setInline(a)}; +g.k.A9=function(){return g.cR(this.app,1).uc(!0)}; +g.k.toggleSubtitles=function(){var a=g.vU(this.app.Bb());a&&a.Yea()}; +g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; +g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)}; +g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; +g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; +var lMa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), +oMa="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 i2={},pMa=(i2["api.invalidparam"]=2,i2.auth=150,i2["drm.auth"]=150,i2["heartbeat.net"]=150,i2["heartbeat.servererror"]=150,i2["heartbeat.stop"]=150,i2["html5.unsupportedads"]=5,i2["fmt.noneavailable"]=5,i2["fmt.decode"]=5,i2["fmt.unplayable"]=5,i2["html5.missingapi"]=5,i2["html5.unsupportedlive"]=5,i2["drm.unavailable"]=5,i2["mrm.blocked"]=151,i2["embedder.identity.denied"]=152,i2);g.z(g.gR,dR);g.k=g.gR.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.N[a]?!0:!!(this.state.Z[a]&&b&&JC(b,Wab))}; +g.k.getBandwidthEstimate=function(){return oO(this.app.U().schedule)}; +g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.cR(this.app);b&&(a={gpu:(0,g.RZ)(),d:a},b.handleError(new fE("feedback",a)))}; +g.k.getInternalApi=function(){return Object.assign({},this.state.j)}; +g.k.getInternalApiInterface=function(){return g.yc(this.state.j)}; +g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)}; +g.k.p9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.T(a,1),isCued:a.isCued(),isDomPaused:g.T(a,1024),isEnded:g.T(a,2),isError:g.T(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.T(a,16),isUiSeeking:g.T(a,32),isUnstarted:g.T(a,64)}}; +g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; +g.k.startSeekCsiAction=function(){this.app.Yh().D.j=(0,g.rt)()}; +g.k.d9=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)}; +g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.cR(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Dc()&&(h=f.getStreamTimeOffset());a0(e,a-h,b,c,1,d)}; +g.k.getStreamTimeOffset=function(){var a=g.cR(this.app,1);return a?a.getStreamTimeOffset():0}; +g.k.seekToLiveHead=function(a,b){var c=g.cR(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&a0(this.app,Infinity,a,b,1)}; +g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.cR(this.app,1);c&&c.iC(a,b)}; +g.k.fea=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)}; +g.k.dea=function(a,b,c,d){this.seekBy(a,b,c,d,1)}; +g.k.setVolume=function(a,b){this.HM(a,b===void 0?!0:b)}; +g.k.mute=function(a){this.qL(a===void 0?!0:a)}; +g.k.unMute=function(a){this.eN(a===void 0?!0:a)}; +g.k.syncVolume=function(){var a=j5a(this.app);S_(this.app,{volume:a.volume,muted:a.muted},!1)}; +g.k.getAvailableQualityLabels=function(){var a=g.cR(this.app,1);return a?g.pl(a.Vt(),function(b){return b.qualityLabel}):[]}; +g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Md().gm)}; +g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Md().gm)}; +g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; +g.k.getCurrentPlaylistSequence=function(){return g.cR(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; +g.k.getPlaylistSequenceForTime=function(a){return g.cR(this.app).getPlaylistSequenceForTime(a)}; +g.k.shouldSendVisibilityState=function(){return!0}; +g.k.confirmYpcRental=function(){var a=g.cR(this.app,1);a&&a.Cg("ypc_clickwrap")}; +g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; +g.k.setConnectedRemoteApps=function(a){this.app.U().Ij=a}; +g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=Ur("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,AJa)}; +g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a}; +g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; +g.k.addUtcCueRange=function(a,b,c,d,e){return T5a(this.app,a,b,c,d,e)}; +g.k.x9=function(a){a=a===void 0?1:a;var b=this.aZ(a);if(a=g.cR(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ma;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?Wd(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)? +Wd(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.T4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=xLa(a);b.paidContentOverlayDurationMs=yLa(a);a.j&&kL(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b}; +g.k.getAdState=function(){return this.app.getAdState()}; +g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.cR(this.app,1))?a.getPlayerState():null)?a.dh:null;return!!(a&&b&&g.T(a,128)&&qMa(b.errorCode)===5)}; +g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()}; +g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()}; +g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)}; +g.k.clearQueue=function(){this.app.clearQueue()}; +g.k.Ji=function(){return g.$Q(this)}; +g.k.sendAbandonmentPing=function(){var a=g.cR(this.app);a&&a.sendAbandonmentPing()}; +g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Md(),b==null?0:YP(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.HD=b.autonavState);else if(b.HD!==void 0)a=b.HD,b.HD=void 0;else return}$5a(this.app,a)}; +g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!1:b)}; +g.k.setLoopRange=function(a){this.app.setLoopRange(a)}; +g.k.getLoopRange=function(){return this.app.getLoopRange()}; +g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=g.cR(this.app,1))==null||!a.hasSupportedAudio51Tracks())}; +g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.cR(this.app,1);c&&c.setUserAudio51Preference(a,b)}; +g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.cR(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1}; +g.k.setProximaLatencyPreference=function(a){var b=g.cR(this.app,1);b&&b.setProximaLatencyPreference(a)}; +g.k.getProximaLatencyPreference=function(){var a=g.cR(this.app,1);return a?a.getProximaLatencyPreference():0}; +g.k.isProximaLatencyEligible=function(){var a=g.cR(this.app,1);return a?a.isProximaLatencyEligible():!1}; +g.k.getAppState=function(){return this.app.getAppState()}; +g.k.updateLastActiveTime=function(){pv()}; +g.k.setBlackout=function(a){this.app.setBlackout(a)}; +g.k.setUserEngagement=function(a){this.app.U().mm!==a&&(this.app.U().mm=a,(a=g.cR(this.app,1))&&B_(a))}; +g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.vU(this.app.Bb()).R3(a,b)}; +g.k.getCaptionWindowContainerId=function(){var a=g.vU(this.app.Bb());return a?a.getCaptionWindowContainerId():""}; +g.k.toggleSubtitlesOn=function(){var a=g.vU(this.app.Bb());a&&a.t3()}; +g.k.isSubtitlesOn=function(){var a=g.vU(this.app.Bb());return a?a.isSubtitlesOn():!1}; +g.k.getPlayerResponse=function(a){return(a=g.cR(this.app,a))?a.getVideoData().getPlayerResponse():null}; +g.k.o9=function(){return this.getPlayerResponse(1)}; +g.k.getEmbeddedPlayerResponse=function(){var a=g.cR(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; +g.k.getWatchNextResponse=function(a){return(a=g.cR(this.app,a))?a.getVideoData().getWatchNextResponse():null}; +g.k.C9=function(){return this.getWatchNextResponse(1)}; +g.k.getHeartbeatResponse=function(a){return(a=g.cR(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; +g.k.j9=function(){return this.getHeartbeatResponse(1)}; +g.k.getStoryboardFrame=function(a,b){var c=this.app.Ak();if(!c)return null;b=c.levels[b];return b?(a=g.CP(b,a))?{column:a.column,columns:a.columns,height:a.Yx,row:a.row,rows:a.rows,url:a.url,width:a.tG}:null:null}; +g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Ak();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Dc();return b.SI(a)}; +g.k.getStoryboardLevel=function(a){var b=this.app.Ak();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.zz(),minFrameIndex:b.QN()}:null:null}; +g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Ak();return a?a.levels.length:0}; +g.k.W8=function(){return this.getAudioTrack(1)}; +g.k.getAudioTrack=function(a){return(a=g.cR(this.app,a))?a.getAudioTrack():this.app.getVideoData().fl}; +g.k.setAudioTrack=function(a,b,c){this.lK()===3&&nR(this.app.Bb()).GG("control_set_audio_track",a);if(c=g.cR(this.app,c))if(c.Ka()||g.T(c.playerState,128))a=!1;else{var d,e=!((d=c.videoData.C)==null||!d.j);d=e&&b?c.getCurrentTime()-c.Dc():NaN;if(c.W.experiments.kb("html5_record_audio_format_intent")){var f=c.Xb();if(f.qoe){f=f.qoe;var h=[a.Yb.id,isNaN(d)?"m":"t"];g.NZ(f,g.LI(f.provider),"afi",h)}}if(e)b&&(e=T3a(c.Qc),c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})),c.xa.setAudioTrack(a,d,b); +else if(J4a(c)){b:{b=c.mediaElement.audioTracks();for(e=0;e=400)if(a=this.Md(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.hx(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||DMa(this), +b=this.Md(),this.cW(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.hx(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.w(this.B),c=b.next();!c.done;c=b.next())this.Nc(c.value)}; +g.k.cW=function(a){FMa(this)?this.isChecked=a!==1:((a=a!==1)||(g.Es(),a=g.kr("web_autonav_allow_off_by_default")&&!g.Fs(0,141)&&g.Hq("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Fs(0,140)),this.isChecked=a);EMa(this)}; +g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.uM(this.isChecked?2:1);EMa(this);if(FMa(this)){var a=this.Md().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; +g.k.getValue=function(){return this.isChecked}; +g.k.Md=function(){return this.J.getVideoData(1)};g.z(GMa,dS);g.z(kS,g.BR);kS.prototype.onClick=function(){this.enabled&&(lS(this,!this.checked),this.publish("select",this.checked))}; +kS.prototype.getValue=function(){return this.checked}; +kS.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var IMa=["en-CA","en","es-MX","fr-CA"];g.z(sS,kS);sS.prototype.Ta=function(a){a?this.j||(this.Eb.Uc(this),this.j=!0):this.j&&(this.Eb.ph(this),this.j=!1);this.j&&lS(this,KBa())}; +sS.prototype.D=function(){g.Yo(this.element,"ytp-menuitem-highlight-transition-enabled")}; +sS.prototype.C=function(a){var b=KBa();a!==b&&(b=g.Es(),Hs(190,a),Hs(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))}; +sS.prototype.ya=function(){this.j&&this.Eb.ph(this);kS.prototype.ya.call(this)};g.z(tS,dS);tS.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.z(uS,dS);uS.prototype.WR=function(a,b){b=b.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};g.z(vS,kS);vS.prototype.B=function(a){this.C(a?1:0)}; +vS.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;lS(this,b);this.setEnabled(a)}; +vS.prototype.ya=function(){this.Eb.ph(this);kS.prototype.ya.call(this)};g.z(wS,dS);wS.prototype.getDrcUserPreference=function(){return this.j}; +wS.prototype.setDrcUserPreference=function(a){g.xs("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Vc())&&this.B()&&JZ(a))}; +wS.prototype.updateEnvironmentData=function(){this.api.U().Sf=this.j===1}; +wS.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?sm(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.z(xS,dS);xS.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.qf("embargo",1);var c=b==null?void 0:b.KD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?MMa(this,c.filter(function(d){return LMa(a,d)})):(b==null?0:b.cueRanges)&&MMa(this,b.cueRanges.filter(function(d){return LMa(a,d)}))}; +xS.prototype.B=function(a){return a.embargo!==void 0}; +xS.prototype.ya=function(){dS.prototype.ya.call(this);this.j={}};g.z(yS,dS); +yS.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Rc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.$r(g.DO(b))&&e.unshift(159628),b=e.join(","),b=g.Gr()?b:g.Re(b,4),a.source_ve_path=b);this.j.length= +0};g.z(NMa,dS);g.z(zS,g.O);zS.prototype.ya=function(){g.O.prototype.ya.call(this);this.j=null;this.B&&this.B.disconnect()};g.z(PMa,dS);g.z(AS,g.S);AS.prototype.show=function(){g.S.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +AS.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=QMa(d),g.T(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,BS(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",xBa(b.label)),SMa(this,a))))}; +AS.prototype.ya=function(){BS(this);g.S.prototype.ya.call(this)};g.z(TMa,dS);g.z(CS,g.S);CS.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")}; +CS.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.z(DS,dS);DS.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.$o(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),iR(b.Ua,b.element,b),b.C=!0))}; +DS.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.z(UMa,g.S);g.z(XMa,dS);g.z(YMa,dS);g.z(ZMa,dS);g.z(ES,dS);ES.prototype.getSphericalProperties=function(){var a=g.qR(this.api.Bb());return a?a.getSphericalProperties():{}}; +ES.prototype.setSphericalProperties=function(a){if(a){var b=g.qR(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.z(FS,dS);g.k=FS.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)}; +g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!1:c)}; +g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)}; +g.k.logClick=function(a,b){this.api.logClick(a,b)}; +g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)}; +g.k.hasVe=function(a){return this.api.hasVe(a)}; +g.k.destroyVe=function(a){this.api.destroyVe(a)};g.z(GS,dS);GS.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.$Q(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Yk;if(d&&a=0)return;b=~b;g.Xb(this.items,b,0,a);oe(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.uS,this);this.menuItems.publish("size-change")}; +g.k.ph=function(a){a.unsubscribe("size-change",this.uS,this);this.Ka()||(g.Rb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))}; +g.k.uS=function(){this.menuItems.publish("size-change")}; +g.k.focus=function(){for(var a=0,b=0;b1&&g.ZS(this)}; +g.k.OC=function(){rNa(this);this.Gb&&(qNa(this),g.nm(this.element,this.size))}; +g.k.ij=function(){var a=this.j.pop();XS(this,a,this.j[this.j.length-1],!0)}; +g.k.X5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Nb();a.preventDefault();break;case 37:this.j.length>1&&this.ij();a.preventDefault();break;case 39:a.preventDefault()}}; +g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; +g.k.ya=function(){g.yR.prototype.ya.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.z($S,g.WS);$S.prototype.open=function(a,b){this.initialize(a.items)&&this.pd(b,!!b)}; +$S.prototype.initialize=function(a){g.VS(this.Ne);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.w(a);for(var c=a.next();!c.done;c=a.next())this.Uc(c.value,b--);return!0}; +$S.prototype.Uc=function(a,b){a.menuNavigationItemRenderer?uNa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&vNa(this,a.menuServiceItemRenderer,b)};g.z(aT,SS);g.k=aT.prototype;g.k.AG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Vx(),this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand))}; +g.k.Tu=function(){this.enabled=!1;this.qa.hide()}; +g.k.Vy=function(){return!!this.j&&this.enabled}; +g.k.onVideoDataChange=function(a,b){this.A2(b);if(this.j){this.C2();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.Q((f=this.j)==null?void 0:f.onTap,Ew);var h;if(a=g.Q((h=this.j)==null?void 0:h.onOverflow,Ew))this.N=g.Q(a,eab);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)== +null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var y; +this.Va=(y=this.j)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;bT(this)}}; +g.k.Yaa=function(){this.isVisible=!0;bT(this)}; +g.k.Zaa=function(){this.isVisible=!1;bT(this)}; +g.k.fL=function(){SS.prototype.fL.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)}; +g.k.Vx=function(){SS.prototype.Vx.call(this,!1);this.B&&this.J.logClick(this.banner.element)}; +g.k.Y5=function(a){this.K||(this.K=new $S(this.J),g.P(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()}; +g.k.A2=function(){}; +g.k.C2=function(){}; +g.k.ya=function(){this.J.qf("suggested_action_view_model");SS.prototype.ya.call(this)};g.z(cT,aT); +cT.prototype.A2=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,qab);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.Q((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,bab)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null? +0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)}; +cT.prototype.C2=function(){var a=[],b,c=g.w(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.PC(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.jf(a)};g.z(xNa,dS);g.z(dT,dS);dT.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&yNa(this)};g.z(g.eT,g.BR);g.k=g.eT.prototype;g.k.open=function(){g.YS(this.Eb,this.B)}; +g.k.Ui=function(a){zNa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Bd(this.rl(a)),this.C=a)}; +g.k.vl=function(a){g.VS(this.B);for(var b={},c=!1,d=0;d=0?this.j.playbackRate:1}catch(a){return 1}}; +g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a}; +g.k.Xt=function(){return this.j.loop}; +g.k.setLoop=function(a){this.j.loop=a}; +g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)}; +g.k.isPaused=function(){return this.j.paused}; +g.k.isSeeking=function(){return this.j.seeking}; +g.k.isEnded=function(){return this.j.ended}; +g.k.gK=function(){return this.j.muted}; +g.k.tC=function(a){nE();this.j.muted=a}; +g.k.qx=function(){return this.j.played||LE([],[])}; +g.k.Dh=function(){try{var a=this.j.buffered}catch(b){}return a||LE([],[])}; +g.k.AA=function(){return this.j.seekable||LE([],[])}; +g.k.QI=function(){var a=this.j;return a.getStartDate?a.getStartDate():null}; +g.k.getCurrentTime=function(){return this.j.currentTime}; +g.k.setCurrentTime=function(a){this.j.currentTime=a}; +g.k.getDuration=function(){return this.j.duration}; +g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a}; +g.k.pause=function(){this.j.pause()}; +g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){}); +return a}; +g.k.ql=function(){return this.j.readyState}; +g.k.hK=function(){return this.j.networkState}; +g.k.Eh=function(){return this.j.error?this.j.error.code:null}; +g.k.Wf=function(){return this.j.error?this.j.error.message:""}; +g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}}; +g.k.oi=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; +g.k.zv=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; +g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():mE()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.k.au=function(){var a=this.j;return new g.Fd(a.offsetLeft,a.offsetTop)}; +g.k.getSize=function(){return g.om(this.j)}; +g.k.setSize=function(a){g.nm(this.j,a)}; +g.k.getVolume=function(){return this.j.volume}; +g.k.setVolume=function(a){nE();this.j.volume=a}; +g.k.DP=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)}; +g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)}; +g.k.removeAttribute=function(a){this.j.removeAttribute(a)}; +g.k.hasAttribute=function(a){return this.j.hasAttribute(a)}; +g.k.rE=aa(37);g.k.aI=aa(39);g.k.bI=aa(41);g.k.Sz=aa(43);g.k.ZE=function(){return is(this.j)}; +g.k.Dt=function(a){g.Wo(this.j,a)}; +g.k.BF=function(a){return g.$l(this.j,a)}; +g.k.bR=function(){return g.qe(document.body,this.j)}; +g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks}; +g.k.ya=function(){for(var a=g.w(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);gF.prototype.ya.call(this)}; +g.k.JT=function(a){this.j.disableRemotePlayback=a};uT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; +uT.prototype.forEach=function(a){for(var b=this.j+1;b25?5E3:500;this.delay.start(a)}; +CT.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.z(LNa,dS);g.z(DT,g.O);DT.prototype.j=function(){var a=(0,g.rt)()-this.startTime;a=a=0;a--)this.features[a].dispose();this.features.length=0;g.O.prototype.ya.call(this)};MT.prototype.YR=function(){this.B=(0,g.rt)()}; +MT.prototype.reset=function(){this.j=this.B=NaN}; +MT.prototype.dS=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});Qz("seek",c);g.Pz({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||Oz("pl_ss",this.B,"seek");Oz(b,(0,g.rt)(),"seek")}this.reset()}};g.k=NT.prototype;g.k.reset=function(){Lz(this.timerName)}; +g.k.tick=function(a,b){Oz(a,b,this.timerName)}; +g.k.vg=function(a){return Sz(a,this.timerName)}; +g.k.Fv=function(a){HF(a,void 0,this.timerName)}; +g.k.infoGel=function(a){g.Pz(a,this.timerName)};g.z(PT,g.ax);g.k=PT.prototype;g.k.Kl=function(a){return this.loop||!!a||this.index+1=0}; +g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b0)||CU(this,1,!0)}; +g.k.gW=function(){this.K=!0;this.j.Nc(this.G);this.G=this.j.T(document,"mouseup",this.c6)}; +g.k.c6=function(){this.K=!1;CU(this,8,!1);this.j.Nc(this.G);this.G=this.j.T(this.target,"mousedown",this.gW)}; +g.k.hW=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.j.Nc(this.Z),this.Z=this.j.T(this.target,"touchend",this.d6,void 0,!0),CU(this,1024,!0)}; +g.k.d6=function(a){if(a=a.changedTouches)for(var b=0;b1280||f>720)if(e=c.fh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.fh("maxresdefault.jpg"))break; +if(d>320||f>180)if(e=c.fh("sddefault.jpg")||c.fh("hqdefault.jpg")||c.fh("mqdefault.jpg"))break;if(e=c.fh("default.jpg"))break}g.QO(b)&&(b=new Image,b.addEventListener("load",function(){Tta()}),b.src=e?e:"",this.api.Yh().tick("ftr")); +this.G.style.backgroundImage=e?"url("+e+")":""};g.z(g.GU,g.S);g.GU.prototype.resize=function(){}; +g.GU.prototype.B=function(a){var b=this;this.C=!1;ZOa(this);var c=a.FP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Bd(JU(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Il(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube?p=videoError",d&&(a=g.Ji(a,{hl:d})),this.Bd(JU(this,"HTML5_SPS_UMP_STATUS_REJECTED", +a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.Ji(a,{hl:d})),this.Bd(JU(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Bd(g.HU(a.errorMessage)):this.Bd(JU(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Ji(c, +{hl:a})),this.Bd(JU(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.wc&&!d.D&&YOa(this,function(f){if(g.mS(f,b.api,!MO(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Hc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}})); +if(this.C){var e=this.Ea("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),YOa(this,function(){b.api.logClick(e)}))}}; +var XOa=/([^<>]+)<\/a>/;g.z($Oa,g.S);g.k=$Oa.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.ib("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.mS(a,this.J,!0);this.J.logClick(this.element)}; +g.k.onVideoDataChange=function(a,b){bPa(this,b);this.De&&cPa(this,this.De)}; +g.k.e6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&bPa(this,b);this.j&&cPa(this,a.state);this.De=a.state}; +g.k.pd=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; +g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.z(KU,g.S);KU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.S.prototype.hide.call(this)}; +KU.prototype.onStateChange=function(a){this.xd(a.state)}; +KU.prototype.xd=function(a){if(g.T(a,128))var b=!1;else{var c;b=((c=this.api.Vc())==null?0:c.yu)?!1:g.T(a,16)||g.T(a,1)?!0:!1}b?this.j.start():this.hide()}; +KU.prototype.B=function(){this.message.style.display="block"};g.z(LU,g.yR);LU.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(dPa(this),this.pd()):(this.j&&this.logClick(),this.Nb()))}; +LU.prototype.Mk=function(a){this.api.isMutedByMutedAutoplay()&&g.jy(a,2)&&this.Nb()}; +LU.prototype.onClick=function(){this.api.unMute();this.logClick()}; +LU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.MU,g.oE);g.k=g.MU.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.KK=a.getPlayerSize();this.Ec(b);this.Yq();this.kc();this.api.publish("basechromeinitialized",this);this.sQ()&&this.api.publish("standardControlsInitialized")}; +g.k.onVideoDataChange=function(a,b){var c=this.gG!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.KK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.WP(d))&&this.Xq()}c&&(this.gG=b.videoId,c=this.Ig,c.Fa=3E3,CU(c,512,!0),this.Yq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.P2=572)}; +g.k.Jba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.k.CC=function(){var a=this.api.xl()&&this.api.Ip(),b=this.api.UA();return this.hP||a||this.KQ||b}; +g.k.Xq=function(){var a=!this.CC();g.$o(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.WP(b))&&g.$o(this.api.getRootNode(),"ytp-hide-controls",!a)}; +g.k.nJ=function(a){try{if(!g.qe(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!aca(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a}; +g.k.DB=function(a){var b=this.api.getRootNode();g.$o(b,"ytp-autohide",a);g.$o(b,"ytp-autohide-active",!0);this.mX.start(a?250:100);a&&(this.XM=!1,g.Yo(b,"ytp-touch-mode"));this.iP=!a;this.api.DM(!a)}; +g.k.XR=function(){var a=this.api.getRootNode();g.$o(a,"ytp-autohide-active",!1)}; +g.k.nca=function(){this.BU=!0}; +g.k.mca=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.BU=!1,this.CU&&this.Nc(this.CU),this.xG===0&&NU(this,a)?(this.LQ(),this.HJ.start(),this.CU=this.T(this.api.qb(),"touchmove",this.nca,void 0,!0)):this.HJ.stop();hPa(this)&&NU(this,a)&&!this.api.U().Z&&fPa(this);var b=this.GU.Dk();if(!g.uO(this.api.U())&&rO&&iPa(this,a))b&&a.preventDefault();else if(this.XM=!0,g.Wo(this.api.getRootNode(),"ytp-touch-mode"),this.Ig.Iv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= +this.api.getPlayerStateObject(),!(!this.api.Kh()||g.T(b,2)&&g.lR(this.api)||g.T(b,64))){b=Date.now()-this.n_;this.xG+=1;if(b<=350){this.RE=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=(this.xG-1)*10;d>0&&db*2&&d=650;this.Ig.resize();g.$o(b,"ytp-fullscreen",this.api.isFullscreen());g.$o(b,"ytp-large-width-mode",c);g.$o(b,"ytp-small-mode",this.Og());g.$o(b,"ytp-tiny-mode",this.SK());g.$o(b,"ytp-big-mode",this.Hh());this.wg&&this.wg.resize(a)}; +g.k.Mk=function(a){this.Ec(a.state);this.Yq()}; +g.k.vC=aa(5);g.k.dQ=function(){var a=!!this.gG&&!this.api.Df()&&!this.NS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(U8a&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=yU(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.kC(b.player.U()):!1);return a}return a&&(c.Cn||this.api.isFullscreen()||c.Yk)}; +g.k.Yq=function(){var a=this.dQ();this.Do!==a&&(this.Do=a,g.$o(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; +g.k.Ec=function(a){var b=a.isCued()||this.api.uo()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.DU&&this.Nc(this.DU),this.DU=this.T(this.api.qb(),"touchstart",this.mca,void 0,b));var c=this.Ig,d=a.isPlaying()&&!g.T(a,32)||this.api.UF();CU(c,128,!d);c=this.Ig;d=this.api.getPresentingPlayerType()===3;CU(c,256,d);c=this.api.getRootNode();g.T(a,2)?d=[R1.ENDED]:(d=[],g.T(a,8)?d.push(R1.PLAYING):g.T(a,4)&&d.push(R1.PAUSED),g.T(a,1)&&!g.T(a,32)&&d.push(R1.BUFFERING),g.T(a, +32)&&d.push(R1.SEEKING),g.T(a,64)&&d.push(R1.UNSTARTED));g.bc(this.kO,d)||(g.Zo(c,this.kO),this.kO=d,g.Xo(c,d));d=this.api.U();var e=g.T(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.T(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:C8a(yU(this.api.Bb())))||this.api.UA()||g.uO(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.$o(c,"ytp-hide-controls",!f);g.$o(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.KQ);g.T(a, +128)&&!g.uO(d)?(this.wg||(this.wg=new g.GU(this.api),g.P(this,this.wg),g.sR(this.api,this.wg.element,4)),this.wg.B(a.dh),this.wg.show()):this.wg&&(this.wg.dispose(),this.wg=null)}; +g.k.Fr=function(){return this.api.xl()&&this.api.Ip()?(this.api.sC(!1,!1),!0):this.api.Df()?(g.mR(this.api,!0),!0):!1}; +g.k.onMutedAutoplayChange=function(a){this.KQ=a;this.Xq()}; +g.k.Hh=function(){return!1}; +g.k.Og=function(){return!this.Hh()&&(this.api.getPlayerSize().width=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x=d.right)&&(e&=-2),(e&132)==132&&(a.y=d.bottom)&&(e&= +-5),a.xd.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.yd.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.Ul(0,0,0,0);d.left= +a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.dm(this.element,new g.Fd(d.left,d.top));g.ts(this.D);this.D.T(document,"contextmenu",this.Uaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.l6)}; +g.k.Uaa=function(a){if(!a.defaultPrevented){var b=os(a);g.qe(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; +g.k.onFullscreenToggled=function(){this.Nb();FPa(this)}; +g.k.l6=function(){this.Nb()};g.z(XU,g.S);XU.prototype.onClick=function(){var a=this,b,c,d,e;return g.J(function(f){if(f.j==1)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.G(f,IPa(a,e),2);f.B&&HPa(a);a.api.logClick(a.element);g.ua(f)})}; +XU.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=GPa(this);g.$o(this.element,"ytp-copylink-button-visible",this.visible); +g.hx(this,this.visible);this.tooltip.Xh();this.api.logVisibility(this.element,this.visible&&this.Z)}; +XU.prototype.Mc=function(a){g.S.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; +XU.prototype.ya=function(){g.S.prototype.ya.call(this);g.Yo(this.element,"ytp-copylink-button-visible")};g.z(YU,g.S);YU.prototype.show=function(){g.S.prototype.show.call(this);g.Po(this.B)}; +YU.prototype.hide=function(){this.D.stop();this.C=0;g.Yo(this.element,"ytp-chapter-seek");g.Yo(this.element,"ytp-time-seeking");g.S.prototype.hide.call(this)}; +YU.prototype.sH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Ro(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.qb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f* +2.5;f=h/2;var l=this.Ea("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.qb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ea("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");JPa(this,this.G?this.C:d)};g.z(LPa,SS);g.k=LPa.prototype;g.k.n6=function(a){this.La||(this.La=new $S(this.J),g.P(this,this.La));var b,c;if((b=this.yb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.La.open(this.yb.menu.menuRenderer,a.target),a.preventDefault()}; +g.k.hba=function(){this.J.ib("innertubeCommand",this.Wc);this.J.logClick(this.infoButton.element)}; +g.k.Vy=function(){return!!this.j}; +g.k.JM=function(){return!!this.j}; +g.k.AG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.yc&&this.J.ib("innertubeCommand",this.yc),this.Vx(!1))}; +g.k.Tu=function(){this.Vx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.gC()}; +g.k.dW=function(){this.gC();bV(this)}; +g.k.pea=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.gC();c=g.w(this.Fa);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element, +d.trackingParams));this.qa.show();RS(this);g.hx(this.Ga,!d.stayInApp);XPa(this);NPa(this);aV(this);this.yc=g.Q(d.onTapCommand,Ew);if(e=g.Q(d.menuOnTap,Ew))this.yb=g.Q(e,eab);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:QPa(this),priceDropReferencePrice:RPa(this),promotionText:PPa(this),priceA11yText:SPa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:TPa(this)}); +l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Kb=new g.Oo(function(){WPa(b)},1E3),this.Ga.hide(),this.countdownTimer.show(),WPa(this)); +this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&MPa(this)&&(this.Tb=new g.Oo(function(){OPa(b)},1E3),OPa(this))}}}}; +g.k.gC=function(){this.j&&(this.j=void 0,this.fm())}; +g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&bV(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.Q((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,cab);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&& +a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)== +null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.lx(p));this.Wc=b==null?void 0:b.onClickCommand;this.Fa.length||(VPa(this,n),aV(this));var r;(r=this.Rc)==null||r.call(this);this.Rc=g.bQ.subscribe(function(){VPa(c,n);aV(c)})}else{var t; +(t=this.Rc)==null||t.call(this);this.gC()}}; +g.k.ya=function(){bV(this);XPa(this);NPa(this);SS.prototype.ya.call(this)};g.z(bQa,g.S);bQa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.z(cQa,g.yR);g.k=cQa.prototype;g.k.show=function(){g.yR.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);dQa(this,!0)}; +g.k.hide=function(){g.yR.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);dQa(this,!1)}; +g.k.getId=function(){return this.D}; +g.k.Wp=function(){return this.itemData.length}; +g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.bk)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.bk)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.bk)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.w(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.bk)==null?0:l.ctaButtons)for(b=g.w(b.bk.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value, +Y$a))l=new bQa(this.J,l,this.j),l.qe&&(this.itemData.push(l),l.Ja(this.items))}}; +g.k.ya=function(){this.hide();g.yR.prototype.ya.call(this)};g.z(gQa,g.S);g.k=gQa.prototype;g.k.onVideoDataChange=function(a,b){fQa(this,b);this.De&&iQa(this,this.De)}; +g.k.q6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&fQa(this,b);iQa(this,a.state);this.De=a.state}; +g.k.x0=function(a){(this.D=a)?this.hide():this.j&&this.show()}; +g.k.p6=function(){this.B||this.pd();this.showControls=!0}; +g.k.o6=function(){this.B||this.Nb();this.showControls=!1}; +g.k.pd=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.jd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.T(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; +g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; +g.k.vea=function(){this.B=!1;this.showControls||this.Nb()};var Tbb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Tbb).reduce(function(a,b){a[Tbb[b]]=b;return a},{}); +var Ubb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ubb).reduce(function(a,b){a[Ubb[b]]=b;return a},{}); +var Vbb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Vbb).reduce(function(a,b){a[Vbb[b]]=b;return a},{});var Wbb,Xbb;Wbb=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Xbb=[{option:0,text:cV(0)},{option:.25,text:cV(.25)},{option:.5,text:cV(.5)},{option:.75,text:cV(.75)},{option:1,text:cV(1)}]; +g.fV=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Wbb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:cV(.5)},{option:-1,text:cV(.75)},{option:0,text:cV(1)},{option:1,text:cV(1.5)},{option:2, +text:cV(2)},{option:3,text:cV(3)},{option:4,text:cV(4)}]},{option:"background",text:"Background color",options:Wbb},{option:"backgroundOpacity",text:"Background opacity",options:Xbb},{option:"windowColor",text:"Window color",options:Wbb},{option:"windowOpacity",text:"Window opacity",options:Xbb},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", +text:"Font opacity",options:[{option:.25,text:cV(.25)},{option:.5,text:cV(.5)},{option:.75,text:cV(.75)},{option:1,text:cV(1)}]}];var Ybb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.z(oQa,g.oE);g.k=oQa.prototype; +g.k.kZ=function(a){a.repeat||(this.C.JK=!1);var b=!1,c=a.keyCode,d=os(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.aR(this.api.app)||Ybb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.gf&&!g.aR(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b= +d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?(b=!0,e=!1):e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);RU(this.ke,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()- +5,0);RU(this.ke,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Kh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Kh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&eV(this,!0);(b||h)&&this.Ig.Iv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey, +shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Hc("onKeyPress",a))}; +g.k.lZ=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; +g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.JK)return b;(c=g.qR(this.api.Bb()))&&(c=c.Cv)&&c.Gb&&(c.iZ(a),b=!0);switch(a){case 9:eV(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().gf){var l,m;a=(l=this.progressBar)== +null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Ws(a)}}return b}; +g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.JK=!1);var m=!1,n=this.api.U();if(n.gf&&!g.aR(this.api.app))return m;var p=g.qR(this.api.Bb());if(p&&(p=p.Cv)&&p.Gb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.hZ(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&yla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.aR(this.api.app)|| +Ybb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Yk:[];t=xX?d:c;switch(a){case 80:b&&!n.Ra&&(QU(this.ke,vsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ra&&(QU(this.ke,sx(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Kh()&&(this.api.startSeekCsiAction(),this.j?ZU(this.j,-1,10):QU(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill", +X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Kh()&&(this.api.startSeekCsiAction(),this.j?ZU(this.j,1,10):QU(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Kh()&&(this.api.startSeekCsiAction(),t?(t=lQa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(KPa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?ZU(this.j,-1,5):QU(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Kh()&&(this.api.startSeekCsiAction(),t?(t=kQa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(KPa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?ZU(this.j,1,5):QU(this.ke,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),RU(this.ke,this.api.getVolume(),!1)):(this.api.mute(),RU(this.ke,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Ra:this.Ws(p);break;case 75:m=this.Ws(p);break;case 190:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!pQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),kPa(this.ke,!1),m=!0):this.api.Kh()&& +(this.step(1),m=!0);break;case 188:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!pQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),kPa(this.ke,!0),m=!0):this.api.Kh()&&(this.step(-1),m=!0);break;case 70:HMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); +break;case 27:p?(this.progressBar.gx(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.vU(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),lPa(this.ke,!n||n&&!n.displayName),m=!0);break;case 79:gV(this,"textOpacity");break;case 87:gV(this,"windowOpacity");break;case 187:case 61:gV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:gV(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.Kh()&& +(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Ig.Iv()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m}; +g.k.step=function(a){this.api.Kh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,a>0?77:78)}}; +g.k.Ws=function(a){if(!this.api.U().Ra){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.Q(d.miniplayer,kab))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.KP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ke.QH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.k.ya=function(){g.Ro(this.G);g.oE.prototype.ya.call(this)};g.z(g.hV,g.S);g.hV.prototype.Ns=aa(11);g.hV.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.zi.isEmpty();a=g.uO(a)&&g.oR(this.J)&&g.T(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Og()&&!a&&c.width>=240&&!g.NQ(this.J.getVideoData())&&!b&&!this.j&&!this.J.jd();g.$o(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Xh();this.J.logVisibility(this.element,this.visible&&this.Z)}; +g.hV.prototype.Mc=function(a){g.S.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; +g.hV.prototype.ya=function(){g.S.prototype.ya.call(this);g.Yo(this.element,"ytp-overflow-button-visible")};g.z(qQa,g.yR);g.k=qQa.prototype;g.k.r6=function(a){a=os(a);g.qe(this.element,a)&&(g.qe(this.j,a)||g.qe(this.closeButton,a)||zR(this))}; +g.k.Nb=function(){g.yR.prototype.Nb.call(this);this.J.Gm(this.element)}; +g.k.show=function(){this.Gb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.yR.prototype.show.call(this);this.element.setAttribute("aria-modal","true");sQa(this,!0)}; +g.k.hide=function(){g.yR.prototype.hide.call(this);this.element.removeAttribute("aria-modal");sQa(this,!1)}; +g.k.onFullscreenToggled=function(a){!a&&this.Dk()&&zR(this)}; +g.k.isEmpty=function(){return this.actionButtons.length===0}; +g.k.focus=function(){for(var a=g.w(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Gb){b.focus();break}};g.z(tQa,g.S);tQa.prototype.onClick=function(a){g.mS(a,this.api)&&this.api.playVideoAt(this.index)};g.z(uQa,g.yR);g.k=uQa.prototype;g.k.show=function(){g.yR.prototype.show.call(this);this.j.T(this.api,"videodatachange",this.VN);this.j.T(this.api,"onPlaylistUpdate",this.VN);this.VN()}; +g.k.hide=function(){g.yR.prototype.hide.call(this);g.ts(this.j);this.updatePlaylist(null)}; +g.k.VN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ea("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Nc(this.C),this.C=null))}; +g.k.wM=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.bD(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[a.index];else{c=g.w(this.playlistData);for(d=c.next();!d.done;d=c.next())d.value.dispose(); +c=a.length;this.playlistData=[];for(d=0;d=this.B&&!a.C&&!b.isAd()&&!this.api.jd()}else a=!1;this.visible=a;g.hx(this,this.visible);g.$o(this.element,"ytp-search-button-visible",this.visible);g.$o(this.element,"ytp-show-search-title",!this.api.Og());this.api.logVisibility(this.element,this.visible&&this.Z)}; +lV.prototype.Mc=function(a){g.S.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(g.mV,g.S);g.k=g.mV.prototype;g.k.Os=aa(8);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){CQa(a,f)})}catch(f){f instanceof Error&&CQa(this,f)}else this.Me.Fr(),zR(this.B,this.element,!1); +this.api.logClick(this.element)}; +g.k.Ta=function(){var a=this.api.U(),b=this.api.jd();g.$o(this.element,"ytp-show-share-title",g.uO(a)&&!b);this.Me.Hh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Xl(this.element,"right",a+"px")):b&&g.Xl(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=BQa(this);g.$o(this.element,"ytp-share-button-visible",this.visible);g.hx(this,this.visible);this.tooltip.Xh();this.api.logVisibility(this.element,BQa(this)&&this.Z)}; +g.k.Mc=function(a){g.S.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; +g.k.ya=function(){g.S.prototype.ya.call(this);g.Yo(this.element,"ytp-share-button-visible")};g.z(EQa,g.yR);g.k=EQa.prototype;g.k.v6=function(a){a=os(a);g.qe(this.G,a)||g.qe(this.closeButton,a)||zR(this)}; +g.k.Nb=function(){g.yR.prototype.Nb.call(this);this.tooltip.Gm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.w(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; +g.k.show=function(){var a=this.Gb;g.yR.prototype.show.call(this);this.Ta();a||this.api.ib("onSharePanelOpened")}; +g.k.P$=function(){this.Gb&&this.Ta()}; +g.k.Ta=function(){var a=this;g.Wo(this.element,"ytp-share-panel-loading");g.Yo(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&Vz(this.api.Mm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ka()||(g.Yo(a.element,"ytp-share-panel-loading"),GQa(a,d))}); +b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.bD("Share link $URL",{URL:b}));pS(this.j);this.api.logVisibility(this.j,!0)}; +g.k.onFullscreenToggled=function(a){!a&&this.Dk()&&zR(this)}; +g.k.focus=function(){this.j.focus()}; +g.k.ya=function(){g.yR.prototype.ya.call(this);FQa(this)};g.z(JQa,SS);g.k=JQa.prototype;g.k.ya=function(){OQa(this);SS.prototype.ya.call(this)}; +g.k.AG=function(a){a.target!==this.dismissButton.element&&(this.Vx(!1),this.J.ib("innertubeCommand",this.onClickCommand))}; +g.k.Tu=function(){this.Wa=!0;this.Vx(!0);this.fm()}; +g.k.Lba=function(a){this.N=a;this.fm()}; +g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Aa=!0,this.Y=this.ra=!1,OQa(this),NQa(this,!1),this.B=this.j=!1,oV(this),KQa(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.If(!1);else{var e,f,h;b=g.Q((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer, +cab);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.bQ.getState().entities;var l;if((l=tK(f,"featuredProductsEntity",e))==null?0:l.productsData){this.If(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p; +this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,NQa(this,!0),KQa(this),m=MQa(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.S({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.P(this,p),n.push(p),n.push.apply(n,g.x(m.slice(1)))),this.K=new g.S({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.P(this,this.K),this.Ma.element.append(this.K.element));this.text=g.lx(b.text); +var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=g.lx(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.jf()}oNa(this);RS(this);this.fm()}}; +g.k.Vy=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Og()&&!this.Ab&&(this.Y||this.Aa)}; +g.k.BL=function(a){SS.prototype.BL.call(this,a);if(this.j||this.B)this.timing&&nV(this.timing.preview)&&(this.j=!1,oV(this),this.B=!1,oV(this),this.J.qf("shopping_overlay_preview_collapsed"),this.J.qf("shopping_overlay_preview_expanded"),a=pV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),nV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.qf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.jf([a])), +this.ra=!0,RS(this);oV(this)}; +g.k.If=function(a){(this.Y=a)?(QS(this),RS(this,!1)):(OQa(this),this.Ra.start());this.fm()}; +g.k.jf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;nV(d)&&(HQa(d,a),c.push(pV(d.startSec,d.endSec,"shopping_overlay_visible")));nV(e)&&(HQa(e,a),d=e.startSec+1,c.push(pV(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(pV(d,e.endSec,"shopping_overlay_preview_expanded")));nV(b)&&(HQa(b,a),c.push(pV(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.jf(c)};g.z(RQa,g.S); +RQa.prototype.Ta=function(){var a=this.api.U();g.hx(this,g.uO(a)&&this.api.jd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Gb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Ab&&!!b.profilePicture:g.uO(a)&&(c=!!b.videoId&&!!b.Ab&&!!b.profilePicture&&!g.NQ(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.uO(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a=== +void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.bD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Wo(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Yo(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.gm);this.updateValue("expandedTitle",b.expandedTitle)};g.z(qV,g.yR);qV.prototype.show=function(){g.yR.prototype.show.call(this);this.j.start()}; +qV.prototype.hide=function(){g.yR.prototype.hide.call(this);this.j.stop()}; +qV.prototype.mu=function(a,b){a==="dataloaded"&&((this.Cj=b.Cj,this.Qf=b.Qf,isNaN(this.Cj)||isNaN(this.Qf))?this.C&&(this.J.qf("intro"),this.J.removeEventListener(g.RC("intro"),this.K),this.J.removeEventListener(g.SC("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.RC("intro"),this.K),this.J.addEventListener(g.SC("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.PC(this.Cj,this.Qf,{priority:9,namespace:"intro"}), +this.J.jf([a]),this.C=!0))};g.z(rV,g.S);rV.prototype.onClick=function(){this.J.zv()}; +rV.prototype.Ta=function(){var a=!0;g.uO(this.J.U())&&(a=a&&this.J.qb().getPlayerSize().width>=480);g.hx(this,a);this.updateValue("icon",this.J.oi()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.z(TQa,g.S);TQa.prototype.ya=function(){this.j=null;g.S.prototype.ya.call(this)};g.z(sV,g.S);sV.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)}; +sV.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; +sV.prototype.K=function(){this.j.disabled=this.B==null;g.$o(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Tc()};g.z(tV,sV);tV.prototype.onClickCommand=function(a){g.Q(a,aQ)&&this.Tc()}; +tV.prototype.updateVideoData=function(a,b){var c,d,e;a=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,qP);var f;this.B=(f=g.Q(a==null?void 0:a.playerBarActionButton,g.bI))==null?void 0:f.command;sV.prototype.K.call(this)}; +tV.prototype.Tc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=dV(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;sV.prototype.N.call(this,a)};g.z(uV,g.S);uV.prototype.G=function(a){g.T(a.state,32)?WQa(this,this.api.Ak()):this.Gb&&(g.T(a.state,16)||g.T(a.state,1))||this.j.hide()}; +uV.prototype.Bg=function(){var a=this.api.getPlayerStateObject();(g.T(a,32)||g.T(a,16))&&XQa(this)}; +uV.prototype.K=function(){this.C=NaN;XQa(this)}; +uV.prototype.hide=function(){this.B&&WQa(this,null);g.S.prototype.hide.call(this)};g.z(YQa,g.S);g.k=YQa.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ab||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.GF(b)})}catch(b){this.GF(b)}}else zR(this.message,this.element,!0)}; +g.k.GF=function(a){String(a).includes("fullscreen error")?g.Cw(a):g.Bw(a);this.jS()}; +g.k.jS=function(){this.disable();this.message.pd(this.element,!0)}; +g.k.uy=function(){hs()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; +g.k.K7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.jS()}}; +g.k.disable=function(){var a=this;if(!this.message){var b=(es(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.yR(this.J,{I:"div",Na:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924", +target:this.J.U().Y},va:b[2]},b[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(c){a.Me.VE(a.message,c)}); +g.sR(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; +g.k.Ta=function(){var a=HMa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.hx(this,a&&!b);this.J.logVisibility(this.element,this.Gb)}; +g.k.qn=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g", +S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.jR(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.Cw(c)})}else b={I:"svg", +X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", +V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.jR(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Me.Qe().Xh()}; +g.k.ya=function(){this.message||((0,this.j)(),this.j=null);g.S.prototype.ya.call(this)};g.z(vV,g.S);vV.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Ji().Yw;c&&ZU(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x(a)),g.Po(this.B))};g.z(wV,sV);wV.prototype.onClickCommand=function(a){g.Q(a,aab)&&this.Tc()}; +wV.prototype.updateVideoData=function(){var a,b;this.B=(a=$Qa(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;sV.prototype.K.call(this)}; +wV.prototype.Tc=function(){var a="",b=this.D.K,c,d=(c=$Qa(this))==null?void 0:c.headerTitle;c=d?g.lx(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=jQa(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));sV.prototype.N.call(this,a)};g.z(xV,g.S);xV.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)}; +xV.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.hx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; +xV.prototype.Mc=function(a){g.S.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(aRa,g.S);g.k=aRa.prototype;g.k.kW=function(a){this.visible=a.width>=300||this.Ga;g.hx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; +g.k.xba=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():zR(this.message,this.element,!0);this.J.logClick(this.element)}; +g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; +g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?dRa(this,a):ET(this.Fa,function(l){dRa(c,f+(c.G-f)*l)},250); +this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?eRa(this,d):ET(this.qa,function(l){eRa(c,h+(c.D-h)*l)},250); +this.D=d}e.Va&&(e=g.jR(this.J,"Mute","m"),d=g.jR(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Xh())}; +g.k.Mc=function(a){g.S.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; +var bRa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],cRa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.z(g.yV,g.S);g.yV.prototype.onStateChange=function(a){this.xd(a.state)}; +g.yV.prototype.xd=function(a){var b=g.uQ(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.T(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.jR(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.jR(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}a=== +3?this.update({title:b,icon:fRa(a)}):(this.update({title:b}),(b=fRa(a))&&this.j&&this.j!==3?PNa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Xh();this.j=a}}; +g.yV.prototype.onVideoDataChange=function(){g.$o(this.element,"ytp-play-button-playlist",g.oR(this.J))}; +g.yV.prototype.Ws=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.K)b.cttAuthInfo={token:this.J.getVideoData().K,videoId:this.J.getVideoData().videoId};Qz("direct_playback",b);this.J.Yh().timerName="direct_playback"}else this.j===3&&OT(this.J.Yh());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)=== +"click"&&this.element.blur()};g.z(g.zV,g.S);g.k=g.zV.prototype;g.k.onVideoDataChange=function(){hRa(this);this.D&&(this.Nc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.w6);this.C=iRa(this);gRa(this);this.WN(this.J.qb().getPlayerSize())}; +g.k.WN=function(a){a=a===void 0?this.J.qb().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.oR(this.J)||this.j&&g.tR(this.J)&&!this.J.L("web_hide_next_button")||jRa(this))&&!c&&(this.j||a.width>=400);g.hx(this,a);this.J.logVisibility(this.element,a)}; +g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.mS(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(OT(this.J.Yh()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(OT(this.J.Yh()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; +g.k.w6=function(){var a=iRa(this);a!==this.C&&(this.C=a,gRa(this))}; +g.k.ya=function(){this.B&&(this.B(),this.B=null);hRa(this);g.S.prototype.ya.call(this)};g.z(lRa,g.S);g.k=lRa.prototype;g.k.y6=function(a){this.YN(a.pageX);this.XN(a.pageX+a.deltaX);mRa(this)}; +g.k.YN=function(a){this.qa=a-this.La}; +g.k.XN=function(a){a-=this.La;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Y=a-this.qa,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=rRa(this,this.C),this.C<=this.j/2&&this.C>=qRa(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Xl(this.Aa,"transform","translateX("+(this.C-this.j/2)+"px)"),kRa(this,a)):this.C=this.N))}; +g.k.x6=function(){this.ra&&(this.ra.MA=!0);var a=(0,g.rt)()-this.Va<300;if(Math.abs(this.Y)<5&&!a){this.Va=(0,g.rt)();a=this.qa+this.Y;var b=this.j/2-a;this.YN(a);this.XN(a+b);mRa(this);this.api.logClick(this.G)}mRa(this)}; +g.k.IB=function(){AV(this,this.api.getCurrentTime())}; +g.k.play=function(a){this.api.seekTo(rRa(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)}; +g.k.onExit=function(a){this.api.seekTo(this.Ra,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)}; +g.k.kc=function(a,b){this.La=a;this.j=b;AV(this,this.api.getCurrentTime())}; +g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),kRa(this,this.Ra),g.$o(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.y6),this.logVisibility(this.isEnabled))}; +g.k.disable=function(){this.isEnabled=!1;this.hide();g.$o(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Nc(this.Ma);this.logVisibility(this.isEnabled)}; +g.k.reset=function(){this.disable();this.D=[];this.Ga=!1}; +g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; +g.k.ya=function(){for(;this.B.length;){var a=void 0;(a=this.B.pop())==null||a.dispose()}g.S.prototype.ya.call(this)}; +g.z(nRa,g.S);g.z(oRa,g.S);g.z(sRa,g.S);g.z(BV,g.S);BV.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};vRa.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.Cd(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.z(wRa,g.S);g.z(g.EV,g.ix);g.k=g.EV.prototype; +g.k.N3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.qf("timedMarkerCueRange");zRa(this);for(var c=g.w(b.hf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.La[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.La[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.w(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new wRa;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= +Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;FRa(this,f)}GRa(this,this.K);a=this.K;f=this.je;e=[];h=null;for(l=0;lm&&(h.end=m);m=mQa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.jf(e);this.uf=this.La[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.La[d];p=n=e=m=l=h=void 0;if(d&& +d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?h:60;h=this.j.length;l=null;for(m=0;m=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height= +e+"px");p=this.G[m];q=n;t=f;var y=e,A=m===0;A=A===void 0?!1:A;tRa(p,y);r=q;u=p.j;A=A===void 0?!1:A;var D=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H0&&(l=n[n.length-1])}g.FV(this)}e= +void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.lx(e.label):""});d=f;this.heatMarkersDecorations=d}}b.sX=this.K;g.$o(this.element,"ytp-timed-markers-enabled",a);return a}; +g.k.kc=function(){g.FV(this);IV(this);GRa(this,this.K);if(this.B){var a=g.fm(this.element).x||0;this.B.kc(a,this.N)}}; +g.k.onClickCommand=function(a){if(a=g.Q(a,aQ)){var b=a.key;a.isVisible&&b&&KRa(this,b)}}; +g.k.Kca=function(a){this.api.ib("innertubeCommand",this.je[a.id])}; +g.k.Tc=function(){IV(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.qM()}; +g.k.z6=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}}; +g.k.mu=function(a,b){this.updateVideoData(b,a==="newdata")}; +g.k.P9=function(){this.mu("newdata",this.api.getVideoData())}; +g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.qe();c&&(MQ(a)||QRa(this)?this.gf=!1:this.gf=a.allowLiveDvr,g.$o(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!MQ(a))));aSa(this,this.api.Kh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;MV(this);for(JV(this,this.qa,this.fb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.yb={};var d;(d=this.B)==null||d.reset();RV(this);g.$o(this.api.getRootNode(),"ytp-fine-scrubbing-exp", +DV(this))}else this.qM();this.ji()}if(a){var e;d=((e=this.Hb)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.rP(e);c=BRa(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.Dw)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.rP(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.pw=((h=d.visibleOnLoad)==null?void 0:h.key)||e.pw;h=g.w(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.yb[d.key]=d.value, +d.value.onChapterRepeat&&(e.L4=d.value.onChapterRepeat));e.pw!=null&&KRa(this,e.pw);e=!0}var l;if(((l=f.Dw)==null?void 0:l.length)>0){l=g.bQ.getState().entities;h=g.w(f.Dw);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=tK(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.La[d]=b}e=this.N3()||e}!e&&(l=BRa(f))&&(DRa(this,l),f.Yk=this.j,CRa(this)); +RRa(this,null);a.eV&&this.G.length===0&&(a=a.eV,l=a.key,a.isVisible&&l&&KRa(this,l))}else xRa(this),zRa(this)}IV(this)}; +g.k.Q9=function(a){this.Y&&!g.T(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.T(a.state,8)&&this.api.pauseVideo()}; +g.k.lW=function(a){var b=!!this.Hb!==!!a,c=this.Hb;this.Hb=a;RRa(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",rsa()),this.updateValue("clipendicon",rsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",jsa()),this.updateValue("clipendicon",isa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(), +!0),g.FV(this)),MV(this));JV(this,this.qa,this.fb)}; +g.k.Oba=function(a,b,c){var d=g.fm(this.element),e=HV(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=zy(this.C,Number(c.getAttribute("data-position")),0)*e+g.fm(this.progressBar).x);this.Xa.x=a-d.x;this.Xa.y=b-d.y;a=HV(this);c=LV(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:MQ(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=zy(this.C,m)*HV(this).j),b=this.C.B; +QRa(this)&&(b=this.C.B);m=f||g.sy(this.gf?c-this.C.j:c-b);b=a.position+this.Rf;c-=this.api.Dc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.Ak()){if(this.j.length>1){n=KV(this,this.Xa.x,!0);if(!this.Hb)for(d=0;d1)for(d=0;d0)for(n=this.Xa.x,d=g.w(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=GV(this,e.timeRangeStartMillis/ +(this.C.j*1E3),HV(this)),g.$o(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.uf?(n=jQa(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=dV(this.j,c*1E3),n=this.j[n].title):(n=dV(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16):l=n?110:126);d=dV(this.j,c*1E3);this.Wa=SRa(this,c,d)?d:SRa(this, +c,d+1)?d+1:-1;g.$o(this.api.getRootNode(),"ytp-progress-bar-snap",this.Wa!==-1&&this.j.length>1);d=!1;e=g.w(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.sy(h.decorationTimeMillis/1E3),d=!0)}this.Dd!==d&&(this.Dd=d,this.api.logVisibility(this.Cd,this.Dd));g.$o(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;e=n.length*(this.D?8.55:5.7);e=e<=d?e: +d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&(l-=10);this.G.length&&this.G[0].qe&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.ra,this.Ga)));var q;if(DV(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Va>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?OV(this):this.Va}q=void 0;DV(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.Sd,this.Fa)));this.tooltip.OM(b,c,m,!!f,l,n,d,q)}else this.tooltip.OM(b, +c,m,!!f,l);g.Wo(this.api.getRootNode(),"ytp-progress-bar-hover");PRa(this)}; +g.k.Nba=function(){this.ji();g.Yo(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.ra,this.Ga));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.Sd,this.Fa))}; +g.k.Mba=function(a,b){DV(this)&&this.B&&(this.B.Ga?AV(this.B,this.api.getCurrentTime()):pRa(this.B),this.B.show(),g.$o(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Od&&(this.Od.dispose(),this.Od=null);this.Sf=b;this.j.length>1&&this.Wa!==-1?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(LV(this,HV(this)),!1,void 0,void 0,7);g.Wo(this.element,"ytp-drag");(this.hf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; +g.k.Pba=function(){if(DV(this)&&this.B){var a=OV(this);this.Va>=a*.5?(this.B.enable(),AV(this.B,this.api.getCurrentTime()),$Ra(this,a)):RV(this)}if(g.T(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Wa!==-1)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=LV(this,HV(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.w(this.heatMarkersDecorations); +for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Cd)}g.Yo(this.element,"ytp-drag");this.hf&&!g.T(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.k.Qba=function(a,b){a=HV(this);a=LV(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;DV(this)&&((c=this.B)==null?0:c.Ga)&&(AV(this.B,a),this.B.isEnabled||(this.Va=g.Cd(this.Sf-b-10,0,OV(this)),$Ra(this,this.Va)))}; +g.k.ji=function(){this.tooltip.MQ()}; +g.k.u0=function(){this.Hb||(this.updateValue("clipstarticon",hsa()),this.updateValue("clipendicon",hsa()),g.Wo(this.element,"ytp-clip-hover"))}; +g.k.t0=function(){this.Hb||(this.updateValue("clipstarticon",jsa()),this.updateValue("clipendicon",isa()),g.Yo(this.element,"ytp-clip-hover"))}; +g.k.qM=function(){this.clipStart=0;this.clipEnd=Infinity;MV(this);JV(this,this.qa,this.fb)}; +g.k.sfa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ma[c]){var d=g.ie("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Ob[c]=d;g.Uo(d,b.style);TRa(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else ZRa(this,b)}; +g.k.Jda=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())ZRa(this,b.value)}; +g.k.gx=function(a){this.B&&(this.B.onExit(a!=null),RV(this))}; +g.k.KP=function(a){this.B&&(this.B.play(a!=null),RV(this))}; +g.k.tfa=function(){aSa(this,this.api.Kh())}; +g.k.ya=function(){aSa(this,!1);g.ix.prototype.ya.call(this)};g.z(SV,g.S);SV.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; +SV.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.hx(this,a&&this.J.qb().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Gb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.gsa())}g.$o(this.element,"ytp-remote-button-active",this.isActive())}}; +SV.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Eb,b=this.element;if(a.Dk())a.Nb();else{a.initialize();a:{var c=g.w(a.Ne.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.pd(b));a.pd(b)}}this.J.logClick(this.element)};g.z(TV,g.S);TV.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.hx(this,a);this.J.logVisibility(this.element,a)}; +TV.prototype.C=function(){if(this.Eb.Gb)this.Eb.Nb();else{var a=g.vU(this.J.Bb());a&&!a.loaded&&(a.Wh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Eb.pd(this.element)}}; +TV.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.rR(this.J),e=c&&!!g.qR(this.J.Bb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.$o(this.element,"ytp-hdr-quality-badge",a);g.$o(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.$o(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.$o(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.$o(this.element,"ytp-8k-quality-badge", +!a&&c==="highres");g.$o(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.$o(this.element,"ytp-3d-badge",!a&&e&&d)};g.z(UV,kS);UV.prototype.isLoaded=function(){var a=g.BU(this.J.Bb());return a!==void 0&&a.loaded}; +UV.prototype.Ta=function(){g.BU(this.J.Bb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Eb.Uc(this),this.j=!0):this.j&&(this.Eb.ph(this),this.j=!1);lS(this,this.isLoaded())}; +UV.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)}; +UV.prototype.ya=function(){this.j&&this.Eb.ph(this);kS.prototype.ya.call(this)};g.z(VV,g.eT);VV.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(this.vl(g.pl(a,this.j)),this.tracks=g.ec(a,this.j,this),this.countLabel.Bd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ui(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +VV.prototype.Gg=function(a){g.eT.prototype.Gg.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Eb.ij()}; +VV.prototype.j=function(a){return a.toString()};g.z(WV,kS); +WV.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.tR(this.J))this.j||(this.Eb.Uc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Eb.ph(this);this.j=!1;a=g.w(this.C);for(var b=a.next();!b.done;b= +a.next())this.Nc(b.value)}}; +WV.prototype.D=function(a){lS(this,a!==1)}; +WV.prototype.onSelect=function(a){this.J.uM(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))}; +WV.prototype.ya=function(){this.j&&this.Eb.ph(this);kS.prototype.ya.call(this)};g.z(cSa,g.BR);cSa.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.$Q(this.J))==null||(c=b.Pm())==null||c.Nb();var d,e;(d=g.$Q(this.J))==null||(e=d.AY())==null||e.pd(a.target)};g.z(dSa,g.eT);g.k=dSa.prototype; +g.k.ED=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Aa=this.J.Vt();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.VQ(this.J,"getAvailableQualityData",[]);b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Fa=new Set(a)}else if(this.G){c=g.VQ(this.J,"getAvailableQualityData",[]);b=[];c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]= +d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.tMa(this.J)&&this.J.wx()&&b.unshift("missing-qualities");uMa(this.J)&&b.unshift("inline-survey");this.vl(b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Jh();c=!g.OO(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.tZ&&(a=a.Ea("ytp-panel-footer"),g.$o(a,"ytp-panel-hide-footer",c));if(b.length){this.mW();this.enable(!0);return}}this.enable(!1)}; +g.k.mW=function(){if(this.j){var a=this.J.getPreferredQuality();this.Fa.has(a)&&(this.N=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ui(a),this.Bd(this.rl(a))):this.Ui(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Ui(a),a==="auto"&&this.Bd(this.rl(a)))}; +g.k.Gg=function(a){if(a!=="missing-qualities"){g.eT.prototype.Gg.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.Q(b,g.W$a))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c, +d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.Q(b,g.W$a))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Eb.Nb();this.ED()}}; +g.k.open=function(){for(var a=g.w(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.eT.prototype.open.call(this);this.J.logClick(this.element)}; +g.k.Mz=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.BR({I:"a",Na:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Na:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.rl(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.eT.prototype.Mz.call(this,a,b,c);f?(this.J.createServerVe(b.element, +this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",va:"Looks good?"}];c=g.w([!0,!1]);f=c.next();for(e={};!f.done;e={OQ:void 0},f=c.next())e.OQ=f.value,f=new g.S({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.OQ?qsa():lsa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.OQ,m=g.cR(d.J.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().TU=!0);d.Eb.Nb();d.ED()}}(e)),a.push(f); +return new g.BR({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-menuitem-label"],V:a}]},b)}; +g.k.rl=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",va:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[gSa(this,a,b,!1)]:[fSa(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(gSa(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(gSa(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(fSa(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.z(XV,g.S);XV.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.B);hSa(this,this.B)}; +XV.prototype.G=function(){var a=Number(this.j.value);this.B=a;this.updateValue("slidervalue",this.B);this.j.valueAsNumber=this.B;hSa(this,a);this.j.focus()};g.z(YV,XV);YV.prototype.G=function(){XV.prototype.G.call(this);this.C&&(this.C.textContent=this.B+"x")}; +YV.prototype.ra=function(){this.qa()}; +YV.prototype.Y=function(){this.J.setPlaybackRate(this.B,!0)};g.z(ZV,g.S);g.k=ZV.prototype;g.k.init=function(){this.Ty(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)}; +g.k.C6=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.Ty(this.j+b);a.preventDefault()}}; +g.k.A6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.Ty(b);a.preventDefault()}; +g.k.B6=function(a){a=(a-g.fm(this.D).x)/this.qa*this.range+this.B;this.Ty(a)}; +g.k.Ty=function(a,b){b=b===void 0?"":b;a=g.Cd(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a}; +g.k.focus=function(){this.Ma.focus()};g.z($V,ZV);$V.prototype.Aa=function(){this.J.setPlaybackRate(this.j,!0)}; +$V.prototype.Ty=function(a){ZV.prototype.Ty.call(this,a,jSa(this,a).toString());this.G&&(iSa(this),this.Fa())}; +$V.prototype.updateValues=function(){var a=this.J.getPlaybackRate();jSa(this,this.j)!==a&&(this.Ty(a),iSa(this))};g.z(kSa,g.ix);kSa.prototype.focus=function(){this.j.focus()};g.z(lSa,TS);g.z(mSa,g.eT);g.k=mSa.prototype;g.k.rl=function(a){return a==="1"?"Normal":a.toLocaleString()}; +g.k.Ta=function(){var a,b=(a=this.J.getVideoData())==null?void 0:a.Ih();a=this.J.getPresentingPlayerType(b);this.enable(a!==2&&a!==3);qSa(this)}; +g.k.vl=function(a){g.eT.prototype.vl.call(this,a);this.G&&this.G.j.focus()}; +g.k.Az=function(a){g.eT.prototype.Az.call(this,a);a?(this.Y=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),qSa(this),oSa(this,this.J.getPlaybackRate())):(this.Nc(this.Y),this.Y=null)}; +g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.N.includes(b)||pSa(this,b);oSa(this,a)}; +g.k.Mz=function(a,b,c){return a===this.j&&rSa(this.J)?g.eT.prototype.Mz.call(this,a,b,c,{I:"div",S:"ytp-speed-slider-menu-footer",V:[this.G]}):g.eT.prototype.Mz.call(this,a,b,c)}; +g.k.Gg=function(a){g.eT.prototype.Gg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);rSa(this.J)&&a===this.j||this.Eb.ij()}; +g.k.RN=function(a){a===this.j&&aW(this.J)&&!rSa(this.J)?(a=new lSa(this.J),g.YS(this.Eb,a)):g.eT.prototype.RN.call(this,a)};g.z(tSa,g.eT);g.k=tSa.prototype;g.k.Ui=function(a){g.eT.prototype.Ui.call(this,a)}; +g.k.nW=function(a){return a.option.toString()}; +g.k.getOption=function(a){return this.settings[a]}; +g.k.rl=function(a){return this.getOption(a).text||""}; +g.k.Gg=function(a){g.eT.prototype.Gg.call(this,a);this.publish("settingChange",this.N,this.settings[a].option)};g.z(bW,g.US);bW.prototype.Ci=function(a){for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Ou[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ui(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; +bW.prototype.Nk=function(a,b){this.publish("settingChange",a,b)};g.z(cW,g.eT);cW.prototype.j=function(a){return a.languageCode}; +cW.prototype.rl=function(a){return this.languages[a].languageName||""}; +cW.prototype.Gg=function(a){this.publish("select",a);this.J.logClick(this.element);g.ZS(this.Eb)};g.z(wSa,g.eT);g.k=wSa.prototype;g.k.FD=function(a){return g.Cc(a)?"__off__":a.displayName}; +g.k.rl=function(a){return a==="__off__"?"Off":a==="__translate__"?"Auto-translate":a==="__contribute__"?"Add subtitles/CC":a==="__correction__"?"Suggest caption corrections":(a==="__off__"?{}:this.tracks[a]).displayName}; +g.k.Gg=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.LK(this.J.U(),this.J.getVideoData());g.Iy(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=xSa(this);dW(this,c);g.eT.prototype.Gg.call(this,this.FD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)== +null?void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Eb.ij();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=xSa(this);dW(this,b);g.eT.prototype.Gg.call(this,this.FD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element), +dW(this,a==="__off__"?{}:this.tracks[a]),g.eT.prototype.Gg.call(this,a);this.Eb.ij()}}; +g.k.Ta=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.jw,d,e=!((d=this.J.getVideoData())==null||!g.KQ(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.ec(d,this.FD,this);e=g.pl(d,this.FD);var m,n;xSa(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)== +null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.Cc(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); +Oaa(l,f)}uSa(this.j,l);e.push("__translate__")}f=this.FD(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));this.vl(e);this.Ui(f);h&&h.translationLanguage?this.j.Ui(this.j.j(h.translationLanguage)):zNa(this.j);a&&this.G.Ci(this.J.getSubtitlesUserSettings());this.countLabel.Bd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.k.D6=function(a){var b=this.J.getOption("captions","track");b=g.Fc(b);b.translationLanguage=this.j.languages[a];dW(this,b)}; +g.k.Nk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}vSa(this,!0);this.N.start();this.G.Ci(this.J.getSubtitlesUserSettings())}; +g.k.vca=function(a){a||g.Ro(this.N)}; +g.k.ya=function(){g.Ro(this.N);g.eT.prototype.ya.call(this)}; +g.k.open=function(){g.eT.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.z(ySa,g.WS);g.k=ySa.prototype; +g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.gT=new dSa(this.J,this)}catch(c){g.Cw(Error("QualityMenuItem creation failed"))}g.P(this,this.gT);var b=new wSa(this.J,this);g.P(this,b);a.C||(b=new UV(this.J,this),g.P(this,b));a.enableSpeedOptions&&(b=new mSa(this.J,this),g.P(this,b));(g.uO(a)||a.K)&&(a.B||a.Wa)&&(b=new cSa(this.J,this),g.P(this,b));a.Od&&!a.L("web_player_move_autonav_toggle")&&(a=new WV(this.J,this),g.P(this,a));a=new VV(this.J,this); +g.P(this,a);this.J.publish("settingsMenuInitialized");bSa(this.settingsButton,this.Ne.Wp())}}; +g.k.Uc=function(a){this.initialize();this.Ne.Uc(a);bSa(this.settingsButton,this.Ne.Wp())}; +g.k.ph=function(a){this.Gb&&this.Ne.Wp()<=1&&this.hide();this.Ne.ph(a);bSa(this.settingsButton,this.Ne.Wp())}; +g.k.pd=function(a){this.initialize();this.Ne.Wp()>0&&g.WS.prototype.pd.call(this,a)}; +g.k.Nb=function(){this.UL?this.UL=!1:g.WS.prototype.Nb.call(this)}; +g.k.show=function(){g.WS.prototype.show.call(this);g.Wo(this.J.getRootNode(),"ytp-settings-shown")}; +g.k.hide=function(){g.WS.prototype.hide.call(this);g.Yo(this.J.getRootNode(),"ytp-settings-shown")}; +g.k.If=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.z(eW,g.S);eW.prototype.onClick=function(){if(ASa(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.Fs(g.Es(),65);g.OO(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; +eW.prototype.j=function(a){var b,c;(b=g.$Q(this.J))==null||(c=b.Pm())==null||c.pd(a)}; +eW.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName}; +eW.prototype.Ta=function(){var a=ASa(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.jR(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Ea("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.jR(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Ea("ytp-subtitles-button-icon"))== +null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Xh();c=c&&this.J.qb().getPlayerSize().width>=b;g.hx(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.z(g.fW,g.S);g.k=g.fW.prototype; +g.k.Tc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!gW(this)||!g.T(this.api.getPlayerStateObject(),64));g.hx(this,b);g.$o(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);hW(this)&&(c-=this.Hb.startTimeMs/1E3);c=g.sy(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=hW(this)?g.sy((this.Hb.endTimeMs- +this.Hb.startTimeMs)/1E3):g.sy(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}BSa(this,a.isAtLiveHead);CSa(this,this.api.getLoopRange())}; +g.k.onLoopRangeChange=function(a){var b=this.Hb!==a;this.Hb=a;b&&(this.Tc(),DSa(this))}; +g.k.Uca=function(){this.api.setLoopRange(null)}; +g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):b);this.Tc();DSa(this)}; +g.k.updateVideoData=function(a){this.TF=a.isLivePlayback&&!a.yb;this.B=MQ(a);this.isPremiere=a.isPremiere;g.$o(this.element,"ytp-live",gW(this))}; +g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.k.ya=function(){this.j&&this.j();g.S.prototype.ya.call(this)};g.z(FSa,g.S);g.k=FSa.prototype;g.k.uy=function(){var a=this.api.Hh();this.C!==a&&(this.C=a,ESa(this,this.api.getVolume(),this.api.isMuted()))}; +g.k.oW=function(a){g.hx(this,a.width>=350)}; +g.k.G6=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.Cd(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; +g.k.E6=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.Cd(b/10,-10,10));a.preventDefault()}; +g.k.Bca=function(){iW(this,this.j,!0,this.B,this.api.Vm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.k.F6=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.fm(this.N).x;this.api.setVolume(g.Cd((a-c/2)/(b-c),0,1)*100)}; +g.k.Aca=function(){iW(this,this.j,!1,this.B,this.api.Vm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; +g.k.onVolumeChange=function(a){ESa(this,a.volume,a.muted)}; +g.k.GX=function(){iW(this,this.j,this.isDragging,this.B,this.api.Vm())}; +g.k.ya=function(){g.S.prototype.ya.call(this);g.Yo(this.K,"ytp-volume-slider-active")};g.z(jW,g.S); +jW.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.NQ(this.api.getVideoData(1));g.hx(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Nc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Wo(this.element,"no-link")); +b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.KO(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.OQ(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.bD("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)}; +jW.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.ty(a),!1,!0,!0);if(g.uO(b)){var d={};g.uO(b)&&g.VQ(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Ji(c,d)}g.nS(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +jW.prototype.kc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +b=28666,c=this.api.getVideoData();this.api.jd()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.OQ(c)&&(a={I:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",X:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",X:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{I:"path",X:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",X:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{I:"path",X:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",X:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{I:"path",X:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",X:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{I:"path",X:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{I:"path",X:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",X:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},b=216163);g.OQ(c)?g.Wo(this.element,"ytp-youtube-music-button"):g.Yo(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; +jW.prototype.Mc=function(a){g.S.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(HSa,g.oE);g.k=HSa.prototype;g.k.Bg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.T(this.J.getPlayerStateObject(),2))this.progressBar.Tc(),this.Aa.Tc()}; +g.k.DB=function(){this.MU();this.Ig.B?this.Bg():this.progressBar.ji()}; +g.k.H6=function(){this.Bg();this.Z.start()}; +g.k.MU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.NO(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Ig.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Bg)):this.ra&&(this.Nc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; +g.k.kc=function(){var a=this.J.Hh(),b=this.J.qb().getPlayerSize(),c=JSa(this),d=Math.max(b.width-c*2,100);if(this.fb!==b.width||this.Xa!==a){this.fb=b.width;this.Xa=a;var e=KSa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.YRa(this.progressBar,c,e,a);this.J.Qe().pW=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-LSa(this))*.82));c.maxWidth=d;c.maxHeight=a;c.OC();this.MU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&SQa(this.Wa, +b.height)}; +g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.La.style.background=a.Ff?a.Sp:"";this.qa&&ZQa(this.qa,a.showSeekingControls);this.Y&&ZQa(this.Y,a.showSeekingControls)}; +g.k.Ib=function(){return this.C.element};g.z(MSa,SS);g.k=MSa.prototype;g.k.AG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.Tu())}; +g.k.Tu=function(){this.enabled=!1;this.qa.hide()}; +g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&NSa(this);a=[];var c,d,e,f;if(b=(f=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,sab))==null?void 0:f.suggestedActions)for(c=g.w(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,tab))&&g.Q(d.trigger,rab)&&a.push(d);if(a.length!==0){c=[];a=g.w(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.Q(d.trigger,rab))f=(f=d.title)?g.lx(f):"View Chapters", +b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.PC(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.jf(c)}}; +g.k.Vy=function(){return this.enabled}; +g.k.If=function(){this.enabled?this.Ra.start():QS(this);this.fm()}; +g.k.ya=function(){NSa(this);SS.prototype.ya.call(this)};var n2={},kW=(n2.CHANNEL_NAME="ytp-title-channel-name",n2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",n2.LINK="ytp-title-link",n2.SESSIONLINK="yt-uix-sessionlink",n2.SUBTEXT="ytp-title-subtext",n2.TEXT="ytp-title-text",n2.TITLE="ytp-title",n2);g.z(lW,g.S);lW.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.ty(a),!1,!0);g.uO(b)&&(b={},g.VQ(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.Ji(c,b));g.nS(c,this.api,a)}; +lW.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:kW.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:kW.CHANNEL_NAME,va:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);OSa(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ab&&c.profilePicture?(this.updateValue("channelLink", +c.Ab),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):OSa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Yk;g.$o(this.link,kW.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.NQ(a)||b.C?this.j&&(this.updateValue("url",null),this.Nc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.uO(b)?a.expandedTitle: +a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.mW,g.S);g.k=g.mW.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:QSa(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; +g.k.OM=function(a,b,c,d,e,f,h,l){if(!this.La||this.env.Z){this.type===3&&this.ji();this.type!==1&&(g.Uo(this.element,"ytp-tooltip ytp-bottom"),(VQa(this.api)||this.api.isInline())&&g.Wo(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Ak())&&this.B.subscribe("l",this.B0,this));if(l){var m=g.om(this.bg).height||this.Aa;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.$o(this.text,"ytp-tooltip-text-no-title", +this.type===1&&!f);this.api.isInline()&&g.Wo(this.text,"ytp-modern-tooltip-text");g.$o(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=AP(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=LKa(this.B,c,b));SSa(this,c);if(h)switch(b=g.om(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right= +b/2+"px",this.title.style.textAlign="center"}RSa(this,!!d,a,e)}}; +g.k.MQ=function(){this.type===1&&this.ji()}; +g.k.RH=function(a,b){if(this.type)if(this.type===3)this.ji();else return;PSa(this,a,3,b)}; +g.k.Xh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&QSa(this))}; +g.k.B0=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,SSa(this,a))}; +g.k.E$=function(){JKa(this.B,this.D,this.N*this.scale)}; +g.k.ji=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);TSa(this);break;case 3:TSa(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.B0,this),this.B=null),this.api.removeEventListener("videoready",this.Fa),this.Ga.stop()}this.type=null;this.Y&&this.K.hide()}; +g.k.Gm=function(){if(this.j)for(var a=0;a=0;b--)if(this.Ru[b]===a){this.Ru.splice(b,1);break}CU(this.Ig,64,this.Ru.length>0)}; +g.k.CC=function(){this.api.xl()&&this.api.Ip();return!!this.GE||ZSa(this)||g.MU.prototype.CC.call(this)}; +g.k.uC=aa(3);g.k.Os=aa(7);g.k.Ns=aa(10);g.k.Xq=function(){var a=!this.CC(),b=a&&this.api.xl()&&!g.T(this.api.getPlayerStateObject(),2)&&!g.NQ(this.api.getVideoData())&&!this.api.U().C&&!this.api.jd(),c=this.Yr&&g.oR(this.api)&&g.T(this.api.getPlayerStateObject(),128);a||c?(this.VM.show(),this.WM.show()):(this.VM.hide(),this.WM.hide(),this.api.Gm(this.Di.element));b?this.Yg.pd():this.Yg.Nb();this.Dg&&ISa(this.Dg,this.MS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&$Sa(this);g.MU.prototype.Xq.call(this)}; +g.k.Ey=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.om(a),h=d||this.Dg&&g.qe(this.Dg.Ib(),b),l=d=null;c!=null&&h||(d=g.om(b),l=g.mm(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Dg,d=JSa(b),l=KSa(b),h=this.api.qb().getPlayerSize().height,c=g.Cd(c,d,d+l-f.width),f=h-LSa(b)-f.height):g.qe(this.Di.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.Cd(c,12,b-f.width-12),f=this.Hh()?this.VO:this.UO,this.api.U().playerStyle==="gvn"&&(f+= +20),this.Yr&&(f-=this.Hh()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.Cd(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; +g.k.DB=function(a){a&&(this.api.Gm(this.Di.element),this.Dg&&this.api.Gm(this.Dg.Ib()));this.NK&&(g.$o(this.contextMenu.element,"ytp-autohide",a),g.$o(this.contextMenu.element,"ytp-autohide-active",!0));g.MU.prototype.DB.call(this,a)}; +g.k.XR=function(){g.MU.prototype.XR.call(this);this.NK&&(g.$o(this.contextMenu.element,"ytp-autohide-active",!1),this.NK&&(this.contextMenu.hide(),this.zi&&this.zi.hide()))}; +g.k.oo=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.Ul(0,0,c.width,c.height);if(a||this.Ig.B&&!this.CC()){if(this.api.U().Cn||b)a=this.Hh()?this.VO:this.UO,c.top+=a,c.height-=a;this.Dg&&(c.height-=LSa(this.Dg))}return c}; +g.k.uy=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.fF.element,b),b.parentElement.insertBefore(this.eF.element,b.nextSibling))):g.Bw(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.fF.detach(),this.eF.detach());this.kc();this.Yq()}; +g.k.Hh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; +g.k.showControls=function(a){this.hP=!a;this.Xq()}; +g.k.kc=function(){var a=this.Hh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.$o(this.contextMenu.element,"ytp-big-mode",a);this.Xq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||$Sa(this);this.Yq();var b=this.api.jd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Xl(this.Di.element,"padding-left",a+"px"),g.Xl(this.Di.element,"padding-right",a+"px")):b&&(g.Xl(this.Di.element,"padding-left",""),g.Xl(this.Di.element,"padding-right",""));g.MU.prototype.kc.call(this)}; +g.k.dQ=function(){if(ZSa(this)&&!g.oR(this.api))return!1;var a=this.api.getVideoData();return!g.uO(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Ii||((a=this.Ii||a.Ii)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,CLa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.MU.prototype.dQ.call(this):!1}; +g.k.Yq=function(){g.MU.prototype.Yq.call(this);this.api.logVisibility(this.title.element,!!this.Do);this.TB&&this.TB.Mc(!!this.Do);this.channelAvatar.Mc(!!this.Do);this.overflowButton&&this.overflowButton.Mc(this.Og()&&!!this.Do);this.shareButton&&this.shareButton.Mc(!this.Og()&&!!this.Do);this.tp&&this.tp.Mc(!this.Og()&&!!this.Do);this.searchButton&&this.searchButton.Mc(!this.Og()&&!!this.Do);this.copyLinkButton&&this.copyLinkButton.Mc(!this.Og()&&!!this.Do);if(!this.Do){this.api.Gm(this.Di.element); +for(var a=0;a=b)return d.return();(c=a.j.get(0))&&hTa(a,c);g.ua(d)})}; +var eTa={qka:0,Oka:1,yka:2,Pka:3,qha:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var uW=[],i5a=!1;g.RZ=bd(function(){var a="";try{var b=g.ie("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.z(vW,g.O);vW.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&JP(this.j)&&O5a(this.app,this.j,void 0,void 0,this.B)}; +vW.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.wb!=null&&this.C!=null&&this.D!=null&&JP(this.j)){var a=oTa(this.wb,this.C,this.D);a==null?O5a(this.app,this.j,void 0,void 0,this.B):(this.wb.oa("sgap",a),this.wb.getVideoData().Y&&E_(this.wb,!1))}}; +vW.prototype.N=function(a){var b=this.app.Vc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}}; +vW.prototype.ya=function(){this.j=null;g.O.prototype.ya.call(this)};g.z(g.wW,gF);g.k=g.wW.prototype;g.k.isView=function(){return!0}; +g.k.tT=function(){var a=this.mediaElement.getCurrentTime();if(a=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Gd(new fE("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.yn,msg:a})));E_(this.j,c)}this.Uq.reject(a);this.dispose()}}; +g.k.xu=function(){return this.status.status>=4&&this.status.status<6}; +g.k.ya=function(){ATa(this);this.j.unsubscribe("newelementrequired",this.D0,this);if(this.C){var a=this.C.B;this.C.j.Hd.unsubscribe("updateend",this.Bz,this);a.Hd.unsubscribe("updateend",this.Bz,this)}g.O.prototype.ya.call(this)}; +g.k.qW=function(a){g.jy(a,128)&&this.Sg("player-error-event")};g.z(ETa,g.O);g.k=ETa.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&E_(this.B,!1);AW(this,a)}; +g.k.Go=function(){return!this.j}; +g.k.XF=function(a){return this.j===a}; +g.k.xu=function(){var a;return((a=this.C)==null?void 0:a.xu())||!1}; +g.k.ya=function(){AW(this);g.O.prototype.ya.call(this)};g.z(NTa,g.ax);g.k=NTa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:JTa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0}; +g.k.qn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.If())}; +g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.If())}; +g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.If())}; +g.k.Ry=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.If())}; +g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.If())}; +g.k.AC=function(a){this.D!==a&&(this.D=a,this.If())}; +g.k.oi=function(){return this.j}; +g.k.isFullscreen=function(){return this.fullscreen!==0}; +g.k.rA=function(){return this.fullscreen}; +g.k.isMinimized=function(){return this.B}; +g.k.isInline=function(){return this.inline}; +g.k.isBackground=function(){return JTa()}; +g.k.Ej=function(){return this.pictureInPicture}; +g.k.SA=function(){return!1}; +g.k.ZA=function(){return this.C}; +g.k.Ek=function(){return this.D}; +g.k.If=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.oi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Ej(),this.SA(),this.ZA(),this.Ek());a!==this.K&&this.publish("visibilitystatechange");this.K=a}; +g.k.ya=function(){MTa(this.G);g.ax.prototype.ya.call(this)};g.z(FW,g.O);FW.prototype.Vk=function(){if(!this.tf.length)return[];var a=this.tf;this.tf=[];this.C=g.Kb(a).info;return a}; +FW.prototype.ZG=function(){return this.tf}; +FW.prototype.ya=function(){g.O.prototype.ya.call(this);this.j=null;this.tf.length=0;this.gb.length=0;this.C=null};g.z(HW,g.O);g.k=HW.prototype;g.k.Ir=function(){return Array.from(this.fd.keys())}; +g.k.Qs=function(a){a=this.fd.get(a);var b=a.tf;a.Nz+=b.totalLength;a.tf=new IJ;return b}; +g.k.Ng=function(a){return this.fd.get(a).Ng}; +g.k.Fx=function(a){return this.fd.get(a).Fx}; +g.k.JB=function(a,b,c,d){this.fd.get(a)||UTa(this,a,b);b=this.fd.get(a);if(this.manifest){a=WTa(this,a,c);if(d)for(var e=g.w(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.K=h;f.startTime+=h;f.Ue+=h;f.Mf+=h}VTa(this,c.fq,b,a)}else c.Fo?b.MZ=c.Ks:b.sG.push(c),b.ET.push(c)}; +g.k.jo=function(a){var b;return((b=this.fd.get(a))==null?void 0:b.gb)||[]}; +g.k.AB=function(){for(var a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.dT&&(b.Bg&&b.Bg(),b.dT=!1)}; +g.k.yq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); +var c=this.fd.get(b);if(IW){if(c&&!c.Ng){if(c.Hj.get(a))c.Hj.get(a).Ix=!0;else{var d;((d=this.Fe)==null?0:d.Rc)&&c.Hj.set(a,{data:new IJ,hJ:0,Ix:!0})}c.Fx=!0}}else c&&!c.Fx&&(c.Fx=!0)}; +g.k.Vk=function(a){if(IW){var b=this.fd.get(a);if(b)for(var c=g.w(b.Hj),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;var f=b.UH.get(d);if(CM(f[0])){if(!e.Ix)continue;var h=e.data,l=0,m=[];f=g.w(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=KJ(h,l,p);l+=p;m.push(new VM(n,q))}b.Wx.push.apply(b.Wx,g.x(m))}else if(e.data.totalLength>0||!f[0].range&&e.Ix)h=void 0,l=f[0],m=e.hJ,f=e.data,l.range||(h=e.Ix),h=new VM(VGa(l,l.Ub+m,f.totalLength,h),f), +e.hJ+=h.info.B,b.Wx.push(h);b.Hj.get(d).data=new IJ;e.Ix&&b.Hj.delete(d)}a=this.fd.get(a);if(!a)return[];b=a.Wx;a.Wx=[];c=g.w(b);for(d=c.next();!d.done;d=c.next())a.Nz+=d.value.info.B;return b||[]}c=(b=this.fd.get(a))==null?void 0:b.dg;if(!c)return[];this.Rm(a,c);return c.Vk()}; +g.k.Tl=function(a){if(IW)return KW(this,a);var b,c,d;return!!((c=(b=this.fd.get(a))==null?void 0:b.dg)==null?0:(d=c.ZG())==null?0:d.length)||KW(this,a)}; +g.k.Rm=function(a,b){for(;KW(this,a);){var c=this.Qs(a);var d=a;d=this.fd.get(d).Ng&&!STa(this,d);GW(b,c,d&&TTa(this,a))}}; +g.k.ya=function(){g.O.prototype.ya.call(this);for(var a=g.w(this.fd.keys()),b=a.next();!b.done;b=a.next())PTa(this,b.value);var c;if((c=this.Fe)==null?0:c.gf)for(a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Hj.clear(),b.UH.clear(),b.Wx.length=0,b.gb.length=0,b.ET.length=0,b.sG.length=0;this.fd.clear()}; +var IW=!1;g.z(NW,g.O);g.k=NW.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0}; +g.k.Ye=function(){return this.pc||0}; +g.k.Zh=function(){return this.C||0}; +g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()}; +g.k.ya=function(){this.removeAll();g.O.prototype.ya.call(this)}; +g.z(jUa,g.O);g.k=jUa.prototype;g.k.Ye=function(){return this.pc}; +g.k.Zh=function(){return this.C}; +g.k.getType=function(){return this.type}; +g.k.getVideoData=function(){return this.videoData}; +g.k.GM=function(a){mQ(a);this.videoData=a}; +g.k.ya=function(){kUa(this);g.O.prototype.ya.call(this)};g.z(g.SW,g.O);g.k=g.SW.prototype;g.k.zJ=function(a,b,c){return new g.PC(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; +g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId();this.ea.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=b==="";this.fb.add(a.B);var d=this.C.get(b);if(c){var e;if(this.ea.getVideoData().Ih()&&((e=this.j)==null?0:e.bX)&&this.N){var f;a=((f=this.j)==null?void 0:f.Vg)||this.ea.getCurrentTime();var h,l;WW(this.ea,(h=this.j)==null?void 0:h.bX,this.nF(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)== +null?void 0:l.Eea,(0,g.rt)());this.Al=0;this.j=void 0;this.ob&&(this.events.Nc(this.ob),this.ob=null);this.N="";this.Ra=!0;return}}else if(this.ea.oa("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Ih()&&(d==null?0:d.XA))return;if(this.Ra&&!this.j)this.Ra=!1,!c&&d&&(c=this.ea.getCurrentTime(),XW(this,{Zd:a,isAd:!0,iq:!0,Vg:c,adCpn:b},{isAd:!1,iq:!1,Vg:c}),this.Pb=d.cpn,this.api.publish("serverstitchedvideochange",d.rd,d.yr),a=VW(this,"midab",d),this.ea.oa("sdai",a),this.Al=1),this.qa=!1;else if(this.j){if(this.j.iq)this.ea.oa("sdai", +{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={Zd:a,isAd:!c,iq:!0,Vg:d,adCpn:b},b={Zd:this.j.Zd,isAd:this.j.isAd,iq:!1,Vg:d,adCpn:this.j.adCpn},this.j.Zd&&this.fb.delete(this.j.Zd.B),XW(this,a,b);else{if(this.j.Zd===a){this.ea.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end}); +this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}a={Zd:a,isAd:!c,iq:!0,Vg:this.ea.getCurrentTime(),adCpn:b};XW(this,a,this.j)}this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,iq:!0,Vg:this.ea.getCurrentTime(),adCpn:b}}; +g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});var c=b==="",d=this.C.get(b);if(this.ea.getVideoData().Ih()&&!c&&d){if(d.XA)return;d.XA=!0;this.K.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.MO()){var e=d.pc;this.ea.mT(e/1E3,(e+d.durationMs)/1E3)}else this.ea.oa("lifa",{remove:0})}if(this.fb.has(a.B))if(this.fb.delete(a.B),this.La=this.La.filter(function(f){return f!== +a}),this.Ra&&(this.qa=this.Ra=!1,this.ea.oa("sdai",{cref:1})),this.j){if(this.j.iq){if(this.j.Zd===a){this.ea.oa("sdai",{same_cue_range_pair_exit:1, +acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}b={Zd:a,isAd:!c,iq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};XW(this,this.j,b)}else this.ea.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Vg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()}); +this.j=void 0;this.qa=!1}else this.j={Zd:a,isAd:!c,iq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};else this.ea.oa("sdai",{ignore_single_exit:1})}; +g.k.nF=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,pc:0,playerType:1,Xd:0,videoData:this.ea.getVideoData(),errorCount:0}}; +g.k.Ll=function(){if(this.Rn)return!1;var a=void 0;this.Pb&&(a=this.C.get(this.Pb));return this.ea.getVideoData().Ih()?!!a&&!a.XA:!!a}; +g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().Ih()&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,IZ(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)mUa(this,a,b);else{c=this.api.Vc();var e=c===this.Xa?this.Jb:null;YW(this,!1);this.Tb=a;this.Ob=b;d!=null&&this.Kb.start(d);c&&(this.Jb=e||c.getPlayerState(),R4a(c),this.Xa=c)}}; +g.k.ya=function(){YW(this,!1);yUa(this);zUa(this);g.O.prototype.ya.call(this)}; +g.k.ST=function(a){this.Rc=a;this.ea.oa("sdai",{swebm:a})}; +g.k.Jl=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=$W(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.uL(c),this.Va&&this.ea.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:wL(c)}),e.locations.set(d,c))}}; +g.k.sK=function(a,b,c,d,e,f){var h=d===3;e=BUa(this,a,b,d,c,f);if(!e)return bX(this,b,h),e=g.AUa(this,b)?"undec":"ncp",this.ea.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.Bm;var l;d=((l=aX(this,b-1,d))==null?void 0:l.Ot)||"";d===""&&this.ea.oa("sdai",{eds:1});l=dO(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.QD[f];b=e.Ss&&b>=e.Ss?e.Ss:void 0;return{jn:{UI:a?FUa(this,a):[],fX:l,Ot:d,kU:b,Z3:Wd(m.split(";")[0]), +a4:m.split(";")[1]||""}}}; +g.k.rQ=function(a){a:{if(!this.Rn){var b=$W(this,a);if(!(this.ea.getVideoData().Ih()&&(b==null?0:b.XA)))break a}b=void 0}var c=b;if(!c)return this.ea.oa("sdai",{gvprp:"ncp",mt:a}),null;b=c.Bm;var d=dO(c.ssdaiAdsConfig||"")||void 0;a=c.Ss&&c.jU&&a>=c.jU?c.Ss:void 0;c=this.ea.getVideoData();var e,f=((e=c.B)==null?void 0:e.containerType)||0;e=c.QD[f];return{UI:b?FUa(this,b):[],fX:d,kU:a,Z3:Wd(e.split(";")[0]),a4:e.split(";")[1]||""}}; +g.k.oA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=BUa(this,a,b,d,c,f);this.Va&&this.ea.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return bX(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),bX(this,b,e),null;l=f.find(function(u){return u.itag===h}); +if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.w(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});bX(this,b,e);return null}a.locations.set(h,new g.uL(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.oa("sdai",{gdu:"nourl",seg:b,itag:h}),bX(this,b,e),null;l=new nM(l);this.Rc&&(l.get("dvc")?this.ea.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=aX(this,b-1,d))==null?void 0:q.Ot)&& +l.set("daistate",m);a.Ss&&b>=a.Ss&&l.set("skipsq",""+a.Ss);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Bm&&(q=FUa(this,a.Bm),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.Bm){var t;this.ea.oa("sdai",{acpns_aids_nm:1,ids:HUa(this,a.Bm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.oa("sdai", +{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Be();(d==null?void 0:d.length)>2048&&this.ea.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.Bm,JUa(this,r,p),p&&!this.Od.has(p)&&(r=GUa(this,r,p),t=IUa(this,p),this.ea.oa("sdai",{iofa:r}),this.ea.oa("sdai",{noawnzd:t-r}),this.ea.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.Od.add(p))),this.ea.oa("sdai",{gdu:"v",seg:b,itag:c,ast:a.pc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})); +return d}; +g.k.DH=function(a,b,c){var d=ZW(this,a,c);return(d=d?(d.pc+d.durationMs)/1E3:0)&&b>d?(this.Av(a,c,!0),this.ea.seekTo(d),!0):!1}; +g.k.Av=function(a,b,c){c=c===void 0?!1:c;var d=ZW(this,a,b);if(d){var e=void 0,f=d.Bm;if(f){this.ea.oa("sdai",{skipadonsq:b,sts:c,abid:f,acpn:d.cpn,avid:d.videoData.videoId});c=this.Y.get(f);if(!c)return;c=g.w(c);for(f=c.next();!f.done;f=c.next())f=f.value,f.Ss=b,f.jU=a,f.pc>d.pc&&(e=f)}this.N=d.cpn;CUa(this);a=this.ea.getCurrentTime();tUa(this,d,e,a,a,!1,!0)}}; +g.k.wT=function(){for(var a=g.w(this.G),b=a.next();!b.done;b=a.next())b=b.value,b.Ss=NaN,b.jU=NaN;CUa(this);this.ea.oa("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""}; +g.k.kI=aa(49); +g.k.AS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.Ya.set(a,{Ot:m,Fz:l}):this.Ga.set(a,{Ot:m,Fz:l}));l=TP(this.ea.getVideoData())&&this.W.L("html5_consume_ssdai_info_with_streaming");if(h||l){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.oa("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.fu(),h=0;h0&&(this.Al=0,this.Pb="",this.api.publish("serverstitchedvideochange"));E1a(this.ea,c);return!0}; +g.k.vx=function(){this.ea.oa("sdai",{rstdaist:1});this.Ga.clear();this.Ya.clear();this.Ma.clear()}; +g.k.Xu=function(a){this.je.add(a);var b;((b=this.ra)==null?void 0:b.identifier)===a&&UW(this)}; +g.k.VP=function(){return this.Al}; +g.k.Gl=function(){return this.Pb}; +g.k.Uu=function(a){var b=yU(this.api.Bb());return b?b.Uu(a):!1}; +g.k.xP=function(a){return this.Rn?!1:!!$W(this,a)}; +g.k.iU=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.C.get(this.Pb),e=this.B.get(this.Pb);if(d){this.N=this.Pb;this.qa=!1;d.XA=!0;var f=this.ea.getCurrentTime();this.j={Zd:e,isAd:!0,iq:!1,Vg:f,adCpn:this.Pb,bX:d,Eea:a};if(e==null?0:e.start)this.Wa=f*1E3-e.start;this.K.clear();IZ(this.ea);this.Pb=this.nF().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.ob||(this.ob=this.events.T(this.api,"progresssync",function(){var h= +d.yr?d.yr*1E3:d.pc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.C.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.w(b.D),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.D=l;DUa(b,0,h+d.durationMs)})); +return!0}this.ea.oa("sdai",{skipFail:c});return!1}; +var rUa=0;g.z(MUa,g.O);g.k=MUa.prototype; +g.k.rO=function(a,b){b=b===void 0?"":b;if(this.TM===b)return!0;var c=this.timeline.j,d=c==null?void 0:c.getVideoData();if(!c||!d)return this.api.oa("ssap",{htsm:c?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||kUa(f);e.B.clear()}e=OW(c);var h=!1;f=[];var l=new Map;c=[];var m=[],n=0,p=0,q=0,r=[];a=g.w(a);for(var t=a.next();!t.done;t=a.next())a:{var u=void 0,y=void 0,A=t.value,D=A.clipId;if(D){if(A.gr){q=A.gr.A_||0;t=A.gr.B_||1;var F=Number(((A.gr.w1|| +0)/(A.gr.z1||1)*1E3).toFixed(0));q=t=F+Number((q/t*1E3).toFixed(0))}else t=F=q,this.TH.has(D)||this.Kk.add(D);var H=(y=l.get(D))!=null?y:0;y=!1;if(this.TM&&this.api.L("html5_ssap_clear_timeline_before_update")){var N=this.pk.get(D);N&&(N.start=F,N.end=t,y=!0)}else{if(N=this.TM){var M=D;N=F;var X=t,V=H,fa=QW(this.timeline,M);if(fa!=null&&fa.length){V=l){this.hI.set(a,c);dVa(this,a,b);this.ZM.set(a,(0,g.rt)());if(c=this.pk.get(b))for(c=c.getId().split(","),c=g.w(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Kk.has(h)&&(this.Kk.delete(h),this.TH.add(h));d&&IZ(this.ea);ZUa(this);b=f.Ye()/1E3;d=void 0;f=(d=g.ZB(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]}; +g.k.fQ=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Zh();a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Zh()>b&&(b=d.Zh())}return b/1E3}; +g.k.Xc=function(){var a=this.ea.getCurrentTime()*1E3;var b=cX(this,a);if(!b){var c=QW(this.timeline,this.Pb);if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ye()>a&&(b=d)}}return b&&b.getType()===1?b.Ye()/1E3:0}; +g.k.getVideoData=function(a){if(a===2&&!this.Ll()){if(this.YK&&this.Pn.has(this.YK))return this.Pn.get(this.YK);this.api.oa("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return UUa(this)}; +g.k.Ll=function(){var a=QW(this.timeline,this.Pb);return(a==null?0:a.length)?a[0].getType()===2:!1}; +g.k.UA=function(){var a=QW(this.timeline,this.Pb);return(a==null?0:a.length)?a[0].B:!1}; +g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=SUa(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)}; +g.k.zJ=function(a,b,c){return new g.PC(a,b,{id:c,namespace:"ssap",priority:9})}; +g.k.onCueRangeEnter=function(a){if(!this.cM.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Vf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&sX(this,c,!0);qX(this)}; +g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a}); +c&&(sX(this,c,b),g.Sb(this.data,function(d){return d.key===a}),qX(this))}; +g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.w(this.data),c=b.next();!c.done;c=b.next())sX(this,c.value,a);this.data=[];qX(this)}; +g.k.ya=function(){var a=this;g.O.prototype.ya.call(this);this.data.forEach(function(b){sX(a,b,!0)}); +this.data=[]};g.z(tX,g.O);tX.prototype.bK=function(a){if(a)return this.B.get(a)}; +tX.prototype.ya=function(){this.j.removeAll();this.B.removeAll();g.O.prototype.ya.call(this)};g.Zbb=bd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var o2;o2={};g.uX=(o2.STOP_EVENT_PROPAGATION="html5-stop-propagation",o2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",o2.IV_DRAWER_OPEN="ytp-iv-drawer-open",o2.MAIN_VIDEO="html5-main-video",o2.VIDEO_CONTAINER="html5-video-container",o2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",o2.HOUSE_BRAND="house-brand",o2);g.z(BVa,g.S);g.k=BVa.prototype;g.k.Dt=function(){g.Xo(this.element,g.Ca.apply(0,arguments))}; +g.k.Sj=function(){this.Bc&&(this.Bc.removeEventListener("focus",this.hS),g.pe(this.Bc),this.Bc=null)}; +g.k.sP=function(){this.Ka();var a=this.app.U();a.Fn||this.Dt("tag-pool-enabled");a.K&&this.Dt(g.uX.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Dt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.wc&&(this.fP=g.cv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; +g.k.DM=function(a){g.zO(this.app.U());this.FK=!a;vX(this)}; +g.k.resize=function(){if(this.Bc){var a=this.gi();if(!a.isEmpty()){var b=!g.Id(a,this.WB.getSize()),c=GVa(this);b&&(this.WB.width=a.width,this.WB.height=a.height);a=this.app.U();(c||b||a.wc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}}; +g.k.mu=function(a,b){this.updateVideoData(b)}; +g.k.updateVideoData=function(a){if(this.Bc){var b=this.app.U();Mt&&(this.Bc.setAttribute("x-webkit-airplay","allow"),a.title?this.Bc.setAttribute("title",a.title):this.Bc.removeAttribute("title"));this.Bc.setAttribute("controlslist","nodownload");b.ir&&a.videoId&&(this.Bc.poster=a.fh("default.jpg"))}b=g.qQ(a,"yt:bgcolor");this.Zz.style.backgroundColor=b?b:"";this.ER=Xr(g.qQ(a,"yt:stretch"));this.FR=Xr(g.qQ(a,"yt:crop"),!0);g.$o(this.element,"ytp-dni",a.Ff);this.resize()}; +g.k.setGlobalCrop=function(a){this.wQ=Xr(a,!0);this.resize()}; +g.k.setCenterCrop=function(a){this.CX=a;this.resize()}; +g.k.qn=function(){}; +g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.uO(a);if(b&&Fr()&&!c)return new g.Hd(window.outerWidth,window.outerHeight);c=!isNaN(this.dF.width)&&!isNaN(this.dF.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Hd(this.element.clientWidth,this.element.clientHeight);if(b||a.Ep){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.qG&&this.qG.media=== +a||(this.qG=window.matchMedia(a));var e=this.qG&&this.qG.matches}if(e)return new g.Hd(window.innerWidth,window.innerHeight)}else if(c)return this.dF.clone();return new g.Hd(this.element.clientWidth,this.element.clientHeight)}; +g.k.gi=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.ZB(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.aT&&b.width>c?new g.Hd(b.width*g.ZB(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; +g.k.getVideoAspectRatio=function(){return isNaN(this.ER)?DVa(this):this.ER}; +g.k.getVideoContentRect=function(a){var b=this.gi();a=EVa(this,b,this.getVideoAspectRatio(),a);return new g.Ul((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; +g.k.xC=function(a){this.aT=a;this.resize()}; +g.k.WF=function(){return this.fM}; +g.k.onMutedAutoplayChange=function(){vX(this)}; +g.k.setInternalSize=function(a){g.Id(this.dF,a)||(this.dF=a,this.resize())}; +g.k.ya=function(){this.fP&&g.dv(this.fP);this.Sj();g.S.prototype.ya.call(this)};g.k=HVa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.tw();c&&a.visualElement&&g.Yw(c,a.visualElement,b)}; +g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=nra(c);a.visualElement=c;var f=g.tw(),h=g.rw();f&&h&&(g.kr("combine_ve_grafts")?DK(BK(),c,h):g.Lq(g.Ow)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)}); +d&&this.B.add(a)}; +g.k.createServerVe=function(a,b,c){var d=this;c=c===void 0?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)}); +c&&this.B.add(a)}; +g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)}; +g.k.RX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,CK(BK(),a),IVa(this))}; +g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.pw(b))}; +g.k.hasVe=function(a){return this.elements.has(a)};JVa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; +JVa.prototype.getPlaybackRate=function(){return this.playbackRate};PVa.prototype.gQ=function(a){var b=EE(a.info.j.info,this.manifest.Vb),c=a.info.Pa+this.C,d=a.info.startTime*1E3;if(this.policy.Ya)try{d=this.policy.Ya?YM(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=OJ(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Sc(),encodedDataView:g.Qe(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ya){if(a.info.j.Um())var f=a.info.duration;else a.D===-1&&(a.D=ZM(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration* +1E3;this.policy.Ya&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Sc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,r8:f}}; +PVa.prototype.Qq=function(a){this.timestampOffset=a};AX.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Rb,f=cWa(this,this.videoTrack,a,this.videoTrack.Rb,b);b=cWa(this,this.audioTrack,this.policy.uh?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(ZVa(this,this.videoTrack,c),ZVa(this,this.audioTrack,d));return a}; +AX.prototype.isSeeking=function(){return this.G}; +AX.prototype.QT=function(a){this.C=a}; +var bWa=2/24;var gWa=0;g.k=KX.prototype;g.k.Yu=function(){this.G=this.now();kJa(this.Kc,this.G);this.Cb.Yu()}; +g.k.Ds=function(a,b){var c=this.policy.B?(0,g.rt)():0;LX(this,a,b);a-this.K<10&&this.ri()||this.hw(a,b);this.Cb.Ds(a,b);this.policy.B&&(a=(0,g.rt)()-c,this.Ab+=a,this.ob=Math.max(a,this.ob))}; +g.k.hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.Rp||(mO(this.Kc,c,d),this.qv(c,d));this.K=a;this.B=b}; +g.k.Ro=function(){this.Fa&&hWa(this);this.Cb.Ro()}; +g.k.Cs=function(a){this.Fa||(this.Fa=this.D-this.Ob+a,this.wc=this.D,this.yc=this.N)}; +g.k.ov=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(this.qa=a,this.ra=b,this.isActive=!0,this.policy.j&&(this.Y=!0))}; +g.k.ri=function(){return this.ra>0}; +g.k.S1=function(){}; +g.k.wr=function(){var a={rn:this.requestNumber,rt:(this.N-this.j).toFixed(),lb:this.D,stall:(1E3*this.C).toFixed(),ht:(this.G-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.ra,d:jWa(this)};this.url&&cTa(a,this.url);this.policy.B&&(a.mph=this.ob.toFixed(),a.tph=this.Ab.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Ra;return a}; +g.k.now=function(){return(0,g.rt)()}; +g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; +var JX;g.z(MX,KX);g.k=MX.prototype;g.k.wr=function(){var a=KX.prototype.wr.call(this);a.pb=this.jA;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a}; +g.k.Up=function(){var a=this.Cb;this.fb||(this.fb=a.Up?a.Up():1);return this.fb}; +g.k.RK=function(){return this.Rl?this.Up()!==1:!1}; +g.k.SR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Rp){LX(this,a,b);this.hw(a,b);var d=this.Up();this.Tb=c;d===2?this.Rp||(this.Ga?hO(this.Kc,this.Ga/1E3,this.Va,.25):hO(this.Kc,b/(c||this.Ra),b,.01),kO(this.Kc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.yb||this.policy.K||!this.ri()||mWa(this,c,b),this.ri()&&kO(this.Kc,b,this.C));a=(a-this.j)/1E3||.01;this.policy.G&&!this.ri()||jO(this.Kc,a,this.B,this.Wa,this.Np)}this.deactivate()}}; +g.k.hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B,e=this.Up();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&mWa(this,.05,d),this.yb=!0):d>0&&(mWa(this,c,d),this.yb=!0)):nWa(this,b)&&(this.policy.j?this.ov(a,b):(e===1&&(c=(this.G-this.j)/1E3,d=(a-this.G)/1E3,sWa(this)||this.Rp||iO(this.Kc,c,d)),this.qa=a,this.ra=b,this.isActive=!0));KX.prototype.hw.call(this,a,b)}; +g.k.vL=function(a){if(!this.Rp){LX(this,a,this.D);var b=(a-this.j)/1E3;this.Up()!==2&&this.ri()&&(this.C+=(a-this.K)/1E3,kO(this.Kc,this.B,this.C));jO(this.Kc,b,this.B,this.Wa,this.Np,!0);a=(a-this.K)/1E3;mO(this.Kc,a,0);this.qv(a,0)}}; +g.k.ov=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(KX.prototype.ov.call(this,a,b),this.Up()===1&&(b=(this.G-this.j)/1E3,a=(a-this.G)/1E3,sWa(this)||this.Rp||iO(this.Kc,b,a)))}; +g.k.UY=function(){this.Rl&&rWa(this,this.now());return this.La}; +g.k.Kx=function(){return this.B>this.LS&&nWa(this,this.B)}; +g.k.mK=function(){return this.Xa}; +g.k.pT=function(a){a=a===void 0?this.now():a;if(this.Rl){rWa(this,a);if(this.fb?this.RK():this.Aa!==this.Ma){var b=this.Ma;if(a=1}; +g.k.isComplete=function(){return this.state>=3}; +g.k.Ml=function(){return this.state===5}; +g.k.onStateChange=function(){}; +g.k.xd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; +g.k.AB=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; +g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; +g.k.mF=function(){return+this.getResponseHeader("content-length")}; +g.k.Nm=function(){return this.B}; +g.k.ev=function(){return this.status>=200&&this.status<300&&!!this.B}; +g.k.Xr=function(){return this.j.totalLength>0}; +g.k.Uy=function(){var a=this.j;this.j=new IJ;return a}; +g.k.ZL=function(){return this.j}; +g.k.abort=function(){this.Ka=!0;this.xhr.abort()}; +g.k.JC=function(){return!0}; +g.k.mM=function(){return this.C}; +g.k.Wf=function(){return""};g.k=xWa.prototype; +g.k.Js=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=Sd(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new wWa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(A.j!=5)return n<=m?g.G(A,EKa(b,c,d,n,f),5):A.Ia(0);p=A.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e; +r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);y=new Uint8Array(p.buffer,t,u);a.B.append(y);a.loaded+=u;a.loaded=200&&this.status<300&&!!this.B}; +g.k.Xr=function(){return!!this.j.totalLength}; +g.k.Uy=function(){var a=this.j;this.j=new IJ;return a}; +g.k.ZL=function(){return this.j}; +g.k.Ka=function(){return this.G}; +g.k.abort=function(){this.C&&this.C.cancel().catch(function(){}); +this.D&&this.D.abort();this.G=!0}; +g.k.JC=function(){return!0}; +g.k.mM=function(){return this.K}; +g.k.Wf=function(){return this.errorMessage};g.k=AWa.prototype;g.k.onDone=function(){if(!this.Ka){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Cb.Ro()}}; +g.k.GB=function(){this.xhr.readyState===2&&this.Cb.Yu()}; +g.k.Bg=function(a){this.Ka||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Cb.Ds((0,g.rt)(),a.loaded))}; +g.k.ou=function(){return this.xhr.readyState>=2}; +g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.Cw(Error("Could not read XHR header "+a)),""}}; +g.k.mF=function(){return+this.getResponseHeader("content-length")}; +g.k.Nm=function(){return this.B}; +g.k.ev=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B}; +g.k.Xr=function(){return this.j&&!!this.response&&!!this.response.byteLength}; +g.k.Uy=function(){var a=this.response;this.response=void 0;return new IJ([new Uint8Array(a)])}; +g.k.ZL=function(){return new IJ([new Uint8Array(this.response)])}; +g.k.abort=function(){this.Ka=!0;this.xhr.abort()}; +g.k.JC=function(){return!1}; +g.k.mM=function(){return!1}; +g.k.Wf=function(){return""};g.z(RX,g.O);g.k=RX.prototype;g.k.Mda=function(){if(!this.Ka()){var a=(0,g.rt)(),b=!1;if(this.timing.ri()){if(this.G){this.policy.wc&&(this.j=0);return}var c=this.timing.mK();this.timing.pT();var d=this.timing.mK();d-c>=this.policy.bl*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.UY(); +e>0&&(this.j+=1);a=cEa(SX(this),!1)*this.policy.hE;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Cb.CQ(); +b?this.Jv(!1):this.B.start()}}; +g.k.Jv=function(a){this.D=!0;a&&(a=SX(this),a.C+=1);this.Cb.Ez();this.lastError="net.timeout";TX(this)}; +g.k.canRetry=function(a){var b=SX(this);a=a?this.policy.yw:this.policy.Gj;return b.timedOut0&&(b=PJ(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.zg&&(a.rc=this.policy.hm?this.zg:this.zg.toString());this.policy.Sd&&this.r3&&(a.tr=this.r3);a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.hg();a.sq=""+this.info.gb[0].Pa;this.ge&&(a.ifi=""+ +yL(this.info.resource.C));this.zg!==410&&this.zg!==500&&this.zg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null? +void 0:d.Wf()))&&(a.msg=c);this.YH&&(a.smb="1");this.info.hq()&&(a.sdai="1");return a}; +g.k.BY=function(){return oWa(this.timing)}; +g.k.Wf=function(){return this.xhr.Wf()||""}; +g.k.Kx=function(){return this.isComplete()||this.timing.Kx()}; +g.k.Ds=function(){!this.Ka()&&this.xhr&&(this.zg=this.xhr.status,this.policy.Bq&&this.dg&&this.Rm(!1),this.Tl()?this.AB(2):!this.wZ&&this.Kx()&&(this.AB(),this.wZ=!0))}; +g.k.Yu=function(){if(!this.Ka()&&this.xhr){if(!this.Vz&&this.xhr.ou()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Vz=((0,g.rt)()-a)/1E3}this.xhr.ou()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.RD&&!ZBa()&&g.xs("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Qu)==null||c.stop();this.eq=a||this.eq; +this.Ur=b||this.Ur}}; +g.k.Ro=function(){var a=this.xhr;if(!this.Ka()&&a){this.zg=a.status;a=this.GQ(a);if(this.policy.Sd){var b;(b=this.Qu)==null||b.stop()}a===5?TX(this.yd):this.xd(a);this.yd.B.stop()}}; +g.k.GQ=function(a){var b=this;dXa(this);if(UX(this.yd,this.xhr.status,this.Tp?this.timing.Y||this.dN:this.xhr.ev(),!1,this.Bu))return 5;var c="";if($Wa(this)){var d=a.ZL();d.totalLength<=this.policy.rq&&(c=aXa(this,NJ(d)))}if(c)return pM(SX(this.yd)),this.info.Jl(this.ge,c),3;c=a.Nm();if(this.Yl){this.Rm(!0);dXa(this);if(UX(this.yd,this.xhr.status,this.timing.Y||this.dN,!1,this.Bu))return 5;if(!this.G3){if(this.dN)return pM(SX(this.yd)),3;this.yd.lastError="net.closed";return 5}}else{if(UX(this.yd, +this.xhr.status,this.xhr.ev(),!1,this.Bu))return 5;if((d=this.info.C)&&d!==c||a.mM())return this.yd.lastError="net.closed",5;this.Rm(!0)}d=uWa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=uWa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.z2=!0,this.policy.aD&&(d=a);CWa(this.yd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Wa*1E3+e.j-Date.now()).toFixed(0)}); +return 4}; +g.k.canRetry=function(){this.Ka();var a=this.info.hq();return this.yd.canRetry(a)}; +g.k.onStateChange=function(){this.isComplete()&&(this.policy.Bp?this.Ez():this.timing.deactivate())}; +g.k.Jv=function(a){this.yd.Jv(a)}; +g.k.CQ=function(){this.callback&&this.callback(this,this.state)}; +g.k.Nr=function(){return this.yd.Nr()}; +g.k.dispose=function(){OX.prototype.dispose.call(this);this.yd.dispose();var a;(a=this.Qu)==null||a.dispose();this.policy.Bp||this.Ez()}; +g.k.Ez=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.k.Vk=function(){if(!this.ZG().length)return[];this.IQ=!0;return this.dg.Vk()}; +g.k.Tl=function(){if(this.state<1)return!1;if(this.dg&&this.dg.tf.length)return!0;var a;return((a=this.xhr)==null?0:a.Xr())?!0:!1}; +g.k.ZG=function(){this.Rm(!1);return this.dg?this.dg.ZG():[]}; +g.k.Rm=function(a){try{if(a||this.xhr.ou()&&this.xhr.Xr()&&!$Wa(this)&&!this.PB)this.dg||(this.dg=new FW(this.policy,this.info.gb)),this.xhr.Xr()&&(this.Yl?this.Yl.feed(this.xhr.Uy()):GW(this.dg,this.xhr.Uy(),a&&!this.xhr.Xr()))}catch(b){this.Yl?ZWa(this,b):g.Cw(b)}}; +g.k.KB=function(a,b){switch(a){case 21:a=b.split(1).xn;bXa(this,a);break;case 22:this.G3=!0;GW(this.dg,new IJ([]),!0);break;case 43:if(a=dK(new YJ(b),1))this.info.Jl(this.ge,a),this.dN=!0;break;case 45:b=ZK(new YJ(b));a=b.BT;b=b.CT;a&&b&&(this.iJ=a/b);break;case 44:this.pC=UCa(new YJ(b));var c,d,e;!this.timing.Y&&((c=this.pC)==null?void 0:c.action)===4&&((d=this.pC)==null?0:(e=d.n2)==null?0:e.Tp)&&(this.Tp=this.pC.n2.Tp);break;case 53:this.policy.Sd&&(a=RCa(new YJ(b)).uq)&&(this.Qu||(this.uq=a,this.Qu= +new g.Oo(this.P_,a,this)),this.Qu.start());break;case 60:this.gB=YK(new YJ(b));break;case 64:this.policy.iD&&(a=ECa(new YJ(b)),this.policy.Wu(a));break;case 58:this.policy.bx&&(a=uCa(new YJ(b)))&&(this.qj=a,this.policy.zo&&a.qj===3&&(this.Bu=!0))}}; +g.k.Cs=function(a,b,c,d){c||this.timing.Cs(d);if(a!==21)return!1;if(a=this.policy.Bq)if(a*=this.info.gb[0].j.info.tb,b.totalLength+c!==d&&b.totalLength0)return!1;if(!this.xhr.ou())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Yl)var a=!this.info.C;else this.xhr.mF()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.gh))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)> +this.info.gb[0].Pa)return!1;return!0}; +g.k.qQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.k.dK=function(){this.xhr&&(this.eq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.eq}; +g.k.IY=function(){this.xhr&&(this.Ur=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ur}; +g.k.Eh=function(){return this.yd.Eh()}; +g.k.P_=function(){if(!this.Ka()&&this.xhr){this.r3="heartbeat";var a=this.yd;a.j+=2;this.CQ()}};$X.prototype.KB=function(a,b){switch(a){case 20:a=new YJ(b);a={fq:aK(a,1),videoId:dK(a,2),itag:aK(a,3),lmt:aK(a,4),xtags:dK(a,5),qC:aK(a,6),Fo:bK(a,8),Nq:aK(a,9),gna:aK(a,10),startMs:aK(a,11),durationMs:aK(a,12),Ks:aK(a,14),timeRange:eK(a,15,gCa),Tj:aK(a,16),wL:aK(a,17),clipId:dK(a,1E3)};this.rS(a);break;case 21:this.pS(b,!1);break;case 22:this.yq(b);break;case 31:a=hK(b,JCa);this.FB(a);break;case 52:a=hK(b,SCa);this.HB(a);break;default:this.fS(a,b)}}; +$X.prototype.rS=function(){}; +$X.prototype.fS=function(){};g.z(aY,KX);g.k=aY.prototype;g.k.hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.ri()?d>0&&(this.Aa&&(c>.2||d<1024?(this.C+=c,c>.2&&hO(this.Kc,.05,d,.05)):hO(this.Kc,c,d,c)),this.Ma&&(this.La+=d,this.Wa+=c)):this.policy.j?b>2048&&this.ov(a,b):(iO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3),this.qa=a,this.ra=b);KX.prototype.hw.call(this,a,b)}; +g.k.SR=function(a,b){LX(this,a,b);this.hw(a,b);this.Aa&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.ri()&&kO(this.Kc,this.La,this.C),a=(a-this.j)/1E3||.01,this.policy.G&&!this.ri()||jO(this.Kc,a,this.B,b,!1))}; +g.k.vL=function(a){LX(this,a,this.D);var b=(a-this.K)/1E3;mO(this.Kc,b,0);this.qv(b,0);if(this.Aa||!this.ri())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.ri()&&(this.C+=(a-this.K)/1E3,kO(this.Kc,this.La,this.C)),jO(this.Kc,(a-this.j)/1E3||.01,this.B,b,!1,!0)}; +g.k.TG=function(a){a=a.EO||2147483647;(a&2)!==2&&(this.Ma=!1);(a&1)===1&&(this.Aa=!0)}; +g.k.JG=function(a){a=a.EO||2147483647;(a&2)===2&&(this.Ma=!1);(a&1)===1&&(this.Aa=!1)}; +g.k.VY=function(){return this.qa}; +g.k.ZJ=function(){var a=this.Ma?this.now()-this.K:0;return Math.max(this.Wa*1E3+a,1)}; +g.k.lQ=function(){return this.La*1E3/this.ZJ()}; +g.k.ri=function(){return this.policy.j?KX.prototype.ri.call(this):this.B>2048}; +g.k.ov=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(KX.prototype.ov.call(this,a,b),iO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3))}; +g.k.S1=function(a){this.Xa=a}; +g.k.wr=function(){var a=KX.prototype.wr.call(this);a.rbw=this.lQ();a.rbe=+this.Ma;a.gbe=+this.Aa;a.ackt=(this.Xa-this.j).toFixed();return a}; +g.k.pT=function(){}; +g.k.mK=function(){return NaN}; +g.k.UY=function(){return this.j+this.snapshot.delay*1E3};g.z(fXa,$X);g.k=fXa.prototype; +g.k.fS=function(a,b){switch(a){case 35:this.zq(b);break;case 44:this.PG(b);break;case 43:this.zS(b);break;case 53:this.xS(b);break;case 55:a=new YJ(b);(a={timeline:eK(a,1,WCa),Xda:eK(a,2,ZCa)},a.timeline)&&a.timeline.q3&&this.Cb.ES(a.timeline.q3,a.timeline.Cea,a.Xda);break;case 56:this.MG();break;case 57:this.OG(b);break;case 42:this.iS(b);break;case 45:this.Aq(b);break;case 59:this.NG(b);break;case 51:this.SG(b);break;case 49:this.TG(b);break;case 50:this.JG(b);break;case 47:this.QG(b);break;case 58:this.Ym(b); +break;case 61:this.Cb.Nd.S1((0,g.rt)());break;case 66:this.KG(b)}}; +g.k.SG=function(a){a=new YJ(a);a={Bpa:gK(a,1,WK),Apa:gK(a,2,WK)};this.Cb.SG(a)}; +g.k.NG=function(a){var b=new YJ(a);a=fK(b,1);var c=fK(b,2);b=fK(b,3);this.Cb.NG(a,c,b)}; +g.k.Aq=function(a){a=ZK(new YJ(a));this.Cb.Aq(a)}; +g.k.QG=function(a){a=hK(a,MCa);this.Cb.QG(a)}; +g.k.iS=function(a){a=new YJ(a);a={videoId:dK(a,1),formatId:eK(a,2,WK),endTimeMs:aK(a,3),kna:aK(a,4),mimeType:dK(a,5),NZ:eK(a,6,CCa),indexRange:eK(a,7,CCa),MP:eK(a,8,tCa)};this.Cb.iS(a)}; +g.k.OG=function(a){a=ZCa(new YJ(a));this.Cb.OG(a)}; +g.k.MG=function(){this.Cb.MG()}; +g.k.zq=function(a){a=KCa(new YJ(a));this.Cb.zq(a)}; +g.k.xS=function(a){a=RCa(new YJ(a));this.Cb.xS(a)}; +g.k.PG=function(a){a=UCa(new YJ(a));this.Cb.PG(a)}; +g.k.zS=function(a){a={redirectUrl:dK(new YJ(a),1)};this.Cb.zS(a)}; +g.k.pS=function(a){var b=PJ(a,0);if(a.totalLength!==1){a=a.split(1).xn;var c=this.B[b]||null;c&&YTa(this.Cb.Zf,b,c,a)}}; +g.k.yq=function(a){a=PJ(a,0);var b=this.B[a]||null;b&&this.Cb.yq(a,b)}; +g.k.HB=function(a){this.Cb.HB(a)}; +g.k.rS=function(a){var b=a.fq,c=a.Fo,d=a.qC,e=a.wL,f=a.Tj,h=a.Nq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Ks,q=a.clipId,r=eXa(a);a=kbb.has(vE[""+a.itag]);this.B[b]=r;this.Cb.JB(r,a,{fq:b,Fo:!!c,qC:d!=null?d:-1,Nq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Ks:p,wL:e,Tj:f,clipId:q,timeRange:n})}; +g.k.TG=function(a){a={EO:aK(new YJ(a),1)};this.Cb.TG(a)}; +g.k.JG=function(a){a={EO:aK(new YJ(a),1)};this.Cb.JG(a)}; +g.k.FB=function(a){this.Cb.FB(a)}; +g.k.Ym=function(a){a=uCa(new YJ(a));this.Cb.Ym(a)}; +g.k.KG=function(a){a={UZ:eK(new YJ(a),1,PCa)};this.Cb.KG(a)};g.z(bY,g.O);g.k=bY.prototype;g.k.Ds=function(){!this.Ka()&&this.xhr&&(this.Rm(),qZ(this.Cb,this))}; +g.k.Yu=function(){}; +g.k.Ro=function(){if(!this.Ka()&&this.xhr){var a=this.GQ();a===5?TX(this.yd):this.xd(a);this.yd.B.stop();var b;(b=this.vH)==null||b.stop()}}; +g.k.GQ=function(){if(!this.policy.ow&&UX(this.yd,this.xhr.status,this.xhr.ev(),this.info.Zr(),this.Bu))return 5;this.Rm();if(this.policy.ow&&UX(this.yd,this.xhr.status,this.xhr.ev(),this.info.Zr(),this.Bu))return 5;if(this.o2)return 3;CWa(this.yd,this.xhr.Nm(),0);this.policy.yc&&P_a(this.Cb);return 4}; +g.k.Rm=function(){var a=this.xhr;if(a.Xr()){a=a.Uy();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); +this.Yl.feed(a)}}; +g.k.KB=function(a,b){this.Nd.policy.j&&a===21&&this.Nd.ov();this.Zda.KB(a,b)}; +g.k.Cs=function(a,b,c,d){this.Nd.policy.j&&a===21&&(this.Nd.Y=!0);c||this.Nd.Cs(d);return!1}; +g.k.zq=function(a){this.Cb.zq(a)}; +g.k.xS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.vH)==null||b.dispose();this.qT=a;a.A1&&(this.vH=new g.Oo(this.O_,a.A1,this));this.O_()}}; +g.k.O_=function(){var a;if((a=this.qT)!=null&&a.items){var b;(b=this.vH)==null||b.start();if(this.Nd.ri()){a=this.Nd.ZJ();b=this.Nd.lQ();var c=hXa(this,a);if(!(b>c.mL||c.HR>0&&this.info.YP()>c.HR)){this.rT=(0,g.rt)();var d;(d=this.vH)==null||d.stop();this.policy.yc&&(d=this.Cb,a={Nw:Math.round(b*a/1E3),bz:a},d.policy.yc&&(d.Aa=a,d.Jq++));this.Jv(!1)}}}}; +g.k.Jv=function(a){this.yd.Jv(a)}; +g.k.PG=function(a){this.Cb.PG(a)}; +g.k.zS=function(a){this.o2=!0;this.info.resource.Jl(this.ge,a.redirectUrl)}; +g.k.TG=function(a){this.Nd instanceof aY&&this.Nd.TG(a)}; +g.k.JG=function(a){this.Nd instanceof aY&&this.Nd.JG(a)}; +g.k.ES=function(a,b,c){this.Cb.ES(a,b,c,this.Xp())}; +g.k.iS=function(a){if(cU(this.policy)){var b=a.formatId,c=eXa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new xM(((d=a.NZ)==null?void 0:d.first)||0,((e=a.NZ)==null?void 0:e.i_)||0),h,l;d=new xM(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.i_)||0);this.manifest.K.get(c)||(c=a.MP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=oN(""),c=mN(c,null),gN(a,new dN(b,c,f,d)))}}; +g.k.Aq=function(a){this.Cb.Aq(a)}; +g.k.FB=function(a){this.Cb.FB(a)}; +g.k.NG=function(a,b,c){this.Cb.NG(a,b,c)}; +g.k.OG=function(a){a.scope===2&&(this.Yda=a);this.Cb.OG(a)}; +g.k.MG=function(){this.iX=!0;this.Cb.MG()}; +g.k.SG=function(a){this.policy.zp&&this.Cb.SG(a)}; +g.k.QG=function(a){this.Cb.QG(a,this.Xp())}; +g.k.Ym=function(a){this.policy.zo&&a.qj===3&&(this.Bu=!0);this.Cb.Ym(a)}; +g.k.KG=function(a){this.Cb.KG(a)}; +g.k.canRetry=function(){this.Ka();return this.yd.canRetry(!1)}; +g.k.dispose=function(){if(!this.Ka()){g.O.prototype.dispose.call(this);this.yd.dispose();var a;(a=this.vH)==null||a.dispose();this.xd(-1);this.Ez()}}; +g.k.xd=function(a){this.state=a;qZ(this.Cb,this)}; +g.k.Zr=function(){return this.info.Zr()}; +g.k.LO=function(){return this.iX}; +g.k.oQ=function(){return this.Yda}; +g.k.JB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.nj=c.Nq,this.xv=c.startMs);var d=0;this.policy.Rf&&this.Q_&&this.clipId&&(d=dX(this.Q_,this.clipId)/1E3);this.Zf.JB(a,b,c,d);this.Zf.fd.get(a).nE=!0}; +g.k.yq=function(a,b){this.Zf.yq(a,b)}; +g.k.HB=function(a){this.requestIdentifier=a}; +g.k.Vk=function(a){return this.Zf.Vk(a)}; +g.k.jo=function(a){return this.Zf.jo(a)}; +g.k.Tl=function(a){return this.Zf.Tl(a)}; +g.k.Ir=function(){return this.Zf.Ir()}; +g.k.Up=function(){return 1}; +g.k.Xp=function(){return this.Nd.requestNumber}; +g.k.mQ=function(){return this.requestIdentifier}; +g.k.zY=function(){return this.clipId}; +g.k.Be=function(){return this.ge.Be()}; +g.k.o0=function(){this.Ez()}; +g.k.Ez=function(){this.Nd.deactivate();var a;(a=this.xhr)==null||a.abort()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.b_=function(){return this.state===3}; +g.k.Ml=function(){return this.state===5}; +g.k.d_=function(){return this.state===4}; +g.k.HQ=function(){return this.isComplete()}; +g.k.Cu=function(){return this.state>=1}; +g.k.Nr=function(){return this.policy.wc?this.yd.Nr():0}; +g.k.yY=function(){var a;return(a=this.info.data)==null?void 0:a.HO}; +g.k.CQ=function(){this.policy.wc&&qZ(this.Cb,this)}; +g.k.WY=function(){return GZa(this.info)}; +g.k.Eh=function(){return this.yd.Eh()}; +g.k.Vp=function(){var a=DWa(this.yd);Object.assign(a,IZa(this.info));a.req="sabr";a.rn=this.Xp();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.hm?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.Wf())&&(a.msg=b);this.rT&&(c=hXa(this,this.rT-this.Nd.VY()),a.letm=c.A$,a.mrbps=c.mL,a.mram=c.HR);return a}; +g.k.YY=function(){return{nj:this.nj,xv:this.xv,hq:this.info.hq()}};iXa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.rt)()};g.z(tXa,g.ax);g.k=tXa.prototype;g.k.tS=function(a,b,c,d){if(this.K&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Fz);this.K.AS(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}this.policy.Ab?(this.B===1&&eY(this,5,"noad"),vXa(this,a,b),isNaN(a.startTime)||wXa(this,a.Pa,fY(this,a.startTime,a.Pa),!!b,this.K)):c&&vXa(this,a,b)}; +g.k.sS=function(a,b,c){var d=this.videoTrack.j.index.qd()<=b;this.j={Lg:a,Pa:b,JF:c};d&&dY(this,a,b)}; +g.k.vx=function(){this.K&&this.K.vx()}; +g.k.oa=function(a,b){this.xa.oa(a,b)}; +g.k.Rs=function(a,b){var c=this.videoTrack.j.index.Li(a);if(c>=0){var d;var e=((d=aX(b.bd,c,2))==null?void 0:d.Ot)||"";if(this.policy.G||e)return b.Av(a,c),yXa(this.xa,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0}this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.z(jY,g.O);jY.prototype.jp=function(a,b,c){c=c===void 0?{}:c;this.policy.xj=BN(a,c,this.D,b===void 0?!1:b)};EXa.prototype.DL=function(a){var b=this;if(this.policy.gD){var c=new Set(a);c.size===this.Ga.size&&[].concat(g.x(c)).every(function(d){return b.Ga.has(d)})||(this.xa.oa("lwnmow",{itagDenylist:[].concat(g.x(a)).join(",")}),this.xa.Oy(!!c.size),this.Y=-1,this.Ga=c,oY(this,this.j),this.Ra=!0)}}; +EXa.prototype.jp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.xj;this.G.jp(a,b===void 0?!1:b,c);if(d!==this.policy.xj){oY(this,this.j);pY(this);var e,f;d>this.policy.xj&&((e=this.C)==null?0:zE(e.info))&&((f=this.nextVideo)==null||!zE(f.info))&&(this.qa=!0)}};XXa.prototype.dispose=function(){this.ra=!0}; +XXa.prototype.Ka=function(){return this.ra}; +g.z(wY,Error);var b5a=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]);zY.prototype.skip=function(a){this.offset+=a}; +zY.prototype.Om=function(){return this.offset};g.k=pYa.prototype;g.k.TY=function(){return this.B}; +g.k.Uo=function(){return this.B.length?this.B[this.B.length-1]:null}; +g.k.lk=function(){this.B=[];BY(this);oYa(this)}; +g.k.Qs=function(){this.Ya=this.B.shift().info}; +g.k.jo=function(){return g.pl(this.B,function(a){return a.info})}; +g.k.Gh=function(){return!!this.K.info.audio}; +g.k.getDuration=function(){return this.K.index.Yt()};g.z(BX,OX);g.k=BX.prototype;g.k.onStateChange=function(){this.Ka()&&(JW(this.Zf,this.formatId),this.j.dispose())}; +g.k.Vp=function(){var a=RTa(this.Zf,this.formatId),b;var c=((b=this.Zf.fd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.Zf.fd.get(this.formatId))==null?void 0:d.Nz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:STa(this.Zf,this.formatId),isAnyMediaEndReceived:this.Zf.Fx(this.formatId)}}; +g.k.BY=function(){return 0}; +g.k.Kx=function(){return!0}; +g.k.Vk=function(){return this.Zf.Vk(this.formatId)}; +g.k.ZG=function(){return[]}; +g.k.Tl=function(){return this.Zf.Tl(this.formatId)}; +g.k.Eh=function(){return this.lastError}; +g.k.Nr=function(){return 0};g.z(DY,g.O);g.k=DY.prototype;g.k.Uo=function(){return this.D.Uo()}; +g.k.Qs=function(a){this.D.Qs(a);var b;(b=this.Z)!=null&&(b.B=TVa(b,b.kd,b.By,b.B,a),b.D=a,b.G=(0,g.rt)());this.tb=Math.max(this.tb,a.info.j.info.tb||0)}; +g.k.getDuration=function(){if(this.policy.j){var a=this.xa.Bf();if(a)return gX(a)}return this.j.index.Yt()}; +g.k.lk=function(){DX(this);this.D.lk()}; +g.k.hQ=function(){return this.D}; +g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.gb[0].Pa:!1}; +g.k.Qq=function(a){var b;(b=this.Z)==null||b.Qq(a)};g.z(SY,g.O);SY.prototype.C=function(){this.B++>15||(this.j=!this.j,new eZa(this.xa,this.policy,this.Kc,this.resource,this.j),this.delay.start())}; +g.k=eZa.prototype;g.k.Yu=function(){}; +g.k.Ds=function(){}; +g.k.Ro=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Nm()===this.size)this.xa.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.ou()&&(a="net.closed");this.onError(a)}}; +g.k.onError=function(a){var b=this;this.xa.handleError(a,this.getInfo());pW("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.xa.oa("pathprobe",c)},function(c){b.xa.handleError(c.errorCode,c.details)})}; +g.k.getInfo=function(){var a=this.timing.wr();a.shost=wL(this.location.base);a.pb=this.size;return a};g.z(TY,g.O);TY.prototype.hR=function(a,b){if(!PY(a)||!a.j.hg())return!1;var c=this.C.Ra||SYa(a)||b<=this.policy.eE||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+SYa(a)+", health: "+b}); +return c}; +TY.prototype.ya=function(){g.O.prototype.ya.call(this)}; +var UY=2/24;g.z(ZY,g.O);ZY.prototype.CL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&xZa(this,this.B)?this.B.reason:"a";this.xa.CL(new iY(a,e,c));XY(this.xa,b,a,!0)}; +ZY.prototype.s2=function(a){for(var b=g.w(this.N),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.Fe.j&&(this.qa=!0),new iY(this.K,"m");this.C=[];return null}; +ZY.prototype.jp=function(a,b,c){c=c===void 0?{}:c;this.j.jp(a,b===void 0?!1:b,c)};$Y.prototype.Zr=function(){return this.requestType===1}; +$Y.prototype.YP=function(){var a;return((a=this.Cb)==null?void 0:a.YP())||0}; +$Y.prototype.hq=function(){var a;return!((a=this.data)==null||!a.jn)};aZ.prototype.encrypt=function(a){this.wd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a}; +aZ.prototype.Ka=function(){return this.cipher===0}; +aZ.prototype.dispose=function(){this.wd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};bZ.prototype.encrypt=function(a,b){return mU(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:b},this.key,a).catch(function(c){return Promise.reject(c.name+": "+c.message)}).then(function(c){return new Uint8Array(c)}))}; +bZ.prototype.Ka=function(){return this.j}; +bZ.prototype.dispose=function(){this.j=!0}; +uU.PA(bZ,{encrypt:JZa("oan2")});cZ.prototype.encrypt=function(a,b){yJ(this.B,b);return lU(this.B.encrypt(a))}; +cZ.prototype.Ka=function(){return this.j}; +cZ.prototype.dispose=function(){this.j=!0}; +uU.PA(cZ,{encrypt:JZa("oap")});dZ.prototype.encrypt=function(a,b){var c=this.wd.FE(b),d=this.j;d.wd.exports.AES128CTRCipher_setCounter(d.cipher,(c!=null?c:b).byteOffset);b=this.wd.FE(a);this.j.encrypt(b!=null?b:a);c&&this.wd.exports.free(c.byteOffset);return b?lU(this.wd.NR(b)):lU(a)}; +dZ.prototype.Ka=function(){return this.j.Ka()}; +dZ.prototype.dispose=function(){this.j.dispose()}; +uU.PA(dZ,{encrypt:JZa("oalw")});QZa.prototype.encrypt=function(a){(0,g.rt)();return(new cO(this.j.j)).encrypt(a,this.iv)}; +QZa.prototype.decrypt=function(a,b){(0,g.rt)();return(new cO(this.j.j)).decrypt(a,b)};UZa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.Zm.Kd("omd_s");c=new Uint8Array(16);BJ()?d=new bO(a):e=new cO(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ia(4);break}f=b.j.shift();if(!d){h=e.decrypt(NJ(f.buffer),c);m.Ia(5);break}return g.G(m,d.decrypt(NJ(f.buffer),c),6);case 6:h=m.B;case 5:l=h;for(var n=0;n=4)){var b=mZ(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.Wf()){var d="onesie.net";b.msg=c.Wf()}else c.status>=400?d="onesie.net.badstatus":c.ev()?this.vZ||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.aj(new fE(d,b)):(this.Kd("or_fs"),this.Nd.SR((0,g.rt)(),c.Nm(),0),this.xd(4),this.Sm&&this.oa("rqs",b));this.Sm&&this.oa("ombre", +"ok."+ +!d);this.yH=!1;oZ(this);h_a(this.Zm);if(!this.nI){this.WG.stop();var e;(e=this.OL)==null||e.stop()}var f;if(a=(f=this.GA)==null?void 0:kTa(f))for(f=0;f1E3){var a;(a=this.Nd)==null||a.vL((0,g.rt)());a=mZ(this);if(this.W.zc()&&this.xhr instanceof vWa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.aj(new fE("net.timeout",a))}}else(0,g.rt)()-this.Nd.j>1E4&&((b=this.Nd)==null||b.vL((0,g.rt)()),this.EQ());this.isComplete()||this.SO.start()}}; +g.k.EQ=function(){this.logger.info("Onesie request timed out");this.yH=!1;if(!oZ(this)){var a=mZ(this);a.timeout="1";this.aj(new fE("onesie.request",a))}}; +g.k.aj=function(a){var b=this;a=hE(a);this.RA?this.ea.Gd(a):(this.Uq.reject(a),this.RA=!0);h_a(this.Zm);this.nI||this.WG.stop();this.Kd("or_fe");var c,d;(c=this.GA)==null||(d=kTa(c))==null||d.forEach(function(e){b.oa("pathprobe",e)}); +this.xd(5);this.dispose()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.d_=function(){return this.state===4}; +g.k.HQ=function(a){var b,c;return this.isComplete()||!!((b=this.ag)==null?0:(c=b.get(a))==null?0:c.j)}; +g.k.b_=function(){return!1}; +g.k.Ml=function(){return this.state===5}; +g.k.notifySubscribers=function(a){for(var b=0;b102400&&!this.WZ&&(this.Kd("or100k"),this.WZ=!0);if(a.Xr()){var b=a.Uy(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); +this.Sm&&this.oa("ombrss","len."+c);this.Yl.feed(b)}if(this.ag)for(var d=g.w(this.ag.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.ag.get(f))==null||a.AB();this.notifySubscribers(f)}}catch(h){this.aj(h)}}; +g.k.Xp=function(){return this.Nd.requestNumber}; +g.k.mQ=function(a){return this.Z1.get(a)}; +g.k.YY=function(){return{nj:this.nj,xv:this.xv,hq:!1}};g.z(B_a,g.O);g.k=B_a.prototype;g.k.uv=function(a){this.qa=void 0;P_a(this);N_a(this,a)}; +g.k.gR=function(a){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof nZ&&this.policy.il?a===this.xa.getCurrentTime()*1E3:!(b instanceof bY&&HZa(b.info))&&Math.abs(b.WY()-a)<50}; +g.k.zq=function(a){this.B=a;this.qa=(0,g.rt)()+(a.backoffTimeMs||0)}; +g.k.PG=function(a){if(a.action===void 0){var b=this.ea.ox();b!==void 0&&this.xa.Lu(b)}else if(a.action!==0||!this.Ma)switch(b={},b.reason=a.zda,b.action=a.action,a.action){case 1:this.policy.G&&this.K&&this.K.OE(void 0,void 0,b);break;case 0:this.Ma=!0;this.xa.vP(b);break;case 2:this.xa.handleError("sabr.config",b,1);break;case 5:S4a(this.ea,!0);break;case 6:S4a(this.ea,!1);break;case 3:this.policy.oD&&((a=this.manifest.Y)!=null&&(a.N=!0),this.xa.handleError("sabr.hostfallback",b))}}; +g.k.ES=function(a,b,c,d){if(this.policy.j){this.xa.oa("ssap",{rn:d,v:b,tl:R_a(a)});var e=this.xa.Bf();a={It:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.Bk.add(c.type));e?O_a(this,e,a):(this.xa.oa("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}}; +g.k.OG=function(a){this.policy.ra&&a&&a.type&&a.sendByDefault&&this.Bk.add(a.type)}; +g.k.MG=function(){}; +g.k.Aq=function(a){if(a.BT!==void 0&&a.CT){var b=a.BT/a.CT;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.Y||this.policy.Fi)this.xa.Kg.B=!1;this.xa.Hp(b,1);if(this.ea.getCurrentTime()!==b){var c={Zc:"sabr_seek",cB:!0,gU:!0};a.seekSource&&(c.seekSource=a.seekSource);HX(this.xa,b,c)}}}; +g.k.FB=function(a){a.CK&&a.DK&&uN(this.manifest,a.CK,a.DK);this.policy.mz&&(a.Y_&&a.Z_&&(this.manifest.Fa=a.Y_/a.Z_),a.L_&&a.M_&&(this.manifest.Z=a.L_/a.M_))}; +g.k.Ym=function(a){this.xa.Ym(a)}; +g.k.NG=function(a,b,c){this.policy.C&&this.xa.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.w(a);for(var d=a.next();!d.done;d=a.next())this.Bk.add(d.value)}if(b)for(b=g.w(b),a=b.next();!a.done;a=b.next())a=a.value,this.Bk.has(a)&&this.Bk.delete(a);if(c)for(c=g.w(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.bB=""))}; +g.k.SG=function(){}; +g.k.QG=function(a,b){eU(this.policy,a,4,b)}; +g.k.KG=function(a){if(a==null?0:a.UZ)if(a=a.UZ.V8){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.K.get(eIa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}}; +g.k.mf=function(){return this.ea.mf()||""}; +g.k.YP=function(){var a=LY(this.audioTrack,!0)*1E3,b=LY(this.videoTrack,!0)*1E3;return Math.min(a,b)}; +g.k.Hk=function(a,b){this.xa.oa(a,b)}; +g.k.wK=function(a){j0a(this.xa,OXa(this.ra,a))}; +g.k.ya=function(){g.O.prototype.ya.call(this);this.B=void 0;N_a(this,!0);this.j=[]};S_a.prototype.He=function(a,b){if(this.D)return X_a(this,b);if(b=IX(a)){var c=b.B;c&&c.C&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Ml()&&a.info.gh===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; +S_a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.z(g.tZ,g.O);g.k=g.tZ.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); +a=a||0;cU(this.policy)||(b=rY(this.j),m0a(this.ea,new iY(b.video,b.reason)),this.ea.vy(new iY(b.audio,b.reason)));this.manifest.isManifestless&&rZa(this.D);this.G&&U_a(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Tv&&(d=d||this.manifest.Wd);this.policy.yb||(this.currentTime=d?a:b);this.policy.Y&&this.seek(this.getCurrentTime(),{}).Xk(function(){}); +if(this.policy.B){var e;((e=this.qa)==null?0:A_a(e,this.mf()||""))&&b0a(this)&&a0a(this,this.videoTrack)&&a0a(this,this.audioTrack)&&(Q_a(this.Z,this.qa),this.policy.K&&$_a(this))}else this.ra&&(c0a(this,this.videoTrack),c0a(this,this.audioTrack),QTa(this.ra),delete this.ra);c?(this.policy.Qf?(this.Jb=c,wZ(this,c)):wZ(this,!1),g.Po(this.oG)):(c=this.getCurrentTime()===0,WY(this.D,this.videoTrack,this.videoTrack.j,c),WY(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.B&&E_a(this.Z,!0),this.policy.Y|| +this.seek(this.getCurrentTime(),{}).Xk(function(){}),this.timing.tick("gv")); +(this.manifest.bf||this.manifest.xi||this.manifest.Ra||this.manifest.Tb||this.manifest.Rc)&&this.ea.mH(this.manifest)}; +g.k.resume=function(){if(this.isSuspended||this.gs){this.logger.debug("Resumed.");this.GJ=this.gs=this.isSuspended=!1;try{this.He()}catch(a){g.Bw(a)}}}; +g.k.fA=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");f0a(this);bF(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.La&&this.oa("loader",{setsmb:1}),this.policy.Ma=!0):this.policy.Qf?wZ(this,this.Jb):wZ(this,!1);this.lk()}; +g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Ka()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.We&&(this.Wa=!0));if(cU(this.policy)){var e=this.B.s2(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); +this.ea.vy(e)}else{var f=NXa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); +this.ea.vy(new iY(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Li(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){this.policy.B&&(this.B.Z=!0,this.uv(!0));RYa(this.audioTrack,c,NaN,NaN);tN(this.manifest,c,!1);return}this.ea.Lq()}}; +g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)}; +g.k.CL=function(a){var b=a.j.info.Gh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+KE(a.j.info)}); +b?this.ea.vy(a):m0a(this.ea,a)}; +g.k.wK=function(a){DM(a.gb[a.gb.length-1])&&j0a(this,OXa(this.j,a.gb[0].j))}; +g.k.Zt=function(){return this.ea.Zt()}; +g.k.kK=function(){return this.ea.kK()}; +g.k.Ym=function(a){if(this.policy.zo)if(a.qj===1)this.ea.yC(0);else{if(a.qj===2||a.qj===3){var b=!1;if(a.qj===3){b=this.ea.BA();var c;this.Ob=(c=a.V1)!=null?c:Infinity;this.ea.yC(b+1);(b=qZa(this))&&this.rB(!0)}this.ea.BS(!0,b)}}else this.ea.Ym(a)}; +g.k.zA=function(){return this.ea.zA()}; +g.k.Fl=function(){return this.ea.Fl()}; +g.k.GS=function(a){this.ea.GS(a)}; +g.k.nda=function(){var a,b=(a=this.ea.Je())==null?void 0:a.getCurrentTime();b?this.ea.oa("rms",{cta:b}):g.Po(this.Kb)}; +g.k.He=function(){i0a(this);if(this.Qa&&ZE(this.Qa)&&!this.Qa.Fk()){var a=FY(this.videoTrack);a=this.policy.YD&&a&&a.Mi();this.manifest.isManifestless&&this.manifest.C&&qN(this.manifest)?(this.N=qN(this.manifest),this.Qa.fp(this.N)):vN(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Qa.fp(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Qa.fp(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), +(!isFinite(this.N)||this.N!==a)&&a>0&&(this.Qa.fp(a),this.N=a))}if(!this.Ka())if(pN(this.manifest)&&this.manifest.Ml()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.yb?{rc:b.zg}:{rc:b.zg.toString()},1)}else if(this.policy.B)a:{try{K_a(this.Z);this.manifest.isManifestless&&this.policy.K&&GX(this.Kg);if(cU(this.policy)&&!WE()&&this.policy.Fn&&this.Qa&&!cF(this.Qa)&&this.videoTrack.Ma&&this.audioTrack.Ma){this.oa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.rb, +a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.rb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!cF(c)&&e&&d&&(Iwa(c,d.info,e.info,this.policy.Ob),g0a(this,c))}var f;((f=this.Qa)==null?0:cF(f))&&this.VB();cU(this.policy)||vZ(this);E_a(this.Z)}catch(l){g.Cw(l);b=l;if(b.message.includes("changeType")){this.oa("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}B0a(this);g.Po(this.Xa)}else if(!this.manifest.B|| +!VYa(this.videoTrack)&&!VYa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Jb?c=!1:(this.lk(),this.ea.seekTo(Infinity,{Zc:"checkLoaderTracksSync",Hp:!0}),c=!0),!c){i0a(this);this.manifest.isManifestless&&(WYa(this.videoTrack),WYa(this.audioTrack),GX(this.Kg),(c=IX(this.videoTrack))&&c.B&&(c=c.B.C&&!this.policy.wk,this.oa(c===this.policy.N.tj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.tj,dfs:this.policy.wk},!0)));if(this.Qa)this.VB();else if(this.policy.D){var h;c=!1;if(this.policy.MC)for(d= +g.w([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=IX(f);e&&f.Uo()!==FY(f);e=IX(f))f.Qs(e);c=c||!!e}else(b=IX(this.videoTrack))&&this.videoTrack.Qs(b),(h=IX(this.audioTrack))&&this.audioTrack.Qs(h);IY(this.videoTrack)&&IY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&xZ(this)}vZ(this);WY(this.D,this.videoTrack,this.videoTrack.j,!1);WY(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.WC||l0a(this,this.videoTrack, +this.audioTrack);jZa(this.D,this.videoTrack,this.audioTrack);jZa(this.D,this.audioTrack,this.videoTrack);B0a(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.Aw,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.dk)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.Po(this.Tb,b));g.Po(this.Xa)}}; +g.k.vP=function(a){this.ea.vP(a)}; +g.k.VB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B;I0a(this,this.audioTrack);I0a(this,this.videoTrack);var d=o0a(this);if(d){if(this.policy.jt){if(!b.jx()){var e=IX(this.audioTrack);if(e){if(!sZ(this,this.audioTrack,b,e.info))return;r0a(this,b,e)}}if(!c.jx()&&(e=IX(this.videoTrack))){if(!sZ(this,this.videoTrack,c,e.info))return;r0a(this,c,e)}}this.Gp||(this.Gp=(0,g.rt)(),this.logger.debug(function(){return"Appends pause start "+a.Gp+" reason "+d}),this.policy.C&&this.oa("apdps", +{r:d}))}else if(this.Gp&&(n0a(this,this.Gp),this.Gp=0),p0a(this),e=!1,this.policy.j&&RY(this.videoTrack)||!v0a(this,this.videoTrack,c)||(e=!0,lXa(this.timing),pXa(this.timing)),this.Qa&&!this.Qa.Ng()&&(this.policy.j&&RY(this.audioTrack)||!v0a(this,this.audioTrack,b)||(e=!0,mXa(this.timing),qXa(this.timing)),!this.Ka()&&this.Qa)){if(!this.policy.Xa&&IY(this.videoTrack)&&IY(this.audioTrack)&&ZE(this.Qa)&&!this.Qa.Fk()){c=!1; +c=FY(this.audioTrack);if(this.policy.j){var f;b=(f=this.ub)==null?void 0:fX(f,c.Ue*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),Jwa(this.Qa),lJa(this.schedule))}e&&!this.Qa.isAsync()&&xZ(this)}}}; +g.k.I6=function(a){var b=this,c,d;(d=(a===((c=this.Qa)==null?void 0:c.j)?this.audioTrack:this.videoTrack).Aa)==null||d.stop();var e;H0a(this,a===((e=this.Qa)==null?void 0:e.j));var f;if(this.policy.We&&a===((f=this.Qa)==null?void 0:f.j)&&this.Ya){c=this.Ya-this.getCurrentTime();var h;this.ea.oa("asl",{l:c,xtag:(h=FY(this.audioTrack))==null?void 0:h.j.info.j});this.Wa=!1;this.Ya=0}a.Tm()&&a.oe().length===0&&(a.Qz(),this.Qa&&!this.Qa.Tm()&&(this.ea.U().zc()&&this.ea.oa("rms",{ld:"seek"}),this.Qa.N= +performance.now(),this.ea.LP(),this.ea.U().zc()&&g.Po(this.Kb)));if(this.policy.Ra&&this.Qa){h=a===this.Qa.j;var l=a.Kr();if(l){if(!l.Ub||l.Re)h=a.uc({a:h}),h.omt=(this.getCurrentTime()+this.Dc()).toFixed(3),h.to=this.Dc(),this.oa("sbu",h),this.policy.Dp&&l.Mi()&&!OE(a.oe(),Math.min(l.Ue+UY,l.Mf))&&this.oa("sbunb",{st:l.Ue,et:l.Mf});l.Re&&!a.Fk()&&setTimeout(function(){var m=a.oe(),n=NE(m,l.startTime+UY),p=NE(m,b.getCurrentTime());(n<0||n!==p)&&b.oa("sbu_mismatch",{b:ME(m),c:b.getCurrentTime(),s:l.Sc()})}, +0)}}this.He()}; +g.k.yaa=function(a){if(this.Qa){var b=FY(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.nQ())for(var c=0;cthis.C&&(this.C=c,g.Cc(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Po(this.B))}}; +AZ.prototype.G=function(){for(var a=g.w(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(Ai),f=[],h=g.w(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Rd(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e0)for(var c=g.w(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.rt)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.w(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length, +ignore:this.D});c<=0?N0a(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Po(this.B,c))}}; +BZ.prototype.ya=function(){this.j=[];zZ.prototype.ya.call(this)};var w2={},V0a=(w2.DRM_TRACK_TYPE_AUDIO="AUDIO",w2.DRM_TRACK_TYPE_SD="SD",w2.DRM_TRACK_TYPE_HD="HD",w2.DRM_TRACK_TYPE_UHD1="UHD1",w2);g.z(R0a,g.O);g.z(X0a,g.ax);g.k=X0a.prototype;g.k.xq=function(a){var b=this;this.Ka()||a.size<=0||(a.forEach(function(c,d){var e=FN(b.B)?d:c;d=new Uint8Array(FN(b.B)?c:d);FN(b.B)&&n1a(d);c=g.Qe(d,4);n1a(d);d=g.Qe(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),i1a(this,","),CZ(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.k.error=function(a,b,c,d){this.Ka()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));gE(b)&&this.dispose()}; +g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; +g.k.ya=function(){this.j={};g.ax.prototype.ya.call(this)}; +g.k.uc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Fa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a}; +g.k.getInfo=function(){var a=this.D.join();if(DZ(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; +g.k.Be=function(){return this.url};g.z(EZ,g.O);g.k=EZ.prototype;g.k.J6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; +g.k.xq=function(){this.N&&this.N(this.j.keyStatuses)}; +g.k.onClosed=function(){this.Ka()||g.Er("xboxone")&&this.C&&this.C("closed")}; +g.k.K0=function(a){this.G&&this.G(a.message,"license-request")}; +g.k.J0=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; +g.k.I0=function(){this.K&&this.K()}; +g.k.update=function(a){var b=this;if(this.j)return(TN.isActive()?TN.hv("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,wK(function(c){p1a(b,"t.update",c)})); +this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return wr()}; +g.k.ya=function(){this.j&&(this.Y?this.j.close().catch(g.Cw):this.j.close());this.element=null;g.O.prototype.ya.call(this)};g.z(FZ,g.O);g.k=FZ.prototype;g.k.xO=function(){var a=this;if(this.j.keySystemAccess)return(TN.isActive()?TN.hv("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ka())if(a.B=c,TN.isActive())TN.hv("emeset",function(){return a.element.setMediaKeys(c)}); +else{var d;(d=a.element)==null||d.setMediaKeys(c)}}); +if(EN(this.j))this.C=new (DN())(this.j.keySystem);else if(GN(this.j)){this.C=new (DN())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else TN.isActive()&&this.oa("emev",{v:"01b"}),rs(this.G,this.element,["keymessage","webkitkeymessage"],this.M6),rs(this.G,this.element,["keyerror","webkitkeyerror"],this.L6),rs(this.G,this.element,["keyadded","webkitkeyadded"],this.K6);return null}; +g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.xm?this.B.setServerCertificate(this.j.xm):IN(this.j)&&this.j.fb?this.B.setServerCertificate(this.j.fb):null:null}; +g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();HN(this.j)?c=q1a(c,this.j.fb):IN(this.j)&&(c=M0a(c)||new Uint8Array(0));b&&b("genreq");var e=TN.isActive()?TN.hv("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); +var f=new EZ(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},wK(function(l){p1a(f,"t.generateRequest",l)})); +return f}if(EN(this.j))return s1a(this,c);if(GN(this.j))return r1a(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new EZ(this.element,this.j,c,null,null,this.N)}; +g.k.M6=function(a){var b=t1a(this,a);b&&b.K0(a)}; +g.k.L6=function(a){var b=t1a(this,a);b&&b.J0(a)}; +g.k.K6=function(a){var b=t1a(this,a);b&&b.I0(a)}; +g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a}; +g.k.ya=function(){this.C=this.B=null;var a;(a=this.D)==null||a.dispose();a=g.w(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.O.prototype.ya.call(this);delete this.element};g.k=GZ.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null}; +g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))}; +g.k.removeAll=function(){this.keys=[];this.values=[]}; +g.k.set=function(a,b){var c=this.findIndex(a);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; +g.k.findIndex=function(a){return g.Nb(this.keys,function(b){return g.bc(a,b)})};g.z(w1a,g.ax);g.k=w1a.prototype;g.k.Xaa=function(a){this.wj({onecpt:1});a.initData&&z1a(this,new Uint8Array(a.initData),a.initDataType)}; +g.k.zba=function(a){this.wj({onndky:1});z1a(this,a.initData,a.contentType)}; +g.k.wy=function(a){this.wj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));y1a(this,a)}; +g.k.eX=function(a){this.C.push(a);HZ(this)}; +g.k.createSession=function(a){var b=B1a(this)?iYa(a):g.Qe(a.initData);this.B.get(b);this.Fa=!0;a=new X0a(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.AL,this);a.subscribe("keystatuseschange",this.xq,this);a.subscribe("licenseerror",this.EL,this);a.subscribe("newlicense",this.F0,this);a.subscribe("newsession",this.G0,this);a.subscribe("sessionready",this.R0,this);a.subscribe("fairplay_next_need_key_info",this.A0,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", +this.NU,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.oca,this);a1a(a,this.D)}; +g.k.F0=function(a){this.Ka()||(this.wj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; +g.k.G0=function(){this.Ka()||(this.wj({newlcssn:1}),this.C.shift(),this.Fa=!1,HZ(this))}; +g.k.R0=function(){if(EN(this.j)&&(this.wj({onsnrdy:1}),this.La--,this.La===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}}; +g.k.xq=function(a){if(!this.Ka()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(C1a(this),this.Ma=!0);this.wj({onksch:1});var b=this.NU;if(!DZ(a)&&g.Nt&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(DZ(a))for(var e=g.w(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!DZ(a)||d)c=a.D;c=h1a(c)}b.call(this,c);this.publish("keystatuseschange", +a)}}; +g.k.AL=function(a,b){this.Ka()||this.publish("ctmp",a,b)}; +g.k.A0=function(a,b){this.Ka()||this.publish("fairplay_next_need_key_info",a,b)}; +g.k.EL=function(a,b,c,d){this.Ka()||(this.videoData.L("html5_log_drm_metrics_on_error")&&C1a(this),this.publish("licenseerror",a,b,c,d))}; +g.k.lx=function(){return this.Z}; +g.k.NU=function(a){var b=g.dL("auto",a,!1,"l");if(this.videoData.Zj){if(cL(this.Z,b))return}else if(dDa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.wj({updtlq:a})}; +g.k.oca=function(a){this.videoData.sabrLicenseConstraint=a}; +g.k.ya=function(){this.j.keySystemAccess&&this.element&&(this.Aa?this.element.setMediaKeys(null).catch(g.Cw):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.w(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.AL,this),b.unsubscribe("keystatuseschange",this.xq,this),b.unsubscribe("licenseerror",this.EL,this),b.unsubscribe("newlicense",this.F0,this),b.unsubscribe("newsession",this.G0,this),b.unsubscribe("sessionready",this.R0,this),b.unsubscribe("fairplay_next_need_key_info", +this.A0,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.NU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.ax.prototype.ya.call(this)}; +g.k.uc=function(){for(var a={systemInfo:this.j.uc(),sessions:[]},b=g.w(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.uc());return a}; +g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")}; +g.k.wj=function(a,b){b=b===void 0?!1:b;this.Ka()||(eE(a),(this.W.zc()||b)&&this.publish("ctmp","drmlog",a))};g.z(D1a,g.O);g.k=D1a.prototype;g.k.LJ=function(){return!!this.hG}; +g.k.TK=function(){return this.B}; +g.k.handleError=function(a){var b=this;K1a(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!J1a(this,a.errorCode,a.details))&&!O1a(this,a)){if(this.Da.qa!=="yt"&&M1a(this,a)&&this.videoData.lq&&(0,g.rt)()/1E3>this.videoData.lq&&this.Da.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.lq;c.init=this.videoData.DW/1E3;c.now=(0,g.rt)()/1E3;c.systelapsed=((0,g.rt)()-this.videoData.DW)/1E3; +a=new fE(a.errorCode,c,2);this.ea.Lf(a.errorCode,2,"SIGNATURE_EXPIRED",eE(a.details))}if(gE(a.severity)){var d;c=(d=this.ea.xa)==null?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(L1a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Da.K||a.errorCode!=="auth"||a.details.rc!==429)a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var f="6"}else L1a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||a.errorCode!=="auth"|| +a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",f="6");this.ea.Lf(a.errorCode,a.severity,e,eE(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Gd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.rt)(),pW(a,"manifest",function(h){b.K=!0;b.oa("pathprobe",h)},function(h){b.Gd(h.errorCode, +h.details)}))}}; +g.k.oa=function(a,b){this.ea.Xb().oa(a,b)}; +g.k.Gd=function(a,b){b=eE(b);this.ea.Xb().Gd(a,b)};R1a.prototype.RP=function(a){return a?{o1:b2a(this,a)}:{o1:HP}}; +R1a.prototype.L=function(a){return this.W.L(a)};g.z(LZ,g.O);LZ.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match($bb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +LZ.prototype.send=function(){if(!(this.C||this.j<0)){h2a(this);var a=g.LI(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.dh;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState, +4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=W4a[pQ(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=i2a(this.provider), +f=this.B<0?a:this.B-this.j;a=this.provider.W.Rf+36E5<(0,g.rt)();b={started:this.B>=0,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.nQ(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:TP(this.provider.videoData)};a||g.$s("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; +LZ.prototype.ya=function(){this.C||this.send();window.removeEventListener("error",this.EB);window.removeEventListener("unhandledrejection",this.EB);g.O.prototype.ya.call(this)}; +var $bb=/\bnet\b/;var j2a=/[?&]cpn=/;var o2a=Math.pow(10,8);g.z(g.OZ,g.O);g.k=g.OZ.prototype;g.k.S9=function(){var a=g.LI(this.provider);r2a(this,a)}; +g.k.sF=function(){return this.Ma}; +g.k.xF=function(){return{XB:this.XB,YB:this.YB}}; +g.k.LH=function(a,b){this.XB=a;this.YB=b}; +g.k.mH=function(a){this.j.lwc=[[a.bf?a.bf.toFixed():"",a.xi?a.xi.toFixed():"",a.Ra?(a.Ra*1E3).toFixed():"",a.Tb?(a.Tb*1E3).toFixed():"",a.Rc?(a.Rc*1E3).toFixed():""].join(":")]}; +g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Ka()&&(a=a>=0?a:g.LI(this.provider),["PL","B","S"].indexOf(this.De)>-1&&(!g.Cc(this.j)||a>=this.G+30)&&(g.NZ(this,a,"vps",[this.De]),this.G=a),!g.Cc(this.j))){this.sequenceNumber===7E3&&g.Cw(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){PZ(this,a);var b=a,c=this.provider.ea.EF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.XB,h=e&&!this.YB;d>c.totalVideoFrames||f>5E3?z2a(this,"html5.badframedropcount","df."+d+";tf."+ +c.totalVideoFrames):(f>0||h)&&g.NZ(this,b,"df",[f]);this.XB=d;this.YB=e;this.Z>0&&(g.NZ(this,a,"glf",[this.Z]),this.Z=0);b2.isActive()&&(a=b2.uY(),Object.keys(a).length>0&&this.oa("profile",a));this.yb&&QZ(this,"lwnmow");this.provider.W.zc()&&this.provider.L("html5_record_now")&&this.oa("now",{wt:(0,g.rt)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& +(a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=CQ(this.provider.videoData);a.content_v=EQ(this.provider.videoData);a.ns=this.provider.W.qa;a.fexp=XIa(this.provider.W.experiments).toString();a.cl=(659391501).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=pQ(this.provider.videoData))&&(a.live=b);this.provider.videoData.ej()&& +(a.drm=1,this.provider.videoData.G&&(a.drm_system=Fbb[this.provider.videoData.G.flavor]||0),this.provider.videoData.il&&(a.drm_product=this.provider.videoData.il));Zq()&&this.provider.videoData.K&&(a.ctt=this.provider.videoData.K,a.cttype=this.provider.videoData.An,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.WU&&(a.dai_fallback= +"1")):this.provider.videoData.rd?a.dai="cs":this.provider.videoData.lE&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.h_){if(b=this.provider.videoData.h_,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Cd.has(b.ns)&&QZ(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Sd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId; +this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")||(a.qclc=u2a(this,a.seq));this.isEmbargoed&&(a.embargoed="1");g.Hc(a,this.provider.W.j);this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")&&(b=a.seq)&&(b=u2a(this,+b),this.j.qclc=[b]);a=g.Ji("//"+this.provider.W.Hn+"/api/stats/qoe",a);c=b="";d=g.w(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.Cw(new g.Ks("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100? +c+=e:b+=e);v2a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}}; +g.k.Oy=function(a){this.yb=a}; +g.k.D2=function(){if(this.provider.videoData.G){var a=this.provider.videoData.G;QZ(this,"eme-"+(a.keySystemAccess?"final":EN(a)?"ms":HN(a)?"ytfp":GN(a)?"safarifp":"nonfinal"))}}; +g.k.UG=function(a){var b=g.LI(this.provider),c=[a.j.id,a.B,this.wc,a.reason];a.token&&c.push(a.token);g.NZ(this,b,"vfs",c);this.wc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.NO();d>1&&c.push(d);g.NZ(this,b,"view",c)}this.Ya||(this.provider.W.zc()&&QZ(this,"rqs2"),this.provider.videoData.j&&kL(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Ya=!0;a.reason==="m"&&++this.Dd===100&&A2a(this,2);g.NZ(this,b,"vps", +[this.De]);this.reportStats(b)}; +g.k.zG=function(a){var b=g.LI(this.provider);if(a.j.id!==this.La){var c=[a.j.id,this.La,a.reason];a.token&&c.push(a.token);g.NZ(this,b,"afs",c);this.La=a.j.id}}; +g.k.Vu=aa(54);g.k.Xo=function(a){this.isEmbargoed=a}; +g.k.Pj=aa(29);g.k.lj=aa(33);g.k.onPlaybackRateChange=function(a){var b=g.LI(this.provider);a&&a!==this.Tb&&(g.NZ(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)}; +g.k.Po=aa(25);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,2048))return"B";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";if(a.isOrWillBePlaying()&&g.T(a,64))return"B";var b=acb[tF(a)];g.mC(this.provider.W)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.T(a,4)&&(b="PB");return b}; +g.k.ya=function(){g.O.prototype.ya.call(this);g.ir(this.K);g.ir(this.Ab)}; +g.k.oM=function(a){this.isOffline=a;g.NZ(this,g.LI(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.Wc.indexOf(a)!==-1;e||this.Wc.push(a);if(!c||!e){var f=typeof b!=="string"?eE(b):b;f=B2a(f);if(!c&&!/^t[.]/.test(f)){var h=g.LI(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f}); +this.j.ctmp=d;w2a(this);return h}}; +g.k.lH=function(a,b,c){this.D={Wda:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),j0:a,Eda:b,isAd:c}}; +g.k.Jy=function(a,b,c){g.NZ(this,g.LI(this.provider),"ad_playback",[a,b,c])}; +g.k.resume=function(){var a=this;this.provider.W.zc()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?x2a(this):this.K=g.gr(function(){a.reportStats()},1E4)}; +var x2={},acb=(x2[5]="N",x2[-1]="N",x2[3]="B",x2[0]="EN",x2[2]="PA",x2[1]="PL",x2[-1E3]="ER",x2[1E3]="N",x2),MZ=[];D2a.prototype.fQ=function(){return this.j}; +D2a.prototype.update=function(){if(this.N){var a=this.provider.ea.Vf()||0;this.provider.W.L("html5_ssap_vss_fix")&&(a=this.provider.ea.XJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.LI(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||G2a(this,a,b)){var c;if(!(c=ab-this.qq+2||G2a(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.Y=c, +this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(TZ(this),this.C=a);this.qq=b;this.j=a}}};H2a.prototype.send=function(a){var b=this;if(!this.Xa){var c=J2a(this),d=g.Ji(this.uri,c);this.W.L("vss_through_gel_double")&&K2a(d);this.ra&&!this.W.L("html5_simplify_pings")?P2a(this,d):I2a(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});n2a(d,e,{token:b.Y,yU:b.Jb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Aa,b.isFinal&&b.Rf||b.Ga||b.C&&b.Sf)}); +this.Xa=!0}}; +H2a.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()}; +var y2={},N2a=(y2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,y2.LIVING_ROOM_APP_MODE_MAIN=1,y2.LIVING_ROOM_APP_MODE_KIDS=2,y2.LIVING_ROOM_APP_MODE_MUSIC=3,y2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,y2.LIVING_ROOM_APP_MODE_GAMING=5,y2),z2={},M2a=(z2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,z2.EMBEDDED_PLAYER_MODE_DEFAULT=1,z2.EMBEDDED_PLAYER_MODE_PFP=2,z2.EMBEDDED_PLAYER_MODE_PFL=3,z2);g.z(VZ,g.O);g.k=VZ.prototype;g.k.Bg=function(){this.j.update();X2a(this)&&(R2a(this),S2a(this),this.gt())}; +g.k.ya=function(){g.O.prototype.ya.call(this);YZ(this);E2a(this.j)}; +g.k.uc=function(){return J2a(WZ(this,"playback"))}; +g.k.gt=function(){this.provider.videoData.N.eventLabel=CQ(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.Fj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.Fj;a.isAd=b}; +g.k.Ki=function(a){var b=WZ(this,"engage");b.qa=a;return L2a(b,c3a(this.provider))};b3a.prototype.isEmpty=function(){return this.endTime===this.startTime};$Z.prototype.L=function(a){return this.W.L(a)}; +$Z.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Bf();if(b&&(a=a||b.Gl()))return hX(b,a)}else if(g.WP(this.videoData)){var c=this.ea.Bf();if(c)return a=this.ea.getCurrentTime(),c=(((b=fX(c,a*1E3))==null?void 0:b.Sl)||0)/1E3,a-c}return this.ea.getCurrentTime()}; +$Z.prototype.Vf=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Bf();if(b&&(a=a||b.Gl()))return hX(b,a)}else if(g.WP(this.videoData)){var c=this.ea.Bf();if(c)return a=this.ea.Vf(),c=(((b=fX(c,a*1E3))==null?void 0:b.Sl)||0)/1E3,a-c}return this.ea.Vf()}; +var d3a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.a_,g.O);g.k=g.a_.prototype;g.k.Bg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a;(a=this.C.get(this.Mg))==null||a.Bg()}else this.j&&this.j.Bg()}; +g.k.Xo=function(a){this.qoe&&this.qoe.Xo(a)}; +g.k.Pj=aa(28);g.k.lj=aa(32);g.k.Gd=function(a,b){this.qoe&&z2a(this.qoe,a,b);if(this.B)this.B.onError(a)}; +g.k.UG=function(a){this.qoe&&this.qoe.UG(a)}; +g.k.zG=function(a){this.qoe&&this.qoe.zG(a)}; +g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&TZ(this.j.j)}; +g.k.Vu=aa(53);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)}; +g.k.lH=function(a,b,c){this.qoe&&this.qoe.lH(a,b,c)}; +g.k.mH=function(a){var b;(b=this.qoe)==null||b.mH(a)}; +g.k.Oy=function(a){this.qoe&&this.qoe.Oy(a)}; +g.k.Jy=function(a,b,c){this.qoe&&this.qoe.Jy(a,b,c)}; +g.k.Po=aa(24);g.k.sF=function(){if(this.qoe)return this.qoe.sF()}; +g.k.uc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a,b;return(b=(a=this.C.get(this.Mg))==null?void 0:a.uc())!=null?b:{}}return this.j?this.j.uc():{}}; +g.k.xF=function(){var a;return(a=this.qoe)==null?void 0:a.xF()}; +g.k.LH=function(a,b){var c;(c=this.qoe)==null||c.LH(a,b)}; +g.k.Ki=function(a){return this.j?this.j.Ki(a):function(){}}; +g.k.gt=function(){this.j&&this.j.gt()}; +g.k.getVideoData=function(){return this.provider.videoData}; +g.k.resume=function(){this.qoe&&this.qoe.resume()};g.z(b_,g.O); +b_.prototype.yJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!e3a(d))this.B.oa("ssap",{rlc:a}),cVa(this,a);else return}if(!this.j.has(a)){d=new $Z(b,this.W,this.ea);var e=Math.round(g.LI(this.B.provider)*1E3);d=new g.a_(d,e);e3a(d)||this.B.oa("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}f3a(d);c===2&&(this.W.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.wc||"",e= +b.breakType||0,b=b.videoId||"",f=this.W.qa||"yt",g.NZ(c,g.LI(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.Jy(a,b.wc||"",b.breakType||0))}}; +b_.prototype.Xb=function(a){a=a||this.Mg;return this.j.get(a)||this.B};g.z(c_,g.O);g.k=c_.prototype; +g.k.jf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.aF("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.w(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.cc(b.array,d,b.j);a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()}; +g.k.Zo=function(a){a.length>1E4&&g.Cw(new g.Ks("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ka()){for(var b=g.w(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)}); +t3a(this.j,d);this.sync()}}; +g.k.aF=function(a,b){var c=(isNaN(this.C)?g.T(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.Fl().filter(function(d){return d.namespace===a&&d.endthis.j,f=g.T(c,8)&&g.T(c,16),h=this.ea.cj().isBackground()||c.isSuspended();l_(this,this.ob,f&&!h,e,"qoe.slowseek",function(){},"timeout"); +var l=isFinite(this.j);l=f&&l&&Qwa(b,this.j);var m=!d||Math.abs(d-this.j)>10,n=this.W.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=d===0&&this.B&&[11,10].includes(this.B);l_(this,this.yb,l&&m&&!h&&(!n||!p),e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt"); +m=l&&OE(b.Dh(),this.j);var q=this.ea.xa;l=!q||!q.policy.Xa;var r=function(){b.seekTo(a.j+.001)}; +l_(this,this.Va,m&&l&&!h,e,"qoe.slowseek",r,"jiggle_cmt");l=function(){return IZ(a.ea)}; +l_(this,this.Ya,m&&!h,e,"qoe.slowseek",l,"new_elem");m=sF(c);n=c.isBuffering();var t=b.Dh(),u=NE(t,d),y=u>=0&&t.end(u)>d+5,A=m&&n&&y;p=this.ea.getVideoData();l_(this,this.Wa,d<.002&&this.j<.002&&f&&g.mC(this.W)&&g.DQ(p)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");l_(this,this.qa,p.Ck()&&f&&!h&&!p.Aa,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");l_(this,this.Aa,A&&!h,m&&!n,"qoe.longrebuffer",r,"jiggle_cmt");l_(this,this.Fa,A&&!h,m&&!n,"qoe.longrebuffer",l,"new_elem_nnr");if(q){var D=q.getCurrentTime(); +f=b.qx();f=Ewa(f,D);f=!q.isSeeking()&&d===f;l_(this,this.Tb,m&&n&&f&&!h,m&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={}; +r=NE(t,Math.max(d-3.5,0));A=r>=0&&d>t.end(r)-1.1;var F=r>=0&&r+1=0&&A&&F<11;f.close2edge=A;f.gapsize=F;f.buflen=t.length;this.B&&(f.seekSour=this.B);if(r=this.ea.Bf()){A=r.Gl();F=A!==fX(r,d*1E3).clipId;var H=g.ZB(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),N=(dX(r,A)+H)/1E3;l_(this,this.Ma,F&&m&&n&&!h,m&&!n,"qoe.longrebuffer",function(){b.seekTo(N)},"ssap_clip_not_match")}l_(this,this.Ga,m&&n&&!h,m&&!n,"qoe.longrebuffer", +function(){},"timeout",f); +f=c.isSuspended();f=uZ(this.ea)&&!f;l_(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Cg("ad")},"ads_preroll_timeout"); +r=d-this.D<.5;var M;f=!((M=this.ea.Bf())==null||!M.Ll());F=(A=p.isAd()||f&&this.W.experiments.kb("html5_ssap_skip_slow_ad"))&&m&&!n&&r;M=function(){var X=a.ea,V=g.WP(X.videoData)&&X.ub,fa=X.zd.Vc();(fa&&X.videoData.isAd()&&fa.getVideoData().rd===X.getVideoData().rd||!X.videoData.Ef)&&!V?X.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+X.videoData.videoId):QP(X.videoData,"html5_ssap_skip_slow_ad")&&V&&X.ub.Ll()&&(X.Gd(new fE("ssap.transitionfailure",{cpn:fX(X.ub,X.Vf()).clipId,pcpn:X.ub.Gl(), +cmt:X.Vf()})),PUa(X.ub))}; +l_(this,this.Jb,F,!F,"ad.rebuftimeout",M,"skip_slow_ad");r=A&&n&&OE(b.Dh(),d+5)&&r;l_(this,this.Ab,r&&!h,!r,"ad.rebuftimeout",M,"skip_slow_ad_buf");M=c.isOrWillBePlaying()&&g.T(c,64)&&!h;l_(this,this.Kb,M,e,"qoe.start15s",function(){},"timeout"); +M=!!q&&!q.Qa&&c.isOrWillBePlaying();l_(this,this.La,M,e,"qoe.start15s",l,"newElemMse");M=RE(t,0);r=g.T(c,16)||g.T(c,32);r=!h&&c.isOrWillBePlaying()&&n&&!r&&(g.T(c,64)||d===0)&&M>5;l_(this,this.fb,g.DQ(p)&&r,m&&!n,"qoe.longrebuffer",function(){a.ea.Lq()},"reset_media_source"); +l_(this,this.Xa,g.DQ(p)&&r,m&&!n,"qoe.longrebuffer",l,"reset_media_element");this.D===0&&(this.K=d);r=n&&this.j===0&&d>1&&d===this.K;l_(this,this.Ra,g.DQ(p)&&r,m&&!n,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump"); +h=c.isOrWillBePlaying()&&!h;y=zW(this.ea)-d<6&&!y&&this.ea.xu();l_(this,this.Z,p.Ck()&&h&&n&&y,m&&!n,"qoe.longrebuffer",function(){IZ(a.ea,!1,!0)},"handoff_end_long_buffer_reload"); +q=(q==null?void 0:K0a(q))||NaN;q=t.length>1||!isNaN(q)&&q-.1<=d;l_(this,this.Y,dQ(p)&&h&&n&&q,m&&!n,"qoe.longrebuffer",l,"gapless_slice_append_stuck");q=u>=0&&t.end(u)>=2;h=dQ(p)&&this.ea.W2&&q&&!p.Aa&&h&&(n||g.T(c,8)&&g.T(c,16));l_(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&M>5&&c.isPlaying()&&d<.1);l_(this,this.Ob,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.D=d;this.G.start()}}; +k_.prototype.Gd=function(a,b,c){b=this.uc(b);b.wn=c;b.wdup=this.C[a]?"1":"0";this.ea.Gd(new fE(a,b));this.C[a]=!0}; +k_.prototype.uc=function(a){a=Object.assign(this.ea.uc(!0),a.uc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Dc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; +i_.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1}; +i_.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.rt)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1}; +i_.prototype.uc=function(){var a={},b=(0,g.rt)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.z(M3a,g.O);g.k=M3a.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.tT()||this.seekTo(.01,{Zc:"seektimeline_setupMediaElement"})),m_(this)):o_(this)}; +g.k.getCurrentTime=function(){if(n_(this.ea)){if(!isNaN(this.B))return this.B}else if(!isNaN(this.B)&&isFinite(this.B))return this.B;return this.mediaElement&&Z3a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; +g.k.ox=function(){return this.Xa}; +g.k.Vf=function(){return this.getCurrentTime()-this.Dc()}; +g.k.Zn=function(){return this.j?this.j.Zn():Infinity}; +g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return g_(this.j,a)}; +g.k.jq=function(){return!!this.j&&this.j.jq()}; +g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.jI===void 0?!1:c.jI;var d=c.FU===void 0?0:c.FU;var e=c.Bx===void 0?!1:c.Bx;var f=c.zU===void 0?0:c.zU;var h=c.Zc===void 0?"":c.Zc;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.Hp===void 0?!1:c.Hp;var n=c.cB===void 0?!1:c.cB;c=c.gU===void 0?!1:c.gU;m&&(a+=this.Dc());TP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Xa=void 0);m=a=this.Vd())||!g.uQ(this.videoData); +y||(p={st:p,mst:this.Vd()},this.j&&this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Zn(),p.adft=F3a(this.j)),this.ea.oa("seeknotallowed",p));if(!y)return this.C&&(this.C=null,X3a(this)),Fe(this.getCurrentTime());y=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(a-this.B)<=y&&this.ra)return this.G;h&&(y=a,(this.W.zc()||this.L("html5_log_seek_reasons"))&&this.ea.oa("seekreason",{reason:h,tgt:y}));l&&(this.Fa.B=l);this.ra&&o_(this);this.G||(this.G=new fF);a&&!isFinite(a)&& +Q3a(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.ql()>0&&hF(this.mediaElement)>0)||VP(this.videoData)&&this.Xc()===this.Vd(!1)?0:isFinite(h)||!VP(this.videoData)));h||(a=q_(this,a,e));a&&!isFinite(a)&&Q3a(this,!1);this.D=a;this.Va=f;this.B=a;this.Y=0;this.j&&(e=this.j,f=a,G3a(e,f,!1),H3a(e,f));e=this.ea;f=a;h={jI:b,seekSource:l};e.Qc.D=f;c=e.wE;c.mediaTime=f;c.j=!0;h.jI&&R4a(e,h);h=f>e.videoData.endSeconds&& +f>e.videoData.limitedPlaybackDurationInSeconds;e.Er&&h&&isFinite(f)&&E4a(e);fb.start&&E4a(this.ea);return this.G}; +g.k.Vd=function(a){if(!this.videoData.isLivePlayback)return h5a(this.ea);var b;return MQ(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),OLa(this.lf(a)*1E3)+a):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&TP(this.videoData)&&this.videoData.j?a?this.videoData.j.Aa||0:this.videoData.j.Z||0:VP(this.videoData)&&this.videoData.La&&this.videoData.j?this.videoData.j.Vd()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&& +this.j?this.j.Zn():h5a(this.ea)+this.timestampOffset:this.mediaElement?Hr()?OLa(this.mediaElement.QI().getTime()):hF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.k.Xc=function(){if(g.WP(this.videoData)){var a=this.ea;g.WP(a.videoData);var b,c;return(c=(b=a.ub)==null?void 0:b.Xc())!=null?c:a.videoData.Xc()}if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&TP(this.videoData)){var d;return((d=this.videoData.j)==null?void 0:d.Fa)||0}b=this.videoData?this.videoData.Xc()+this.timestampOffset:this.timestampOffset;return MQ(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a= +this.getCurrentTime(),a=this.lf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; +g.k.LP=function(){this.G||this.seekTo(this.D,{Zc:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.k.YF=function(){return this.ra&&!isFinite(this.B)}; +g.k.ya=function(){R3a(this,null);this.Fa.dispose();g.O.prototype.ya.call(this)}; +g.k.uc=function(){var a={};this.xa&&Object.assign(a,this.xa.uc());this.mediaElement&&Object.assign(a,this.mediaElement.uc());return a}; +g.k.FS=function(a){this.timestampOffset=a}; +g.k.getStreamTimeOffset=function(){return VP(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; +g.k.Dc=function(){return this.timestampOffset}; +g.k.lf=function(a){return this.videoData&&this.videoData.j?this.videoData.j.lf(a-this.timestampOffset):NaN}; +g.k.mx=function(){if(!this.mediaElement)return 0;if(vQ(this.videoData)){var a=this.mediaElement,b=a.Dh();a=(QE(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Xc();b=this.Vd()-this.Xc();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.mx()}; +g.k.vy=function(a){this.K&&(this.K.j=a)}; +g.k.iC=function(a,b){this.ea.oa("requestUtcSeek",{time:a});TP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=a);var c;(c=this.xa)==null||c.iC(a);b&&(this.Aa=b)}; +g.k.Lu=function(a){TP(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=void 0);if(this.Aa)this.ea.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Aa}),this.ea.seekTo(this.Aa,{Zc:"utcSeekingFallback_streamTime"}),this.Aa=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.lf(b)-a,b-=a,this.ea.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{Zc:"utcSeekingFallback_estimate"}))}}; +g.k.BE=function(){this.Aa=0}; +g.k.L=function(a){return this.W&&this.W.L(a)};r_.prototype.Cu=function(){return this.started}; +r_.prototype.start=function(){this.started=!0}; +r_.prototype.reset=function(){this.j=this.started=!1};var h4a=!1;g.z(g.v_,g.ax);g.k=g.v_.prototype;g.k.ya=function(){this.logger.debug("dispose");g.ir(this.bM);MTa(this.If);this.visibility.unsubscribe("visibilitystatechange",this.If);v4a(this);z_(this);g.Ho.jk(this.Hy);this.Sj();this.Jf=null;g.ib(this.videoData);g.ib(this.Cl);g.ib(this.zO);g.ib(this.AO);g.jb(this.paa);this.Er=null;g.ax.prototype.ya.call(this)}; +g.k.Jy=function(a,b,c,d,e){if(this.W.L("html5_log_ad_playback_docid")){var f=this.Xb();if(f.qoe){f=f.qoe;var h=this.W.qa||"yt";g.NZ(f,g.LI(f.provider),"ad_playback",[a,b,c,e,h])}}else this.Xb().Jy(a,b,c);this.L("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})}; +g.k.WP=function(){var a;return(a=this.xa)==null?void 0:a.WP()}; +g.k.ZP=function(){var a;return(a=this.xa)==null?void 0:a.ZP()}; +g.k.nA=function(){var a;return(a=this.xa)==null?void 0:a.nA()}; +g.k.XP=function(){var a;return(a=this.xa)==null?void 0:a.XP()}; +g.k.ej=function(){return this.videoData.ej()}; +g.k.xA=function(){return this.mB}; +g.k.yJ=function(){!this.lB||this.lB.Ka();this.lB=new g.a_(new $Z(this.videoData,this.W,this));this.mB=new b_(this.W,this,this.lB)}; +g.k.getVideoData=function(){return this.videoData}; +g.k.U=function(){return this.W}; +g.k.RP=function(){return this.Pk.RP(this.Jf)}; +g.k.Xb=function(a){if(a)a:{for(var b=this.mB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.mB.Xb();return a}; +g.k.cj=function(){return this.visibility}; +g.k.Je=function(){return this.mediaElement}; +g.k.TO=function(){if(this.videoData.isLoaded()){var a=this.Cl;g.ZB(a.Da.experiments,"html5_player_min_build_cl")>0&&g.ZB(a.Da.experiments,"html5_player_min_build_cl")>659391501&&N1a(a,"oldplayer");A4a(this)}else this.videoData.Aj||this.videoData.yp?this.yu&&g.mC(this.W)&&this.videoData.isLivePlayback||(this.videoData.Aj?qLa(this.videoData):(a=this.Xb(),a.qoe&&(a=a.qoe,QZ(a,"protected"),a.provider.videoData.G?a.D2():a.provider.videoData.subscribe("dataloaded",a.D2,a)),oLa(this.videoData))):!this.videoData.loading&& +this.H7&&x4a(this)}; +g.k.MH=function(a){this.ub=a;this.xa&&this.xa.MH(a)}; +g.k.wA=aa(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.isBackground=function(){return this.visibility.isBackground()}; +g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.BM(!0),v4a(this),g.Ho.jk(this.Hy))}; +g.k.pp=function(){h3a(this.Xb())}; +g.k.Lf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e}); +var h,l;g.Ac(Xab,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+iA());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.IU[h]||"",FP:h,Tn:f||"",lM:d,iA:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;y_(this,"dataloaderror");this.Ec(nF(this.playerState,128,b));g.Ho.jk(this.Hy);z_(this);this.Yo()}; +g.k.Cg=function(a){this.Cq=this.Cq.filter(function(b){return a!==b}); +this.logger.debug(function(){return"set preroll ready for "+a}); +g.WP(this.videoData)&&!this.uo()&&this.Lb.vg("pl_pr");this.Gs.Cu()&&y4a(this)}; +g.k.uo=function(){var a;(a=!!this.Cq.length)||(a=this.Ah.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a}; +g.k.jq=function(){return this.Qc.jq()}; +g.k.isPlaying=function(){return this.playerState.isPlaying()}; +g.k.VF=function(){return this.playerState.VF()&&this.videoData.jl}; +g.k.getPlayerState=function(){return this.playerState}; +g.k.getPlayerType=function(){return this.playerType}; +g.k.getPreferredQuality=function(){if(this.Jf){var a=this.Jf;a=a.videoData.bC.compose(a.videoData.u_);a=gL(a)}else a="auto";return a}; +g.k.uF=aa(19);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.ts(this.QC),this.mediaElement=a,this.mediaElement.ea=this,T4a(this),this.Qc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Sj();if(!this.playerState.isError()){var b=pF(this.playerState,512);g.T(b,8)&&!g.T(b,2)&&(b=oF(b,1));a.isView()&&(b=pF(b,64));this.Ec(b)}this.mediaElement= +a;this.mediaElement.ea=this;TO(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);T4a(this);this.Qc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Cl.LJ()&&Mwa(this.mediaElement)}}; +g.k.Sj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Qc.D=c);this.Qc.setMediaElement(null);!a&&bF(this)?N4a(this):EW(this);this.xa&&(xZ(this.xa),D_(this,b));this.Tx.stop();if(this.mediaElement&&(!this.Gs.Cu()||this.playerState.isError()||g.T(this.playerState,2)||this.Ec(oF(this.playerState,512)),this.mediaElement)){g.ts(this.QC);if(a||!this.mediaElement.isView())this.Lb.Fv("mesv_s"),this.mediaElement.stopVideo(), +F_(this);this.mediaElement=this.mediaElement.ea=null}}}; +g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.J(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.T(b.playerState,128))return m.return();if(b.Cl.TK())return b.publish("signatureexpired"),m.return();b.mediaElement&&jX(b.Xb());D4a(b);(g.T(b.playerState,64)||a)&&b.Ec(oF(b.playerState,8));return b.Gs.j&&b.mediaElement?b.Jf||!b.YG?m.Ia(2):g.G(m,b.YG,3):m.return()}if(m.j!= +2&&g.T(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.$N(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.ej()?"fmt.unplayable":"fmt.noneavailable",d=1),g.Cw(Error("selectableFormats")),b.Lf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.oi()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(x_(b));if(n_(b))n=b.Qc,SP(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.jq()&&n.ea.seekTo(Infinity, +{Zc:"seektimeline_peggedToLive",seekSource:34}):g.WP(n.videoData)&&n.getCurrentTime()=0?a:this.getCurrentTime()}; +g.k.lf=function(){var a;return((a=this.videoData.j)==null?0:a.lf)?this.videoData.j.lf(this.getCurrentTime()-this.Dc()):this.mediaElement&&(a=this.mediaElement.QI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN}; +g.k.getDuration=function(a){return g.WP(this.videoData)&&this.ub?this.L("html5_ssap_enable_duration_by_cpn")&&a?TUa(this.ub,a):gX(this.ub):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Dc():this.Vd()?this.Vd():0}; +g.k.AF=function(){var a=new m3a;this.xa?(nJa(this.W.schedule,a),C0a(this.xa,a)):this.mediaElement&&(a.Mw=iF(this.mediaElement));a.Xs=this.Xs;a.Hv=this.Hv;a.C=this.isAtLiveHead()&&this.isPlaying()?r4a(this):NaN;return a}; +g.k.oH=function(a,b){this.Hv+=a;this.Xs+=b}; +g.k.mx=function(){return this.mediaElement?g.uQ(this.videoData)?1:vQ(this.videoData)?this.isAtLiveHead()||this.jq()?1:this.Qc.mx():this.mediaElement.mx():0}; +g.k.uc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.Xb().uc());this.mediaElement&&(Object.assign(b,this.mediaElement.uc()),Object.assign(b,this.EF()));this.xa&&Object.assign(b,this.xa.uc());this.ze&&(b.drm=JSON.stringify(this.ze.uc()));b.state=this.playerState.state.toString(16);g.T(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.dh));this.uo()&&(b.prerolls=this.Cq.join(","));this.videoData.Sd&&(b.ismb=this.videoData.Sd);this.videoData.latencyClass!=="UNKNOWN"&& +(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.zd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& +sN(this.videoData.j)&&(b.segduration=sN(this.videoData.j)),a=this.Qc,b.lat=a.K?FNa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ij.toFixed(3);if(a=g.zT(this))b.optimal_format=a.video.qualityLabel;b.user_qual=NK();b.release_version="youtube.player.web_20240804_00_RC00";g.WP(this.videoData)&&this.ub&&(b.ssap=eX(this.ub))}b.debug_videoId=this.videoData.videoId;return b}; +g.k.addCueRange=function(a){this.Gz([a])}; +g.k.removeCueRange=function(a){this.Ah.Zo([a])}; +g.k.aF=function(a,b){return this.Ah.aF(a,b)}; +g.k.Gz=function(a,b){this.Ah.jf(a,b)}; +g.k.qH=function(a){this.Ah.Zo(a)}; +g.k.Fl=function(){return this.Ah.Fl()||[]}; +g.k.oi=function(){return this.visibility.oi()}; +g.k.zv=function(){this.mediaElement&&this.mediaElement.zv()}; +g.k.Sca=function(){y_(this)}; +g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.k.ML=function(a){var b=a.target.ai();if(this.mediaElement&&this.mediaElement.ai()&&this.mediaElement.ai()===b){e5a(this,a.type);switch(a.type){case "error":var c=kF(this.mediaElement)||"",d=this.mediaElement.Wf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),IZ(this,!0)):x_(this);return}if(this.mediaElement.hasError()&&(J1a(this.Cl,c,{msg:d})||g.WP(this.videoData)&&this.ub&&(d=this.playerState.dh,this.ub.handleError(c,d==null?void 0:d.iA))))return; +if(this.isBackground()&&this.mediaElement.Eh()===4){this.Yo();A_(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||c>0)&&c!==1&&this.fp(c);break;case "ratechange":this.xa&&this.xa.setPlaybackRate(this.mediaElement.getPlaybackRate());u3a(this.Ah);this.Xb().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":g5a(this);this.publish("onLoadedMetadata");vTa(this);c=this.lf();this.videoData.TC&&(this.videoData.TC=c);break; +case "loadstart":vTa(this);break;case "progress":case "suspend":this.Tc();this.publish("onLoadProgress",this,this.mx());break;case "playing":this.Lb.Fv("plev");this.DT&&!n_(this)&&(this.DT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Zc:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.ql()===0;if(c&&(!this.tL||d))return;this.tL=this.tL||!!this.mediaElement.getCurrentTime(); +U4a(this);this.Tc();if(!this.mediaElement||this.mediaElement.ai()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.qx().length>0&&this.mediaElement.Dh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.xa)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.ql()>2||!this.mediaElement.isSeeking()&&OE(this.mediaElement.Dh(),this.mediaElement.getCurrentTime()))&& +(c=this.mediaElement.uc(),c.bh=iF(this.mediaElement).toFixed(3),this.oa("uwe",c));g.WP(this.videoData)&&this.ub&&OUa(this.ub,this.mediaElement.getCurrentTime());break;case "resize":g5a(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.oX&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&this.getCurrentTime()===0&&g.jt){A_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.ai()=== +b){a4a(this.Qc,a,this.ub||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.wE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.WP(this.videoData)&&this.ub?gX(this.ub):void 0;if(!g.T(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.T(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.T(b, +4)&&!d_(d,l);if(m||f&&l)e.hK()>0&&e.ai()&&(h=14);else switch(a.type){case "error":kF(e)&&(h|=128);break;case "pause":g.T(b,256)?(h^=256)||(h=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(h=4,g.T(b,1)&&g.T(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,mF(d,e)):d_(d,e.getCurrentTime())&&(h&=-2);g.T(b,1)&&mF(d,e)&&(h|=1);break;case "seeking":h|=16;g.T(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;mF(d,e);break;case "waiting":g.T(b,2)||(h|=1);mF(d,e);break;case "timeupdate":l=g.T(b,16),f=g.T(b, +4),(g.T(b,8)||l)&&!f&&d_(d,e.getCurrentTime())&&(h=8),mF(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=kF(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.uc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.Wf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.IU[f]||"",FP:f,lM:eE(m),iA:l,cpn:b.dh?b.dh.cpn:""}):h=null,h&&(h.cpn=c));b=nF(b,d,h)}!g.T(this.playerState,1)&&g.T(b,1)&&d5a(this,"evt"+a.type);this.Ec(b)}}}; +g.k.uaa=function(a){a=a.j.availability==="available";a!==this.QF&&(this.QF=a,this.publish("airplayavailabilitychange"))}; +g.k.vaa=function(){var a=(0,g.rt)(),b=this.mediaElement.oi();this.oa("airplay",{ia:b});!b&&!isNaN(this.VK)&&a-this.VK<2E3||(this.VK=a,b!==this.oi()&&(a=this.visibility,a.j!==b&&(a.j=b,a.If()),this.oa("airplay",{rbld:b}),JZ(this)),this.publish("airplayactivechange"))}; +g.k.FF=function(a){if(this.xa){var b=this.xa,c=b.C,d=b.getCurrentTime(),e=Date.now()-c.Y;c.Y=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.N)&&c.B!==3&&yXa(c.xa,d,c.N,c.G);c.policy.G?c.C=NaN:c.D=NaN;eY(c,4,c.B===3?"adfps":"adf");xZ(b)}}; +g.k.Tc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){U3a(this.Qc,this.isPlaying());var c=this.getCurrentTime();!this.xa||g.T(this.playerState,4)&&g.uQ(this.videoData)||TP(this.videoData)&&g.T(this.playerState,32)||E0a(this.xa,c);this.L("html5_enable_video_progress_logging")&&this.playerType===2&&X4a(this,c,this.videoData.lengthSeconds);c>5&&(this.Qc.D=c);var d=g.Ss();d?g.Ho.jk(this.Hy):g.hr(this.Hy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()|| +!e||MQ(this.videoData))&&!g.T(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.T(b.playerState,128)){b.W.zc()&&e5a(b,"pfx");var l=b.getCurrentTime(),m=iF(b.mediaElement),n=g.T(b.playerState,8),p=d_(b.wE,l),q=Rwa(b.wE,l,(0,g.rt)(),m);n&&p?b.Ec(pF(b.playerState,1)):n&&q?(n=b.getDuration(),p=SP(b.videoData),n&&Math.abs(n-l)<1.1?(b.oa("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Xt()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Zc:"videoplayer_loop",seekSource:37})): +CW(b)):(b.playerState.isBuffering()||d5a(b,"progress_fix"),b.Ec(oF(b.playerState,1)))):(n&&!p&&!q&&l>0&&(n=(Date.now()-b.hG)/1E3,p=b.getDuration(),l>p-1&&b.oa("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&iF(b.mediaElement)>5&&b.Ec(pF(b.playerState,1)));b.Tc()}}; +this.mediaElement.qx().length===0?this.Hy=d?g.Ho.Wi(f,100):g.fr(f,100):this.Hy=d?g.Ho.Wi(f,500):g.fr(f,500)}this.videoData.Wk=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.ub)==null||ZUa(h)}!a&&this.isPlaying()&&Y4a(this);a2a(this.Pk,this.Jf,this.Je(),this.isBackground())&&t_(this);this.publish("progresssync",this,a);e&&MQ(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; +g.k.G9=function(){this.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.k.sF=function(){return this.Xb().sF()}; +g.k.SP=function(){return this.xa?this.xa.SP():oO(this.W.schedule,!0)}; +g.k.Ec=function(a){if(g.rF(this.playerState,a))this.W.zc()&&a.seekSource!==this.playerState.seekSource&&this.oa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()}); +var b=new g.hy(a,this.playerState);this.playerState=a;f5a(this);var c=!this.eM.length;this.eM.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.CB.state===8&&!d;g.jy(b,1)&&d&&g.T(this.playerState,8)&&!g.T(this.playerState,64)&&this.xa&&(d0a(this.xa),this.mediaElement&&iF(this.mediaElement)>=5&&Z1a(this.Pk,this.Jf)&&t_(this));(d=g.ZB(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.T(a,1)&&(g.T(a,8)||g.T(a,16))?this.lO.start(d):this.lO.stop();(iy(b,8)<0||g.jy(b, +1024))&&this.Tx.stop();!g.jy(b,8)||this.videoData.Aa||g.T(b.state,1024)||this.Tx.start();g.T(b.state,8)&&iy(b,16)<0&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&vQ(this.videoData)&&(this.fp(this.getCurrentTime()),this.Tc(!0));g.jy(b,2)&&(this.BM(!0),this.W.zc()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&TP(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Fa,cminst:""+(this.videoData.j.Xc()+this.Dc()),maxst:""+this.videoData.j.Z,hts:""+this.videoData.j.Aa, +cmaxst:""+(this.videoData.j.Vd()+this.Dc())},this.oa("sabrSeekableBoundaries",d)));g.jy(b,128)&&this.Yo();this.videoData.j&&this.videoData.isLivePlayback&&!this.O3&&(iy(b,8)<0?rIa(this.videoData.j):g.jy(b,8)&&this.videoData.j.resume());S3a(this.Qc,b);aVa(this.Xb(),b);if(c&&!this.Ka())try{for(var e=g.w(this.eM),f=e.next();!f.done;f=e.next()){var h=f.value;v3a(this.Ah,h);this.publish("statechange",h)}}finally{this.eM.length=0}}}; +g.k.EG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")}; +g.k.yS=function(){this.Lb.tick("qoes")}; +g.k.LP=function(){this.Qc.LP()}; +g.k.EL=function(a,b,c,d){a:{var e=this.Cl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=gE(b);a==="drm.keyerror"&&this.ze&&this.ze.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())P1a(e,a);else{if(e.ea.Lf(a,b,d,c),G1a(e,{detail:c}))break a}else e.Gd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,c5a(e.ea))}}; +g.k.kba=function(){var a=this,b=g.ZB(this.W.experiments,"html5_license_constraint_delay"),c=Rr();b&&c?(b=new g.Oo(function(){B_(a);y_(a)},b),g.P(this,b),b.start()):(B_(this),y_(this))}; +g.k.HG=function(a){this.publish("heartbeatparams",a)}; +g.k.xq=function(a){this.oa("keystatuses",j1a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=k1a(b,c);d=DZ(a)?l1a(a,d):a.D.includes(d)}else{a:{b=k1a(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if((f=this.ze)==null?0:IN(f.j))if((c=this.ze)== +null)c=0;else{b=f=void 0;e=g.w(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=m1a(h,"SD")),b||(b=m1a(h,"AUDIO"));c.wj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});P1a(this.Cl);return}}else{this.videoData.WD||(this.videoData.WD=!0,this.oa("drm",{dphdr:1}),IZ(this,!0));return}var l;if((l=this.ze)==null?0:IN(l.j))return}else if(l=a.Z&&d,c&&!l){P1a(this.Cl);return}d||l1a(a,"AUDIO")&&l1a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +a=j1a(a),this.yT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Lf("drm.keyerror",2,void 0,"info."+a)):(this.yT=!0,this.Gd(new fE("qoe.restart",Object.assign({},{retrydrm:1},a))),t_(this),c5a(this)))}; +g.k.mba=function(){if(!this.videoData.Aa&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.ql()>0&&iF(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Ec(oF(this.playerState,1)),d5a(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");f5a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!cQ(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].le)||this.ze),mfmtinfo:!this.videoData.B,prerolls:this.uo()?this.Cq.join(","): +"0"};if(this.ze){b=this.ze;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=j1a(b.B.values().next().value),b=eE(b);a.drmp=b}var d;Object.assign(a,((d=this.xa)==null?void 0:d.uc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.uc())||{});this.Xb().Gd("qoe.start15s",eE(a));this.publish("loadsofttimeout")}}; +g.k.fp=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,y_(this))}; +g.k.BM=function(a){var b=this;a=a===void 0?!1:a;if(!this.bJ)if(Rz("att_s","player_att")||Tz("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(!(d=a)){l.Ia(2);break}return g.G(l,g.oua(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.va(l,4);e=k3a(b.Xb());if(!e)throw Error();f={};return g.G(l,g.nua((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.bJ)throw Error(); +if(!h.challenge)throw g.Cw(Error("Not sending attestation ping; no attestation challenge string")),Error();b.bJ=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));Tz("att_f", +void 0,"player_att");g.wa(l,0);break;case 4:g.xa(l),Tz("att_e",void 0,"player_att"),g.ua(l)}})})().then(function(){}); +else{var c=new g.QBa(this.videoData);if("c1a"in c.Br&&!g.JK.isInitialized()){Tz("att_wb",void 0,"player_att");this.yO===2&&Math.random()<.01&&g.Cw(Error("Botguard not available after 2 attempts"));if(a)return;if(this.yO<5){g.Po(this.AO);this.yO++;return}}(c=g.RBa(c))?(Tz("att_f",void 0,"player_att"),j3a(this.Xb(),c),this.bJ=!0):Tz("att_e",void 0,"player_att")}}; +g.k.Vd=function(a){return this.Qc.Vd(a===void 0?!1:a)}; +g.k.Xc=function(){return this.Qc.Xc()}; +g.k.Dc=function(){return this.Qc?this.Qc.Dc():0}; +g.k.getStreamTimeOffset=function(){return this.Qc?this.Qc.getStreamTimeOffset():0}; +g.k.fu=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Dc():this.getStreamTimeOffset());return a}; +g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&U1a(this.Pk,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,t_(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; +g.k.getPlaybackRate=function(){return this.playbackRate}; +g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,a==="auto"&&this.mediaElement)){var b=w4a(this);b&&b.videoHeight>0&&(a=qE(b.videoWidth,b.videoHeight))}return a}; +g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())}; +g.k.gt=function(){this.Xb().gt()}; +g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Xb();c.j?(c=WZ(c.j,"engage"),c.qa=a,c.send(b)):b&&b()}; +g.k.Ki=function(a){return this.Xb().Ki(a)}; +g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return SP(this.videoData)&&(this.oZ||b)?this.Qc.isAtLiveHead(a):!1}; +g.k.Lr=function(){var a=this.Vd(),b=this.getCurrentTime(),c;(c=!SP(this.videoData))||(c=this.Qc,c=!(c.j&&c.j.C));return c||this.jq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)}; +g.k.Po=aa(23);g.k.Vu=aa(52);g.k.Xo=function(a){this.Xb().Xo(a)}; +g.k.Oy=function(a){this.Xb().Oy(a)}; +g.k.Pj=aa(27);g.k.lj=aa(31);g.k.mH=function(a){this.Xb().mH(a)}; +g.k.EF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.k.setLoop=function(a){this.loop=a;this.mediaElement&&TO(this.W)&&this.mediaElement.setLoop(a);this.xa&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.xa.policy.Xa=!0:e0a(this.xa))}; +g.k.Xt=function(){return this.mediaElement&&TO(this.W)?this.mediaElement.Xt():this.loop}; +g.k.FS=function(a){this.oa("timestamp",{o:a.toString()});this.Qc.FS(a)}; +g.k.Kd=function(a){this.Lb.tick(a)}; +g.k.vg=function(a){return this.Lb.vg(a)}; +g.k.Fv=function(a){this.Lb.Fv(a)}; +g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.Xb().oa(a,b,c)}; +g.k.Ky=function(a,b,c){c=c===void 0?!1:c;this.Xb().oa(a,b,c)}; +g.k.Gd=function(a){this.Xb().Gd(a.errorCode,eE(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.xa?IYa(this.xa.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.xa?IYa(this.xa.audioTrack):{},(b=this.Qa)==null?void 0:(c=b.j)==null?void 0:c.fK()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Qa)==null?void 0:(e=d.B)==null?void 0:e.fK()))}}; +g.k.lH=function(a,b,c){this.Xb().lH(a,b,c)}; +g.k.vP=function(a){this.videoData.F3=!0;this.Gd(new fE("sabr.fallback",a));IZ(this,!0)}; +g.k.getPlayerSize=function(){return this.SH.getPlayerSize()}; +g.k.gi=function(){return this.SH.gi()}; +g.k.Yh=function(){return this.Lb}; +g.k.Pr=function(){return this.zd.Pr()}; +g.k.getVolume=function(){return this.zd.getVolume()}; +g.k.RF=function(){return this.zd.RF()}; +g.k.isMuted=function(){return this.zd.isMuted()}; +g.k.mA=function(){return this.zd.mA()}; +g.k.L=function(a){return this.W.L(a)}; +g.k.Rs=function(){var a=this.getCurrentTime(),b=a-this.Dc();var c=this.mediaElement?QE(this.mediaElement.Dh()):0;c=Math.floor(Math.max(c-b,0))+100;var d=!this.L("html5_ssdai_disable_seek_to_skip"),e=this.L("html5_enable_sabr_ssdai"),f;if(d&&((f=this.xa)==null?0:f.DH(b,this.Vd())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var h;return((h=this.xa)==null?0:h.Rs(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),e&&this.xa.seek(b+c,{seekSource:89,Zc:"videoplayer_skipServerStitchedAd"}), +c4a(this.Qc,a),!0):!1}; +g.k.zc=function(){return this.W.zc()}; +g.k.Zt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.ow||this.zd.KR(this.videoData.videoId);this.zd.LU();return this.W.Tf||""}; +g.k.kK=function(){if(this.videoData.videoId)return this.videoData.B4}; +g.k.mf=function(){return this.videoData.videoId}; +g.k.zA=function(){return this.zd.Ay}; +g.k.xu=function(){return this.zd.xu()}; +g.k.iC=function(a,b){this.Qc.iC(a,b)}; +g.k.BE=function(){this.Qc.BE()}; +g.k.Ym=function(a){this.zd.Ym(a)}; +g.k.BS=function(a,b){this.zd.BS(a,b)}; +g.k.mT=function(a,b){var c;(c=this.xa)==null||c.mT(a,b)}; +g.k.MO=function(){var a=this.Mr();return!!a&&a.MO()}; +g.k.Bf=function(){return this.ub}; +g.k.LH=function(a,b){this.Xb().LH(a,b)}; +g.k.xF=function(){return this.Xb().xF()}; +g.k.BA=function(){return this.videoData.AZ}; +g.k.yC=function(a){this.videoData.AZ=a}; +g.k.Go=function(){return this.zd.Go()}; +g.k.XF=function(){return this.zd.XF(this)}; +g.k.JH=function(a){this.videoData.B4=a};g.z(g.G_,g.O);g.G_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Sa(a),f=A2[e];if(f){try{f.dispose()}catch(l){g.Bw(l)}A2[e]=null}var h=new g.G_(a,b,c,d);h.addOnDisposeCallback(function(){A2[e]=null;h.H3&&h.H3()}); +return A2[e]=h}catch(l){throw g.Bw(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; +g.k=g.G_.prototype;g.k.cj=function(){return this.visibility}; +g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)}; +g.k.Mm=function(){this.WQ||(this.WQ=g.gA(wR(),EBa()));return this.WQ}; +g.k.Sj=function(){if(this.mediaElement){this.SC&&(this.events.Nc(this.SC),this.SC=null);g.ts(this.Mu);this.wb&&this.wb.Sj(!0);this.template.Sj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.rM()}catch(a){g.Cw(a)}this.mediaElement=null}}; +g.k.Vc=function(){return this.wb}; +g.k.My=function(){var a=this;this.wb!==this.sb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.wb)==null?void 0:b.getPlayerType())+", vid "+((c=a.wb)==null?void 0:c.getVideoData().videoId)}),DW(this,this.sb))}; +g.k.cA=function(a,b,c){var d=this,e=this.Lb;a===2&&(e=new NT(this.W));return new g.v_(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)}; +g.k.zaa=function(){M_(this)||(this.logger.debug("application playback ready"),this.Pq(5))}; +g.k.Iba=function(a){if(!M_(this)){this.logger.debug("playback ready");W5a(this);var b=a.getPlayerState();a.VF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}}; +g.k.canPlayType=function(a){return jE(a)}; +g.k.U=function(){return this.W}; +g.k.getVideoData=function(){return this.wb.getVideoData()}; +g.k.CF=aa(17);g.k.Md=function(){return this.sb.getVideoData()}; +g.k.getVideoLoadedFraction=function(a){a=g.cR(this,a);return a?g.KQ(a.getVideoData())?1:(a=a.Je())?a.mx():0:0}; +g.k.qb=function(){return this.template}; +g.k.Bb=function(){return this.Qd}; +g.k.Yh=function(){return this.Lb}; +g.k.wC=function(a){var b=g.cR(this,1);b&&CW(b,a)}; +g.k.Pr=function(){var a=this.Qd.Pr();this.Ua.publish("videoStatsPingCreated",a);return a}; +g.k.getVolume=function(){return Math.round(this.Ua.getVolume())}; +g.k.RF=function(){return this.Ua.isFullscreen()}; +g.k.isMuted=function(){return this.Ua.isMuted()}; +g.k.mA=function(){if(this.wb===this.sb&&this.Hb)return this.Hb.postId}; +g.k.Bda=function(){var a=this;this.L("use_rta_only_for_player")||(g.mC(this.W)?g.XO(this.W,g.HQ(this.getVideoData())).then(function(b){xR(wR(),b);eMa(a.getVideoData(),a.W,a.Mm())}):eMa(this.getVideoData(),this.W,this.Mm()))}; +g.k.PP=function(a){var b=this;return g.J(function(c){return b.UB?c.return(b.UB.PP(a)):c.return(Promise.reject("web po not available"))})}; +g.k.lI=function(a){this.Ua.publish("d6de4videobindingchange",a)}; +g.k.LU=function(){this.UB&&this.UB.LU()}; +g.k.KR=function(a){return this.UB?this.UB.KR(a):""}; +g.k.OT=function(a){this.UB=a}; +g.k.iH=function(a){a===1&&(this.Lb.tick("vr"),V4a(this.wb),ZNa(this.Lb,this.wb.getVideoData(),V5a(this)),LOa(this.Qd));var b=this.W;(UO(b)&&b.N||g.BO(b))&&(this.Ef()||this.Ua.Ai("onAdStateChange",a))}; +g.k.setLoopVideo=function(a){this.wb===this.sb&&this.wb.Xt()!==a&&(this.wb.setLoop(a),this.Ua.ib("onLoopChange",a))}; +g.k.getLoopVideo=function(){return this.wb.Xt()}; +g.k.setLoopRange=function(a){var b=!1;!!this.Hb!==!!a?b=!0:this.Hb&&a&&(b=this.Hb.startTimeMs!==a.startTimeMs||this.Hb.endTimeMs!==a.endTimeMs||this.Hb.postId!==a.postId||this.Hb.type!==a.type);if(b){if(this.wb&&dQ(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.cR(this))==null||c.oa("slr",{et:b})}this.sb.Ah.qf("applooprange");if(a)c=new g.PC(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(c);else{this.Md().clipConfig=void 0;var d,e;((d= +this.Hb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Hb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Hb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.$s("repeatChapterLoopEvent",c))}this.Hb=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.wb===this.sb&&(this.AM(),this.wb.pp())}}; +g.k.getLoopRange=function(){return this.Hb}; +g.k.AM=function(){var a="";this.Hb?this.wb!==this.sb?a="pnea":H5a(this,this.sb.getCurrentTime())&&(this.Hb.loopCount=0,a="ilr"):a="nlr";if(this.wb&&dQ(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.cR(this))==null||d.oa("slrre",{rej:a,ct:this.sb.getCurrentTime(),lst:(b=this.Hb)==null?void 0:b.startTimeMs,let:(c=this.Hb)==null?void 0:c.endTimeMs})}else{var e;(e=g.cR(this))==null||e.oa("slrre",{})}a||L5a(this)}; +g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=n5a(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.W.D&&g.xs("yt-player-playback-rate",a),this.Ua.Ai("onPlaybackRateChange",a)))}; +g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return nR(this.Qd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.WP(this.getVideoData());a=d||e?g.cR(this):g.cR(this,a);if(!a)return 0;if(e&&this.ub)return b=this.ub,a=a.getCurrentTime(),c?c=hX(b,c):(c=SUa(b,a),c=a-c/1E3),c;if(b){if(d&&this.ue&&(c=this.ue.Wa/1E3,c!==0))return c;c=L_(this,a);return U_(this,c.getCurrentTime(),c)}d&&this.ue?(c=this.ue,a=a.getCurrentTime(),c=(c=vUa(c, +a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c}; +g.k.vA=function(){var a=g.cR(this);if(!a)return 0;a=L_(this,a);return U_(this,a.vA(),a)}; +g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.WP(c);var f=d||e?g.cR(this):g.cR(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.ub)return this.L("html5_ssap_enable_duration_by_cpn")?b=TUa(this.ub,this.ub.Gl()):(b=this.ub,d= +b.ea.getCurrentTime()*1E3,b=(b=cX(b,d))?(b.Zh()-b.Ye())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=K_(this,f),U_(this,f.getDuration(),f);d&&this.ue?(a=this.ue,f=f.getCurrentTime(),f=(f=wUa(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f}; +g.k.lf=function(a){var b=g.cR(this,a);return b?this.Ef(b)?(b=K_(this,b),b.lf()-b.getCurrentTime()+this.getCurrentTime(a)):b.lf():0}; +g.k.addPlayerResponseForAssociation=function(a){this.ub&&this.ub.addPlayerResponseForAssociation(a)}; +g.k.finishSegmentByCpn=function(a,b){return this.ub?this.ub.finishSegmentByCpn(a,b):[]}; +g.k.sP=function(){this.template.sP();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Ena(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.fca)}; +g.k.getDebugText=function(a){var b=this.sb.uc(a);if(this.wb&&this.wb!==this.sb){for(var c=this.wb.uc(a),d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=$d(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.de("video-ads");f?(b6a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.de("videoAdUiSkipContainer"),l=g.de("ytp-ad-skip-button-container"),m=g.de("ytp-skip-ad-button"),n=h||l||m;n?(b6a(n,f),f.ima=h?1: +0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.BF("opacity"),c=this.mediaElement.au().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.BF("display"));a&&((a=(0,g.RZ)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date= +(new Date).toString();b.origin=window.origin;b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; +g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240804_00_RC00"},b=this.getPlayerStateObject().dh;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; +g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(M_(this))return 3;var b;if(a&&((b=this.ue)==null?0:b.Ll(this.getCurrentTime())))return 2;var c;return g.WP(this.getVideoData())&&((c=this.ub)==null?0:c.Ll())?2:g.cR(this).getPlayerType()}; +g.k.UA=function(){return g.WP(this.getVideoData())&&this.ub?this.ub.UA():!1}; +g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?nR(this.Qd).De:g.cR(this,a).getPlayerState()}; +g.k.getAppState=function(){return this.appState}; +g.k.ML=function(a){switch(a.type){case "loadedmetadata":this.xM.start();a=g.w(this.oC);for(var b=a.next();!b.done;b=a.next())b=b.value,T5a(this,b.id,b.zfa,b.yfa,void 0,!1);this.oC=[];break;case "loadstart":this.Lb.Fv("gv");break;case "progress":case "timeupdate":QE(a.target.Dh())>=2&&this.Lb.Fv("l2s");break;case "playing":g.RO&&this.xM.start();if(g.mC(this.W))a=!1;else{b=g.qR(this.Bb());a=this.mediaElement.BF("display")==="none"||this.mediaElement.getSize().area()===0;var c=wX(this.template),d=this.wb.getVideoData(), +e=g.Cy(this.W);d=eQ(d);b=!c||b||e||d||this.W.ob;a=a&&!b}a&&(this.wb.oa("hidden",{},!0),this.getVideoData().yc||(this.getVideoData().yc=1,this.E0(),this.wb.playVideo()))}}; +g.k.onLoadProgress=function(a,b){this.Ua.Hc("onLoadProgress",b)}; +g.k.Eca=function(){this.Ua.publish("playbackstalledatstart")}; +g.k.onVideoProgress=function(a,b){a=L_(this,a);b=U_(this,a.getCurrentTime(),a);this.Ua.Hc("onVideoProgress",b)}; +g.k.onAutoplayBlocked=function(){this.Ua.Ai("onAutoplayBlocked")}; +g.k.Sba=function(){this.Ua.publish("progresssync")}; +g.k.Hba=function(){this.Ua.Hc("onPlaybackPauseAtStart")}; +g.k.Baa=function(a){if(this.getPresentingPlayerType()===1){g.jy(a,1)&&!g.T(a.state,64)&&this.Md().isLivePlayback&&this.sb.isAtLiveHead()&&this.Ua.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.jy(a,2)){if(this.Hb&&this.Hb.endTimeMs>=(this.getDuration()-1)*1E3){L5a(this);return}y5a(this)}if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.dh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Ai("onError",qMa(b.errorCode));this.Ua.Hc("onDetailedError",{errorCode:b.errorCode, +errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.FP,cpn:b.cpn});(0,g.rt)()-this.W.Rf>6048E5&&this.Ua.Hc("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!Rz("pbresume","ad_to_video")&&Rz("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.Pz(b,"ad_to_video");Oz("pbresume",void 0,"ad_to_video");LOa(this.Qd)}this.Ua.publish("applicationplayerstatechange",a)}}; +g.k.Y0=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("presentingplayerstatechange",a)}; +g.k.Mk=function(a){J_(this,tF(a.state));g.T(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(S_(this,{muted:!1,volume:this.Si.volume},!1),T_(this,!1))}; +g.k.WR=function(a,b,c){a==="newdata"&&o5a(this);this.Ua.publish("applicationvideodatachange",a,c)}; +g.k.zG=function(a,b){this.Ua.Hc("onPlaybackAudioChange",this.Ua.getAudioTrack().Yb.name);this.Ua.publish("internalaudioformatchange",this.Ua.getAudioTrack().Yb.id,b)}; +g.k.UG=function(a){var b=this.wb.getVideoData();a===b&&this.Ua.Ai("onPlaybackQualityChange",a.B.video.quality)}; +g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId}); +this.W.zc()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.sb&&(this.W.Gj=c.oauthToken);if(b===this.sb){this.getVideoData().enableServerStitchedDai&&!this.ue?this.ue=new g.SW(this.Ua,this.W,this.sb):!this.getVideoData().enableServerStitchedDai&&this.ue&&(this.ue.dispose(),this.ue=null);if(this.W.zc()&&g.WP(c)){var d,e;b.oa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.Eq.j)==null?void 0:(e=d.getVideoData())==null? +void 0:e.clientPlaybackNonce)||""})}var f,h;!g.WP(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.Eq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.WP(this.getVideoData())&&this.ub&&(this.W.zc()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.ub.dispose(),this.ub=null):(hUa(this.Eq),d=RW(this.Eq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Eq.enqueue(d,!0),PW(this.Eq,0,this.getDuration(1)* +1E3,[d]),iUa(this.Eq,this.getVideoData().clientPlaybackNonce,[d]),this.ub&&(this.ub.dispose(),this.ub=null,this.W.zc()&&b.oa("ssap",{tlmdis:1})),this.W.zc()&&b.oa("ssap",{tlmcreate:1}),this.ub=new MUa(this.Ua,this.Eq,this.sb),this.sb.MH(this.ub))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),xU(this.Qd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.wb===this.sb?(GO(c.Da,c.EW),D5a(this)):B5a(this));b.getPlayerType()===1&&(this.W.Va&& +a6a(this),this.getVideoData().isLivePlayback&&!this.W.Wq&&this.Sg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((ALa(c)||this.getVideoData().Uv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&N5a(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Hc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.AM();(d=c.BH)?this.Wr.RX(d,c.clientPlaybackNonce):IVa(this.Wr)}; +g.k.XO=function(){O_(this,null);this.Ua.Hc("onPlaylistUpdate")}; +g.k.Rba=function(a){delete this.kM[a.getId()];this.sb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Wa)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.Wa)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.w(q),c=b.next();!c.done;c=b.next())if(c=c.value, +e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.Q(c,g.ZP),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.Q(a,g.ZP))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; +g.k.Pq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(J_(this,-1),J_(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))}; +g.k.Sg=function(a,b,c,d,e){this.sb.Lf(a,b,c,d,e)}; +g.k.Ps=function(a,b){this.sb.handleError(new fE(a,b))}; +g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.cR(this,a);if(!c)return!1;a=K_(this,c);c=L_(this,c);return a!==c?a.isAtLiveHead(U_(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; +g.k.Lr=function(){var a=g.cR(this);return a?K_(this,a).Lr():0}; +g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.cR(this,d))this.appState===2&&Q_(this),this.Ef(d)?V_(this)?this.ue.seekTo(a,{seekSource:e},b,c):this.bd.seekTo(a,{seekSource:e},b,c):g.WP(this.getVideoData())&&this.ub?this.ub.seekTo(a,{jI:!b,FU:c,Zc:"application",seekSource:e}):d.seekTo(a,{jI:!b,FU:c,Zc:"application",seekSource:e})}; +g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; +g.k.IB=function(){this.Ua.Hc("SEEK_COMPLETE")}; +g.k.yL=function(){this.Ua.ib("onAbnormalityDetected")}; +g.k.sca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.T(a.getPlayerState(),512)||Q_(this):this.Ua.Hc("SEEK_TO",b)}; +g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayActiveChange",this.Ua.oi())}; +g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayAvailabilityChange",this.Ua.QF())}; +g.k.showAirplayPicker=function(){var a;(a=this.wb)==null||a.zv()}; +g.k.YR=function(){this.Ua.publish("beginseeking")}; +g.k.FG=function(){this.Ua.publish("contentPoTokenReady")}; +g.k.dS=function(){this.Ua.publish("endseeking")}; +g.k.getStoryboardFormat=function(a){return(a=g.cR(this,a))?K_(this,a).getVideoData().getStoryboardFormat():null}; +g.k.Ak=function(a){return(a=g.cR(this,a))?K_(this,a).getVideoData().Ak():null}; +g.k.Ef=function(a){a=a||this.wb;var b=!1;if(a){a=a.getVideoData();if(V_(this))a=a===this.ue.ea.getVideoData();else a:if(b=this.bd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.w(b.B);for(var c=b.next();!c.done;c=b.next())if(a.rd===c.value.rd){a=!0;break a}a=!1}b=a}return b}; +g.k.qE=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e}); +var l="",m=V_(this),n;(n=g.cR(this))==null||n.oa("appattl",{sstm:this.ue?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?sUa(this.ue,a,b,c,d,e,f,h):kVa(this.bd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); +return l}; +g.k.NF=function(a,b,c,d,e,f,h){if(V_(this)){var l=sUa(this.ue,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""}; +g.k.Xu=function(a){var b;(b=this.ue)==null||b.Xu(a)}; +g.k.Pz=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;V_(this)||tVa(this.bd,a,b)}; +g.k.mI=function(a,b,c){if(V_(this)){var d=this.ue,e=d.wc.get(a);e?(c===void 0&&(c=e.Xd),e.durationMs=b,e.Xd=c):d.Pl("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.bd;e=null;for(var f=g.w(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.rd===a){e=h;break}e?(c===void 0&&(c=e.Xd),sVa(d,e,b,c)):kX(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; +g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.Ef();a=new g.IP(this.W,a);d&&(a.rd=d);O5a(this,a,b,c)}; +g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Vc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.oN,d=this.Zk.N,c.C!==a&&(c.wb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=oTa(b,a,this.Zk.N),c!=null?(b.oa("sgap",c),b.getVideoData().Y&&E_(b,!1)):(a=a.getVideoData(),b=this.oN,b.j!== +a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; +g.k.NJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.cR(this);f&&(K_(this,f).O3=!0);FTa(this.Zk,a,b,c,d).then(function(){e.Ua.Hc("onQueuedVideoLoaded")},function(){})}; +g.k.Go=function(){return this.Zk.Go()}; +g.k.XF=function(a){return this.Zk.XF(a)}; +g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Zk.clearQueue(a,b)}; +g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Md().enableServerStitchedDai&&this.sb&&!uZ(this.sb)){var f;(f=this.sb)==null||f.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.IP(this.W,a);g.QO(this.W)&&!f.Qk&&OT(this.Lb);var l,m=this.Lb,n=(l=f.Ya)!=null?l:"";m.timerName=n;this.Lb.vg("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Lb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& +!this.L("html5_shorts_gapless_always_fallback")){l=ITa(this.Zk,f,b);if(l==null){J_(this,-1);a=this.Zk;a.app.U().L("html5_gapless_new_slr")?J5a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().YD=!0;var p,q;(p=a.j)==null||(q=p.xa)==null||q.resume();var r;(r=a.j)==null||jX(r.Xb());c={Zc:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Vc())==null||t.seekTo(HTa(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.cR(a.app))==null||u.playVideo(!0)}a.K();return!0}t= +this.L("html5_shorts_gapless_preload_fallback");u=this.Zk.j;t&&u&&!u.Ka()&&(p=u.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?X_(this,b,p):Y_(this,b,p.videoId,p.rd),this.Fy.set(p,u,3600));this.Zk.clearQueue(t);var y;(y=g.cR(this))==null||y.oa("sgap",{f:l})}if(e){for(;f.Xm.length&&f.Xm[0].isExpired();)f.Xm.shift();h=f.Xm.length-1;h=h>0&&e.B(f.Xm[h])&&e.B(f.Xm[h-1]);f.Xm.push(e)}c||(a&&QT(a)?(MO(this.W)&&!this.Bj&&(a.fetch=0),O_(this,a)):this.playlist&&O_(this,null),a&&(this.Bj= +Tr(!1,a.external_list)));this.Ua.publish("loadvideo");b=this.Ju(f,b,d);h&&this.Sg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Xm.join()).replace(/[;:,]/g,"_"));return b}; +g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=Q5a(this,b,a,e);else{var h=Yr(a);f=Y_(this,b,h,e)}if(this.Fy.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null; +a=new g.IP(this.W,a);e&&(a.rd=e);return P5a(this,a,b,c,d)}; +g.k.setMinimized=function(a){this.visibility.setMinimized(a);(a=OOa(this.Qd))&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")}; +g.k.setInline=function(a){this.visibility.setInline(a)}; +g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Qd;a=a.J.U().showInlinePreviewUi?a.Ge.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))}; +g.k.Ry=function(a){var b=this.W.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.W.jl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.OP&&b?this.OP.start():this.yX():this.visibility.Ry(a)}; +g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)}; +g.k.yX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&is(b).catch(function(c){return g.Cw(c)})}; +g.k.pca=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.Ry(!0):this.Ry(!1)}; +g.k.togglePictureInPicture=function(){var a=g.cR(this);a&&a.togglePictureInPicture()}; +g.k.Ju=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b}); +Rz("_start",this.Lb.timerName)||g.Lq(Hz)(void 0,this.Lb.timerName);var d=!1,e=G5a(this,b,a,!1);e?(d=!0,a.dispose()):(e=A5a(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&w_(e)&&g.BW(e),this.xM.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),DW(this,e));e===this.sb&&(this.W.Gj=a.oauthToken);if(!w_(e))return!1;if(e===this.sb){this.Pq(1);c=Q_(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.Dq.j)this.onVideoDataChange("dataloaded", +e,e.getVideoData());return c}D4a(e);return!0}; +g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Md().enableServerStitchedDai&&this.sb&&!uZ(this.sb)&&a&&Object.keys(a).length>0){var d;(d=this.sb)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&QT(a))if(this.Lx=!0,O_(this,a),(a=g.RT(this.playlist))&&a.qe())$_(this,a,b);else this.playlist.onReady(function(){P_(c)}); +else{b||(b=this.getPresentingPlayerType());b===1&&this.XO();d=new g.IP(this.W,a);var e=g.uO(this.W)&&!this.W.ra&&b===1&&!d.isAd()&&!d.wc;this.Ua.publish("cuevideo");e?(this.Vc().getVideoData().loading=!0,gOa(d,a?a:{}).then(function(f){$_(c,f,b)}),d.dispose()):$_(this,d,b)}}; +g.k.vp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(wO(this.W)||g.kC(this.W))return b=b||{},b.lact=tv(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;aOa(this.Lb);this.Lb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0}; +g.k.cuePlaylist=function(a,b,c,d){this.Lx=!0;R5a(this,a,b,c,d)}; +g.k.loadPlaylist=function(a,b,c,d){this.Lx=!1;R5a(this,a,b,c,d)}; +g.k.kF=function(){return this.Ua.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Kl())}; +g.k.Ut=aa(13); +g.k.nextVideo=function(a,b){var c=g.$P(this.sb.getVideoData());g.tR(this.Ua)&&c?this.vp(c.videoId,b?c.XE:c.sessionData,c.playlistId,b,void 0,c.nX||void 0):this.Bj?this.Ua.Hc("onPlaylistNext"):this.getPresentingPlayerType()===3?nR(this.Qd).nextVideo():!this.playlist||MO(this.W)&&!this.Ua.isFullscreen()||(this.playlist.Kl(a)&&ST(this.playlist,bOa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Ju(g.RT(this.playlist,void 0, +b,a),1)):this.Lx=!1)}; +g.k.previousVideo=function(a){this.Bj?this.Ua.Hc("onPlaylistPrevious"):this.getPresentingPlayerType()===3?nR(this.Qd).hM():!this.playlist||MO(this.W)&&!this.Ua.isFullscreen()||(this.playlist.aq(a)&&ST(this.playlist,cOa(this.playlist)),this.playlist.loaded?this.Ju(g.RT(this.playlist),1):this.Lx=!1)}; +g.k.playVideoAt=function(a){this.Bj?this.Ua.Hc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ju(g.RT(this.playlist,a),1):this.Lx=!1,ST(this.playlist,a))}; +g.k.getPlaylist=function(){return this.playlist}; +g.k.vF=aa(21);g.k.waa=function(a){this.Ua.Hc("onCueRangeEnter",a.getId())}; +g.k.xaa=function(a){this.Ua.Hc("onCueRangeExit",a.getId())}; +g.k.Gz=function(a,b,c){var d=g.cR(this,b);if(d){var e=this.Md();if(g.WP(e)){if(this.ub)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.ub.Ll()&&(this.sb.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.sb.getVideoData().clientPlaybackNonce}),d=this.sb),b===1)for(var f=dX(this.ub,e.clientPlaybackNonce),h=g.w(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Sl=f,l.C=e.clientPlaybackNonce; +else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.w(a),f=e.next();!f.done;f=e.next())f.value.C=this.ub.Gl();e=g.w(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.Gz(a,c);b&&this.getPresentingPlayerType()!==b||I_(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.sb.oa("ssap",{acrlpnf:this.sb.getVideoData().clientPlaybackNonce})}; +g.k.qH=function(a,b){var c=g.cR(this,b);c&&(c.qH(a),b&&this.getPresentingPlayerType()!==b||I_(this,"cuerangesremoved",a))}; +g.k.iz=function(a){var b=this.Vc()||this.sb,c=b.Ah;if(c){var d=this.getPresentingPlayerType();if(this.W.zc()){var e=c.AK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.iz(d,a):c.iz(d)}return 0}; +g.k.Aaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.tw(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.L("web_playback_associated_ve");d={cpn:b.getVideoData().clientPlaybackNonce,csn:e};b.getVideoData().Ma&&(f||h)&&(f=g.pw(b.getVideoData().Ma),g.Vw(e,f),h&&(d.playbackVe=f.getAsJson()));b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo);e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().K&&(e.cttAuthInfo= +{token:b.getVideoData().K,videoId:b.getVideoData().videoId});g.$s("playbackAssociated",d,e)}else g.Cw(new g.Ks("CSN Missing or undefined during playback association"))} +var b=this;this.getPresentingPlayerType();ZNa(this.Lb,this.wb.getVideoData(),V5a(this));N_(this)&&this.W.D&&CQ(this.Md())==="embedded"&&this.C_&&Math.random()<.01&&g.$s("autoplayTriggered",{intentional:this.TZ});this.C_=!1;LOa(this.Qd);this.L("web_player_defer_ad")&&C5a(this);this.Ua.Hc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),HO(this.W))||a();var c={};this.getVideoData().K&&(c.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId});c.sampleRate= +20;Qz("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.OO(this.W)||g.UN(this.W)==="MWEB"?g.Ps(g.Rs(),function(){R_(b)}):R_(this); +this.AM();K5a(this)}; +g.k.IG=function(){this.Ua.publish("internalAbandon");W_(this)}; +g.k.onApiChange=function(){this.W.N&&this.wb?this.Ua.Ai("onApiChange",this.wb.getPlayerType()):this.Ua.Ai("onApiChange")}; +g.k.uba=function(){var a=this.mediaElement;a={volume:g.Cd(Math.floor(a.getVolume()*100),0,100),muted:a.gK()};a.muted||T_(this,!1);this.Si=g.Fc(a);this.Ua.Ai("onVolumeChange",a)}; +g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.OR)&&(this.OR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.OR}),this.Ua.Hc("onMutedAutoplayStarts"))}; +g.k.onFullscreenChange=function(){var a=X5a(this);this.qn(a?1:0);Z5a(this,!!a)}; +g.k.qn=function(a){var b=!!a,c=!!this.rA()!==b;this.visibility.qn(a);this.template.qn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&X5a(this)===this.mediaElement.Ib()&&this.mediaElement.ZE();this.template.resize();c&&this.Lb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Md(),b={fullscreen:b,videoId:a.gO||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Hc("onFullscreenChange",b))}; +g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.rA=function(){return this.visibility.rA()}; +g.k.fca=function(){this.wb&&(this.rA()!==0&&this.rA()!==1||this.qn(X5a(this)?1:0),this.W.jl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.ZE())}; +g.k.lba=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("liveviewshift",a)}; +g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); +var b=g.cR(this,a);b&&(this.appState===2?(g.QO(this.W)&&OT(this.Lb),Q_(this)):g.T(b.getPlayerState(),2)?(b=36,this.getVideoData().Ck()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())}; +g.k.pauseVideo=function(a,b){(a=g.cR(this,a))&&a.pauseVideo(b)}; +g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"}); +var b=this.sb.getVideoData(),c=new g.IP(this.W,{video_id:b.gO||b.videoId,oauth_token:b.oauthToken});c.Z=g.Fc(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.UW=!0);this.cancelPlayback(6);$_(this,c,1)}; +g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b}); +var d=g.cR(this,b);d?b===2&&d.getPlayerType()===1&&(PLa(this.Md())||g.WP(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.W.zc()&&d.oa("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.wb&&(this.logger.debug("cancel playback, destroy modules"),xU(this.Qd,a)),b===1&&(d.stopVideo(),W_(this)),d.Yo(void 0,a!==6),I_(this,"cuerangesremoved",d.Fl()),d.Ah.reset(),this.Zk&&d.isGapless()&& +(d.Sj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; +g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.cR(this,b))&&FJa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; +g.k.Ki=function(a){var b=g.cR(this);return b&&FJa(this.W,a)?b.Ki(a):null}; +g.k.updatePlaylist=function(){!MO(this.W)&&g.uO(this.W)&&E5a(this);this.Ua.Hc("onPlaylistUpdate")}; +g.k.setSizeStyle=function(a,b){this.O2=a;this.L("web_log_theater_mode_visibility")?this.AC(b):this.jR=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()}; +g.k.AC=function(a){this.visibility.AC(a)}; +g.k.Ek=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.Ek():this.jR}; +g.k.isMinimized=function(){return this.visibility.isMinimized()}; +g.k.isInline=function(){return this.visibility.isInline()}; +g.k.Ej=function(){return this.visibility.Ej()}; +g.k.SA=function(){return this.visibility.SA()}; +g.k.ZA=function(){return this.visibility.ZA()}; +g.k.iR=function(){return this.O2}; +g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return nR(this.Qd).getAdState();if(!this.Ef()){var a=yU(this.Bb());if(a)return a.getAdState()}return-1}; +g.k.eca=function(a){var b=this.template.getVideoContentRect();Vl(this.p_,b)||(this.p_=b,this.wb&&B_(this.wb),this.sb&&this.sb!==this.wb&&B_(this.sb),this.rA()===1&&this.XG&&Z5a(this,!0));this.qR&&g.Id(this.qR,a)||(this.Ua.publish("appresize",a),this.qR=a)}; +g.k.Kh=function(){return this.Ua.Kh()}; +g.k.zca=function(){this.getPresentingPlayerType()===2&&this.bd.isManifestless()?rVa(this.bd):(this.ue&&(yUa(this.ue),W_(this)),x5a(this,"signature"))}; +g.k.E0=function(){this.Sj();H_(this)}; +g.k.Aba=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.W.experiments.kb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")}; +g.k.EG=function(){this.Ua.Hc("CONNECTION_ISSUE")}; +g.k.HG=function(a){this.Ua.publish("heartbeatparams",a)}; +g.k.uM=function(a){this.Ua.ib("onAutonavChangeRequest",a!==1)}; +g.k.Je=function(){return this.mediaElement}; +g.k.setBlackout=function(a){this.W.ob!==a&&(this.W.ob=a,this.wb&&(this.wb.pp(),this.W.Va&&a6a(this),this.wb.Xo(a)))}; +g.k.Cba=function(){var a=g.cR(this);if(a){var b=!this.Ua.UF();(a.oZ=b)||a.Tx.stop();a.videoData.j&&(b?a.videoData.j.resume():rIa(a.videoData.j));a.xa&&(b?a.xa.resume():D_(a,!0));g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Ec(pF(a.playerState,512)):a.Ec(oF(a.playerState,512));a=a.Xb();a.qoe&&(a=a.qoe,g.NZ(a,g.LI(a.provider),"stream",[b?"A":"I"]))}}; +g.k.onLoadedMetadata=function(){this.Ua.Hc("onLoadedMetadata")}; +g.k.onDrmOutputRestricted=function(){this.Ua.Hc("onDrmOutputRestricted")}; +g.k.nB=function(){this.TZ=!0}; +g.k.ya=function(){this.Qd.dispose();this.N8.dispose();this.bd.dispose();this.ue&&this.ue.dispose();this.Eq.removeAll();this.Eq.dispose();this.ub&&this.ub.dispose();this.sb.dispose();this.Sj();g.jb(g.xc(this.kt),this.playlist);g.O.prototype.ya.call(this)}; +g.k.L=function(a){return this.W.L(a)}; +g.k.setScreenLayer=function(a){this.screenLayer=a}; +g.k.getInternalApi=function(){return this.Ua.getInternalApi()}; +g.k.createSubtitlesModuleIfNeeded=function(){return this.Qd.createSubtitlesModuleIfNeeded()}; +g.k.isOrchestrationLeader=function(){var a=AU(this.Qd);return a?a.isOrchestrationLeader():!1}; +g.k.getVideoUrl=function(a,b,c,d,e){if(this.Hb&&this.Hb.postId)return a=this.W.getVideoUrl(a),a=Mi(a,"v"),a.replace("/watch","/clip/"+this.Hb.postId);var f=this.Ua.jd()||this.W.Ma==="shortspage",h=g.OQ(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)}; +g.k.xu=function(){return this.Zk.xu()}; +g.k.Ym=function(a){this.Ua.publish("spsumpstatuschange",a)}; +g.k.BS=function(a,b){this.Ua.publish("spsumpreject",a,b)}; +g.k.wG=function(){try{for(var a=g.w(Object.values(this.kt)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ka()||c.wG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.w(wVa(this.Fy)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ka()||f.wG()}this.sb.wG()}catch(h){g.Cw(h)}}; +g.k.iU=function(){if(this.ue){var a=(0,g.rt)();return this.ue.iU(a)}return!1}; +var A2={};var o6a=/[&\?]action_proxy=1/,n6a=/[&\?]token=([\w-]*)/,p6a=/[&\?]video_id=([\w-]*)/,q6a=/[&\?]index=([\d-]*)/,r6a=/[&\?]m_pos_ms=([\d-]*)/,t6a=/[&\?]vvt=([\w-]*)/,f6a="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),s6a="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),i6a={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"},j6a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},l6a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};c0.prototype.kB=function(a){this.player.Yh().tick(a)}; +c0.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.kB("a_bid_s");var e=d6a();if(e!==null)return d&&this.kB("a_bid_f"),this.B(a,b,e);e=e6a();d&&Ie(e,function(){c.kB("a_bid_f")}); +return e.then(function(f){return c.B(a,b,f)})}; +c0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Ww;var f=e.Zd;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Ij;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Ch:0,AUTONAV_STATE:b0(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Lr()*1E3,LACT:tv(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0, +VIS:this.player.getVisibilityState(),P_H:this.player.qb().gi().height,P_W:this.player.qb().gi().width,YT_REMOTE:e?e.join(","):""},n=br(ar);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())}); +c!==""&&(m.BISCOTTI_ID=c);c={};$q(a)&&(c.sts="19940",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=Xq(g.oo(a,m),c);return p.split("?").length!==2?Ge(Error("Invalid AdBreakInfo URL")):g.XO(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Zq()){var r=wR();xR(r,q)}q=d.player.Mm(r);r=u6a(d,p,m,l.isMdxPlayback,h);return g.Wz(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})}; +c0.prototype.reset=function(){this.C=this.j=1};g.z(v6a,c0); +v6a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Ww;var e=b.Zd;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:w6a(this,a,{Ww:d,Zd:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.Cw(Error("Invalid AdBreakInfo URL")),Ge(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=n6a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=o6a.test(h);e=p6a.exec(h);e=e!=null&&e.length>= +2?e[1]:"";var n=q6a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=r6a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=FO(this.player.U().Fa),r=g.Py(this.player.getVideoData(1).Ma,!0);h6a(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(tv()),playerHeightPixels:Math.trunc(this.player.qb().gi().height),playerWidthPixels:Math.trunc(this.player.qb().gi().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19940,autonavState:b0(this.player.U())}; +if(l){l={};var t=this.player.U().Ij;k6a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=s6a.includes(q)?void 0:g.Ar("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,y=t.length;u1&&A[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=m6a(l)}h=t6a.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m}; +m=TLa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Ch:0)*1E3))?String(d):void 0;u=this.player.Lr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d, +driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return x6a(this,b)};var bcb={Dka:"replaceUrlMacros",Wja:"onAboutThisAdPopupClosed",Sha:"executeCommand"};y6a.prototype.Jr=function(){return"adPingingEndpoint"}; +y6a.prototype.ju=function(a,b,c){c7a(this.Oa.get(),a,b,c)};z6a.prototype.Jr=function(){return"changeEngagementPanelVisibilityAction"}; +z6a.prototype.ju=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};A6a.prototype.Jr=function(){return"loggingUrls"}; +A6a.prototype.ju=function(a,b,c){a=g.w(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c7a(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.z(C6a,g.O);g.z(e0,g.O);g.k=e0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; +g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; +g.k.Lk=function(a,b,c,d,e,f,h,l){if(a==="")gy("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().Lk(a,b,c,d,e,f,h,l);this.Sa.get().Lk(a,b,c,d,e,f,h,l);var m;(m=this.xf)==null||m.get().Lk(a,b,c,d,e,f,h,l);this.B.Lk(a,b,c,d,e,f,h,l);m=g.w(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Lk(a,b,c,d,e,f,h,l)}}; +g.k.IG=function(){this.j&&this.Oo(this.j)}; +g.k.Oo=function(a){this.j=void 0;for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Oo(a)};f0.prototype.dJ=function(a,b,c,d,e){D6a(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.K);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(D6a(this),this.G=!b&&c===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.C=!0,Rz("_start",this.actionType)&&G6a(this)))}; +f0.prototype.reset=function(){return new f0(this.J)};g.z(g0,g.O);g0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?gy("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new H6a(a,b,c,d,f),this.j.set(a.id,{Zd:a,listener:e,mp:h}),this.J.jf([a],h))}; +g0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Zo([b.Zd],b.mp),this.j.delete(b.Zd.id)):gy("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; +g0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; +g0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; +g.z(H6a,g.PC);h0.prototype.iH=function(a){this.J.iH(a)}; +h0.prototype.bv=function(a){var b=g.Ca.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.Ai.apply(this.J,[a].concat(g.x(b))):this.J.ib.apply(this.J,[a].concat(g.x(b)))};i0.prototype.Te=function(a){return a&&j0(this)}; +i0.prototype.XT=function(){return this.J.U().experiments.kb("h5_enable_generic_error_logging_event")}; +i0.prototype.bU=function(){return this.J.U().experiments.kb("enable_ips_gating")};var P6a=null;g.z(O6a,g.ax);O6a.prototype.bQ=function(a){return this.j.hasOwnProperty(a)?this.j[a].bQ():{}}; +g.Ka("ytads.bulleit.getVideoMetadata",function(a){return k0().bQ(a)}); +g.Ka("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=k0();c=N6a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=l0.prototype; +g.k.Sh=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=sl(mo).rK(a,{});c?ln(c):b&&(a=sl(mo).pH(null,Kl(),!1,a),a.Ik=3,Xja([a]));return{}}b=R6a(b);if(b===null)return{};var d=this.J.Vc();d=d&&w4a(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ha.get().isFullscreen()};return Xka(b,a,c)}; +g.k.py=function(a){var b;(b=this.j.get(a.queryId))==null||b.py()}; +g.k.oy=function(a){var b;(b=this.j.get(a.queryId))==null||b.oy()}; +g.k.qy=function(a){var b;(b=this.j.get(a.queryId))==null||b.qy()}; +g.k.jy=function(a){var b;(b=this.j.get(a.queryId))==null||b.jy()}; +g.k.ly=function(a){var b;(b=this.j.get(a.queryId))==null||b.ly()};Y6a.prototype.send=function(a,b,c,d){try{Z6a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.z($6a,Y6a);a7a.prototype.send=function(a,b,c,d){var e=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=dqa(a);d=e;var f=a.match(Ai);if(f[1]==="https")var h=a;else f[1]="https",h=yi("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=gla(h);f=[];var m=Qma(h)&&this.Ca.get().J.U().experiments.kb("add_auth_headers_to_remarketing_google_dot_com_ping");if($q(h)||m)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), +f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:h,scrubReferrer:l,headers:f},b,c,d)}catch(n){}};q0.prototype.Ki=function(){var a=this.J.Vc();return a&&(a=a.Ki(1))?a:null};g.z(r0,g.O);g.k=r0.prototype;g.k.Lm=function(){return this.J.getVideoData(1).clientPlaybackNonce}; +g.k.addListener=function(a){this.listeners.push(a)}; +g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; +g.k.Lk=function(){this.qO.clear();this.tR=null;this.Us.get().clear()}; +g.k.Oo=function(){}; +g.k.Rca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&YD(this,"ads_ssm_vdc_s",{pt:c,dvt:a});KI(this.Ca.get())&&a!=="dataloaded"||j7a(this,b,c);if(j0(this.Ca.get())&&a==="newdata"&&e!==void 0){a=this.Lm();var f=b.clientPlaybackNonce,h={};aE(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=$D(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=k7a(e);if(e!==1)if(d!==void 0)for(c=g.w(this.listeners),a=c.next();!a.done;a=c.next())a.value.DG(d, +b,e);else gy("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.w(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.CG(b)}}; +g.k.tca=function(a,b){a!==void 0&&(this.tR=a,b===void 0?gy("Expected ad video start time on SS video changed"):this.qO.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?j7a(this,d,c):gy("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; +g.k.eJ=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.rd,h=a.title,l=a.mj,m=a.Rj,n=a.isMdxPlayback,p=a.An,q=a.mdxEnvironment,r=a.isAutonav,t=a.Oq,u=a.Qk,y=a.Jp,A=a.videoId||"",D=a.profilePicture||"",F=a.gm||"",H=a.Ck()||!1,N=a.Ih()||!1;a=a.Sw||void 0;f=this.Us.get().j.get(f)||{layoutId:null,slotId:null};var M=this.J.getVideoData(1),X=M.Vb();M=M.getPlayerResponse();b=1E3*this.J.getDuration(b);var V=1E3*this.J.getDuration(1),fa,pa,Z=(M==null?void 0:(fa=M.playerConfig)==null?void 0: +(pa=fa.daiConfig)==null?void 0:pa.enableDai)||!1,R,W;fa=(M==null?void 0:(R=M.playerConfig)==null?void 0:(W=R.daiConfig)==null?void 0:W.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,kda:b,Op:V,daiEnabled:Z,VX:fa,isListed:e,Vb:X,profilePicture:D,title:h,gm:F,mj:l,Rj:m,Sw:a,isMdxPlayback:n,An:p,mdxEnvironment:q,isAutonav:r,Oq:t,Qk:u,Jp:y,Ck:H,Ih:N})}; +g.k.ya=function(){this.listeners.length=0;this.Xw=null;g.O.prototype.ya.call(this)};g.z(s0,g.O);g.k=s0.prototype;g.k.Lk=function(){var a=this;j0(this.Ca.get())||(this.j=cd(function(){a.J.Ka()||a.J.Cg("ad",1)}))}; +g.k.Oo=function(){}; +g.k.addListener=function(a){this.listeners.push(a)}; +g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; +g.k.bS=function(){}; +g.k.playVideo=function(){this.J.playVideo()}; +g.k.pauseVideo=function(){this.J.pauseVideo()}; +g.k.resumeVideo=function(a){this.Io(a)&&this.J.playVideo()}; +g.k.Io=function(a){return this.J.getPlayerState(a)===2}; +g.k.getCurrentTimeSec=function(a,b,c){var d=this.Sa.get().tR;if(a===2&&!b&&d!==null)return m7a(this,d);EI(this.Ca.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)}; +g.k.getVolume=function(){return this.J.getVolume()}; +g.k.isMuted=function(){return this.J.isMuted()}; +g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; +g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; +g.k.isFullscreen=function(){return this.J.isFullscreen()}; +g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()}; +g.k.xC=function(a){this.J.xC(a)}; +g.k.Tba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.w(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ni(b)}else if(a===1)for(a=g.w(this.EE),c=a.next();!c.done;c=a.next())c.value.bS(b)}; +g.k.Kba=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ag(a,this.getPresentingPlayerType())}; +g.k.onFullscreenToggled=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; +g.k.onVolumeChange=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; +g.k.nh=function(){for(var a=this.J.isMinimized(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.nh(a)}; +g.k.Kj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Kj(a)}; +g.k.kc=function(){for(var a=this.J.qb().gi(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.hj(a)}; +g.k.Jj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jj(a)}; +g.k.Mj=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.Mj()};g.z(p7a,g.O);g.z(x0,g.O);x0.prototype.ya=function(){this.Lo.Ka()||this.Lo.get().removeListener(this);g.O.prototype.ya.call(this)};y0.prototype.fetch=function(a){var b=a.TX;return this.j.fetch(a.U3,{Ww:a.Ww===void 0?void 0:a.Ww,Zd:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return q7a(c,b)})};g.z(z0,g.O);g.k=z0.prototype;g.k.addListener=function(a){this.listeners.push(a)}; +g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; +g.k.LM=function(a){r7a(this,a,1)}; +g.k.onAdUxClicked=function(a,b){A0(this,function(c){c.gg(a,b)})}; +g.k.VR=function(a){A0(this,function(b){b.zQ(a)})}; +g.k.UR=function(a){A0(this,function(b){b.yQ(a)})}; +g.k.taa=function(a){A0(this,function(b){b.vK(a)})};B0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={HE:null,r_:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Ch)?gy("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,u7a(this, +c)))}}; +g.k.ya=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.cS,this),this.j=null);this.listeners.length=0;this.bN.length=0;g.O.prototype.ya.call(this)};D0.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=F0.prototype;g.k.qE=function(a,b,c,d,e,f,h){return this.J.qE(a,b,c,d,e,f,h)}; +g.k.Pz=function(a,b){this.J.Pz(a,b)}; +g.k.mI=function(a,b,c){this.J.mI(a,b,c)}; +g.k.Xu=function(a){this.J.Xu(a)}; +g.k.NF=function(a,b,c,d,e,f,h){this.J.NF(a,b,c,d,e,f,h)}; +g.k.Rs=function(a){return this.J.Rs(a)}; +g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.z(z7a,g.O);g.z(A7a,g.O);g.z(B7a,g.O);g.z(C7a,g.O);g.z(D7a,g.O);g.z(F7a,g.O);F7a.prototype.C=function(){return this.B};g.z(G7a,Mx); +G7a.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); +this.j.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility", +b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",{action:Gw(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.ib("changeEngagementPanelVisibility",Gw(c.expandAction));break;case 3:this.j.ib("changeEngagementPanelVisibility", +Gw(c.hideAction)),this.j.ib("updateEngagementPanelAction",{action:Gw(c.removeAction)})}}};g.z(H7a,Ux);g.k=H7a.prototype; +g.k.init=function(a,b,c){Ux.prototype.init.call(this,a,b,c);g.Xl(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"), +this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Wx(this);Ux.prototype.hide.call(this)}; +g.k.show=function(){Vx(this);Ux.prototype.show.call(this)}; +g.k.Gq=function(){this.hide()}; +g.k.Wo=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Xl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.z(I7a,jx);g.k=I7a.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.Q(b.actionButton,g.bI))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.Bw(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&& +e.length>0&&g.rb(g.Ud(e[0].url))&&(e[0].url=d.profilePicture,g.rb(g.Ud(d.profilePicture))&&zIa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.rb(g.Ud(e[0].url))&&(e[0].url=d.fh());e=b.headline;e!=null&&g.rb(g.Ud(e.text))&&(e.text=d.author)}this.Y.init(Zw("ad-image"),b.image,c);this.G.init(Zw("ad-text"),b.headline,c);this.C.init(Zw("ad-text"),b.description,c);this.La.init(Zw("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"); +this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Xa.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.wf.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"), +this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,d);g.P(this,this.actionButton);this.actionButton.Ja(this.fb);this.actionButton.init(Zw("button"),g.Q(b.actionButton,g.bI),c);Jo(this.actionButton.element);d=Mo(this.actionButton.element);Lo(this.actionButton.element, +d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.GP,this);this.D.T(this.Va,"click",this.GP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.GP,this);this.j=this.cU?new qy(this.api,a):new ry(a);g.P(this,this.j);if(b.skipButton){if((a=g.Q(b.skipButton,J$a))&&this.j&&(this.skipButton=new ky(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,this.IM), +g.P(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(Zw("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.Q(c,I$a))a=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),a.Ja(this.Ga),a.init(Zw("simple-ad-badge"),c,this.macros),g.P(this,a);if(c=b.adInfoRenderer)if(c=g.Q(c,$H))a=new Rx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),a.Ja(this.Ga),a.init(Zw("ad-info-hover-text-button"), +c,this.macros),g.P(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.Q(b.nonskippableOverlayRenderer,aI))&&this.j&&(this.B=new Zx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,!1),g.P(this,this.B),this.B.Ja(this.element),this.B.init(Zw("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.Q(b,K$a)&&this.j&&(c=new H7a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j),g.P(this,c),c.Ja(this.element),c.init(Zw("timed-pie-countdown"),g.Q(b,K$a), +this.macros)));this.show();this.element.focus()}else g.Bw(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Bw(Error("AdActionInterstitialRenderer has no button."));else g.Bw(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Bw(Error("AdActionInterstitialRenderer has no description AdText."));else g.Bw(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Bw(Error("AdActionInterstitialRenderer has no image."))}; +g.k.clear=function(){g.ts(this.D);this.hide()}; +g.k.show=function(){J7a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();jx.prototype.show.call(this)}; +g.k.hide=function(){J7a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();jx.prototype.hide.call(this)}; +g.k.GP=function(){this.navigationEndpoint&&(this.layoutId?this.jb.executeCommand(this.navigationEndpoint,this.layoutId):g.Bw(Error("Missing layoutId for ad action interstitial.")))};var O7a={iconType:"CLOSE"},J0=new g.Hd(320,63);g.z(N7a,jx);g.k=N7a.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Ub(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.Q(a,F$a)?(this.G=g.de("ytp-ad-overlay-ad-info-button-container",this.C.element),P7a(this,b),a=R7a(this,g.Q(a,F$a))):g.Q(a,G$a)?(this.G=g.de("ytp-ad-overlay-ad-info-button-container",this.B.element),P7a(this,b),a=S7a(this,g.Q(a,G$a))):g.Q(a,H$a)?(this.G= +g.de("ytp-ad-overlay-ad-info-button-container",this.j.element),P7a(this,b),a=T7a(this,g.Q(a,H$a))):(g.Bw(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),U7a(this,!0))}; +g.k.clear=function(){U7a(this,!1);this.La.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; +g.k.Ica=function(){this.Xa&&(this.layoutId?this.jb.executeCommand(this.Xa,this.layoutId):g.Bw(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.k.ZN=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.Bw(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.k.raa=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.k.vS=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.vS("invideo-overlay")}; +g.k.saa=function(a){a.target===this.G&&g.de("ytp-ad-button",this.fb.element).click()};g.z(V7a,Ux);g.k=V7a.prototype;g.k.init=function(a,b,c){Ux.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(Zw("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){W7a(this,!1);Ux.prototype.hide.call(this);this.B.hide();this.messageText.hide();Wx(this)}; +g.k.show=function(){W7a(this,!0);Ux.prototype.show.call(this);Vx(this);this.B.show();this.messageText.show()}; +g.k.Gq=function(){this.hide()}; +g.k.Wo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(Tx(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.z(X7a,jx);g.k=X7a.prototype; +g.k.init=function(a,b,c){jx.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.bI)?(this.C.init(Zw("ad-image"),b.image,c),this.B.init(Zw("ad-text"),b.headline,c),this.D.init(Zw("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, +a),b.backgroundColor&&g.Xl(this.element,"background-color",g.Ey(b.backgroundColor)),g.P(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(Zw("button"),g.Q(b.actionButton,g.bI),c),b=g.ZB(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Yo(c,"ytp-ad-underlay-left-container"),g.Wo(c,"ytp-ad-underlay-right-container"),g.Xl(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Yo(c,"ytp-ad-underlay-right-container"), +g.Wo(c,"ytp-ad-underlay-left-container")),g.Xl(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.WF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.rW.bind(this)),this.api.addEventListener("resize",this.mZ.bind(this))):g.Bw(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Bw(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Bw(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Bw(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.k.show=function(){Y7a(!0);this.actionButton&&this.actionButton.show();jx.prototype.show.call(this)}; +g.k.hide=function(){Y7a(!1);this.actionButton&&this.actionButton.hide();jx.prototype.hide.call(this)}; +g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.rW.bind(this));this.api.removeEventListener("resize",this.mZ.bind(this));this.hide()}; +g.k.onClick=function(a){jx.prototype.onClick.call(this,a);this.actionButton&&g.qe(this.actionButton.element,a.target)&&this.api.pauseVideo()}; +g.k.rW=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; +g.k.mZ=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.Xl(this.B.element,"font-size",a.width/40+"px")};g.z(K0,jx); +K0.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.Q(b.answer,g.bI)?(a=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(Zw("ytp-ad-survey-answer-button"),g.Q(b.answer,g.bI),c),a.show()):b.answer&&g.Q(b.answer,x1)&&(this.j=new Kx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, +["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.P(this,this.j),this.j.init(Zw("survey-answer-button"),g.Q(b.answer,x1),c));this.show()}; +K0.prototype.CH=function(a){this.layoutId?EC(this.jb,a,this.layoutId,this.macros):g.Bw(new g.Ks("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +K0.prototype.onClick=function(a){jx.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +K0.prototype.clear=function(){this.hide()};g.z(Z7a,jx);Z7a.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);b.answer&&g.Q(b.answer,x1)&&(this.button=new Kx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(Zw("survey-none-of-the-above-button"),g.Q(b.answer,x1),c));this.show()};g.z(L0,Bx);L0.prototype.init=function(a,b,c){Bx.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.lx(b.text),a=!g.rb(b));a||g.Cw(Error("No submit text was present in the renderer."))}; +L0.prototype.onClick=function(a){this.publish("l");Bx.prototype.onClick.call(this,a)};g.z(M0,jx); +M0.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.Q(a,nG)?(a=g.Q(a,nG),c=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!0),c.Ja(this.skipOrPreview),c.init(Zw("skip-button"),a,this.macros),g.P(this,c),this.j=c):g.Q(a,aI)&&(a=g.Q(a,aI),c=new Zx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!1),c.Ja(this.skipOrPreview),c.init(Zw("ad-preview"),a,this.macros),$x(c),g.P(this,c),this.j=c);this.j== +null&&g.Bw(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.Q(a,g.bI)&&(a=g.Q(a,g.bI),c=new L0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.submitButton),c.init(Zw("survey-submit"),a,this.macros),g.P(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.Q(a,I$a),c=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),c.Ja(this.C),c.init(Zw("simple-ad-badge"),a,this.macros), +g.P(this,c);if(a=b.adDurationRemaining)a=g.Q(a,B$a),c=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,void 0),c.Ja(this.C),c.init(Zw("ad-duration-remaining"),a,this.macros),g.P(this,c);(b=b.adInfoRenderer)&&g.Q(b,$H)&&(a=new Rx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.C),a.init(Zw("ad-info-hover-text-button"),g.Q(b,$H),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified"); +this.show()}; +M0.prototype.clear=function(){this.hide()};g.z(N0,jx);N0.prototype.init=function(a,b,c){jx.prototype.init.call(this,a,b,c);d8a(this)}; +N0.prototype.show=function(){this.C=g.Wa();jx.prototype.show.call(this)}; +N0.prototype.U1=function(){};g.z(e8a,N0);g.k=e8a.prototype;g.k.init=function(a,b,c){var d=this;N0.prototype.init.call(this,a,b,c);b.questionText&&$7a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,v1)&&a8a(d,g.Q(e,v1),c,f)}); +this.G=new Set(this.B.map(function(e){return e.j.j})); +(a=b.noneOfTheAbove)&&(a=g.Q(a,E$a))&&f8a(this,a,c);b.surveyAdQuestionCommon&&c8a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; +g.k.U1=function(){g8a(this,!1);this.D.B.subscribe("l",this.Gca,this)}; +g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?h8a(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),g8a(this,!0))}; +g.k.Gca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e; +e=g.Gc(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Ki(f.baseUrl,b));return f}); +return e}); +if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?EC(this.jb,d,this.layoutId,this.macros):g.Bw(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)}; +g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(O0,N0);O0.prototype.init=function(a,b,c){var d=this;N0.prototype.init.call(this,a,b,c);b.questionText&&$7a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,v1)&&a8a(d,g.Q(e,v1),c,f)}); +b.surveyAdQuestionCommon?c8a(this,b.surveyAdQuestionCommon):g.Bw(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; +O0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(P0,jx);P0.prototype.init=function(a,b,c){var d=this;jx.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&l8a(this,0)}else(b.questions||[]).forEach(function(l){g.Q(l,YH)?j8a(d,g.Q(l,YH),c):g.Q(l,XH)&&k8a(d,g.Q(l,XH),c)}); +this.show()}; +P0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +P0.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.Bw(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex; +break;default:g.Bw(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)l8a(this,d); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Bw(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var m8a=ma(['background-image:url("','");']);g.z(Q0,jx); +Q0.prototype.init=function(a,b,c){var d=this;jx.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.Bw(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.Q(b.ctaButton,g.bI))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,cI)&&g.Q(b.backgroundImage,cI).landscape){this.layoutId||g.Bw(Error("Missing layoutId for survey interstitial."));n8a(this.interstitial, +g.Q(b.backgroundImage,cI).landscape);n8a(this.logoImage,b.brandImage);g.re(this.text,g.lx(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Bx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,e);g.P(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(Zw("button"),g.Q(b.ctaButton,g.bI),c);this.actionButton.show();this.j=new qy(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()}); +g.P(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)}); +this.transition.show(100)}else g.Bw(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Bw(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Bw(Error("SurveyTextInterstitialRenderer has no button."));else g.Bw(Error("SurveyTextInterstitialRenderer has no text."));else g.Bw(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +Q0.prototype.clear=function(){this.hide()}; +Q0.prototype.show=function(){o8a(!0);jx.prototype.show.call(this)}; +Q0.prototype.hide=function(){o8a(!1);jx.prototype.hide.call(this)};g.z(S0,jx);S0.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});if(a=b.content){g.re(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.Bw(Error("AdSimpleAttributedString does not have text content"))}; +S0.prototype.clear=function(){this.hide()}; +S0.prototype.onClick=function(a){jx.prototype.onClick.call(this,a)};g.z(T0,jx); +T0.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.rb(a.content)?(this.adBadgeText.init(Zw("ad-simple-attributed-string"),new R0(a)),(b=b.adPodIndex)&&b.content&&!g.rb(b.content)&&(this.j=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),this.j.Ja(this.element),g.P(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Zw("ad-simple-attributed-string"),new R0(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()): +g.Bw(Error("No label is returned in AdBadgeViewModel."))}; +T0.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();jx.prototype.show.call(this)}; +T0.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();jx.prototype.hide.call(this)};g.z(U0,Ux);g.k=U0.prototype; +g.k.init=function(a,b){Ux.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.Bw(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.YJ();var c;if((c=b.previewText)==null||!c.text||g.rb(b.previewText.text))g.Bw(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.re(this.C,b.previewText.text);var d; +if(((d=this.api.getVideoData(1))==null?0:d.jm)&&b.previewImage){var e,f;(a=((f=uua(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.ix({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.P(this,this.previewImage),this.previewImage.Ja(this.element)):g.Bw(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Wx(this);Ux.prototype.hide.call(this)}; +g.k.show=function(){Vx(this);Ux.prototype.show.call(this)}; +g.k.Gq=function(){this.hide()}; +g.k.Wo=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.re(this.C,a);this.D=b}}}};g.z(V0,jx); +V0.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});var c,d;if((a=((d=uua(((c=b.image)==null?void 0:c.sources)||[],q8a(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Ea("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Bw(Error("Failed to get imageUrl in AdAvatar."))}; +V0.prototype.clear=function(){this.hide()}; +V0.prototype.onClick=function(a){jx.prototype.onClick.call(this,a)};g.z(W0,jx); +W0.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.rb(a))||b.iconImage){c&&(this.buttonText=new g.ix({I:"span",S:"ytp-ad-button-vm__text",va:a}),g.P(this,this.buttonText),this.buttonText.Ja(this.element),this.api.U().experiments.kb("should_fix_player_ad_button_text_overflow")&&this.buttonText.element.classList.add("ytp-ad-button-vm__text--fix-text-overflow"));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null? +0:e.label)||c?a:"";f&&Lo(this.element,f+" This link opens in new tab");Jo(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.w(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=Ax(d);h!=null&&(this.buttonIcon=new g.ix({I:"span",S:"ytp-ad-button-vm__icon",V:[h]}),g.P(this,this.buttonIcon),b.iconLeading?(oe(this.element, +this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")))}this.element.classList.add("ytp-ad-button-vm--style-filled");switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.Cw(Error("AdButton does not have label or an icon."))}; +W0.prototype.clear=function(){this.hide()}; +W0.prototype.onClick=function(a){jx.prototype.onClick.call(this,a)};g.z(r8a,Ux);g.k=r8a.prototype; +g.k.init=function(a,b){Ux.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),oe(this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.Q(b.avatar,L$a)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.Q(b.button,N$a);e?(this.adAvatar.init(Zw("ad-avatar"),a),this.headline.init(Zw("ad-simple-attributed-string"),new R0(c)),this.description.init(Zw("ad-simple-attributed-string"),new R0(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(Zw("ad-button"),e),this.B=b.startMs||0,this.api.WF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.sW.bind(this)),Vx(this)):g.Bw(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Bw(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Bw(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Bw(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.k.Wo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(Wx(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.k.Gq=function(){this.clear()}; +g.k.onClick=function(a){this.api.pauseVideo();Ux.prototype.onClick.call(this,a)}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.sW.bind(this))}; +g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Ux.prototype.show.call(this)}; +g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Ux.prototype.hide.call(this)}; +g.k.sW=function(a){a==="hidden"?this.show():this.hide()};g.z(s8a,jx);g.k=s8a.prototype; +g.k.init=function(a,b){jx.prototype.init.call(this,a,b,{});if(!b.label||g.rb(b.label))g.Bw(Error("No label is returned for SkipAdButton."));else if(g.re(this.D,b.label),a=Ax({iconType:"SKIP_NEXT_NEW"}),a==null)g.Bw(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.ix({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.P(this,this.C),this.C.Ja(this.element),this.api.U().experiments.kb("enable_skip_to_next_messaging")&&(b=g.Ud(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id", +b),this.element.setAttribute("data-tooltip-target-fixed","")}; +g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(Ssa(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;jx.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.k.clear=function(){this.j.reset();this.hide()}; +g.k.hide=function(){jx.prototype.hide.call(this)}; +g.k.show=function(){this.j.start();jx.prototype.show.call(this);this.B&&this.api.U().experiments.kb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(t8a,Ux);g.k=t8a.prototype; +g.k.init=function(a,b){Ux.prototype.init.call(this,a,b,{});var c=g.Q(b.preskipState,P$a);c?(a=g.Q(b.skippableState,R$a))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.Cw(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(Zw("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(Zw("skip-button"),a),this.show()):g.Bw(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.Bw(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; +g.k.show=function(){Vx(this);Ux.prototype.show.call(this)}; +g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();Wx(this);Ux.prototype.hide.call(this)}; +g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();Wx(this);Ux.prototype.hide.call(this)}; +g.k.Gq=function(){this.hide()}; +g.k.Wo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.z(X0,jx); +X0.prototype.init=function(a,b){jx.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.rb(b.label.content)&&(this.linkText=new g.ix({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.P(this,this.linkText),this.linkText.Ja(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)Lo(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.rb(b.label.content)&&Lo(this.element, +b.label.content+" This link opens in new tab")}Jo(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Bw(Error("No label found in VisitAdvertiserLink."))}; +X0.prototype.onClick=function(a){jx.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +X0.prototype.clear=function(){this.hide()};g.z(Y0,jx); +Y0.prototype.init=function(a,b,c,d){jx.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.Q(c,S$a),c=g.Q(c,P$a),a?(this.Av=new t8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.Av),this.Av.Ja(this.G),this.Av.init(Zw("skip-ad"),a)):c&&(this.C=new U0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,1),g.P(this,this.C),this.C.Ja(this.G),this.C.init(Zw("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& +(a=g.Q(b.playerAdCard,Q$a))&&(this.playerAdCard=new r8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(Zw("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.Q(c,I$a),c=g.Q(c,M$a),a||c)&&(a?(this.adBadge=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(Zw("simple-ad-badge"),a,this.macros)): +c&&(this.D=new T0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.D),this.D.Ja(this.j),this.D.init(Zw("ad-badge"),c),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--with-ad-badge-view-model")));b.adDurationRemaining&&(a=g.Q(b.adDurationRemaining,B$a))&&(this.adDurationRemaining=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d.videoAdDurationSeconds),g.P(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j), +this.adDurationRemaining.init(Zw("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,$H))&&(this.adInfoButton=new Rx(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(Zw("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.Q(b.visitAdvertiserLink,T$a))&&(this.visitAdvertiserLink=new X0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(Zw("visit-advertiser-link"),d));b.adDisclosureBanner&&(b=g.Q(b.adDisclosureBanner,O$a))&&(this.adDisclosureBanner=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(Zw("ad-disclosure-banner"),b));this.show()}; +Y0.prototype.clear=function(){this.hide()};var ccb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(Z0,Mx); +Z0.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!ccb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.jb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof CD?c.cU:!1,m=c instanceof CD||c instanceof py?c.IM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new N7a(a,f,h,e);break;case "player-overlay":a=new By(a,f,h,e,new OU(a),m);break;case "player-overlay-layout":a=new Y0(a,f,h,e,new OU(a));break;case "survey":a= +new P0(a,f,h,e);break;case "ad-action-interstitial":a=new I7a(a,f,h,e,l,m);break;case "survey-interstitial":a=new Q0(a,f,h,e);break;case "ad-message":a=new V7a(a,f,h,e,new OU(a,1));break;case "player-underlay":a=new X7a(a,f,h,e);break;default:a=null}if(!a){g.Cw(Error("No UI component returned from ComponentFactory for type: "+d));break}g.zc(this.B,b)?g.Cw(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof ID?this.C?this.C.append(a.zT):g.Bw(Error("Underlay view was not created but UnderlayRenderer was created")): +this.G.append(a.zT);break;case 2:b=u8a(this,a);if(b==null)break;b.bind(c);break;case 3:c=u8a(this,a),c!=null&&(g.ib(c),g.zc(this.B,b)?(c=this.B,b in c&&delete c[b]):g.Cw(Error("Ad UI component does not exist: "+b)))}}; +Z0.prototype.ya=function(){g.jb(Object.values(this.B));this.B={};Mx.prototype.ya.call(this)};g.z(v8a,g.VT);g.k=v8a.prototype;g.k.create=function(){try{w8a(this),this.load(),this.created=!0,w8a(this)}catch(a){gy(a instanceof Error?a:String(a))}}; +g.k.load=function(){try{z8a(this)}finally{j0(H0(this.j).Dl)&&this.player.Cg("ad",1)}}; +g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.sy.Oo(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.k.unload=function(){g.VT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){gy(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; +g.k.un=function(){return!1}; +g.k.getAdState=function(){return-1}; +g.k.getOptions=function(){return Object.values(bcb)}; +g.k.Wh=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=U6a(this.player),Object.assign(b,a.Mma),a=g.oo(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.wq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; +g.k.Uu=function(a){var b;return!((b=this.j.j.xf)==null||!b.get().Uu(a))}; +g.k.wq=function(a){a.isMuted&&xua(H0(this.j).Ol,H0(this.j).No,a.layoutId);this.Bt&&this.Bt.wq()}; +g.k.executeCommand=function(a){H0(this.j).jb.executeCommand(a.command,a.layoutId)};g.Ka("yt.player.Application.create",g.G_.create);g.Ka("yt.player.Application.createAlternate",g.G_.create);Dra(xw(),{ys:[{vB:/Unable to load player module/,weight:20},{vB:/Failed to fetch/,weight:500},{vB:/XHR API fetch failed/,weight:10},{vB:/JSON parsing failed after XHR fetch/,weight:10},{vB:/Retrying OnePlatform request/,weight:10},{vB:/CSN Missing or undefined during playback association/,weight:100}]});var dcb=g.La("ytcsi.tick");dcb&&dcb("pe");g.UT("ad",v8a);g.ecb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ka("yt.msgs_",g.ecb);g.z(g.b1,g.O);g.b1.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.rt)()};this.next()}; +g.b1.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.b1.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.rt)()-a;a=this.j;d=Pla(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Ed(a.C,a.y1,d);var f=Ed(a.y1,a.y2,d);a=Ed(a.y2,a.D,d);e=Ed(e,f,d);f=Ed(f,a,d);a=Ed(e,f,d)}a=g.Cd(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.z(g.c1,g.S);g.k=g.c1.prototype;g.k.O6=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; +g.k.show=function(){g.S.prototype.show.call(this);F8a(this)}; +g.k.P6=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; +g.k.uy=function(){this.kc(this.api.qb().getPlayerSize())}; +g.k.kc=function(a){var b=this.api.jd()?.5625:16/9,c=this.api.Hh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.w(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ea("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.d1(this)}; +g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Ff?!1:a.D;this.suggestionData=b.suggestions?g.Ym(b.suggestions,function(c){return c&&!c.playlistId}):[]; +H8a(this);b.Ff?this.title.update({title:g.bD("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.jd()?"More shorts":"More videos"})}; +g.k.scrollTo=function(a){a=g.Cd(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.d1(this);F8a(this)};})(_yt_player);