diff --git a/lib/sig.js b/lib/sig.js index 2bdccbee..20575d0c 100644 --- a/lib/sig.js +++ b/lib/sig.js @@ -1,228 +1,108 @@ const querystring = require('querystring'); const Cache = require('./cache'); const utils = require('./utils'); +const vm = require('vm'); - -// A shared cache to keep track of html5player.js tokens. +// A shared cache to keep track of html5player js functions. exports.cache = new Cache(); - /** - * Extract signature deciphering tokens from html5player file. + * Extract signature deciphering and n parameter transform functions from html5player file. * * @param {string} html5playerfile * @param {Object} options * @returns {Promise>} */ -exports.getTokens = (html5playerfile, options) => exports.cache.getOrSet(html5playerfile, async() => { +exports.getFunctions = (html5playerfile, options) => exports.cache.getOrSet(html5playerfile, async() => { const body = await utils.exposedMiniget(html5playerfile, options).text(); - const tokens = exports.extractActions(body); - if (!tokens || !tokens.length) { - throw Error('Could not extract signature deciphering actions'); + const functions = exports.extractFunctions(body); + if (!functions || !functions.length) { + throw Error('Could not extract functions'); } - exports.cache.set(html5playerfile, tokens); - return tokens; + exports.cache.set(html5playerfile, functions); + return functions; }); - -/** - * Decipher a signature based on action tokens. - * - * @param {Array.} tokens - * @param {string} sig - * @returns {string} - */ -exports.decipher = (tokens, sig) => { - sig = sig.split(''); - for (let i = 0, len = tokens.length; i < len; i++) { - let token = tokens[i], pos; - switch (token[0]) { - case 'r': - sig = sig.reverse(); - break; - case 'w': - pos = ~~token.slice(1); - sig = swapHeadAndPosition(sig, pos); - break; - case 's': - pos = ~~token.slice(1); - sig = sig.slice(pos); - break; - case 'p': - pos = ~~token.slice(1); - sig.splice(0, pos); - break; - } - } - return sig.join(''); -}; - - -/** - * Swaps the first element of an array with one of given position. - * - * @param {Array.} arr - * @param {number} position - * @returns {Array.} - */ -const swapHeadAndPosition = (arr, position) => { - const first = arr[0]; - arr[0] = arr[position % arr.length]; - arr[position] = first; - return arr; -}; - - -const jsVarStr = '[a-zA-Z_\\$][a-zA-Z_0-9]*'; -const jsSingleQuoteStr = `'[^'\\\\]*(:?\\\\[\\s\\S][^'\\\\]*)*'`; -const jsDoubleQuoteStr = `"[^"\\\\]*(:?\\\\[\\s\\S][^"\\\\]*)*"`; -const jsQuoteStr = `(?:${jsSingleQuoteStr}|${jsDoubleQuoteStr})`; -const jsKeyStr = `(?:${jsVarStr}|${jsQuoteStr})`; -const jsPropStr = `(?:\\.${jsVarStr}|\\[${jsQuoteStr}\\])`; -const jsEmptyStr = `(?:''|"")`; -const reverseStr = ':function\\(a\\)\\{' + - '(?:return )?a\\.reverse\\(\\)' + -'\\}'; -const sliceStr = ':function\\(a,b\\)\\{' + - 'return a\\.slice\\(b\\)' + -'\\}'; -const spliceStr = ':function\\(a,b\\)\\{' + - 'a\\.splice\\(0,b\\)' + -'\\}'; -const swapStr = ':function\\(a,b\\)\\{' + - 'var c=a\\[0\\];a\\[0\\]=a\\[b(?:%a\\.length)?\\];a\\[b(?:%a\\.length)?\\]=c(?:;return a)?' + -'\\}'; -const actionsObjRegexp = new RegExp( - `var (${jsVarStr})=\\{((?:(?:${ - jsKeyStr}${reverseStr}|${ - jsKeyStr}${sliceStr}|${ - jsKeyStr}${spliceStr}|${ - jsKeyStr}${swapStr - }),?\\r?\\n?)+)\\};`); -const actionsFuncRegexp = new RegExp(`${`function(?: ${jsVarStr})?\\(a\\)\\{` + - `a=a\\.split\\(${jsEmptyStr}\\);\\s*` + - `((?:(?:a=)?${jsVarStr}`}${ - jsPropStr -}\\(a,\\d+\\);)+)` + - `return a\\.join\\(${jsEmptyStr}\\)` + - `\\}`); -const reverseRegexp = new RegExp(`(?:^|,)(${jsKeyStr})${reverseStr}`, 'm'); -const sliceRegexp = new RegExp(`(?:^|,)(${jsKeyStr})${sliceStr}`, 'm'); -const spliceRegexp = new RegExp(`(?:^|,)(${jsKeyStr})${spliceStr}`, 'm'); -const swapRegexp = new RegExp(`(?:^|,)(${jsKeyStr})${swapStr}`, 'm'); - - /** - * Extracts the actions that should be taken to decipher a signature. - * - * This searches for a function that performs string manipulations on - * the signature. We already know what the 3 possible changes to a signature - * are in order to decipher it. There is - * - * * Reversing the string. - * * Removing a number of characters from the beginning. - * * Swapping the first character with another position. - * - * Note, `Array#slice()` used to be used instead of `Array#splice()`, - * it's kept in case we encounter any older html5player files. - * - * After retrieving the function that does this, we can see what actions - * it takes on a signature. + * Extracts the actions that should be taken to decipher a signature + * and tranform the n parameter * * @param {string} body * @returns {Array.} */ -exports.extractActions = body => { - const objResult = actionsObjRegexp.exec(body); - const funcResult = actionsFuncRegexp.exec(body); - if (!objResult || !funcResult) { return null; } - - const obj = objResult[1].replace(/\$/g, '\\$'); - const objBody = objResult[2].replace(/\$/g, '\\$'); - const funcBody = funcResult[1].replace(/\$/g, '\\$'); - - let result = reverseRegexp.exec(objBody); - const reverseKey = result && result[1] - .replace(/\$/g, '\\$') - .replace(/\$|^'|^"|'$|"$/g, ''); - result = sliceRegexp.exec(objBody); - const sliceKey = result && result[1] - .replace(/\$/g, '\\$') - .replace(/\$|^'|^"|'$|"$/g, ''); - result = spliceRegexp.exec(objBody); - const spliceKey = result && result[1] - .replace(/\$/g, '\\$') - .replace(/\$|^'|^"|'$|"$/g, ''); - result = swapRegexp.exec(objBody); - const swapKey = result && result[1] - .replace(/\$/g, '\\$') - .replace(/\$|^'|^"|'$|"$/g, ''); - - const keys = `(${[reverseKey, sliceKey, spliceKey, swapKey].join('|')})`; - const myreg = `(?:a=)?${obj - }(?:\\.${keys}|\\['${keys}'\\]|\\["${keys}"\\])` + - `\\(a,(\\d+)\\)`; - const tokenizeRegexp = new RegExp(myreg, 'g'); - const tokens = []; - while ((result = tokenizeRegexp.exec(funcBody)) !== null) { - let key = result[1] || result[2] || result[3]; - switch (key) { - case swapKey: - tokens.push(`w${result[4]}`); - break; - case reverseKey: - tokens.push('r'); - break; - case sliceKey: - tokens.push(`s${result[4]}`); - break; - case spliceKey: - tokens.push(`p${result[4]}`); - break; +exports.extractFunctions = body => { + const functions = []; + const extractManipulations = caller => { + const functionName = utils.between(caller, `a=a.split("");`, `.`); + if (!functionName) return ''; + const functionStart = `var ${functionName}={`; + const ndx = body.indexOf(functionStart); + if (ndx < 0) return ''; + const subBody = body.slice(ndx + functionStart.length - 1); + return `var ${functionName}=${utils.cutAfterJSON(subBody)}`; + }; + const extractDecipher = () => { + const functionName = utils.between(body, `a.set("alr","yes");c&&(c=`, `(decodeURIC`); + if (functionName && functionName.length) { + const functionStart = `${functionName}=function(a)`; + const ndx = body.indexOf(functionStart); + if (ndx >= 0) { + const subBody = body.slice(ndx + functionStart.length); + let functionBody = `var ${functionStart}${utils.cutAfterJSON(subBody)}`; + functionBody = `${extractManipulations(functionBody)};${functionBody};${functionName}(sig);`; + functions.push(functionBody); + } } - } - return tokens; + }; + const extractNCode = () => { + const functionName = utils.between(body, `&&(b=a.get("n"))&&(b=`, `(b)`); + if (functionName && functionName.length) { + const functionStart = `${functionName}=function(a)`; + const ndx = body.indexOf(functionStart); + if (ndx >= 0) { + const subBody = body.slice(ndx + functionStart.length); + const functionBody = `var ${functionStart}${utils.cutAfterJSON(subBody)};${functionName}(ncode);`; + functions.push(functionBody); + } + } + }; + extractDecipher(); + extractNCode(); + return functions; }; - /** + * Apply decipher and n-transform to individual format + * * @param {Object} format - * @param {string} sig + * @param {vm.Script} decipherScript + * @param {vm.Script} nTransformScript */ -exports.setDownloadURL = (format, sig) => { - let decodedUrl; - if (format.url) { - decodedUrl = format.url; - } else { - return; - } - - try { - decodedUrl = decodeURIComponent(decodedUrl); - } catch (err) { - return; - } - - // Make some adjustments to the final url. - const parsedUrl = new URL(decodedUrl); - - // This is needed for a speedier download. - // See https://github.com/fent/node-ytdl-core/issues/127 - parsedUrl.searchParams.set('ratebypass', 'yes'); - - if (sig) { - // When YouTube provides a `sp` parameter the signature `sig` must go - // into the parameter it specifies. - // See https://github.com/fent/node-ytdl-core/issues/417 - parsedUrl.searchParams.set(format.sp || 'signature', sig); - } - - format.url = parsedUrl.toString(); +exports.setDownloadURL = (format, decipherScript, nTransformScript) => { + const decipher = url => { + const args = querystring.parse(url); + if (!args.s || !decipherScript) return args.url; + const components = new URL(decodeURIComponent(args.url)); + components.searchParams.set(args.sp ? args.sp : 'signature', + decipherScript.runInNewContext({ sig: decodeURIComponent(args.s) })); + return components.toString(); + }; + const ncode = url => { + const components = new URL(decodeURIComponent(url)); + const n = components.searchParams.get('n'); + if (!n || !nTransformScript) return url; + components.searchParams.set('n', nTransformScript.runInNewContext({ ncode: n })); + return components.toString(); + }; + const cipher = !format.url; + const url = format.url || format.signatureCipher || format.cipher; + format.url = cipher ? ncode(decipher(url)) : ncode(url); + delete format.signatureCipher; + delete format.cipher; }; - /** - * Applies `sig.decipher()` to all format URL's. + * Applies decipher and n parameter transforms to all format URL's. * * @param {Array.} formats * @param {string} html5player @@ -230,16 +110,11 @@ exports.setDownloadURL = (format, sig) => { */ exports.decipherFormats = async(formats, html5player, options) => { let decipheredFormats = {}; - let tokens = await exports.getTokens(html5player, options); + let functions = await exports.getFunctions(html5player, options); + const decipherScript = functions.length ? new vm.Script(functions[0]) : null; + const nTransformScript = functions.length > 1 ? new vm.Script(functions[1]) : null; formats.forEach(format => { - let cipher = format.signatureCipher || format.cipher; - if (cipher) { - Object.assign(format, querystring.parse(cipher)); - delete format.signatureCipher; - delete format.cipher; - } - const sig = tokens && format.s ? exports.decipher(tokens, format.s) : null; - exports.setDownloadURL(format, sig); + exports.setDownloadURL(format, decipherScript, nTransformScript); decipheredFormats[format.url] = format; }); return decipheredFormats; diff --git a/test/files/html5player/en_US-vflset-387dfd49.js b/test/files/html5player/en_US-vflset-387dfd49.js new file mode 100644 index 00000000..6a58929e --- /dev/null +++ b/test/files/html5player/en_US-vflset-387dfd49.js @@ -0,0 +1,10149 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 + */ + 'use strict';var ba,da,aaa,ha,ia,ka,la,oa,qa,ra,ua,va,wa,xa,ya,baa,caa,za,Aa,daa,Ba,Ca,Da,Ea,Ia,Ja,faa,gaa,Ra,Sa,Ta,haa,Ua,iaa,Ya,Za,gb,ib,lb,kaa,qb,yb,laa,Eb,Fb,maa,Lb,Hb,naa,Jb,oaa,paa,qaa,Tb,Vb,Yb,ac,bc,cc,dc,fc,jc,kc,nc,uc,vc,wc,yc,xc,Ac,Bc,Cc,Dc,Ec,Fc,Gc,Pc,Rc,Nc,Kc,Uc,Vc,Xc,Zc,Wc,$c,ad,bd,cd,fd,hd,id,jd,kd,ld,md,nd,od,pd,sd,td,ud,wd,yd,xd,Ad,vaa,zd,Bd,vd,Dd,Ed,Fd,Cd,Gd,Id,Nd,Kd,Od,Qd,Rd,yaa,Pd,Sd,Td,Vd,Ud,Wd,Xd,Yd,Zd,zaa,ae,be,ce,ee,fe,ge,he,Aaa,ie,Baa,je,Caa,ke,le,oe,pe,re,se,te,Daa,ye,Ae, + Be,De,Faa,Ee,Fe,Ge,He,Je,Le,Gaa,Ie,Qe,Re,Oe,Iaa,Me,Ke,Ve,Ze,$e,af,bf,cf,df,Jaa,ff,jf,kf,nf,pf,qf,Maa,rf,vf,Bf,Cf,Ff,Paa,Df,Qaa,Taa,Uaa,Lf,Of,Vaa,Waa,Nf,Xaa,Rf,Uf,Vf,Wf,$f,bg,eg,fg,gg,jg,kg,lg,mg,$aa,aba,qg,rg,xg,yg,Ag,zg,Cg,Fg,Eg,Dg,bba,og,Pg,Og,Rg,Qg,ng,Tg,dba,Ug,Vg,Xg,eba,bh,dh,fh,gh,ih,jh,kh,mh,fba,gba,oh,rh,nh,ph,eh,lh,iba,uh,sh,th,wh,hba,vh,Ah,Bh,Ch,Dh,jba,Eh,Fh,kba,Gh,Hh,Ih,Jh,Kh,Lh,oba,Mh,pba,Nh,Oh,Ph,Qh,Rh,Sh,Vh,Wh,Xh,sba,Yh,$h,uba,bi,ci,di,ei,fi,ji,ki,li,mi,ni,oi,pi,qi,si,ui,vi,xi,yi,zi, + wba,xba,yba,Ei,Ci,Ji,Di,Ki,Ii,Mi,Aba,Bba,Hi,Ni,Cba,Oi,Pi,Qi,Ri,Si,Ti,Ui,dj,ij,hj,jj,kj,Hba,Gba,lj,Iba,mj,nj,oj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Fj,Lba,Kba,Ij,Kj,Lj,Jj,Hj,Gj,Mj,Nj,Oj,Qj,Pj,Vj,Wj,Yj,Oba,Xj,bk,dk,ck,Mba,Pba,gk,ik,jk,kk,lk,mk,nk,ok,pk,qk,rk,Qba,sk,tk,uk,vk,wk,xk,yk,Gk,Sba,Hk,Ik,Jk,Fk,Kk,Tba,Vba,Uba,Wba,Yba,Lk,Mk,Zba,Nk,Ok,$ba,aca,Qk,Rk,Uk,Vk,Wk,Xk,Yk,$k,al,bca,bl,cca,dca,cl,eca,fca,el,fl,gl,dl,jl,kl,hca,ica,jca,il,hl,lca,ll,mca,ml,nl,ol,pl,ql,rl,sl,nca,tl,ul,vl,oca,pca, + wl,yl,xl,Al,Bl,Cl,Dl,El,Gl,Fl,Hl,Il,sca,uca,vca,xca,Kl,Ll,Ml,Nl,Ol,Ql,Rl,Wl,Xl,$l,yca,cm,bm,dm,zca,lm,om,mm,Bca,nm,pm,qm,sm,rm,Cca,tm,Eca,Dca,Fca,Bm,Cm,Gca,Em,Fm,Gm,Dm,Hm,Hca,Im,Ica,Jca,Km,Lm,Nca,Mm,Nm,Om,Pm,Oca,Rm,Tm,Wm,Zm,an,Ym,Xm,bn,Pca,cn,dn,en,fn,Rca,ln,mn,nn,Tca,on,pn,qn,rn,sn,tn,un,Uca,wn,xn,yn,An,zn,Bn,Cn,Dn,En,Fn,Gn,Hn,In,Jn,Kn,Vca,Ln,Mn,Wca,Nn,On,Xca,Qn,Yca,Rn,Sn,Zca,$ca,Tn,Un,Wn,Yn,Zn,$n,ao,bo,Vn,Xn,bda,co,eo,go,fo,cda,dda,eda,ho,io,jo,ko,ida,jda,kda,lda,mda,mo,no,nda,oo,oda,pda,po,qo, + ro,qda,so,uo,vo,wo,xo,yo,zo,Ao,Bo,Co,rda,sda,Do,tda,Fo,Eo,Io,Jo,Ho,Bfa,Mfa,Lfa,Mo,Nfa,Ofa,Pfa,Rfa,Qfa,No,Oo,Po,Sfa,Ro,So,Tfa,Ufa,To,Uo,Vo,Wo,Vfa,Xo,Yo,Xfa,Zo,Yfa,$o,bp,ap,cp,dp,fp,$fa,op,Zfa,pp,aga,qp,cga,dga,sp,up,vp,wp,xp,tp,yp,zp,Ep,Fp,Cp,ega,gga,hga,Hp,Ip,Jp,Kp,iga,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Vp,Up,kga,lga,Wp,Yp,Tp,Xp,jga,Zp,$p,nga,oga,pga,qga,dq,eq,fq,aq,gq,hq,mga,rga,sga,jq,iq,kq,mq,xga,tga,yga,qq,rq,sq,tq,uq,to,zga,vq,Aga,Bga,Cga,Dga,Ega,xq,yq,zq,Aq,Cq,Eq,Jga,Hq,Iq,Mq,Kga,Nq,Oq,Uq,Zq,Yq,Vq,Wq, + Xq,cr,br,Lga,er,fr,hr,Nga,jr,kr,lr,Sga,Oga,qr,Xga,rr,sr,Zga,vr,wr,xr,yr,$ga,Br,Cr,Dr,Er,Gr,Hr,Ir,Jr,Lr,Mr,Nr,Or,Pr,bha,Rr,cha,Sr,dha,Ur,Wr,Xr,gha,hha,Yr,Zr,$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,zs,As,Ds,Bs,Es,iha,Hs,Is,Ks,Ls,Ns,Qs,Rs,Ps,Ss,Ts,Us,Js,pt,Ws,nha,rt,vt,oha,At,zt,qha,rha,sha,Et,tha,uha,Bt,Gt,Ft,vha,It,Jt,Kt,Qt,Rt,St,Ut,Vt,Xt,Yt,Zt,au,bu,cu,eu,gu,hu,Tt,iu,ku,ju,wha,nu,ou,pu,qu,tu,uu,vu,wu,yha,zha,Du,Eu,Fu,Aha,Ku,Lu,Mu,Ou,Bha,Qu,Ru,Nu,Uu,Xu,Wu,Vu,Zu,bv,$u, + Cha,lv,kv,Eha,Fha,qv,tv,uv,Iha,Hha,nv,Ev,Fv,Gv,Lv,Mv,Jv,Nv,Pv,Rv,Sv,Kha,Tv,Vv,Lha,bw,cw,fw,ew,gw,hw,jw,kw,lw,mw,Pha,Qha,ow,pw,rw,tw,qw,uw,Rha,vw,ww,xw,yw,zw,Bw,Cw,Sha,Tha,Dw,Hw,Iw,Aw,Jw,Vha,Ew,Wha,Lw,Xha,Fw,Kw,Mw,Gw,Uha,Ow,Pw,Yha,Qw,Rw,Nw,Zha,Sw,Tw,Uw,Vw,Ww,Yw,Zw,$w,$ha,aia,bia,dx,fx,gx,cia,dia,eia,fia,gia,hx,hia,jx,ix,mx,iia,lx,kx,ox,nx,px,qx,sx,jia,xx,wx,rx,yx,kia,zx,lia,Bx,Dx,Ex,Fx,Gx,Hx,mia,nia,Cx,Ix,pia,qia,Kx,Lx,Mx,Nx,sia,ria,Ox,Qx,Px,uia,Xx,Yx,via,Ux,wia,Rx,Vx,Tx,Sx,Wx,xia,cy,dy,zia,yia,Cia, + Aia,Fia,Gia,Eia,fy,iy,jy,Iia,hy,ky,ly,ny,oy,ry,sy,py,Kia,ty,uy,Lia,wy,yy,zy,Oia,By,Cy,Pia,Qia,Ria,Fy,Tia,Uia,Via,Hy,Wia,Yia,Iy,Zia,Jy,Ky,Yv,gja,Oy,hja,ija,jja,Py,lja,Hz,mja,pja,sja,qja,Rz,Qz,tja,Pz,Sz,Tz,wja,yja,Xz,Yz,Aja,T,Zz,$z,aA,bA,cA,dA,Bja,eA,fA,gA,hA,Gja,Ija,Kja,Mja,Nja,jA,Pja,Qja,pA,qA,Rja,Sja,rA,uA,vA,Tja,xA,Uja,AA,zA,BA,Vja,CA,DA,wA,EA,Wja,Zja,$ja,FA,GA,HA,aka,IA,JA,LA,MA,bka,gka,NA,hka,jka,OA,RA,QA,UA,TA,mka,VA,WA,lka,nka,XA,PA,oka,pka,ZA,$A,aB,bB,cB,dB,fB,gB,iB,qka,jB,mB,nB,lB,uka,yka, + rB,tka,ska,sB,zka,Aka,Bka,wB,xB,Cka,Dka,yB,vB,Fka,Eka,zB,Gka,AB,BB,Hka,CB,DB,EB,FB,GB,HB,IB,JB,KB,LB,Ika,MB,OB,Kka,Lka,NB,Mka,Nka,PB,Oka,SB,Pka,TB,VB,Qka,UB,WB,Rka,YB,Tka,$B,aC,fC,Vka,cC,hC,jC,Wka,lC,eC,iC,gC,Xka,mC,Yka,nC,Zka,bC,dC,Uka,kC,oC,$ka,ala,pC,bla,dla,ela,qC,fla,sC,gla,rC,tC,hla,uC,vC,wC,xC,yC,ila,AC,jla,kla,BC,CC,DC,EC,lla,zC,FC,mla,nla,GC,HC,IC,JC,ola,pla,LC,qla,MC,NC,rla,sla,OC,tla,ula,yla,zla,vla,wla,xla,PC,RC,QC,SC,TC,Ala,Bla,UC,VC,WC,Cla,XC,YC,ZC,Dla,Ela,$C,Fla,aD,Gla,bD,cD,Hla,Ila, + Jla,Kla,Mla,Lla,eD,Nla,Ola,Pla,fD,gD,hD,Qla,jD,iD,nD,oD,pD,qD,rD,Rla,sD,lD,Sla,tD,vD,wD,Tla,xD,yD,zD,AD,BD,CD,DD,ED,Ula,FD,GD,Vla,HD,ID,LD,MD,ND,OD,PD,Wla,QD,RD,SD,Xla,Yla,TD,UD,wka,qB,bma,cma,dma,ema,fma,gma,kB,hma,VD,lma,kma,jma,WD,ima,nma,XD,rma,oma,pma,tma,uma,$D,sma,vma,aE,bE,cE,wma,xma,yma,dE,ZD,zma,Ama,Bma,eE,Cma,Dma,Ema,gE,fE,Fma,Gma,Hma,hE,Ima,Jma,Lma,xka,vka,iE,kE,mE,nE,oE,pE,lE,sE,Nma,uE,Pma,vE,Rma,Qma,Oma,Sma,Tma,Uma,wE,rka,xE,Vma,oB,Wma,zE,AE,Xma,Yma,Zma,$ma,ana,BE,bna,CE,DE,cna,EE,dna, + GE,ena,HE,IE,JE,KE,fna,gna,hna,jna,LE,kna,ina,ME,NE,OE,PE,lna,QE,RE,oF,jF,pna,una,pF,sF,tF,bF,Ana,SE,vna,kF,mF,wF,AF,rna,Bna,ZE,DF,YE,tna,EF,nna,nF,zna,GF,HF,Dna,Ena,IF,Fna,Gna,Hna,Ina,JF,Jna,Ona,Nna,Kna,Mna,Lna,KF,Pna,LF,Qna,Rna,MF,OF,PF,Una,Vna,TF,UF,Wna,VF,WF,Xna,Yna,$na,coa,doa,eoa,ZF,ioa,koa,loa,moa,aoa,goa,hoa,noa,ooa,soa,uoa,dG,eG,voa,xoa,yoa,zoa,Aoa,Goa,gG,Hoa,Joa,Ioa,Koa,kG,Loa,hG,lG,mG,Moa,oG,Qoa,Noa,Poa,vG,xG,cpa,Yoa,tG,BG,bpa,dpa,CG,epa,fpa,DG,Woa,hpa,gpa,qG,uG,wG,npa,jpa,opa,kpa,lpa, + mpa,ppa,EG,qpa,rpa,GG,HG,JG,pG,AG,Zoa,Ooa,apa,$oa,LG,tpa,ipa,SG,TG,UG,VG,wpa,WG,xpa,YG,XG,Xoa,ypa,spa,zG,zpa,Toa,sG,Soa,woa,bH,cH,Bpa,dH,rH,sH,uH,tH,vH,Cpa,Dpa,wH,yH,Epa,Fpa,Hpa,Gpa,zH,AH,Ipa,Jpa,BH,Kpa,CH,DH,EH,FH,GH,HH,Lpa,IH,Mpa,JH,LH,Ppa,KH,Qpa,Npa,Opa,Rpa,Spa,MH,NH,OH,PH,QH,RH,Upa,Vpa,WH,VH,Ypa,Xpa,Zpa,ZH,Wpa,$H,SH,aI,YH,XH,UH,TH,aqa,cI,eI,gI,hI,cqa,iI,bqa,jI,kI,lI,mI,nI,oI,dqa,pI,eqa,qI,gqa,sI,hqa,iqa,jqa,mqa,kqa,lqa,nqa,tI,oqa,pqa,qqa,rqa,sqa,uI,vI,wI,xI,yI,zI,AI,BI,CI,DI,EI,FI,GI,HI,II,JI, + KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,YI,ZI,$I,aJ,bJ,cJ,dJ,eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,qJ,rJ,sJ,uqa,tqa,wqa,xqa,vqa,tJ,yqa,uJ,vJ,wJ,yJ,zqa,xJ,zJ,AJ,BJ,Aqa,EJ,FJ,Bqa,Gqa,GJ,Hqa,HJ,IJ,Iqa,JJ,Jqa,Kqa,Mqa,Nqa,Oqa,LJ,KJ,Lqa,MJ,Rqa,Pqa,Qqa,Tqa,Uqa,NJ,Vqa,Sqa,OJ,PJ,Yqa,Zqa,QJ,$qa,ara,RJ,TJ,UJ,VJ,WJ,ZJ,aK,bK,bra,cra,cK,era,fra,dK,gra,fK,hra,ira,gK,hK,jra,kra,iK,mra,lra,jK,pra,kK,qra,lK,mK,nK,pK,rra,sra,tra,ura,vra,qK,sK,zra,Cra,wra,tK,Mra,Lra,uK,Ora,Nra,Qra,Rra,Tra,Sra,Ura,Vra,Wra,Xra,vK,wK,Yra, + Zra,$ra,bsa,csa,dsa,esa,fsa,DK,hsa,isa,BK,CK,gsa,jsa,ksa,EK,nsa,lsa,psa,osa,qsa,$pa,rsa,ssa,tsa,usa,FK,zsa,wsa,xsa,ysa,Asa,GK,Bsa,Dsa,Esa,Csa,HK,Fsa,eK,Hsa,Isa,dra,Gsa,IK,JK,Jsa,Ksa,Lsa,KK,MK,Nsa,NK,QK,Osa,RK,Psa,Qsa,SK,Ssa,Tsa,Usa,Vsa,Wsa,Xsa,Ysa,XK,Zsa,YK,$sa,ata,bta,cta,dta,bL,cL,dL,eta,eL,fta,gL,hta,gta,hL,iL,jL,kL,ita,lL,mL,jta,nL,oL,nta,kta,mta,lta,ota,pL,qL,pta,qta,rta,sta,rL,tta,vta,uta,sL,tL,uL,vL,wL,yL,zL,AL,BL,CL,wta,DL,EL,yta,xta,FL,zta,GL,HL,IL,JL,KL,NL,OL,PL,QL,RL,SL,TL,UL,Bta,Dta,Cta, + VL,Gta,Hta,Jta,Kta,Mta,ZL,Nta,$L,aM,bM,cM,Pta,eM,Rta,Qta,Tta,Sta,fM,gM,hM,iM,jM,kM,lM,oM,Uta,Wta,Xta,qM,Yta,Xv,$ta,Zta,rM,bua,aua,dua,cua,eua,gua,hua,jua,kua,oua,nua,pua,wM,qua,zM,xM,AM,yM,vsa,rua,sua,tua,uua,FM,EM,xua,HM,Aua,QM,RM,Bua,SM,TM,Cua,Dua,VM,WM,Eua,Lua,Mua,Pua,Nua,Qua,Rua,Sua,Tua,Vua,gN,Zua,jN,ava,Yua,bva,cva,iN,$ua,kN,lN,mN,JM,nN,CM,pN,fva,dva,eva,qN,tN,hva,sN,vN,iva,jva,yN,zN,AN,EN,lva,mva,FN,GN,nva,ova,pva,qva,HN,rva,sva,IN,tva,uva,KN,LN,vva,ON,xva,QN,MN,yva,zva,wva,RN,SN,VN,Ava,UN, + XN,WN,ZN,aO,Bva,dO,Cva,Fva,Dva,hO,iO,Gva,lO,mO,nO,oO,qO,Iva,Hva,Jva,sO,Lva,Kva,Mva,Nva,Ova,Pva,yO,zO,Qva,AO,BO,Rva,Sva,CO,FO,Uva,Tva,GO,HO,IO,Vva,JO,KO,LO,MO,Wva,NO,OO,Xva,PO,Yva,$va,Zva,UO,SO,TO,awa,bwa,cwa,VO,WO,XO,YO,ZO,dwa,bP,ewa,dP,eP,fP,hP,iP,jP,kP,fwa,iwa,lP,gwa,hwa,mwa,nwa,nP,pwa,owa,qwa,rwa,swa,pP,rP,twa,vwa,uwa,sP,tP,uP,vP,wwa,xwa,ywa,zwa,Awa,yP,Cwa,Bwa,Ewa,AP,Fwa,FP,Hwa,Iwa,CP,zP,BP,HP,Lwa,IP,EP,Dwa,Kwa,GP,Gwa,Jwa,Mwa,Nwa,DP,KP,LP,MP,NP,Pwa,QP,RP,SP,TP,UP,VP,Qwa,WP,YP,XP,ZP,$P,Rwa,aQ,Swa, + Uwa,Twa,bQ,cQ,Vwa,dQ,eQ,Wwa,fQ,Xwa,gQ,Ywa,hQ,Zwa,lQ,kQ,oQ,nQ,$wa,mQ,rQ,axa,bxa,sQ,tQ,uQ,vQ,xQ,cxa,bO,gxa,wO,dxa,qQ,fxa,xO,exa,hxa,jxa,ixa,kxa,lxa,BQ,mxa,CQ,nxa,EQ,FQ,GQ,HQ,IQ,JQ,KQ,pxa,LQ,MQ,NQ,OQ,QQ,qxa,rxa,RQ,SQ,TQ,UQ,$Q,vxa,wxa,yxa,aR,bR,cR,Axa,Cxa,Bxa,dR,Exa,Fxa,Gxa,Hxa,Ixa,Jxa,eR,fR,gR,Kxa,hR,Mxa,Nxa,Oxa,Pxa,Qxa,Rxa,jR,kR,mR,nR,oR,Uxa,lR,Vxa,pR,Sxa,Txa,Wxa,qR,rR,sR,tR,Yxa,Zxa,uR,vR,Xxa,xR,aya,dya,cya,eya,fya,gya,yR,zR,AR,BR,hya,FR,iya,jya,kya,GR,lya,HR,IR,JR,LR,qya,nya,oya,KR,mya,sya,rya,uya, + vya,wya,xya,yya,MR,tya,NR,OR,PR,zya,QR,Aya,RR,SR,Dya,Eya,Bya,Cya,TR,UR,Hya,Iya,Gya,Kya,VR,Nya,Oya,Pya,Lya,Qya,Mya,Sya,Tya,WR,YR,Uya,Vya,Wya,Xya,Yya,$R,aS,Zya,$ya,aza,bS,dza,cza,cS,eza,dS,kza,gza,fza,bza,iza,jza,lza,mza,nza,oza,pza,rza,qza,sza,tza,uza,vza,wza,eS,Aza,xza,Bza,fS,Cza,Eza,Fza,Dza,gS,Gza,hS,Jza,Kza,Iza,Hza,jS,yza,zza,Pza,Qza,Rza,Sza,lS,Tza,iS,Lza,Nza,Oza,Xza,Uza,Wza,Yza,Zza,Vza,$za,aAa,bAa,nS,cAa,dAa,fAa,gAa,hAa,iAa,jAa,rS,kAa,lAa,mAa,sS,tS,uS,vS,rAa,uAa,sAa,oAa,xS,nAa,tAa,AS,wAa,vAa,BS, + yAa,AAa,BAa,zAa,ES,CAa,GAa,HAa,LS,MS,NS,IAa,GS,OS,QS,JAa,JS,SS,KAa,TS,LAa,US,RS,NAa,OAa,PAa,QAa,RAa,HS,EAa,VS,WS,WAa,XS,XAa,YAa,UAa,ZS,ZAa,$S,SAa,bT,VAa,$Aa,aT,YS,aBa,cT,bBa,dBa,fT,dT,gT,eT,hT,iT,eBa,jT,kT,lT,mT,fBa,nT,gBa,pT,iBa,jBa,kBa,XT,NT,qT,lBa,mBa,nBa,oBa,bU,cU,dU,pBa,qBa,rBa,eU,sBa,gU,tBa,fU,hU,iU,uBa,wBa,ABa,xBa,yBa,zBa,BBa,nU,oU,CBa,EBa,FBa,GBa,pU,qU,LBa,MBa,NBa,vU,wU,OBa,xU,KBa,PBa,rU,HBa,QBa,sU,tU,IBa,JBa,uU,RBa,SBa,TBa,foa,joa,zU,AU,VBa,UBa,BU,CU,DU,WBa,XBa,YBa,EU,ZBa,$Ba,FU,aCa,GU,HU, + bCa,IU,dCa,JU,iCa,LU,lU,cCa,kCa,NU,gCa,hCa,fCa,MU,KU,eCa,jCa,oCa,mCa,lCa,PU,pCa,QU,qCa,RU,SU,rCa,sCa,tCa,uCa,vCa,UU,VU,WU,XU,YU,ZU,yCa,zCa,kU,mU,CCa,bV,cV,DBa,fV,aV,DCa,$U,ACa,BCa,gV,hV,ECa,eV,jU,dV,FCa,GCa,HCa,iV,JCa,ICa,jV,kV,OCa,NCa,mV,lV,QCa,oV,nV,RCa,LCa,qV,PCa,MCa,pV,rV,SCa,TCa,sV,vV,VCa,tV,ZCa,uV,$Ca,wV,XCa,WCa,aDa,xV,bDa,cDa,fDa,eDa,dDa,yV,gDa,jDa,kDa,DV,EV,mDa,nDa,GV,HV,JV,qDa,KV,rDa,BV,lDa,tDa,uDa,wDa,nCa,NV,vDa,IV,oDa,xDa,yDa,zDa,ADa,hDa,CV,AV,FV,BDa,CDa,QV,RV,DDa,EDa,FDa,HDa,GDa,SV,IDa, + KDa,JDa,MDa,UV,QDa,NDa,PDa,RDa,VV,VDa,TDa,UDa,XDa,YDa,ZDa,WV,TV,$Da,SDa,aEa,XV,bEa,ODa,cEa,YV,ZV,dEa,fEa,gEa,$V,eEa,aW,bW,hEa,cW,dW,eW,fW,jEa,mEa,lEa,kEa,hW,nEa,gW,oEa,jW,lW,pEa,sEa,qEa,rEa,tEa,vEa,uEa,wEa,xEa,mW,zEa,BEa,AEa,CEa,DEa,yEa,EEa,GEa,IEa,JEa,FEa,KEa,LEa,NEa,MEa,OEa,HEa,nW,PEa,QEa,REa,SEa,UEa,oW,pW,WEa,sW,tW,ZEa,uW,$Ea,aFa,vW,XEa,bFa,cFa,dFa,yW,eFa,gFa,fFa,hFa,zW,AW,iFa,BW,kFa,CW,DW,mFa,FW,EW,nFa,HW,lFa,IW,oFa,GW,pFa,JW,qFa,YEa,xW,sFa,tFa,uFa,vFa,wFa,xFa,yFa,zFa,BFa,CFa,DFa,AFa,EFa,FFa, + GFa,LW,HFa,IFa,MW,NW,JFa,KFa,LFa,PW,NFa,RW,OFa,PFa,QW,OW,MFa,UW,TW,QFa,VW,SW,RFa,XW,VFa,$W,WFa,TFa,YW,XFa,aX,UFa,YFa,bX,$Fa,WW,aGa,bGa,ZFa,cGa,ZW,dGa,eGa,SFa,cX,dX,eX,fX,gX,fGa,hX,TU,xCa,gGa,hGa,iDa,wCa,iX,iGa,jGa,kGa,mGa,nGa,oGa,pGa,qGa,rGa,jX,tGa,kX,uGa,vGa,wGa,mX,nX,oX,pX,qX,rX,sX,xGa,tX,yGa,CGa,AGa,zGa,HGa,GGa,FGa,uX,sGa,lX,IGa,NGa,LGa,OGa,MGa,JGa,PGa,KGa,RGa,vX,TGa,UGa,VGa,bI,AX,WGa,kS,ZGa,DAa,$Ga,BX,kW,aHa,IX,DX,DS,YGa,KX,MV,OV,LX,Mza,GX,HX,LV,eHa,dHa,bHa,EX,MX,gHa,yS,hHa,iW,xAa,OX,PS,XGa,CX, + iHa,kHa,jHa,lHa,PX,qAa,mHa,nHa,cHa,wX,oHa,QX,FX,xX,pHa,RX,zS,qHa,SX,KS,rHa,sHa,tHa,pAa,NX,fHa,sDa,AHa,wHa,DHa,vHa,EHa,FHa,YX,aY,JHa,GHa,IHa,cY,HHa,dY,eY,LHa,TX,VX,zHa,kY,MHa,jY,XX,NHa,OHa,CHa,nY,PHa,QHa,UX,gY,hY,fY,qY,VHa,bY,mY,rY,sY,WHa,iY,KHa,pY,RHa,tY,XHa,YHa,ZHa,BM,$Ha,lY,uY,bIa,ZX,vY,$X,cIa,dIa,yHa,oY,eIa,xHa,wY,xY,hBa,fIa,yY,zY,AY,gIa,BY,CY,DY,EY,FY,GY,iIa,hIa,HY,jIa,IY,Wz,X,JY,lIa,LY,nIa,KY,oIa,NY,pIa,OY,MY,PY,QY,Dqa,Eqa,fqa,SY,rIa,aZ,Fqa,bZ,CJ,ZY,cZ,vIa,wIa,xIa,yIa,qIa,zIa,RY,AIa,BIa,fZ,WY, + eZ,kZ,gZ,UY,CIa,TY,sIa,dZ,hZ,mZ,XY,YY,jZ,iZ,EIa,nZ,oZ,FIa,pZ,Y,GIa,HIa,KIa,LIa,PIa,qZ,QIa,MIa,RIa,rZ,sZ,tZ,TIa,WIa,UIa,ZIa,gJa,fJa,$Ia,hJa,bJa,cJa,aJa,kJa,mJa,pJa,qJa,sJa,tJa,xJa,FZ,uJa,AJa,yJa,CJa,HZ,xja,DJa,KZ,Uz,MZ,NZ,uja,OZ,FJa,GJa,GZ,DZ,vZ,yZ,PZ,QZ,zZ,HJa,YIa,wZ,xZ,CZ,IJa,JJa,RZ,KJa,SZ,LJa,IZ,BZ,AZ,uZ,nJa,rJa,EZ,vJa,iJa,dJa,TZ,UZ,VZ,MJa,WZ,XZ,YZ,ZZ,$Z,a_,b_,c_,IIa,d_,JIa,OJa,NJa,SIa,oJa,PJa,BJa,QJa,RJa,lJa,XIa,VIa,OIa,NIa,eJa,wJa,zJa,jJa,TJa,e_,SJa,f_,DJ,VY,tIa,LZ,g_,h_,i_,UJa,j_,k_,l_,lZ,$Y, + VJa,JZ,m_,WJa,n_,p_,q_,r_,s_,YJa,u_,v_,w_,XJa,t_,ZJa,$Ja,x_,Vz,dKa,cKa,y_,z_,o_,eKa,fKa,A_,B_,gKa,C_,D_,hKa,iKa,jKa,kKa,E_,lKa,F_,G_,H_,I_,J_,K_,mKa,L_,M_,N_,O_,P_,Q_,R_,S_,nKa,oKa,pKa,T_,U_,V_,W_,qKa,X_,rKa,Y_,sKa,Z_,tKa,$_,a0,b0,c0,d0,e0,uKa,g0,h0,vKa,wKa,xKa,j0,i0,l0,m0,k0,o0,yKa,zKa,bKa,n0,p0,AKa,q0,CKa,BKa,r0,s0,EJa,DKa,t0,EKa,u0,GKa,HKa,FKa,IKa,v0,JKa,KKa,LKa,w0,x0,y0,MKa,z0,A0,B0,NKa,C0,D0,OKa,E0,f0,F0,G0,Cqa,H0,PKa,I0,QKa,J0,K0,RKa,SKa,L0,M0,N0,TKa,O0,UKa,P0,Q0,WKa,VKa,XKa,YKa,ZKa,R0,S0,T0, + $Ka,aLa,bLa,cLa,dLa,eLa,fLa,gLa,U0,V0,hLa,iLa,W0,X0,Y0,Z0,jLa,$0,a1,kLa,b1,lLa,mLa,c1,nLa,oLa,d1,e1,pLa,f1,g1,i1,qLa,j1,k1,l1,rLa,m1,sLa,n1,o1,tLa,p1,uLa,q1,vLa,wLa,xLa,yLa,zLa,s1,ALa,BLa,CLa,DLa,ELa,t1,u1,FLa,v1,w1,x1,y1,GLa,z1,HLa,ILa,JLa,C1,KLa,LLa,MLa,NLa,D1,B1,OLa,F1,PLa,G1,QLa,H1,I1,J1,K1,L1,RLa,TLa,SLa,ULa,M1,VLa,WLa,N1,XLa,O1,P1,Q1,YLa,ZLa,R1,$La,S1,aMa,T1,bMa,cMa,dMa,vja,eMa,fMa,aa,fa,ea,Fi,Ma,eaa;ba=function(a){return function(){return aa[a].apply(this,arguments)}}; + g.ca=function(a,b){return aa[a]=b}; + da=function(a){var b=0;return function(){return b>=8);b[c++]=e}return b}; + iaa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&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.Xa=function(a){for(var b=[],c=0,d=0;ce)b[d++]=String.fromCharCode(e);else if(191e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(239e){f=a[c++];var h=a[c++],l=a[c++];e=((e&7)<<18|(f&63)<<12|(h&63)<<6|l&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],h=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|h&63)}return b.join("")}; + Ya=function(a,b){return 0==a.lastIndexOf(b,0)}; + Za=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}; + g.$a=function(a){return/^[\s\xa0]*$/.test(a)}; + gb=function(a,b){if(b)a=a.replace(ab,"&").replace(bb,"<").replace(cb,">").replace(db,""").replace(eb,"'").replace(fb,"�");else{if(!jaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ab,"&"));-1!=a.indexOf("<")&&(a=a.replace(bb,"<"));-1!=a.indexOf(">")&&(a=a.replace(cb,">"));-1!=a.indexOf('"')&&(a=a.replace(db,"""));-1!=a.indexOf("'")&&(a=a.replace(eb,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(fb,"�"))}return a}; + ib=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}; + g.nb=function(a,b){var c=0;a=jb(String(a)).split(".");b=jb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&eb?1:0}; + g.pb=function(a){return a[a.length-1]}; + kaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)}; + g.tb=function(a,b,c){b=qb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]}; + qb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}; + maa=function(a){for(var b=0,c=0,d={};c>>1),n=void 0;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0b?1:ac&&g.Gb(a,-(c+1),0,b)}; + g.Rb=function(a,b,c){var d={};(0,g.Qb)(a,function(e,f){d[b.call(c,e,f,a)]=e}); + return d}; + paa=function(a){for(var b=[],c=0;c=a}; + g.Mc=function(a,b){void 0===b&&(b=0);Kc();b=Lc[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("")}; + Pc=function(a){var b=[];Nc(a,function(c){b.push(c)}); + return b}; + Rc=function(a){!g.Qc||g.Ic("10");var b=a.length,c=3*b/4;c%3?c=Math.floor(c):-1!="=.".indexOf(a[b-1])&&(c=-1!="=.".indexOf(a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Nc(a,function(f){d[e++]=f}); + return d.subarray(0,e)}; + Nc=function(a,b){function c(m){for(;d>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}}; + Kc=function(){if(!Sc){Sc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Lc[c]=d;for(var e=0;ee&&128<=b;e++)b=a.u[a.i++],c|=(b&127)<<7*e;128<=b&&(b=a.u[a.i++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.u[a.i++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.D=!0}; + ad=function(a){var b=a.u,c=b[a.i+0],d=c&127;if(128>c)return a.i+=1,d;c=b[a.i+1];d|=(c&127)<<7;if(128>c)return a.i+=2,d;c=b[a.i+2];d|=(c&127)<<14;if(128>c)return a.i+=3,d;c=b[a.i+3];d|=(c&127)<<21;if(128>c)return a.i+=4,d;c=b[a.i+4];d|=(c&15)<<28;if(128>c)return a.i+=5,d>>>0;a.i+=5;128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&128<=b[a.i++]&&a.i++;return d}; + bd=function(a){var b={},c=void 0===b.oD?!1:b.oD;this.K={Bl:void 0===b.Bl?!1:b.Bl};this.oD=c;this.i=Zc(a,void 0,void 0,this.K);this.J=this.i.i;this.u=this.D=this.C=-1;this.B=!1}; + cd=function(a){var b=a.i;(b=b.i==b.B)||(b=a.B)||(b=a.i,b=b.D||0>b.i||b.i>b.B);if(b)return!1;a.J=a.i.i;b=ad(a.i);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.D=b;a.C=b>>>3;a.u=c;return!0}; + fd=function(a){switch(a.u){case 0:if(0!=a.u)fd(a);else{for(a=a.i;a.u[a.i]&128;)a.i++;a.i++}break;case 1:1!=a.u?fd(a):a.i.advance(8);break;case 2:if(2!=a.u)fd(a);else{var b=ad(a.i);a.i.advance(b)}break;case 5:5!=a.u?fd(a):a.i.advance(4);break;case 3:b=a.C;do{if(!cd(a)){a.B=!0;break}if(4==a.u){a.C!=b&&(a.B=!0);break}fd(a)}while(1);break;default:a.B=!0}}; + hd=function(a){var b=ad(a.i);a=a.i;var c=a.i;a.i+=b;a=a.u;var d;if(uaa)(d=gd)||(d=gd=new TextDecoder("utf-8",{fatal:!1})),d=d.decode(a.subarray(c,c+b));else{b=c+b;for(var e=[],f=null,h,l,m;ch?e.push(h):224>h?c>=b?e.push(65533):(l=a[c++],194>h||128!==(l&192)?(c--,e.push(65533)):e.push((h&31)<<6|l&63)):240>h?c>=b-1?e.push(65533):(l=a[c++],128!==(l&192)||224===h&&160>l||237===h&&160<=l||128!==((d=a[c++])&192)?(c--,e.push(65533)):e.push((h&15)<<12|(l&63)<<6|d&63)):244>=h?c>=b-2?e.push(65533): + (l=a[c++],128!==(l&192)||0!==(h<<28)+(l-144)>>30||128!==((d=a[c++])&192)||128!==((m=a[c++])&192)?(c--,e.push(65533)):(h=(h&7)<<18|(l&63)<<12|(d&63)<<6|m&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):e.push(65533),8192<=e.length&&(f=Ua(f,e),e.length=0);d=Ua(f,e)}return d}; + id=function(a){var b=ad(a.i);a=a.i;if(0>b||a.i+b>a.u.length)a.D=!0,b=new Uint8Array(0);else{var c=a.Bl?a.u.subarray(a.i,a.i+b):Uc(a.u,a.i,a.i+b);a.i+=b;b=c}return b}; + jd=function(){this.i=new Uint8Array(64);this.u=0}; + kd=function(a,b){for(;127>>=7;a.push(b)}; + ld=function(a,b){a.push(b>>>0&255);a.push(b>>>8&255);a.push(b>>>16&255);a.push(b>>>24&255)}; + md=function(){this.B=[];this.u=0;this.i=new jd}; + nd=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)}; + od=function(a){nd(a,a.i.end())}; + pd=function(a){var b=a.u+a.i.length();if(0===b)return new Uint8Array(0);b=new Uint8Array(b);for(var c=a.B,d=c.length,e=0,f=0;fd;d=Math.abs(d);b=d>>>0;d=Math.floor((d-b)/4294967296);d>>>=0;c&&(d=~d>>>0,b=(~b>>>0)+1,4294967295>>7|b<<25)>>>0,b>>>=7;a.push(c)}}; + td=function(a,b,c){null!=c&&(c=Vc(c),kd(a.i,8*b+2),kd(a.i,c.length),od(a),nd(a,c))}; + ud=function(a,b,c,d){if(null!=c){kd(a.i,8*b+2);od(a);var e=a.u;b=a.B.length-1;d(c,a);od(a);kd(a.i,a.u+a.i.length()-e);c=a.i.end();a.u+=c.length;a.B.splice(1+b,0,c)}}; + wd=function(a){return null!==a&&"object"==typeof a&&!Array.isArray(a)&&!vd(a)}; + yd=function(a,b){if(null!=a)return Array.isArray(a)||wd(a)?xd(a,b):b(a)}; + xd=function(a,b){if(Array.isArray(a)){for(var c=Array(a.length),d=0;d=a.D?a.B?a.B[b]:void 0:a.u[b+a.C]}; + Qd=function(a,b){var c=void 0===c?!1:c;var d=Od(a,b,c);null==d&&(d=Jd);d===Jd&&(d=zd([]),Pd(a,b,d,c));return d}; + Rd=function(a,b,c){a=Od(a,b);return null==a?c:a}; + yaa=function(a,b,c){a.i||(a.i={});if(b in a.i)return a.i[b];var d=Od(a,b);d||(d=zd([]),Pd(a,b,d));c=new Dd(d,c);return a.i[b]=c}; + Pd=function(a,b,c,d){(void 0===d?0:d)||b>=a.D?(Kd(a),a.B[b]=c):a.u[b+a.C]=c;return a}; + Sd=function(a,b,c){var d=void 0===d?!1:d;return Pd(a,b,zd(c||[]),d)}; + Td=function(a,b,c,d){c!==d?Pd(a,b,c):Pd(a,b,void 0);return a}; + Vd=function(a,b,c,d){(c=Ud(a,c))&&c!==b&&null!=d&&(a.i&&c in a.i&&(a.i[c]=void 0),Pd(a,c,void 0));return Pd(a,b,d)}; + Ud=function(a,b){for(var c=0,d=0;da.u&&(a.u++,b.next=a.i,a.i=b)}; + af=function(a){return function(){return a}}; + bf=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}}; + cf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}; + df=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; + Jaa=function(a,b){var c=0;return function(d){g.D.clearTimeout(c);var e=arguments;c=g.D.setTimeout(function(){a.apply(b,e)},50)}}; + ff=function(){if(void 0===ef){var a=null,b=g.D.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ra,createScript:Ra,createScriptURL:Ra})}catch(c){g.D.console&&g.D.console.error(c.message)}ef=a}else ef=a}return ef}; + jf=function(a,b){this.i=a===gf&&b||"";this.u=hf}; + kf=function(a){return a instanceof jf&&a.constructor===jf&&a.u===hf?a.i:"type_error:Const"}; + g.lf=function(a){return new jf(gf,a)}; + nf=function(a,b){this.i=b===mf?a:"";this.Ck=!0}; + pf=function(a,b){this.i=b===of?a:""}; + qf=function(a){return a instanceof pf&&a.constructor===pf?a.i:"type_error:TrustedResourceUrl"}; + Maa=function(a,b){var c=kf(a);if(!Kaa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Laa,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof jf?kf(d):encodeURIComponent(String(d))}); + return rf(a)}; + rf=function(a){var b=ff();a=b?b.createScriptURL(a):a;return new pf(a,of)}; + g.tf=function(a,b){this.i=b===sf?a:""}; + g.uf=function(a){return a instanceof g.tf&&a.constructor===g.tf?a.i:"type_error:SafeUrl"}; + vf=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(Naa);return b&&Oaa.test(b[1])?new g.tf(a,sf):null}; + g.yf=function(a){a instanceof g.tf||(a="object"==typeof a&&a.Ck?a.Hh():String(a),a=wf.test(a)?new g.tf(a,sf):vf(a));return a||xf}; + g.zf=function(a,b){if(a instanceof g.tf)return a;a="object"==typeof a&&a.Ck?a.Hh():String(a);if(b&&/^data:/i.test(a)&&(b=vf(a)||xf,b.Hh()==a))return b;wf.test(a)||(a="about:invalid#zClosurez");return new g.tf(a,sf)}; + Bf=function(a,b){this.i=b===Af?a:"";this.Ck=!0}; + Cf=function(a){return a instanceof Bf&&a.constructor===Bf?a.i:"type_error:SafeStyle"}; + Ff=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Df).join(" "):Df(d),b+=c+":"+d+";")}return b?new Bf(b,Af):Ef}; + Paa=function(a){function b(d){Array.isArray(d)?d.forEach(b):c+=Cf(d)} + var c="";Array.prototype.forEach.call(arguments,b);return c?new Bf(c,Af):Ef}; + Df=function(a){if(a instanceof g.tf)return'url("'+g.uf(a).replace(/a*b?a+b:a}; + g.Zf=function(a,b,c){return a+c*(b-a)}; + $f=function(a,b){return 1E-6>=Math.abs(a-b)}; + g.ag=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0}; + bg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; + g.cg=function(a,b){this.width=a;this.height=b}; + g.dg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; + eg=function(a){return a.width*a.height}; + fg=function(a){return encodeURIComponent(String(a))}; + gg=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; + g.hg=function(a){return a=gb(a,void 0)}; + g.ig=function(a){return null==a?"":String(a)}; + jg=function(a){for(var b=0,c=0;c>>0;return b}; + kg=function(a){var b=Number(a);return 0==b&&g.$a(a)?NaN:b}; + lg=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; + mg=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; + $aa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; + aba=function(a){var b=1;a=a.split(":");for(var c=[];0a}; + Rg=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Qg(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.wb(f.className.split(/\s+/),c))},!0,d)}; + Qg=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null}; + ng=function(a){this.i=a||g.D.document||document}; + Tg=function(a){"function"!==typeof g.D.setImmediate||g.D.Window&&g.D.Window.prototype&&(Sb||!Vb("Edge"))&&g.D.Window.prototype.setImmediate==g.D.setImmediate?(Sg||(Sg=dba()),Sg(a)):g.D.setImmediate(a)}; + dba=function(){var a=g.D.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Vb("Presto")&&(a=function(){var e=g.Gg("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="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.E)(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("undefined"!==typeof a&&!(Sb?0:Vb("Trident")||Vb("MSIE"))){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.lJ;c.lJ=null;e()}}; + return function(e){d.next={lJ:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.D.setTimeout(e,0)}}; + Ug=function(a){g.D.setTimeout(function(){throw a;},0)}; + Vg=function(){this.u=this.i=null}; + Xg=function(){this.next=this.scope=this.i=null}; + g.ah=function(a,b){Yg||eba();Zg||(Yg(),Zg=!0);$g.add(a,b)}; + eba=function(){if(g.D.Promise&&g.D.Promise.resolve){var a=g.D.Promise.resolve(void 0);Yg=function(){a.then(bh)}}else Yg=function(){Tg(bh)}}; + bh=function(){for(var a;a=$g.remove();){try{a.i.call(a.scope)}catch(b){Ug(b)}$e(ch,a)}Zg=!1}; + dh=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}; + fh=function(a){this.i=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Ha)try{var b=this;a.call(void 0,function(c){eh(b,2,c)},function(c){eh(b,3,c)})}catch(c){eh(this,3,c)}}; + gh=function(){this.next=this.context=this.onRejected=this.u=this.i=null;this.B=!1}; + ih=function(a,b,c){var d=hh.get();d.u=a;d.onRejected=b;d.context=c;return d}; + jh=function(a){if(a instanceof fh)return a;var b=new fh(g.Ha);eh(b,2,a);return b}; + kh=function(a){return new fh(function(b,c){c(a)})}; + mh=function(a,b,c){lh(a,b,c,null)||g.ah(g.Oa(b,a))}; + fba=function(a){return new fh(function(b,c){a.length||b(void 0);for(var d=0,e;d=a.C&&a.PN()}; + Dh=function(a,b){return a.J.has(b)?void 0:a.i.get(b)}; + jba=function(a){for(var b=0;bu;u+=4)t[u/4]=q[u]<<24|q[u+1]<<16|q[u+2]<<8|q[u+3];for(u=16;80>u;u++)q=t[u-3]^t[u-8]^t[u-14]^t[u-16],t[u]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],y=e[2],z=e[3],G=e[4];for(u=0;80>u;u++){if(40>u)if(20>u){var F=z^x&(y^z);var C=1518500249}else F=x^y^z,C=1859775393;else 60>u?(F=x&y|z&(x|y),C=2400959708):(F=x^y^z,C=3395469782);F=((q<<5|q>>>27)&4294967295)+F+G+C+t[u]&4294967295;G=z;z=y;y=(x<<30|x>>>2)&4294967295;x=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]= + e[2]+y&4294967295;e[3]=e[3]+z&4294967295;e[4]=e[4]+G&4294967295} + function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var u=[],x=0,y=q.length;xn?c(l,56-n):c(l,64-(n-56));for(var u=63;56<=u;u--)f[u]=t&255,t>>>=8;b(f);for(u=t=0;5>u;u++)for(var x=24;0<=x;x-=8)q[t++]=e[u]>>x&255;return q} + for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,vR:function(){for(var q=d(),t="",u=0;ub&&(b=a.length);var c=a.indexOf("?");if(0>c||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.substr(0,c),d,a.substr(b)]}; + ni=function(a,b){return b?a?a+"&"+b:b:a}; + oi=function(a,b){if(!b)return a;a=mi(a);a[1]=ni(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; + pi=function(a,b,c){if(Array.isArray(b))for(var d=0;dd)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return gg(a.substr(d,e-d))}; + yi=function(a,b){for(var c=a.search(wi),d=0,e,f=[];0<=(e=vi(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(vba,"$1")}; + zi=function(a,b,c){return ui(yi(a,b),b,c)}; + wba=function(a,b){a=mi(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");b.hasOwnProperty(0<=f?e.substr(0,f):e)||d.push(e)}); + a[1]=ni(d.join("&"),g.ri(b));return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; + g.Ai=function(a){g.Ue.call(this);this.headers=new Map;this.Ea=a||null;this.D=!1;this.Aa=this.i=null;this.Ua=this.Z="";this.u=0;this.C="";this.J=this.Ja=this.Y=this.Ka=!1;this.K=0;this.ma=null;this.Ra="";this.ya=this.S=!1}; + xba=function(a,b,c,d,e,f,h){var l=new g.Ai;Bi.push(l);b&&l.Qa("complete",b);l.Hz("ready",l.iR);f&&(l.K=Math.max(0,f));h&&(l.S=h);l.send(a,c,d,e)}; + yba=function(a){return g.Qc&&g.Ic(9)&&"number"===typeof a.timeout&&void 0!==a.ontimeout}; + Ei=function(a,b){a.D=!1;a.i&&(a.J=!0,a.i.abort(),a.J=!1);a.C=b;a.u=5;Ci(a);Di(a)}; + Ci=function(a){a.Ka||(a.Ka=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; + Ji=function(a){if(a.D&&"undefined"!=typeof Fi)if(a.Aa[1]&&4==g.Gi(a)&&2==a.getStatus())Hi(a,"Local request error detected and ignored");else if(a.Y&&4==g.Gi(a))g.zh(a.GM,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){Hi(a,"Request complete");a.D=!1;try{if(Ii(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2a.zb()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.ya}; + kj=function(a,b){a.J=new g.me(1>b?1:b,3E5,.1);a.i.setInterval(a.J.getValue())}; + Hba=function(a){Gba(a,function(b,c){b=ui(b,"format","json");b=Cg().navigator.sendBeacon(b,ae(c));a.Ea&&!b&&(a.Ea=!1);return b})}; + Gba=function(a,b){if(0!==a.u.length){var c=yi(jj(a),"format");c=si(c,"auth",a.Ua(),"authuser",a.Z||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=Si(Ri(a.D.clone()),e);0===d&&Ti(f,a.K);if(!b(c,f))break;a.u=a.u.slice(e.length)}a.i.enabled&&a.i.stop();a.K=0}}; + lj=function(){g.xe.call(this,"event-logged",void 0)}; + Iba=function(a,b,c){xba(a.url,function(d){d=d.target;Ii(d)?b(g.Li(d)):c(d.getStatus())},a.requestType,a.body,a.uq,a.timeoutMillis,a.withCredentials)}; + mj=function(){this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.J=Iba;this.i=""}; + nj=function(){var a="",b=!1,c="1";a=void 0===a?"":a;c=void 0===c?"":c;var d=new mj;d.i="";""!=a&&(d.B=a);if(void 0===b?0:b)d.C=!0;c&&(d.u=c);this.i=d.Oe()}; + oj=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; + pj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c}; + qj=function(){}; + rj=function(a){this.qm=a;this.C=new nj;this.i=new Bh(this.C);this.clientError=new kba(this.i);this.u=new Fh(this.i);this.B=new Eh(this.i)}; + sj=function(a){Nd.call(this,a)}; + tj=function(a){Nd.call(this,a)}; + uj=function(a){Nd.call(this,a)}; + vj=function(a){Nd.call(this,a)}; + wj=function(a){Nd.call(this,a)}; + xj=function(a,b,c){this.i=a;this.B=b;this.u=c}; + yj=function(a,b,c){c=void 0===c?{}:c;this.PW=a;this.i=c;this.u=b}; + zj=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.i=d;this.u=e}; + Aj=function(a,b,c){c=void 0===c?{}:c;return new xj(b,a,c)}; + Bj=function(a){Nd.call(this,a)}; + Cj=function(a){Nd.call(this,a)}; + Dj=function(a){Nd.call(this,a)}; + Ej=function(a){Nd.call(this,a,-1,Jba)}; + Fj=function(a,b){this.K=a.kT;this.S=b;this.i=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&Kba(this)}; + Lba=function(a,b){Je(a.i,"complete",function(){if(Ii(a.i)){var c=g.Li(a.i);if(b&&"text/plain"===a.i.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.S(c)}catch(f){Gj(a,new pj(13,"Error when deserializing response data: "+c));return}c=oj(a.i.getStatus());Hj(a,Ij(a));0==c?Jj(a,d):Gj(a,new pj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.Li(a.i);var e={};d?(e=Kj(a,d),d=e.code,c=e.details,e=e.metadata):(d=2,c="Rpc failed due to xhr error. error code: "+ + a.i.u+", error: "+a.i.getLastError());Hj(a,Ij(a));Gj(a,new pj(d,c,e))}})}; + Kba=function(a){a.K.gm("data",function(b){if("1"in b){var c=b["1"];try{var d=a.S(c);Jj(a,d)}catch(e){Gj(a,new pj(13,"Error when deserializing response data: "+c))}}if("2"in b)for(b=Kj(a,b["2"]),c=0;cb)throw Error("Bad port number "+b);a.B=b}else a.B=null}; + Vj=function(a,b,c){b instanceof Xj?(a.u=b,Mba(a.u,a.J)):(c||(b=Yj(b,Nba)),a.u=new Xj(b,a.J))}; + g.Zj=function(a,b,c){a.u.set(b,c)}; + g.ak=function(a){return a instanceof g.Rj?a.clone():new g.Rj(a,void 0)}; + Wj=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; + Yj=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Oba),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}; + Oba=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}; + Xj=function(a,b){this.u=this.i=null;this.B=a||null;this.C=!!b}; + bk=function(a){a.i||(a.i=new Map,a.u=0,a.B&&li(a.B,function(b,c){a.add(gg(b),c)}))}; + dk=function(a,b){bk(a);b=ck(a,b);return a.i.has(b)}; + g.ek=function(a,b,c){a.remove(b);0a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null}; + g.am=function(a){var b=og(a),c=new g.ag(0,0);var d=b?og(b):document;d=!g.Qc||g.Jc(9)||"CSS1Compat"==qg(d).i.compatMode?d.documentElement:d.body;if(a==d)return c;a=$l(a);b=Ag(qg(b).i);c.x=a.left+b.x;c.y=a.top+b.y;return c}; + cm=function(a,b){var c=new g.ag(0,0),d=Cg(og(a));if(!Ec(d,"parent"))return c;do{var e=d==b?g.am(a):bm(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.em=function(a,b){a=dm(a);b=dm(b);return new g.ag(a.x-b.x,a.y-b.y)}; + bm=function(a){a=$l(a);return new g.ag(a.left,a.top)}; + dm=function(a){if(1==a.nodeType)return bm(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ag(a.clientX,a.clientY)}; + g.fm=function(a,b,c){if(b instanceof g.cg)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Yl(b,!0);a.style.height=g.Yl(c,!0)}; + g.Yl=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}; + g.gm=function(a){var b=zca;if("none"!=Xl(a,"display"))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}; + zca=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Bg&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=$l(a),new g.cg(a.right-a.left,a.bottom-a.top)):new g.cg(b,c)}; + g.hm=function(a,b){a.style.display=b?"":"none"}; + lm=function(){if(im&&!Hl(jm)){var a="."+km.domain;try{for(;2e?encodeURIComponent(sm(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}; + Cca=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1}; + tm=function(a,b){this.i=a;this.depth=b}; + Eca=function(){function a(l,m){return null==l?m:l} + var b=mm(),c=Math.max(b.length-1,0),d=om(b);b=d.i;var e=d.u,f=d.B,h=[];f&&h.push(new tm([f.url,f.rE?2:0],a(f.depth,1)));e&&e!=f&&h.push(new tm([e.url,2],0));b.url&&b!=f&&h.push(new tm([b.url,0],a(b.depth,c)));d=g.ym(h,function(l,m){return h.slice(0,h.length-m)}); + !b.url||(f||e)&&b!=f||(e=uca(b.url))&&d.push([new tm([e,1],a(b.depth,c))]);d.push([]);return g.ym(d,function(l){return Dca(c,l)})}; + Dca=function(a,b){g.zm(b,function(e){return 0<=e.depth}); + var c=Am(b,function(e,f){return Math.max(e,f.depth)},-1),d=paa(c+2); + d[0]=a;g.Qb(b,function(e){return d[e.depth+1]=e.i}); + return d}; + Fca=function(){var a=Eca();return g.ym(a,function(b){return rm(b)})}; + Bm=function(a){var b="Qe";if(a.Qe&&a.hasOwnProperty(b))return a.Qe;var c=new a;a.Qe=c;a.hasOwnProperty(b);return c}; + Cm=function(){this.u=new El;this.i=xl()?new yl:new wl}; + Gca=function(){Dm();var a=zl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof zl.setInterval&&"function"===typeof zl.clearInterval&&"function"===typeof zl.setTimeout&&"function"===typeof zl.clearTimeout)}; + Em=function(a){Dm();var b=lm()||zl;b.google_image_requests||(b.google_image_requests=[]);var c=Kl("IMG",b.document);c.src=a;b.google_image_requests.push(c)}; + Fm=function(){Dm();return Fca()}; + Gm=function(){}; + Dm=function(){return Bm(Gm).getContext()}; + Hm=function(a){Nd.call(this,a)}; + Hca=function(a){this.B=a;this.i=-1;this.u=this.C=0}; + Im=function(a,b){return function(c){for(var d=[],e=0;eMath.random())}; + Tm=function(a){a&&Sm&&Qm()&&(Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Sm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; + Wm=function(){var a=Um;this.i=Vm;this.TJ="jserror";this.nG=!0;this.FC=null;this.u=this.IE;this.Lb=void 0===a?null:a}; + Zm=function(a,b,c,d){return Im(Lm().i.i,function(){try{if(a.Lb&&a.Lb.i){var e=a.Lb.start(b.toString(),3);var f=c();a.Lb.end(e)}else f=c()}catch(m){var h=a.nG;try{Tm(e);var l=new Xm(Ym(m));h=a.u(b,l,void 0,d)}catch(n){a.IE(217,n)}if(!h)throw m;}return f})()}; + an=function(a,b,c){var d=$m;return Im(Lm().i.i,function(e){for(var f=[],h=0;hd?500:h}; + ln=function(a,b,c){var d=new Ml(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.i=d;this.u=c}; + mn=function(a,b,c,d,e,f,h){this.C=a;this.B=b;this.J=c;this.i=d;this.D=e;this.u=f;this.K=h}; + nn=function(a){var b=a!==a.top,c=a.top===Ll(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),ac(Sca,function(h){return"function"===typeof f[h]})||(e=1)); + return{rj:f,compatibility:e,fX:d}}; + Tca=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint}; + on=function(a,b,c,d){var e=void 0===e?!1:e;c=an(d,c,void 0);Bl(a,b,c,{capture:e})}; + pn=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.cg(b.innerWidth,b.innerHeight)).round():yg(b||window).round()}catch(d){return new g.cg(-12245933,-12245933)}}; + qn=function(a,b,c){try{a&&(b=b.top);var d=pn(a,b,void 0===c?!1:c),e=Ag(qg(b.document).i);if(-12245933==d.width){var f=d.width;var h=new Ml(f,f,f,f)}else h=new Ml(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new Ml(-12245933,-12245933,-12245933,-12245933)}}; + rn=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; + sn=function(a){return new Ml(a.top,a.right,a.bottom,a.left)}; + tn=function(a){var b=a.top||0,c=a.left||0;return new Ml(b,c+(a.width||0),b+(a.height||0),c)}; + un=function(a){return null!=a&&0<=a&&1>=a}; + Uca=function(){var a=g.Ub;return a?vn("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ib(a,b)})||ib(a,"OMI/")&&!ib(a,"XiaoMi/")?!0:ib(a,"Presto")&&ib(a,"Linux")&&!ib(a,"X11")&&!ib(a,"Android")&&!ib(a,"Mobi"):!1}; + wn=function(){this.B=!Hl(zl.top);this.isMobileDevice=Fl()||Gl();var a=mm();this.domain=0c.height?m>p?(d=m,e=n):(d=p,e=q):mb.B?!1:a.ub.u?!1:typeof a.itypeof b.i?!1:a.ic++;){if(a===b)return!0;try{if(a=g.Lg(a)||a){var d=og(a),e=d&&Cg(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; + dda=function(a,b,c){if(!a||!b)return!1;b=Ol(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=lm();Hl(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Tca(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=og(c))&&b.defaultView&&b.defaultView.frameElement)&&cda(b,a);d=a===c;a=!d&&a&&Qg(a,function(e){return e===c}); + return!(b||d||a)}; + eda=function(a,b,c,d){return zn().B?!1:0>=Nl(a)||0>=a.getHeight()?!0:c&&d?cn(208,function(){return dda(a,b,c)}):!1}; + ho=function(a,b,c){g.I.call(this);this.position=fda.clone();this.Oz=this.cz();this.GE=-2;this.tX=Date.now();this.gO=-1;this.lastUpdateTime=b;this.Fz=null;this.Dy=!1;this.Zz=null;this.opacity=-1;this.requestSource=c;this.tO=this.KE=g.Ha;this.Sg=new pca;this.Sg.Mn=a;this.Sg.i=a;this.zs=!1;this.pp={UE:null,SE:null};this.NN=!0;this.lx=null;this.qs=this.GS=!1;Lm().J++;this.vf=this.PD();this.bO=-1;this.Kd=null;this.CS=!1;a=this.featureSet=new rl;sl(a,"od",gda);sl(a,"opac",Jm).i=!0;sl(a,"sbeos",Jm).i=!0; + sl(a,"prf",Jm).i=!0;sl(a,"mwt",Jm).i=!0;sl(a,"iogeo",Jm);(a=this.Sg.Mn)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(hda&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+mg()):a.getAttribute("data-"+mg()))&&(zn().u=!0);1==this.requestSource?tl(this.featureSet,"od",1):tl(this.featureSet,"od",0)}; + io=function(a,b){b!=a.qs&&(a.qs=b,a=zn(),b?a.J++:0c?0:a}; + ida=function(a,b,c){if(a.Kd){a.Kd.Qm();var d=a.Kd.K,e=d.C,f=e.i;if(null!=d.J){var h=d.B;a.Zz=new g.ag(h.left-f.left,h.top-f.top)}f=a.VA()?Math.max(d.i,d.D):d.i;h={};null!==e.volume&&(h.volume=e.volume);e=a.oK(d);a.Fz=d;a.Pa(f,b,c,!1,h,e,d.K)}}; + jda=function(a){if(a.Dy&&a.lx){var b=1==ul(a.featureSet,"od"),c=zn().i,d=a.lx,e=a.Kd?a.Kd.getName():"ns",f=new g.cg(Nl(c),c.getHeight());c=a.VA();a={hX:e,Zz:a.Zz,QX:f,VA:c,Zc:a.vf.Zc,KX:b};if(b=d.u){b.Qm();e=b.K;f=e.C.i;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.ag(h.left-f.left,h.top-f.top),l=new g.cg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.i,e.D):e.i;c={hX:b.getName(),Zz:h,QX:l,VA:c,KX:!1,Zc:e}}else c=null;c&&$ca(d,a,c)}}; + kda=function(a,b,c){b&&(a.KE=b);c&&(a.tO=c)}; + g.lo=function(){}; + lda=function(){this.C=this.i=this.B=this.u=this.D=0}; + mda=function(a){var b={};var c=g.Pa()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.i)&&(b.pns=a);return b}; + mo=function(){ml.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; + no=function(a){return un(a.volume)&&0Math.max(1E4,a.B/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Y;var d=c-a.Y,e=0;0<=d?(a.ma+=b,a.Ka+=Math.max(b-d,0),e=Math.min(d,a.ma)):a.La+=Math.abs(d);0!=d&&(a.ma=0);-1==a.Ra&&0=a.B/2:0=a.Ea:!1:!1}; + tda=function(a){var b=rn(a.vf.Zc,2),c=a.jf.B,d=a.vf,e=Bo(a),f=Ao(e.C),h=Ao(e.J),l=Ao(d.volume),m=rn(e.K,2),n=rn(e.ma,2),p=rn(d.Zc,2),q=rn(e.ya,2),t=rn(e.Ea,2);d=rn(d.nh,2);a=a.yn().clone();a.round();e=eo(e,!1);return{PX:b,Tv:c,Pz:f,Lz:h,Hu:l,Qz:m,Mz:n,Zc:p,Rz:q,Nz:t,nh:d,position:a,Xz:e}}; + Fo=function(a,b){Eo(a.i,b,function(){return{PX:0,Tv:void 0,Pz:-1,Lz:-1,Hu:-1,Qz:-1,Mz:-1,Zc:-1,Rz:-1,Nz:-1,nh:-1,position:void 0,Xz:[]}}); + a.i[b]=tda(a)}; + Eo=function(a,b,c){for(var d=a.length;dc.time?b:c},a[0])}; + $o=function(a){a=void 0===a?zl:a;Jn.call(this,new Cn(a,2))}; + bp=function(){var a=ap();Cn.call(this,zl.top,a,"geo")}; + ap=function(){Lm();var a=zn();return a.B||a.u?0:2}; + cp=function(){}; + dp=function(){this.done=!1;this.i={QQ:0,QI:0,lba:0,PJ:0,nE:-1,nR:0,mR:0,oR:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Bn(this)}; + fp=function(){var a=ep;a.J||(a.J=!0,Zfa(a,function(b){for(var c=[],d=0;dn?1:0)?-n:n;if(0===n)rd=0<1/n?0:2147483648,qd=0;else if(isNaN(n))rd=2147483647,qd=4294967295;else if(1.7976931348623157E308>>0,qd=0;else if(2.2250738585072014E-308>n)m=n/Math.pow(2,-1074),rd=(l<<31|m/4294967296)>>>0,qd=m>>>0;else{p=n;m=0;if(2<=p)for(;2<=p&&1023>m;)m++,p/=2;else for(;1>p&&-1022>>0;qd=4503599627370496*n>>>0}ld(h,qd);ld(h,rd)}sd(f,2,Od(x,2));sd(f,3,Od(x,3));sd(f,4,Od(x,4));l=Od(x,5);if(null!=l&&null!=l)if(kd(f.i,40),h=f.i,0<=l)kd(h,l);else{for(m=0;9>m;m++)h.push(l&127|128),l>>=7;h.push(1)}fe(x,f);x=pd(f);u=(u.pf=g.Mc(x),u)}else u={};g.tc(t,u);g.tc(c,e,d,t,a());if(e=Rn())d={},g.tc(c,(d.v=encodeURIComponent(e),d))}])}; + dga=function(){var a=rp||zl;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("&")}; + sp=function(a){return function(b){return void 0===b[a]?0:b[a]}}; + up=function(){var a=[0,2,4];return function(b){b=b.tos;if(Array.isArray(b)){for(var c=Array(b.length),d=0;dg.ec(fga).length?null:Am(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Gp[d[0]]||!Gp[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; + hga=function(a,b){if(void 0==a.i)return 0;switch(a.D){case "mtos":return a.u?$n(b.i,a.i):$n(b.u,a.i);case "tos":return a.u?Yn(b.i,a.i):Yn(b.u,a.i)}return 0}; + Hp=function(a,b,c,d){so.call(this,b,d);this.J=a;this.K=c}; + Ip=function(a){so.call(this,"fully_viewable_audible_half_duration_impression",a)}; + Jp=function(a,b){so.call(this,a,b)}; + Kp=function(){this.u=this.C=this.J=this.D=this.B=this.i=""}; + iga=function(){}; + Lp=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.tc(f,a);void 0!==c&&g.tc(f,c);a=On(Nn(new Mn,f));0String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1}; + mq=function(a){return!!(1<>>0]|=f<>>0).toString(16)+"&"}); + c=105;g.Qb(vga,function(d){var e="false";try{e=d(zl)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); + g.Qb(wga,function(d){var e="";try{e=g.Mc(g.Va(d(zl)),3)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"}); + return a.slice(0,-1)}; + tga=function(){if(!nq){var a=function(){oq=!0;zl.document.removeEventListener("webdriver-evaluate",a,!0)}; + zl.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){pq=!0;zl.document.removeEventListener("webdriver-evaluate-response",b,!0)}; + zl.document.addEventListener("webdriver-evaluate-response",b,!0);nq=!0}}; + yga=function(){this.blockSize=-1}; + qq=function(){this.blockSize=-1;this.blockSize=64;this.i=Array(4);this.C=Array(this.blockSize);this.B=this.u=0;this.reset()}; + rq=function(a,b,c){c||(c=0);var d=Array(16);if("string"===typeof b)for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.i[0];c=a.i[1];e=a.i[2];var f=a.i[3];var h=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(h<<17&4294967295|h>>>15); + h=c+(b^e&(f^b))+d[3]+3250441966&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(h<<12&4294967295| + h>>>20);h=e+(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(h<<7&4294967295|h>>>25);h=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(h<<12&4294967295|h>>>20);h=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(h<<17&4294967295|h>>>15);h=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(h<<22&4294967295|h>>>10);h=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(h<< + 5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c= + e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(h<<5&4294967295|h>>>27);h=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(h<<9&4294967295|h>>>23);h=e+(b^c&(f^b))+d[7]+1735328473&4294967295; + e=f+(h<<14&4294967295|h>>>18);h=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(h<<20&4294967295|h>>>12);h=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(h<<11&4294967295| + h>>>21);h=e+(f^b^c)+d[7]+4139469664&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(h<<4&4294967295|h>>>28);h=f+(b^c^e)+d[12]+ + 3873151461&4294967295;f=b+(h<<11&4294967295|h>>>21);h=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(h<<16&4294967295|h>>>16);h=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(h<<23&4294967295|h>>>9);h=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[12]+1700485571& + 4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[13]+1309151649& + 4294967295;c=e+(h<<21&4294967295|h>>>11);h=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(h<<6&4294967295|h>>>26);h=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(h<<10&4294967295|h>>>22);h=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(h<<15&4294967295|h>>>17);h=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.i[0]=a.i[0]+b&4294967295;a.i[1]=a.i[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.i[2]=a.i[2]+e&4294967295;a.i[3]=a.i[3]+f&4294967295}; + sq=function(){this.u=null}; + tq=function(a){return function(b){var c=new qq;c.update(b+a);return iaa(c.digest()).slice(-8)}}; + uq=function(a,b){this.i=a;this.B=b}; + to=function(a,b,c){var d=a.u();if("function"===typeof d){var e={};e=(e.sv=Ap,e.cb=Bp,e.e=zga(b),e);var f=Io(c,b,An());g.tc(e,f);c.FO[b]=f;a=2==c.yk()?Yca(e).join("&"):a.B.i(e).i;try{return d(c.Gf,a,b),0}catch(h){return 2}}else return 1}; + zga=function(a){var b=Fp(a)?"custom_metric_viewable":a;a=jc(Go,function(c){return c==b}); + return Dp[a]}; + vq=function(){Zp.call(this);this.J=null;this.D=!1;this.C=new sq}; + Aga=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.u&&Array.isArray(c)&&nga(a,c,b)}; + Bga=function(a,b,c){var d=Oo(Qo,b);d||(d=c.opt_nativeTime||-1,d=$p(a,b,eq(a),d),c.opt_osdId&&(d.Ua=c.opt_osdId));return d}; + Cga=function(a,b,c){var d=Oo(Qo,b);d||(d=$p(a,b,"n",c.opt_nativeTime||-1));return d}; + Dga=function(a,b){var c=Oo(Qo,b);c||(c=$p(a,b,"h",-1));return c}; + Ega=function(a){Lm();switch(eq(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}; + xq=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.tc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.i(Ep("ol",d));if(void 0!==d)if(void 0!==Cp(d))if(bq)b=Ep("ue",d);else if(qga(a),"i"==cq)b=Ep("i",d),b["if"]=0;else if(b=a.jz(b,e))if(a.B&&3==b.xg)b="stopped";else{b:{"i"==cq&&(b.zs=!0,a.cG());c=e.opt_fullscreen;void 0!==c&&io(b,!!c);var f;if(c=!zn().u)(c=ib(g.Ub,"CrKey")||ib(g.Ub,"PlayStation")||ib(g.Ub,"Roku")||Uca()||ib(g.Ub,"Xbox"))||(c=g.Ub,c=ib(c,"AppleTV")||ib(c, + "Apple TV")||ib(c,"CFNetwork")||ib(c,"tvOS")),c||(c=g.Ub,c=ib(c,"sdk_google_atv_x86")||ib(c,"Android TV")),c=!c;c&&(Dm(),c=0===Dl(km));if(f=c){switch(b.yk()){case 1:gq(a,b,"pv");break;case 2:a.PF(b)}dq("pv")}c=d.toLowerCase();if(f=!f)f=ul(Lm().featureSet,"ssmol")&&"loaded"===c?!1:g.wb(Fga,c);if(f&&0==b.xg){"i"!=cq&&(ep.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;kn=f="number"===typeof f?f:fn();b.Dy=!0;var h=An();b.xg=1;b.zf={};b.zf.start=!1;b.zf.firstquartile=!1;b.zf.midpoint=!1;b.zf.thirdquartile= + !1;b.zf.complete=!1;b.zf.resume=!1;b.zf.pause=!1;b.zf.skip=!1;b.zf.mute=!1;b.zf.unmute=!1;b.zf.viewable_impression=!1;b.zf.measurable_impression=!1;b.zf.fully_viewable_audible_half_duration_impression=!1;b.zf.fullscreen=!1;b.zf.exitfullscreen=!1;b.mD=0;h||(b.Xg().S=f);op(ep,[b],!h)}(f=b.Hq[c])&&oo(b.jf,f);g.wb(Gga,c)&&!b.zs&&b.cq&&0!=b.xg&&(f=b.cq,f.i||(f.i=uo(f,b)));switch(b.yk()){case 1:var l=Fp(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.S[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=Ep(void 0, + c);g.tc(e,d);d=e;break b}d=void 0}3==b.xg&&(a.B?b.Kd&&b.Kd.Pt():a.Xu(b));b=d}else b=Ep("nf",d);else b=void 0;else bq?b=Ep("ue"):(b=a.jz(b,e))?(d=Ep(),g.tc(d,Ho(b,!0,!1,!1)),b=d):b=Ep("nf");return"string"===typeof b?a.B&&"stopped"===b?wq:a.C.i(void 0):a.C.i(b)}; + yq=function(a){var b={};return b.viewability=a.i,b.googleViewability=a.B,b.moatInit=a.D,b.moatViewability=a.J,b.integralAdsViewability=a.C,b.doubleVerifyViewability=a.u,b}; + zq=function(a,b,c){c=void 0===c?{}:c;a=xq(Bm(vq),b,c,a);return yq(a)}; + Aq=function(a,b){b=void 0===b?!1:b;var c=Bm(vq).jz(a,{});c?zo(c):b&&(a=Bm(vq).Rw(null,fn(),!1,a),a.xg=3,To([a]))}; + Cq=function(a){if(g.$a(g.ig(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Rj(a)}catch(c){return null!=g.tb(Bq,function(d){return 0document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)}; + Sga=function(a){if(!a)return Ef;var b=document.createElement("div").style;Oga(a).forEach(function(c){var d=g.Bg&&c in Pga?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ya(d,"--")||Ya(d,"var")||(c=lr(Qga,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Nga(c),null!=c&&lr(Rga,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); + return Xaa(g.lf("Output of CSS sanitizer"),b.cssText||"")}; + Oga=function(a){g.Ka(a)?a=g.Db(a):(a=g.ec(a),g.Ab(a,"cssText"));return a}; + g.nr=function(a){var b,c=b=0,d=!1;a=a.split(Tga);for(var e=0;eg.Pa()}; + g.Ar=function(a){this.i=a}; + $ga=function(){}; + Br=function(){}; + Cr=function(a){this.i=a}; + Dr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.i=a}; + Er=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.i=a}; + Gr=function(a,b){this.u=a;this.i=null;if(g.Qc&&!g.Jc(9)){Fr||(Fr=new g.ar);this.i=Fr.get(a);this.i||(b?this.i=document.getElementById(b):(this.i=document.createElement("userdata"),this.i.addBehavior("#default#userData"),document.body.appendChild(this.i)),Fr.set(a,this.i));try{this.i.load(this.u)}catch(c){this.i=null}}}; + Hr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return aha[b]})}; + Ir=function(a){try{a.i.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}}; + Jr=function(a,b){this.u=a;this.i=b+"::"}; + g.Kr=function(a){var b=new Dr;return b.isAvailable()?a?new Jr(b,a):b:null}; + Lr=function(a,b){this.i=a;this.u=b}; + Mr=function(a){this.i=[];if(a)a:{if(a instanceof Mr){var b=a.Vr();a=a.Ip();if(0>=this.i.length){for(var c=this.i,d=0;d>1,a[d].getKey()>c.getKey())a[b]=a[d],b=d;else break;a[b]=c}; + Or=function(){Mr.call(this)}; + Pr=function(){}; + bha=function(a,b){var c=[],d;b=b||Qr.length;if(a)for(d=0;dd;d++)c[d]||(a=0|16*Math.random(),c[d]=Qr[19==d?a&3|8:a]);return c.join("")}; + Rr=function(a){for(var b=[],c=0;cm.status,t=500<=m.status&&600>m.status;if(n||q||t)p=sha(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.D;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); + if(b.onTimeout&&0=m||403===rt(p.xhr))return kh(new Ft("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0a;a++)this.u.push(0);this.B=0;this.ma=g.Au(window,"mousemove",(0,g.E)(this.Z,this));this.S=vt((0,g.E)(this.Y,this),25)}; + Mu=function(){}; + Ou=function(a,b,c){return Nu(b,0,c)}; + g.Pu=function(a,b,c){return Nu(b,1,c)}; + Bha=function(a,b,c){Nu(b,2,c)}; + Qu=function(){Mu.apply(this,arguments)}; + Ru=function(){Qu.i||(Qu.i=new Qu);return Qu.i}; + g.Su=function(){return!!g.Ga("yt.scheduler.instance")}; + Nu=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.ut(a,c||0)}; + g.Tu=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.wt(a)}}; + Uu=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)}; + Xu=function(){var a={},b=void 0===a.yW?!1:a.yW;a=void 0===a.AR?!0:a.AR;if(null==g.Ga("_lact",window)){var c=parseInt(g.P("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&Vu();g.Au(document,"keydown",Vu);g.Au(document,"keyup",Vu);g.Au(document,"mousedown",Vu);g.Au(document,"mouseup",Vu);b?g.Au(window,"touchmove",function(){Wu("touchmove",200)},{passive:!0}):(g.Au(window,"resize",function(){Wu("resize",200)}),a&&g.Au(window,"scroll",function(){Wu("scroll", + 200)})); + new Lu(function(){Wu("mouse",100)}); + g.Au(document,"touchstart",Vu,{passive:!0});g.Au(document,"touchend",Vu,{passive:!0})}}; + Wu=function(a,b){Yu[a]||(Yu[a]=!0,g.Pu(0,function(){Vu();Yu[a]=!1},b))}; + Vu=function(){null==g.Ga("_lact",window)&&(Xu(),g.Ga("_lact",window));var a=Date.now();g.Fa("_lact",a,window);-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()}; + Zu=function(){var a=g.Ga("_lact",window),b;null==a?b=-1:b=Math.max(Date.now()-a,0);return b}; + g.av=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Wt())a&&(a=g.uf(g.yf(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.Mf(Of(a)).toString(),a=fg(g.Zh(a))),g.$a(a)||(a=Fg("IFRAME",{src:'javascript:""',style:"display:none"}),og(a).body.appendChild(a)));else if(e)Bt(a,b,"POST",e,d);else if(g.P("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Bt(a,b,"GET","",d);else{b:{try{var f=new lca({url:a});if(f.B&&f.u||f.C){var h=fi(g.hi(5,a));var l=!(!h||!h.endsWith("/aclk")|| + "1"!==xi(a,"ri"));break b}}catch(m){}l=!1}l?$u(a)?(b&&b(),c=!0):c=!1:c=!1;c||Cha(a,b)}}; + bv=function(a,b,c){c=void 0===c?"":c;$u(a,c)?b&&b():g.av(a,b,void 0,void 0,c)}; + $u=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1}; + Cha=function(a,b){var c=new Image,d=""+Dha++;cv[d]=c;c.onload=c.onerror=function(){b&&cv[d]&&b();delete cv[d]}; + c.src=a}; + g.hv=function(a,b,c){var d=g.dv();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){ev[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)}; + try{g.fv[a]?h():g.ut(h,0)}catch(l){g.Gs(l)}},c); + ev[e]=!0;gv[a]||(gv[a]=[]);gv[a].push(e);return e}return 0}; + g.iv=function(a){var b=g.dv();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Qb(a,function(c){b.unsubscribeByKey(c);delete ev[c]}))}; + g.jv=function(a,b){var c=g.dv();return c?c.publish.apply(c,arguments):!1}; + lv=function(a){var b=g.dv();if(b)if(b.clear(a),a)kv(a);else for(var c in gv)kv(c)}; + g.dv=function(){return g.D.ytPubsubPubsubInstance}; + kv=function(a){gv[a]&&(a=gv[a],g.Qb(a,function(b){ev[b]&&delete ev[b]}),a.length=0)}; + Eha=function(a,b){if("log_event"===a.endpoint){var c="";a.By?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(mv[a.cttAuthInfo.token]=nv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=ov.get(c)||[];ov.set(c,d);d.push(a.payload);b&&(pv=new b);a=Ds("tvhtml5_logging_max_batch")||Ds("web_logging_max_batch")||100;b=(0,g.Q)();d.length>=a?qv({writeThenSend:!0},g.Cs("flush_only_full_queue")?c:void 0):10<=b-rv&&(tv(),rv=b)}}; + Fha=function(a,b){if("log_event"===a.endpoint){var c="";a.By?c="visitorOnlyApprovedKey":a.cttAuthInfo&&(mv[a.cttAuthInfo.token]=nv(a.cttAuthInfo),c=a.cttAuthInfo.token);var d=new Map;d.set(c,[a.payload]);b&&(pv=new b);return new fh(function(e){pv&&pv.isReady()?uv(d,e,{bypassNetworkless:!0},!0):e()})}}; + qv=function(a,b){a=void 0===a?{}:a;new fh(function(c){g.wt(vv);g.wt(wv);wv=0;if(pv&&pv.isReady())if(void 0!==b){var d=new Map,e=ov.get(b)||[];d.set(b,e);uv(d,c,a);ov.delete(b)}else uv(ov,c,a),ov.clear();else tv(),c()})}; + tv=function(){g.Cs("web_gel_timeout_cap")&&!wv&&(wv=g.ut(function(){qv({writeThenSend:!0})},6E4)); + g.wt(vv);var a=g.P("LOGGING_BATCH_TIMEOUT",Ds("web_gel_debounce_ms",1E4));g.Cs("shorten_initial_gel_batch_timeout")&&xv&&(a=Gha);vv=g.ut(function(){qv({writeThenSend:!0})},a)}; + uv=function(a,b,c,d){var e=pv;c=void 0===c?{}:c;var f=Math.round((0,g.Q)()),h=a.size;a=g.r(a);for(var l=a.next();!l.done;l=a.next()){var m=g.r(l.value);l=m.next().value;var n=m=m.next().value;m=g.qc({context:g.yv(e.config_||g.zv())});m.events=n;(n=mv[l])&&Hha(m,l,n);delete mv[l];l="visitorOnlyApprovedKey"===l;Iha(m,f,l);g.Cs("always_send_and_write")&&(c.writeThenSend=!1);g.Cs("send_beacon_before_gel")&&window.navigator&&window.navigator.sendBeacon&&!c.writeThenSend&&bv("/generate_204");g.Av(e,"log_event", + m,{retry:!0,onSuccess:function(){h--;h||b()}, + onError:function(){h--;h||b()}, + TL:c,By:l,Daa:!!d});xv=!1}}; + Iha=function(a,b,c){a.requestTimeMs=String(b);g.Cs("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.P("EVENT_ID",void 0))&&((c=g.P("BATCH_CLIENT_COUNTER",void 0)||0)||(c=Math.floor(Math.random()*Bv/2)),c++,c>Bv&&(c=1),zs("BATCH_CLIENT_COUNTER",c),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})}; + Hha=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}]}; + nv=function(a){var b={};a.videoId?b.videoId=a.videoId:a.playlistId&&(b.playlistId=a.playlistId);return b}; + Ev=function(a,b,c,d){d=void 0===d?{}:d;if(g.Cs("lr_drop_other_and_business_payloads")){if(Cv[a]||Jha[a])return}else if(g.Cs("lr_drop_other_payloads")&&Cv[a])return;var e={},f=Math.round(d.timestamp||(0,g.Q)());e.eventTimeMs=f=m)Hw(h,q,z,n,G,b.join(),l),p=G;C.fb(2);break;case 3:return C.return(Promise.reject(p))}})})}; + Hw=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof jw&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&cw("QUOTA_EXCEEDED",{dbName:hw(a.i.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof jw&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),cw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Iw(a,!1,d,f,b,h.tag),bw(e)):Iw(a,!0,d,f,b,h.tag)}; + Iw=function(a,b,c,d,e,f){cw("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; + Aw=function(a){this.i=a}; + Jw=function(a,b,c){a.i.createIndex(b,c,{unique:!1})}; + Vha=function(a,b){return Kw(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})}; + Ew=function(a,b,c){return"getAll"in IDBObjectStore.prototype?vw(a.i.getAll(b,c)):Wha(a,b,c)}; + Wha=function(a,b,c){var d=[];return Kw(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})}; + Lw=function(a){return"getAllKeys"in IDBObjectStore.prototype?vw(a.i.getAllKeys(void 0,void 0)):Xha(a)}; + Xha=function(a){var b=[];return Mw(a,{query:void 0},function(c){b.push(c.fz());return c.continue()}).then(function(){return b})}; + Fw=function(a,b,c){return vw(a.i.put(b,c))}; + Kw=function(a,b,c){a=a.i.openCursor(b.query,b.direction);return Nw(a).then(function(d){return ww(d,c)})}; + Mw=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.i.openKeyCursor(d,b):a.i.openCursor(d,b);return yw(a).then(function(e){return ww(e,c)})}; + Gw=function(a){var b=this;this.i=a;this.B=new Map;this.u=!1;this.done=new Promise(function(c,d){b.i.addEventListener("complete",function(){c()}); + b.i.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.i.error)}); + b.i.addEventListener("abort",function(){var e=b.i.error;if(e)d(e);else if(!b.u){e=jw;for(var f=b.i.objectStoreNames,h=[],l=0;l=z},y); + y.done.catch(function(z){e(z)})}catch(z){e(z)}}); + h.addEventListener("success",function(){var u=h.result;m&&u.addEventListener("versionchange",function(){m(f())}); + u.addEventListener("close",function(){cw("IDB_UNEXPECTEDLY_CLOSED",{dbName:hw(a),dbVersion:u.version});n&&n()}); + d(f())}); + h.addEventListener("error",function(){e(h.error)}); + l&&h.addEventListener("blocked",function(){l()})})}; + Sw=function(a,b,c){c=void 0===c?{}:c;return Zha(a,b,c)}; + Tw=function(a,b){b=void 0===b?{}:b;return g.H(this,function d(){var e,f,h;return g.B(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()}); + return g.A(l,Rha(e),0)})})}; + Uw=function(a,b){this.name=a;this.options=b;this.C=!0;this.B=!1}; + Vw=function(a,b){return new jw("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; + Ww=function(a,b){if(!b)throw g.nw("openWithToken",hw(a.name));return a.open()}; + Yw=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Ww(Xw,b),2);e=f.u;return f.return(Dw(e,["databases"],{Hc:!0,mode:"readwrite"},function(h){var l=h.objectStore("databases");return l.get(a.actualName).then(function(m){if(m?a.actualName!==m.actualName||a.publicName!==m.publicName||a.userIdentifier!==m.userIdentifier:1)return Fw(l,a).then(function(){})})}))})})}; + Zw=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return a?g.A(f,Ww(Xw,b),2):f.return();e=f.u;return f.return(e.delete("databases",a))})})}; + $w=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){return 1==h.i?(e=[],g.A(h,Ww(Xw,b),2)):3!=h.i?(f=h.u,g.A(h,Dw(f,["databases"],{Hc:!0,mode:"readonly"},function(l){e.length=0;return Kw(l.objectStore("databases"),{},function(m){a(m.getValue())&&e.push(m.getValue());return m.continue()})}),3)):h.return(e)})})}; + $ha=function(a){return $w(function(b){return"LogsDatabaseV2"===b.publicName&&void 0!==b.userIdentifier},a)}; + aia=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return d=ew("YtIdbMeta"),g.A(f,$w(function(h){return"yt-player-local-media"===h.publicName&&h.userIdentifier===d},a),2); + e=f.u;return f.return(0m.vA)return q.return();m.potentialEsfErrorCounter++;if(void 0===(null===b||void 0===b?void 0:b.id)){q.fb(8);break}return b.sendCount=c?!1:!0}; + kx=function(a){if(!a.databaseToken)throw g.nw("retryQueuedRequests");a.df.pK("QUEUED",a.databaseToken).then(function(b){b&&!lx(a,b,a.oN)?g.Pu(0,function(){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return void 0===b.id?f.fb(2):g.A(f,e.df.TF(b.id,e.databaseToken),2);kx(e);g.sa(f)})})}):a.Ve.Te()&&a.sx()})}; + ox=function(a,b){a.GO&&!a.Ve.Te()?a.GO(b):a.handleError(b)}; + nx=function(a){var b;return(a=null===(b=null===a||void 0===a?void 0:a.error)||void 0===b?void 0:b.code)&&400<=a&&599>=a?!1:!0}; + px=function(a,b){this.version=a;this.args=b}; + qx=function(a,b){this.topic=a;this.i=b}; + sx=function(a,b){var c=rx();c&&c.publish.call(c,a.toString(),a,b)}; + jia=function(a,b,c){var d=rx();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ga("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(tx[e])try{if(h&&a instanceof qx&&a!=f)try{var m=a.i,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Io){var p=new m;m.Io=p.version}var q=m.Io}catch(t){}if(!q||n.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m, + g.Db(n.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+t.message,t;}b.call(c||window,h)}catch(t){g.Gs(t)}},ux[a.toString()]?g.Su()?Nu(l,1,void 0):g.ut(l,0):l())}); + tx[e]=!0;vx[a.toString()]||(vx[a.toString()]=[]);vx[a.toString()].push(e);return e}; + xx=function(a,b,c){var d=jia(a,function(e){b.apply(c,arguments);wx(d)},c); + return d}; + wx=function(a){var b=rx();b&&("number"===typeof a&&(a=[a]),g.Qb(a,function(c){b.unsubscribeByKey(c);delete tx[c]}))}; + rx=function(){return g.Ga("ytPubsub2Pubsub2Instance")}; + yx=function(a,b){Uw.call(this,a,b);this.options=b;gw(a)}; + kia=function(a,b){var c;return function(){c||(c=new yx(a,b));return c}}; + zx=function(a,b){return kia(a,b)}; + lia=function(){if(Ax)return Ax();var a={};Ax=zx("LogsDatabaseV2",{Gs:(a.LogsRequestsStore={Mm:2},a),bx:!1,upgrade:function(b,c,d){c(2)&&Bw(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.i.indexNames.contains("newRequest")&&d.i.deleteIndex("newRequest"),Jw(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Cw(b,"sapisid");c(9)&&Cw(b,"SWHealthLog")}, + version:9});return Ax()}; + Bx=function(a){return Ww(lia(),a)}; + Dx=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return e={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},g.A(m,Bx(b),2);if(3!=m.i)return f=m.u,h=Object.assign(Object.assign({},a),{options:JSON.parse(JSON.stringify(a.options)),interface:g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.A(m,Tha(f,h),3);l=m.u;e.xX=(0,g.Q)();Cx(e);return m.return(l)})})}; + Ex=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p;return g.B(d,function(q){if(1==q.i)return e={startTime:(0,g.Q)(),transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},g.A(q,Bx(b),2);if(3!=q.i)return f=q.u,h=g.P("INNERTUBE_CONTEXT_CLIENT_NAME",0),l=[a,h,0],m=[a,h,(0,g.Q)()],n=IDBKeyRange.bound(l,m),p=void 0,g.A(q,Dw(f,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(t){return Qw(t.objectStore("LogsRequestsStore").index("newRequestV2"),{query:n,direction:"prev"},function(u){u.getValue()&& + (p=u.getValue(),"NEW"===a&&(p.status="QUEUED",u.update(p)))})}),3); + e.xX=(0,g.Q)();Cx(e);return q.return(p)})})}; + Fx=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Bx(b),2);e=f.u;return f.return(Dw(e,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){if(m)return m.status="QUEUED",Fw(l,m).then(function(){return m})})}))})})}; + Gx=function(a,b,c){c=void 0===c?!0:c;return g.H(this,function e(){var f;return g.B(e,function(h){if(1==h.i)return g.A(h,Bx(b),2);f=h.u;return h.return(Dw(f,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(l){var m=l.objectStore("LogsRequestsStore");return m.get(a).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),Fw(m,n).then(function(){return n})):pw.resolve(void 0)})}))})})}; + Hx=function(a,b){return g.H(this,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Bx(b),2);e=f.u;return f.return(e.delete("LogsRequestsStore",a))})})}; + mia=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,Bx(a),2);d=f.u;e=(0,g.Q)()-2592E6;return g.A(f,Dw(d,["LogsRequestsStore"],{mode:"readwrite",Hc:!0},function(h){return Kw(h.objectStore("LogsRequestsStore"),{},function(l){if(l.getValue().timestamp<=e)return l.delete().then(function(){return l.continue()})})}),0)})})}; + nia=function(){g.H(this,function b(){return g.B(b,function(c){return g.A(c,gia(),0)})})}; + Cx=function(a){g.Cs("nwl_csi_killswitch")||.01>=Math.random()&&sx("nwl_transaction_latency_payload",a)}; + Ix=function(a){return Ww(oia(),a)}; + pia=function(a){g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.Cs("web_clean_sw_logs_store")?g.A(f,Ix(a),3):f.fb(0);d=f.u;e=(0,g.Q)()-2592E6;return g.A(f,Dw(d,["SWHealthLog"],{mode:"readwrite",Hc:!0},function(h){return Kw(h.objectStore("SWHealthLog"),{},function(l){if(l.getValue().timestamp<=e)return l.delete().then(function(){return l.continue()})})}),0)})})}; + qia=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.A(e,Ix(a),2);d=e.u;return g.A(e,d.clear("SWHealthLog"),0)})})}; + Kx=function(){Jx||(Jx=new Tv("yt.offline"));return Jx}; + Lx=function(a){if(g.Cs("offline_error_handling")){var b=Kx().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Kx().set("errors",b,2592E3,!0)}}; + Mx=function(){g.Ue.call(this);this.J=0;this.K=this.u=!1;this.i=this.VD();ria(this);sia(this)}; + Nx=function(){if(!Mx.i){var a=g.Ga("yt.networkStatusManager.instance")||new Mx;g.Fa("yt.networkStatusManager.instance",a,void 0);Mx.i=a}return Mx.i}; + sia=function(a){window.addEventListener("online",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return g.A(e,d.Sk(),2);if(d.K&&g.Cs("offline_error_handling")){var f=Kx().get("errors",!0);if(f){for(var h in f)if(f[h]){var l=new g.dw(h,"sent via offline_errors");l.name=f[h].name;l.stack=f[h].stack;l.level=f[h].level;g.Gs(l)}Kx().set("errors",{},2592E3,!0)}}g.sa(e)})})})}; + ria=function(a){window.addEventListener("offline",function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){return g.A(e,d.Sk(),0)})})})}; + Ox=function(a){a.J=Ou(0,function(){return g.H(a,function c(){var d=this;return g.B(c,function(e){if(1==e.i)return d.i?d.VD()||!d.u?e.fb(3):g.A(e,d.Sk(),3):g.A(e,d.Sk(),3);Ox(d);g.sa(e)})})},tia)}; + Qx=function(a){a=void 0===a?{}:a;g.Ue.call(this);var b=this;this.u=this.D=0;this.i=Nx();var c=g.Ga("yt.networkStatusManager.instance.monitorNetworkStatusChange").bind(this.i);c&&c(a.QJ);a.BL&&(c=g.Ga("yt.networkStatusManager.instance.enableErrorFlushing").bind(this.i))&&c();if(c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.i))a.BA?(this.BA=a.BA,c("ytnetworkstatus-online",function(){Px(b,"publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){Px(b,"publicytnetworkstatus-offline")})): + (c("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))}; + Px=function(a,b){a.BA?a.u?(g.Tu(a.D),a.D=g.Pu(0,function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)())},a.BA-((0,g.Q)()-a.u))):(a.dispatchEvent(b),a.C=b,a.u=(0,g.Q)()):a.dispatchEvent(b)}; + uia=function(a,b){function c(d){var e=Rx().Te();if(!Sx()||!d||e&&g.Cs("vss_networkless_bypass_write"))Tx(a,b);else{var f={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};Dx(f,d).then(function(h){f.id=h;Rx().Te()&&Ux(f)}).catch(function(h){Ux(f); + Vx(h)})}} + b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(d){c(d)}):c(Wx())}; + Xx=function(a,b,c){function d(f){if(Sx()&&f){var h={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0};g.Cs("nwl_skip_retry")&&(h.skipRetry=c);if(Rx().Te()){if(!h.skipRetry){var l=b.onError?b.onError:function(){}; + b.onError=function(m,n){return g.H(e,function q(){return g.B(q,function(t){if(1==t.i)return g.A(t,Dx(h,f).catch(function(u){Vx(u)}),2); + l(m,n);g.sa(t)})})}}Tx(a,b,h.skipRetry)}else Dx(h,f).catch(function(m){Tx(a,b,g.Cs("nwl_skip_retry")&&c); + Vx(m)})}else Tx(a,b,g.Cs("nwl_skip_retry")&&c)} + var e=this;b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(f){d(f)}):d(Wx())}; + Yx=function(a,b){function c(d){if(Sx()&&d){var e={url:a,options:b,timestamp:(0,g.Q)(),status:"NEW",sendCount:0},f=!1,h=b.onSuccess?b.onSuccess:function(){}; + e.options.onSuccess=function(l,m){void 0!==e.id?Hx(e.id,d):f=!0;g.Cs("vss_network_hint")&&Rx().Pn(!0);h(l,m)}; + Tx(e.url,e.options);Dx(e,d).then(function(l){e.id=l;f&&Hx(e.id,d)}).catch(function(l){Vx(l)})}else Tx(a,b)} + b=void 0===b?{}:b;g.Cs("skip_is_supported_killswitch")?g.ex().then(function(d){c(d)}):c(Wx())}; + via=function(){var a=this,b=Wx();if(!b)throw g.nw("throttleSend");Zx||(Zx=g.Pu(0,function(){return g.H(a,function d(){var e;return g.B(d,function(f){if(1==f.i)return g.A(f,Ex("NEW",b),2);if(3!=f.i)return e=f.u,e?g.A(f,Ux(e),3):(g.Tu(Zx),Zx=0,f.return());Zx&&(Zx=0,via());g.sa(f)})})},100))}; + Ux=function(a){return g.H(this,function c(){var d,e,f;return g.B(c,function(h){switch(h.i){case 1:d=Wx();if(!d)throw e=g.nw("immediateSend"),e;if(void 0===a.id){h.fb(2);break}return g.A(h,Fx(a.id,d),3);case 3:(f=h.u)?a=f:Is(Error("The request cannot be found in the database."));case 2:var l=a.timestamp;if(!(2592E6<=(0,g.Q)()-l)){h.fb(4);break}Is(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){h.fb(5);break}return g.A(h,Hx(a.id,d),5);case 5:return h.return(); + case 4:a.skipRetry||(a=wia(a));l=a;var m,n;if(null===(n=null===(m=null===l||void 0===l?void 0:l.options)||void 0===m?void 0:m.postParams)||void 0===n?0:n.requestTimeMs)l.options.postParams.requestTimeMs=Math.round((0,g.Q)());a=l;if(!a){h.fb(0);break}if(!a.skipRetry||void 0===a.id){h.fb(8);break}return g.A(h,Hx(a.id,d),8);case 8:Tx(a.url,a.options,!!a.skipRetry),g.sa(h)}})})}; + wia=function(a){var b=this,c=Wx();if(!c)throw g.nw("updateRequestHandlers");var d=a.options.onError?a.options.onError:function(){}; + a.options.onError=function(f,h){return g.H(b,function m(){var n;return g.B(m,function(p){switch(p.i){case 1:n=nx(h);if(!(g.Cs("nwl_consider_error_code")&&n||!g.Cs("nwl_consider_error_code")&&xia()<=Ds("potential_esf_error_limit",10))){p.fb(2);break}return g.A(p,Rx().Sk(),3);case 3:if(Rx().Te()){p.fb(2);break}d(f,h);if(!g.Cs("nwl_consider_error_code")||void 0===(null===a||void 0===a?void 0:a.id)){p.fb(5);break}return g.A(p,Gx(a.id,c,!1),5);case 5:return p.return();case 2:if(g.Cs("nwl_consider_error_code")&& + !n&&xia()>Ds("potential_esf_error_limit",10))return p.return();g.Ga("ytNetworklessLoggingInitializationOptions")&&$x.potentialEsfErrorCounter++;ay++;if(void 0===(null===a||void 0===a?void 0:a.id)){p.fb(7);break}return 1>a.sendCount?g.A(p,Gx(a.id,c),11):g.A(p,Hx(a.id,c),7);case 11:g.Pu(0,function(){Rx().Te()&&via()},5E3); + case 7:d(f,h),g.sa(p)}})})}; + var e=a.options.onSuccess?a.options.onSuccess:function(){}; + a.options.onSuccess=function(f,h){return g.H(b,function m(){return g.B(m,function(n){if(1==n.i)return void 0===(null===a||void 0===a?void 0:a.id)?n.fb(2):g.A(n,Hx(a.id,c),2);g.Cs("vss_network_hint")&&Rx().Pn(!0);e(f,h);g.sa(n)})})}; + return a}; + Rx=function(){by||(by=new Qx({BL:!0,QJ:!0}));return by}; + Vx=function(a){Rx().Te()?g.Gs(a):Lx(a)}; + Tx=function(a,b,c){if(g.Cs("networkless_with_beacon")){var d=["method","postBody"];if(Object.keys(b).length>d.length)c=!0;else{c=0;d=g.r(d);for(var e=d.next();!e.done;e=d.next())b.hasOwnProperty(e.value)&&c++;c=Object.keys(b).length!==c}c?g.Ct(a,b):bv(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.av(a):g.Ct(a,b)}; + Sx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.isNwlInitialized:!1}; + Wx=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.databaseToken:void 0}; + xia=function(){return g.Ga("ytNetworklessLoggingInitializationOptions")?$x.potentialEsfErrorCounter:ay}; + cy=function(){jx.call(this,{df:{hR:mia,Kr:Hx,pK:Ex,SS:Fx,TF:Gx,set:Dx},Ve:new Qx({BL:!0,QJ:!0}),handleError:g.Gs,ls:Is,wm:yia,now:g.Q,GO:Lx,mL:Ru(),yF:"publicytnetworkstatus-online",WE:"publicytnetworkstatus-offline",Ey:!0,qy:.1,vA:Ds("potential_esf_error_limit",10),ob:g.Cs});this.Ey&&Math.random()<=this.qy&&this.databaseToken&&pia(this.databaseToken);g.Cs("networkless_immediately_drop_sw_health_store")&&zia(this);g.Cs("networkless_immediately_drop_all_requests")&&nia();hx("LogsDatabaseV2")}; + dy=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new cy,g.Fa("yt.networklessRequestController.instance",a,void 0),g.Cs("networkless_logging")&&g.ex().then(function(b){a.databaseToken=b;ix(a)})); + return a}; + zia=function(a){g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){e=d;if(!d.databaseToken)throw f=g.nw("clearSWHealthLogsDb"),f;return h.return(qia(d.databaseToken).catch(function(l){e.handleError(l)}))})})}; + yia=function(a,b,c){var d;if(null===(d=b.postParams)||void 0===d?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Q)());if(g.Cs("networkless_with_beacon")){c=b;var e=["method","postBody"];if(Object.keys(c).length>e.length)c=!0;else{d=0;e=g.r(e);for(var f=e.next();!f.done;f=e.next())c.hasOwnProperty(f.value)&&d++;c=Object.keys(c).length!==d}c?g.Ct(a,b):bv(a,void 0,b.postBody)}else c&&0===Object.keys(b).length?g.av(a):g.Ct(a,b)}; + g.ey=function(a){this.config_=null;a?this.config_=a:Sv()&&(this.config_=g.zv())}; + g.Av=function(a,b,c,d){function e(p){try{(void 0===p?0:p)&&d.retry&&!d.TL.bypassNetworkless?(f.method="POST",d.TL.writeThenSend?g.Cs("use_new_nwl")?dy().writeThenSend(n,f):uia(n,f):g.Cs("use_new_nwl")?dy().sendAndWrite(n,f):Yx(n,f)):(f.method="POST",f.postParams||(f.postParams={}),g.Ct(n,f))}catch(q){if("InvalidAccessError"==q.name)Is(Error("An extension is blocking network request."));else throw q;}} + !g.P("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Is(new g.dw("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.dw("innertube xhrclient not ready",b,c,d),g.Gs(a),a;var f={headers:{"Content-Type":"application/json"},method:"POST",postParams:c,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};c="";var h=a.config_.WK;h&&(c=h);h=Kha(a.config_.YK||!1,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;var l={alt:"json"},m=a.config_.XK&&h;g.Cs("omit_innertube_api_key_for_Bearer_auth_header")&&(m=m&&h.startsWith("Bearer"));m||(l.key=a.config_.innertubeApiKey);var n=Qs(""+c+b,l);g.Cs("use_new_nwl")||Sx()?dx().then(function(p){e(p)}):e(!1)}; + g.Zv=function(a,b,c){c=void 0===c?{}:c;var d=g.ey;g.P("ytLoggingEventsDefaultDisabled",!1)&&g.ey==g.ey&&(d=null);Ev(a,b,d,c)}; + Cia=function(){var a=void 0===a?window.location.href:a;if(g.Cs("kevlar_disable_theme_param"))return null;var b=fi(g.hi(5,a));if(Aia(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.Os(a).theme;return Bia.get(c)||null}catch(d){}return null}; + Aia=function(a){var b=Dia.map(function(c){return c.toLowerCase()}); + return!g.Cs("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1}; + Fia=function(a,b,c){a&&(a.dataset?a.dataset[Eia(b)]=String(c):a.setAttribute("data-"+b,c))}; + Gia=function(a){return a?a.dataset?a.dataset[Eia("loaded")]:a.getAttribute("data-loaded"):null}; + Eia=function(a){return Hia[a]||(Hia[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))}; + fy=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()}; + iy=function(a){var b;g.gy()?hy()==a&&(b=document):b=a;return b&&(a=uu(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; + jy=function(a){return g.tb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; + Iia=function(){var a=document;return g.tb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; + g.gy=function(){return!!uu(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; + hy=function(a){a=void 0===a?!1:a;var b=uu(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; + ky=function(a){g.I.call(this);this.D=[];this.Ra=a||this}; + ly=function(a,b,c,d){for(var e=0;e>3;switch(e&7){case 0:e=Iy(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Iy(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(db)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity}; + Zia=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;df&&(c=a.substring(f,e),c=c.replace(nja,""),c=c.replace(oja,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else pja(a,b,c)}; + pja=function(a,b,c){c=void 0===c?null:c;var d=qja(a),e=document.getElementById(d),f=e&&Gia(e),h=e&&!f;f?b&&b():(b&&(f=g.hv(d,b),b=""+g.Na(b),rja[b]=f),h||(e=sja(a,d,function(){Gia(e)||(Fia(e,"loaded","true"),g.jv(d),g.ut(g.Oa(lv,d),0))},c)))}; + sja=function(a,b,c,d){d=void 0===d?null:d;var e=g.Gg("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.Zk(e,g.ir(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; + qja=function(a){var b=document.createElement("a");g.Tf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+jg(a)}; + Rz=function(a,b){for(var c=[],d=1;dMath.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.dw(a);if(a.args)for(var f=g.r(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot: "+b.rb:"");c&&(d.layout=c?"layout: "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.My(a)}}; + Zz=function(a,b,c,d,e,f,h){g.I.call(this);this.B=a;this.u=b;this.CC=c;this.Na=d;this.C=e;this.i=f;this.Ga=h}; + $z=function(){this.u=new Map;this.i=new Map;this.B=new Map}; + aA=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return yy()}; + bA=function(a,b,c){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.i.get(b)||0;d++;a.i.set(b,d);return c+"_"+b+"_"+d}return yy()}; + cA=function(a,b){if(g.P("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return yy()}; + dA=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.i=f}; + Bja=function(a,b,c,d){this.B=a;this.oe=null;this.u=b;this.i=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.C=void 0===d?!1:d}; + eA=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.My(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a}; + fA=function(a,b){return b&&b.test(a)?!0:!1}; + gA=function(a){return(a=Cja&&Cja.exec(a))?a[0]:""}; + hA=function(a){var b=void 0===b?!1:b;return eA(fA(a,Dja),a,b,"Trusted Stream URL")}; + g.iA=function(a){var b=void 0===b?!1:b;return eA(fA(a,Eja),a,b,"Trusted Image URL")}; + Gja=function(a){var b=void 0===b?!1:b;return eA(fA(a,Fja),a,b,"Trusted Ad Domain URL")}; + Ija=function(a){var b=void 0===b?!1:b;return eA(fA(a,Hja),a,b,"Trusted Promoted Video Domain URL")}; + Kja=function(a){var b=void 0===b?!1:b;return eA(fA(a,Jja),a,b,"Drm Licensor URL")}; + Mja=function(a,b){b=void 0===b?!1:b;return eA(fA(a,Lja),a,b,"Captions URL")}; + Nja=function(a){a=new g.Rj(a);g.Sj(a,document.location.protocol);g.Tj(a,document.location.hostname);document.location.port&&g.Uj(a,document.location.port);return a.toString()}; + jA=function(a){a=new g.Rj(a);g.Sj(a,document.location.protocol);return a.toString()}; + g.lA=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Oja++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||kA.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.zm(d.thumbnails,function(e){return g.iA(e.url)})}):null; + this.visible=this.visible;this.style=this.style;this.start=this.start}; + Pja=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()}; + Qja=function(a,b){switch(a.style){case kA.CHAPTER_MARKER:return b?8:5;case kA.AD_MARKER:return 6;case kA.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; + g.mA=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u}; + g.nA=function(a){return"crn_"+a}; + g.oA=function(a){return"crx_"+a}; + pA=function(a,b,c,d,e){g.lA.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.i=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null}; + qA=function(a){return"AD_PLACEMENT_KIND_START"==a.i}; + Rja=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.i}; + Sja=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new qr(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new qr(Math.max(0,b.B-b.i),0x7ffffffffffff):new qr(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.B);if(c&&(d=a,a=Math.max(0,a-b.i),a==d))break;return new qr(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d= + b.oe;a=1E3*d.startSecs;if(c){if(a1E5*Math.random()&&(c=new g.dw("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.My(c)),!0):!1}; + MA=function(a){return!!g.P("FORCE_CSI_ON_GEL",!1)||g.Cs("csi_on_gel")||g.Cs("enable_csi_on_gel")||g.Cs("unplugged_tvhtml5_csi_on_gel")||!!CA(a).useGel}; + bka=function(a,b,c){var d=NA(c);d.gelTicks&&(d.gelTicks["tick_"+a]=!0);c||b||(0,g.Q)();if(MA(c)){GA(c||"").tick[a]=b||(0,g.Q)();d=EA(c);var e=CA(c).cttAuthInfo;"_start"===a?(a=JA(),LA(a,"baseline_"+d)||g.Zv("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:e})):JA().tick(a,d,b,e);Zja(c);return!0}return!1}; + gka=function(a,b,c){c=NA(c);if(c.gelInfos)c.gelInfos["info_"+a]=!0;else{var d={};c.gelInfos=(d["info_"+a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in cka){c=cka[a];g.wb(dka,c)&&(b=!!b);a in eka&&"string"===typeof b&&(b=eka[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;hc.duration?d:c},{duration:0}))&&0a)return!1}return!("function"!==typeof window.fetch||!window.ReadableStream)}; + $A=function(a){if(a.xv())return!1;a=a.getResponseHeader("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a}; + aB=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length}; + bB=function(a,b){this.id=a;this.Ac=b;this.captionTracks=[];this.i=this.B=this.C=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"}; + cB=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.i=b||0}; + dB=function(a,b){return a.u===b.u&&a.i===b.i&&a.B===b.B&&a.reason===b.reason}; + fB=function(a,b,c,d){return new cB(g.eB[a]||0,g.eB[b]||0,c,d)}; + gB=function(a){var b=g.eB.auto;return a.u===b&&a.i===b}; + iB=function(a){return hB[a.i||a.u]||"auto"}; + qka=function(a,b){b=g.eB[b];return a.u<=b&&(!a.i||a.i>=b)}; + jB=function(a,b){this.videoInfos=a;this.i=b;this.audioTracks=[];if(this.i){a=new Set;b=g.r(this.i);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.Ac&&!a.has(c.Ac.id)){var d=new bB(c.id,c.Ac);a.add(c.Ac.id);this.audioTracks.push(d)}}}; + mB=function(a,b,c,d,e){var f=[],h=new Set,l=a.ya||a.qb,m={};if(kB(c)){for(var n in c.i)c.i.hasOwnProperty(n)&&(d=c.i[n],m[d.info.i]=[d.info]);return m}for(var p in c.i)if(c.i.hasOwnProperty(p)){n=c.i[p];var q=n.info.lc();if(""===n.info.i)f.push(q),f.push("unkn");else if("304"!==q&&"266"!==q||!a.eb)if(a.J&&n.info.video&&n.info.video.i>a.J)f.push(q),f.push("max"+a.J);else if(a.K&&n.info.video&&n.info.video.im&&(q=d));"9"===q&&l.h&&(d=sB(l["9"]),sB(l.h)>1.5*d&&(q="h"));a.vb&&c.isLive&&"("===q&&l.H&&1440>sB(l["("])&&(q="H");h&&e("vfmly."+nB(q));a=l[q];if(!a.length)return h&&e("novfmly."+nB(q)), + Jt();rB(a,b);return Kt(new jB(a,b))}; + rB=function(a,b,c){c=void 0===c?[]:c;g.Mb(a,function(d,e){var f=e.video.height*e.video.width-d.video.height*d.video.width;if(!f&&c&&0c&&(b=a.K&&(a.Y||oB(a,pB.FRAMERATE))?g.Ko(b,function(d){return 32a.getLastSegmentNumber())a.segments=[];else{var c=qb(a.segments,function(d){return d.Ma>=b},a); + 0a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-bc;c++){var d=a.getInt8(b+c);if(97>d||122=a.u.byteLength}; + fC=function(a,b,c){var d=new $B(c);if(!bC(d,a))return!1;d=cC(d);if(!dC(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.i;var e=eC(d,!0);d=a+(d.start+d.i-b)+e;d=9b;b++)c=256*c+lC(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+lC(a),d*=128;return b?c-d:c}; + iC=function(a){var b=eC(a,!0);a.i+=b}; + gC=function(a){var b=a.i;a.i=0;var c=!1;try{dC(a,440786851)&&(a.i=0,dC(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.i=0,c=!1,g.My(d);else throw d;}a.i=b;return c}; + Xka=function(a){if(!dC(a,440786851,!0))return null;var b=a.i;eC(a,!1);var c=eC(a,!0)+a.i-b;a.i=b+c;if(!dC(a,408125543,!1))return null;eC(a,!0);if(!dC(a,357149030,!0))return null;var d=a.i;eC(a,!1);var e=eC(a,!0)+a.i-d;a.i=d+e;if(!dC(a,374648427,!0))return null;var f=a.i;eC(a,!1);var h=eC(a,!0)+a.i-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.u.buffer, + a.u.byteOffset+d,e),c+12);l.set(new Uint8Array(a.u.buffer,a.u.byteOffset+f,h),c+12+e);return l}; + mC=function(a){var b=a.i;a.i=0;var c=1E6;bC(a,[408125543,357149030,2807729])&&(c=hC(a));a.i=b;return c}; + Yka=function(a,b){var c=a.i;a.i=0;if(160!==a.u.getUint8(a.i)&&!nC(a)||!dC(a,160))return a.i=c,NaN;eC(a,!0);var d=a.i;if(!dC(a,161))return a.i=c,NaN;eC(a,!0);lC(a);var e=lC(a)<<8|lC(a);a.i=d;if(!dC(a,155))return a.i=c,NaN;d=hC(a);a.i=c;return(e+d)*b/1E9}; + nC=function(a){if(!Zka(a)||!dC(a,524531317))return!1;eC(a,!0);return!0}; + Zka=function(a){if(gC(a)){if(!dC(a,408125543))return!1;eC(a,!0)}return!0}; + bC=function(a,b){for(var c=0;cb.Yh?1E3*Math.pow(b.Wg,c-b.Yh):0;return 0===b?!0:a.J+b<(0,g.Q)()}; + uC=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.i=null;this.C=!1;this.D=null;this.S=0;this.J=this.B=null;this.info=b;this.u=new fla(a)}; + vC=function(a,b){var c=g.r(a.info.id.split(";")),d=c.next().value;c=c.next().value;return d+";"+(b?0:a.info.lastModified)+";"+(void 0===c?"":c)}; + wC=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; + xC=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new wC(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0a.Cb&&b.Cb+b.u<=a.Cb+a.u}; + nla=function(a,b){var c=b.i;a.J="updateWithEmsg";a.Ma=c;b.C&&(a.B=b.C)}; + GC=function(a,b){var c=b.Ma;a.J="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,jla(a)}; + HC=function(a,b){this.i=a;this.B=null;this.D=this.Pe=NaN;this.J=this.requestId=null;this.u=a[0].i.u;this.C=b||"";this.range=this.i[0].range&&0=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new AB(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}}; + UC=function(){this.count=0;this.B=1;this.u=!1;this.offsets=new Float64Array(128);this.i=new Float64Array(128)}; + VC=function(a){a.offsets.lengthc&&(c=a.totalLength-b);a.focus(b);if(!ZC(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.i[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.i[h],f),f+=a.i[h].length;a.i.splice(d,a.u-d+1,e);YC(a);a.focus(b)}d=a.i[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)}; + $C=function(a,b,c){a=Ela(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; + Fla=function(a){a=$C(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;ce)b=!1;else{for(d=e-1;0<=d;d--)c.u.setUint8(c.i+d,b&255),b>>>=8;c.i=a;b=!0}else b=!1;return b}; + eD=function(a,b){b=void 0===b?!1:b;var c=Nla(a);a=b?0:a.info.K;return c||a}; + Nla=function(a){g.dD(a.info.i.info)||a.info.i.info.ue();if(a.u&&6===a.info.type)return a.u.Li;if(g.dD(a.info.i.info)){var b=cD(a);var c=0;b=g.ZB(b,1936286840);b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=Qka(d.value),c+=d.vG[0]/d.AG;c=c||NaN;if(!(0<=c))a:{c=cD(a);b=a.info.i.i;for(var e=d=0,f=0;UB(c,d);){var h=VB(c,d);if(1836476516===h.type)e=g.RB(h);else if(1836019558===h.type){!e&&b&&(e=SB(b));if(!e){c=NaN;break a}var l=TB(h.data,h.dataOffset,1953653094),m=e,n=TB(l.data,l.dataOffset,1952868452); + l=TB(l.data,l.dataOffset,1953658222);var p=IB(n);IB(n);p&2&&IB(n);n=p&8?IB(n):0;var q=IB(l),t=q&1;p=q&4;var u=q&256,x=q&512,y=q&1024;q&=2048;var z=JB(l);t&&IB(l);p&&IB(l);for(var G=t=0;G=c+d)break}e.length||g.Ly(new g.dw("b189619593",""+b,""+c,""+d));return new HC(e)}; + hD=function(a,b,c,d){this.sampleRate=a||0;this.numChannels=b||0;this.spatialAudioType=c||0;this.itag=d||""}; + Qla=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d}; + jD=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||iD(a,b);this.i=g.eB[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&0!==d&&1!==d?0:e;this.projectionType=d?2===d&&2===e?3:d:0;(a=h)||(a=g.eB[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(2===c||3===c||4===c?"s":"p")+(55=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"}; + nD=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0=b)return c}catch(d){}return-1}; + ED=function(a,b){return 0<=DD(a,b)}; + Ula=function(a,b){if(!a)return NaN;b=DD(a,b);return 0<=b?a.start(b):NaN}; + FD=function(a,b){if(!a)return NaN;b=DD(a,b);return 0<=b?a.end(b):NaN}; + GD=function(a){return a&&a.length?a.end(a.length-1):NaN}; + Vla=function(a,b){a=FD(a,b);return 0<=a?a-b:0}; + HD=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 BD(d,e)}; + ID=function(a,b,c,d){g.R.call(this);var e=this;this.xd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.FK={error:function(){!e.isDisposed()&&e.isActive&&e.ea("error",e)}, + updateend:function(){!e.isDisposed()&&e.isActive&&e.ea("updateend",e)}}; + ny(this.xd,this.FK);this.Cx=this.isActive}; + g.JD=function(a){var b=[];if(a){a=g.r(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.r(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d=(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")}; + g.KD=function(a,b,c){c=void 0===c?{}:c;this.errorCode=a;this.i=b;this.details=c}; + LD=function(a){var b=void 0===b?!1:b;if(a instanceof g.KD)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Ly(a):g.My(a);return new g.KD(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})}; + MD=function(a,b,c,d,e){var f;g.R.call(this);var h=this;this.Wb=a;this.Ke=b;this.id=c;this.containerType=d;this.isVideo=e;this.oL=this.Ez=this.Ue=null;this.appendWindowStart=this.timestampOffset=0;this.fJ=BD([],[]);this.ey=!1;this.Ae=function(l){return h.ea(l.type,h)}; + if(null===(f=this.Wb)||void 0===f?0:f.addEventListener)this.Wb.addEventListener("updateend",this.Ae),this.Wb.addEventListener("error",this.Ae)}; + ND=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; + OD=function(a,b){this.i=a;this.u=void 0===b?!1:b;this.B=!1}; + PD=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaSource=a;this.Ke=b;this.isView=c;this.B=0;this.callback=null;this.events=new g.uD(this);g.J(this,this.events);this.gw=new OD(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Ke.webkitMediaSourceURL,!0);a=this.mediaSource||this.Ke;ly(this.events,a,["sourceopen","webkitsourceopen"],this.OV);ly(this.events,a,["sourceclose","webkitsourceclose"],this.NV)}; + Wla=function(a,b){QD(a)?g.ah(function(){b(a)}):a.callback=b}; + QD=function(a){try{return"open"===RD(a)}catch(b){return!1}}; + RD=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Ke.webkitSourceState){case a.Ke.SOURCE_OPEN:return"open";case a.Ke.SOURCE_ENDED:return"ended";default:return"closed"}}; + SD=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)}; + Xla=function(a,b,c,d){if(!a.i||!a.u)return null;var e=a.i.isView()?a.i.xd:a.i,f=a.u.isView()?a.u.xd:a.u,h=new PD(a.mediaSource,a.Ke,!0);h.gw=a.gw;e=new ID(e,b,c,d);b=new ID(f,b,c,d);h.i=e;h.u=b;g.J(h,e);g.J(h,b);QD(a)||a.i.TA(a.i.Uc());return h}; + Yla=function(a,b){return TD(function(c,d){return g.Ht(c,d,4,1E3)},a,b)}; + g.Zla=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=EB(new Uint8Array(a.response))):b=a.responseText;return!b||2048a.Z&&a.isLivePlayback;a.La=Number(MC(c,ZD(a,"earliestMediaSequence")))||0;if(d=Date.parse(sla(MC(c,ZD(a,"mpdResponseTime")))))a.ya=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.zm(c.getElementsByTagName("Period"),a.uW,a);a.state=2;a.ea("loaded");sma(a)}return a}),function(c){if(c instanceof Ft){var d=c.xhr; + a.ma=d.status}a.state=3;a.ea("loaderror");return kh(d)})}; + uma=function(a,b,c){return tma(new UD(a,b,c),a)}; + $D=function(a){return a.isLive&&(0,g.Q)()-a.Ea>=a.Z}; + sma=function(a){var b=a.Z;isFinite(b)&&($D(a)?a.refresh():(b=Math.max(0,a.Ea+b-(0,g.Q)()),a.C||(a.C=new g.M(a.refresh,b,a),g.J(a,a.C)),a.C.start(b)))}; + vma=function(a){a=a.i;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.getLastSegmentNumber()+1}return 0}; + aE=function(a){return a.D&&(a.u||a.Ka)?a.D-(a.u||a.timestampOffset):0}; + bE=function(a){return a.J&&(a.u||a.Ka)?a.J-(a.u||a.timestampOffset):0}; + cE=function(a){if(!isNaN(a.Aa))return a.Aa;var b=a.i,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.getFirstSegmentNumber();c<=d.getLastSegmentNumber();c++)b+=d.getDuration(c);b/=d.getNumberOfSegments();b=.5*Math.round(b/.5);d.getNumberOfSegments()>a.Ua&&(a.Aa=b);return b}if(a.isLive&&(d=b[c],d.Li))return d.Li}return NaN}; + wma=function(a,b){a=kc(a.i,function(d){return d.index.isLoaded()}); + if(!a)return NaN;a=a.index;var c=a.getSegmentNumberForTime(b);return a.getStartTime(c)===b?b:c(0,g.Q)()-1E3*a))return 0;a=g.Lz("yt-player-quality");if("string"===typeof a){if(a=g.eB[a],0a.previousQuality)return 1;if(a.quality=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Vt()&&(b.isArm=1,a=240);if(c){e=c.videoInfos.find(function(h){return qD(h)}); + if(e=null===(d=null===e||void 0===e?void 0:e.u)||void 0===d?void 0:d.powerEfficient)a=8192,b.isEfficient=1;c=c.videoInfos[0].video;var f=Math.min(gE("1",c.fps),gE("1",30));b.perfCap=f;a=Math.min(a,f);c.isHdr()&&!e&&(b.hdr=1,a*=.75)}else c=gE("1",30),b.perfCap30=c,a=Math.min(a,c),c=gE("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a}; + kE=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.C=c;this.experiments=d;this.i={};this.u=this.keySystemAccess=null;this.J=this.K=-1;this.B=null;this.D="";this.S=!!d&&d.ob("edge_nonprefixed_eme");this.D=d?g.jE(d,"html5_hdcp_probing_stream_url"):""}; + mE=function(a){return a.S?!1:!a.keySystemAccess&&!!lE()&&"com.microsoft.playready"===a.keySystem}; + nE=function(a){return"com.microsoft.playready"===a.keySystem}; + oE=function(a){return!a.keySystemAccess&&!!lE()&&"com.apple.fps.1_0"===a.keySystem}; + pE=function(a){return"com.youtube.fairplay"===a.keySystem}; + g.qE=function(a){return"fairplay"===a.flavor}; + lE=function(){var a=window,b=a.MSMediaKeys;au()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; + sE=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.ej&&!g.Wt())return sr("45");if(g.ax||g.Qc)return a.ob("edge_nonprefixed_eme");if(g.fj)return sr("47");if(g.gj){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.rE(a,"html5_safari_desktop_eme_min_version"))return sr(a)}return!0}; + Nma=function(a,b,c,d){var e=Xt(),f=(c=e||c&&au())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(f.unshift("com.youtube.widevine.l3"),e&&d&&f.unshift("com.youtube.widevine.forcehdcp"));return c?f:a?[].concat(g.v(f),g.v(tE.playready)):[].concat(g.v(tE.playready),g.v(f))}; + uE=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.experiments=b;this.useCobaltWidevine=d;this.Ba=e;this.i=[];this.u={};this.C={};this.callback=null;this.D=!1;this.B=[];this.initialize(a,!c);this.oa()}; + Pma=function(a,b){a.callback=b;a.B=[];sE(a.experiments)?vE(a):Oma(a)}; + vE=function(a){if(!a.isDisposed())if(0===a.i.length)a.callback(a.B);else{var b=a.i[0],c=a.u[b],d=Qma(a,c);a.oa();navigator.requestMediaKeySystemAccess(b,d).then(Hs(function(e){if(!a.isDisposed()){a.oa();c.keySystemAccess=e;if(nE(c)){e=vD();for(var f=g.r(Object.keys(a.C[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.i[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.r(e.audioCapabilities),h=f.next();!h.done;h=f.next())Rma(a,c,h.value);if(e.videoCapabilities)for(e= + g.r(e.videoCapabilities),f=e.next();!f.done;f=e.next())Rma(a,c,f.value)}a.B.push(c);a.N("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.i.shift(),vE(a)):a.callback(a.B)}}),Hs(function(){a.oa(); + a.D=!a.D&&"widevine"===a.u[a.i[0]].flavor;a.D||a.i.shift();vE(a)}))}}; + Rma=function(a,b,c){a.N("log_robustness_for_drm")?b.i[c.contentType]=c.robustness||!0:b.i[c.contentType]=!0}; + Qma=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};nE(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.r(Object.keys(a.C[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==b.flavor||a.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.ej&&Tt("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}), + f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&(gu()||Ut())&&(a.Ba("swcrypto","1"),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; + Oma=function(a){if(lE()&&g.gj)a.oa(),a.B.push(new kE("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=Sma(),c=g.tb(a.i,function(d){var e=a.u[d],f=!1,h=!1,l;for(l in a.C[e.flavor])b(l,d)&&(e.i[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h}); + c?(a.oa(),a.B.push(a.u[c])):a.oa();a.i=[]}a.callback(a.B)}; + Sma=function(){var a=lE();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=vD(); + return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; + Tma=function(){this.i=0}; + Uma=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Ks(b||"","&");var c={};g.Qb(this.experimentIds,function(d){c[d]=!0}); + this.experiments=c}; + g.rE=function(a,b){return Number(a.flags[b])||0}; + g.jE=function(a,b){return(a=a.flags[b])?a.toString():""}; + wE=function(a,b,c){this.experiments=a;this.Y=b;this.ma=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.D={};this.S=!1;this.i=new Map;this.K=!0;this.C=!this.experiments.ob("html5_disable_protected_hdr");this.u=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.B=!this.J&&a&&a("max-video-resolution-vpx")||null}; + rka=function(a,b,c){c=void 0===c?1:c;var d,e=b.lc();if("0"===e||a.experiments.ob("html5_blocking_media_capabilities")&&(null===(d=b.u)||void 0===d?0:d.supported))return!0;var f=b.mimeType;if(b.ue()&&Xt()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(qD(b)&&a.S)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(oB(a,pB.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24=a*b?null:new g.cg(a,b)}; + QE=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(mna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0=aF;m=b?b.useNativeControls:a.use_native_controls; + this.C=(this.N("embeds_enable_mobile_custom_controls")||!1===m&&!this.N("embeds_use_native_controls_killswitch"))&&g.XE(this)&&this.isMobile;n=this.isMobile&&!this.C;m=bF(this)||!q&&ME(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.qd=this.isMobile;this.color=NE("red",b&&l?b.progressBarColor:a.color,sna);this.ql="3"===this.controlsType||ME(!1,b&&l?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.eb=!this.i;this.Nj=(m=!this.eb&&!ZE(this)&& + !this.K&&!this.D&&!YE(this))&&!this.ql&&"1"===this.controlsType;this.Db=g.cF(this)&&m&&"0"===this.controlsType&&!this.Nj;this.xl=this.rl=q;this.Vi=dF&&!g.Ic(601)?!1:!0;this.Zj=this.i||!1;this.Fc=ZE(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=PE("",b&&l?b.widgetReferrer:a.widget_referrer);var t;b&&l?b.disableCastApi&&(t=!1):t=a.enablecastapi;t=!this.u||ME(!0,t);q=!0;b&&b.disableMdxCast&&(q=!1);this.hf=this.N("enable_cast_for_web_unplugged")&&g.eF(this)&& + q||this.N("enable_cast_on_music_web")&&g.fF(this)&&q||t&&q&&"1"===this.controlsType&&!this.isMobile&&(ZE(this)||g.cF(this)||g.gF(this))&&!g.hF(this);this.wl=yD()||zD();t=b?!!b.supportsAutoplayOverride:ME(!1,a.autoplayoverride);this.Zg=!this.isMobile&&!Tt("nintendo wiiu")&&!Tt("nintendo 3ds")||t;t=b?!!b.enableMutedAutoplay:ME(!1,a.mutedautoplay);q=this.N("embeds_enable_muted_autoplay")&&g.XE(this);this.dd=t&&q&&this.Y&&!bF(this);t=(ZE(this)||YE(this))&&"blazer"===this.playerStyle;this.Qf=b?!!b.disableFullscreen: + !ME(!0,a.fs);this.Ua=!this.Qf&&(t||g.gy());this.Kh=this.N("uniplayer_block_pip")&&(Ut()&&sr(58)&&!gu()||du);t=g.XE(this)&&!this.Mi;var u;b?void 0!==b.disableRelatedVideos&&(u=!b.disableRelatedVideos):u=a.rel;this.zb=t||ME(!this.D,u);this.Ui=ME(!1,b&&l?b.enableContentOwnerRelatedVideos:a.co_rel);this.J=gu()&&0=aF?"_top":"_blank";this.cd=g.gF(this);this.Wg=ME("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":u="bl";break;case "gmail":u="gm"; + break;case "books":u="gb";break;case "docs":u="gd";break;case "duo":u="gu";break;case "google-live":u="gl";break;case "google-one":u="go";break;case "play":u="gp";break;case "chat":u="hc";break;case "hangouts-meet":u="hm";break;case "photos-edu":case "picasaweb":u="pw";break;default:u="yt"}this.ya=u;this.Z=PE("",b&&l?b.authorizedUserIndex:a.authuser);this.Ei=g.XE(this)&&(this.La||this.N("embeds_web_enable_hiding_login_buttons")&&(!Qt()||gu()||eu())||this.N("embeds_web_enable_always_hiding_login_buttons")); + var x;b?void 0!==b.disableWatchLater&&(x=!b.disableWatchLater):x=a.showwatchlater;this.Qj=((u=!this.Ei)||!!this.Z&&u)&&ME(!this.K,this.u?x:void 0);this.Ye=b?!!b.disableKeyboardControls:ME(!1,a.disablekb);this.loop=ME(!1,a.loop);this.pageId=PE("",!this.N("wpcc_pageid_killswitch")&&b?b.initialDelegatedSessionId:a.pageid);this.vl=ME(!0,a.canplaylive);this.kb=ME(!1,a.livemonitor);this.disableSharing=ME(this.D,b?b.disableSharing:a.ss);this.Wi=lna(b&&this.N("fill_video_container_size_override_from_wpcc")? + b.videoContainerOverride:a.video_container_override);this.mute=b?!!b.startMuted:ME(!1,a.mute);this.storeUserVolume=!this.mute&&ME("0"!==this.controlsType,b&&!this.N("store_user_volume_override_from_wpcc_killswitch_2")?b.storeUserVolume:a.store_user_volume);x=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:NE(void 0,x,iF);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":PE("",a.cc_lang_pref);x=NE(2,b&&l?b.captionsLanguageLoadPolicy: + a.cc_load_policy,iF);"3"===this.controlsType&&2===x&&(x=3);this.Ra=x;this.Nd=b?b.hl||"en_US":PE("en_US",a.hl);this.region=b?b.contentRegion||"US":PE("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":PE("en",a.host_language);this.Sj=!this.La&&Math.random()Math.random();this.Tc=a.onesie_hot_config||(null===b||void 0===b?0:b.onesieHotConfig)?new bna(a.onesie_hot_config,null===b||void 0===b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b&&!this.N("fill_is_tectonic_from_wpcc_killswitch")? + !!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.uc=new jna;g.J(this,this.uc);this.Di=ME(!1,a.force_gvi);this.datasyncId=(null===b||void 0===b?void 0:b.datasyncId)||g.P("DATASYNC_ID",void 0);this.ll=g.P("LOGGED_IN",!1);this.Rj=(null===b||void 0===b?void 0:b.allowWoffleManagement)||!1;this.Jh=0;if(this.N("html5_generate_session_po_token")){a=g.lF(this)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo";try{this.dh=eca({qm:a});this.dh.ready().then(function(){nF(h)}); + var G=g.rE(this.experiments,"html5_session_po_token_interval_time_ms");0Number(c.get("dhmu",b.toString()))}; + g.CF=function(a){return(a.deviceHasDisplay&&g.ej&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(51):!0:!1)||(a.deviceHasDisplay&&g.fj&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(48):g.Ic(38):!1)||(a.deviceHasDisplay&&g.VE&&!du&&"3"!==a.controlsType?g.fu?a.i&&g.Ic(37):g.Ic(27):!1)||a.deviceHasDisplay&&g.BF&&!cu()&&g.Ic(11)||a.deviceHasDisplay&&g.gj&&g.Ic("604.4")}; + Bna=function(a){if(g.cF(a)&&$E)return!1;if(g.fj){if(!g.Ic(47)||!g.Ic(52)&&g.Ic(51))return!1}else if(g.gj)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; + ZE=function(a){return"detailpage"===a.Ka}; + g.cF=function(a){return"embedded"===a.Ka}; + DF=function(a){return"leanback"===a.Ka}; + YE=function(a){return"adunit"===a.Ka||"gvn"===a.playerStyle}; + g.gF=function(a){return"profilepage"===a.Ka}; + g.XE=function(a){return a.i&&g.cF(a)&&!YE(a)&&!a.D}; + tna=function(a,b){if(g.jE(a.experiments,"html5_qoe_intercept"))return g.jE(a.experiments,"html5_qoe_intercept");a.ek?(b=b.vss_host||"s.youtube.com",a.N("www_for_videostats")&&"s.youtube.com"===b&&(b=zna(a.Ea)||"www.youtube.com")):b="video.google.com";return b}; + EF=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.My(new g.dw("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; + g.FF=function(a){var b=g.rF(a);!a.N("yt_embeds_disable_new_error_lozenge_url")&&Cna.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; + nna=function(a,b){b.brand&&(a.deviceParams.cbrand=b.brand);b.browser&&(a.deviceParams.cbr=b.browser);b.browserVersion&&(a.deviceParams.cbrver=b.browserVersion);a.deviceParams.c=b.interfaceName||"WEB";a.deviceParams.cver=b.interfaceVersion||"html5";b.interfaceTheme&&(a.deviceParams.ctheme=b.interfaceTheme);a.deviceParams.cplayer=b.interfacePlayerType||"UNIPLAYER";b.model&&(a.deviceParams.cmodel=b.model);b.network&&(a.deviceParams.cnetwork=b.network);b.os&&(a.deviceParams.cos=b.os);b.osVersion&&(a.deviceParams.cosver= + b.osVersion);b.platform&&(a.deviceParams.cplatform=b.platform)}; + nF=function(a){var b;g.H(a,function d(){var e=this,f,h,l;return g.B(d,function(m){if(!e.N("html5_generate_session_po_token")||null===(b=e.dh)||void 0===b||!b.isReady())return m.return();f=g.P("VISITOR_DATA",void 0);h=e.ll?e.datasyncId:f;l=e.dh.Tz({yJ:h});e.Tg=g.Mc(l,2);g.sa(m)})})}; + zna=function(a){var b=g.ii(a);return(a=Number(g.hi(4,a))||null)?b+":"+a:b}; + GF=function(a){this.i=a}; + HF=function(a,b,c){if(c)return Jt();var d={};c=vD();b=g.r(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.mf().mimeType)){var f=e.i.video.quality;if(!d[f]||d[f].mf().ue())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Qb(kD,function(l){(l=d[l])&&h.push(l)}); + return h.length?Kt(h):Jt()}; + Dna=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.i=""}; + Ena=function(a,b){a.B.some(function(c){var d;return(null===(d=c.Ac)||void 0===d?void 0:d.getId())===b}); + a.i=b}; + IF=function(a,b,c){a.cpn&&(b=g.ti(b,{cpn:a.cpn}));c&&(b=g.ti(b,{aba:c}));return b}; + Fna=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a}; + Gna=function(a){for(var b=[],c=[],d=g.r(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?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.u=b.concat(c)}; + Hna=function(a){var b;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;this.u=(null===(b=a.audioItag)||void 0===b?void 0:b.split(","))||[];this.Ft=a.Ft;this.Bd=a.Bd||"";this.Ac=a.Ac;this.audioChannels=a.audioChannels;this.i=""}; + Ina=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?[]:d;var e={};a=g.r(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.push(f.itag);d.push("tpus");continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){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 tD(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Hna({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,Ft:n?l[n]:void 0,Bd:f.drm_families,Ac:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d.push(f.itag),d.push("enchdr")}return e}; + JF=function(a,b,c){this.i=a;this.B=b;this.expiration=c;this.u=null}; + Jna=function(a,b){if(!(du||au()||Xt()))return null;a=Ina(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.r(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.r(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Ac&&(f=h.Ac.getId(),c[f]||(h=new bB(f,h.Ac),c[f]=h,b.push(h)))}}return 0x.width*x.height*x.fps)x=F}else t.push(F)}else l.push(G),l.push("disdrmhfr");u.reduce(function(S, + L){return L.mf().isEncrypted()&&S},!0)&&(q=p); + e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;z=a.N("html5_native_audio_track_switching");u.push(Nna(t,c,d,f,"93",x,p,n,m,"auto",e,q,y,z));l.length&&h(l.join("."));return HF(a.B,u,pF(a,b))}; + Nna=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){for(var x=0,y="",z=g.r(a),G=z.next();!G.done;G=z.next())G=G.value,y||(y=G.itag),G.audioChannels&&G.audioChannels>x&&(x=G.audioChannels,y=G.itag);e=new nD(e,"application/x-mpegURL",{audio:new hD(0,x,null,y),video:new jD(f,h,l,null,void 0,n,void 0,t),Bd:q});a=new Dna(a,b,c?[c]:[],d,!!u);a.C=p?p:1369843;return new JF(e,a,m)}; + Kna=function(a){a=g.r(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN}; + Mna=function(a,b){for(var c=g.r(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Bd===b.Bd&&!e.audioChannels)return d}return""}; + Lna=function(a){for(var b=new Set,c=g.r(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.r(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.r(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]}; + KF=function(a,b){this.i=a;this.u=b}; + Pna=function(a,b,c,d){var e=[];c=g.r(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.uB(h.url,!0);if(h.s){var l=h.sp,m=Bka(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.r(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=Sla(h.type,h.quality,h.itag,h.width,h.height);e.push(new KF(h,f))}}return HF(a.B,e,pF(a,b))}; + LF=function(a,b){this.i=a;this.u=b}; + Qna=function(a){var b=[];g.Qb(a,function(c){if(c&&c.url){var d=Sla(c.type,"medium","0");b.push(new LF(d,c.url))}}); + return b}; + Rna=function(a,b,c){c=Qna(c);return HF(a.B,c,pF(a,b))}; + MF=function(a,b){this.type=a||"";this.id=b||""}; + g.NF=function(a){return new MF(a.substr(0,2),a.substr(2))}; + OF=function(a,b){for(var c={},d=g.r(Object.keys(Sna)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.iA(f)&&(c[Sna[e]]=f)}return c}; + PF=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.r(Object.keys(Tna)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Tna[e];for(var f=g.r(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Una(h.url);g.iA(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Una(a.url),g.iA(a)&&(b["maxresdefault.jpg"]=a));return b}; + Una=function(a){return a.startsWith("//")?"https:"+a:a}; + g.QF=function(a,b){var c;this.u=a;this.author="";this.fv=null;this.playlistLength=0;this.i=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=Ks(a,"&");this.i=(null===(c=b.thumbnail_ids)||void 0===c?void 0:c.split(",")[0])||null;this.Z=OF(b,"playlist_");this.videoId=b.video_id||void 0;if(a=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new MF("UU","PLAYER_"+a)).toString(); + break;default:var d=b.playlist_length;d&&(this.playlistLength=Number(d)||0);this.playlistId=g.NF(a).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.RF=function(a,b){this.i=a;this.Nm=this.author="";this.fv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Zp=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.zl=b.aria_label||void 0;this.author=b.author||"";this.Nm=b.Nm||"";if(a=b.endscreen_autoplay_session_data)this.fv=Ks(a,"&");this.hv=b.hv;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText= + b.lengthText||"";this.Zp=b.Zp||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Ks(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=OF(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; + Vna=function(){var a=g.Ga("ytDebugData.callbacks");a||(a={},g.Fa("ytDebugData.callbacks",a,void 0));return a}; + TF=function(){void 0===SF&&(SF=g.Kr());return SF}; + UF=function(){var a=TF();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; + Wna=function(a){var b=TF();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; + VF=function(a){return UF()[a]||0}; + WF=function(a,b){var c=UF();b!==c[a]&&(0!==b?c[a]=b:delete c[a],Wna(c))}; + Xna=function(a){var b=UF();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):2!==b[c]&&(b[c]=4);Object.assign(b,a);Wna(b);JSON.stringify(b);return b}; + Yna=function(){return g.H(this,function b(){return g.B(b,function(c){return c.return(hia())})})}; + g.XF=function(a){return g.H(this,function c(){return g.B(c,function(d){return d.return(Ww(Zna(),a))})})}; + $na=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,g.ex(),2);if(3!=f.i)return(d=f.u)?g.A(f,(0,g.XF)(d),3):f.return();e=f.u;return f.return(Dw(e,["index","media","captions"],{mode:"readwrite",Hc:!0},function(h){var l=IDBKeyRange.bound(a+"|",a+"~");h=[h.objectStore("index").delete(l),h.objectStore("media").delete(l),h.objectStore("captions").delete(l)];return pw.all(h).then(function(){})}))})})}; + coa=function(){return g.H(this,function b(){var c,d;return g.B(b,function(e){if(1==e.i)return g.A(e,g.ex(),2);if(3!=e.i){c=e.u;if(!c)throw g.nw("rvdfd");return g.A(e,(0,g.XF)(c),3)}d=e.u;return e.return(Dw(d,["index","media"],{mode:"readwrite",Hc:!0},function(f){var h={};return Kw(f.objectStore("index"),{},function(l){var m,n=l.getKey().match(/^([\w\-_]+)\|(a|v)$/),p=pw.resolve(void 0);if(n){var q=n[1];n=n[2];h[q]=h[q]||{};h[q][n]=aoa(null===(m=l.getValue())||void 0===m?void 0:m.fmts)}else p=l.delete().then(function(){}); + return pw.all([l.continue(),p]).then(function(t){return g.r(t).next().value})}).then(function(){for(var l={},m=g.r(Object.keys(h)),n=m.next();!n.done;n=m.next()){n=n.value; + var p=h[n].v;l[n]=h[n].a&&p?1:2}var q=Xna(l);return Mw(f.objectStore("media"),{},function(t){var u=t.getKey().match(boa);u&&l[u[1]]||f.objectStore("media").delete(t.getKey());return t.continue()}).then(function(){return q})})}))})})}; + doa=function(a,b){return g.H(this,function d(){var e,f;return g.B(d,function(h){if(1==h.i)return g.A(h,g.ex(),2);if(3!=h.i){e=h.u;if(!e)throw g.nw("wct");return g.A(h,(0,g.XF)(e),3)}f=h.u;return g.A(h,Dw(f,["captions"],{mode:"readwrite",Hc:!0},function(l){var m=[];l=l.objectStore("captions");for(var n=0;n> "+a.translationLanguage.languageName);return c.join("")}; + soa=function(a,b,c,d){a||(a=b&&poa.hasOwnProperty(b)&&qoa.hasOwnProperty(b)?qoa[b]+"_"+poa[b]:void 0);b=a;if(!b)return null;a=b.match(roa);if(!a||5!==a.length)return null;if(a=b.match(roa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null}; + uoa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return toa[a];return null}; + dG=function(a){return a&&a.baseUrl||""}; + eG=function(a){a=g.Os(a);for(var b=g.r(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}; + voa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Aa=b)}; + xoa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.r(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=woa(d.baseUrl);if(!e)return;d=new g.$F({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.sA(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.xC=b.audioTracks||[];a.VM=b.defaultAudioTrackIndex||0;a.yC=b.translationLanguages?g.ym(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.sA(f.languageName)}}): + []; + a.Ro=!!b.contribute&&!!b.contribute.captionsMetadataRenderer}; + yoa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=h.unserializedPlayerResponse;if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=h.playerVars)return Object.assign({is_yto_interstitial:!0},g.Ms(h))}); + d=g.r(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,Kj:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Kj: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, + Kj:0===f?5:7})}}}; + zoa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; + Aoa=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)}; + Goa=function(a){var b=a.indexRange,c=a.initRange;b={itag:a.itag,url:a.url,index:b?b.start+"-"+b.end:"0-0",bitrate:a.bitrate,init:c?c.start+"-"+c.end:"0-0",type:a.mimeType,clen:a.contentLength,lmt:a.lastModified,xtags:a.xtags};if(c=a.audioTrack){var d=c.displayName;d&&(b.name=d,b.audio_track_id=c.id,c.audioIsDefault&&(b.isDefault="1"))}if(c=a.captionTrack)b.caption_display_name=c.displayName,b.caption_vss_id=c.vssId,b.caption_language_code=c.languageCode,b.caption_kind=c.kind;(c=a.cipher||a.signatureCipher)? + (c=g.Ms(c),b.sp=c.sp,b.s=c.s,b.url=c.url):b.url=a.url;c=a.width;d=a.height;null!=c&&null!=d&&(b.size=c+"x"+d);(c=a.fps)&&(b.fps=c);(c=a.type)&&(b.stream_type=Boa[c]);(c=a.projectionType)&&(b.projection_type=Coa[c]);(c=a.stereoLayout)&&(b.stereo_layout=Doa[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=Eoa[c]);if(d=a.drmFamilies){c=[];d=g.r(d);for(var e=d.next();!e.done;e=d.next())c.push(fG[e.value]);b.drm_families=c.join(",")}(c=a.qualityLabel)&&(b.quality_label=c);(c=a.targetDurationSec)&&(b.target_duration_sec= + c);(c=a.maxDvrDurationSec)&&(b.max_dvr_duration_sec=c);(c=a.audioSampleRate)&&(b.audio_sample_rate=c);(c=a.audioChannels)&&(b.audio_channels=c);(c=uoa(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=Foa[a])&&(b.primaries=a);return g.ri(b)}; + gG=function(a){g.R.call(this);this.i=null;this.B=new Or;this.i=null;this.K=new Set;this.D=a||""}; + Hoa=function(a,b,c){for(c=hG(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(Math.floor(b/(d.columns*d.rows)))&&(d=g.iG(d,b)))return d;c--}return g.iG(a.levels[0],b)}; + Joa=function(a,b,c){c=hG(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),Nr(d.B,f,{yL:f,ML:e}))}Ioa(a)}; + Ioa=function(a){if(!a.i&&!a.B.isEmpty()){var b=a.B.remove();a.i=Koa(a,b)}}; + Koa=function(a,b){var c=document.createElement("img");a.D&&(c.crossOrigin=a.D);c.src=a.levels[b.yL].Xd(b.ML);c.onload=function(){var d=b.yL,e=b.ML;null!==a.i&&(a.i.onload=null,a.i=null);d=a.levels[d];d.loaded.add(e);Ioa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.LD()-1);e=[e,d];a.ea("l",e[0],e[1])}; + return c}; + g.jG=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.B=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.i=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d}; + g.iG=function(a,b){b>=a.QB()&&a.Wt();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Wt()+1-d*c;if(f=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1}; + lG=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.jG.call(this,a,b,c,0);this.u=null;this.J=d?2:0}; + mG=function(a,b,c,d){kG.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;ab&&(ND()||d.N("html5_format_hybridization"))&&(p.u.supportsChangeType=+ND(),p.B=b);2160<=b&&(p.S=!0);Jma()&&(p.u.serveVp9OverAv1IfHigherRes=0,p.Mb=!1);p.HC=m;m=g.ax||hu()&&!m?!1:!0;p.Ua=m;p.Aa=d.N("html5_format_hybridization");p.Db=d.N("html5_offline_av1_fallback");p.ya=d.N("html5_disable_codec_on_errors_with_exp_backoff");p.qb=d.N("html5_disable_codec_on_platform_errors");p.vb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");Xt()&&a.playerResponse&&a.playerResponse.playerConfig&& + a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(p.Y=!0,p.ma=!0);a.N("html5_match_codecs_for_gapless")&&a.Ja&&a.isAd()&&(a.ul&&(p.Z=a.ul),a.rl&&(p.C=a.rl));p.Ra=a.isLivePlayback&&wG(a)&&a.C.N("html5_drm_live_audio_51");return a.qd=p}; + cpa=function(a){a.Fc||a.i&&qB(a.i);var b={};a.i&&(b=mB(xG(a),a.C.B,a.i,function(c){return a.ea("ctmp","fmtflt",c)},!0)); + b=new uE(b,a.C.experiments,a.MI,bpa(a),function(c,d){a.Ba(c,d)}); + g.J(a,b);a.Pj=!1;a.Ea=!0;Pma(b,function(c){for(var d=g.r(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.u=a.Fc;e.K=a.jT;e.J=a.XS;break;case "widevine":e.B=a.aK}a.Zg=c;if(0y&&(y=F.mf().audio.numChannels); + 2=a.B.videoInfos.length)&&(b=rD(a.B.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.r(a.Zg),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}}; + EG=function(a,b){a.Hb=b;ppa(a,new jB(g.ym(a.Hb,function(c){return c.mf()})))}; + qpa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.C.deviceParams.c,cver:a.C.deviceParams.cver};a.Jq&&(b.ptk=a.Jq,b.oid=a.qH,b.ptchn=a.pH,b.pltype=a.fI,a.Up&&(b.m=a.Up));return b}; + g.FG=function(a){return tG(a)&&a.Fc?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Bd||null}; + rpa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.sA(b.text):a.paidContentOverlayText}; + GG=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?kg(b.durationMs):a.paidContentOverlayDurationMs}; + HG=function(a){var b="";if(a.aH)return a.aH;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b}; + g.IG=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]}; + JG=function(a){return!!(a.eb||a.adaptiveFormats||a.Gi||a.Ei||a.hlsvp)}; + pG=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.wb(a.ya,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Ea&&(JG(a)||g.wb(a.ya,"heartbeat")||b)}; + AG=function(a,b){a=Ns(a);var c={};if(b){b=g.r(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.r(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}; + Zoa=function(a,b){var c,d;a.showShareButton=!!b;var e=(null===(c=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.navigationEndpoint)||(null===(d=null===b||void 0===b?void 0:b.buttonRenderer)||void 0===d?void 0:d.command);e&&(a.Xj=!!e.copyTextEndpoint)}; + Ooa=function(a,b){var c,d,e,f,h,l,m=b.raw_embedded_player_response;if(!m){var n=b.embedded_player_response;n&&(m=JSON.parse(n))}m&&(a.og=m);if(a.og){if(m=a.og.videoFlags)m.playableInEmbed&&(a.allowEmbed=!0),m.isPrivate&&(a.isPrivate=!0),m.userDisplayName&&(b.user_display_name=m.userDisplayName),m.userDisplayImage&&(b.user_display_image=m.userDisplayImage);if(m=a.og.embedPreview){m=m.thumbnailPreviewRenderer;n=m.controlBgHtml;null!=n?(a.Ua=n,a.D=!0):(a.Ua="",a.D=!1);if(n=m.defaultThumbnail)a.Z=PF(n), + a.sampledThumbnailColor=n.sampledThumbnailColor;(n=null===(c=null===m||void 0===m?void 0:m.videoDetails)||void 0===c?void 0:c.embeddedPlayerOverlayVideoDetailsRenderer)&&$oa(a,b,n);if(n=null===(d=null===m||void 0===m?void 0:m.videoDetails)||void 0===d?void 0:d.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.wE=n.title,a.gE=n.byline,n.musicVideoType&&(a.musicVideoType=n.musicVideoType);a.Pf=!!m.addToWatchLaterButton;Zoa(a,m.shareButton);if(n=null===(h=null===(f=null===(e=null===m||void 0===m?void 0: + m.playButton)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.navigationEndpoint)||void 0===h?void 0:h.watchEndpoint){var p,q=null===(p=null===n||void 0===n?void 0:n.watchEndpointSupportedOnesieConfig)||void 0===p?void 0:p.html5PlaybackOnesieConfig;q&&(a.Gq=new ooa(q));a.videoId=n.videoId||a.videoId}m.videoDurationSeconds&&(a.lengthSeconds=kg(m.videoDurationSeconds));a.N("web_player_include_innertube_commands")&&m.webPlayerActionsPorting&&Aoa(a,m.webPlayerActionsPorting);if(p=null===(l= + null===m||void 0===m?void 0:m.playlist)||void 0===l?void 0:l.playlistPanelRenderer){m=[];n=Number(p.currentIndex);if(p.contents){q=0;for(var t=p.contents.length;qaH?!1:!0:!1}; + Soa=function(a){var b={};a=g.r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b}; + woa=function(a){if(a){if(Mja(a))return a;a=Nja(a);if(Mja(a,!0))return a}return""}; + g.Apa=function(a){return a.captionsLanguagePreference||a.C.captionsLanguagePreference||g.IG(a,"yt:cc_default_lang")||a.C.Nd}; + bH=function(a){return!!(a.N("enable_linear_player_handling")&&a.isLivePlayback&&a.hasProgressBarBoundaries())}; + cH=function(a,b){this.i=a;this.ma=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.Y=this.S=0}; + Bpa=function(a){return dH(a)&&1==a.getPlayerState(2)}; + dH=function(a){a=a.Kc();return void 0!==a&&2==a.getPlayerType()}; + rH=function(a){a=a.V();return kF(a)&&!g.xF(a)&&"desktop-polymer"==a.playerStyle}; + sH=function(a,b){var c=a.V();bF(c)||"3"!=c.controlsType||a.bb().Zw(b)}; + uH=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.ub=e;this.i=f;this.id=tH(a)}; + tH=function(a){return a+(":"+(Pr.getInstance().i++).toString(36))}; + vH=function(a){this.X=a}; + Cpa=function(a,b){if(0===b||1===b&&(a.X.isMobile&&g.gj?0:a.X.isMobile||g.xF(a.X)||g.lF(a.X)||mF(a.X)||!g.gj))return!0;a=g.vg("video-ads");return null!=a&&"none"!==Wl(a,"display")}; + Dpa=function(a){switch(a){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}}; + wH=function(){g.R.call(this);var a=this;this.i={};g.we(this,function(){for(var b=g.r(Object.keys(a.i)),c=b.next();!c.done;c=b.next())delete a.i[c.value]})}; + yH=function(){if(null===xH){xH=new wH;Bm(vq).i="b";var a=Bm(vq),b="h"==eq(a)||"b"==eq(a),c=!(Lm(),!1);b&&c&&(a.D=!0,a.J=new Mfa)}return xH}; + Epa=function(a,b,c){a.i[b]=c}; + Fpa=function(a){this.B=a;this.u={};this.i=Gl()?500:g.lF(a.V())?1E3:2500}; + Hpa=function(a,b){if(!b.length)return null;b=b.filter(function(c){if(!c.mimeType)return!1;c.mimeType in a.u||(a.u[c.mimeType]=a.B.canPlayType(c.mimeType));return a.u[c.mimeType]?!!c.mimeType&&"application/x-mpegurl"==c.mimeType.toLowerCase()||!!c.mimeType&&"application/dash+xml"==c.mimeType.toLowerCase()||"PROGRESSIVE"==c.delivery:!1}); + return Gpa(a,b)}; + Gpa=function(a,b){for(var c=null,d=g.r(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.i||ha.i||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&hc.maxBitrate&&(c=d));return c}; + zH=function(a,b,c){this.i=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); + c=0;for(a+=1;a=c*a.u.GB||d)&&SH(a,"first_quartile");(b>=c*a.u.SECOND||d)&&SH(a,"midpoint");(b>=c*a.u.uC||d)&&SH(a,"third_quartile")}; + Zpa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.u.GB||d)&&SH(a,"unmuted_first_quartile");(b>=c*a.u.SECOND||d)&&SH(a,"unmuted_midpoint");(b>=c*a.u.uC||d)&&SH(a,"unmuted_third_quartile")}; + ZH=function(a,b,c,d){if(null==a.lastUpdatedTimeSecs){if(cd||d>c)return;SH(a,b)}; + Wpa=function(a,b,c){if(0m.D&&m.qh()}}; + gqa=function(a){if(a.J&&a.Y){a.Y=!1;a=g.r(a.J.listeners);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.i){var c=b.i;b.i=void 0;b.u=void 0;fqa(b.B(),c)}else T("Received AdNotify terminated event when no slot is active")}}; + g.rI=function(a,b){for(var c={},d=g.r(Object.keys(b)),e=d.next();!e.done;c={yB:c.yB},e=d.next())e=e.value,c.yB=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.yB}}(c)); + return a}; + sI=function(a){return a?g.sA(a):null}; + hqa=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a}; + iqa=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null}; + jqa=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}}; + mqa=function(a,b,c,d){if(b.button&&b.button.buttonRenderer&&(!b.button.buttonRenderer.command||!b.button.buttonRenderer.command.adInfoDialogChoiceEndpoint)&&b.button.buttonRenderer.serviceEndpoint&&b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint){var e=b.button.buttonRenderer.serviceEndpoint.adInfoDialogEndpoint.dialog;e&&e.adInfoDialogRenderer&&(kqa(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=sI(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&& + lqa(a,b,c,d))}}; + kqa=function(a,b,c){var d=sI(b.confirmLabel)||"",e=sI(b.title)||"",f=[];if(b.adReasons)for(var h=g.r(b.adReasons),l=h.next();!l.done;l=h.next())f.push(sI(l.value)||"");h=b.headerTitle?g.sA(b.headerTitle):"";d={closeButton:d,menuTitle:h,targetingReasonHeader:e,targetingReasons:f,dialogMessage:sI(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.r(b.impressionEndpoints), + n=m.next();!n.done;n=m.next())c(n.value)}; + a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}}; + lqa=function(a,b,c,d){if(b.navigationEndpoint&&b.navigationEndpoint.adFeedbackEndpoint&&b.navigationEndpoint.adFeedbackEndpoint.content){var e=b.navigationEndpoint.adFeedbackEndpoint.content.adFeedbackRenderer;if(e){var f={goneText:"",questionText:"",undoText:"",hoverText:sI(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=hqa(b.navigationEndpoint);var h=jqa(b[1]),l=[jqa(b[0])];(b=iqa(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)}; + a.muteAd=function(){m||c(h);m=!1;for(var n=g.r(l),p=n.next();!p.done;p=n.next())c(p.value)}; + nqa(a,e,d)}}}; + nqa=function(a,b,c){a.muteAdInfo.goneText=sI(b.title)||"";a.muteAdInfo.questionText=sI(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=sI(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)}; + a=a.muteAdInfo.surveyOptions;b=g.r(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=sI(e.reason)||"";e=hqa(e.endpoint)[0];a.push({label:d,url:e})}}; + tI=function(a,b,c,d,e,f){this.u=a;this.B=b;this.i=LH(d);if(f)for(a=g.r(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.i[b]=f[b];this.C=c;this.D=d;this.J=e}; + oqa=function(a,b,c){b.isSkippable=!0;b.skipTime=c.skipOffsetMilliseconds?Math.floor(c.skipOffsetMilliseconds/1E3):0;if(c.skippableRenderer)switch(Object.keys(c.skippableRenderer)[0]){case "skipButtonRenderer":var d=c.skippableRenderer.skipButtonRenderer;b.skip=function(){var e=d.adRendererCommands&&d.adRendererCommands.clickCommand;e?a.Id(e):a.C.Kp()}; + b.skipShown=function(){a.Id(d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}}; + pqa=function(a,b,c){mqa(b,c,function(d){a.Id(d)},function(d){a.sendAdsPing(d)})}; + qqa=function(a){if(a.D.V().N("dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.B;for(var b={},c=g.r(Object.keys(a.i)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.i[d].toString();return Object.assign(b,a.B)}; + rqa=function(){return{adNextParams:"",adSystem:0,attributionInfo:null,clickThroughUrl:"",executeCommand:function(){}, + instreamAdPlayerOverlayRenderer:null,instreamSurveyAdRenderer:null,slidingTextPlayerOverlayRenderer:null,isBumper:!1,isPostroll:!1,isSkippable:!1,muteAdInfo:null,skipTime:0,videoId:"",videoUrl:"",whyThisAdInfo:null,muteAd:function(){}, + muteAdClicked:function(){}, + sendAdsPing:function(){}, + skip:function(){}, + endSurveyOnSubmitted:function(){}, + skipShown:function(){}, + whyThisAdClicked:function(){}, + whyThisAdClosed:function(){}, + daiEnabled:!1,remoteSlotsData:null,adBreakRemainingLengthSeconds:null,adBreakEndSeconds:null}}; + sqa=function(a,b,c,d,e){new tI(a,b,c,d,e,void 0)}; + uI=function(a){this.value=a}; + vI=function(a){this.value=a}; + wI=function(a){this.value=a}; + xI=function(a){this.value=a}; + yI=function(){uI.apply(this,arguments)}; + zI=function(a){this.value=a}; + AI=function(a){this.value=a}; + BI=function(a){this.value=a}; + CI=function(a){this.value=a}; + DI=function(a){this.value=a}; + EI=function(a){this.value=a}; + FI=function(){uI.apply(this,arguments)}; + GI=function(){uI.apply(this,arguments)}; + HI=function(a){this.value=a}; + II=function(a){this.value=a}; + JI=function(a){this.value=a}; + KI=function(a){this.value=a}; + LI=function(a){this.value=a}; + MI=function(a){this.value=a}; + NI=function(a){this.value=a}; + OI=function(a){this.value=a}; + PI=function(a){this.value=a}; + QI=function(a){this.value=a}; + RI=function(a){this.value=a}; + SI=function(a){this.value=a}; + TI=function(a){this.value=a}; + UI=function(a){this.value=a}; + VI=function(a){this.value=a}; + WI=function(a){this.value=a}; + XI=function(a){this.value=a}; + YI=function(a){this.value=a}; + ZI=function(a){this.value=a}; + $I=function(a){this.value=a}; + aJ=function(a){this.value=a}; + bJ=function(a){this.value=a}; + cJ=function(a){this.value=a}; + dJ=function(a){this.value=a}; + eJ=function(a){this.value=a}; + fJ=function(a){this.value=a}; + gJ=function(a){this.value=a}; + hJ=function(a){this.value=a}; + iJ=function(a){this.value=a}; + jJ=function(a){this.value=a}; + kJ=function(a){this.value=a}; + lJ=function(a){this.value=a}; + mJ=function(a){this.value=a}; + nJ=function(){uI.apply(this,arguments)}; + oJ=function(){uI.apply(this,arguments)}; + pJ=function(){uI.apply(this,arguments)}; + qJ=function(){uI.apply(this,arguments)}; + rJ=function(){uI.apply(this,arguments)}; + sJ=function(a){var b,c;if(!a.questions||1!==a.questions.length||!a.playbackCommands)return!1;var d=(null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon)||(null===(c=a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon);return tqa(d)?!0:!1}; + uqa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;a?a.playbackCommands&&a.questions&&1===a.questions.length?(a=null===(b=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===b?void 0:b.surveyAdQuestionCommon,b=tqa(a)):b=!1:b=!1;return b}; + tqa=function(a){if(!a)return!1;var b=(a.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;a=(null===b||void 0===b?void 0:b.skipOrPreviewRenderer)||{};var c=a.skipAdRenderer;b=((null===b||void 0===b?void 0:b.adInfoRenderer)||{}).adHoverTextButtonRenderer;return(a.adPreviewRenderer||c)&&b?!0:!1}; + wqa=function(a,b,c,d,e,f){this.i=new tI(a,b,c,d,e,vqa(f))}; + xqa=function(a,b){var c=rqa();c.instreamSurveyAdRenderer=b;c.executeCommand=function(d){a.i.Id(d)}; + b=("instreamSurveyAdSingleSelectQuestionRenderer"in b.questions[0]?b.questions[0].instreamSurveyAdSingleSelectQuestionRenderer:b.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer;if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":oqa(a.i,c,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":pqa(a.i, + c,b.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(d){a.i.sendAdsPing(d)}; + return c}; + vqa=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=KH(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())}); + b.SURVEY_ELAPSED_MS=KH(a);return b}; + tJ=function(a,b,c){g.R.call(this,!0);var d=this;this.J=b;this.D=c;this.u=a;this.Lb=new g.yh(200);this.Lb.Qa("tick",function(){var e=Date.now(),f=e-d.C;d.C=e;d.i+=f;d.i>=d.u&&(d.i=d.u,d.Lb.stop());e=d.i/1E3;d.D&&d.D.Qb(e);yqa(d,{current:e,duration:d.u/1E3})}); + g.J(this,this.Lb);this.i=0;this.B=null;g.we(this,function(){d.B=null}); + this.C=0}; + yqa=function(a,b){a.J.Oa("onAdPlaybackProgress",b);a.B=b}; + uJ=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;uH.call(this,"survey",a,{},b,c);this.Eg=d;this.Ji=e}; + vJ=function(a,b,c){g.R.call(this);var d=this;this.durationMs=a;this.D=b;this.J=c;this.B=!1;this.C=this.i=0;this.u=new g.yh(200);g.J(this,this.u);this.u.Qa("tick",function(){d.Qb()})}; + wJ=function(){VA("pbp")||VA("pbs")||WA("pbp");VA("pbp","watch")||VA("pbs","watch")||WA("pbp",void 0,"watch")}; + yJ=function(a,b,c,d,e,f,h){gI.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.J=new ky;g.J(this,this.J);this.J.T(this.I,"resize",function(){450>l.I.bb().rg().width&&(g.my(l.J),l.vg())}); + this.Y=0;this.S=null;this.Z=h(this,function(){return""+(Date.now()-l.Y)}); + if(this.B=g.lF(a.V())?new tJ(1E3*b.u,a,f):null)g.J(this,this.B),this.J.T(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&xJ(l)})}; + zqa=function(a,b){a.I.V().experiments.ob("validate_tvhtml5_instream_survey_ad_renderer_in_bulleit")&&!sJ(b)?(g.Ly(Error("Expected a valid VOD InstreamSurveyAdRenderer.")),a.ld("aderror")):(b=xqa(a.Z,b),a.I.Oa("onAdInfoChange",b))}; + xJ=function(a){var b=a.D.i;(b=b.questions&&b.questions[0])?(b=(b=b.instreamSurveyAdMultiSelectQuestionRenderer||b.instreamSurveyAdSingleSelectQuestionRenderer)&&b.surveyAdQuestionCommon,a.Z.Id(b&&b.timeoutCommands)):g.Ly(Error("Expected a survey question in InstreamSurveyAdRenderer."))}; + zJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;uH.call(this,"survey-interstitial",a,b,c,d);this.Eg=e;this.lG=f}; + AJ=function(a,b,c,d,e){gI.call(this,a,b,c,d,e,1);this.B=b}; + BJ=function(a,b,c,d,e,f,h,l,m,n,p){gI.call(this,a,b,c,d,e,1);var q=this;this.zz=!0;this.Z=m;this.B=b;this.D=f;this.ma=new ky(this);g.J(this,this.ma);this.J=new g.M(function(){q.Yg("load_timeout")},1E4); + g.J(this,this.J);this.Y=h;this.S=p}; + Aqa=function(a){if(a.Y&&(a.I.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.I.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.B.B,c=b.C,d=b.B,e=b.i;b=b.D;if(void 0===c)g.Ly(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Ly(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.B.u)}}; + EJ=function(a,b){if(null!==a.Z){var c=Bqa(a);a=g.r(a.Z.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.i||"aderror"!==f||(Cqa(d,e,[],!1),Dqa(d.B(),d.u),Eqa(d.B(),d.u),h=!0);if(d.i&&d.i.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}CJ(d.B(),d.u,d.i,e);if(h){e=d.B();h=d.u;DJ(e.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.r(e.Pd);for(f=e.next();!f.done;f=e.next())f.value.Cj(h);fqa(d.B(),d.u)}d.Na.get().I.V().N("html5_send_layout_unscheduled_signal_for_externally_managed")&& + d.C&&Fqa(d.B(),d.u,d.i);d.u=null;d.i=null;d.C=!1}}}}; + FJ=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""}; + Bqa=function(a){if(a=a.B.i.elementId)return a;g.Ly(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""}; + Gqa=function(a){function b(l,m){l=a.xW;var n=Object.assign({},{});n.FINAL=KH(af("1"));n.SLOT_POS=KH(af("0"));return OH(l,NH(n),m)} + function c(l){return null==l?{create:function(){return null}}:{create:function(m,n,p){var q=b(m,n); + n=a.eB(m,q);m=l(m,q,n,p);g.J(m,n);return m}}} + var d=c(function(l,m,n){return new lI(a.I,l,m,n,a.xp,a.Wa)}),e=c(function(l,m,n){return new AJ(a.I,l,m,n,a.xp)}),f=c(function(l,m,n){return new qI(a.I,l,m,n,a.xp,a.Wa,a.Ul,a.dm)}),h=c(function(l,m,n){return new pI(a.I,l,m,n,a.xp,a.Wa)}); + this.RQ=new dqa({create:function(l,m){var n=OH(b(l,m),NH(Spa(l)));m=a.eB(l,n);l=new BJ(a.I,l,n,m,a.xp,a.Wa,a.daiEnabled,function(p){return new sqa(a.Wa,n,p,a.I,a.Oh)},a.em,a.Tf,a.Od); + g.J(l,m);return l}},{create:function(l,m){var n=a.eB(l,m); + l=new yJ(a.I,l,m,n,a.xp,a.Wa,function(p,q){return new wqa(a.Wa,m,p,a.I,a.Oh,q)}); + g.J(l,n);return l}},d,e,f,h)}; + GJ=function(a,b){this.u=a;this.i={};this.B=void 0===b?!1:b}; + Hqa=function(a,b){var c=a.startSecs+a.durationSecs;c=0>=c?null:c;if(null===c)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{pR:new qr(b,c),AS:new dA(b,c-b,a.context,a.identifier,a.event,a.i)}}; + HJ=function(){this.i=[]}; + IJ=function(a,b,c){var d=g.Kb(a.i,b);if(0<=d)return b;b=-d-1;return b>=a.i.length||a.i[b]>c?null:a.i[b]}; + Iqa=function(){this.i=new HJ}; + JJ=function(a){this.i=a}; + Jqa=function(a){a=[a,a.C].filter(function(d){return!!d}); + for(var b=g.r(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a}; + Kqa=function(a,b,c){this.B=a;this.i=b;this.u=c;this.C=a.getCurrentTime()}; + Mqa=function(a,b){var c=void 0===c?Date.now():c;b=g.r(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c,f=a.i;KJ({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:Lqa(d.event),cuepointId:d.identifier,totalCueDurationMs:1E3*d.durationSecs,playheadTimeMs:d.i,cueStartTimeMs:1E3*d.startSecs,cuepointReceivedTimeMs:e,contentCpn:f}});a.u&&("unknown"===d.event&&LJ("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.i),d=d.startSecs+d.i/1E3,d>a.C&&a.B.getCurrentTime()>d&&LJ("DAI_ERROR_TYPE_LATE_CUEPOINT", + a.i))}}; + Nqa=function(a,b,c){a.u&&KJ({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.i}})}; + Oqa=function(a,b){a.u&&KJ({adTrimmingInfo:{contentCpn:a.i,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.ZQ}})}; + LJ=function(a,b){KJ({daiStateTrigger:{errorType:a,contentCpn:b}})}; + KJ=function(a){g.Zv("adsClientStateChange",a)}; + Lqa=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"}}; + MJ=function(a){this.I=a;this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.i=this.re=!1;this.adFormat=null;this.u="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; + Rqa=function(a,b,c,d,e){Pqa(a,b,c,d,e,function(){Qqa(a)})}; + Pqa=function(a,b,c,d,e,f){f();var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.u=b;0>=d?f():(a.actionType=a.B?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.re=!0,a.re&&(b={adBreakType:Sqa(a.u),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"}, + videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(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),UA(b,a.actionType))))}; + Qqa=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.u="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.re=!1;a.i=!1}; + Tqa=function(a){a.i=!1;RA("video_to_ad",void 0,void 0)}; + Uqa=function(a){a.i=!1;RA("ad_to_ad",void 0,void 0)}; + NJ=function(a){a.i=!1;RA("ad_to_video",void 0,void 0)}; + Vqa=function(a){a.re&&!a.i&&(a.B=!1,a.i=!0,"ad_to_video"!==a.actionType&&(TA("apbs",void 0,a.actionType),g.Cs("finalize_all_timelines")&&(a=a.actionType,PA("c",a),HA(a),OA(a))))}; + Sqa=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"}}; + g.Xqa=function(a){return(a=Wqa[a.toString()])?a:"LICENSE"}; + OJ=function(){g.I.call(this);this.u=null;this.J=this.D=!1;this.B=new g.Ue;g.J(this,this.B)}; + PJ=function(a){a=a.Jv();return 1>a.length?NaN:a.end(a.length-1)}; + Yqa=function(a,b,c){a.al()||a.getCurrentTime()>b||10=Math.abs(b-a.i.i.end/1E3)):b=!0;if(b&&!a.i.D.hasOwnProperty("ad_placement_end")){b=g.r(a.i.Y);for(var d=b.next();!d.done;d=b.next())cra(d.value);a.i.D.ad_placement_end=!0}b=a.i.S;if(null!==b){d=a.Gl;var e=a.i.C&&a.i.C.identifier,f=a.i.i.start,h=dK(a);d.u&&KJ({driftRecoveryInfo:{contentCpn:d.i,cueIdentifier:e||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(h- + f).toString(),driftFromHeadMs:Math.round(1E3*d.B.vn()).toString()}});a.i.S=null}c||a.daiEnabled?eK(a.Rf,!0):a.Z&&a.sH()&&a.Yv()?eK(a.Rf,!1,hra(a)):eK(a.Rf,!1);Rqa(a.C,a.i.i.i,!0,a.DD(),a.isLiveStream())}; + hra=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)}; + var b=Math.floor(g.Pa()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}}; + ira=function(a,b,c){this.i=a;this.u=b;this.B=c}; + gK=function(){this.D=[];this.K=[];this.i=[];this.C=[];this.J=[];this.u=new Set;this.S=new Map}; + hK=function(){gK.i||(gK.i=new gK);return gK.i}; + jra=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.u.has(c)&&a.B&&a.B();var h=g.Ey(c),l=g.Dy(c);h&&l&&((null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.Qy(a.client,h,l,[g.Ay(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.Qy(a.client,h,l,[g.Ay(d.playerResponse.trackingParams)]))})}; + kra=function(a,b){iK(a,g.Ay(b),void 0,void 0)}; + iK=function(a,b,c,d){d=void 0===d?0:d;if(a.u.has(d))a.D.push([b,c]);else{var e=g.Ey(d);c=c||g.Dy(d);e&&c&&g.Qy(a.client,e,c,[b])}}; + mra=function(a,b,c){c=void 0===c?{}:c;a.u.add(c.layer||0);a.B=function(){lra(a,b,c);var f=g.Dy(c.layer);if(f){for(var h=g.r(a.D),l=h.next();!l.done;l=h.next())l=l.value,iK(a,l[0],l[1]||f,c.layer);f=g.r(a.K);for(h=f.next();!h.done;h=f.next()){var m=h.value;h=void 0;h=void 0===h?0:h;l=g.Ey(h);var n=m[0]||g.Dy(h);l&&n&&(h=a.client,m=m[1],m={csn:l,ve:n.getAsJson(),clientData:m},n={cttAuthInfo:Fy(l),xm:l},"UNDEFINED_CSN"==l?Py("visualElementStateChanged",m,n):h?Ev("visualElementStateChanged",m,h,n):g.Zv("visualElementStateChanged", + m,n))}}}; + g.Ey(c.layer)||a.B();if(c.LJ)for(var d=g.r(c.LJ),e=d.next();!e.done;e=d.next())jra(a,e.value,c.layer);else g.Ly(Error("Delayed screen needs a data promise."))}; + lra=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.tW?c.tW:c.layer;var e=g.Ey(d);d=g.Dy(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));var h,l=g.P("EVENT_ID");"UNDEFINED_CSN"===e&&l&&(h={servletData:{serializedServletEventId:l}});try{var m=a.client;l=f;var n=c.GJ,p=c.cttAuthInfo,q=c.Paa,t=nra(),u={csn:t,pageVe:(new zy({veType:b,youtubeData:h})).getAsJson()};l&&l.visualElement? + (u.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},q&&(u.implicitGesture.gestureType=q)):l&&g.My(new g.dw("newScreen() parent element does not have a VE - rootVe",b));n&&(u.cloneCsn=n);n={cttAuthInfo:p,xm:t};m?Ev("screenCreated",u,m,n):g.Zv("screenCreated",u,n);sx(kja,new Oy(t));var x=t}catch(y){gja(y,{Xw:b,rootVe:d,parentVisualElement:void 0,Iaa:e,bba:f,GJ:c.GJ});g.Ly(y);return}Tia(x,b,c.layer,c.cttAuthInfo);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.Cs("screen_manager_skip_hide_killswitch"))){a:{b= + g.r(Object.values(ora));for(f=b.next();!f.done;f=b.next())if(g.Ey(f.value)==e){b=!0;break a}b=!1}b=!b}b&&hja(a.client,e,d,!0);a.i[a.i.length-1]&&!a.i[a.i.length-1].csn&&(a.i[a.i.length-1].csn=x||"");g.SA("csn",x);Hz.getInstance().clear();d=g.Dy(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.Cs("web_mark_root_visible")||g.Cs("music_web_mark_root_visible"))&&g.Ry(x,d,void 0);a.u.delete(c.layer||0);a.B=void 0;e=g.r(a.S);for(x=e.next();!x.done;x=e.next())b=g.r(x.value),x=b.next().value,b=b.next().value,b.has(c.layer)&& + d&&iK(a,x,d,c.layer);for(c=0;cd.length||(d[0]in Ara&&(f.clientName=Ara[d[0]]),d[1]in Bra&&(f.platform=Bra[d[1]]),f.applicationState=h,f.clientVersion=2e&&(b+="0"));if(0f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d}; + g.ML=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; + NL=function(a,b,c,d,e,f){uL.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()}; + OL=function(a,b,c,d){sL.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; + PL=function(a,b){this.u=a;this.i=b}; + QL=function(a){return a.i-a.u}; + RL=function(a,b){return a.u+b*QL(a)}; + SL=function(a,b,c){return QL(a)?g.Xf((b-a.u)/QL(a),0,1):null!=c?c:Infinity}; + TL=function(a,b){g.PK.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",U:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.J(this,this.u);this.Oc=this.Fa("ytp-ad-persistent-progress-bar");this.i=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; + UL=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",U:[{G:"div",L:"ytp-ad-player-overlay-flyout-cta"},{G:"div",L:"ytp-ad-player-overlay-instream-info"},{G:"div",L:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",L:"ytp-ad-player-overlay-progress-bar"},{G:"div",L:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",c,d);this.D=f;this.K=this.Fa("ytp-ad-player-overlay-flyout-cta");this.u=this.Fa("ytp-ad-player-overlay-instream-info");this.B=null;Bta(this)&&(a= + Fg("div"),g.N(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new OL(this.api,this.Wa,this.layoutId,this.ub),c.Da(a),c.init(tH("ad-title"),{text:b.title},this.macros),g.J(this,c)),this.B=a);this.C=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Fa("ytp-ad-player-overlay-progress-bar");this.Y=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.i=e;g.J(this,this.i);this.hide()}; + Bta=function(a){a=a.api.V();return g.fF(a)&&a.isMobile}; + Dta=function(a,b){var c=void 0===c?!0:c;var d=g.P("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.ii(window.location.href);e&&d.push(e);e=g.ii(a);if(g.wb(d,e)||!e&&Ya(a,"/"))if(g.Cs("autoescape_tempdata_url")&&(d=document.createElement("a"),g.Tf(d,a),a=d.href),a&&(a=ki(a),d=a.indexOf("#"),a=0>d?a:a.substr(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Ey()},b)),f){var f=parseInt(f,10);isFinite(f)&&0d&&(d=-(d+1));g.Jg(a,b,d);b.setAttribute("data-layer",String(c))}; + g.OM=function(a){var b=a.V();if(!b.Mb)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!bH(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&& + (!d||e)&&!g.wb(c.ya,"ypc")&&!a&&(!g.XE(b)||f)}; + Aua=function(a){a=g.PM(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.i||b.eH)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.Ba("iqss",d,!0),!0):!1}; + QM=function(a){this.X=a;this.u=this.i=NaN;this.B=g.rE(this.X.experiments,"h5_csi_seek_latency_action_sampling")||1}; + RM=function(a,b){this.X=a;this.timerName="";this.u=!1;this.B=new QM(a);this.i=b||null;this.u=!1}; + Bua=function(a,b,c){var d=g.cF(b.C)&&!b.C.D;if(b.C.Wg&&(ZE(b.C)||DF(b.C)||d)&&!a.u){a.u=!0;g.P("TIMING_ACTION")||zs("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&zs("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.i){b=a.i.Ap();d=g.r(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,TA(e,b[e],a.timerName);b=a.i.Su;d=g.r(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,g.SA(e,b[e],a.timerName);b=a.i;b.i={};b.Su={}}g.SA("yt_pvis",nka(),a.timerName);g.SA("yt_pt","html5",a.timerName); + c&&!VA("pbs",a.timerName)&&a.tick("pbs",c);c=a.X;DF(c)||ZE(c)||a.timerName||!VA("_start")||XA()}}; + SM=function(a,b){g.R.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.i=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=Ks(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)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new MF("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.NF(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0=a.length?0:b}; + Dua=function(a){var b=a.index-1;return 0>b?a.length-1:b}; + g.UM=function(a,b,c,d){b=void 0!==b?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 oG(a.u,b),g.J(a,e),e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; + VM=function(a,b){a.index=g.Xf(b,0,a.length-1);a.startSeconds=0}; + WM=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.UM(a);a.items=[];for(var d=g.r(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;if(b=b.index)a.index=b;else if(c&&(b=c.videoId,!a.items[a.index]||a.items[a.index].video_id!==b))for(c=0;ct.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:Iua[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:Jua[t[0]]|| + "UNKNOWN_INTERFACE",clientVersion:t[2]||"",platform:Kua[t[1]]||"UNKNOWN_PLATFORM"};t=void 0;if(n){u=void 0;try{u=JSON.parse(n)}catch(z){g.My(z)}u&&(t={params:[{key:"ms",value:u.ms}]},q.osName=u.os_name,q.userAgent=u.user_agent,q.windowHeightPoints=u.window_height_points,q.windowWidthPoints=u.window_width_points)}l.push({adSignalsInfo:t,remoteClient:q})}m.remoteContexts=l}a.sourceContainerPlaylistId&&(m.mdxPlaybackSourceContext={mdxPlaybackContainerInfo:{sourceContainerPlaylistId:a.sourceContainerPlaylistId}}); + h.mdxContext=m;m=b.width;0Math.random()){var z=new g.dw("Unable to load player module",b,document.location&&document.location.origin);g.Ly(z)}Tg(e);t&&t(y)}; + var u=m,x=u.onreadystatechange;u.onreadystatechange=function(y){switch(u.readyState){case "loaded":case "complete":Tg(f)}x&&x(y)}; + l&&((h=a.I.V().cspNonce)&&m.setAttribute("nonce",h),g.Zk(m,g.ir(b)),h=g.sg("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.we(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))}; + qN=function(a,b,c){g.xe.call(this,b,a);this.i=c}; + g.rN=function(a){OJ.call(this);var b=this;this.i=a;this.C={};this.listener=function(c){b.dispatchEvent(new qN(b,c.type,c))}}; + tN=function(a,b,c,d,e){g.R.call(this);var f=this;this.target=a;this.oy=b;this.u=0;this.J=!1;this.C=new g.ag(NaN,NaN);this.i=new g.uD(this);this.Aa=this.B=this.K=null;g.J(this,this.i);b=d||e?4E3:3E3;this.Z=new g.M(function(){sN(f,1,!1)},b,this); + g.J(this,this.Z);this.Y=new g.M(function(){sN(f,2,!1)},b,this); + g.J(this,this.Y);this.ma=new g.M(function(){sN(f,512,!1)},b,this); + g.J(this,this.ma);this.ya=c&&0=c.width||!c.height||0>=c.height||g.iA(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b}; + qva=function(a){var b=a.I.yb();b=b.isCued()||b.isError()?"none":g.YJ(b)?"playing":"paused";a.mediaSession.playbackState=b}; + HN=function(a){g.V.call(this,{G:"div",L:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.C=!1;this.ud=this.i=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.yF(b)?(this.u=new g.V({G:"a",L:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},U:[{G:"div",L:"ytp-paid-content-overlay-icon",va:"{{icon}}"},{G:"div",L:"ytp-paid-content-overlay-text",va:"{{text}}"},{G:"div",L:"ytp-paid-content-overlay-chevron",va:"{{chevron}}"}]}), + this.T(this.u.element,"click",this.onClick)):this.u=new g.V({G:"div",Ha:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.B=new g.xL(this.u,250,!1,100);g.J(this,this.u);this.u.Da(this.element);g.J(this,this.B);this.I.Rg(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Mc)}; + rva=function(a,b){var c=rpa(b),d=GG(b);if(a.i)b.videoId&&b.videoId!==a.videoId&&(g.Lq(a.i),a.videoId=b.videoId,a.C=!!d);else if(c&&d){var e,f,h,l;a.i=new g.M(a.Eb,d,a);g.J(a,a.i);b=null===(f=null===(e=b.getPlayerResponse())||void 0===e?void 0:e.paidContentOverlay)||void 0===f?void 0:f.paidContentOverlayRenderer;e=null===b||void 0===b?void 0:b.navigationEndpoint;f=null===(h=null===b||void 0===b?void 0:b.icon)||void 0===h?void 0:h.iconType;h=null===(l=null===e||void 0===e?void 0:e.urlEndpoint)||void 0=== + l?void 0:l.url;a.I.ym(a.element,(null===e||void 0===e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!==h&&void 0!==h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", + fill:"white"}}]}:null,chevron:h?g.UK():null})}}; + sva=function(a,b){a.i&&(g.U(b,8)&&a.C?(a.C=!1,a.td(),a.i.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; + IN=function(a){g.V.call(this,{G:"div",L:"ytp-spinner",U:[yN(),{G:"div",L:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.i=new g.M(this.show,500,this);g.J(this,this.i);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);a=a.yb();tva(a)?this.i.start():this.hide()}; + tva=function(a){return g.U(a,128)?!1:g.U(a,16)||g.U(a,1)?!0:!1}; + g.JN=function(a,b,c,d){d=void 0===d?!1:d;g.PK.call(this,b);var e=this;this.I=a;this.Ea=d;this.K=new g.uD(this);this.Y=new g.xL(this,c,!0,void 0,void 0,function(){e.u&&e.element&&(e.u.getAttribute("aria-haspopup"),e.u.setAttribute("aria-expanded","true"),e.focus())}); + g.J(this,this.K);g.J(this,this.Y)}; + uva=function(a){a.u&&(document.activeElement&&g.Mg(a.element,document.activeElement)&&(Pg(a.u),a.u.focus()),a.u.removeAttribute("aria-expanded"),a.u=void 0);g.my(a.K);a.S=void 0}; + KN=function(a,b,c){a.Wf()?a.Eb():a.td(b,c)}; + LN=function(a){var b=g.jE(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ha:["ytp-unmute-icon"],U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, + {G:"div",Ha:["ytp-unmute-text"],va:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ha:["ytp-unmute-box"],U:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.JN.call(this,a,{G:"button",Ha:["ytp-unmute","ytp-popup","ytp-button"].concat(c),U:[{G:"div",L:"ytp-unmute-inner",U:d}]},100);this.i=this.clicked=!1;this.api=a;this.api.Rb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange", + this.Mh);this.Qa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.XE(this.api.V());g.OK(this,a);a&&vva(this);this.B=a}; + vva=function(a){a.i||(a.i=!0,a.api.ib(a.element,!0))}; + g.NN=function(a){g.uD.call(this);var b=this;this.api=a;this.iG=!1;this.Dk=null;this.zy=!1;this.ze=null;this.hD=this.dB=!1;this.HG=this.JG=null;this.tL=NaN;this.GG=this.Yu=!1;this.nw=0;this.AC=[];var c=a.V(),d=a.bb();this.YI=new g.M(this.ZE,0,this);g.J(this,this.YI);g.hF(c)||(this.Ir=new vN(a),g.J(this,this.Ir),g.NM(a,this.Ir.element,4));if(wva(this)){var e=new IN(a);g.J(this,e);e=e.element;g.NM(a,e,4)}var f=a.getVideoData();this.rd=new tN(d,function(l){return b.oy(l)},f,c.qd,AF(c)); + g.J(this,this.rd);this.rd.subscribe("autohideupdate",this.vj,this);var h=new HN(a);g.J(this,h);g.NM(a,h.element,4);this.iB=new LN(a);g.J(this,this.iB);g.NM(this.api,this.iB.element,2);this.hE=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.cB=new g.M(this.qt,200,this);g.J(this,this.cB);this.AE=f.videoId;this.yN=new g.M(function(){b.nw=0},350); + g.J(this,this.yN);this.Cy=new g.M(function(){b.GG||MN(b)},350,this); + g.J(this,this.Cy);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.N(f,"ytp-color-white")}g.hF(c)&&g.N(f,"ytp-music-player");!a.N("web_player_disable_mediasession")&&navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new FN(a),g.J(this,f));this.T(a,"appresize",this.xb);this.T(a,"presentingplayerstatechange",this.Mh);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.WU);this.T(a,"autonavvisibility", + function(){b.Dm()}); + this.T(a,"sizestylechange",function(){b.Dm()}); + this.T(d,"click",this.vV,this);this.T(d,"dblclick",this.wV,this);c.Ua&&(this.T(d,"gesturechange",this.xV,this),this.T(d,"gestureend",this.yV,this));this.Qn=[d.Ru];this.Ir&&this.Qn.push(this.Ir.element);e&&this.Qn.push(e)}; + ON=function(a,b){if(!b)return!1;var c=a.api.jd();if(c.Po()&&(c=c.Me())&&g.Mg(c,b))return c.controls;for(c=0;c1+b&&a.api.toggleFullscreen()}; + wva=function(a){a=Ut()&&67<=Rt()&&!a.api.V().C;return!Tt("tizen")&&!UE&&!a&&!0}; + RN=function(a,b){b=void 0===b?2:b;g.R.call(this);this.api=a;this.i=null;this.Ae=new ky(this);g.J(this,this.Ae);this.u=Ata;this.Ae.T(this.api,"presentingplayerstatechange",this.Mc);this.i=this.Ae.T(this.api,"progresssync",this.Qb);this.Kj=b;1===this.Kj&&this.Qb()}; + SN=function(a){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-back-button"],U:[{G:"div",L:"ytp-arrow-back-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},U:[{G:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",Ob:!0,W:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.OK(this,a.V().showBackButton);this.Qa("click",this.onClick)}; + g.TN=function(a){g.V.call(this,{G:"div",U:[{G:"div",L:"ytp-bezel-text-wrapper",U:[{G:"div",L:"ytp-bezel-text",va:"{{title}}"}]},{G:"div",L:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},U:[{G:"div",L:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.I=a;this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,500,this);g.J(this,this.u);g.J(this,this.i);this.hide()}; + VN=function(a,b,c){if(0>=b){c=bL();b="muted";var d=0}else c=c?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{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";UN(a,c,b,d+"%")}; + Ava=function(a,b){b=b?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.I.getPlaybackRate(),d=g.rI("Speed is $RATE",{RATE:String(c)});UN(a,b,d,c+"x")}; + UN=function(a,b,c,d){d=void 0===d?"":d;a.Sa("label",void 0===c?"":c);a.Sa("icon",b);g.Lq(a.i);a.u.start();a.Sa("title",d);g.O(a.element,"ytp-bezel-text-hide",!d)}; + XN=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-button","ytp-cards-button"],W:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"span",L:"ytp-cards-button-icon-default",U:[{G:"div",L:"ytp-cards-button-icon",U:[a.V().N("player_new_info_card_format")?Ysa():{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, + {G:"div",L:"ytp-cards-button-title",va:"Info"}]},{G:"span",L:"ytp-cards-button-icon-shopping",U:[{G:"div",L:"ytp-cards-button-icon",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",L:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", + "fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", + L:"ytp-cards-button-title",va:"Shopping"}]}]});this.I=a;this.B=b;this.C=c;this.i=null;this.u=new g.xL(this,250,!0,100);g.J(this,this.u);g.O(this.C,"ytp-show-cards-title",g.XE(a.V()));this.hide();this.Qa("click",this.onClicked);this.Qa("mouseover",this.uU);WN(this,!0)}; + WN=function(a,b){b?a.i=g.YN(a.B.fc(),a.element):(a.i=a.i,a.i(),a.i=null)}; + ZN=function(a,b,c){g.V.call(this,{G:"div",L:"ytp-cards-teaser",U:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",U:a.V().N("player_new_info_card_format")?[{G:"button",L:"ytp-cards-teaser-info-icon",W:{"aria-label":"Show cards","aria-haspopup":"true"},U:[Ysa()]},{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"},{G:"button",L:"ytp-cards-teaser-close-button",W:{"aria-label":"Close"},U:[g.VK()]}]:[{G:"span",L:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var d=this;this.I=a;this.Y= + b;this.di=c;this.C=new g.xL(this,250,!1,250);this.i=null;this.K=new g.M(this.IU,300,this);this.J=new g.M(this.HU,2E3,this);this.D=[];this.u=null;this.S=new g.M(function(){d.element.style.margin="0"},250); + this.B=null;g.J(this,this.C);g.J(this,this.K);g.J(this,this.J);g.J(this,this.S);a.V().N("player_new_info_card_format")?(g.N(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.zi),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.xG),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.xG)):this.Qa("click",this.xG);this.T(c.element,"mouseover",this.IH);this.T(c.element,"mouseout",this.HH);this.T(a,"cardsteasershow",this.VV);this.T(a, + "cardsteaserhide",this.Eb);this.T(a,"cardstatechange",this.uO);this.T(a,"presentingplayerstatechange",this.uO);this.T(a,"appresize",this.VG);this.T(a,"onShowControls",this.VG);this.T(a,"onHideControls",this.kR);this.Qa("mouseenter",this.oP)}; + aO=function(a){g.V.call(this,{G:"button",Ha:[$N.BUTTON,$N.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{G:"div",L:$N.TITLE_NOTIFICATIONS_ON,W:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.ZK()]},{G:"div",L:$N.TITLE_NOTIFICATIONS_OFF,W:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{G:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{G:"path",W:{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.i=!1;a.Rb(this.element,this,36927);this.Qa("click",this.onClick,this);this.Sa("pressed",!1);this.Sa("label","Get notified about every new video")}; + Bva=function(a,b){a.i=b;a.element.classList.toggle($N.NOTIFICATIONS_ENABLED,a.i);var c=a.api.getVideoData();c?(b=b?c.nC:c.mC)?(a=a.api.Ml())?eM(a,b):g.Gs(Error("No innertube service available when updating notification preferences.")):g.Gs(Error("No update preferences command available.")):g.Gs(Error("No video data when updating notification preferences."))}; + g.cO=function(a,b,c,d,e,f,h,l,m,n,p,q,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var u=q.V();if(p){c={href:p,"aria-label":"Subscribe to channel"};if(g.cF(u)||g.gF(u))c.target=u.J;g.V.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"a",L:"ytp-sb-subscribe",W:c,U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",va:b}:""]}]});f&&g.N(this.element, + "ytp-sb-classic");this.channelId=h;this.i=t}else{p=u.userDisplayName&&g.cF(u)&&!u.N("subscribe_tooltipkillswitch");g.V.call(this,{G:"div",Ha:["ytp-button","ytp-sb"],U:[{G:"div",L:"ytp-sb-subscribe",W:p?{title:g.rI("Subscribe as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":EF(u),"data-tooltip-opaque":String(g.XE(u)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},a]},b? + {G:"div",L:"ytp-sb-count",va:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",W:p?{title:g.rI("Subscribed as $USER_NAME",{USER_NAME:u.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":EF(u),"data-tooltip-opaque":String(g.XE(u)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{G:"div",L:"ytp-sb-text",U:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",va:d}:""]}]});var x=this;this.channelId=h;this.i=t;var y=this.Fa("ytp-sb-subscribe"),z=this.Fa("ytp-sb-unsubscribe"); + f&&g.N(this.element,"ytp-sb-classic");if(e){l?this.u():this.B();var G=function(){var C=x.channelId;if(m||n){var K={c:C};if(q.V().N("embeds_botguard_with_subscribe_killswitch"))K="";else{var S;g.sM.Zd()&&(S=gua(K));K=S||""}if(S=q.getVideoData())if(S=S.subscribeCommand){var L=q.Ml();L?(eM(L,S,{botguardResponse:K,feature:m}),q.Oa("SUBSCRIBE",C)):g.Gs(Error("No innertube service available when updating subscriptions."))}else g.Gs(Error("No subscribe command in videoData."));else g.Gs(Error("No video data available when updating subscription."))}z.focus(); + z.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},F=function(){var C=x.channelId; + if(m||n){var K=q.getVideoData();eM(q.Ml(),K.unsubscribeCommand,{feature:m});q.Oa("UNSUBSCRIBE",C)}y.focus();y.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")}; + this.T(y,"click",G);this.T(z,"click",F);this.T(y,"keypress",function(C){13===C.keyCode&&G(C)}); + this.T(z,"keypress",function(C){13===C.keyCode&&F(C)}); + this.T(q,"SUBSCRIBE",this.u);this.T(q,"UNSUBSCRIBE",this.B);this.i&&p&&(this.tooltip=this.i.fc(),bO(this.tooltip),g.we(this,g.YN(this.tooltip,y)),g.we(this,g.YN(this.tooltip,z)))}else g.N(y,"ytp-sb-disabled"),g.N(z,"ytp-sb-disabled")}}; + dO=function(a,b){g.V.call(this,{G:"div",L:"ytp-title-channel",U:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.V().J,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{G:"div",L:"ytp-title-expanded-heading",U:[{G:"h2",L:"ytp-title-expanded-title",U:[{G:"a",va:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.V().J,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3", + L:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.J=b;this.channel=this.Fa("ytp-title-channel");this.i=this.Fa("ytp-title-channel-logo");this.C=this.Fa("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.D=g.XE(this.api.V());a.Rb(this.i,this,36925);this.D&&Cva(this);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.Pa();g.XE(this.api.V())&&(this.api.V().N("embeds_web_enable_hiding_login_buttons")||this.api.V().N("embeds_web_enable_always_hiding_login_buttons"))&& + g.N(this.element,"ytp-flyout-fix-experiment")}; + Cva=function(a){var b=a.api.V(),c=a.api.getVideoData();if(!b.Ei){var d=b.Z?null:Hta(),e=new g.cO("Subscribe",null,"Subscribed",null,!0,!1,c.Ri,c.subscribed,"channel_avatar",null,d,a.api,a.J);a.subscribeButton=e;g.J(a,e);e.Da(a.C);a.api.Rb(e.element,a,36926);e.hide();a.T(e.element,"click",function(){a.api.Fb(e.element)}); + var f=new aO(a.api);a.u=f;g.J(a,f);f.Da(a.C);f.hide();a.T(a.api,"SUBSCRIBE",function(){c.Di&&f.show()}); + a.T(a.api,"UNSUBSCRIBE",function(){c.Di&&(f.hide(),Bva(f,!1))})}a.Sa("flyoutUnfocusable","true"); + a.Sa("channelTitleFocusable","-1");b.isMobile?a.T(a.i,"click",function(h){Dva(a)&&(h.preventDefault(),a.isExpanded()?a.bD():a.wD());a.api.Fb(a.i)}):(a.T(a.channel,"mouseenter",a.wD),a.T(a.channel,"mouseleave",a.bD),a.T(a.channel,"focusin",a.wD),a.T(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.bD()}),a.T(a.i,"click",function(){a.api.Fb(a.i)})); + a.B=new g.M(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),a.api.ib(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.ib(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); + g.J(a,a.B);a.T(a.channel,Eva,function(){Fva(a)}); + a.T(a.api,"onHideControls",a.SF);a.T(a.api,"appresize",a.SF);a.T(a.api,"fullscreentoggled",a.SF)}; + Fva=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; + Dva=function(a){var b=a.api.getPlayerSize();return a.D&&524<=b.width}; + g.fO=function(a,b,c,d){g.PK.call(this,a);this.priority=b;c&&g.eO(this,c);d&&this.kd(d)}; + g.gO=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ha:b,W:a,U:[{G:"div",L:"ytp-menuitem-icon",va:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",va:"{{label}}"},{G:"div",L:"ytp-menuitem-content",va:"{{content}}"}]}}; + hO=function(a,b){a.Sa("icon",b)}; + g.eO=function(a,b){a.Sa("label",b)}; + iO=function(a,b,c,d,e,f){var h={G:"div",L:"ytp-panel"};if(c){var l="ytp-panel-title";var m={G:"div",L:"ytp-panel-header",U:[{G:"button",Ha:["ytp-button",l],U:[c]}]};if(e){var n="ytp-panel-options";m.U.unshift({G:"button",Ha:["ytp-button",n],U:[d]})}h.U=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",U:[f]},d=!0,h.U?h.U.push(f):h.U=[f]);g.PK.call(this,h);this.content=b;d&&h.U?b.Da(this.element,h.U.length-1):b.Da(this.element);this.JK=!1;this.uS=d;c&&(c=this.Fa(l),this.T(c,"click",this.LT),this.JK=!0, + e&&(n=this.Fa(n),this.T(n,"click",e)));b.subscribe("size-change",this.iM,this);this.T(a,"fullscreentoggled",this.iM)}; + g.jO=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.PK({G:"div",L:"ytp-panel-menu",W:h});iO.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.J(this,this.menuItems)}; + g.kO=function(a){for(var b=g.r(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.qF,a);a.items=[];g.Ig(a.menuItems.element);a.menuItems.ea("size-change")}; + Gva=function(a,b){return b.priority-a.priority}; + lO=function(a){var b=g.gO({"aria-haspopup":"true"});g.fO.call(this,b,a);this.Qa("keydown",this.i)}; + mO=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; + nO=function(a,b){g.fO.call(this,g.gO({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Qa("click",this.onClick)}; + oO=function(a,b,c,d){var e;g.jO.call(this,a);this.I=a;this.Bb=c;this.xc=d;this.getVideoUrl=new lO(6);this.jj=new lO(5);this.gj=new lO(4);this.Ib=new lO(3);this.Tw=new g.fO(g.gO({href:"{{href}}",target:this.I.V().J},void 0,!0),2,"Troubleshoot playback issue");this.Gr=new g.PK({G:"div",Ha:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.AJ=new iO(this.I,this.Gr);this.Gn=null;this.I.V().Oj&&(this.ri=new nO("Loop",7),g.J(this,this.ri),this.Gc(this.ri,!0),this.ri.Qa("click", + this.BU,this),a.Rb(this.ri.element,this.ri,28661));g.J(this,this.getVideoUrl);this.Gc(this.getVideoUrl,!0);this.getVideoUrl.Qa("click",this.rU,this);a.Rb(this.getVideoUrl.element,this.getVideoUrl,28659);g.J(this,this.jj);this.Gc(this.jj,!0);this.jj.Qa("click",this.sU,this);a.Rb(this.jj.element,this.jj,28660);g.J(this,this.gj);this.Gc(this.gj,!0);this.gj.Qa("click",this.qU,this);a.Rb(this.gj.element,this.gj,28658);g.J(this,this.Ib);this.Gc(this.Ib,!0);this.Ib.Qa("click",this.pU,this);g.J(this,this.Tw); + this.Gc(this.Tw,!0);this.Tw.Qa("click",this.qV,this);b=new g.fO(g.gO(),1,"Stats for nerds");g.J(this,b);this.Gc(b,!0);b.Qa("click",this.JV,this);g.J(this,this.Gr);this.Gr.Qa("click",this.eU,this);g.J(this,this.AJ);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.ej&&g.Ic(43)&&(c=!0);g.fj&&!g.Ic(41)&&(c=!1);c&&(this.Gn=new g.V({G:"textarea",L:"ytp-html5-clipboard",W:{readonly:""}}),g.J(this,this.Gn),this.Gn.Da(this.element));null===(e=this.ri)||void 0===e?void 0:hO(e,{G:"svg", + W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});hO(this.Ib,{G:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"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"}}]});hO(this.Tw,{G:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{G:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", + fill:"white","fill-rule":"evenodd"}}]});hO(b,Xsa());this.T(a,"loopchange",this.tM);this.T(a,"videodatachange",this.onVideoDataChange);Hva(this);Iva(this,this.I.getVideoData())}; + qO=function(a,b){var c=!1;if(a.Gn){var d=a.Gn.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Bb.Eb():(a.Gr.kd(b,"text"),g.pO(a.Bb,a.AJ),zN(a.Gr.element),a.Gn&&(a.Gn=null,Hva(a)));return c}; + Iva=function(a,b){var c,d=a.I.V(),e=2===a.I.getPresentingPlayerType(),f=!e||b.isListed;f=!d.K&&!!b.videoId&&f;"play"!==d.playerStyle?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.u&&(d.fmt=b.u.lc()),b.clientPlaybackNonce&&(d.cpn=b.clientPlaybackNonce),b.Ka&&(d.partnerid=b.Ka),d=g.ti("//support.google.com/googleplay/",d));g.OK(a.gj,f&&b.allowEmbed);g.OK(a.getVideoUrl,f);g.OK(a.jj,f&&!b.isLivePlayback); + a.Tw.kd(d,"href");null===(c=a.ri)||void 0===c?void 0:g.OK(c,!b.isLivePlayback&&!e)}; + Hva=function(a){var b=!!a.Gn;g.eO(a.Ib,b?"Copy debug info":"Get debug info");mO(a.Ib,!b);g.eO(a.gj,b?"Copy embed code":"Get embed code");mO(a.gj,!b);g.eO(a.getVideoUrl,b?"Copy video URL":"Get video URL");mO(a.getVideoUrl,!b);g.eO(a.jj,b?"Copy video URL at current time":"Get video URL at current time");mO(a.jj,!b);hO(a.gj,b?Vsa():null);hO(a.getVideoUrl,b?XK():null);hO(a.jj,b?XK():null)}; + g.rO=function(a,b){g.JN.call(this,a,{G:"div",Ha:["ytp-popup",b||""]},100,!0);this.i=[];this.J=this.C=null;this.Nx=this.maxWidth=0;this.size=new g.cg(0,0);this.Qa("keydown",this.pP)}; + Jva=function(a){var b=a.i[a.i.length-1];if(b){g.fm(a.element,a.maxWidth||"100%",a.Nx||"100%");g.Sl(b.element,"minWidth","250px");g.Sl(b.element,"width","");g.Sl(b.element,"height","");g.Sl(b.element,"maxWidth","100%");g.Sl(b.element,"maxHeight","100%");g.Sl(b.content.element,"height","");var c=g.gm(b.element);c.width+=1;c.height+=1;g.Sl(b.element,"width",c.width+"px");g.Sl(b.element,"height",c.height+"px");g.Sl(b.element,"maxWidth","");g.Sl(b.element,"maxHeight","");var d=0;b.JK&&(d=b.Fa("ytp-panel-header"), + d=g.gm(d).height);var e=0;b.uS&&(e=b.Fa("ytp-panel-footer"),g.Sl(e,"width",c.width+"px"),e=g.gm(e).height);g.Sl(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0=a.i.length)){var b=a.i.pop(),c=a.i[0];a.i=[c];sO(a,b,c,!0)}}; + sO=function(a,b,c,d){Kva(a);b&&(b.unsubscribe("size-change",a.Bt,a),b.unsubscribe("back",a.kh,a));c.subscribe("size-change",a.Bt,a);c.subscribe("back",a.kh,a);if(a.Ab){g.N(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Da(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;Jva(a);g.fm(a.element,e);a.C=new g.M(function(){Lva(a,b,c,d)},20,a); + a.C.start()}else c.Da(a.element),b&&b.detach()}; + Lva=function(a,b,c,d){a.C.dispose();a.C=null;g.N(a.element,"ytp-popup-animating");d?(g.N(b.element,"ytp-panel-animate-forward"),g.Sq(c.element,"ytp-panel-animate-back")):(g.N(b.element,"ytp-panel-animate-back"),g.Sq(c.element,"ytp-panel-animate-forward"));g.fm(a.element,a.size);a.J=new g.M(function(){g.Sq(a.element,"ytp-popup-animating");b.detach();g.Tq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a); + a.J.start()}; + Kva=function(a){a.C&&g.Kq(a.C);a.J&&g.Kq(a.J)}; + g.uO=function(a,b,c){g.rO.call(this,a);this.Aa=b;this.xc=c;this.B=new g.uD(this);this.ma=new g.M(this.bW,1E3,this);this.ya=this.D=null;g.J(this,this.B);g.J(this,this.ma);a.Rb(this.element,this,28656);g.N(this.element,"ytp-contextmenu");Mva(this);this.hide()}; + Mva=function(a){g.my(a.B);if("gvn"!==a.I.V().playerStyle){var b=a.I.bb();a.B.T(b,"contextmenu",a.bU);a.B.T(b,"touchstart",a.rP,null,!0);a.B.T(b,"touchmove",a.QM,null,!0);a.B.T(b,"touchend",a.QM,null,!0)}}; + Nva=function(a){a.I.isFullscreen()?g.NM(a.I,a.element,9):a.Da(document.body)}; + g.vO=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{G:"button",Ha:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"div",L:"ytp-copylink-icon",va:"{{icon}}"},{G:"div",L:"ytp-copylink-title",va:"Copy link",W:{"aria-hidden":"true"}}]});this.api=a;this.i=b;this.u=c;this.visible=!1;this.tooltip=this.i.fc();b=a.V();bO(this.tooltip);g.O(this.element,"ytp-show-copylink-title",g.XE(b)&&!g.hF(b));a.Rb(this.element,this,86570);this.Qa("click", + this.onClick);this.T(a,"videodatachange",this.Pa);this.T(a,"videoplayerreset",this.Pa);this.T(a,"appresize",this.Pa);this.Pa();g.we(this,g.YN(this.tooltip,this.element))}; + Ova=function(a){a.Sa("icon",SK());if(a.api.V().isMobile)wO(a.tooltip,a.element,"Link copied to clipboard");else{a.Sa("title-attr","Link copied to clipboard");xO(a.tooltip);wO(a.tooltip,a.element);var b=a.Qa("mouseleave",function(){a.jc(b);a.Pa();a.tooltip.cj()})}}; + Pva=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return ua(f,2),g.A(f,navigator.clipboard.writeText(b),4);if(2!=f.i)return f.return(!0);wa(f);var h=f.return,l=!1,m=g.Gg("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if(du){var p=window.getSelection();p.removeAllRanges();var q=document.createRange();q.selectNodeContents(m);p.addRange(q);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m); + return h.call(f,l)})})}; + yO=function(){g.V.call(this,{G:"div",L:"ytp-doubletap-ui",U:[{G:"div",Ha:["ytp-seek-info-container","ytp-seek-static-circle"],U:[{G:"div",L:"ytp-seek-arrows-container",U:[{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"},{G:"span",L:"ytp-seek-base-arrow"}]},{G:"div",L:"ytp-seek-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text",va:"{{chapterSeekText}}"},{G:"div",L:"ytp-seek-tooltip-label",va:"{{seekTime}}"}]}]}]});this.u=new g.M(this.show,10,this);this.i=new g.M(this.hide,700,this); + g.J(this,this.u);g.J(this,this.i);this.hide()}; + zO=function(a){g.V.call(this,{G:"div",L:"ytp-doubletap-ui-legacy",U:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",U:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",U:[{G:"div",L:"ytp-doubletap-arrows-container",U:[{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"},{G:"span",L:"ytp-doubletap-base-arrow"}]},{G:"div", + L:"ytp-doubletap-tooltip",U:[{G:"div",L:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.M(this.show,10,this);this.u=new g.M(this.hide,700,this);this.i=this.Fa("ytp-doubletap-static-circle");g.J(this,this.B);g.J(this,this.u);this.hide();this.C=this.Fa("ytp-doubletap-fast-forward-ve");this.D=this.Fa("ytp-doubletap-rewind-ve");this.I.Rb(this.C,this,28240);this.I.Rb(this.D,this,28239);this.I.ib(this.C,!0);this.I.ib(this.D, + !0)}; + Qva=function(a,b){b=g.rI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.Sa("seekTime",b)}; + AO=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; + BO=function(a,b){var c=0;a=g.r(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1}; + Rva=function(a,b){b=BO(a,b)+1;return bd;e={Gm:e.Gm},f++){e.Gm=c[f];a:switch(e.Gm.img||e.Gm.iconId){case "facebook":var h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z", + fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z", + fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.V({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Gm.url,target:"_blank",title:e.Gm.sname||e.Gm.serviceName},U:[h]}),h.Qa("click",function(m){return function(n){if(g.ML(n)){var p=m.Gm.url;var q=void 0===q?{}:q;q.target=q.target||"YouTube";q.width=q.width||"600";q.height=q.height||"600";q||(q={});var t=window;var u=p instanceof g.tf?p:g.yf("undefined"!=typeof p.href?p.href:String(p));var x=void 0!==self.Faa,y="strict-origin-when-cross-origin"; + window.Request&&(y=(new Request("/")).referrerPolicy);y="unsafe-url"===y;if(x&&q.noreferrer){if(y)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");q.noreferrer=!1}p=q.target||p.target;x=[];for(var z in q)switch(z){case "width":case "height":case "top":case "left":x.push(z+"="+q[z]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(z+"="+(q[z]?1:0))}z=x.join(",");Bc()&&t.navigator&&t.navigator.standalone&& + p&&"_self"!=p?(z=g.Gg("A"),g.Tf(z,u),z.setAttribute("target",p),q.noreferrer&&z.setAttribute("rel","noreferrer"),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,t,1),z.dispatchEvent(q),t={}):q.noreferrer?(t=Uf("",t,p,z),q=g.uf(u),t&&(g.BF&&-1!=q.indexOf(";")&&(q="'"+q.replace(/'/g,"%27")+"'"),t.opener=null,q=g.Qf(g.lf("b/12014412, meta tag with sanitized URL"),''),(u=t.document)&& + u.write&&(u.write(g.Mf(q)),u.close()))):(t=Uf(u,t,p,z))&&q.noopener&&(t.opener=null);if(q=t)q.opener||(q.opener=window),q.focus();g.Gu(n)}}}(e)),g.we(h,g.YN(a.tooltip,h.element)),a.i.push(h),d++)}var l=b.more||b.moreLink; + b=new g.V({G:"a",Ha:["ytp-share-panel-service-button","ytp-button"],U:[{G:"span",L:"ytp-share-panel-service-button-more",U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{G:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",W:{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"}}]}]}],W:{href:l,target:"_blank",title:"More"}});b.Qa("click",function(m){g.xN(l,a.api,m)&&a.api.Oa("SHARE_CLICKED")}); + g.we(b,g.YN(a.tooltip,b.element));a.i.push(b);a.Sa("buttons",a.i)}; + Zva=function(a){for(var b=g.r(a.i),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ue(c);a.i=[]}; + UO=function(a,b,c){c=void 0===c?!0:c;g.V.call(this,{G:"div",L:"ytp-suggested-action"});var d=this;this.I=a;this.kb=b;this.Ra=this.K=this.i=this.D=this.C=this.u=this.expanded=this.enabled=this.B=!1;this.eb=!0;this.Ja=new g.M(function(){d.badge.element.style.width=""},200,this); + this.ma=new g.M(function(){SO(d);TO(d)},200,this); + this.dismissButton=new g.V({G:"button",Ha:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.J(this,this.dismissButton);this.J=new g.V({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",U:[{G:"label",L:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.J(this,this.J);this.badge=new g.V({G:"button",Ha:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],U:[c?{G:"div",L:"ytp-suggested-action-badge-icon"}: + "",this.J]});g.J(this,this.badge);this.badge.Da(this.element);this.S=new g.xL(this.badge,250,!1,100);g.J(this,this.S);this.Aa=new g.xL(this.J,250,!1,100);g.J(this,this.Aa);this.La=new g.Fq(this.gX,null,this);g.J(this,this.La);this.ya=new g.Fq(this.DR,null,this);g.J(this,this.ya);g.J(this,this.Ja);g.J(this,this.ma);this.I.Rg(this.badge.element,this.badge,!0);this.I.Rg(this.dismissButton.element,this.dismissButton,!0);this.T(this.I,"onHideControls",function(){d.i=!1;TO(d);SO(d);d.Th()}); + this.T(this.I,"onShowControls",function(){d.i=!0;TO(d);SO(d);d.Th()}); + this.T(this.badge.element,"click",this.aF);this.T(this.dismissButton.element,"click",this.bF);this.T(this.I,"pageTransition",this.vP);this.T(this.I,"appresize",this.Th);this.T(this.I,"fullscreentoggled",this.nU);this.T(this.I,"cardstatechange",this.PT);this.T(this.I,"annotationvisibility",this.EX,this);this.T(this.I,"offlineslatestatechange",this.FX,this)}; + SO=function(a){g.O(a.badge.element,"ytp-suggested-action-badge-with-controls",a.i||!a.u)}; + TO=function(a,b){var c=a.K||a.i||!a.u;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.La.stop(),a.ya.stop(),a.Ja.stop(),a.La.start()):(g.OK(a.J,a.expanded),g.O(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),awa(a))}; + awa=function(a){a.C&&a.I.ib(a.badge.element,a.hx());a.D&&a.I.ib(a.dismissButton.element,a.hx()&&(a.K||a.i||!a.u))}; + bwa=function(a){var b=a.text||"";g.Ng(g.vg("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ua?a.Ua:"")}; + cwa=function(a,b){b?a.D&&a.I.Fb(a.dismissButton.element):a.C&&a.I.Fb(a.badge.element)}; + VO=function(a,b){UO.call(this,a,b);var c=this;this.Y=this.Ea=this.Ka=!1;this.T(this.I,g.nA("shopping_overlay_visible"),function(){c.De(!0)}); + this.T(this.I,g.oA("shopping_overlay_visible"),function(){c.De(!1)}); + this.T(this.I,g.nA("shopping_overlay_expanded"),function(){c.K=!0;TO(c)}); + this.T(this.I,g.oA("shopping_overlay_expanded"),function(){c.K=!1;TO(c)}); + this.T(this.I,"changeProductsInVideoVisibility",this.ZU);this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,"paidcontentoverlayvisibilitychange",this.RU)}; + WO=function(a){a.I.We("shopping_overlay_visible");a.I.We("shopping_overlay_expanded")}; + XO=function(a){g.JN.call(this,a,{G:"button",Ha:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{G:"div",L:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.D=!1;this.C=new g.M(function(){b.hide()},5E3); + this.i=this.B=NaN;g.J(this,this.C);this.ya=function(){b.show()}; + this.ma=function(){b.hide()}; + this.J=function(){var c=b.I.getCurrentTime();c>b.B/1E3&&c=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"}; + g.cP=function(a){g.V.call(this,{G:"div",L:"ytp-storyboard-framepreview",U:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Fa("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.uD(this);this.i=new g.xL(this,100);g.J(this,this.events);g.J(this,this.i);this.T(this.api,"presentingplayerstatechange",this.Mc)}; + dP=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){dP(a,a.api.Gh())}),a.events.T(a.api,"progresssync",a.od),a.events.T(a.api,"appresize",a.D)),a.B=NaN,eP(a),a.i.show(200)):(c&&g.my(a.events),a.i.hide(),a.i.stop())}; + eP=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.bb().getPlayerSize(),e=hG(b,d.width);c=Loa(b,e,c);c!==a.B&&(a.B=c,Joa(b,c,d.width),b=Hoa(b,c,d.width),ewa(a.C,b,d.width,d.height))}; + fP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-fullerscreen-edu-button","ytp-button"],U:[{G:"div",Ha:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{G:"div",Ha:["ytp-fullerscreen-edu-chevron"],U:[{G:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{G:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.i=new g.xL(this,250,void 0,100);this.C=this.u=!1;a.Rb(this.element,this,61214);this.B=b;g.J(this,this.i);this.T(a, + "fullscreentoggled",this.Pa);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);this.Pa()}; + g.gP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-label":"{{label}}"},va:"{{icon}}"});this.I=a;this.u=b;this.message=null;this.i=g.YN(this.u.fc(),this.element);this.B=new g.M(this.fR,2E3,this);g.J(this,this.B);this.T(a,"fullscreentoggled",this.Hi);this.T(a,"presentingplayerstatechange",this.Pa);this.Qa("click",this.onClick);g.gy()&&(b=this.I.bb(),this.T(b,Iia(),this.kF),this.T(b,jy(document),this.im));a.V().Ua||a.V().C||this.disable(); + this.Pa();this.Hi(a.isFullscreen())}; + hP=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[ata()]});this.I=a;this.visible=!1;this.Qa("click",this.onClick);this.T(a,"fullscreentoggled",this.Pa);this.Sa("title",AN(a,"Miniplayer","i"));g.we(this,g.YN(b.fc(),this.element));a.Rb(this.element,this,62946);this.Pa()}; + iP=function(a,b,c){g.V.call(this,{G:"button",Ha:["ytp-multicam-button","ytp-button"],W:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},U:[{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z", + fill:"#fff"}}]}]});var d=this;this.I=a;this.i=!1;this.u=new g.M(this.B,400,this);this.tooltip=b.fc();bO(this.tooltip);g.J(this,this.u);this.Qa("click",function(){KN(c,d.element,!1)}); + this.T(a,"presentingplayerstatechange",function(){d.Pa(!1)}); + this.T(a,"videodatachange",this.onVideoDataChange);this.Pa(!0);g.we(this,g.YN(this.tooltip,this.element))}; + jP=function(a){g.JN.call(this,a,{G:"div",L:"ytp-multicam-menu",W:{role:"dialog"},U:[{G:"div",L:"ytp-multicam-menu-header",U:[{G:"div",L:"ytp-multicam-menu-title",U:["Switch camera",{G:"button",Ha:["ytp-multicam-menu-close","ytp-button"],W:{"aria-label":"Close"},U:[g.VK()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.uD(this);this.items=this.Fa("ytp-multicam-menu-items");this.i=[];g.J(this,this.B);a=this.Fa("ytp-multicam-menu-close");this.T(a,"click",this.Eb);this.hide()}; + kP=function(){g.I.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Fq(this.i,null,this);g.J(this,this.delay)}; + fwa=function(a,b){if("path"===b.G)return b.W.d;if(b.U)for(var c=0;c=z&&C<=G&&F.push(S);0l)a.i[c].width=n;else{a.i[c].width=0;var p=a,q=c,t=p.i[q-1];void 0!==t&&0a.Ua&&(a.Ua=m/f),d=!0)}c++}}return d}; + AP=function(a){var b;if(a.C){var c=a.api.getProgressState();var d=(null===(b=a.api.getVideoData())||void 0===b?0:bH(b))&&c.airingStart&&c.airingEnd?Fwa(a,c.airingStart,c.airingEnd):Fwa(a,c.seekableStart,c.seekableEnd);var e=SL(d,c.loaded,0);c=SL(d,c.current,0);var f=a.u.u!==d.u||a.u.i!==d.i;a.u=d;BP(a,c,e);f&&CP(a);Gwa(a)}}; + Fwa=function(a,b,c){var d=a.api.V().N("enable_fully_expanded_clip_range_in_progress_bar"),e=a.api.V().N("enable_expanded_clip_range_in_progress_bar");return DP(a)&&d?new PL(Math.max(b,a.Sb.startTimeMs/1E3),Math.min(c,a.Sb.endTimeMs/1E3)):DP(a)&&e?(d=a.Sb.startTimeMs/1E3,a=a.Sb.endTimeMs/1E3,e=(a-d)/20,new PL(Math.max(b,d-e),Math.min(c,a+e))):new PL(b,c)}; + FP=function(a,b){var c=RL(a.u,b.B);if(1=a.i.length?!1:4>Math.abs(b-a.i[c].startTime/1E3)/a.u.i*(a.C-(a.B?3:2)*a.Aa)}; + Iwa=function(a,b,c,d){b=g.Xf(b,0,a.B?60:40);a.Y=b;var e=a.Ja;a.Ja=b/(a.B?60:40)*(Math.max(QL(a.u)/a.C,1)-1)+1;b=a.C*a.Ja;a.ma=g.Xf(d*b-c,0,b-a.C);e!==a.Ja&&CP(a)}; + CP=function(a){var b=zP(a),c=-b.u/b.i,d=(-b.u+b.width)/b.i,e=bba(a.uc),f=0;if(a.Y>.2*(a.B?60:40)&&1===a.i.length)for(var h=QL(a.u)/60*d,l=Math.ceil(QL(a.u)/60*c);l=f;c--)g.Kg(e[c]);a.element.style.height=a.Y+(a.B?8:5)+"px";a.ea("height-change",a.Y);a.qd.style.height=a.Y+(a.B?20:13)+"px";e=g.r(Object.keys(a.Ea));for(f=e.next();!f.done;f=e.next())Jwa(a,f.value);GP(a);BP(a,a.S,a.Ra)}; + zP=function(a){var b=a.kb.x,c=a.C*a.Ja;b=g.Xf(b,0,a.C);a.Fc.update(b,a.C,-a.ma,-(c-a.ma-a.C));return a.Fc}; + BP=function(a,b,c){var d;a.S=b;a.Ra=c;var e=zP(a),f=a.u.i,h=RL(a.u,a.S),l=g.rI("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.LL(h,!0),DURATION:g.LL(f,!0)}),m=BO(a.i,1E3*h);m=a.i[m].title;a.update({ariamin:Math.floor(a.u.u),ariamax:Math.floor(f),arianow:Math.floor(h),arianowtext:m?m+" "+l:l});f=a.clipStart;h=a.clipEnd;a.Sb&&2!==a.api.getPresentingPlayerType()&&(f=a.Sb.startTimeMs/1E3,h=a.Sb.endTimeMs/1E3);f=SL(a.u,f,0);m=SL(a.u,h,1);l=a.api.getVideoData();h=g.Xf(b,f,m);c=(null===l||void 0===l?0:g.ZG(l))? + 1:g.Xf(c,f,m);b=Dwa(a,b,e);g.Sl(a.Ge,"transform","translateX("+b+"px)");HP(a,e,f,h,"PLAY_PROGRESS");(null===l||void 0===l?0:bH(l))?(b=a.api.getProgressState().seekableEnd)&&HP(a,e,h,SL(a.u,b),"LIVE_BUFFER"):HP(a,e,f,c,"LOAD_PROGRESS");a.api.N("web_player_heat_map_played_bar")&&(null===(d=a.D[0])||void 0===d?void 0:d.B.setAttribute("width",(100*h).toFixed(2)+"%"))}; + HP=function(a,b,c,d,e){var f=a.i.length,h=b.i-a.Aa*(a.B?3:2),l=c*h;c=EP(a,l);var m=d*h;h=EP(a,m);"HOVER_PROGRESS"===e&&(h=EP(a,b.i*d,!0),m=b.i*d-Kwa(a,b.i*d)*(a.B?3:2));b=Math.max(l-Lwa(a,c),0);for(d=c;d=a.i.length)return a.C;for(var c=0,d=0;de.width)b-=e.width;else break;d++}return d===a.i.length?d-1:d}; + Dwa=function(a,b,c){for(var d=b*a.u.i*1E3,e=-1,f=g.r(a.i),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0e?0:e)+c.u}; + Kwa=function(a,b){for(var c=a.i.length,d=0,e=g.r(a.i),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.B?3:2,d++;else break;return d===c?c-1:d}; + g.JP=function(a,b,c,d){var e=a.C!==c;a.cd=b;a.C=c;a.B=d;CP(a);1===a.i.length&&(a.i[0].width=c||0);e&&g.xP(a)}; + GP=function(a){var b,c=!!a.Sb&&2!==a.api.getPresentingPlayerType(),d=a.clipStart,e=a.clipEnd,f=!0,h=!0;c&&a.Sb?(d=a.Sb.startTimeMs/1E3,e=a.Sb.endTimeMs/1E3):(f=d>a.u.u,h=0a.S);g.O(a.qd,"ytp-scrubber-button-hover",e===f&&1b||b===a.B)){a.B=b;b=160*a.scale;var c=160*a.scale,d=Hoa(a.i,a.B,b);ewa(a.bg,d,b,c,!0);a.ya.start()}}; + hxa=function(a){var b=a.u;3===a.type&&a.Aa.stop();a.api.removeEventListener("appresize",a.ma);a.S||b.setAttribute("title",a.J);a.J="";a.u=null}; + g.AQ=function(a,b){g.V.call(this,{G:"button",Ha:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.XE(a.V()))},U:[{G:"div",L:"ytp-watch-later-icon",va:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",va:"Watch later"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.i=!1;this.tooltip=b.fc();bO(this.tooltip);a.Rb(this.element,this,28665);this.Qa("click",this.onClick,this);this.T(a,"videoplayerreset",this.HP); + this.T(a,"appresize",this.Ox);this.T(a,"videodatachange",this.Ox);this.T(a,"presentingplayerstatechange",this.Ox);this.Ox();a=this.I.V();var c=g.Lz("yt-player-watch-later-pending");a.i&&c?(Fma(),ixa(this)):this.Pa(2);g.O(this.element,"ytp-show-watch-later-title",g.XE(a));g.we(this,g.YN(b.fc(),this.element))}; + jxa=function(a,b){g.Ita(function(){Fma({videoId:b});window.location.reload()},"wl_button",g.qF(a.I.V()))}; + ixa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Pa(3);var b=a.I.getVideoData();b=a.i?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.Ml(),d=a.i?function(){a.i=!1;a.isRequestPending=!1;a.Pa(2);a.I.V().u&&a.I.Oa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.i=!0; + a.isRequestPending=!1;a.Pa(1);a.I.V().isMobile&&wO(a.tooltip,a.element);a.I.V().u&&a.I.Oa("WATCH_LATER_VIDEO_ADDED")}; + eM(c,b).then(d,function(){a.isRequestPending=!1;kxa(a,"An error occurred. Please try again later.")})}}; + kxa=function(a,b){a.Pa(4,b);a.I.V().u&&a.I.Oa("WATCH_LATER_ERROR",b)}; + lxa=function(a,b){var c=a.I.V();if(b!==a.icon){switch(b){case 3:var d=yN();break;case 1:d=SK();break;case 2:d={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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:d=c.N("watch_later_iconchange_killswitch")?{G:"svg",W:{height:"100%",version:"1.1", + viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.Sa("icon",d);a.icon=b}}; + BQ=function(a){g.NN.call(this,a);var b=this;this.yz=(this.Op=g.XE(this.api.V()))&&(this.api.V().isMobile||gu()||eu());this.ZC=48;this.aD=69;this.nk=null;this.Rn=[];this.xc=new g.TN(this.api);this.Zu=this.api.N("web_player_deprecate_double_tap_ux")?new yO:new zO(this.api);this.Rh=new g.V({G:"div",L:"ytp-chrome-top"});this.wx=[];this.tooltip=new g.yQ(this.api,this);this.backButton=this.Ms=null;this.channelAvatar=new dO(this.api,this);this.title=new xQ(this.api,this);this.Hg=new g.LK({G:"div",L:"ytp-chrome-top-buttons"}); + this.ph=null;this.di=new XN(this.api,this,this.Rh.element);this.overflowButton=this.ag=null;this.dg="1"===this.api.V().controlsType?new rQ(this.api,this,this.rd):null;this.contextMenu=new g.uO(this.api,this,this.xc);this.NC=!1;this.Oy=new g.V({G:"div",W:{tabindex:"0"}});this.Ny=new g.V({G:"div",W:{tabindex:"0"}});this.Lw=null;this.iG=this.zy=!1;var c=a.bb(),d=a.V(),e=a.getVideoData();this.Op&&(g.N(a.getRootNode(),"ytp-embed"),g.N(a.getRootNode(),"ytp-embed-playlist"),this.yz&&(g.N(a.getRootNode(), + "ytp-embed-overlays-autohide"),g.N(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.ZC=60,this.aD=89);this.api.V().isMobile&&(g.N(a.getRootNode(),"ytp-mobile"),this.api.V().C&&g.N(a.getRootNode(),"ytp-embed-mobile-exp"));this.og=e&&e.og;g.J(this,this.xc);AF(d)||g.NM(a,this.xc.element,4);g.J(this,this.Zu);g.NM(a,this.Zu.element,4);e=new g.V({G:"div",L:"ytp-gradient-top"});g.J(this,e);g.NM(a,e.element,1);this.FG=new g.xL(e,250,!0,100);g.J(this,this.FG);g.J(this,this.Rh);g.NM(a,this.Rh.element, + 1);this.EG=new g.xL(this.Rh,250,!0,100);g.J(this,this.EG);g.J(this,this.tooltip);g.NM(a,this.tooltip.element,4);var f=new KO(a);g.J(this,f);g.NM(a,f.element,5);f.subscribe("show",function(l){b.Xm(f,l)}); + this.wx.push(f);this.Ms=new LO(a,this,f);g.J(this,this.Ms);d.showBackButton&&(this.backButton=new SN(a),g.J(this,this.backButton),this.backButton.Da(this.Rh.element));this.Op||this.Ms.Da(this.Rh.element);this.channelAvatar.Da(this.Rh.element);g.J(this,this.channelAvatar);g.J(this,this.title);this.title.Da(this.Rh.element);g.J(this,this.Hg);this.Hg.Da(this.Rh.element);this.ph=new g.AQ(a,this);g.J(this,this.ph);this.ph.Da(this.Hg.element);var h=new g.RO(a,this);g.J(this,h);g.NM(a,h.element,5);h.subscribe("show", + function(l){b.Xm(h,l)}); + this.wx.push(h);this.shareButton=new g.QO(a,this,h);g.J(this,this.shareButton);this.shareButton.Da(this.Hg.element);this.Qg=new g.vO(a,this);g.J(this,this.Qg);this.Qg.Da(this.Hg.element);d.Yj&&(e=new XO(a),g.J(this,e),g.NM(a,e.element,4));this.Op&&this.Ms.Da(this.Hg.element);g.J(this,this.di);this.di.Da(this.Hg.element);e=new ZN(a,this,this.di);g.J(this,e);e.Da(this.Hg.element);this.ag=new HO(a,this);g.J(this,this.ag);g.NM(a,this.ag.element,5);this.ag.subscribe("show",function(){b.Xm(b.ag,b.ag.Wf())}); + this.wx.push(this.ag);this.overflowButton=new GO(a,this,this.ag);g.J(this,this.overflowButton);this.overflowButton.Da(this.Hg.element);this.dg&&g.J(this,this.dg);"3"===d.controlsType&&(e=new PO(a,this),g.J(this,e),g.NM(a,e.element,8));g.J(this,this.contextMenu);this.contextMenu.subscribe("show",this.BO,this);e=new TL(a,new RN(a));g.J(this,e);g.NM(a,e.element,4);this.Oy.Qa("focus",this.KR,this);g.J(this,this.Oy);this.Ny.Qa("focus",this.LR,this);g.J(this,this.Ny);(this.Zl=d.qd?null:new g.DO(a,c,this.contextMenu, + this.rd,this.xc,this.Zu,function(){return b.vk()}))&&g.J(this,this.Zl); + this.Op||(this.LN=new VO(this.api,this),g.J(this,this.LN),g.NM(a,this.LN.element,4));this.XN=new uQ(this.api,this);g.J(this,this.XN);g.NM(a,this.XN.element,4);this.Qn.push(this.xc.element);this.T(a,"fullscreentoggled",this.im);this.T(a,"offlineslatestatechange",function(){b.api.Xv()&&sN(b.rd,128,!1)}); + this.T(a,"cardstatechange",function(){b.Qi()}); + this.T(a,"resize",this.cU);this.T(a,"showpromotooltip",this.DU)}; + mxa=function(a){var b=a.api.V(),c=g.U(a.api.yb(),128);return b.i&&c&&!a.api.isFullscreen()}; + CQ=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Wl(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=CQ(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexb)return b;for(var c=b&127,d=1;128<=b;)b=aD(a.u,a.i),++a.i,d*=128,c+=(b&127)*d;return c}; + HQ=function(a,b){a.C=b;var c=a.B;for(a.B=-1;a.i+1<=a.u.totalLength;){0>c&&(c=GQ(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:GQ(a);break;case 1:a.i+=8;break;case 2:d=GQ(a);a.i+=d;break;case 5:a.i+=4}}return!1}; + IQ=function(a,b,c){c=void 0===c?0:c;return HQ(a,b)?GQ(a):c}; + JQ=function(a,b){var c=void 0===c?"":c;if(!HQ(a,b))return c;b=GQ(a);if(!b)return"";c=$C(a.u,a.i,b);a.i+=b;return g.D.TextDecoder?(new TextDecoder).decode(c):g.Xa(c)}; + KQ=function(a,b){var c=void 0===c?null:c;if(!HQ(a,b))return c;b=GQ(a);c=$C(a.u,a.i,b);a.i+=b;return c}; + pxa=function(){this.i=0;this.B=void 0;this.C=[];this.u=new Uint8Array(4096);this.view=new DataView(this.u.buffer);g.D.TextEncoder&&(this.B=new TextEncoder)}; + LQ=function(a,b){b=a.i+b;if(!(a.u.length>=b)){for(var c=2*a.u.length;cd;d++)a.view.setUint8(a.i,c&127|128),c>>=7,a.i+=1;b=Math.floor(b/268435456)}for(LQ(a,4);127>=7,a.i+=1;a.view.setUint8(a.i,b);a.i+=1}; + NQ=function(a,b,c){MQ(a,b<<3|0);MQ(a,c)}; + OQ=function(a,b,c){MQ(a,b<<3|2);b=c.length;MQ(a,b);LQ(a,b);a.u.set(c,a.i);a.i+=b}; + QQ=function(a,b,c){c=a.B?a.B.encode(c):new Uint8Array(PQ(g.Wa(c)).buffer);OQ(a,b,c)}; + qxa=function(a){MQ(a,18);a.C.push(a.i);a.i+=2}; + rxa=function(a){var b=a.C.pop()||0,c=a.i-b-2;a.view.setUint8(b,c&127|128);a.view.setUint8(b+1,c>>7)}; + RQ=function(a){var b=new FQ(new WC([Rc(decodeURIComponent(a))]));a=JQ(b,2);b=IQ(b,4);var c=sxa[b];if("undefined"===typeof c)throw a=new g.dw("Failed to recognize field number",{name:"EntityKeyHelperError",Naa:b}),g.Ly(a),a;return{FR:b,entityType:c,entityId:a}}; + SQ=function(a,b){var c=new pxa;QQ(c,2,a);a=txa[b];if("undefined"===typeof a)throw b=new g.dw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Ly(b),b;NQ(c,4,a);NQ(c,5,1);b=new Uint8Array(c.u.buffer,0,c.i);return encodeURIComponent(g.Mc(b))}; + TQ=function(a){a=a.key||a.id;if(!a)throw Error("Entity key is missing");return a}; + UQ=function(a,b,c,d){if(void 0===d){d=a[b]||{};var e=["symbol"===typeof c?c:c+""];c={};for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&0>e.indexOf(f)&&(c[f]=d[f]);if(null!=d&&"function"===typeof Object.getOwnPropertySymbols){var h=0;for(f=Object.getOwnPropertySymbols(d);he.indexOf(f[h])&&(c[f[h]]=d[f[h]])}f={};return Object.assign(Object.assign({},a),(f[b]=c,f))}f={};e={};return Object.assign(Object.assign({},a),(e[b]=Object.assign(Object.assign({},a[b]),(f[c]=d,f)),e))}; + $Q=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.i=16;if(!uxa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);VQ=new Uint8Array(256);WQ=[];XQ=[];YQ=[];ZQ=[];for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;VQ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;WQ.push(b<<24|e<<16|e<<8|h);XQ.push(h<<24|WQ[f]>>>8);YQ.push(e<<24|XQ[f]>>>8);ZQ.push(e<<24|YQ[f]>>>8)}uxa=!0}e=[];for(c=0;4>c;c++)e.push(a[4*c]<< + 24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(VQ[a>>16&255]^d)<<24|VQ[a>>8&255]<<16|VQ[a&255]<<8|VQ[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.key=e}; + vxa=function(a,b){for(var c=0;4>c;c++)a.counter[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.i=16}; + wxa=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;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(h=4;40>h;){var l=WQ[c>>>24]^XQ[d>>16&255]^YQ[e>>8&255]^ZQ[f&255]^b[h++];var m=WQ[d>>>24]^XQ[e>>16&255]^YQ[f>>8&255]^ZQ[c&255]^b[h++];var n=WQ[e>>>24]^XQ[f>>16&255]^YQ[c>>8&255]^ZQ[d&255]^b[h++];f=WQ[f>>>24]^XQ[c>>16&255]^YQ[d>>8&255]^ZQ[e&255]^b[h++];c=l;d=m;e=n}a=a.u;c=[c,d,e,f];for(d=0;16>d;)a[d++]=VQ[c[0]>>>24]^b[h]>>>24,a[d++]=VQ[c[1]>> + 16&255]^b[h]>>16&255,a[d++]=VQ[c[2]>>8&255]^b[h]>>8&255,a[d++]=VQ[c[3]&255]^b[h++]&255,c.push(c.shift())}; + yxa=function(){var a;if(!xxa&&!g.ax){var b=null===(a=window.crypto)||void 0===a?void 0:a.subtle;if((null===b||void 0===b?0:b.importKey)&&(null===b||void 0===b?0:b.sign)&&(null===b||void 0===b?0:b.encrypt))return b}}; + aR=function(a){this.B=a}; + bR=function(a){this.u=a}; + cR=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()}; + Axa=function(a,b,c){for(var d=[],e=0;16>e;e++)d.push(b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3]),c+=4;for(b=16;64>b;b++)c=d[b-7]+d[b-16],e=d[b-2],c+=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10,e=d[b-15],c+=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3,d.push(c);b=a.i[0];c=a.i[1];e=a.i[2];for(var f=a.i[3],h=a.i[4],l=a.i[5],m=a.i[6],n=a.i[7],p,q,t=0;64>t;t++)p=n+zxa[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),q=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b= + p+q;a.i[0]=b+a.i[0]|0;a.i[1]=c+a.i[1]|0;a.i[2]=e+a.i[2]|0;a.i[3]=f+a.i[3]|0;a.i[4]=h+a.i[4]|0;a.i[5]=l+a.i[5]|0;a.i[6]=m+a.i[6]|0;a.i[7]=n+a.i[7]|0}; + Cxa=function(a){var b=new Uint8Array(32),c=64-a.u;55f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.i[c]>>>24,b[4*c+1]=a.i[c]>>>16&255,b[4*c+2]=a.i[c]>>>8&255,b[4*c+3]=a.i[c]&255;Bxa(a);return b}; + Bxa=function(a){a.i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.C=0;a.u=0}; + dR=function(a,b){b=void 0===b?{}:b;g.dw.call(this,Dxa[a],Object.assign({name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,dR.prototype)}; + Exa=function(a){return new dR("WRONG_DATA_TYPE",{BR:a})}; + Fxa=function(a){return a instanceof Error?new dR("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_ENCODE_ERROR")}; + Gxa=function(a){return a instanceof Error?new dR("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new dR("UNKNOWN_DECODE_ERROR")}; + Hxa=function(a,b){a=a instanceof dR?a:b(a);g.Ly(a);throw a;}; + Ixa=function(){}; + Jxa=function(a,b,c){try{return a.u(b,c)}catch(d){Hxa(d,Gxa)}}; + eR=function(a){a=(new TextEncoder).encode(a).slice(0,16);var b=new Uint8Array(16);b.set(a);return b}; + fR=function(a){this.i=a}; + gR=function(){}; + Kxa=function(){this.i={};this.i[0]=new gR;if(!g.Cs("aes_pes_encoder_killswitch")){var a=this.i;try{var b=ew();var c=eR(b);var d=new fR(new bR(c),new aR(c))}catch(e){throw a=new dR("KEY_CREATION_FAILED"),g.Ly(a),a;}a[1]=d}}; + hR=function(a,b){b=void 0===b?0:b;a=a.i[b];if(!a)throw b=new dR("INVALID_ENCODER_VERSION",{BR:b}),g.Ly(b),b;return a}; + Mxa=function(a){var b=Lxa[a];if(b)return b;g.My(new g.dw("Entity model not found.",{entityType:a}))}; + Nxa=function(a){var b=new Kxa,c=a.objectStore("EntityStore"),d=a.objectStore("EntityAssociationStore");Kw(c,{},function(e){var f=e.getValue(),h=Jxa(hR(b,f.version),f.data,f.key),l=RQ(f.key).entityType;l=Mxa(l);if(!l)return e.continue();l=(new l(h)).pe();h=[];l=g.r(l);for(var m=l.next();!m.done;m=l.next())h.push(Fw(d,{parentEntityKey:f.key,childEntityKey:m.value}));return pw.all(h).then(function(){return e.continue()})})}; + Oxa=function(){if(iR)return iR();var a={};iR=zx("PersistentEntityStoreDb",{Gs:(a.EntityStore={Mm:1},a.EntityAssociationStore={Mm:2},a),bx:!1,upgrade:function(b,c,d){c(1)&&Jw(Bw(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Bw(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Jw(b,"byParentEntityKey","parentEntityKey"),Jw(b,"byChildEntityKey","childEntityKey"));c(3)&&!c(1)&&Nxa(d)}, + version:g.Cs("pes_migrate_association_data")?3:2});return iR()}; + Pxa=function(a){return Ww(Oxa(),a)}; + Qxa=function(a,b){this.i=a;this.B=b;this.u={}}; + Rxa=function(a,b){return Jxa(hR(a.B,b.version),b.data,b.key)}; + jR=function(a,b,c){return a.i.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("Incorrect entity type");return Rxa(a,d)}})}; + kR=function(a,b,c){return c?(c=c.map(function(d){return jR(a,d,b)}),pw.all(c)):Pw(a.i.objectStore("EntityStore").index("entityType"),IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return Rxa(a,e)})})}; + mR=function(a,b,c){var d=TQ(b),e=hR(a.B,1);a:{try{var f=e.B(b,d);break a}catch(l){Hxa(l,Fxa)}f=void 0}var h={key:d,entityType:c,data:f,version:1};return a.i.objectStore("EntityStore").get(d).then(function(l){if(l&&l.entityType!==c)throw Error("Incorrect entity type");}).then(function(){return pw.all([Fw(a.i.objectStore("EntityStore"),h), + Sxa(a,b,c)])}).then(function(){lR(a,d,c); + return d})}; + nR=function(a,b,c){b=b.map(function(d){return mR(a,d,c)}); + return pw.all(b)}; + oR=function(a,b,c){if(null===c||void 0===c?0:c.kJ){var d=new Set;return Txa(a,b,d).then(function(){for(var f=[],h=g.r(d),l=h.next();!l.done;l=h.next())f.push(oR(a,l.value));return pw.all(f).then(function(){})})}var e=RQ(b).entityType; + return pw.all([a.i.objectStore("EntityStore").delete(b),pR(a,b)]).then(function(){lR(a,b,e)})}; + Uxa=function(a,b){return Qw(a.i.objectStore("EntityStore").index("entityType"),{query:IDBKeyRange.only(b)},function(c){return pw.all([c.delete(),pR(a,c.fz())]).then(function(){lR(a,c.fz(),b);return c.continue()})})}; + lR=function(a,b,c){var d=a.u[c];d||(d=new Set,a.u[c]=d);d.add(b)}; + Vxa=function(a,b,c){var d=TQ(b);c=Mxa(c);if(!c)return pw.resolve([]);c=new c(b);a=a.i.objectStore("EntityAssociationStore");b=[];c=g.r(c.pe());for(var e=c.next();!e.done;e=c.next())b.push(Fw(a,{parentEntityKey:d,childEntityKey:e.value}));return pw.all(b).then(function(f){return f.map(function(h){return h[1]})})}; + pR=function(a,b){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))}; + Sxa=function(a,b,c){var d=TQ(b);return pR(a,d).then(function(){return Vxa(a,b,c)})}; + Txa=function(a,b,c){if(c.has(b))return pw.resolve(void 0);c.add(b);return Wxa(a,b).then(function(d){return a.i.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b)).then(function(){return d})}).then(function(d){var e=pw.resolve(void 0),f={}; + d=g.r(d);for(var h=d.next();!h.done;f={xB:f.xB},h=d.next())f.xB=h.value,e=e.then(function(l){return function(){return Txa(a,l.xB,c)}}(f)); + return e}).then(function(){})}; + Wxa=function(a,b){var c=a.i.objectStore("EntityAssociationStore");return Pw(c.index("byParentEntityKey"),IDBKeyRange.only(b)).then(function(d){var e=[];d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,e.push(Pw(c.index("byChildEntityKey"),f.childEntityKey));return pw.all(e)}).then(function(d){var e=[]; + d=g.r(d);for(var f=d.next();!f.done;f=d.next())f=f.value,1===f.length&&e.push(f[0].childEntityKey);return e})}; + qR=function(a,b){g.I.call(this);this.token=a;this.u=b;this.i=[];a=new g.D.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+ew());a.onmessage=this.B.bind(this);this.channel=a}; + rR=function(a,b,c){return g.H(a,function e(){var f=this,h,l,m,n,p;return g.B(e,function(q){if(1==q.i)return h=f,g.A(q,Pxa(f.token),2);if(3!=q.i)return l=q.u,g.A(q,Dw(l,["EntityStore","EntityAssociationStore"],b,function(t){m=new Qxa(t,h.u);return c(m)}),3); + n=q.u;m&&(p=m.u,0=e.length)return f.return();if(b){var h=e,l={type:"ENTITY_LOADED"};void 0!==h&&(l.payload=h);b.dispatch(l)}return g.A(f,cya(e),2)}e.length=0;g.sa(f)})})}; + cya=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){return 1==e.i?g.A(e,xR(),2):(d=e.u)?g.A(e,rR(d,"readwrite",function(f){for(var h=[],l=g.r(a),m=l.next();!m.done;m=l.next()){m=m.value;var n;if(n=m.entityKey){n=void 0;var p=null===(n=m.options)||void 0===n?void 0:n.persistenceOption;n="ENTITY_PERSISTENCE_OPTION_PERSIST"===p||"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"===p}n&&(n=bc(m.payload),"ENTITY_MUTATION_TYPE_REPLACE"===m.type&&h.push(mR(f,m.payload[n],n)),"ENTITY_MUTATION_TYPE_DELETE"=== + m.type&&h.push(oR(f,m.entityKey)))}return pw.all(h)}),0):e.return()})})}; + eya=function(a){return void 0!==a}; + fya=function(){this.locks=navigator.locks}; + gya=function(){try{var a=g.Ga("ytglobal.locks_");if(a)return a;var b;if(b=navigator){var c=navigator;b="locks"in c&&!!c.locks}if(b)return g.D.localStorage&&g.D.localStorage.getItem("noop"),a=new fya,g.Fa("ytglobal.locks_",a,void 0),a}catch(d){}}; + yR=function(a,b,c){g.My(new g.dw("Woffle: "+a,c?{cotn:c}:""));b instanceof Error&&g.My(b)}; + zR=function(){}; + AR=function(){}; + BR=function(a){if(a.includes(":"))throw Error("Invalid user cache name: "+a);return a+":"+ew("CacheStorage get")}; + hya=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){d=c;if(void 0!==CR)return e.return(CR);CR=new Promise(function(f){return g.H(d,function l(){var m;return g.B(l,function(n){switch(n.i){case 1:return ua(n,2),g.A(n,DR.open("test-only"),4);case 4:return g.A(n,DR.delete("test-only"),5);case 5:va(n,3);break;case 2:if(m=wa(n),m instanceof Error&&"SecurityError"===m.name)return f(!1),n.return();case 3:f("caches"in window),g.sa(n)}})})}); + return e.return(CR)})})}; + FR=function(){return g.H(this,function b(){return g.B(b,function(c){if(1==c.i)return g.A(c,hya(),2);if(!c.u)return c.return(void 0);ER||(ER=new AR);return c.return(ER)})})}; + iya=function(){return g.H(this,function b(){var c;return g.B(b,function(d){return 1==d.i?g.A(d,FR(),2):(c=d.u)?d.return(c.delete("yt-player-local-img")):d.return(!0)})})}; + jya=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.A(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.A(f,Promise.all(a.map(function(h){return e.delete(h)})),0)})})}; + kya=function(a){return g.H(this,function c(){var d,e;return g.B(c,function(f){if(1==f.i)return g.A(f,FR(),2);if(3!=f.i){d=f.u;if(!d)throw Error("Cache API not supported");return a.length?g.A(f,d.open("yt-player-local-img"),3):f.return()}e=f.u;return g.A(f,e.addAll(a),0)})})}; + GR=function(a,b){var c=b.Go,d,e;a.encryptedVideoId=b.videoId;a.cotn=c.cotn;a.offlineabilityFormatType=c.maximumDownloadQuality;a.isRefresh=null!==(d=c.isRefresh)&&void 0!==d?d:!1;a.softErrorCount=null!==(e=c.transferRetryCount)&&void 0!==e?e:0;g.Zv("offlineTransferStatusChanged",a)}; + lya=function(a){switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":return"OFFLINE_DATABASE_ERROR";case "TRANSFER_FAILURE_REASON_PLAYABILITY":return"NOT_PLAYABLE";case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":return"TOO_MANY_RETRIES";case "TRANSFER_FAILURE_REASON_INTERNAL":return"OFFLINE_DOWNLOAD_CONTROLLER_ERROR";case "TRANSFER_FAILURE_REASON_STREAM_MISSING":return"STREAM_VERIFICATION_FAILED";case "TRANSFER_FAILURE_REASON_SERVER":case "TRANSFER_FAILURE_REASON_SERVER_PROPERTY_MISSING":return"OFFLINE_REQUEST_FAILURE"; + case "TRANSFER_FAILURE_REASON_NETWORK":return"OFFLINE_NETWORK_ERROR";default:return"UNKNOWN_FAILURE_REASON"}}; + HR=function(a){var b,c,d;return 0<(null!==(d=null===(c=null===(b=a.actionMetadata)||void 0===b?void 0:b.retryScheduleIntervalsInSeconds)||void 0===c?void 0:c.length)&&void 0!==d?d:0)}; + IR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===a.actionType&&!!a.entityKey}; + JR=function(a){return"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"===a.actionType&&!!a.entityKey}; + LR=function(a,b,c){return g.H(this,function e(){var f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S,L,W,pa,ta,rb,ob;return g.B(e,function(Ib){switch(Ib.i){case 1:return f=SQ(a,"ytMainVideoEntity"),h=SQ(a,"ytMainChannelEntity"),l=SQ(a,"transfer"),g.A(Ib,rR(b,{mode:"readonly",Hc:!0},function(sc){return pw.all([jR(sc,f,"ytMainVideoEntity"),jR(sc,h,"ytMainChannelEntity"),jR(sc,l,"transfer"),kR(sc,"ytMainChannelEntity"),kR(sc,"offlineOrchestrationActionWrapperEntity")])}),2); + case 2:m=Ib.u;n=g.r(m);p=n.next().value;q=n.next().value;t=n.next().value;u=n.next().value;x=n.next().value;y=p;z=q;G=t;F=u;C=x;if(!y&&!z){Ib.fb(3);break}K=y?KR(y.thumbnail):[];if(!z){S=[];Ib.fb(4);break}return g.A(Ib,mya(z,F),5);case 5:S=Ib.u;case 4:return L=S,g.A(Ib,jya(K.concat(L)),3);case 3:W=[];g.Cs("orchestration_use_cascading_delete")||W.push(SQ(a,"ytMainDownloadedVideoEntity"),f,h,SQ(a,"playbackData"),l,SQ(a,"offlineVideoPolicy"),SQ(a,"offlineVideoStreams"));pa=g.r(C);for(ta=pa.next();!ta.done;ta= + pa.next())rb=ta.value,ob=RQ(rb.key).entityId,ob!==a||nya(c,rb.actionProto)||W.push(rb.key);return g.A(Ib,rR(b,{mode:"readwrite",Hc:!0},function(sc){var dd=W.map(function(We){return oR(sc,We)}); + g.Cs("orchestration_use_cascading_delete")&&dd.push(oR(sc,SQ(a,"ytMainDownloadedVideoEntity"),{kJ:!0}));return pw.all(dd)}),7); + case 7:oya(G),g.sa(Ib)}})})}; + qya=function(a,b){return g.H(this,function d(){var e,f,h,l;return g.B(d,function(m){if(1==m.i)return g.A(m,rR(a,{mode:"readwrite",Hc:!0},function(n){var p=kR(n,"transfer"),q=kR(n,"offlineOrchestrationActionWrapperEntity"),t=g.Cs("orchestration_use_cascading_delete");return pw.all([p,q]).then(function(u){u=g.r(u);var x=u.next().value,y=u.next().value;u=pya.map(function(C){return Uxa(n,C)}); + y=g.r(y);for(var z=y.next();!z.done;z=y.next()){z=z.value;var G="ytMainDownloadedVideoEntity"===RQ(z.actionProto.entityKey).entityType,F="OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD"===z.actionProto.actionType;nya(b,z.actionProto)||G&&(!G||F)||u.push(oR(n,z.key,{kJ:t}))}return pw.all(u).then(function(){return x})})}),2); + e=m.u;f=g.r(e);for(h=f.next();!h.done;h=f.next())l=h.value,oya(l);return g.A(m,iya(),0)})})}; + nya=function(a,b){return a.actionType===b.actionType&&a.entityKey===b.entityKey}; + oya=function(a){if(a&&"TRANSFER_STATE_COMPLETE"!==a.transferState&&"TRANSFER_STATE_FAILED"!==a.transferState){var b=RQ(a.key).entityId;GR({transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_BY_USER",statusType:"CANCELLED"},{videoId:b,Go:a})}}; + KR=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.r(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b}; + mya=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q;return g.B(d,function(t){e=KR(a.avatar);f=g.r(b);for(h=f.next();!h.done;h=f.next())if(l=h.value,l.id!==a.id)for(m=g.r(KR(l.avatar)),n=m.next();!n.done;n=m.next())p=n.value,q=e.indexOf(p),-1!==q&&e.splice(q,1);return t.return(e)})})}; + sya=function(a){return g.H(this,function c(){var d;return g.B(c,function(e){if(1==e.i)return g.A(e,rya(a),2);d=e.u;g.Zv("offlineStateSnapshot",d);g.sa(e)})})}; + rya=function(a){return g.H(this,function c(){var d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C;return g.B(c,function(K){if(1==K.i)return g.A(K,rR(a,{mode:"readonly",Hc:!0},function(S){return kR(S,"playbackData").then(function(L){var W=L.map(function(ta){return ta.transfer}).filter(function(ta){return!!ta}),pa=L.map(function(ta){return ta.offlineVideoPolicy}).filter(function(ta){return!!ta}); + W=kR(S,"transfer",W);pa=kR(S,"offlineVideoPolicy",pa);return pw.all([W,pa]).then(function(ta){var rb=g.r(ta);ta=rb.next().value;rb=rb.next().value;return[L,ta,rb]})})}),2); + d=K.u;e=g.r(d);f=e.next().value;h=e.next().value;l=e.next().value;m=f;n=h;p=l;q={};t={};u=g.r(n);for(x=u.next();!x.done;x=u.next())(y=x.value)&&(q[y.key]=y);z=g.r(p);for(G=z.next();!G.done;G=z.next())(F=G.value)&&(t[F.key]=F);C=m.map(function(S){var L=q[S.transfer],W=t[S.offlineVideoPolicy];S=RQ(W.key).entityId;if("OFFLINE_VIDEO_POLICY_ACTION_DISABLE"===W.action){var pa="OFFLINE_VIDEO_STATE_DISABLED";W.expirationTimestamp&&Number(W.expirationTimestamp)F.retryScheduleIndex&&$ya(d.i,[F]);C.fb(5);break;case 6:return g.A(C,cS(d),0)}})})}; + eza=function(a,b,c){var d;return g.H(a,function f(){var h=this,l,m,n,p,q;return g.B(f,function(t){if(1==t.i){l=h;if("OFFLINE_ORCHESTRATION_ACTION_RESULT_SUCCESS"===c.status){p=void 0;try{p=null===(d=c.u)||void 0===d?void 0:d.map(function(u){return l.createAction(u,b)})}catch(u){return aS(b,c),q={entityKey:b.action.entityKey, + failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNSUPPORTED_ENTITY_FAILED"},OR(h.D,q),yR("Orchestration subactions creation error",u),t.return()}aS(b,c,p);return g.A(t,rR(h.u,{mode:"readwrite",Hc:!0},function(u){var x=[];if(p){var y=p.map(function(z){return YR(z)}); + x.push(nR(u,y,"offlineOrchestrationActionWrapperEntity"))}y=YR(b);x.push(oR(u,y.key));return pw.all(x)}),9)}if("OFFLINE_ORCHESTRATION_ACTION_RESULT_FAILURE"!==c.status)return t.fb(0); + aS(b,c);if(c.i&&3>b.retryScheduleIndex+1)return g.A(t,fza(h,[b]),0);m=(null===c||void 0===c?0:c.failureReason)?c.failureReason:"OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN";n={entityKey:b.action.entityKey,failureReason:m};OR(h.D,n);yR("Orchestration result is not retryable, deleting action");return g.A(t,Zxa(h.u,YR(b).key),0)}$R(b,4);g.sa(t)})})}; + dS=function(a,b){return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t,u,x,y,z;return g.B(d,function(G){f=[];h=Infinity;l=4E3;m=g.r(b);for(n=m.next();!n.done;n=m.next())p=n.value,q=Number(p.enqueueTimeSec),t=gza(q),u=p.retryScheduleIndex,x=null!=u&&0c.retryScheduleIndex&&$ya(a.i,[c])})}; + jza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(1==h.i)return g.A(h,vR(e.u,"offlineOrchestrationActionWrapperEntity",b),2);f=h.u;return h.return(f.filter(eya))})})}; + lza=function(a,b){if(0===b.length)return Promise.resolve([]);b=b.map(function(c){return YR(c)}); + return Yxa(a.u,b)}; + mza=function(){var a=Math.floor(3*Math.random());return 1>a?{bucket:"SHORT",duration:Math.floor(Wf(5,30))}:2>a?{bucket:"MEDIUM",duration:Math.floor(Wf(80,500))}:{bucket:"LONG",duration:Math.floor(Wf(5E3,3E4))}}; + nza=function(a,b,c){var d=void 0===d?mza:d;var e=void 0===e?bha:e;this.u=a;this.C=c;this.J=d;this.D=e;this.i=0}; + oza=function(){for(var a=Math.floor(10*Math.random()),b=[],c=0;c(a.transferRetryCount||0);b&&(a.transferRetryCount=(a.transferRetryCount||0)+1);return b}; + Sza=function(a,b){b=void 0===b?"TRANSFER_FAILURE_REASON_UNKNOWN":b;return g.H(a,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i)return f="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN","TRANSFER_FAILURE_REASON_NETWORK"===b?f="OFFLINE_OPERATION_FAILURE_REASON_NETWORK_REQUEST_FAILED":"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"===b&&(f="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"),g.A(l,lS(e,"TRANSFER_STATE_FAILED","DOWNLOAD_STREAM_STATE_ERROR_STREAMS_MISSING",b),2);OR(e.Aa,{entityKey:e.i.key, + failureReason:f});h=RQ(e.i.key).entityId;var m={videoId:h,Go:e.i},n=b,p={transferStatusType:"TRANSFER_STATUS_TYPE_TERMINATED_WITH_FAILURE",statusType:"FAILED"};n&&(p.transferFailureReason=n,p.failureReason=lya(n));GR(p,m);g.sa(l)})})}; + lS=function(a,b,c,d){return g.H(a,function f(){var h=this,l,m;return g.B(f,function(n){if(1==n.i)return l=h,h.i.transferState=b,h.i.failureReason=d,ua(n,2),g.A(n,Tza(h,function(p){return c?kR(p,"offlineVideoStreams",l.i.offlineVideoStreams).then(function(q){for(var t=g.r(q),u=t.next();!u.done;u=t.next())if((u=u.value)&&u.streamsProgress){u=g.r(u.streamsProgress);for(var x=u.next();!x.done;x=u.next())x.value.streamState=c}return nR(p,q.filter(function(y){return!!y}),"offlineVideoStreams")}):pw.resolve(void 0)}), + 4); + if(2!=n.i)return va(n,0);m=wa(n);return m instanceof jw&&"QUOTA_EXCEEDED"===m.type?g.A(n,h.hq("TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE"),0):n.fb(0)})})}; + Tza=function(a,b){return g.H(a,function d(){var e=this,f;return g.B(d,function(h){if(!e.i)return h.return();f=e.i;return g.A(h,rR(e.u,{mode:"readwrite",Hc:!0},function(l){var m=[mR(l,f,"transfer")];b&&m.push(b(l));return pw.all(m)}),0)})})}; + iS=function(a){a.i=void 0;a.C=void 0;a.B.stop()}; + Lza=function(a,b){return g.H(a,function d(){var e,f,h,l=this,m;return g.B(d,function(n){if(1==n.i)return e=RQ(b.key),f=e.entityId,h=SQ(f,"playbackData"),g.A(n,uR(l.u,h,"playbackData"),2);m=n.u;if(null===m||void 0===m?0:m.playerResponseJson)return n.return(JSON.parse(m.playerResponseJson));throw Error("No PlayerResponse found");})})}; + Nza=function(a){return void 0!==mS[a.transferState]}; + Oza=function(a,b){var c=mS[a.transferState],d=mS[b.transferState];return c!==d?c-d:Number(a.enqueuedTimestampMs)-Number(b.enqueuedTimestampMs)}; + Xza=function(a,b){var c=this;this.X=a;this.api=b;this.J=new Qx;this.u=new uya(function(){return Uza(c)},function(){Vza(c)},this.api.Jp(),this.api.N.bind(this.api)); + this.K=new NR(this.api);this.B=new Lk;this.YB();this.api.N("wo_job_sampling_with_lock_api")&&g.Pu(Ru(),function(){Wza(c)})}; + Uza=function(a){return g.H(a,function c(){var d=this;return g.B(c,function(e){d.api.Oa("onOrchestrationBecameLeader");d.i&&d.C||Yza(d).then(d.B.resolve).catch(d.B.reject);var f=d.B.promise;return g.A(e,f,0)})})}; + Wza=function(a){g.H(a,function c(){var d,e=this;return g.B(c,function(f){if(1==f.i)return g.A(f,xR(),2);d=f.u;if(!d)return f.return();e.S=new nza(d,Ru(),e.YB.bind(e));return g.A(f,e.S.B(),0)})})}; + Yza=function(a){return g.H(a,function c(){var d,e=this,f,h;return g.B(c,function(l){if(1==l.i)return g.A(l,xR(),2);if(3!=l.i){d=l.u;if(!d)return yR("PES is undefined"),l.return();e.i=new gS(d,e.api,e.u,e.K);f={};h=(f.ytMainDownloadedVideoEntity=new VR(d,e.X),f.playbackData=new SR(d,e.X),f.transfer=new UR(d),f);e.api.N("wo_job_sampling_with_lock_api")&&(h.orchestrationWebSamplingEntity=new RR(d));return g.A(l,dza(d,h,e.u,e.K),3)}e.C=l.u;return g.A(l,Zza(e),0)})})}; + Zza=function(a){return g.H(a,function c(){var d=this,e,f;return g.B(c,function(h){switch(h.i){case 1:e=d;if(!d.i)return yR("transferManager is undefined"),h.return();if(!d.api.N("woffle_orch_init_killswitch")&&d.i.i){h.fb(2);break}return g.A(h,hS(d.i),2);case 2:return g.A(h,nS(d),4);case 4:d.D=vt(function(){nS(e)},9E5); + Ou(Ru(),function(){e.i&&Gza(e.i)}); + if(!d.api.N("web_player_offline_state_logging")){h.fb(5);break}return g.A(h,xR(),6);case 6:return f=h.u,g.A(h,sya(f),5);case 5:wya(d.u),g.sa(h)}})})}; + Vza=function(a){var b,c;g.H(a,function e(){var f=this;return g.B(e,function(h){if(1==h.i)return f.i||f.C?g.A(h,f.B.promise,2):h.return();void 0!==f.D&&(window.clearInterval(f.D),f.D=void 0);null===(b=f.i)||void 0===b?void 0:b.dispose();f.i=void 0;null===(c=f.C)||void 0===c?void 0:c.dispose();f.C=void 0;f.api.Oa("onOrchestrationLostLeader");f.B=new Lk;g.sa(h)})})}; + $za=function(a,b,c){return g.H(a,function e(){var f=this;return g.B(e,function(h){var l=c?{ytMainDownloadedVideoEntityActionMetadata:{maximumDownloadQuality:c}}:void 0;return h.return(f.Mw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",l))})})}; + aAa=function(a,b){return g.H(a,function d(){var e=this;return g.B(d,function(f){return f.return(e.Mw(b,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; + bAa=function(a){return g.H(a,function c(){var d,e,f;return g.B(c,function(h){if(1==h.i)return g.A(h,xR(),2);if(3!=h.i)return(d=h.u)?g.A(h,vR(d,"transfer"),3):h.return([]);e=h.u;f=e.map(function(l){return RQ(l.key).entityId}); + return h.return(f)})})}; + nS=function(a,b){b=void 0===b?43200:b;return g.H(a,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i)return e.J.Te()?g.A(u,xR(),2):u.return(cAa(e));if(3!=u.i){f=u.u;if(!f)return u.return([]);h=Date.now()/1E3;return g.A(u,vR(f,"offlineVideoPolicy"),3)}l=u.u;m=[];n=g.r(l);for(p=n.next();!p.done;p=n.next())q=p.value,Number(q.lastUpdatedTimestampSeconds)+b<=h&&(t=RQ(q.key).entityId,m.push(t));return m.length?u.return(aAa(e,m)):u.return([])})})}; + cAa=function(a){return g.H(a,function c(){var d,e,f,h,l,m;return g.B(c,function(n){switch(n.i){case 1:return g.A(n,xR(),2);case 2:d=n.u;if(!d)return n.return([]);e=Date.now()/1E3;return g.A(n,vR(d,"offlineVideoPolicy"),3);case 3:f=n.u,h=g.r(f),l=h.next();case 4:if(l.done){n.fb(6);break}m=l.value;if(!(m.expirationTimestamp&&Number(m.expirationTimestamp)a;a++){var b=g.Gg("VIDEO");b.load();oS.push(new g.rN(b))}}; + hAa=function(){this.u=200;this.i=12}; + iAa=function(a){var b=new hAa;b.u=g.rE(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.i=g.rE(a.experiments,"html5_gapless_max_played_ranges");return b}; + g.pS=function(a,b,c,d){d=void 0===d?!1:d;OJ.call(this);this.ra=a;this.start=b;this.end=c;this.i=d}; + jAa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.B;if(b.Ch()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.i&&((b=b.jd())&&b.isView()&&(b=b.ra),b&&b.Gp().length>a.i&&g.FG(e)))return"played-ranges";if(!e.B)return null;if(!e.B.i||!c.i)return"non-dash";if(e.B.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.FG(f)&&g.FG(e))return"content-protection";a=c.i[0].audio; + e=e.B.i[0].audio;return a.sampleRate===e.sampleRate||g.ej?(a.numChannels||2)!==(e.numChannels||2)?"channel-count":null:"sample-rate"}; + rS=function(){this.B=this.i=0;this.u=Array.from({length:qS.length}).fill(0)}; + kAa=function(){}; + lAa=function(a){this.name=a;this.startTimeMs=(0,g.Q)();this.i=!1}; + mAa=function(){this.profiles=new kAa}; + sS=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.profiles||(a.profiles[b]=new rS),a.profiles[b].Pk(c,d))}; + tS=function(){}; + uS=function(){var a=this;this.i=this.u=haa;this.promise=new fh(function(b,c){a.u=b;a.i=c})}; + vS=function(a,b,c,d){g.I.call(this);var e=this;this.policy=a;this.i=b;this.u=c;this.C=this.B=null;this.D=-1;this.J=!1;this.Vk=new uS;this.Ij=d-1E3*b.Uc();this.Vk.then(void 0,function(){}); + this.timeout=new g.M(function(){e.Le("timeout")},1E4); + g.J(this,this.timeout);this.K=isFinite(d);this.status={status:0,error:null};this.oa()}; + rAa=function(a){return g.H(a,function c(){var d=this,e,f,h,l,m,n,p,q,t,u;return g.B(c,function(x){if(1==x.i){e=d;if(d.isDisposed())return x.return(Promise.reject(Error(d.status.error||"disposed")));d.oa();d.timeout.start();f=g.wS.Bo("gtfta");return g.A(x,d.Vk,2)}g.wS.fn(f);h=d.i.jd();if(h.Gk())return d.Le("ended_in_finishTransition"),x.return(Promise.reject(Error(d.status.error||"")));if(!d.C||!QD(d.C))return d.Le("next_mse_closed"),x.return(Promise.reject(Error(d.status.error||"")));if(d.u.Ep()!== + d.C)return d.Le("next_mse_mismatch"),x.return(Promise.reject(Error(d.status.error||"")));l=nAa(d);m=l.VL;n=l.JJ;p=l.UL;d.i.Cg(!1,!0);q=oAa(h,m,p,!d.u.getVideoData().isAd());d.u.setMediaElement(q);d.K&&(d.u.seekTo(d.u.getCurrentTime()+.001,{Mp:!0,DG:3,Td:"gapless_pseudo"}),q.play()||Kt());t=h.Ib();t.cpn=d.i.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.u.Ba("gapless",g.JD(t));d.i.Ba("gaplessTo",d.u.getVideoData().clientPlaybackNonce);u=d.i.getPlayerType()===d.u.getPlayerType();pAa(d.i,n, + !1,u,d.u.getVideoData().clientPlaybackNonce);pAa(d.u,d.u.getCurrentTime(),!0,u,d.i.getVideoData().clientPlaybackNonce);g.ah(function(){!e.u.getVideoData().qb&&g.YJ(e.u.getPlayerState())&&qAa(e.u)}); + xS(d,6);d.dispose();return x.return(Promise.resolve())})})}; + uAa=function(a){if(a.u.getVideoData().B){yS(a.u,a.C);xS(a,3);sAa(a);var b=tAa(a),c=b.KN;b=b.dX;c.subscribe("updateend",a.gr,a);b.subscribe("updateend",a.gr,a);a.gr(c);a.gr(b)}}; + sAa=function(a){a.i.unsubscribe("internalvideodatachange",a.bp,a);a.u.unsubscribe("internalvideodatachange",a.bp,a);a.i.unsubscribe("mediasourceattached",a.bp,a);a.u.unsubscribe("statechange",a.Mc,a)}; + oAa=function(a,b,c,d){a=a.isView()?a.ra:a;return new g.pS(a,b,c,d)}; + xS=function(a,b){a.oa();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Vk.resolve(void 0))}; + nAa=function(a){var b=a.i.jd();b=b.isView()?b.start:0;var c=a.i.getVideoData().isLivePlayback?Infinity:zS(a.i,!0);c=Math.min(a.Ij/1E3,c)+b;var d=a.K?100:0;a=c-a.u.Ch()+d;return{rR:b,VL:a,JJ:c,UL:Infinity}}; + tAa=function(a){return{KN:a.B.i.xd,dX:a.B.u.xd}}; + AS=function(a){g.I.call(this);var b=this;this.app=a;this.D=this.i=this.u=null;this.K=!1;this.C=null;this.S=iAa(this.app.V());this.B=null;this.J=function(){g.ah(function(){vAa(b)})}}; + wAa=function(a,b,c,d){d=void 0===d?0:d;a.oa();a.ys()||BS(a);a.C=new uS;a.u=b;var e=c,f=a.app.Kc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*zS(f,!0);e>h&&(e=h-a.S.u,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.i=f,f=e,e=a.i,a.app.Ta.addEventListener(g.nA("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.D=new g.lA(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.D));f=d/=1E3;e=b.getVideoData().i;if(d&&e&&a.i){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/ + 1E3,zS(a.i,!0)),l=Math.max(0,f-a.i.getCurrentTime()),h=Math.min(d,zS(b)+l));f=wma(e,h)||d;f!==d&&a.u.Ba("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.u;d.getVideoData().zd=!0;d.getVideoData().Ja=!0;kS(d,!0);e="";a.i&&(e=g.CS(a.i.Xb.u),f=a.i.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ba("queued",e);0!==b&&d.seekTo(b+.01,{Mp:!0,DG:3,Td:"videoqueuer_queued"});a.B=new vS(a.S,a.app.Kc(),a.u,c);c=a.B;c.oa();Infinity!==c.status.status&&(xS(c,1),c.i.subscribe("internalvideodatachange", + c.bp,c),c.u.subscribe("internalvideodatachange",c.bp,c),c.i.subscribe("mediasourceattached",c.bp,c),c.u.subscribe("statechange",c.Mc,c),c.i.subscribe("newelementrequired",c.vM,c),c.bp());return a.C}; + vAa=function(a){g.H(a,function c(){var d=this,e,f,h,l;return g.B(c,function(m){switch(m.i){case 1:e=d;if(d.isDisposed())return m.return();d.oa();if(!d.C||!d.u)return d.oa(),m.return();d.K&&DS(d.app.Kc(),!0,!1);f=null;if(!d.B){m.fb(2);break}ua(m,3);return g.A(m,rAa(d.B),5);case 5:va(m,2);break;case 3:f=h=wa(m);case 2:if(!d.u)return d.oa(),m.return();d.app.Pu(d.u);g.wS.MF("vqsp",function(){e.app.Fj(e.u.getPlayerType())}); + g.wS.MF("vqpv",function(){e.app.playVideo()}); + f&&xAa(d.u,f.message);l=d.C;BS(d);return m.return(l.resolve(void 0))}})})}; + BS=function(a){if(a.i){var b=a.i;a.app.Ta.removeEventListener(g.nA("vqueued"),a.J);b.removeCueRange(a.D);a.i=null;a.D=null}a.B&&(a.B.isFinished()||(b=a.B,Infinity!==b.status.status&&b.Le("Canceled")),a.B=null);a.C=null;a.u=null;a.K=!1}; + yAa=function(){var a=tu();return!(!a||"visible"===a)}; + AAa=function(a){var b=zAa();b&&document.addEventListener(b,a,!1)}; + BAa=function(a){var b=zAa();b&&document.removeEventListener(b,a,!1)}; + zAa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[ru+"VisibilityState"])return"";a=ru+"visibilitychange"}return a}; + ES=function(){g.R.call(this);var a=this;this.fullscreen=0;this.u=this.pictureInPicture=this.i=this.B=this.inline=!1;this.C=function(){a.De()}; + AAa(this.C);this.D=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.ws(),this.rs())}; + CAa=function(a){this.end=this.start=a}; + g.IS=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.Ca=c;this.Aa=new Map;this.Ra=new Map;this.B=new Map;this.C=[];this.u=[];this.Ya=NaN;this.ya=this.Y=null;this.Ua=new g.M(function(){GS(d,d.Ya)}); + this.events=new g.uD(this);this.isLiveNow=!0;this.eb=g.rE(this.X.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.D=new g.M(function(){d.K=!0;d.Ca.Ba("sdai",{aftimeout:d.eb});HS(d);d.Mv(!1)},this.eb); + this.K=!1;this.ma=new Map;this.La=[];this.J=null;this.Zb=new Set;this.Z=[];this.kb=[];this.Db=[];this.vb=[];this.i=void 0;this.Za=0;this.Ja=!0;this.S=!1;this.Ea=[];this.zb=new Set;this.Mb=new Set;this.Hb=new Set;this.ac=g.rE(this.X.experiments,"html5_server_stitched_dai_decorated_url_retry_limit");this.Uu=0;this.Ka=new Set;this.qb=0;this.jb=!1;this.Ca.getPlayerType();DAa(this.Ca,this);g.J(this,this.Ua);g.J(this,this.events);g.J(this,this.D);this.events.T(this.api,g.nA("serverstitchedcuerange"),this.onCueRangeEnter); + this.events.T(this.api,g.oA("serverstitchedcuerange"),this.onCueRangeExit)}; + GAa=function(a,b,c,d,e,f,h){var l=EAa(a,e,e+d);a.K&&a.Ca.Ba("sdai","adaftto");var m=a.X.N("web_player_ssdai_reject_invalid_ads_killswitch"),n=a.Ca;f=void 0===f?e+d:f;e===f&&!d&&a.X.N("html5_allow_zero_duration_ads_on_timeline")&&a.Ca.Ba("sdai","attl0d");if(e>f&&(a.ge("Invalid_playback_enterTimeMs_"+e+"_is_greater_than_parentReturnTimeMs_"+f),m))return"";var p=1E3*n.getMinSeekableTime();if(en&&(a.ge("Invalid_playback_parentReturnTimeMs_"+f+"_is_greater_than_parentDurationMs_"+n),m))return"";n=null;p=g.r(a.u);for(var q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ic&&eq.Ic&&(a.ge("Overlapping_child_playbacks_not_allowed._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+ + f+"_overlaps_existing_ChildPlayback_"+JS(q))),m)||f===q.Ic&&(a.ge("Neighboring_child_playbacks_must_be_added_sequentially._New_playback_video_id_"+(b.video_id+"_enterTimeMs_"+e+"_parentReturnTimeMs_"+f+"_added_after_existing_ChildPlayback_"+JS(q))),m))return"";e===q.pd&&(n=q)}if(l&&n)for(m=g.r(a.Z.entries()),p=m.next();!p.done;p=m.next()){if(q=g.r(p.value),p=q.next().value,q=q.next().value,q.identifier===l.identifier){a.Z.splice(p,1);break}}else if(l&&a.X.N("web_player_ss_timeout_skip_ads"))return a.Ca.Ba("sdai", + "rejectAttl"),h&&!vn(a.vb,function(t){return t===h})&&(a.Ca.Ba("sdai","rejectAdBreakAttl"),a.vb.push(h)),""; + l="ss_childplayback_"+FAa++;m=b.raw_player_response;m||a.X.N("web_player_parse_ad_response_killswitch")||(p=b.player_response)&&(m=JSON.parse(p));b.cpn||(b.cpn=yy());p=b.cpn;b=new oG(a.X,b);b.Cc=l;c={Cc:l,playerType:c,durationMs:d,Ic:e,pd:f,playerResponse:m,cpn:p,videoData:b,errorCount:0};a.u=a.u.concat(c).sort(function(t,u){return t.Ic-u.Ic}); + a.Ca.Ba("sdai",{attlDone:f-e});h?c.hg=h:n?c.hg=n.hg:c.hg=c.cpn;a.D.isActive()&&(a.K=!1,a.D.stop(),HS(a),a.Mv(!0));a.oa();return l}; + HAa=function(a,b){return new g.lA(a,b,{namespace:"serverstitchedcuerange",priority:9})}; + LS=function(a,b,c){var d=a.S,e=a.Ca.getVideoData().clientPlaybackNonce,f={cpn:e,durationMs:0,Ic:0,playerType:1,pd:0,videoData:a.Ca.getVideoData(),errorCount:0},h=b.Mf-c.Mf;.5b+c)break;if(d.pd/1E3>b)return{Dl:d,fq:b}}return{Dl:void 0,fq:b}}; + NS=function(a,b){var c=IAa(a,b);if(c)return a.u.find(function(d){return d.cpn===a.B.get(c)})}; + IAa=function(a,b){a=g.r(a.B.keys());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; + GS=function(a,b){var c=a.ya||a.api.Kc().getPlayerState();OS(a,!0);var d=b;a.X.N("web_player_ssdai_seek_without_offset_killswitch")&&(d=MS(a,b).fq);a.Ca.seekTo(d);a=a.api.Kc();b=a.getPlayerState();g.YJ(c)&&!g.YJ(b)?a.playVideo():g.U(c,4)&&!g.U(b,4)&&a.pauseVideo()}; + OS=function(a,b){a.Ya=NaN;a.Ua.stop();a.Y&&b&&PS(a.Y);a.ya=null;a.Y=null}; + QS=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=[],h=g.r(a.u),l=h.next();!l.done;l=h.next())l=l.value,(l.Ice)&&f.push(l);a.u=f;d=b;e=c;f=g.r(a.B.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.Ca.removeCueRange(h),a.B.delete(h),a.Ca.Ba("sdai","rmAdCR"));d=MS(a,b/1E3);b=d.Dl;d=d.fq;b&&(d=1E3*d-b.Ic,e=b.Ic+d,a.oa(),b.durationMs=d,b.pd=e,JAa(a,b));(b=MS(a,c/1E3).Dl)&&a.ge("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+JS(b)+ + "._Child_playbacks_can_only_have_duration_updated_not_their_start.")}; + JAa=function(a,b){for(var c=null,d=g.r(a.B),e=d.next();!e.done;e=d.next()){var f=g.r(e.value);e=f.next().value;f=f.next().value;f===b.cpn&&(c=e)}if(c){a=g.r(a.C);for(d=a.next();!d.done;d=a.next())d=d.value,d.start===c.end?d.start=b.Ic+b.durationMs:d.end===c.start&&(d.end=b.Ic);c.start=b.Ic;c.end=b.Ic+b.durationMs}}; + JS=function(a){var b;return"playback_timelinePlaybackId_"+a.Cc+"_video_id_"+(null===(b=a.videoData)||void 0===b?void 0:b.videoId)+"_durationMs_"+a.durationMs+"_enterTimeMs_"+a.Ic+"_parentReturnTimeMs_"+a.pd}; + SS=function(a,b,c){c=a.ma.get(c);c||(b+=RS(a),c=MS(a,b,1).Dl);return c}; + KAa=function(a,b,c,d){var e,f;if(3===d)return"";if(!a.X.N("html5_ssdai_use_cached_daistate_killswitch")){if(1===d&&a.Aa.has(b))return a.Aa.get(b);if(2===d&&a.Ra.has(b))return a.Ra.get(b)}d=null===(f=null===(e=a.Ca.getVideoData().i.i[c])||void 0===e?void 0:e.index)||void 0===f?void 0:f.getStitchedVideoInfo(b);return d?d.i:(a.Ca.Ba("sdai",{gdu:"nodaist",seg:b,itag:c}),"")}; + TS=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;LAa(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.Ca.removeCueRange(e);if(a.Ea.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else LAa(a,b,c)}; + LAa=function(a,b,c){b=HAa(b,c);c=!0;g.Pb(a.C,b,function(h,l){return h.start-l.start}); + for(var d=0;d=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.Ca.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}c&&a.Ca.addCueRange(b)}; + US=function(a,b,c){if(void 0===c||!c){c=g.r(a.La);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.La.push(new CAa(b))}}; + g.MAa=function(a,b){a=g.r(a.La);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; + RS=function(a){var b=0;a.X.N("web_player_ss_media_time_offset")&&(b=0===a.Ca.getStreamTimeOffset()?a.Ca.Uc():a.Ca.getStreamTimeOffset());return b}; + NAa=function(a,b){var c=[];a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.hg===b&&d.cpn&&c.push(d.cpn);return c}; + OAa=function(a,b,c){var d=0;a=g.r(a.u);for(var e=a.next();!e.done;e=a.next())if(e=e.value,e.hg===c){if(e.cpn===b)return d;d++}return-1}; + PAa=function(a,b){var c,d=[];a=g.r(a.u);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=null===(c=e.videoData)||void 0===c?void 0:c.videoId;e.hg===b&&f&&d.push(f)}return d}; + QAa=function(a,b){var c=0;a=g.r(a.u);for(var d=a.next();!d.done;d=a.next())d=d.value,d.hg===b&&0!==d.durationMs&&d.pd!==d.Ic&&c++;return c}; + RAa=function(a,b,c){for(var d=!1,e=g.r(a.u),f=e.next();!f.done;f=e.next())f=f.value,f.hg===c&&0!==f.durationMs&&f.pd!==f.Ic&&(f=f.cpn,b===f&&(d=!0),d&&!a.Mb.has(f)&&(a.Ca.Ba("sdai","decoratedAd."+f),a.Mb.add(f)))}; + HS=function(a){a.X.N("html5_high_res_logging")&&a.Ca.Ba("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.qb)+"_isTimeout_"+a.K})}; + EAa=function(a,b,c){if(a.Z.length)for(var d={},e=g.r(a.Z),f=e.next();!f.done;d={Jo:d.Jo},f=e.next()){d.Jo=f.value;f=1E3*d.Jo.startSecs;var h=1E3*d.Jo.durationSecs+f;if(b>f&&bf&&cf)return a.ge("e.enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3)),"";var l=1E3*h.getMinSeekableTime();if(el)return h="e.returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+h.Uc(),a.ge(h),"";l=null; + for(var m=g.r(a.i),n=m.next();!n.done;n=m.next()){n=n.value;if(e>=n.Ic&&en.Ic)return a.ge("e.overlappingReturn"),a.oa(),"";if(f===n.Ic)return a.ge("e.outOfOrder"),a.oa(),"";e===n.pd&&(l=n)}m="cs_childplayback_"+TAa++;n={Cd:XS(d,!0),Ij:Infinity,target:null};var p={Cc:m,playerVars:b,playerType:c,durationMs:d,Ic:e,pd:f,Zm:n};a.i=a.i.concat(p).sort(function(u,x){return u.Ic-x.Ic}); + l?UAa(a,l,{Cd:XS(l.durationMs,!0),Ij:a.X.N("timeline_manager_transition_killswitch")?Infinity:l.Zm.Ij,target:p}):(b={Cd:XS(e,!1),Ij:e,target:p},a.J.set(b.Cd,b),a.oa(),h.addCueRange(b.Cd));b=a.X.N("html5_gapless_preloading");if(a.u===a.api.Kc()&&(h=1E3*h.getCurrentTime(),h>=p.Ic&&hb)break;if(f>b)return{Dl:d,fq:b-e};c=f-d.pd/1E3}return{Dl:null,fq:b-c}}; + SAa=function(a,b){var c=a.D||a.api.Kc().getPlayerState();aT(a,!0);b=a.X.N("html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.u.hj();var d=$S(a,b);b=d.Dl;d=d.fq;var e=b&&!YS(a,b)||!b&&a.u!==a.api.Kc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||ZS(a);a.oa();b?(a.oa(),VAa(a,b,d,c)):(a.oa(),bT(a,d,c))}; + bT=function(a,b,c){var d=a.u,e=a.api.Kc();d!==e&&a.api.Fj(d.getPlayerType());d.seekTo(b,{Td:"application_timelinemanager"});$Aa(a,c)}; + VAa=function(a,b,c,d){var e=YS(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new oG(a.X,b.playerVars);a.X.N("html5_match_codecs_for_gapless")||a.api.Fj(b.playerType);f.Cc=b.Cc;a.api.Ln(f,b.playerType)}f=a.api.Kc();e||(b=b.Zm,a.oa(),f.addCueRange(b.Cd));f.seekTo(c,{Td:"application_timelinemanager"});$Aa(a,d)}; + $Aa=function(a,b){a=a.api.Kc();var c=a.getPlayerState();g.YJ(b)&&!g.YJ(c)?a.playVideo():g.U(b,4)&&!g.U(c,4)&&a.pauseVideo()}; + aT=function(a,b){a.Z=NaN;a.S.stop();a.C&&b&&PS(a.C);a.D=null;a.C=null}; + YS=function(a,b){a=a.api.Kc();return!!a&&a.getVideoData().Cc===b.Cc}; + aBa=function(a){var b=a.i.find(function(e){return YS(a,e)}); + if(b){var c=a.api.Kc();ZS(a);var d=new g.SJ(8);b=ZAa(a,b)/1E3;bT(a,b,d);c.Ba("forceParentTransition","childPlayback");a.u.Ba("forceParentTransition","parentPlayback")}}; + cT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.oa();for(var d=b,e=c,f=g.r(a.J),h=f.next();!h.done;h=f.next()){var l=g.r(h.value);h=l.next().value;l=l.next().value;l.Ij>=d&&l.target&&l.target.pd<=e&&(a.u.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.r(a.i);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ic>=d&&l.pd<=e){var m=a;m.K===l&&ZS(m);YS(m,l)&&m.api.po(l.playerType)}else f.push(l);a.i=f;d=$S(a,b/1E3);b=d.Dl;d=d.fq;b&&(d*=1E3,bBa(a,b,d,b.pd===b.Ic+b.durationMs?b.Ic+d:b.pd)); + (b=$S(a,c/1E3).Dl)&&a.ge("Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ic+" parentReturnTimeMs="+b.pd+"}.Child playbacks can only have duration updated not their start."))}; + bBa=function(a,b,c,d){a.oa();b.durationMs=c;b.pd=d;d={Cd:XS(c,!0),Ij:c,target:null};UAa(a,b,d);YS(a,b)&&1E3*a.api.Kc().getCurrentTime()>c&&(b=ZAa(a,b)/1E3,c=a.api.Kc().getPlayerState(),bT(a,b,c))}; + dBa=function(a){a&&"web"!==a&&cBa.includes(a)}; + fT=function(a,b){g.I.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.i=new g.M(function(){dT(c);eT(c)}); + g.J(this,this.i)}; + dT=function(a){var b=(0,g.Q)();a.data.forEach(function(c){c.expire=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.u=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.i=null:c.i=f.isVisible?f.intersectionRatio:0:c.i=f.intersectionRatio},e):null)&&this.u.observe(a)}; + gBa=function(a,b){Fia(a,"version",b)}; + pT=function(a){g.V.call(this,{G:"div",Ha:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},U:[{G:"div",L:g.oT.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Ru=this.Fa(g.oT.VIDEO_CONTAINER);this.Os=new g.Pl(0,0,0,0);this.Jb=null;this.xA=new g.Pl(0,0,0,0);this.WD=this.PE=this.OE=NaN;this.pz=this.uA=this.FF=this.pJ=!1;this.eD=NaN;this.uE=!1;this.dw=null;this.jF=function(){b.element.focus()}; + this.pB=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])}; + this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])}; + var e=a.V();e.transparentBackground&&this.Lm("ytp-transparent");"0"===e.controlsType&&this.Lm("ytp-hide-controls");g.N(this.element,"ytp-exp-bottom-control-flexbox");e.N("html5_player_bottom_linear_gradient")&&g.N(this.element,"ytp-linear-gradient-bottom-experiment");e.N("web_player_bigger_buttons_like_mobile")&&g.N(this.element,"ytp-exp-bigger-button-like-mobile");e.N("enable_new_paid_product_placement")&&!g.yF(e)&&g.N(this.element,"ytp-exp-ppp-update");gBa(this.element,hBa(a));this.MN=!1;tF(e)&& + "blazer"!==e.playerStyle&&window.matchMedia&&(this.pB="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.cg(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.cg(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.cg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 1000px)"), + size:new g.cg(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.cg(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.cg(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.cg(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.cg(640,360)}]);this.XG=e.useFastSizingOnWatchDefault;this.uv=new g.cg(NaN,NaN);iBa(this);this.T(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; + iBa=function(a){function b(){a.Jb&&qT(a);NT(a)!==a.uE&&a.resize()} + function c(h,l){a.gs(h,l)} + function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())} + function e(){a.xA=new g.Pl(0,0,0,0);a.Os=new g.Pl(0,0,0,0)} + var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.we(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})}; + jBa=function(a){var b=g.PM(a.app);if(b=b?b.getVideoData():null){if(g.MG(b)||g.NG(b)||g.PG(b))return 16/9;if(vG(b)&&b.B.i)return a=b.B.videoInfos[0].video,XT(a.width,a.height)}return(a=a.Jb)?XT(a.videoWidth,a.videoHeight):16/9}; + kBa=function(a,b,c,d){var e=c,f=XT(b.width,b.height);a.pJ?e=cf?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cMath.abs($T*b-a)||1>Math.abs($T/a-b)?$T:a/b}; + NT=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.PM(a.app);if(!b||b.Tl())return!1;var c=a.app.Ta.yb();a=!g.U(c,2)||!a.app.V().N("html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Ja;b=g.U(c,1024);return c&&a&&!b&&!c.isCued()}; + qT=function(a){var b="3"===a.app.V().controlsType&&!a.pz&&NT(a)&&!a.app.jw||!1;a.Jb.controls=b;a.Jb.tabIndex=b?0:-1;b?a.Jb.removeEventListener("focus",a.jF):a.app.V().N("disable_focus_redirect")||a.Jb.addEventListener("focus",a.jF)}; + lBa=function(a){var b=a.rg(),c=1,d=!1,e=kBa(a,b,a.getVideoAspectRatio()),f=a.app.V().N("enable_desktop_player_underlay"),h=cu(),l=f&&a.FF&&768b)return!0;var c=a.getLastSegmentNumber();return bb)return 1;c=a.getLastSegmentNumber();return b=h&&a.Ba.seekCount?(a.seekCount++,a.oa(),a.Xa.Ba("iterativeSeeking","inprogress;count."+a.seekCount+";target."+a.B+";actual."+h+";duration."+l+";isVideo."+c),a.seek(a.B)):(a.oa(),a.Xa.Ba("iterativeSeeking","incomplete;count."+a.seekCount+";target."+a.B+";actual."+h),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Xa.Ca.seekTo(h+.1,{Mp:!0,Td:"chunkSelectorSynchronizeMedia", + ep:!0})))}})}; + xBa=function(a,b,c){if(!a.i)return-1;c=(c?a.videoTrack:a.audioTrack).i.index;var d=c.getSegmentNumberForTime(a.B);return(RC(c,a.u.xe)||b.Ma===a.u.xe)&&dc||c===a.B)&&!isNaN(a.C)?a.C:b}; + EBa=function(a,b,c,d){DBa(a.D,d,c,b);DBa(a.Y,d,c,b);dE(a.K,d,!0);dE(a.K,d,!1);a.Ba("sdai","rollbk2_seg"+d+"_rbt"+c.toFixed(3)+"_lt"+b.toFixed(3))}; + FBa=function(a,b){if(a.u){var c=a.u.oe.durationSecs-(b.startTime+a.J-a.u.oe.startSecs);0>=c||(c=new dA(a.u.oe.startSecs-(a.policy.Jh&&!isNaN(a.J)?a.J:0),c,a.u.oe.context,a.u.oe.identifier,"stop",a.u.oe.i+1E3*b.duration),a.Ba("cuepointdiscontinuity","segNum."+b.Ma),oU(a,c,b.Ma))}}; + GBa=function(a,b,c,d){(void 0===d?0:d)?(a.i=1,a.Ba("sdai","rststate_skth")):0b)return!0;a.ma.clear()}return!1}; + OBa=function(a,b){return new pU(a.K,a.i,b||a.B.reason)}; + xU=function(a){return a.B.isLocked()}; + KBa=function(a){a.Ja?a.Ja=!1:a.Z=(0,g.Q)();a.S=!1;return new pU(a.K,a.i,a.B.reason)}; + PBa=function(a,b){var c={};b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.i,f=c[e],h=f&&qD(f)&&f.video.i>a.policy.S,l=e<=a.policy.S?qD(d):oD(d);if(!f||h||l)c[e]=d}return c}; + rU=function(a,b){var c;a.B=b;var d=a.J.videoInfos;if(!xU(a)){var e=(0,g.Q)();d=g.Ko(d,function(p){if(p.Nb>this.policy.Nb)return this.oa(),!1;var q=this.D.i[p.id],t=q.info.i;return this.policy.lr&&this.Ra.has(t)||this.ma.get(p.id)>e?!1:4=p.video.i}))}d.length||(d=a.J.videoInfos); + var f=g.Ko(d,b.C,b),h="m"===b.reason||"s"===b.reason;a.policy.Zi&&aU&&g.gj&&(!h||1080>b.i)&&(f=f.filter(function(p){return p.video&&(!p.u||p.u.powerEfficient)})); + if(0h.video.width?(a.oa(),g.zb(f,d),d--):uU(a,b)*a.policy.B>uU(a,h)&&(a.oa(),g.zb(f,d-1),d--);d=f[f.length-1];a.Ya=!!a.i&&!!a.i.info&&a.i.info.i!==d.i;a.oa();a.C=f;Vua(a.policy,d)}; + HBa=function(a,b){b?a.u=a.D.i[b]:(b=(b=g.tb(a.J.i,function(c){return!!c.Ac&&c.Ac.isDefault}))||a.J.i[0],a.u=a.D.i[b.id]); + sU(a)}; + QBa=function(a,b){for(var c=0;c+1d}; + sU=function(a){if(!a.u||!a.policy.u)if(!a.u||!a.u.info.Ac)if(a.u=a.D.i[a.J.i[0].id],1a.B.i:QBa(a,a.u);b&&(a.u=a.D.i[g.pb(a.J.i).id])}}; + tU=function(a){a.policy.Kg&&(a.Ka=a.Ka||new g.M(function(){a.policy.Kg&&a.i&&!wU(a)&&1===Math.floor(10*Math.random())?(vU(a,a.i),a.S=!0):a.Ka.start()},6E4),g.Jq(a.Ka)); + if(!a.nextVideo||!a.policy.u)if(xU(a))a.nextVideo=360>=a.B.i?a.D.i[a.C[0].id]:a.D.i[g.pb(a.C).id],a.oa();else{for(var b=Math.min(a.videoIndex,a.C.length-1),c=hU(a.ya),d=uU(a,a.u.info),e=c/a.policy.C-d;0=c);b++);a.nextVideo=a.D.i[a.C[b].id];a.videoIndex!==b&&a.oa();a.videoIndex=b}}; + IBa=function(a){var b=a.policy.C,c=hU(a.ya)/b-uU(a,a.u.info);b=g.ub(a.C,function(d){return uU(this,d)b&&(b=0);a.videoIndex=b;a.nextVideo=a.D.i[a.C[b].id];a.oa()}; + JBa=function(a){if(a.Za.length){var b=a.Za,c=function(d,e){if("f"===d.info.i||b.includes(vC(d,a.D.isLive)))return d;for(var f=0;fa.policy.ac&&(c*=1.5);return c}; + RBa=function(a,b){a=kc(a.D.i,function(c){return c.info.lc()===b}); + if(!a)throw Error("Itag "+b+" from server not known.");return a}; + SBa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(gma(a.D)){for(var c=Math.max(0,a.videoIndex-2);c=e.length)return;if(0>d)throw Error("Missing data");a.B=a.C;a.u=0}for(f={};d=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0=a.i.totalLength)throw Error();return aD(a.i,a.offset++)}; + bCa=function(a,b){b=void 0===b?!1:b;var c=HU(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=HU(a);-1===b&&255!==d&&(b=0);-1e&&d>c;e++)c=256*c+HU(a),d*=128;return b?c:c-d}; + IU=function(a,b,c){var d=this;this.Xa=a;this.policy=b;this.D=c;this.u=[];this.i=null;this.ma=-1;this.S=0;this.Aa=NaN;this.Z=0;this.B=NaN;this.Ea=0;this.La=-1;this.Ja=this.J=this.K=this.ya=null;this.Ra=this.Ka=NaN;this.C=this.Y=this.Ua=null;this.Ya=!1;this.timestampOffset=0;if(this.policy.u){var e=this.D,f=this.policy.u;this.C=new zU(this.policy,e,function(h,l,m){h=new FU(d.policy.u,2,{Kw:new aCa(f,h,e.info,l,m)});a.Ca.Hs(h)}); + this.C.Z.promise.then(function(h){d.C=null;1===h&&(h=new FU(d.policy.u,h),a.Ca.Hs(h))},function(h){h=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); + d.oa();d.Xa.Ba("dldbwerr",h);cCa(d);h=new FU(d.policy.u,4,{rz:!0});a.Ca.Hs(h)})}}; + dCa=function(a){return a.u.length?a.u[0]:null}; + JU=function(a){return a.u.length?a.u[a.u.length-1]:null}; + iCa=function(a,b,c){if(a.J){var d=a.J.Cb+a.J.u;if(0=a.ma&&0===a.S){var f=a.i.i,h=-1;e=-1;if(c){for(var l=0;l+8e&&(h=-1)}else{f=new GU(f);for(m=l=!1;;){n=f.getOffset();var p=f;try{var q=bCa(p,!0),t=bCa(p,!1);var u=q;var x=t}catch(z){x=u=-1}p=u;var y=x;if(!(0h&&(h=n),m))break;163===p&&(h=Math.max(0,h),e=f.getOffset()+y);if(160===p){0>h&&(e=h=f.getOffset()+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.ma=h;a.S=e-h}if(a.ma>d)break; + a.ma?(d=gCa(a,a.ma),d.B&&!d.info.i.Pg()&&hCa(a,d),fCa(a,b,d),MU(a,d),a.ma=0):a.S&&(d=gCa(a,0>a.S?Infinity:a.S),a.S-=d.i.totalLength,MU(a,d))}}a.i&&a.i.info.Rd&&(MU(a,a.i),a.i=null)}; + LU=function(a,b){!b.info.i.Pg()&&0===b.info.Cb&&(g.dD(b.info.i.info)||b.info.i.info.ue())&&Pla(b);if(1===b.info.type)try{hCa(a,b),jCa(a,b)}catch(d){g.Ly(d);var c=FC(b.info);c.hms="1";a.Xa.handleError(!0,"fmt.unparseable",c||{})}b.info.i.bE(b);a.C&&VBa(a.C,b)}; + lU=function(a){a.u=[];KU(a);cCa(a)}; + cCa=function(a){var b;null===(b=a.C)||void 0===b?void 0:b.dispose();a.C=null}; + kCa=function(a){var b=a.u.reduce(function(c,d){return c+d.i.totalLength},0); + a.i&&(b+=a.i.i.totalLength);return b}; + NU=function(a){return g.ym(a.u,function(b){return b.info})}; + gCa=function(a,b){var c=a.i;b=Math.min(b,c.i.totalLength);if(b===c.i.totalLength)return a.i=null,c;c=Ila(c,b);a.i=c[1];return c[0]}; + hCa=function(a,b){var c=cD(b);if(!a.policy.Ro&&pD(b.info.i.info)&&"bt2020"===b.info.i.info.video.primaries){var d=new $B(c);bC(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.i,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.i.info;oD(d)&&!pD(d)&&(d=cD(b),gC(new $B(d)),fC([408125543,374648427,174,224],21936,d));b.info.i.info.isVideo()&&(d=b.info.i,d.info&&d.info.video&&4===d.info.video.projectionType&&!d.B&&(g.dD(d.info)?d.B=Pka(c):d.info.ue()&&(d.B=Vka(c))));b.info.i.info.ue()&& + b.info.isVideo()&&(c=cD(b),gC(new $B(c)),fC([408125543,374648427,174,224],30320,c)&&fC([408125543,374648427,174,224],21432,c));if(a.policy.xu&&b.info.i.info.ue()){c=cD(b);var e=new $B(c);if(bC(e,[408125543,374648427,174,29637])){d=eC(e,!0);e=e.start+e.i;for(var f=0;fm||(e&&b.skip(4),f&&b.skip(4),e=JB(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.i,e))}}if(b=a.ya&&!!a.ya.D.J)if(b=c.info.isVideo())b=Ola(c),h=a.ya,OU?(l=1/b,b=PU(a,b)>=PU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&lCa(c)&&(b=a.ya,OU?(l=Ola(c),h=1/l,l=PU(a,l),b=PU(b)+h-l):b=b.getDuration()- + a.getDuration(),b=1+b/c.info.duration,Oka(cD(c),b))}else{h=!1;a.K||(Pla(c),c.u&&(a.K=c.u,h=!0,nla(c.info,c.u),l=c.info.i.info,f=cD(c),g.dD(l)?YB(f,1701671783):l.ue()&&fC([408125543],307544935,f)));a:{if(f=l=eD(c,a.policy.Ka))f=c.info.i.info.ue()&&160===aD(c.i,0);if(f)a.Z+=l,a.B=a.policy.Mb?a.B+l:NaN;else{if(a.policy.Fq){var n=a.Xa.ep(Kla(c),1);e=n;if(0<=a.B&&6!==c.info.type){if(a.policy.Mb&&isNaN(a.Ka)){g.My(new g.dw("Missing duration while processing previous chunk",zC(c.info)));eCa(a);break a}f= + n-a.B;var p=f-a.Ea;d=c.info.Ma;var q=a.Ja?a.Ja.Ma:-1,t=a.Ra,u=a.Ka;m=a.policy.ye&&f>a.policy.ye;var x=a.policy.Nd&&p>a.policy.Nd;1E-4m&&d>a.La)&&p&&(d=Math.max(.95,Math.min(1.05,(l-(x-f))/l)),Oka(cD(c),d),d=eD(c,a.policy.Ka),n=l-d,l=d)));a.Ea=f+n}}else isNaN(a.B)?e=c.info.startTime:e=a.B;Lla(c,e)?(isNaN(a.Aa)&&(a.Aa=e),a.Z+=l,a.B=e+l):(l=FC(c.info),l.smst="1",a.Xa.handleError(!0,"fmt.unparseable",l||{}))}}a.Ja=c.info;a.Ka=Nla(c);0<=c.C&&(a.Ra=c.C);if(h&&a.K){h=mCa(a,!0);GC(c.info,h);a.i&&GC(a.i.info,h);b=g.r(b.info.i);for(l=b.next();!l.done;l=b.next())GC(l.value,h);(c.info.Rd||a.i&&a.i.info.Rd)&&6!==c.info.type||(a.Y=h,b= + a.Xa,b.i.isManifestless&&nCa(b,h,!!a.D.info.video),a.policy.wc||oCa(a))}}jCa(a,c);a.timestampOffset&&Mla(c,a.timestampOffset)}; + MU=function(a,b){if(b.info.Rd){a.Ua=b.info;if(a.K){var c=mCa(a,!1);a.Xa.pF(a.D,c);a.Y||a.policy.wc||oCa(a);a.Y=null}KU(a)}a.C&&VBa(a.C,b);if(c=JU(a))if(c=Jla(c,b,a.policy.Oi)){a.u.pop();a.u.push(c);return}a.u.push(b)}; + KU=function(a){a.i=null;a.ma=-1;a.S=0;a.K=null;a.Aa=NaN;a.Z=0;a.Y=null}; + eCa=function(a){a.B=NaN;a.Ea=0;a.La=-1;a.Ja=null;a.Ra=NaN;a.Ka=NaN}; + jCa=function(a,b){if(a.D.info.Bd){if(b.info.i.info.ue()){var c=new $B(cD(b));if(bC(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=eC(c,!0);c=16!==d?null:kC(c,d)}else c=null;d="webm"}else b.info.S=WBa(cD(b)),c=XBa(b.info.S),d="cenc";c&&c.length&&(c=new EU(c,d),c.ue=b.info.i.info.ue(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),a.policy.Mj&&b.u&&b.u.B&&(c.i=b.u.B),a.Xa.Is(c))}}; + oCa=function(a){var b=a.K,c=Kka(b);c&&(c.startSecs+=a.Aa,a.Xa.oF(a.D,c,b.i,b.Qv()))}; + mCa=function(a,b){var c,d=a.K;if(c=Kka(d))c.startSecs+=a.Aa;if(d.Qv()){var e=d.data["Stitched-Video-Id"]?d.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=d.data["Stitched-Video-Cpn"]?d.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[],h=[];if(d.data["Stitched-Video-Duration-Us"])for(var l=g.r(d.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(d.data["Stitched-Video-Start-Frame-Index"]){m=g.r(d.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(d.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.r(d.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 YBa(e,f,h,l,d.data["Serialized-State"]?d.data["Serialized-State"]:"")}return new AB(d.i,a.Aa,b?d.Li:a.Z,d.ingestionTime,"sq/"+d.i,void 0,void 0,b,e,c)}; + lCa=function(a){return a.info.i.Pg()&&a.info.Ma===a.info.i.index.getLastSegmentNumber()}; + PU=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.D.J&&b&&(b+=a.D.J.i);return b+a.getDuration()}; + pCa=function(a,b){0>b||(a.u.forEach(function(c){Mla(c,b)}),a.timestampOffset=b)}; + QU=function(a,b){this.info=a;this.callback=b;this.state=1;this.S=!1;this.C=0;this.D=!1;this.i=null}; + qCa=function(a){return g.zm(a.info.i,function(b){return 3===b.type})}; + RU=function(a,b){var c=a.state;a.state=b;a.onStateChange(c);a.callback&&a.callback(a,c)}; + SU=function(a,b){b&&a.state=b&&(e.u.pop(),e.B-=eD(l,e.policy.Ka),f=!0)}f&&(e.J=0c?mU(a,d):a.u=a.i.Im(b-1,!1).i[0]}; + fV=function(a,b){var c;for(c=0;c=a.Z:c}; + DCa=function(a){var b;return aV(a)||!(null===(b=JU(a.C))||void 0===b||!b.info.B)}; + $U=function(a){var b=[],c=XU(a);c&&b.push(c);b=g.Cb(b,NU(a.C));g.Qb(a.B,function(d){g.Qb(d.info.i,function(e){d.S&&(b=g.Ko(b,function(f){return!(f.i!==e.i?0:f.range&&e.range?f.range.start+f.Cb>=e.range.start+e.Cb&&f.range.start+f.Cb+f.u<=e.range.start+e.Cb+e.u:f.Ma===e.Ma&&f.Cb>=e.Cb&&(f.Cb+f.u<=e.Cb+e.u||e.Rd))})); + (CC(e)||4===e.type)&&b.push(e)})}); + a.u&&!kla(a.u,g.pb(b),a.u.i.Pg())&&b.push(a.u);return b}; + ACa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return 0>b?NaN:ACa(a,c?b:0)?a[b].startTime:NaN}; + gV=function(a){return!(!a.u||a.u.i===a.i)}; + hV=function(a){return gV(a)&&a.i.Se()&&a.u.i.info.Nbb&&a.De?(a.B+=d,.2d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=nV(a)?d+b:d+Math.max(b,c);a.J=d}; + pV=function(a,b){for(var c="";4095>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))}; + rV=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.D=c;this.Ea=d;this.status=0;this.response=void 0;this.Aa=!1;this.u=0;this.ya=NaN;this.ma=0;this.Z=this.J=this.Y=!1;this.errorMessage="";this.Ja=function(f){e.status=f.status;if(f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.S=f.headers,e.D.Ks(),SCa(e)); + else e.onDone()}; + this.Ka=function(f){var h=(0,g.Q)();if(!e.isDisposed())if(e.K&&(e.i.append(e.K),e.K=void 0),f.done)e.B=void 0,e.onDone();else{f=f.value;e.u+=f.length;TCa(e)?e.i.append(f):e.K=f;f=(0,g.Q)();if(!e.policy.i||10b.indexOf("googlevideo.com")||(Dka(a.u.jg)&&(e=wB(yB(a.u.jg))),a.Bi.i={primary:b,secondary:e},Hma(b,e),YCa=(0,g.Q)());e=a.timing;a.oa("Succeeded, rtpd="+(1E3*e.S+e.i-Date.now()).toFixed(0)); + return 4}; + uV=function(a){var b;a.oa("Request failed, itag="+a.u.get("itag")+(" seg="+a.info.i[0].Ma)+(" sliced="+(null===(b=a.i)||void 0===b?void 0:b.u))+(" error="+a.lastError));if("net.timeout"===a.lastError){var c=a.timing,d=(0,g.Q)();if(!c.Wl){lV(c,d,1024*c.Ea);var e=(d-c.i)/1E3;if(2!==c.un())if(nV(c)){c.B+=(d-c.C)/1E3;var f=c.Ng,h=c.u;h=Math.max(h,2048);f.i.Mg(1,c.B/h);KE(f)}else PCa(c)||c.Wl||(f=c.Ng,f.K.Mg(1,e),KE(f)),c.Aa=d;f=c.Ng;h=c.S;var l=c.dj;f.J.Mg(e,c.u/e);f.C=FE();l||f.u.Mg(1,e-h);ena(c.Ng, + (d-c.C)/1E3,0)}}"net.nocontent"!==a.lastError&&((c="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)?(d=tV(a),d.timedOut+=1):(d=tV(a),d.i+=1),a.timing.u||(d=a.info.u,++d.u,c&&++d.C));RU(a,5)}; + $Ca=function(a,b){b&&(b=tV(a),b.u+=1);wV(a);a.lastError="net.timeout";uV(a)}; + wV=function(a){a.oa();a.xhr&&a.xhr.abort();a.timing.deactivate()}; + XCa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.xv();c=!c||c<=a.policy.Ye;return(!a.xhr.nt()||!b||-1!==b.indexOf("text/plain"))&&c}; + WCa=function(a){if(xB(a.u.jg))return new JCa(a.u,a.timing);var b=a.u.Xd();return a.policy.La&&(a.policy.Up&&!isNaN(a.info.Pe)&&a.info.Pe>a.policy.Yj||a.D?0:ZA())?aB()?new iV(b,a.policy.D,a.timing):new rV(b,a.policy.D,a.timing):new sV(b,a.timing)}; + aDa=function(a){if(!a.policy.D.fg||!isNaN(a.info.Pe)&&0a.info.i[0].Ma)return!1}return!0}; + xV=function(a,b,c,d,e){this.Xa=a;this.policy=b;this.schedule=c;this.S=d;this.Y=e;this.ma=NaN;this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.Z=NaN}; + bDa=function(a,b,c,d,e){return b.Za&&b.ya&&3===Aka(b)?new xV(a,b,c,d,e):null}; + cDa=function(a,b){if(a.policy.Jq){var c=b.info.Nb,d=IE(a.schedule);b=b.index.Fg;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.ma)/c,b-a.policy.uc));a.oa()}}; + fDa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.dh,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e=a.policy.uc&&!a.B;if(!f&&!c&&dDa(a,b))return NaN;c&&(a.B=!0,a.oa());a:{d=h;c=Date.now()/1E3-(a.S.qg()||0)-a.K.u-a.policy.ma;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){a.oa();yV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.kc;d1E3*a.policy.uu){a.Ba("ombttl","1");return}}if(a.ma&&TU(a.ma,vC(c,d))){d=vC(c,a.i.isLive);if(a.i.isLive&&a.policy.Au)e=c.Pl(Infinity);else{if(!c.indexRange||!c.initRange)return;e=c.indexRange.length+c.initRange.length;var f=iDa(a.ma,d);if(!f){a.Ba("ombooo","1");return}e=c.Fp(f-e)}e&&(f=function(h){h.isFailed()?(a.Ba("ombf","1"),fV(b,h),JC(h.info)&&AV(a,b,c,!0),a.uh()):BV(a,h)&&a.uh()},c.C=!0,IC(e)&&(b.K= + !1,YU(b,new UU(d,e,a.ma,f))))}else a.Ba("ombfmt","1")}; + kDa=function(a){var b=a.videoTrack.i.index;a.gh=new pBa({Hl:a.policy.Hl,fg:a.policy.D.fg,Fg:b.Fg,getLastSegmentNumber:function(){return b.getLastSegmentNumber()}, + Wr:function(){return b.Wr()}})}; + DV=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.u;b=d.nextVideo&&d.nextVideo.index.getSegmentNumberForTime(b)||0;d.Aa!==b&&(d.Ea={},d.Aa=b,rU(d,d.B));b=!xU(d)&&-1(0,g.Q)()-d.Z;var e=d.nextVideo&&3*uU(d,d.nextVideo.info)=a.policy.Tj&&!a.policy.Zg||!a.policy.ol&&0=a.policy.Zj)return!1;if(!b.u)return!0;d=b.u;if(!hla(d.i.u,a.policy))return!1;4===d.type&&d.i.Se()&&(b.u=g.pb(d.i.Vw(d)),d=b.u);if(!d.B&&!d.i.Hm(d))return!1;var e=a.i.bf||a.i.S;if(a.i.isManifestless&&e){e=b.i.index.getLastSegmentNumber();var f=c.i.index.getLastSegmentNumber();e=Math.min(e,f);if(0=e)return b.Z=e,c.Z=e,!1}if(d.i.info.audio&&4===d.type)return!1;if(hV(b)&&!a.policy.Ya)return!0;if(d.B|| + bV(b)&&bV(b)+bV(c)>a.policy.jb)return!1;e=!b.D&&!c.D;f=b===a.videoTrack&&a.Y;if(!(c=!!(c.u&&!c.u.B&&c.u.Da}return c?!1:(b=b.Wb)&&b.isLocked()?!1:!0}; + qDa=function(a,b,c){if(JV(a,b,c)){if(b.K){if(a.i.isLive){var d=a.i.xe&&a.i.S?b.i.Im(a.i.xe,!1):b.i.Pl(Infinity);d.Pe=a.Pe}else d=b.i.Im(0,!1);a.D?0===d.Pe&&(d.D=a.D.Z):d.D=a.kb}else if(d=b.u,d.i.Se()){var e=d.D-a.currentTime,f=!d.range||0===d.u&&0===d.Cb?0:d.range.length-(d.Cb+d.u),h=d.i;if(gV(b)&&b.i.Se()){var l=Math.min(15,.5*IV(a,b,!0));var m=hV(b)||e<=l||a.u.S;a.oa("ready to adapt: "+m+", upgrade pending: "+hV(b)+", health: "+e+", max health: "+l);l=m}else l=!1;l&&0===f&&(a.i.isManifestless?h= + b.i:(h=d.startTime+pDa,d.u&&(h+=d.duration),mU(b,h),d=b.u,h=d.i));h.Pg()?(f=a.u,c=gU(a.J,h.info.Nb,c.i.info.Nb,e,0h&&(c=d.i.Yq(d,c.range.length-e.u)))),d=c):(0>d.Ma&&(c=FC(d),c.pr=""+b.B.length,a.C.i&&(c.sk="1"),a.Ba("nosq",d.J+";"+g.JD(c))),d=h.St(d));if(a.Y)for(c=g.r(d.i),e=c.next();!e.done;e=c.next())e.value.type=6}else d.i.Pg()? + (c=gU(a.J,b.i.info.Nb,c.i.info.Nb,0),d=d.i.Yq(d,c)):d=d.i.St(d);if(a.K&&(c=a.B,e=d.i[0].Ma,e=0>e&&!isNaN(c.B)?c.B:e,h=CBa(a.B,d.i[0].C,e),c=a.K.Qr(h,e,d.i[0].i.info.id,b===a.audioTrack?1:2),0>e&&GBa(a.B,0,0,!0),c)){h="decurl_itag"+d.i[0].i.info.lc()+"_sg"+e+"_st"+h.toFixed(3)+".";if(a.policy.mq&&b.isRequestPending(e-1)){a.Ba("sdai","wt_daistate_on_sg"+(e-1));return}a.Ba("sdai",h);e=d;c&&(e.B=new g.uB(c))}a.policy.Si&&-1!==d.i[0].Ma&&d.i[0].Maf)a.policy.eb&&(f=Object.assign(kV(e.timing),{rst:""+e.state,strm:""+e.xhr.nt(),d:QCa(e.timing)}),a.Ba("rqs",g.JD(f))),e.Ea&&a.Ba("sbwe3","1",!0);if(!a.isDisposed()&&2<=e.state){f=a.timing;var n=e.info.i[0].i;m=!f.u&&n.info.video;n=!f.i&&n.info.audio;3===e.state?m?f.tick("vrr"): + n&&f.tick("arr"):4===e.state?m?(f.u=e.Xd(),Ru(),Uu(4)):n&&(f.i=e.Xd()):e.fu()&&m&&(Ru(),Uu(4));if(3===e.state)fV(l,e),JC(e.info)&&AV(a,l,h,!0),a.K&&(l=e.info.Qr())&&a.K.lj(e.info.i[0].Ma,h.info.id,l),a.uh();else if(e.isComplete()&&5===e.info.i[0].type)4===e.state&&(h=(e.info.i[0].i.info.video?a.videoTrack:a.audioTrack).B[0]||null)&&h instanceof vV&&h.C&&$Ca(h,!0),e.dispose();else{if(!e.isFailed()&&e.D&&2<=e.state&&3!==e.state)if(h=e.xhr.getResponseHeader("X-Response-Itag")){a.oa();h=RBa(a.u,h);l= + e.info.range.length-h.OD();h.C=!0;e.info.i[0].i.C=!1;f=h.Fp(l);e.info=f;if(e.i){l=e.i;f=f.i;l.i=f;m=f[0].range;n=$C(l.ke[0].i);$C(g.pb(l.ke).i);for(var p=0;ph.B&&(h.B=NaN,h.C=NaN),h.u&&h.u.Ma===l.i[0].Ma)if(m=h.u.oe.event,"start"===m||"continue"===m){if(1===h.i||5===h.i)h.policy.jl||!h.u.Qv?(h.B=l.i[0].Ma,h.C=l.i[0].C,h.Ba("sdai","joinad"+h.i+"_sg"+h.B+"_st"+h.C.toFixed(3)),h.i=2,f.YD(h.u.oe)):(h.Ba("sdai","ignore."+m+";sq."+l.i[0].Ma),h.i=4)}else"stop"!==m||1!==h.i&&5!==h.i||h.Ba("sdai","joinstop;st."+h.i+";sg."+h.B+";"),h.i=5;else 1===h.i&& + (h.i=5)}else if(a.policy.La&&e.Ns()&&!e.isComplete()&&!BV(a,e)&&!e.isFailed())break a;e.isFailed()&&a.Ov(e);a.uh();a.policy.zb&&e.isComplete()&&e.canRetry()&&sC(e.info.u,a.Ea)&&(h=qC(a.Ea,tC(e.info.u,!1)),h.B+a.policy.zb*ela(h,a.policy,!0)>(0,g.Q)()||(e=pla(e.info,!1))&&KV(a,e))}}}}},d)}; + rDa=function(a,b){b&&(a.oa(),a.Ca.cA(b));a.policy.Sj&&a.u.Ua&&(b=OBa(a.u,"a"),MV(a.Ca,b.reason,b.audio.info))}; + BV=function(a,b){try{var c=b.info.i[0].i.info.video?a.videoTrack:a.audioTrack;if(a.i.isManifestless&&c){c.K&&(b.isDisposed(),b.isComplete()||b.Ns(),c.K=!1);b.HD()&&a.Ka.Mg(1,b.HD());var d=b.PH(),e=b.kK(),f=a.i,h;for(h in f.i){var l=f.i[h].index;l.gk&&(d&&(l.Ut=Math.max(l.Ut,d)),e&&(l.i=Math.max(l.i||0,e)))}}if(b.info.dj()&&!IC(b.info))for(var m=g.r(b.ZB()),n=m.next();!n.done;n=m.next())LU(c.C,n.value);ZU(c);return!!c.cg()}catch(p){return p instanceof Error&&(g.My(p),b=b.du(),b.origin="hrhs",b.msg|| + (b.msg=""+p.message),a.handleError(!0,"fmt.unplayable",b)),!1}}; + lDa=function(a){var b=a.mediaSource.i,c=a.mediaSource.u,d=tDa(a);if(d){if(a.policy.Tq){if(!b.Bp()){var e=a.audioTrack.cg();e&&NV(a,b,e)}c.Bp()||(b=a.videoTrack.cg())&&NV(a,c,b)}a.ya||(a.ya=(0,g.Q)(),a.oa(),a.policy.Y&&a.Ba("apdps","r."+d))}else{if(a.ya){d=(0,g.Q)()-a.ya;e=cV(a.audioTrack,a.currentTime);var f=cV(a.videoTrack,a.currentTime);a.oa();a.policy.Y&&a.Ba("apdpe","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.ya=0}if(a.D){d=a.D;e=a.audioTrack;f=GD(a.mediaSource.u.lf()); + if(d.C)d=fDa(d,f);else{if(f=e.cg()){var h=f.u;h&&h.D&&h.u&&(e=e.B.length?e.B[0]:null)&&2<=e.state&&!e.isFailed()&&0===e.info.Pe&&(d.C=e,d.K=h,d.u=f.info,d.startTimeSecs=Date.now()/1E3,d.J=d.startTimeSecs,d.D=d.u.startTime,d.oa())}d=NaN}d&&a.Ca.seekTo(d,{Mp:!0,Td:"pollSubsegmentReadahead",ep:!0})}d=!1;uDa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.C||(e.C=Date.now(),e.tick("vda"),WA("vda",void 0,"video_to_ad"),e.B&&(Ru(),Uu(4))));if(a.mediaSource&&!a.mediaSource.rf()&&(uDa(a,a.audioTrack,b)&&(d=a.timing, + d.B||(d.B=Date.now(),d.tick("ada"),WA("ada",void 0,"video_to_ad"),d.C&&(Ru(),Uu(4))),d=!0),!a.isDisposed()&&a.mediaSource)){!a.policy.Zb&&aV(a.videoTrack)&&aV(a.audioTrack)&&QD(a.mediaSource)&&!a.mediaSource.bh()&&(e=XU(a.audioTrack).i,e===a.i.i[e.info.id]&&(a.oa(),e=a.mediaSource,QD(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Ke.webkitSourceEndOfStream(e.Ke.EOS_NO_ERROR)),e=a.schedule,Bma(JE(e)),e.D=FE()));e=a.policy.pu;f=a.policy.yu;d||!(0c*(10-e)/hU(b)}else b=!0;if(!b)return"abr";b=a.videoTrack;if(0a.currentTime||360(e?e.Ma:-1);e=!!f}if(e)return!1;e=d.info;f=XU(b);!f||f.Rd||DC(f,e)||c.abort();!c.Bv()||ND()?c.SG(e.i.info.containerType,e.i.info.mimeType):e.i.info.containerType!==c.Bv()&&a.Ba("ctu","ct."+ND()+";prev_c."+c.Bv()+";curr_c."+e.i.info.containerType);f=e.i.J;a.policy.Nj&&f&&(e=0+f.duration,f=-f.i,0===c.Uy()&&e===c.ED()||c.dG(0,e),f!==c.Uc()&& + (c.TA(f),OU&&pCa(a.audioTrack.C,c.SD())));if(a.i.B&&0===d.info.Cb&&(g.dD(d.info.i.info)||a.policy.No)){if(null==c.Bp()){e=XU(b);if(!(f=!e||e.i!==d.info.i)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;he)||(a.policy.kb&&(!d.info.Cb||d.info.Rd||10>d.info.C)&&a.Ba("sba",c.Ib({as:zC(d.info)})),e=d.B?d.info.i.i:null,f=$C(d.i),d.B&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=vDa(a,c,f,d.info,e),"s"===e?(a.Ya=0,e=!0):("i"===e||"x"===e?wDa(a, + "checked",e,d.info):("q"===e&&(d.info.isVideo()?(f=a.policy,f.K=Math.floor(.8*f.K),f.Ea=Math.floor(.8*f.Ea),f.J=Math.floor(.8*f.J)):(f=a.policy,f.Z=Math.floor(.8*f.Z),f.qb=Math.floor(.8*f.qb),f.J=Math.floor(.8*f.J)),vU(a.u,d.info.i)),OV(a.Ca,{reattachOnAppend:e})),e=!1),e=!e);if(e)return!1;b.Qh(d);a.oa("Appended "+zC(d.info)+", buffered: "+CD(c.lf()));return!0}; + wDa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.i.D=e,d.i.info.video&&!wU(a.u)&&vU(a.u,d.i)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=FC(d);d.mrs=RD(a.mediaSource);d.origin=b;d.reason=c;a.handleError(f,e,d)}; + nCa=function(a,b,c){var d=a.i,e=!1,f=-1,h;for(h in d.i){var l=sD(d.i[h].info.mimeType)||d.i[h].info.isVideo();if(c===l)if(l=d.i[h].index,!RC(l,b.Ma))l.PB(b),e=!0;else if(d.Za){e=b;var m=l.ej(e.Ma);m&&m.startTime!==e.startTime?(l.segments=[],l.PB(e),e=!0):e=!1;e&&(f=b.Ma)}}0<=f&&d.ea("clienttemp","restMflIndex",(c?"v":"a")+"."+f,!1);ABa(a.C,b,c,e);a.B.pF(b,c)}; + NV=function(a,b,c){c.info.i.Se();var d=c.info.i.i;if(!d||!b.ly()||b.Bp()===d)return!1;var e=d,f=b.Wy();if(a.policy.Ug&&f&&b.isView()&&g.dD(c.info.i.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=Tka(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.Ba("fenc","1")}f=null;(h=c.info.i.Fp(0))&&(f=h.i[0]);a.policy.kb&&a.Ba("sbi",b.Ib({as:zC(c.info)}));a.policy.Ei&&b.abort();d=vDa(a,b,e,f,d);if("s"!==d)return wDa(a,"sepInit",d,c.info),!0;a.oa();return b.bh()}; + vDa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:CD(b.lf()).replace(/,/g,"_"),message:g.Mc(g.Va(f.message),3),track:a.mediaSource?b===a.mediaSource.u?"v":"a":"u"},gDa()),a.handleError(!1,"player.exception",b),"q";g.Ly(f)}return"u"}return a.mediaSource.rf()?"m":"s"}; + IV=function(a,b,c){if(a.isSuspended)return 1;var d=b.i.info.audio?a.policy.Z:a.policy.K;!a.policy.Ya&&xU(a.u)&&(d=Math.max(d,b.i.info.audio?a.policy.qb:a.policy.Ea));c&&(d+=a.policy.jb);var e=xU(a.u)?b.u?b.u.i.info.Nb:b.i.info.Nb:b.Nb;d/=e;0c&&a.Ba("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d}; + oDa=function(a){var b=g.Ko(a.Ca.Ll(),function(d){return"ad"===d.namespace}); + b=g.r(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity}; + xDa=function(a,b){AE(b,"cms",function(c){a.policy.Y&&a.Ba("pathprobe",c)},function(c){a.Ca.handleError(c)})}; + yDa=function(a,b){a.K=b;a.B&&(a.B.S=b);a.K.hG(a.videoTrack.i.info.ue())}; + zDa=function(a,b){if(a.mediaSource&&a.mediaSource.u){b-=!isNaN(a.timestampOffset)&&a.policy.Jh?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.C.i&&!a.mediaSource.rf()){var c=a.currentTime<=b&&b=b&&hDa(a,d.startTime,!1)}); + return c&&c.startTimed;d++)c[2*d]=''.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new XV(null,null,null,null,a)}; + $V=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c}; + eEa=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=a&&(c=.75*a),b=.5*(a-c),c=new RV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new bW(a.ob("disable_license_delay"),!a.ob("h5_widevine_keyrotationagent_optimization_killswitch"), + b,this);break a;default:c=null}if(this.D=c)g.J(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.TI,this),this.D.subscribe("log_qoe",this.Jg,this);this.oa("Created, key system "+this.i.keySystem+", final EME "+sE(this.X.experiments));this.Jg("cks"+this.i.mf());c=this.i;"com.youtube.widevine.forcehdcp"===c.keySystem&&c.D&&(this.La=new aW(this.videoData.Fc,this.X.experiments),g.J(this,this.La))}; + jEa=function(a){var b=ZV(a.C);b?b.then(Hs(function(){kEa(a)}),Hs(function(c){if(!a.isDisposed()){a.oa(); + g.Gs(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ea("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.oa(),a.Jg("mdkrdy"),a.Z=!0); + a.Y&&(b=ZV(a.Y))}; + mEa=function(a,b,c){a.Ja=!0;c=new EU(b,c);a.X.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));lEa(a,c)}; + lEa=function(a,b){if(!a.isDisposed()){a.Jg("onInitData");if(a.X.N("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.i){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.oa();a.Jg("initd."+b.initData.length+";ct."+b.contentType);if("widevine"===a.i.flavor)if(a.Aa&&!a.videoData.isLivePlayback)gW(a);else{if(!(a.X.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.ue)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.i;ZBa(b);b.ue||(d&&b.i!==d?a.ea("ctmp", + "cpsmm","emsg."+d+";pssh."+b.i):c&&b.cryptoPeriodIndex!==c&&a.ea("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex));a.ea("widevine_set_need_key_info",b)}}else a.TI(b)}}; + kEa=function(a){if(!a.isDisposed())if(a.X.N("html5_drm_set_server_cert")&&!g.lF(a.X)){var b=a.C.setServerCertificate();b?b.then(Hs(function(c){a.videoData.Y&&a.ea("ctmp","ssc",c)}),Hs(function(c){a.ea("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Hs(function(){hW(a)})):hW(a)}else hW(a)}; + hW=function(a){a.isDisposed()||(a.Z=!0,a.oa(),a.Jg("onmdkrdy"),gW(a))}; + nEa=function(a){return"widevine"===a.i.flavor&&a.videoData.N("html5_drm_cpi_license_key")}; + gW=function(a){if(a.Ja&&a.Z&&!a.ya){for(;a.B.length;){var b=a.B[0],c=nEa(a)?$Ba(b):g.Mc(b.initData);if(a.u.get(c))if("fairplay"===a.i.flavor)a.u.delete(c);else{a.B.shift();continue}ZBa(b);break}a.B.length&&a.createSession(a.B[0])}}; + oEa=function(a){var b;if(b=g.Wt()){var c;b=!(null===(c=a.C.u)||void 0===c||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.D.TextDecoder?(new TextDecoder).decode(b):g.Xa(b),a.ea("ctmp","drm",b))}; + jW=function(a){g.I.call(this);var b=this;this.Ca=a;this.i=this.Ca.V();this.videoData=this.Ca.getVideoData();this.Gz=0;this.K=this.B=!1;this.J=this.D=0;this.C=g.rE(this.i.experiments,"html5_delayed_retry_count");this.u=new g.M(function(){iW(b.Ca)},g.rE(this.i.experiments,"html5_delayed_retry_delay_ms")); + g.J(this,this.u)}; + lW=function(a,b,c){var d=a.videoData.u;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.Ca.Zf.C&&d&&"22"===d.lc())return a.Ca.Zf.C=!0,a.Sd("qoe.restart",{reason:"fmt.unplayable.22"}),kW(a.Ca),!0;var e=!1,f=a.Gz+3E4<(0,g.Q)()||a.u.isActive();if(a.i.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Sd("auth",c),!0;var h;if(h=!f)h=a.Ca.Jp(),h=!!(h.Je()||h.isInline()||h.isBackground()||h.ws()||h.rs()); + h&&(c.nonfg="paused",f=!0,a.Ca.pauseVideo());!f&&0=a.i.Ya)return!1;b.exiled=""+a.i.Ya;a.Sd("qoe.start15s",b);a.Ca.ea("playbackstalledatstart");return!0}; + sEa=function(a){if("GAME_CONSOLE"!==a.i.deviceParams.cplatform)try{window.close()}catch(b){}}; + qEa=function(a){return a.B?!0:"yt"!==a.i.ya?!1:a.videoData.qb?25>a.videoData.Db:!a.videoData.Db}; + rEa=function(a){if(!a.B){a.B=!0;var b=a.Ca.getPlayerState();b=g.U(b,4)||b.isSuspended();a.Ca.pm();b&&!YG(a.videoData)||a.Ca.ea("signatureexpired")}}; + tEa=function(a,b){if((a=a.Ca.jd())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.aj();b.details.merr=c?c.toString():"0";b.details.msg=a.qe()}}; + vEa=function(a,b){if("403"===b.details.rc){var c=b.errorCode;c="net.badstatus"===c||"manifest.net.retryexhausted"===c}else c=!1;if(!c&&!a.B)return!1;b.details.sts="18911";if(qEa(a))return b.i&&(b=Object.assign({e:b.errorCode},b.details),b=new g.KD("qoe.restart",!1,b)),a.Sd(b.errorCode,b.details),rEa(a),!0;6048E5<(0,g.Q)()-a.i.jb&&uEa(a,"signature");return!1}; + uEa=function(a,b){try{window.location.reload();a.Sd("qoe.restart",{detail:"pr."+b});return}catch(c){}a.i.N("tvhtml5_retire_old_players")&&g.lF(a.i)&&sEa(a)}; + wEa=function(a,b){a.i.B.C=!1;a.Sd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});kW(a.Ca)}; + xEa=function(a,b,c,d){this.videoData=a;this.i=b;this.reason=c;this.u=d}; + mW=function(a,b,c){this.X=a;this.jx=b;this.Ca=c;this.Z=this.J=this.K=this.u=this.i=this.D=this.S=this.B=0;this.playbackRate=1;this.C=!1}; + zEa=function(a,b,c){!a.X.N("html5_tv_ignore_capable_constraint")&&g.lF(a.X)&&(c=c.compose(yEa(a,b)));return c}; + BEa=function(a){a=AEa(a);return fB("auto",a,!1,"s")}; + AEa=function(a){var b;a.N("html5_exponential_memory_for_sticky")?b=.5>LE(a.X.uc,"sticky-lifetime")?"auto":hB[eE()]:b=hB[eE()];return b}; + CEa=function(a,b){return 1(0,g.Q)()-a.D?0:f||0h?a.u+1:0;if(!e||g.lF(a.X))return!1;a.i=d>e?a.i+1:0;if(3!==a.i)return!1;FEa(a,b.videoData.u);a.Ca.Ba("dfd","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames+";"+HEa());return!0}; + JEa=function(a,b){return 0>=g.rE(a.X.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32=e){d=e;break}return new cB(0,d,!1,"b")}; + LEa=function(a){var b=a.Ca.Jp(),c=g.rE(a.X.experiments,"html5_inline_quality_cap"),d=g.rE(a.X.experiments,"html5_background_quality_cap"),e=g.rE(a.X.experiments,"html5_background_cap_idle_secs");return c&&b.isInline()?new cB(0,c,!1,"v"):!d||"auto"!==AEa(a)||Zu()/1E3e?(c&&(d=MEa(a,c,d)),new cB(0,d,!1,"e")):nG}; + MEa=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.i.videoInfos,b=1;ba.B)){var b=g.CS(a.i),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.$J(a.playerState)&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; + REa=function(a){switch(a.X.playerCanaryState){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}}; + SEa=function(a){return(!a.N("html5_health_to_gel")||a.X.jb+36E5<(0,g.Q)())&&(a.N("html5_health_to_gel_canary_killswitch")||a.X.jb+36E5<(0,g.Q)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===REa(a))?a.N("html5_health_to_qoe"):!0}; + UEa=function(a,b){b?TEa.test(a):(a=g.Os(a),Object.keys(a).includes("cpn"))}; + oW=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Ss(a)&&Ts()){if(h){var n;2!==(null===(n=VEa.uaChPolyfill)||void 0===n?void 0:n.state.type)?h=null:(h=VEa.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}d&&(m["X-Goog-Visitor-Id"]=d);c&&(m["X-Goog-PageId"]=c); + e&&(m.Authorization="Bearer "+e);d||e||c?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&TEa.test(a)&&(l.withCredentials=!0)}0a.K.WL+100&&a.K){var d=a.K,e=d.isAd;a.Ra=1E3*b-d.TW-(1E3*c-d.WL)-d.GW;a.Ba("gllat",{l:a.Ra.toFixed(),prev_ad:+e});delete a.K}}; + tW=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.CS(a.i);var c=a.i.Ca.iz();if(!isNaN(a.ma)&&!isNaN(c.u)){var d=c.u-a.ma;0a.u)&&2=e&&(g.Ly(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},a.X.N("html5_validate_yt_now")),c=b(); + a.i=function(){return Math.round(b()-c)/1E3}; + a.Ca.tF()}return a.i}; + YEa=function(a){if(navigator.connection&&navigator.connection.type)return rFa[navigator.connection.type]||rFa.other;if(g.lF(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0}; + xW=function(a){var b=new pFa;b.C=a.Dh().cc||"-";b.playbackRate=a.Ca.getPlaybackRate();var c=a.Ca.getVisibilityState();0!==c&&(b.visibilityState=c);a.X.Hb&&(b.u=1);c=a.Ca.getAudioTrack();c.Ac&&c.Ac.id&&"und"!==c.Ac.id&&(b.B=c.Ac.id);b.connectionType=YEa(a);b.volume=a.Dh().volume;b.muted=a.Dh().muted;b.clipId=a.Dh().clipid||"-";b.i=a.videoData.rI||"-";return b}; + g.KW=function(a){g.I.call(this);var b=this;this.u=a;this.B=this.qoe=this.i=null;this.Sf=void 0;this.C=new Map;this.u.videoData.isValid()&&!this.u.videoData.Ei&&(this.i=new DW(this.u),g.J(this,this.i),this.qoe=new g.rW(this.u),g.J(this,this.qoe),this.u.videoData.enableServerStitchedDai&&(this.Sf=this.u.videoData.clientPlaybackNonce)&&this.C.set(this.Sf,this.i));SEa(this.u)&&(this.B=new nW(this.u,function(c){b.Ba("h5h",c)}),g.J(this,this.B))}; + sFa=function(a){a.B&&PEa(a.B);a.qoe&&aFa(a.qoe)}; + tFa=function(a){var b;a.u.videoData.enableServerStitchedDai&&a.Sf?null===(b=a.C.get(a.Sf))||void 0===b?void 0:yW(b.u):a.i&&yW(a.i.u)}; + uFa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.ud&&(b.ud="N");var c=g.CS(b.i);g.qW(b,c,"vps",[b.ud]);b.J||(0<=b.B&&(b.u.user_intent=[b.B.toString()]),b.J=!0);b.Aa=!0;b.reportStats(c)}}if(a.u.videoData.enableServerStitchedDai)for(b=g.r(a.C.values()),c=b.next();!c.done;c=b.next())IW(c.value);else a.i&&IW(a.i);a.dispose()}; + vFa=function(a,b){a.i&&oFa(a.i,b)}; + wFa=function(a){if(!a.i)return null;var b=EW(a.i,"atr");return function(c){a.i&&oFa(a.i,c,b)}}; + xFa=function(a,b,c,d){c.adFormat=c.uc;var e=b.Ca;b=new DW(new JW(c,b.X,{getDuration:function(){return c.lengthSeconds}, + getCurrentTime:function(){return e.getCurrentTime()}, + Ch:function(){return e.Ch()}, + iz:function(){return e.iz()}, + getPlayerSize:function(){return e.getPlayerSize()}, + getAudioTrack:function(){return c.getAudioTrack()}, + getPlaybackRate:function(){return e.getPlaybackRate()}, + Lv:function(){return e.Lv()}, + getVisibilityState:function(){return e.getVisibilityState()}, + tF:function(){e.tF()}, + xw:function(){e.xw()}},b.Dh)); + b.D=d;g.J(a,b);return b}; + yFa=function(){this.hp=0;this.D=this.C=this.u=this.B=NaN;this.i={};this.bandwidthEstimate=NaN}; + zFa=function(){this.u=g.mA;this.i=[]}; + BFa=function(a,b,c){var d=[];for(b=AFa(a,b);bc)break}return d}; + CFa=function(a,b){var c=[];a=g.r(a.i);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; + DFa=function(a){return a.i.slice(AFa(a,0x7ffffffffffff),a.i.length)}; + AFa=function(a,b){a=Lb(a.i,function(c){return b-c.start||1}); + return 0>a?-(a+1):a}; + EFa=function(a,b){var c=NaN;a=g.r(a.i);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.i.length)a.i=a.i.concat(b),a.i.sort(a.u);else{b=g.r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,!a.i.length||0a.mediaTime+a.C&&b(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1}; + JFa=function(a,b){this.videoData=a;this.i=b}; + KFa=function(a,b,c){return npa(b,c).then(function(){return Kt(new JFa(b,b.B))},function(d){d instanceof Error&&Is(d); + d=b.isLivePlayback&&!g.yE(a.B,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.eb,drm:""+ +wG(b),f18:""+ +(0<=b.Gi.indexOf("itag=18")),c18:""+ +wD('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.i&&(wG(b)?(e.f142=""+ +!!b.i.i["142"],e.f149=""+ +!!b.i.i["149"],e.f279=""+ +!!b.i.i["279"]):(e.f133=""+ +!!b.i.i["133"],e.f140=""+ +!!b.i.i["140"],e.f242=""+ +!!b.i.i["242"]),e.cAVC=""+ +xD('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +xD('audio/mp4; codecs="mp4a.40.2"'), + e.cVP9=""+ +xD('video/webm; codecs="vp9"'));if(b.J){e.drmsys=b.J.keySystem;var f=0;b.J.i&&(f=Object.keys(b.J.i).length);e.drmst=""+f}return new g.KD(d,!0,e)})}; + LFa=function(a){this.D=a;this.B=this.u=0;this.C=new iT(50)}; + PW=function(a,b,c){g.R.call(this);this.videoData=a;this.experiments=b;this.S=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new MFa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.kb?c.u=3:g.KG(a)&&(c.u=2);b.ob("html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.S=!0);var d=fpa(a);c.D=2===d||-1===d;c.D&&(c.ma++,21530001===DG(a)&&(c.J=g.rE(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Tt("trident/")||Tt("edge/"))d=g.rE(b,"html5_platform_minimum_readahead_seconds")||3,c.B=Math.max(c.B, + d);g.rE(b,"html5_minimum_readahead_seconds")&&(c.B=g.rE(b,"html5_minimum_readahead_seconds"));g.rE(b,"html5_maximum_readahead_seconds")&&(c.Z=g.rE(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);g.rE(b,"html5_allowable_liveness_drift_chunks")&&(c.i=g.rE(b,"html5_allowable_liveness_drift_chunks"));g.rE(b,"html5_readahead_ratelimit")&&(c.Y=g.rE(b,"html5_readahead_ratelimit"));switch(DG(a)){case 21530001:c.i=(c.i+1)/5,"LOW"===a.latencyClass&&(c.i*=2),c.K=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy= + c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.kb&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(DG(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.i=OW(this,b);this.oa()}; + NFa=function(a,b){var c=a.i;(void 0===b?0:b)&&a.policy.K&&3===fpa(a.videoData)&&--c;return QW(a)*c}; + RW=function(a,b){var c=a.hj(),d=a.policy.i;a.D||(d=Math.max(d-1,0));a=d*QW(a);return b>=c-a}; + OFa=function(a,b,c){b=RW(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B}; + PFa=function(a,b){b=RW(a,b);a.D!==b&&a.ea("livestatusshift",b);a.D=b}; + QW=function(a){return a.videoData.i?cE(a.videoData.i)||5:5}; + OW=function(a,b){b=Math.max(Math.max(a.policy.ma,Math.ceil(a.policy.B/QW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.Z/QW(a))),b)}; + MFa=function(){this.ma=1;this.B=0;this.Z=Infinity;this.Y=0;this.C=!0;this.i=2;this.u=1;this.D=!1;this.J=NaN;this.K=this.S=!1}; + UW=function(a){g.I.call(this);this.Ca=a;this.X=this.Ca.V();this.C=this.i=0;this.B=new g.M(this.D,1E3,this);this.Ea=new SW({delayMs:g.rE(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Z=new SW({delayMs:g.rE(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Ka=TW(this,"html5_seek_set_cmt");this.ma=TW(this,"html5_seek_jiggle_cmt");this.ya=TW(this,"html5_seek_new_elem");this.Ua=TW(this,"html5_unreported_seek_reseek");this.K=TW(this,"html5_long_rebuffer_jiggle_cmt");this.S=new SW({delayMs:2E4}); + this.J=TW(this,"html5_ads_preroll_lock_timeout");this.Ja=new SW({delayMs:g.rE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Hr:!this.X.N("html5_report_slow_ads_as_error")});this.La=new SW({delayMs:g.rE(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Hr:!this.X.N("html5_skip_slow_buffering_ad")});this.Aa=TW(this,"html5_seek_over_discontinuities");this.Ra=new SW({delayMs:g.rE(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Y=TW(this,"html5_slow_start_no_media_source"); + this.u={};g.J(this,this.B)}; + TW=function(a,b){var c=g.rE(a.X.experiments,b+"_delay_ms");a=a.X.N(b+"_cfl");return new SW({delayMs:c,Hr:a})}; + QFa=function(a,b,c,d,e,f,h){var l=DD(c,Math.max(d-3.5,0)),m=0<=l&&d>c.end(l)-1.1&&l+1c.start(l+1)-c.end(l);m=f&&h&&m;var n=l+1b.KA,c=b.i&&c-b.i>b.OF||f?b.B=!0:!1):c=!1,c&&(c=a.Ib(b),c.wn=h,c.we=e,c.wsuc=""+ +d,h=g.JD(c),a.Ca.Ba("workaroundReport",h),d&&(b.reset(),a.u[e]=!1)))}; + SW=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.OF?1E3:b.OF,d=void 0===b.KA?3E4:b.KA;b=void 0===b.Hr?!1:b.Hr;this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1;this.C=Math.ceil(a/1E3);this.OF=c;this.KA=d;this.Hr=b}; + RFa=function(a,b){if(!a.C||a.triggerTimestamp)return!1;if(!b)return a.reset(),!1;b=(0,g.Q)();if(!a.startTimestamp)a.startTimestamp=b,a.u=0;else if(a.u>=a.C)return a.triggerTimestamp=b,!0;a.u+=1;return!1}; + XW=function(a){g.I.call(this);var b=this;this.Ca=a;this.X=this.Ca.V();this.videoData=this.Ca.getVideoData();this.policy=new SFa(this.X);this.Y=new UW(this.Ca);this.playbackData=null;this.Ja=new g.uD;this.J=this.u=this.Xa=this.ra=null;this.i=NaN;this.B=0;this.C=null;this.Aa=NaN;this.D=this.K=null;this.Z=this.S=!1;this.ya=new g.M(function(){TFa(b,!1)},2E3); + this.Ya=new g.M(function(){WW(b)}); + this.Ka=new g.M(function(){b.oa();b.S=!0;UFa(b)}); + this.Ra=this.timestampOffset=0;this.La=!0;this.Ea=0;this.Ua=NaN;this.ma=new g.M(function(){var c=b.X.uc;c.i+=1E4/36E5;c.i-c.B>1/6&&(ina(c),c.B=c.i);b.ma.start()},1E4); + g.J(this,this.Y);g.J(this,this.Ja);g.J(this,this.ya);g.J(this,this.Ka);g.J(this,this.Ya);g.J(this,this.ma)}; + VFa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new LFa(function(){a:{if(a.playbackData&&a.playbackData.i.i){if(CG(a.videoData)&&a.Xa){var c=a.Xa.Ka.qg()||0;break a}if(a.videoData.i){c=a.videoData.i.ya;break a}}c=0}return c}),a.u=new PW(a.videoData,a.X.experiments,function(){return a.hd(!0)})); + a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9=e.u&&cd.C||g.Pa()-d.J=a.hd()-.1)a.i=a.hd(),a.C.resolve(a.hd()),DS(a.Ca);else try{var c=a.i-a.timestampOffset;a.oa();a.ra.seekTo(c);a.Y.i=c;a.Aa=c;a.B=a.i}catch(d){a.oa()}}}; + aGa=function(a){if(!a.ra||0===a.ra.rh()||0c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=aD(a,b++);else if(2===c)c=aD(a,b++),a=aD(a,b++),a=(c&63)+64*a;else if(3===c){c=aD(a,b++);var d=aD(a,b++);a=aD(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=aD(a,b++);d=aD(a,b++);var e=aD(a,b++);a=aD(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),ZC(a,c,4)?a=Dla(a).getUint32(c-a.B,!0):(d=aD(a,c+2)+256*aD(a,c+3),a=aD(a,c)+256*(aD(a,c+1)+ + 256*d)),b+=5;return[a,b]}; + tX=function(a){this.u=a;this.i=new WC}; + yGa=function(a){var b=g.r(xGa(a.i,0));var c=b.next().value;var d=b.next().value;d=g.r(xGa(a.i,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.i.totalLength&&(d=a.i.split(d).Eq.split(b),b=d.oz,d=d.Eq,a.u.eq.feed(c,b),a.i=d,yGa(a))}; + CGa=function(a){var b=xG(a);a=zGa(b,a.V());var c=a.video.map(AGa).flat();0Math.random())try{g.My(new g.dw("b/152131571",btoa(f)))}catch(z){}return y.return(Promise.reject(new g.KD(x,!0,{backend:"gvi"})))}})})}; + RGa=function(a,b){return g.H(this,function d(){var e,f,h,l,m,n,p,q,t,u,x,y,z;return g.B(d,function(G){if(1==G.i)return a.fetchType="gvi",e=a.V(),(l=kua(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Rs(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=g.jE(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n),0< + Object.keys(m).length&&(f.headers=m),p=(0,g.Q)(),q=function(F){if(!a.isDisposed()){F=F?F.status:-1;var C=400===F||429===F,K=((0,g.Q)()-p).toFixed();K={backend:"gvi",rc:""+F,rt:K};var S="manifest.net.connect";429===F?S="auth":200t.u&&3!==t.i.Ca.getVisibilityState()&&PEa(t)}q.qoe&&(q=q.qoe, + q.Ka&&0>q.B&&q.i.X.wc&&aFa(q));g.rE(p.X.experiments,"html5_background_quality_cap")&&p.Xa&&LV(p);p.X.dk&&!p.videoData.backgroundable&&p.ra&&!p.qf()&&(p.isBackground()&&p.ra.Ix()?(p.Ba("bgmobile","suspend"),p.pm(!0)):p.isBackground()||xX(p)&&p.Ba("bgmobile","resume"))}; + this.oa();this.Ah=new LW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.nA("endcr")||g.U(p.playerState,32)||DS(p); + e(q,t,p.playerType)}); + g.J(this,this.Ah);g.J(this,this.Nc);UGa(this,m);this.videoData.subscribe("dataupdated",this.kW,this);this.videoData.subscribe("dataloaded",this.YC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ba,this);VGa(this);AAa(this.De);this.visibility.subscribe("visibilitystatechange",this.De);this.videoData.Ja&&WGa(this);!spa(this.videoData)&&ypa(this.videoData)||XGa(this);1===this.playerType&&yX.isActive()&&this.yA.start()}; + UGa=function(a,b){if(2===a.playerType||a.X.jl)b.hH=!0;var c=soa(b.uc,b.Uq,a.X.i,a.X.u);c&&(b.adFormat=c);2===a.playerType&&(b.Nk=!0);if(a.isFullscreen()||a.X.i)c=g.Lz("yt-player-autonavstate"),b.autonavState=c||(a.X.i?2:a.videoData.autonavState);YGa(a,b)}; + VGa=function(a){!a.Xb||a.Xb.isDisposed();a.Xb=new g.KW(new JW(a.videoData,a.X,a,function(){return a.Yx.Dh()}))}; + bI=function(a){return a.ra&&a.ra.Po()?a.ra.Me():null}; + AX=function(a){if(a.videoData.isValid())return!0;a.Kf("api.invalidparam",void 0,"invalidVideodata.1");return!1}; + WGa=function(a){var b=a.Yx.Kc();a.videoData.rl=a.videoData.rl||(null===b||void 0===b?void 0:b.ID());a.videoData.ul=a.videoData.ul||(null===b||void 0===b?void 0:b.JD())}; + kS=function(a,b){(b=void 0===b?!1:b)||sFa(a.Xb);a.xs=b;!AX(a)||a.lm.started?g.lF(a.X)&&a.videoData.isLivePlayback&&a.lm.started&&!a.lm.isFinished()&&!a.xs&&a.YC():(a.lm.start(),b=a.Xb,g.CS(b.u),b.qoe&&$Ea(b.qoe),a.YC())}; + ZGa=function(a){var b=a.videoData;TGa(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=LD(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Kf("auth",unescape(a.videoData.errorReason),g.JD(c.details),a.videoData.errorDetail,a.videoData.ji||void 0):a.handleError(c))})}; + DAa=function(a,b){a.Fd=b;a.Xa&&yDa(a.Xa,new g.PV(b))}; + $Ga=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.oa(),4!==a.playerType&&(a.Dj=g.Db(a.videoData.ya)),JG(a.videoData)){BX(a).then(function(){a.isDisposed()||(a.xs&&(a.Ub(UJ(UJ(a.playerState,512),1)),xX(a)),YGa(a,a.videoData),a.lm.i=!0,CX(a,"dataloaded"),a.mm.started&&DX(a),OEa(a.Zf,a.Ee))}); + a.N("html5_log_media_perf_info")&&a.Ba("loudness",""+a.videoData.ye.toFixed(3),!0);var b=zpa(a.videoData);b&&a.Ba("playerResponseExperiment",b,!0);a.KC()}else CX(a,"dataloaded")}; + BX=function(a){EX(a);a.Ee=null;var b=KFa(a.X,a.videoData,a.qf());a.Fw=b;a.Fw.then(function(c){aHa(a,c)},function(c){a.isDisposed()||(c=LD(c),a.visibility.isBackground()?(FX(a,"vp_none_avail"),a.Fw=null,a.lm.reset()):(a.lm.i=!0,a.Kf(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.JD(c.details))))}); + return b}; + kW=function(a){a.oa();BX(a).then(function(){return xX(a)}); + g.YJ(a.playerState)&&a.playVideo()}; + aHa=function(a,b){a.isDisposed()||b.videoData.isDisposed()||(a.oa(),a.Ee=b,VFa(a.Nc,a.Ee),a.videoData.isLivePlayback&&(0b.startSeconds&&(b=b.endSeconds,a.qk&&(a.removeCueRange(a.qk),a.qk=null),a.qk=new g.lA(1E3*b,0x7ffffffffffff),a.qk.namespace="endcr",a.addCueRange(a.qk))}; + KX=function(a,b,c,d){a.videoData.u=c;d&&MV(a,b,d);d=(d=g.JX(a))?d.lc():"";a.Xb.Cw(new xEa(a.videoData,c,b,d));c=a.Zf;c.B=0;c.i=0;a.ea("internalvideoformatchange",a.videoData,"m"===b)}; + g.JX=function(a){var b=LX(a);return gB(b)||!a.Ee?null:g.tb(a.Ee.i.videoInfos,function(c){return b.C(c)})}; + MV=function(a,b,c){if(c!==a.videoData.K){var d=!a.videoData.K;a.videoData.K=c;"m"!==b&&(b=d?"i":"a");a.Xb.uw(new xEa(a.videoData,c,b,""));d||a.ea("internalaudioformatchange",a.videoData,"m"===b)}}; + OV=function(a,b){a.oa();b&&a.Sd(new g.KD("qoe.restart",!1,b));MX(a);b=a.videoData.i&&qB(a.videoData.i);var c=a.ra&&a.ra.isView();b||c?(a.Xa&&mDa(a.Xa),iW(a)):(a.Ub(UJ(a.playerState,16)),xX(a),g.YJ(a.playerState)&&a.playVideo())}; + LX=function(a){if(a.Ee){var b=a.Zf;var c=a.Ee;a=a.Xr();var d=BEa(b);if(gB(d)){d=CEa(b,c);var e=DEa(c),f=KEa(b,c),h=NEa(b,c.videoData,c),l=LEa(b);var m=4320;!b.X.isMobile||g.cF(b.X)||cu()||b.X.N("hls_for_vod")||(m=g.eB.medium);var n=g.rE(b.X.experiments,"html5_default_quality_cap");if(n){var p=!!c.i.i&&!c.videoData.Bg&&!c.videoData.Bd,q=g.rE(b.X.experiments,"html5_quality_cap_min_age_secs");p&&q&&(p=b.X.schedule.S,p=(0,g.Q)()-p>1E3*q);p&&(m=Math.min(m,n))}n=g.rE(b.X.experiments,"html5_random_playback_cap"); + q=/[a-h]$/;n&&q.test(c.videoData.clientPlaybackNonce)&&(m=Math.min(m,n));(n=g.rE(b.X.experiments,"html5_not_vp9_supported_quality_cap"))&&!xD('video/webm; codecs="vp9"')&&(m=Math.min(m,n));if(q=n=g.rE(b.X.experiments,"html5_hfr_quality_cap"))a:{q=c.i;if(q.i)for(q=g.r(q.videoInfos),p=q.next();!p.done;p=q.next())if(32l&&0!==l&&b.i===l)){1b.i&&"b"===b.reason;c=a.u.Ya&&!ND();d||e||b||c?OV(a.Ca,{reattchOnConstraint:d?"u":e?"drm":c?"codec":"perf"}):g.Jq(a.Z)}}}; + LV=function(a){a.N("html5_update_constraint")?HX(a):GX(a)}; + eHa=function(a){var b=dHa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Ac.getName()===b})}; + dHa=function(a){var b;if(a=null===(b=a.ra)||void 0===b?void 0:b.audioTracks())for(var c=0;cn&&(n+=f.i);for(var p=0;pa.mediaSource.getDuration()&&a.mediaSource.Ej(c)):a.mediaSource.Ej(d);var e=a.Xa,f=a.mediaSource;e.Y&&(e.oa(),FV(e),e.Y=!1);e.oa();nDa(e);if(!f.i&&!f.u){var h=e.videoTrack.i.info.mimeType+e.policy.Vi,l=e.audioTrack.i.info.mimeType,m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l), + q="fakesb"===h.split(";")[0]?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Ke&&(f.Ke.webkitSourceAddId("0",l),f.Ke.webkitSourceAddId("1",h));var t=new MD(p,f.Ke,"0",lD(l),!1),u=new MD(q,f.Ke,"1",lD(h),!0);f.i=t;f.u=u;g.J(f,t);g.J(f,u)}WU(e.videoTrack,f.u||null);WU(e.audioTrack,f.i||null);e.mediaSource=f;e.resume();ny(f.i,e.Ra,e);ny(f.u,e.Ra,e);try{e.uh()}catch(x){g.Ly(x)}a.ea("mediasourceattached")}}catch(x){g.My(x),a.handleError(new g.KD("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})}; + hHa=function(a){a.Xa?g.qh(a.Xa.seek(a.getCurrentTime()-a.Uc()),function(){}):bHa(a)}; + iW=function(a,b){b=void 0===b?!1:b;return g.H(a,function d(){var e=this;return g.B(d,function(f){if(1==f.i)return e.Xa&&e.Xa.isDisposed()&&EX(e),e.ea("newelementrequired"),b?g.A(f,BX(e),2):f.fb(2);g.U(e.playerState,8)&&e.playVideo();g.sa(f)})})}; + xAa=function(a,b){a.Ba("newelem",b);iW(a)}; + OX=function(a){a.Pb.B.cF();g.U(a.playerState,32)||(a.Ub(UJ(a.playerState,32)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.ea("beginseeking",a));a.Qb()}; + PS=function(a){g.U(a.playerState,32)?(a.Ub(WJ(a.playerState,16,32)),a.ea("endseeking",a)):g.U(a.playerState,2)||a.Ub(UJ(a.playerState,16));a.Pb.B.iF(a.videoData.clientPlaybackNonce,g.U(a.playerState,4))}; + XGa=function(a){var b=a.videoData.errorDetail;a.Kf("auth",unescape(a.videoData.errorReason),b,b,a.videoData.ji||void 0)}; + CX=function(a,b){a.ea("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)}; + iHa=function(a){g.Qb("loadstart loadeddata loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" "),function(b){this.Dt.T(this.ra,b,this.wF,this)},a); + a.X.Si&&a.ra.Po()&&(a.Dt.T(a.ra,"webkitplaybacktargetavailabilitychanged",a.zT,a),a.Dt.T(a.ra,"webkitcurrentplaybacktargetiswirelesschanged",a.AT,a))}; + kHa=function(a){a.N("html5_enable_timeupdate_timeout")&&!a.videoData.isLivePlayback&&jHa(a)&&a.bB.start()}; + jHa=function(a){if(!a.ra)return!1;var b=a.ra.getCurrentTime();a=a.ra.getDuration();return!!(1a-.3)}; + lHa=function(a){window.clearInterval(a.rA);PX(a)||(a.rA=vt(function(){return PX(a)},100))}; + PX=function(a){var b=a.ra;b&&a.Yz&&!a.videoData.qb&&!VA("vfp",a.Pb.timerName)&&2<=b.rh()&&!b.Gk()&&0b.u&&(b.u=c,b.delay.start()),b.B=c,b.D=c);g.Jq(a.MC);a.ea("playbackstarted");g.Su()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))? + a():Uu(0))}; + mHa=function(a){var b=a.getCurrentTime(),c=a.videoData;!VA("pbs",a.Pb.timerName)&&yA.measure&&yA.getEntriesByName&&(yA.getEntriesByName("mark_nr")[0]?mka("mark_nr"):mka());c.videoId&&a.Pb.info("docid",c.videoId);c.eventId&&a.Pb.info("ei",c.eventId);c.clientPlaybackNonce&&a.Pb.info("cpn",c.clientPlaybackNonce);0a.pL+6283){if(!(!a.isAtLiveHead()||a.videoData.i&&$D(a.videoData.i))){var b=a.Xb;if(b.qoe){b=b.qoe;var c=b.i.Ca.iz(),d=g.CS(b.i);ZEa(b,d,c);c=c.D;isNaN(c)||g.qW(b,d,"e2el",[c.toFixed(3)])}}g.xF(a.X)&&a.Ba("rawlat","l."+lT(a.rG,"rawlivelatency").toFixed(3));a.pL=Date.now()}a.videoData.u&&rD(a.videoData.u)&&(b=bI(a))&&b.videoHeight!==a.zE&&(a.zE=b.videoHeight,KX(a,"a",cHa(a,a.videoData.Za)))}; + cHa=function(a,b){if("auto"===b.i.video.quality&&rD(b.mf())&&a.videoData.Hb)for(var c=g.r(a.videoData.Hb),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.zE&&"auto"!==d.i.video.quality)return d.mf();return b.mf()}; + wX=function(a){if(!a.videoData.isLivePlayback)return NaN;var b=0;a.Xa&&a.videoData.i&&(b=CG(a.videoData)?a.Xa.Ka.qg()||0:a.videoData.i.ya);return Date.now()/1E3-a.getIngestionTime()-b}; + oHa=function(a){!a.N("html5_ignore_airplay_events_on_new_video_killswitch")&&a.ra&&a.ra.qf()&&(a.Dz=(0,g.Q)());a.X.ul?g.ut(function(){QX(a)},0):QX(a)}; + QX=function(a){if(a.ra)try{a.qA=a.ra.playVideo()}catch(c){FX(a,"err."+c)}if(a.qA){var b=a.qA;b.then(void 0,function(c){a.oa();if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.qA===b)if(c&&"AbortError"===c.name&&c.message&&c.message.includes("load"))a.oa();else{var d="promise";c&&c.name&&(d+=";m."+c.name);FX(a,d);a.aJ=!0;a.X.N("embeds_enable_autoplayblocked_ping_fix")&&(a.videoData.LK=!0)}})}}; + FX=function(a,b){g.U(a.playerState,128)||(a.Ub(WJ(a.playerState,1028,9)),a.Ba("dompaused",b),a.ea("onDompaused"),a.ea("onAutoplayBlocked"))}; + xX=function(a){if(!a.ra||!a.videoData.B)return!1;var b,c,d=null;(null===(c=a.videoData.B)||void 0===c?0:c.i)?(d=gHa(a),null===(b=a.Xa)||void 0===b?void 0:b.resume()):(EX(a),a.videoData.Za&&(d=a.videoData.Za.Vt()));b=d;d=a.ra.Ix();c=!1;d&&null!==b&&b.i===d.i||(pHa(a,b),c=!0);g.U(a.playerState,2)||(b=a.Nc,b.D||!(0=c&&b<=a}; + OHa=function(a){g.U(a.sb.getPlayerState(),64)&&TX(a).isLivePlayback&&5E3>a.Sb.startTimeMs||a.sb.seekTo(.001*a.Sb.startTimeMs,{Td:"application_loopRangeStart"})}; + CHa=function(a,b){var c=a.Ta.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(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b}; + nY=function(a,b,c){if(a.Qd(c)){c=c.getVideoData();if(a.Pc)c=b;else{a=a.Fd;for(var d=g.r(a.i),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cc===e.Cc){b+=e.Ic/1E3;break}d=b;a=g.r(a.i);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cc===e.Cc)break;var f=e.Ic/1E3;if(fd?e=!0:1Math.random()}; + MY=function(a){var b;(b=a.i)||(a=a.Na.get(),b=a.I.V().N("html5_force_debug_data_for_client_tmp_logs")||a.I.V().N("html5_force_debug_data_for_client_tmp_logs_live_infra"));return b}; + PY=function(a,b,c,d){g.I.call(this);this.Pd=b;this.dc=c;this.Na=d;this.i=a(this,this,this,this,this);g.J(this,this.i);a=g.r(b);for(b=a.next();!b.done;b=a.next())g.J(this,b.value)}; + QY=function(a,b){a.Pd.add(b);a.Na.get().I.V().N("html5_not_register_disposables_when_core_listens")||g.J(a,b)}; + Dqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.Nh(b)}; + Eqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.xf(b)}; + fqa=function(a,b){DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.r(a.Pd);for(var c=a.next();!c.done;c=a.next())c.value.yf(b)}; + SY=function(a,b,c){T(c,b,void 0,void 0,c.Zo);RY(a,b,!0)}; + rIa=function(a,b,c){if(TY(a.i,b))if(UY(a.i,b).C=c?"filled":"not_filled",null===c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.r(a.Pd);for(var d=c.next();!d.done;d=c.next())d.value.Lk(b);RY(a,b,!1)}else{VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.r(a.Pd);for(d=e.next();!d.done;d=e.next())d.value.Mk(b);if(TY(a.i,b))if(UY(a.i,b).D)RY(a,b,!1);else{VY(a.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.i;if(!UY(f,b))throw new WY("Unknown slotState for onLayout"); + if(!f.Ld.cm.get(b.rb))throw new WY("No LayoutRenderingAdapterFactory registered for slot of type: "+b.rb);if(g.xb(c.wd)&&g.xb(c.Rc)&&g.xb(c.Qc)&&g.xb(c.Sc)&&g.xb(c.Vc))throw new WY("Layout has no exit triggers.");XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Qc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);XY(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){a.wf(b, + c,n);RY(a,b,!0);return}UY(a.i,b).J=!0;try{var h=a.i,l=UY(h,b),m=h.Ld.cm.get(b.rb).get().Oe(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new WY("Already had LayoutRenderingAdapter registered for slot");l.B=m;YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.wd);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.Rc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.Qc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Sc);YY(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Vc)}catch(n){ZY(a, + b,!0);RY(a,b,!0);a.wf(b,c,n);return}VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.r(a.Pd);for(d=e.next();!d.done;d=e.next())d.value.yj(b,c);ZY(a,b,!1);qIa(a,b)}else $Y(a.Na.get())&&T("slot is unscheduled after been fulfilled.",b,c)}}; + aZ=function(a,b,c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.yj(b,c)}; + Fqa=function(a,b,c){a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.zj(b,c)}; + bZ=function(a,b,c){VY(a.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.r(a.Pd);for(var d=a.next();!d.done;d=a.next())d.value.Lc(b,c)}; + CJ=function(a,b,c,d){VY(a.dc,lIa(d),b,c);a=g.r(a.Pd);for(var e=a.next();!e.done;e=a.next())e.value.Xc(b,c,d)}; + ZY=function(a,b,c){TY(a.i,b)&&(UY(a.i,b).J=!1,c?a.Na.get().I.V().N("html5_enable_deferred_triggers_on_error")?cZ(a,sIa(a.i,b)):$Y(a.Na.get())&&T("Ignore deferred triggers due to error",b):cZ(a,sIa(a.i,b)))}; + cZ=function(a,b){b.sort(function(f,h){function l(m){T("TriggerCategoryOrder enum does not contain trigger category: "+m)} + return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):jIa(f.category,l)-jIa(h.category,l)}); + var c=new Map;b=g.r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,TY(a.i,d.slot))if(UY(a.i,d.slot).J)UY(a.i,d.slot).S.push(d);else{tIa(a.dc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.r(uIa);for(d=b.next();!d.done;d=b.next())e=g.r(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&vIa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&wIa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&xIa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&& + yIa(a,c)}; + vIa=function(a,b,c){b=g.r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&dZ(a.i,d.slot)&&zIa(a,d.slot,d.layout,c)}; + wIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next())RY(a,c.value.slot,!1)}; + xIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(UY(a.i,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.i.tv(c.slot))}}; + yIa=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.r(a.Pd),e=d.next();!e.done;e=d.next())e.value.Bj(c.slot);try{var f=a.i,h=c.slot,l=UY(f,h);if(!l)throw new eZ("Got enter request for unknown slot");if(!l.u)throw new eZ("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==l.i)throw new eZ("Tried to enter a slot from stage: "+l.i);if(fZ(l))throw new eZ("Got enter request for already active slot"); + for(var m=g.r(gZ(f,h.rb+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&fZ(p))throw new eZ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.i});}}catch(q){T(q,c.slot,hZ(a.i,c.slot),void 0,q.Zo);RY(a,c.slot,!0);continue}c=UY(a.i,c.slot);"scheduled"!==c.i&&iZ(c.slot,c.i,"enterSlot");c.i="enter_requested";c.u.Gy()}}; + qIa=function(a,b){var c;TY(a.i,b)&&fZ(UY(a.i,b))&&hZ(a.i,b)&&!dZ(a.i,b)&&(VY(a.dc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=hZ(a.i,b))&&void 0!==c?c:void 0),a=UY(a.i,b),"entered"!==a.i&&iZ(a.slot,a.i,"enterLayoutForSlot"),a.i="rendering",a.B.startRendering(a.layout))}; + zIa=function(a,b,c,d){if(TY(a.i,b)){var e=a.dc,f;var h=(null===(f=kIa.get(d))||void 0===f?void 0:f.Ts)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";VY(e,h,b,c);a=UY(a.i,b);"rendering"!==a.i&&iZ(a.slot,a.i,"exitLayout");a.i="rendering_stop_requested";a.B.gf(c,d)}}; + RY=function(a,b,c){if(TY(a.i,b)){a:switch(UY(a.i,b).i){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(UY(a.i,b).i){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(UY(a.i,b).D=!0,!c))return;if(fZ(UY(a.i,b)))UY(a.i,b).D=!0,AIa(a,b,c);else{a:switch(UY(a.i,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)UY(a.i,b).D=!0,TY(a.i,b)&&(DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=UY(a.i,b),b.C="fill_cancel_requested",b.K.TC());else{c= + hZ(a.i,b);DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=UY(a.i,b);var e=b.Vb,f=d.ya.get(e.triggerId);f&&(f.Pi(e),d.ya.delete(e.triggerId));e=g.r(b.qc);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.Y.get(f.triggerId);h&&(h.Pi(f),d.Y.delete(f.triggerId))}e=g.r(b.pc);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.Z.get(f.triggerId))h.Pi(f),d.Z.delete(f.triggerId);null!=d.layout&&(e=d.layout,jZ(d,e.wd),jZ(d,e.Rc),jZ(d,e.Qc),jZ(d,e.Sc),jZ(d,e.Vc));d.K=void 0;null!=d.u&&(d.u.release(), + d.u=void 0);null!=d.B&&(d.B.release(),d.B=void 0);d=a.i;UY(d,b)&&(d=gZ(d,b.rb+"_"+b.slotPhysicalPosition))&&d.delete(b.slotId);DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.r(a.Pd);for(d=a.next();!d.done;d=a.next())d=d.value,d.Cj(b),c&&d.zj(b,c)}}}}; + AIa=function(a,b,c){if(TY(a.i,b)&&fZ(UY(a.i,b))){var d=hZ(a.i,b);if(d&&dZ(a.i,b))zIa(a,b,d,c?"error":"abandoned");else{DJ(a.dc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=UY(a.i,b);if(!e)throw new eZ("Cannot exit slot it is unregistered");"enter_requested"!==e.i&&"entered"!==e.i&&"rendering"!==e.i&&iZ(e.slot,e.i,"exitSlot");e.i="exit_requested";if(void 0===e.u)throw e.i="scheduled",new eZ("Cannot exit slot because adapter is not defined");e.u.Hy()}catch(f){T(f,b,void 0,void 0,f.Zo)}}}}; + BIa=function(a){this.slot=a;this.ya=new Map;this.Y=new Map;this.Z=new Map;this.ma=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.S=[];this.i="not_scheduled";this.C="not_filled"}; + fZ=function(a){return"enter_requested"===a.i||a.isActive()}; + WY=function(a,b,c){c=void 0===c?!1:c;Sa.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)}; + eZ=function(a,b,c){c=void 0===c?!1:c;Sa.call(this,a);this.Zo=c;this.args=[];b&&this.args.push(b)}; + kZ=function(a,b,c,d,e,f){g.I.call(this);this.Ld=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Na=f;this.i=new Map}; + gZ=function(a,b){return(a=a.i.get(b))?a:new Map}; + UY=function(a,b){return gZ(a,b.rb+"_"+b.slotPhysicalPosition).get(b.slotId)}; + CIa=function(a){var b=[];a.i.forEach(function(c){c=g.r(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)}); + return b}; + TY=function(a,b){return null!=UY(a,b)}; + sIa=function(a,b){a=UY(a,b);b=[].concat(g.v(a.S));yb(a.S);return b}; + dZ=function(a,b){a=UY(a,b);if(b=null!=a.layout)a:switch(a.i){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b}; + hZ=function(a,b){if(!lZ(a.Na.get()))return b=UY(a,b),null!=b.layout?b.layout:null;(a=UY(a,b))?null!=a.layout&&!a.layout&&T("Unexpected empty layout",b):T("Unexpected undefined slotState",b);return(null===a||void 0===a?void 0:a.layout)||null}; + mZ=function(a,b,c){if(g.xb(c))throw new eZ("No "+DIa.get(b)+" triggers found for slot.");c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ld.Sh.get(d.triggerType))throw new eZ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);}; + XY=function(a,b,c){c=g.r(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ld.Sh.get(d.triggerType))throw new WY("No trigger adapter registered for "+DIa.get(b)+" trigger of type: "+d.triggerType);}; + YY=function(a,b,c,d){d=g.r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ld.Sh.get(e.triggerType);f.Fi(c,e,b.slot,b.layout?b.layout:null);b.ma.set(e.triggerId,f)}}; + jZ=function(a,b){b=g.r(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ma.get(c.triggerId);d&&(d.Pi(c),a.ma.delete(c.triggerId))}}; + iZ=function(a,b,c){T("Slot stage was "+b+" when calling method "+c,a)}; + EIa=function(a){return nZ(a.jq).concat(nZ(a.Sh)).concat(nZ(a.Kl)).concat(nZ(a.zm)).concat(nZ(a.cm))}; + nZ=function(a){var b=[];a=g.r(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b}; + oZ=function(a){g.I.call(this);this.i=a;this.u=FIa(this)}; + FIa=function(a){var b=new PY(function(c,d,e,f){return new kZ(a.i.Ld,c,d,e,f,a.i.Na)},new Set(EIa(a.i.Ld).concat(a.i.listeners)),a.i.dc,a.i.Na); + g.J(a,b);return b}; + pZ=function(a){g.I.call(this);var b=this;this.u=a;this.i=null;g.we(this,function(){g.ue(b.i);b.i=null})}; + Y=function(a){return new pZ(a)}; + GIa=function(a){var b,c=null===(b=a.config)||void 0===b?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)}; + HIa=function(a){return null!=a.linearAd&&null!=a.adVideoStart}; + KIa=function(a,b,c,d,e,f,h){b=IIa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof eZ?b:JIa(a,d,e,b,c);return a instanceof eZ?a:[a]}; + LIa=function(a){var b,c;return void 0!==(null===(c=null===(b=a.renderer)||void 0===b?void 0:b.adBreakServiceRenderer)||void 0===c?void 0:c.getAdBreakUrl)}; + PIa=function(a,b,c,d,e){b=g.r(b);for(var f=b.next();!f.done;f=b.next())f=f.value,qZ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return MIa(n)}); + a=[];b={};f=g.r(f);for(var h=f.next();!h.done;b={Nq:b.Nq},h=f.next()){b.Nq=h.value;h={};for(var l=g.r(b.Nq.DC),m=l.next();!m.done;h={Em:h.Em},m=l.next())h.Em=m.value,m=function(n,p){return function(q){return n.Em.DJ(q,p.Nq.instreamVideoAdRenderer.elementId,n.Em.RI)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.Em.xr?a.push(NIa(c,d,h.Em.SI,e,b.Nq.instreamVideoAdRenderer.elementId,h.Em.adSlotLoggingData,m)):a.push(OIa(c,d,e,b.Nq.instreamVideoAdRenderer.elementId,h.Em.adSlotLoggingData,m))}return a}; + qZ=function(a,b,c){if(b=QIa(b)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=RIa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.vz=c)}else T("InstreamVideoAdRenderer without externalVideoId")}}; + QIa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.r(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null}; + MIa=function(a){if(void 0===a.instreamVideoAdRenderer)return T("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.r(a.DC),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.DJ)return!1;if(void 0===c.RI)return T("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.vz||void 0===c.xr||a.vz!==c.xr&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.xr)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return T("InstreamVideoAdRenderer has no elementId", + void 0,void 0,{kind:a.vz,"matching APSR kind":c.xr}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.xr&&void 0===c.SI)return T("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0}; + RIa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,vz:void 0,adVideoId:b,DC:[]});return a.get(b)}; + rZ=function(a,b,c,d,e,f,h){d?RIa(a,d).DC.push({SI:b,xr:c,RI:e,adSlotLoggingData:f,DJ:h}):T("Companion AdPlacementSupportedRenderer without adVideoId")}; + sZ=function(a){var b,c=0;a=g.r(a.questions);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d=d.instreamSurveyAdMultiSelectQuestionRenderer||d.instreamSurveyAdSingleSelectQuestionRenderer)c+=(null===(b=d.surveyAdQuestionCommon)||void 0===b?void 0:b.durationMilliseconds)||0;return c}; + tZ=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F,C,K,S,L=(null===(c=null===(b=a.questions)||void 0===b?void 0:b[0].instreamSurveyAdMultiSelectQuestionRenderer)||void 0===c?void 0:c.surveyAdQuestionCommon)||(null===(e=null===(d=a.questions)||void 0===d?void 0:d[0].instreamSurveyAdSingleSelectQuestionRenderer)||void 0===e?void 0:e.surveyAdQuestionCommon),W=[].concat(g.v((null===(f=a.playbackCommands)||void 0===f?void 0:f.instreamAdCompleteCommands)||[]),g.v((null===L||void 0===L?void 0:L.timeoutCommands)|| + []));return{impressionCommands:null===(h=a.playbackCommands)||void 0===h?void 0:h.impressionCommands,errorCommands:null===(l=a.playbackCommands)||void 0===l?void 0:l.errorCommands,muteCommands:null===(m=a.playbackCommands)||void 0===m?void 0:m.muteCommands,unmuteCommands:null===(n=a.playbackCommands)||void 0===n?void 0:n.unmuteCommands,pauseCommands:null===(p=a.playbackCommands)||void 0===p?void 0:p.pauseCommands,rewindCommands:null===(q=a.playbackCommands)||void 0===q?void 0:q.rewindCommands,resumeCommands:null=== + (t=a.playbackCommands)||void 0===t?void 0:t.resumeCommands,skipCommands:null===(u=a.playbackCommands)||void 0===u?void 0:u.skipCommands,progressCommands:null===(x=a.playbackCommands)||void 0===x?void 0:x.progressCommands,Eaa:null===(y=a.playbackCommands)||void 0===y?void 0:y.clickthroughCommands,fullscreenCommands:null===(z=a.playbackCommands)||void 0===z?void 0:z.fullscreenCommands,activeViewViewableCommands:null===(G=a.playbackCommands)||void 0===G?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null=== + (F=a.playbackCommands)||void 0===F?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null===(C=a.playbackCommands)||void 0===C?void 0:C.activeViewFullyViewableAudibleHalfDurationCommands,endFullscreenCommands:null===(K=a.playbackCommands)||void 0===K?void 0:K.endFullscreenCommands,abandonCommands:null===(S=a.playbackCommands)||void 0===S?void 0:S.abandonCommands,completeCommands:W}}; + TIa=function(a,b,c,d,e,f,h){return function(l,m){return SIa(a,m.slotId,l,f,function(n,p){n=h(n);return uZ(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new NI(c),d],c.adLayoutLoggingData)})}}; + WIa=function(a,b,c,d,e,f,h){if(!UIa(a))return new eZ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[VIa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=bA(e.u.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new vZ(e.i,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tc:new Map,wd:[q],Rc:[], + Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new OI(l)]),Dc:n(p)}})]}; + UIa=function(a){a=((null===a||void 0===a?void 0:a.additionalPlayerOverlay)||{}).slidingTextPlayerOverlayRenderer;if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1}; + ZIa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]}; + if(!uqa(a))return function(){return new eZ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})}; + var h=a.playerOverlay.instreamSurveyAdRenderer,l=sZ(h);return 0>=l?function(){return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=XIa(m,c,d,function(q){var t=n(q),u=q.slotId; + q=tZ(h);u=bA(e.u.get(),"LAYOUT_TYPE_SURVEY",u);var x={layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},y=new vZ(e.i,d),z=new wZ(e.i,u),G=new xZ(e.i,u),F=new YIa(e.i);return{layoutId:u,layoutType:"LAYOUT_TYPE_SURVEY",tc:new Map,wd:[y,F],Rc:[z],Qc:[],Sc:[G],Vc:[],gb:"core",Ia:new IY([new MI(h),new DI(b),new lJ(l/1E3),new oJ(q)]),Dc:t(x),adLayoutLoggingData:h.adLayoutLoggingData}}); + m=WIa(a,c,p.slotId,d,e,m,n);return m instanceof eZ?m:[p].concat(g.v(m))}}; + gJa=function(a,b,c,d,e){var f=[];try{var h=[];if(c.renderer.linearAdSequenceRenderer)var l=function(u){u=$Ia(u.slotId,c,b,e(u),d);h=u.mX;return u.sR}; + else if(c.renderer.instreamVideoAdRenderer)l=function(u){var x=u.slotId;u=e(u);var y,z=c.config.adPlacementConfig,G=aJa(z),F=G.SJ;G=G.VJ;var C=c.renderer.instreamVideoAdRenderer;if(null===(y=null===C||void 0===C?void 0:C.playerOverlay)||void 0===y?0:y.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=bJa(C);y=Math.min(F+1E3*K.videoLengthSeconds,G);G=new zH(0,[K.videoLengthSeconds],y);var S=K.videoLengthSeconds,L=K.playerVars,W=K.instreamAdPlayerOverlayRenderer, + pa=K.adVideoId,ta=cJa(c);K=new Map([].concat(g.v(K.tc),g.v(Ipa(c))));var rb=null===C||void 0===C?void 0:C.adLayoutLoggingData;C=null===C||void 0===C?void 0:C.sodarExtensionData;x=bA(b.u.get(),"LAYOUT_TYPE_MEDIA",x);var ob={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[new yZ(b.i)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new HI(d),new YI(S),new ZI(L),new aJ(F),new bJ(y),W&&new II(W),new DI(z),new FI(pa),new EI(G),new gJ(ta),C&&new $I(C), + new UI({current:null})].filter(dJa)),Dc:u(ob),adLayoutLoggingData:rb}}; + else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=eJa(a,d,l);f.push(m);for(var n=g.r(h),p=n.next();!p.done;p=n.next()){var q=p.value,t=q(a,e);if(t instanceof eZ)return t;f.push.apply(f,g.v(t))}}catch(u){return new eZ(u,{errorMessage:u.message,AdPlacementRenderer:c,numberOfSurveyRenderers:fJa(c)})}return f}; + fJa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!==a&&void 0!==a&&a.length?a.filter(function(b){var c,d;return null!=(null===(d=null===(c=b.instreamVideoAdRenderer)||void 0===c?void 0:c.playerOverlay)||void 0===d?void 0:d.instreamSurveyAdRenderer)}).length:0}; + $Ia=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=aJa(f),l=h.SJ,m=h.VJ;h=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===h||void 0===h||!h.length)throw new TypeError("Expected linear ads");var n=[],p={VN:l,WN:0,jX:n};h=h.map(function(t){return hJa(a,t,p,c,d,f,e,m)}).map(function(t,u){u=new zH(u,n,m); + return t(u)}); + var q=h.map(function(t){return t.tR}); + return{sR:iJa(c,a,l,q,f,Ipa(b),cJa(b),d,m),mX:h.map(function(t){return t.lX})}}; + hJa=function(a,b,c,d,e,f,h,l){var m,n,p=bJa(b.instreamVideoAdRenderer),q=c.VN,t=c.WN,u=Math.min(q+1E3*p.videoLengthSeconds,l);c.VN=u;c.WN++;c.jX.push(p.videoLengthSeconds);var x=null===(n=null===(m=b.instreamVideoAdRenderer)||void 0===m?void 0:m.playerOverlay)||void 0===n?void 0:n.instreamSurveyAdRenderer;if("nPpU29QrbiU"===p.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(y){var z,G,F=p.playerVars;2<=y.u&&(F.slot_pos=y.i);F.autoplay="1";F=p.videoLengthSeconds; + var C=p.playerVars,K=p.tc,S=p.instreamAdPlayerOverlayRenderer,L=p.adVideoId,W=null===(z=b.instreamVideoAdRenderer)||void 0===z?void 0:z.adLayoutLoggingData,pa=null===(G=b.instreamVideoAdRenderer)||void 0===G?void 0:G.sodarExtensionData,ta=bA(d.u.get(),"LAYOUT_TYPE_MEDIA",a),rb={layoutId:ta,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};y={layoutId:ta,layoutType:"LAYOUT_TYPE_MEDIA",tc:K,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:"adapter",Ia:new IY([new HI(h),new YI(F),new ZI(C),new aJ(q),new bJ(u),new cJ(t), + new UI({current:null}),S&&new II(S),new DI(f),new FI(L),new EI(y),pa&&new $I(pa),x&&new rJ(x)].filter(dJa)),Dc:e(rb),adLayoutLoggingData:W};F=ZIa(b.instreamVideoAdRenderer,f,h,y.layoutId,d);return{tR:y,lX:F}}}; + bJa=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=g.Ms(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id; + e||(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,tc:a.pings?AH(a.pings):new Map}}; + cJa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a}; + aJa=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{SJ:b,VJ:a}}; + kJa=function(a,b,c,d,e,f,h,l){a=jJa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=bA(b.u.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",tc:q,wd:[new zZ(b.i,n)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new fJ(e),new DI(c)]),Dc:m(p)}}); + return a instanceof eZ?a:[a]}; + mJa=function(a,b,c,d,e,f,h,l){a=lJa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,BZ(b,n,p))):q.imageOverlayAdContentRenderer?(q=bA(b.u.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", + p),n=BZ(b,n,p),n.push(new CZ(b.i,q)),n=AZ(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new WY("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new WY("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); + return a instanceof eZ?a:[a]}; + pJa=function(a,b,c,d,e,f,h){var l=Number(d.durationMilliseconds);return isNaN(l)?new eZ("Expected valid duration for AdActionInterstitialRenderer."):function(m){return nJa(b,m.slotId,c,l,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(m),function(n){return oJa(a,n,e,function(p,q){var t=p.slotId;p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_ENDCAP",t);return uZ(b, + t,q,c,p,"LAYOUT_TYPE_ENDCAP",[new KI(d)],d.adLayoutLoggingData)})},d.adLayoutLoggingData,f)}}; + qJa=function(a,b,c,d){if(!c.playerVars)return new eZ("No playerVars available in AdIntroRenderer.");var e=g.Ms(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=bA(a.u.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{Dq:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",tc:new Map,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:"adapter",Ia:new IY([new eJ({}),new DI(b),new UI({current:null}),new ZI(e)]),Dc:f(l)},Er:[new DZ(a.i,h)],mp:[],yy:[],wy:[]}}}; + sJa=function(a,b,c,d,e,f,h,l){var m=sZ(e);if(!sJ(e))return new eZ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=m)return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var n=TIa(a,b,e,f,c,d,h);return n instanceof eZ?n:function(p){return rJa(b,p.slotId,c,m,tZ(e),h(p),n,l)}}; + tJa=function(a,b,c,d,e,f,h){function l(p){return oJa(a,p,d,m)} + function m(p,q){var t=p.slotId;p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return uZ(b,t,q,c,p,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new LI(e),f],e.adLayoutLoggingData)} + if(!(!isNaN(Number(e.timeoutSeconds))&&e.text&&e.ctaButton&&e.ctaButton.buttonRenderer&&e.brandImage&&e.backgroundImage&&e.backgroundImage.thumbnailLandscapePortraitRenderer&&e.backgroundImage.thumbnailLandscapePortraitRenderer.landscape))return new eZ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var n=1E3*e.timeoutSeconds;return function(p){var q={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t= + h(p);p=EZ(b,p.slotId,c,n,q,new Map,t,l);q=new QI(p.zF);return{Dq:{layoutId:p.layoutId,layoutType:p.layoutType,tc:p.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:p.gb,Ia:new IY([].concat(g.v(p.Qu),[q])),Dc:p.Dc,adLayoutLoggingData:p.adLayoutLoggingData},Er:[],mp:p.Qc,yy:p.Sc,wy:p.Vc,jh:p.jh}}}; + xJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(u){var x=new zH(0,[t.Wx]),y=uJa(t.playerVars,t.rN,l,p,x);u=m(u);var z=n.get(t.mB.externalVideoId);x=vJa(b,"core",t.mB,c,y,t.Wx,f,x,u,z);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,tc:x.tc,wd:x.wd,Rc:x.Rc,Qc:x.Qc,Sc:x.Sc,Vc:x.Vc,gb:x.gb,Ia:x.Ia,Dc:x.Dc,adLayoutLoggingData:x.adLayoutLoggingData},jm:[]}} + var t=FZ(e);if(t instanceof WY)return new eZ(t);if(q instanceof eZ)return q;a=wJa(a,c,f,h,d,l.tf,q);return a instanceof eZ?a:a.jm.concat(a.DF)}; + FZ=function(a){if(!a.playerVars)return new WY("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null===(b=a.playerOverlay)||void 0===b?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new WY("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=g.Ms(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new WY("Expected valid length seconds in player vars"): + {mB:a,playerVars:b,rN:a.playerVars,Wx:c}}; + uJa=function(a,b,c,d,e){a.iv_load_policy=d;b=g.Ms(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){T(f)}c.Bg&&(a.ctrl=c.Bg);c.Hf&&(a.ytr=c.Hf);c.El&&(a.ytrcc=c.El);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Uh&&(a.vss_credentials_token_type=c.Uh),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.i);a.autoplay="1";return a}; + AJa=function(a,b,c,d,e,f,h,l,m,n,p){b=yJa(a,b,c,e,f,l,m,n,p);a:{e=g.r(e);for(m=e.next();!m.done;m=e.next())if(m.value.instreamSurveyAdRenderer){e=!0;break a}e=!1}e?(c=zJa(a,c,f,h),c instanceof eZ?d=c:(f=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER"),h=bA(a.u.get(),"LAYOUT_TYPE_SURVEY",f),c.pc.push(new GZ(a.i,h)),a=b({slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition,gb:c.gb,Vb:c.Vb,qc:c.qc,pc:c.pc},{slotId:f,layoutId:h}),d=a instanceof eZ?a:{DF:{slotId:c.slotId,rb:c.rb,slotPhysicalPosition:c.slotPhysicalPosition, + Vb:c.Vb,qc:c.qc,pc:c.pc,gb:c.gb,Ia:new IY([new hJ(a.layout)]),adSlotLoggingData:d},jm:a.jm})):d=wJa(a,c,f,h,d,l.tf,b);return d instanceof eZ?d:d.jm.concat(d.DF)}; + yJa=function(a,b,c,d,e,f,h,l,m){return function(n,p){a:{b:{var q=[];for(var t=g.r(d),u=t.next();!u.done;u=t.next())if(u=u.value,u.instreamVideoAdRenderer){u=FZ(u.instreamVideoAdRenderer);if(u instanceof WY){q=new eZ(u);break b}q.push(u.Wx)}}if(q instanceof eZ)p=q;else{t=0;u=[];for(var x=[],y=[],z=[],G=[],F=[],C=new VI({current:null}),K=[],S=g.r(d),L=S.next();!L.done;L=S.next())if(L=L.value,L.adIntroRenderer){L=qJa(b,c,L.adIntroRenderer,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);x=[].concat(g.v(L.Er), + g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.jh&&(K=[L.jh].concat(g.v(K)))}else if(L.instreamVideoAdRenderer){var W=FZ(L.instreamVideoAdRenderer);if(W instanceof WY){p=new eZ(W);break a}var pa=new zH(t,q);L=b;var ta=W.mB,rb=uJa(W.playerVars,W.rN,f,m,pa),ob=h(n),Ib=l.get(W.mB.externalVideoId);W=vJa(L,"adapter",ta,c,rb,W.Wx,e,pa,ob,Ib);pa=W.Rc;ta.isCritical&&(pa=[new DZ(L.i,W.layoutId)].concat(g.v(pa)));L={layoutId:W.layoutId,layoutType:W.layoutType,tc:W.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:W.gb,Ia:W.Ia, + Dc:W.Dc,adLayoutLoggingData:W.adLayoutLoggingData};ta=pa;W=W.Qc;t++;u.push(L);x=[].concat(g.v(ta),g.v(x));y=[].concat(g.v(W),g.v(y))}else if(L.adActionInterstitialRenderer){L=pJa(a,b,c,L.adActionInterstitialRenderer,e,t,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);x=[].concat(g.v(L.Er),g.v(x));y=[].concat(g.v(L.mp),g.v(y));L.jh&&(K=[L.jh].concat(g.v(K)))}else if(L.instreamSurveyAdRenderer){if(void 0===p){p=new eZ("Composite Survey must already have a Survey Bundle with required metadata.", + {instreamSurveyAdRenderer:L.instreamSurveyAdRenderer});break a}L=sJa(a,b,c,e,L.instreamSurveyAdRenderer,C,h,p);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);L.jh&&K.push(L.jh);x=[].concat(g.v(L.Er),g.v(x));y=[].concat(g.v(L.mp),g.v(y));z=[].concat(g.v(L.yy),g.v(z));G=[].concat(g.v(L.wy),g.v(G));F=[C].concat(g.v(F))}else if(L.surveyTextInterstitialRenderer){L=tJa(a,b,c,e,L.surveyTextInterstitialRenderer,C,h);if(L instanceof eZ){p=L;break a}L=L(n);u.push(L.Dq);L.jh&&K.push(L.jh);y=[].concat(g.v(L.mp), + g.v(y))}else{p=new eZ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={kX:u,Rc:x,Sc:z,Vc:G,Qc:y,Qu:F,jm:K}}}p instanceof eZ?n=p:(z=n.slotId,q=p.kX,t=p.Rc,u=p.Qc,x=p.Sc,y=p.Qu,n=h(n),z=bA(b.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z),G={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"},n={layout:{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:new Map,wd:[new zZ(b.i,z)],Rc:t,Qc:u,Sc:x,Vc:[],gb:"core",Ia:new IY([new WI(q)].concat(g.v(y))),Dc:n(G)}, + jm:p.jm});return n}}; + CJa=function(a,b,c,d,e,f,h){if(!sJ(c))return new eZ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var l=sZ(c);if(0>=l)return new eZ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var m=new VI({current:null}),n=TIa(a,b,c,m,d,f,h);return BJa(a,d,f,l,e,function(p,q){var t=p.slotId,u=tZ(c);p=h(p);t=bA(b.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"},y=n(t,q); + X(y.Ia,"metadata_type_fulfilled_layout")||T("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new DI(d),new mJ(l),new oJ(u),new pJ(!0),m,new RI("LAYOUT_TYPE_SURVEY")];return{VS:{layoutId:t,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:new Map,wd:[new zZ(b.i,t)],Rc:[new wZ(b.i,q.layoutId)],Qc:[],Sc:[new xZ(b.i,q.layoutId)],Vc:[],gb:"core",Ia:new IY(u),Dc:p(x)},xS:y}})}; + HZ=function(a,b,c,d,e,f,h){this.u=a;this.i=b;this.Na=c;this.B=d;this.D=e;this.C=f;this.loadPolicy=void 0===h?1:h}; + xja=function(a,b,c,d,e,f,h){var l,m,n,p,q,t,u,x,y,z,G,F=[];if(0===b.length)return F;b=b.filter(GIa);for(var C=new Map,K=new Map,S=g.r(b),L=S.next();!L.done;L=S.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&K.set(L.hostElementId,L);S=g.r(b);for(L=S.next();!L.done;L=S.next()){L=L.value;var W=DJa(a,C,L,d,e,f,h,K);W instanceof eZ?T(W,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):F.push.apply(F, + g.v(W))}if(null===a.D||f&&!h.KJ)return a=h.tf&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),F.length||a||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(q=null===(p=b[0])||void 0===p?void 0:p.config)|| + void 0===q?void 0:q.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(u=b[0])||void 0===u?void 0:u.renderer}),F;c=c.filter(GIa);F.push.apply(F,g.v(PIa(C,c,a.u.get(),a.D,d,a.Na.get())));F.length||T("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(z=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===z?void 0:z.kind,renderer:null=== + (G=b[0])||void 0===G?void 0:G.renderer});return F}; + DJa=function(a,b,c,d,e,f,h,l){function m(x){return NY(a.B.get(),x)} + var n=c.renderer,p=c.config.adPlacementConfig,q=p.kind,t=c.adSlotLoggingData,u=h.KJ&&"AD_PLACEMENT_KIND_START"===q;u=f&&!u;if(null!=n.actionCompanionAdRenderer)rZ(b,c.elementId,q,n.actionCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.actionCompanionAdRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new vI(F),y,z,F.impressionPings,C,n.actionCompanionAdRenderer.adLayoutLoggingData)}); + else if(n.imageCompanionAdRenderer)rZ(b,c.elementId,q,n.imageCompanionAdRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.imageCompanionAdRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new zI(F),y,z,F.impressionPings,C,n.imageCompanionAdRenderer.adLayoutLoggingData)}); + else if(n.shoppingCompanionCarouselRenderer)rZ(b,c.elementId,q,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(x,y,z){var G=a.i.get(),F=n.shoppingCompanionCarouselRenderer,C=NY(a.B.get(),x);return IZ(G,x.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new AI(F),y,z,F.impressionPings,C,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)}); + else if(n.adBreakServiceRenderer){if(!LIa(c))return[];if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==q)return KIa(a.u.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f);if(!f&&!JZ(a.Na.get()))return new eZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED AdBreakServiceRenderer but cue point event is unsupported");if(!a.C)return new eZ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");h.tf||T("Received non-live cue point triggered AdBreakServiceRenderer", + void 0,void 0,{kind:q,adPlacementConfig:p,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(h.tf),clientPlaybackNonce:h.clientPlaybackNonce});EJa(a.C,{adPlacementRenderer:c,contentCpn:d,zJ:e})}else{if(n.clientForecastingAdRenderer)return kJa(a.u.get(),a.i.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return mJa(a.u.get(),a.i.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if((n.linearAdSequenceRenderer||n.instreamVideoAdRenderer)&&u)return gJa(a.u.get(),a.i.get(), + c,d,m);if(n.linearAdSequenceRenderer&&!u)return qZ(b,n,q),null!=n.linearAdSequenceRenderer.linearAds?AJa(a.u.get(),a.i.get(),p,t,n.linearAdSequenceRenderer.linearAds,d,e,h,m,l,a.loadPolicy):new eZ("Received invalid LinearAdSequenceRenderer.");if(!n.remoteSlotsRenderer||f){if(n.instreamVideoAdRenderer&&!u)return qZ(b,n,q),xJa(a.u.get(),a.i.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy);if(n.instreamSurveyAdRenderer)return CJa(a.u.get(),a.i.get(),n.instreamSurveyAdRenderer,p,t,d,m);if(null!= + n.sandwichedLinearAdRenderer)return HIa(n.sandwichedLinearAdRenderer)?AJa(a.u.get(),a.i.get(),p,t,[n.sandwichedLinearAdRenderer.adVideoStart,n.sandwichedLinearAdRenderer.linearAd],d,e,h,m,l,a.loadPolicy):new eZ("Received invalid SandwichedLinearAdRenderer.")}}return[]}; + KZ=function(a){g.I.call(this);this.i=a}; + Uz=function(a,b,c,d){a.i().Ai(b,d);c=c();a=a.i();LZ(a.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.r(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;DJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.i;if(g.$a(c.slotId))throw new eZ("Slot ID was empty");if(UY(e,c))throw new eZ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.Vb.triggerType});if(!e.Ld.Kl.has(c.rb))throw new eZ("No fulfillment adapter factory registered for slot of type: "+ + c.rb);if(!e.Ld.zm.has(c.rb))throw new eZ("No SlotAdapterFactory registered for slot of type: "+c.rb);mZ(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Vb?[c.Vb]:[]);mZ(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.qc);mZ(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.pc);var f=d.i,h=c.rb+"_"+c.slotPhysicalPosition,l=gZ(f,h);if(UY(f,c))throw new eZ("Duplicate slots not supported");l.set(c.slotId,new BIa(c));f.i.set(h,l)}catch(pa){T(pa,c,void 0,void 0,pa.Zo);break a}UY(d.i,c).J=!0;try{var m=d.i,n=UY(m,c),p=c.Vb,q=m.Ld.Sh.get(p.triggerType); + q&&(q.Fi("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var t=g.r(c.qc),u=t.next();!u.done;u=t.next()){var x=u.value,y=m.Ld.Sh.get(x.triggerType);y&&(y.Fi("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Y.set(x.triggerId,y))}for(var z=g.r(c.pc),G=z.next();!G.done;G=z.next()){var F=G.value,C=m.Ld.Sh.get(F.triggerType);C&&(C.Fi("TRIGGER_CATEGORY_SLOT_EXPIRATION",F,c,null),n.Z.set(F.triggerId,C))}var K=m.Ld.Kl.get(c.rb).get().Oe(m.B,c);n.K=K;var S=m.Ld.zm.get(c.rb).get().Oe(m.D, + c);S.init();n.u=S}catch(pa){T(pa,c,void 0,void 0,pa.Zo);RY(d,c,!0);break a}DJ(d.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.i.Nh(c);for(var L=g.r(d.Pd),W=L.next();!W.done;W=L.next())W.value.Nh(c);ZY(d,c,!1)}}; + MZ=function(a,b,c,d){this.Ho=b;this.i=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; + NZ=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.C=b;this.u=c;this.i=new Map;d.get().addListener(this);g.we(this,function(){d.get().removeListener(e)})}; + uja=function(a,b){var c=0x8000000000000;for(var d=0,e=g.r(b.qc),f=e.next();!f.done;f=e.next())f=f.value,f instanceof MZ?(c=Math.min(c,f.i.start),d=Math.max(d,f.i.end)):T("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new qr(c,d);d="throttledadcuerange:"+b.slotId;a.i.set(d,b);a.u.get().addCueRange(d,c.start,c.end,!1,a)}; + OZ=function(){g.I.apply(this,arguments);this.nj=!0;this.Ki=new Map;this.i=new Map}; + FJa=function(a,b){a=g.r(a.Ki.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; + GJa=function(a,b){a=g.r(a.i.values());for(var c=a.next();!c.done;c=a.next()){c=g.r(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}T("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.$a(b)),layoutId:b})}; + GZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)}; + DZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)}; + vZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)}; + yZ=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)}; + PZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; + QZ=function(a,b){this.i=b;this.rb="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; + zZ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)}; + HJa=function(a,b){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=b;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=a(this.triggerType)}; + YIa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)}; + wZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)}; + xZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)}; + CZ=function(a,b){this.durationMs=45E3;this.Fe=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)}; + IJa=function(a){return[new PI(a.ut),new II(a.instreamAdPlayerOverlayRenderer),new TI(a.ZM),new DI(a.adPlacementConfig),new YI(a.videoLengthSeconds),new lJ(a.LE)]}; + JJa=function(a,b,c,d,e,f){a=c.lE?c.lE:bA(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tc:new Map,wd:[new vZ(function(l){return cA(f,l)},c.ut)], + Rc:[],Qc:[],Sc:[],Vc:[],gb:b,Ia:d,Dc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}}; + RZ=function(a){var b=this;this.u=a;this.i=function(c){return cA(b.u.get(),c)}}; + KJa=function(a,b,c,d,e,f){c=new IY([new JI(c),new DI(d)]);b=bA(a.u.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",tc:new Map,wd:[new vZ(function(h){return cA(a.u.get(),h)},e)], + Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:c,Dc:f(d),adLayoutLoggingData:void 0}}; + SZ=function(a,b,c,d,e){return JJa(b,c,d,new IY(IJa(d)),e,a.u.get())}; + LJa=function(a,b,c,d,e){var f=IJa(d);f.push(new BI(d.TQ));f.push(new CI(d.VQ));return JJa(b,c,d,new IY(f),e,a.u.get())}; + IZ=function(a,b,c,d,e,f,h,l,m){b=bA(a.u.get(),c,b);var n={layoutId:b,layoutType:c,gb:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,tc:p,wd:[new zZ(a.i,b),new PZ(a.i,e)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([d,new DI(f),new PI(e)]),Dc:l(n),adLayoutLoggingData:m}}; + BZ=function(a,b,c){var d=[];d.push(new QZ(a.i,c));b&&d.push(b);return d}; + AZ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,tc:new Map,wd:h,Rc:[new GZ(a.i,b)],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new yI(d),new DI(e)]),Dc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; + uZ=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,tc:new Map,wd:[new vZ(a.i,c)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new DI(d)].concat(g.v(h))),Dc:e(m),adLayoutLoggingData:l}}; + nJa=function(a,b,c,d,e,f,h,l,m,n){a=EZ(a,b,c,d,e,f,h,l,m,n);return{Dq:{layoutId:a.layoutId,layoutType:a.layoutType,tc:a.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:a.gb,Ia:new IY(a.Qu),Dc:a.Dc,adLayoutLoggingData:a.adLayoutLoggingData},Er:a.Rc,mp:a.Qc,yy:a.Sc,wy:a.Vc,jh:a.jh}}; + rJa=function(a,b,c,d,e,f,h,l){b=EZ(a,b,c,d,e,new Map,f,function(m){return h(m,l)},void 0); + a=new xZ(a.i,b.zF);c=new QI(b.zF);d=new RI("LAYOUT_TYPE_SURVEY");return{Dq:{layoutId:b.layoutId,layoutType:b.layoutType,tc:b.tc,wd:[],Rc:[],Qc:[],Sc:[],Vc:[],gb:b.gb,Ia:new IY([].concat(g.v(b.Qu),[c,d])),Dc:b.Dc,adLayoutLoggingData:b.adLayoutLoggingData},Er:b.Rc,mp:b.Qc,yy:[].concat(g.v(b.Sc),[a]),wy:b.Vc,jh:b.jh}}; + EZ=function(a,b,c,d,e,f,h,l,m,n){b=bA(a.u.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=X(l.Ia,"metadata_type_fulfilled_layout");q||T("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new DI(c),new mJ(d),new oJ(e)];n&&c.push(new cJ(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tc:f,wd:[],Rc:[new wZ(a.i,q)],Qc:[],Sc:[],Vc:[],gb:"adapter", + Qu:c,Dc:h(p),adLayoutLoggingData:m,jh:l,zF:q}}; + vJa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,q={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",gb:b};d=[new DI(d),new EI(l),new FI(c.externalVideoId),new HI(h),new II(c.playerOverlay.instreamAdPlayerOverlayRenderer),new oJ({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new ZI(e),new UI({current:null}),new YI(f)];e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");f=(f=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?f:bA(a.u.get(), + "LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);d.push(new QI(f));d.push(new SI(e));d.push(new cJ(l.i));c.adNextParams&&d.push(new wI(c.adNextParams));c.clickthroughEndpoint&&d.push(new xI(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new nJ(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new $I(c.sodarExtensionData));n&&d.push(new kJ(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",tc:AH(c.pings),wd:[new zZ(a.i,p)],Rc:c.skipOffsetMilliseconds?[new wZ(a.i,f)]:[],Qc:[new wZ(a.i, + f)],Sc:[],Vc:[],gb:b,Ia:new IY(d),Dc:m(q),adLayoutLoggingData:c.adLayoutLoggingData}}; + iJa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return HY(p,[],["LAYOUT_TYPE_MEDIA"])})||T("Unexpect subLayout type for DAI composite layout"); + b=bA(a.u.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tc:f,wd:[new yZ(a.i)],Rc:[],Qc:[],Sc:[],Vc:[],gb:"core",Ia:new IY([new aJ(c),new bJ(m),new WI(d),new DI(e),new gJ(h)]),Dc:l(n)}}; + dJa=function(a){return null!=a}; + TZ=function(a,b,c){this.Ho=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)}; + UZ=function(a,b,c){this.Fe=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)}; + VZ=function(a,b){this.Fe=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)}; + MJa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)}; + WZ=function(a,b,c){this.Ho=b;this.i=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)}; + XZ=function(a,b){this.i=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)}; + YZ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)}; + ZZ=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)}; + $Z=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)}; + a_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)}; + b_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)}; + c_=function(a,b){this.Ig=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)}; + IIa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Ok:new qr(-0x8000000000000,-0x8000000000000),AA:d},null!=c&&(d.Nr=new qr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Ok:new qr(0x7ffffffffffff,0x8000000000000),AA:d},null!=c&&(d.Nr=new qr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); + e.offsetEndMilliseconds||T("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new eZ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={Ok:new qr(a,e),AA:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Nr=new qr(a,e)}return d;default:return new eZ("AdPlacementKind not supported in convertToRange.", + {kind:e,adPlacementConfig:a})}}; + d_=function(a){var b=this;this.u=a;this.i=function(c){return cA(b.u.get(),c)}}; + JIa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=aA(a.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Nr&&d.Nr.start!==d.Ok.start&&l.push(new MZ(a.i,c,new qr(d.Nr.start,d.Ok.start),!1));l.push(new MZ(a.i,c,new qr(d.Ok.start,d.Ok.end),d.AA));d={getAdBreakUrl:b.getAdBreakUrl,qN:d.Ok.start,pN:d.Ok.end};b=new b_(a.i,h);f=[new iJ(d)].concat(g.v(f));return{slotId:h,rb:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,Vb:b,qc:l,pc:[new XZ(a.i,c),new $Z(a.i,h),new a_(a.i,h)],gb:"core",Ia:new IY(f),adSlotLoggingData:e}}; + OJa=function(a,b,c){var d=[];c=g.r(c);for(var e=c.next();!e.done;e=c.next())d.push(NJa(a,b,e.value));return d}; + NJa=function(a,b,c){return null!=c.Ig&&c.Ig===a?c.clone(b):c}; + SIa=function(a,b,c,d,e){return PJa(a,b,c,d,e)}; + oJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");return PJa(a,e,b,c,d)}; + PJa=function(a,b,c,d,e){var f=new VZ(a.i,c),h=[new ZZ(a.i,b)];a=[new $Z(a.i,b),new XZ(a.i,d)];return{slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:f,qc:h,pc:a,gb:"core",Ia:new IY([new hJ(e({slotId:b,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:f,qc:h,pc:a},c))]),adSlotLoggingData:void 0}}; + BJa=function(a,b,c,d,e,f){var h=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),l=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER"),m=bA(a.u.get(),"LAYOUT_TYPE_SURVEY",l);b=e_(a,b,c,d);d=[new ZZ(a.i,h)];a=[new $Z(a.i,h),new XZ(a.i,c),new GZ(a.i,m)];if(b instanceof eZ)return b;f=f({slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Vb:b,qc:d,pc:a},{slotId:l,layoutId:m});l=f.xS;return[{slotId:h,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(f.VS)]),adSlotLoggingData:e}, + l]}; + QJa=function(a,b,c,d,e){e=e?e:aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)];a=[new XZ(a.i,b),new $Z(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(d({slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:a}))])}}; + RJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)];a=[new XZ(a.i,b),new $Z(a.i,e)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Vb:c,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(d({slotId:e,rb:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:a}))])}}; + lJa=function(a,b,c,d,e,f){b=e_(a,b,c,d);if(b instanceof eZ)return b;var h=b instanceof MZ?new WZ(a.i,c,b.i):null;d=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");var l=[new ZZ(a.i,d)];a=[new XZ(a.i,c),new $Z(a.i,d)];f=f({slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:b,qc:l,pc:a},h);return f instanceof WY?new eZ(f):{slotId:d,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:b,qc:l,pc:a,gb:"core",Ia:new IY([new hJ(f)]),adSlotLoggingData:e}}; + XIa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new VZ(a.i,c);var f=[new ZZ(a.i,e)],h=[new $Z(a.i,e),new XZ(a.i,b)];f={slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:f,pc:h};return{slotId:e,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:[new ZZ(a.i,e)],pc:[new XZ(a.i,b),new $Z(a.i,e)],gb:"core",Ia:new IY([new hJ(d(f))])}}; + VIa=function(a,b,c,d,e){var f=aA(a.u.get(),"SLOT_TYPE_IN_PLAYER");c=new UZ(a.i,d,c);d=[new ZZ(a.i,f)];a=[new XZ(a.i,b)];return{slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Vb:c,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(e({slotId:f,rb:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",Vb:c,qc:d,pc:a}))])}}; + OIa=function(a,b,c,d,e,f){var h=aA(a.u.get(),b);return SJa(a,h,b,new VZ(a.i,d),c,e,d,f)}; + NIa=function(a,b,c,d,e,f,h){return SJa(a,c,b,new YZ(a.i,c),d,f,e,h)}; + eJa=function(a,b,c){var d=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new MJa(a.i),f=[new c_(a.i,d)];a=[new XZ(a.i,b)];return{slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:e,qc:f,pc:a,gb:"core",Ia:new IY([new hJ(c({slotId:d,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",Vb:e,qc:f,pc:a})),new dJ({})])}}; + wJa=function(a,b,c,d,e,f,h){a=zJa(a,b,c,d);if(a instanceof eZ)return a;h=h({slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,qc:a.qc,pc:a.pc,gb:a.gb});if(h instanceof eZ)return h;b=[new hJ(h.layout)];f&&b.push(new qJ({}));return{DF:{slotId:a.slotId,rb:a.rb,slotPhysicalPosition:a.slotPhysicalPosition,Vb:a.Vb,qc:a.qc,pc:a.pc,gb:a.gb,Ia:new IY(b),adSlotLoggingData:e},jm:h.jm}}; + zJa=function(a,b,c,d){var e=aA(a.u.get(),"SLOT_TYPE_PLAYER_BYTES");b=e_(a,b,c,d);if(b instanceof eZ)return b;d=[new ZZ(a.i,e)];a=[new $Z(a.i,e),new XZ(a.i,c)];return{slotId:e,rb:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core"}}; + jJa=function(a,b,c,d,e,f){var h=aA(a.u.get(),"SLOT_TYPE_FORECASTING");b=e_(a,b,c,d);if(b instanceof eZ)return b;d=[new ZZ(a.i,h)];a=[new $Z(a.i,h),new XZ(a.i,c)];return{slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Vb:b,qc:d,pc:a,gb:"core",Ia:new IY([new hJ(f({slotId:h,rb:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",Vb:b,qc:d,pc:a}))]),adSlotLoggingData:e}}; + TJa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new Yz(a.i,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=IIa(b,d),a instanceof eZ?a:e(a.Ok,f);case "AD_PLACEMENT_KIND_END":return new TZ(a.i,c,f);default:return new eZ("Cannot construct entry trigger",{kind:b.kind})}}; + e_=function(a,b,c,d){return TJa(a,b,c,d,function(e,f){return new MZ(a.i,c,e,f)})}; + SJa=function(a,b,c,d,e,f,h,l){var m=[new c_(a.i,b)];a=[new XZ(a.i,e),new $Z(a.i,b),new DZ(a.i,h)];return{slotId:b,rb:c,slotPhysicalPosition:1,Vb:d,qc:m,pc:a,gb:"core",Ia:new IY([new hJ(l({slotId:b,rb:c,slotPhysicalPosition:1,gb:"core",Vb:d,qc:m,pc:a}))]),adSlotLoggingData:f}}; + f_=function(a,b,c){g.I.call(this);this.Na=a;this.u=b;this.i=c;this.eventCount=0}; + DJ=function(a,b,c){LZ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)}; + VY=function(a,b,c,d){LZ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; + tIa=function(a,b,c,d){var e=a.Na.get();(e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs")||e.I.V().N("html5_control_flow_include_trigger_logging_in_tmp_logs_live_infra"))&&LZ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; + LZ=function(a,b,c,d,e,f,h,l,m,n){var p=a.Na.get();if((p.I.V().N("html5_enable_ads_client_monitoring_log")||p.I.V().N("html5_enable_ads_client_monitoring_log_live_infra"))&&!a.Na.get().I.V().N("html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){p=MY(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var q,t={organicPlaybackContext:{contentCpn:Vz(a.i.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=Vz(a.i.get(),1).tf;if(a=null===(q=Vz(a.i.get(),2))||void 0=== + q?void 0:q.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:a};q={};f&&(q.slotData=LY(p,f));h&&(q.layoutData=nIa(p,h));l&&(q.triggerData=KY(l.trigger,l.category));c&&(q.opportunityData=oIa(p,c,d,e));t&&(q.externalContext=t);b.adClientData=q;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.Zv("adsClientStateChange",{adsClientEvent:b})}}; + g_=function(){this.i=new Map}; + h_=function(a,b,c,d,e){g.I.call(this);this.I=a;this.B=b;this.Ga=c;this.C=d;this.u=e;this.listeners=[];var f=new ky(this);g.J(this,f);f.T(a,"internalAbandon",this.mF);g.we(this,function(){g.my(f)})}; + i_=function(a){g.I.call(this);this.I=a;this.i=new Map;this.u=new ky(this);g.J(this,this.u);this.u.T(this.I,g.nA("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.oA("ad"),this.onCueRangeExit,this)}; + UJa=function(a,b,c,d,e){g.lA.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; + j_=function(a){this.I=a}; + k_=function(a){this.I=a}; + l_=function(a){var b,c,d;return(null===(d=null===(c=null===(b=a.I.getVideoData(1).getPlayerResponse())||void 0===b?void 0:b.playerConfig)||void 0===c?void 0:c.daiConfig)||void 0===d?void 0:d.enableServerStitchedDai)||!1}; + lZ=function(a){return a.I.V().N("html5_recover_from_non_fatal_errors_in_player_bytes")}; + $Y=function(a){return g.xF(a.I.V())?!1:kF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf"):g.lF(a.I.V())?a.I.V().N("html5_enable_non_notify_composite_vod_lsar_pacf_tv"):!1}; + VJa=function(a){return a.I.V().N("html5_recognize_predict_start_cue_point")}; + JZ=function(a){return a.I.V().N("html5_pacf_enable_non_dai_live_video_ads")}; + m_=function(a){return a.I.V().N("html5_enable_common_timer_for_survey_web")}; + WJa=function(a){return a.I.V().experiments.ob("enable_desktop_player_underlay")}; + n_=function(a,b){this.Ga=a;this.I=b;this.i=new Map;yH().subscribe("adactiveviewmeasurable",this.pw,this);yH().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ow,this);yH().subscribe("adviewableimpression",this.qw,this)}; + p_=function(a,b,c,d){d=void 0===d?null:d;a.i.has(b)?T("Unexpected registration of layout in LidarApi"):(a.i.set(b,d),Epa(yH(),b,{Av:function(){return c?{currentTime:a.Ga.get().getCurrentTimeSec(2,!1),duration:c,Ec:2===a.Ga.get().getPresentingPlayerType()&&1===o_(a.Ga.get(),2),Vaa:!1,Waa:!0,volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}}))}; + q_=function(a,b){a.i.has(b)?(a.i.delete(b),delete yH().i[b]):T("Unexpected unregistration of layout in LidarApi")}; + r_=function(a,b){this.u=a;this.B=b}; + s_=function(a,b,c,d){var e=void 0===e?new r_(function(){var f=a.getVideoData(1);return f?f.nf():""},function(){return a.V().pageId}):e; + this.I=a;this.u=b;this.B=c;this.C=d;this.Yo=e;this.ZA=null;this.i=new Map;this.Oh=new RH(e)}; + YJa=function(a,b,c,d){d=void 0===d?[]:d;var e=GJa(a.u.get(),c);e?(c=t_(a,XJa(e),e),b.hasOwnProperty("baseUrl")?a.Yo.send(b,c):a.Oh.send(b,c,{},d)):T("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; + u_=function(a,b){g.Zv("adsClientStateChange",b)}; + v_=function(a,b){a.i.has(b.Dv())?T("Trying to register an existing AdErrorInfoSupplier."):a.i.set(b.Dv(),b)}; + w_=function(a,b){a.i.delete(b.Dv())||T("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; + XJa=function(a){var b=X(a.Ia,"metadata_type_ad_placement_config");a=X(a.Ia,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,JL:a}}; + t_=function(a,b,c,d){var e=c?ZJa(a):{};c=c?$Ja(a,c.layoutId):{};var f={},h={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},LH(a.I,d)),Ppa(b.adPlacementConfig)),(f.SLOT_POS=KH(function(){return(b.JL||0).toString()}),f)),c),e),(h.FINAL=KH(function(){return"1"}),h.AD_CPN=KH(function(){var l; + return(null===(l=Vz(a.C.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),h)); + e={};c=g.r(Object.values(aKa));for(f=c.next();!f.done;f=c.next())f=f.value,h=d[f],null!=h&&(e[f]=h.toString());return e}; + ZJa=function(a){var b,c={},d=null===(b=a.ZA)||void 0===b?void 0:bKa(b);null!=d&&(c.SURVEY_ELAPSED_MS=KH(function(){return Math.round(1E3*d).toString()})); + c.SURVEY_LOCAL_TIME_EPOCH_S=KH(function(){return Math.round(Date.now()/1E3).toString()}); + return c}; + $Ja=function(a,b){a=a.i.get(b);if(!a)return{};a=a.CD();if(!a)return{};b={};return b.YT_ERROR_CODE=a.rB.toString(),b.ERRORCODE=a.yx.toString(),b.ERROR_MSG=a.errorMessage,b}; + x_=function(a,b,c){g.I.call(this);this.I=a;this.i=b;this.Na=c;this.listeners=[];this.DE=null;this.EC=new Map;b=new g.uD(this);g.J(this,b);b.T(a,"videodatachange",this.jW);b.T(a,"serverstitchedvideochange",this.GV);this.rp=Vz(this)}; + Vz=function(a,b){var c=a.I.getVideoData(b);return c?cKa(a,c,b||a.I.getPresentingPlayerType(!0)):null}; + dKa=function(a,b,c){var d=cKa(a,b,c);a.rp=d;a.listeners.forEach(function(e){e.AM(d)})}; + cKa=function(a,b,c){var d,e,f,h,l=b.author,m=b.clientPlaybackNonce,n=b.isListed,p=b.Cc,q=b.title,t=b.Bg,u=b.Hf,x=b.isMdxPlayback,y=b.Uh,z=b.mdxEnvironment,G=b.Fk,F=b.Nk,C=b.ip,K=b.videoId||"",S=b.Ph||"",L=b.Ri||"";b=b.El||void 0;p=a.i.get().i.get(p)||{layoutId:null,slotId:null};var W=a.I.getVideoData(1),pa=W.tf();W=W.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var ta=(null===(e=null===(d=null===W||void 0===W?void 0:W.playerConfig)||void 0===d?void 0:d.daiConfig)||void 0=== + e?void 0:e.enableDai)||!1;W=(null===(h=null===(f=null===W||void 0===W?void 0:W.playerConfig)||void 0===f?void 0:f.daiConfig)||void 0===h?void 0:h.enablePreroll)||!1;return Object.assign(Object.assign({},p),{videoId:K,author:l,clientPlaybackNonce:m,playbackDurationMs:c,zJ:a,daiEnabled:ta,KJ:W,isListed:n,tf:pa,Ph:S,title:q,Ri:L,Bg:t,Hf:u,El:b,isMdxPlayback:x,Uh:y,mdxEnvironment:z,Fk:G,Nk:F,ip:C})}; + y_=function(a,b){g.I.call(this);this.I=a;this.i=b;this.listeners=[];this.wp=function(){T("Called 'doUnlockPreroll' before it's initialized.")}; + b=new ky(this);g.J(this,b);b.T(a,"progresssync",this.hV);b.T(a,"presentingplayerstatechange",this.YU);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.yg);b.T(a,"resize",this.xb)}; + z_=function(a,b){var c;b=null!==(c=a.i.get().EC.get(b))&&void 0!==c?c:null;if(null===b)return T("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a=.25*d||c)Q_(a.i,"first_quartile"),k0(a,"unmuted_first_quartile");if(b>=.5*d||c)Q_(a.i,"midpoint"),k0(a,"unmuted_midpoint");if(b>=.75*d||c)Q_(a.i,"third_quartile"),k0(a,"unmuted_third_quartile");a=a.Ya;b*=1E3;if(c=a.J()){for(;a.Ce&&h.zt(c,e-d);return c}; + YKa=function(a,b){var c=X(b.Ia,"metadata_type_sodar_extension_data");if(c)try{hKa(0,c)}catch(d){T("Unexpected error when loading Sodar",a,b,{error:d})}}; + ZKa=function(a,b,c,d,e,f){c=new g.dI(c,new g.SJ);R0(a,b,c,d,e,!1,f)}; + R0=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;g0(c)&&h0(e,0,null)&&(!S_(a,"impression")&&h&&h(),Q_(a,"impression"));S_(a,"impression")&&(g.fI(c,4)&&!g.fI(c,2)&&a.Bf("pause"),0>eI(c,4)&&!(0>eI(c,2))&&a.Bf("resume"),g.fI(c,16)&&.5<=e&&a.Bf("seek"),f&&g.fI(c,2)&&S0(a,c.state,b,d,e))}; + S0=function(a,b,c,d,e,f){if(S_(a,"impression")){var h=1>=Math.abs(d-e);T0(a,b,h?d:e,c,d,f);h&&Q_(a,"complete")}}; + T0=function(a,b,c,d,e,f){R_(a,1E3*c);0>=e||0>=c||(null===b||void 0===b?0:g.U(b,16))||(null===b||void 0===b?0:g.U(b,32))||(h0(c,.25*e,d)&&(f&&!S_(a,"first_quartile")&&f("first"),Q_(a,"first_quartile")),h0(c,.5*e,d)&&(f&&!S_(a,"midpoint")&&f("second"),Q_(a,"midpoint")),h0(c,.75*e,d)&&(f&&!S_(a,"third_quartile")&&f("third"),Q_(a,"third_quartile")))}; + $Ka=function(a,b){S_(a,"impression")&&a.Bf(b?"fullscreen":"end_fullscreen")}; + aLa=function(a){S_(a,"impression")&&a.Bf("clickthrough")}; + bLa=function(a){a.Bf("active_view_measurable")}; + cLa=function(a){S_(a,"impression")&&!S_(a,"seek")&&a.Bf("active_view_fully_viewable_audible_half_duration")}; + dLa=function(a){S_(a,"impression")&&!S_(a,"seek")&&a.Bf("active_view_viewable")}; + eLa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.D=d;this.u=e;this.Ga=f;this.K=h;this.B=l;this.J=m;this.Na=n;this.Va=p;this.C=q;this.zz=!0;this.Cc=this.i=null}; + fLa=function(a,b,c){var d;a.Va.get().Yf("ads_qua","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Vz(a.C.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; + gLa=function(a,b){var c;a.Va.get().Yf("ads_imp","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(c=Vz(a.C.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)}; + U0=function(a){return{enterMs:X(a.Ia,"metadata_type_layout_enter_ms"),exitMs:X(a.Ia,"metadata_type_layout_exit_ms")}}; + V0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u){O0.call(this,a,b,c,d,e,h,l,m,n,q);this.Z=f;this.J=p;this.C=t;this.Na=u;this.Cc=this.u=null}; + hLa=function(a,b){var c;a.Va.get().Yf("ads_imp","acpn."+(null===(c=Vz(a.B.get(),2))||void 0===c?void 0:c.clientPlaybackNonce)+";clr."+b)}; + iLa=function(a,b,c){var d;a.Va.get().Yf("ads_qua","cpn."+X(a.layout.Ia,"metadata_type_content_cpn")+";acpn."+(null===(d=Vz(a.B.get(),2))||void 0===d?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; + W0=function(a,b,c,d,e,f,h,l,m,n,p,q,t,u,x,y,z,G,F){this.Ze=a;this.ya=b;this.i=c;this.B=d;this.Ga=e;this.Va=f;this.K=h;this.D=l;this.u=m;this.C=n;this.Gd=p;this.Y=q;this.fd=t;this.Jc=u;this.S=x;this.Z=y;this.ma=z;this.Na=G;this.J=F}; + X0=function(a){g.I.call(this);this.i=a;this.Gb=new Map}; + Y0=function(a,b){for(var c=[],d=g.r(a.Gb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.i===b.layoutId&&c.push(e);c.length&&cZ(a.i(),c)}; + Z0=function(a,b){var c;g.I.call(this);var d=this;this.C=a;this.u=new Map;this.B=new Map;this.i=null;b.get().addListener(this);g.we(this,function(){b.get().removeListener(d)}); + this.i=(null===(c=b.get().rp)||void 0===c?void 0:c.slotId)||null}; + jLa=function(a,b){var c=[];a=g.r(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; + $0=function(a){this.I=a}; + a1=function(){this.listeners=new Set}; + kLa=function(a,b,c,d,e){uH.call(this,"image-companion",a,b,c,d,e)}; + b1=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Va=e;this.Ze=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");QY(this.Ze(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new N_(c.tc,this.Va,a,c.layoutId)}; + lLa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];O_().forEach(function(b){a.push(b)}); + return{Vd:a,cf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; + mLa=function(a,b,c,d,e){uH.call(this,"shopping-companion",a,b,c,d,e)}; + c1=function(a,b,c,d,e,f,h,l){U_.call(this,a,b,c,d);this.Va=e;this.Ze=f;this.J=l;this.nj=!0;this.B=null;this.C=X(c.Ia,"metadata_type_linked_player_bytes_layout_id");QY(this.Ze(),this);a=X(c.Ia,"metadata_type_ad_placement_config");this.D=new N_(c.tc,this.Va,a,c.layoutId)}; + nLa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];O_().forEach(function(b){a.push(b)}); + return{Vd:a,cf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; + oLa=function(a,b,c,d,e){this.i=a;this.Va=b;this.Ze=c;this.u=d;this.B=e}; + d1=function(a,b,c){uH.call(this,"player-underlay",a,{},b,c);this.ub=c}; + e1=function(a,b,c,d){U_.call(this,a,b,c,d)}; + pLa=function(a){this.i=a}; + f1=function(a,b,c,d,e){U_.call(this,c,a,b,d);this.Va=e;a=X(b.Ia,"metadata_type_ad_placement_config");this.B=new N_(b.tc,e,a,b.layoutId)}; + g1=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; + i1=function(a,b,c){c=void 0===c?h1:c;c.widtha.width*a.height*.2)return{rB:3,yx:501,errorMessage:"ad("+g1(c)+") to container("+g1(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{rB:3,yx:501,errorMessage:"ad("+g1(c)+") covers container("+g1(a)+") center."}}; + qLa=function(a,b){var c=X(a.Ia,"metadata_type_ad_placement_config");return new N_(a.tc,b,c,a.layoutId)}; + j1=function(a){return X(a.Ia,"metadata_type_invideo_overlay_ad_renderer")}; + k1=function(a,b,c,d){uH.call(this,"invideo-overlay",a,b,c,d);this.ub=d}; + l1=function(a,b,c,d,e,f,h,l,m,n,p,q){U_.call(this,f,a,b,e);this.Va=c;this.B=h;this.Ga=l;this.J=m;this.Na=n;this.Od=p;this.C=q;this.K=qLa(b,c)}; + rLa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];O_().forEach(function(b){a.push(b)}); + return{Vd:a,cf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; + m1=function(a,b,c,d,e,f,h,l,m,n,p,q,t){U_.call(this,f,a,b,e);this.Va=c;this.B=h;this.J=l;this.Ga=m;this.K=n;this.Na=p;this.Od=q;this.C=t;this.S=qLa(b,c)}; + sLa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.r(O_()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Vd:a,cf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; + n1=function(a){this.Ga=a;this.i=!1}; + o1=function(a,b,c,d,e,f,h){U_.call(this,c,a,b,d);this.B=e;this.Ga=f;this.Na=h}; + tLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Od=n}; + p1=function(a){g.I.call(this);this.B=a;this.nj=!0;this.Gb=new Map;this.i=new Map;this.u=new Map}; + uLa=function(a,b){var c=[];if(b=a.i.get(b.layoutId)){b=g.r(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c}; + q1=function(a,b,c){g.I.call(this);this.B=a;this.C=b;this.D=c;this.i=this.u=void 0;this.C.get().addListener(this)}; + vLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.K=Y(function(){return new $z}); + g.J(this,this.K);this.ya=Y(function(){return new RZ(f.K)}); + g.J(this,this.ya);this.B=Y(function(){return new OZ}); + g.J(this,this.B);this.Z=Y(function(){return new KZ(a)}); + g.J(this,this.Z);this.Y=Y(function(){return new d_(f.K)}); + g.J(this,this.Y);this.Mb=Y(function(){return new g_}); + g.J(this,this.Mb);this.uc=Y(function(){return new vH(b.V())}); + g.J(this,this.uc);this.ma=Y(function(){return new I0(b)}); + g.J(this,this.ma);this.Za=Y(function(){return new C_(e)}); + g.J(this,this.Za);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.Ja=Y(function(){return new i_(b)}); + g.J(this,this.Ja);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.Zb=Y(function(){return new H0(d)}); + g.J(this,this.Zb);this.C=Y(function(){return new OY(f.Na)}); + g.J(this,this.C);this.Ua=Y(function(){return new HZ(f.Y,f.ya,f.Na,f.C,"SLOT_TYPE_ABOVE_FEED",f.jb)}); + g.J(this,this.Ua);this.Tc=Y(function(){return new M0(b)}); + g.J(this,this.Tc);this.vb=Y(function(){return new N0}); + g.J(this,this.vb);this.qb=Y(function(){return new a1}); + g.J(this,this.qb);this.i=Y(function(){return new x_(b,f.Mb,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.C,this.i);g.J(this,this.dc);this.Ka=Y(function(){return new K0(b,f.i,f.Na,f.Va)}); + g.J(this,this.Ka);this.Ra=Y(function(){return new $0(b)}); + g.J(this,this.Ra);this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.hf=Y(function(){return new D_}); + this.Aa=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.Aa);this.Va=Y(function(){return new s_(b,f.B,f.Aa,f.i)}); + g.J(this,this.Va);this.qd=new t0(u0,r1,function(l,m,n,p){return SZ(f.ya.get(),l,m,n,p)},this.Z,this.Y,this.ya,this.C,this.Na,this.i); + g.J(this,this.qd);this.yc=new Zz(this.Z,this.Ua,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i,this.Ka);this.eb=Y(function(){return h}); + this.Tn=h;this.jb=new s0(this.Z,this.Y,this.i,this.eb,this.Ka,this.Ga,this.Na,this.Ra);g.J(this,this.jb);this.Db=new NZ(this.Z,this.Y,this.Ja,this.eb);g.J(this,this.Db);this.zc=new Tz(this.Z,this.Y,this.Ua,this.i,this.Db,c);g.J(this,this.zc);this.kc=Y(function(){return new J_(f.Zb,f.ya,f.C,f.Ra)}); + g.J(this,this.kc);this.D=Y(function(){return new K_}); + g.J(this,this.D);this.Ea=new z0(a,this.ma);g.J(this,this.Ea);this.u=new A0(a);g.J(this,this.u);this.Ya=new X0(a);g.J(this,this.Ya);this.kb=new B0(a,this.eb);g.J(this,this.kb);this.La=new C0(a,this.Ja,this.Ga,this.i);g.J(this,this.La);this.zb=new Z0(a,this.i);g.J(this,this.zb);this.S=new E0(a);g.J(this,this.S);this.cd=new F0(a);g.J(this,this.cd);this.Hb=new p1(a);g.J(this,this.Hb);this.J=Y(function(){return new v0}); + g.J(this,this.J);this.zd=Y(function(){return new w0(f.Ga)}); + g.J(this,this.zd);this.Nd=Y(function(){return new oLa(f.ma,f.Va,a,f.B,f.Aa)}); + g.J(this,this.Nd);this.ac=Y(function(){return new M_(f.zc)}); + g.J(this,this.ac);this.wc=Y(function(){return new T_(f.Va,f.S)}); + g.J(this,this.wc);this.dd=Y(function(){return new W0(a,f.S,f.i,f.Ra,f.Ga,f.Va,f.Mb,f.Ka,f.Aa,f.hf,f.Gd,f.Ja,f.fd,f.Jc,f.uc,f.Za,f.Tc,f.Na,f.B)}); + g.J(this,this.dd);this.Fc=Y(function(){return new tLa(f.ma,f.Ga,f.Va,f.B,f.Aa,f.Ya,f.Hb,f.Za,f.Na,c)}); + g.J(this,this.Fc);this.ye=Y(function(){return new pLa(f.ma)}); + g.J(this,this.ye);this.Ge=new q1(a,this.qb,this.K);g.J(this,this.Ge);this.Ye=new G0(a,this.vb,this.C,this.i,this.K,this.Na);g.J(this,this.Ye);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Db]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", + this.kc],["SLOT_TYPE_ABOVE_FEED",this.D],["SLOT_TYPE_FORECASTING",this.D],["SLOT_TYPE_IN_PLAYER",this.D],["SLOT_TYPE_PLAYER_BYTES",this.D],["SLOT_TYPE_PLAYER_UNDERLAY",this.D]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ea],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ea],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED", + this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ya],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kb],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.zb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED", + this.zb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kb],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.cd],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Hb]]),zm:new Map([["SLOT_TYPE_ABOVE_FEED",this.J],["SLOT_TYPE_AD_BREAK_REQUEST",this.J],["SLOT_TYPE_FORECASTING",this.J],["SLOT_TYPE_IN_PLAYER",this.J],["SLOT_TYPE_PLAYER_BYTES",this.zd],["SLOT_TYPE_PLAYER_UNDERLAY", + this.J]]),cm:new Map([["SLOT_TYPE_ABOVE_FEED",this.Nd],["SLOT_TYPE_AD_BREAK_REQUEST",this.ac],["SLOT_TYPE_FORECASTING",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.dd],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_UNDERLAY",this.ye]])};this.listeners=[this.B.get()];this.Yp={zc:this.zc,fk:this.S,em:this.vb.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.K.get(),dm:this.qb.get(),wi:this.Ea,eh:this.B.get()}}; + wLa=function(a,b,c,d,e,f,h,l,m,n){this.i=a;this.Ga=b;this.Va=c;this.J=d;this.C=e;this.u=f;this.D=h;this.B=l;this.Na=m;this.Od=n}; + xLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z}); + g.J(this,this.C);this.K=Y(function(){return new RZ(f.C)}); + g.J(this,this.K);this.S=Y(function(){return new OZ}); + g.J(this,this.S);this.D=Y(function(){return new KZ(a)}); + g.J(this,this.D);this.J=Y(function(){return new d_(f.C)}); + g.J(this,this.J);this.dd=Y(function(){return new g_}); + g.J(this,this.dd);this.Mb=Y(function(){return new vH(b.V())}); + g.J(this,this.Mb);this.Ja=Y(function(){return new I0(b)}); + g.J(this,this.Ja);this.Ua=Y(function(){return new C_(e)}); + g.J(this,this.Ua);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.Y=Y(function(){return new i_(b)}); + g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.zb=Y(function(){return new H0(d)}); + g.J(this,this.zb);this.B=Y(function(){return new OY(f.Na)}); + g.J(this,this.B);this.Ka=Y(function(){return new HZ(f.J,f.K,f.Na,f.B,null,f.eb)}); + g.J(this,this.Ka);this.kc=Y(function(){return new M0(b)}); + g.J(this,this.kc);this.jb=Y(function(){return new N0}); + g.J(this,this.jb);this.kb=Y(function(){return new a1}); + g.J(this,this.kb);this.i=Y(function(){return new x_(b,f.dd,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.zd=Y(function(){return new K0(b,f.i,f.Na,f.Va)}); + this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.Ea=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.Ea);this.Va=Y(function(){return new s_(b,f.S,f.Ea,f.i)}); + g.J(this,this.Va);this.cd=Y(function(){return new D_}); + g.J(this,this.cd);this.Fc=new t0(u0,r1,function(l,m,n,p){return SZ(f.K.get(),l,m,n,p)},this.D,this.J,this.K,this.B,this.Na,this.i); + g.J(this,this.Fc);this.yc=new Zz(this.D,this.Ka,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.Ya=Y(function(){return h}); + this.Tn=h;this.eb=new s0(this.D,this.J,this.i,this.Ya,this.zd,this.Ga,this.Na);g.J(this,this.eb);this.qb=new NZ(this.D,this.J,this.Y,this.Ya);g.J(this,this.qb);this.zc=new Tz(this.D,this.J,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Hb=Y(function(){return new J_(f.zb,f.K,f.B)}); + g.J(this,this.Hb);this.ya=Y(function(){return new K_}); + g.J(this,this.ya);this.La=new z0(a,this.Ja);g.J(this,this.La);this.u=new A0(a);g.J(this,this.u);this.Ra=new X0(a);g.J(this,this.Ra);this.Za=new B0(a,this.Ya);g.J(this,this.Za);this.ma=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.ma);this.Z=new E0(a);g.J(this,this.Z);this.uc=new F0(a);g.J(this,this.uc);this.vb=new p1(a);g.J(this,this.vb);this.Aa=Y(function(){return new v0}); + g.J(this,this.Aa);this.Tc=Y(function(){return new w0(f.Ga)}); + g.J(this,this.Tc);this.Db=Y(function(){return new M_(f.zc)}); + g.J(this,this.Db);this.Zb=Y(function(){return new T_(f.Va,f.Z)}); + g.J(this,this.Zb);this.ac=Y(function(){return new wLa(f.Ja,f.Ga,f.Va,f.S,f.Ea,f.Ra,f.vb,f.Ua,f.Na,c)}); + g.J(this,this.ac);this.wc=Y(function(){return new r0(a,f.Z,f.Va,f.Ea,f.cd,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.Mb,f.Ua,f.kc,f.Na)}); + g.J(this,this.wc);this.qd=new q1(a,this.kb,this.C);g.J(this,this.qd);this.Nd=new G0(a,this.jb,this.B,this.i,this.C,this.Na);g.J(this,this.Nd);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.eb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Fc],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", + this.Hb],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY", + this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.u],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ra],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Za],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.ma],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.ma],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Z],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Z],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", + this.Za],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.uc],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.vb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.Tc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.Zb],["SLOT_TYPE_IN_PLAYER",this.ac],["SLOT_TYPE_PLAYER_BYTES",this.wc]])};this.listeners=[this.S.get()];this.Yp={zc:this.zc,fk:null,em:this.jb.get(), + Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:this.kb.get(),wi:this.La,eh:this.S.get()}}; + yLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.D=Y(function(){return new $z}); + g.J(this,this.D);this.J=Y(function(){return new RZ(f.D)}); + g.J(this,this.J);this.K=Y(function(){return new OZ}); + g.J(this,this.K);this.Z=Y(function(){return new KZ(a)}); + g.J(this,this.Z);this.Y=Y(function(){return new d_(f.D)}); + g.J(this,this.Y);this.uc=Y(function(){return new g_}); + g.J(this,this.uc);this.jb=Y(function(){return new vH(b.V())}); + g.J(this,this.jb);this.Ea=Y(function(){return new I0(b)}); + g.J(this,this.Ea);this.qb=Y(function(){return new C_(e)}); + g.J(this,this.qb);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.ma=Y(function(){return new i_(b)}); + g.J(this,this.ma);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.Za=Y(function(){return new H0(d)}); + g.J(this,this.Za);this.B=Y(function(){return new OY(f.Na)}); + g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Y,f.J,f.Na,f.B,null,null)}); + g.J(this,this.Aa);this.Db=Y(function(){return new M0(b)}); + g.J(this,this.Db);this.Ra=Y(function(){return new N0}); + g.J(this,this.Ra);this.i=Y(function(){return new x_(b,f.uc,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.Ua=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.Ua);this.Va=Y(function(){return new s_(b,f.K,f.Ua,f.i)}); + g.J(this,this.Va);this.kc=Y(function(){return new D_}); + g.J(this,this.kc);this.Zb=new t0(u0,r1,function(l,m,n,p){return SZ(f.J.get(),l,m,n,p)},this.Z,this.Y,this.J,this.B,this.Na,this.i); + g.J(this,this.Zb);this.yc=new Zz(this.Z,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.vb=Y(function(){return h}); + this.Tn=h;this.Ya=new NZ(this.Z,this.Y,this.ma,this.vb);g.J(this,this.Ya);this.zc=new Tz(this.Z,this.Y,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new J_(f.Za,f.J,f.B)}); + g.J(this,this.kb);this.ya=Y(function(){return new K_}); + g.J(this,this.ya);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.vb);g.J(this,this.Ja);this.La=new C0(a,this.ma,this.Ga,this.i);g.J(this,this.La);this.S=new E0(a);g.J(this,this.S);this.Hb=new F0(a);g.J(this,this.Hb);this.C=Y(function(){return new v0}); + g.J(this,this.C);this.ac=Y(function(){return new w0(f.Ga)}); + g.J(this,this.ac);this.eb=Y(function(){return new M_(f.zc)}); + g.J(this,this.eb);this.zb=Y(function(){return new T_(f.Va,f.S)}); + g.J(this,this.zb);this.wc=Y(function(){return new a0(f.Ea,f.Ga,f.Va,f.K,c)}); + g.J(this,this.wc);this.Mb=Y(function(){return new r0(a,f.S,f.Va,f.Ua,f.kc,f.Gd,f.i,f.Ga,f.ma,f.fd,f.Jc,f.jb,f.qb,f.Db,f.Na)}); + g.J(this,this.Mb);this.Fc=new G0(a,this.Ra,this.B,this.i,this.D,this.Na);g.J(this,this.Fc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Zb],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES", + this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", + this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.S],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.S],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Hb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.C],["SLOT_TYPE_ABOVE_FEED",this.C],["SLOT_TYPE_FORECASTING",this.C],["SLOT_TYPE_IN_PLAYER",this.C],["SLOT_TYPE_PLAYER_BYTES",this.ac]]), + cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.zb],["SLOT_TYPE_IN_PLAYER",this.wc],["SLOT_TYPE_PLAYER_BYTES",this.Mb]])};this.listeners=[this.K.get()];this.Yp={zc:this.zc,fk:null,em:this.Ra.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.D.get(),dm:null,wi:this.Ka,eh:this.K.get()}}; + zLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z}); + g.J(this,this.C);this.D=Y(function(){return new RZ(f.C)}); + g.J(this,this.D);this.J=Y(function(){return new OZ}); + g.J(this,this.J);this.S=Y(function(){return new KZ(a)}); + g.J(this,this.S);this.Z=Y(function(){return new d_(f.C)}); + g.J(this,this.Z);this.wc=Y(function(){return new g_}); + g.J(this,this.wc);this.kb=Y(function(){return new vH(b.V())}); + g.J(this,this.kb);this.Ea=Y(function(){return new I0(b)}); + g.J(this,this.Ea);this.jb=Y(function(){return new C_(e)}); + g.J(this,this.jb);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.Y=Y(function(){return new i_(b)}); + g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.Ya=Y(function(){return new H0(d)}); + g.J(this,this.Ya);this.B=Y(function(){return new OY(f.Na)}); + g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Z,f.D,f.Na,f.B,null,null)}); + g.J(this,this.Aa);this.Hb=Y(function(){return new M0(b)}); + g.J(this,this.Hb);this.La=Y(function(){return new N0}); + g.J(this,this.La);this.i=Y(function(){return new x_(b,f.wc,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.Ra=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.Ra);this.Va=Y(function(){return new s_(b,f.J,f.Ra,f.i)}); + g.J(this,this.Va);this.uc=Y(function(){return new D_}); + g.J(this,this.uc);this.ac=new t0(u0,r1,function(l,m,n,p){return SZ(f.D.get(),l,m,n,p)},this.S,this.Z,this.D,this.B,this.Na,this.i); + g.J(this,this.ac);this.yc=new Zz(this.S,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.qb=Y(function(){return h}); + this.Tn=h;this.Ua=new NZ(this.S,this.Z,this.Y,this.qb);g.J(this,this.Ua);this.zc=new Tz(this.S,this.Z,this.Aa,this.i,this.Ua,c);g.J(this,this.zc);this.eb=Y(function(){return new J_(f.Ya,f.D,f.B)}); + g.J(this,this.eb);this.ma=Y(function(){return new K_}); + g.J(this,this.ma);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.qb);g.J(this,this.Ja);this.vb=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.vb);this.K=new E0(a);g.J(this,this.K);this.Mb=new F0(a);g.J(this,this.Mb);this.ya=Y(function(){return new v0}); + g.J(this,this.ya);this.kc=Y(function(){return new w0(f.Ga)}); + g.J(this,this.kc);this.Za=Y(function(){return new M_(f.zc)}); + g.J(this,this.Za);this.zb=Y(function(){return new T_(f.Va,f.K)}); + g.J(this,this.zb);this.Db=Y(function(){return new a0(f.Ea,f.Ga,f.Va,f.J,c)}); + g.J(this,this.Db);this.Zb=Y(function(){return new r0(a,f.K,f.Va,f.Ra,f.uc,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.kb,f.jb,f.Hb,f.Na)}); + g.J(this,this.Zb);this.Fc=new G0(a,this.La,this.B,this.i,this.C,this.Na);g.J(this,this.Fc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ua]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.eb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", + this.ma]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", + this.Ja],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.vb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Za],["SLOT_TYPE_FORECASTING", + this.zb],["SLOT_TYPE_IN_PLAYER",this.Db],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.J.get()];this.Yp={zc:this.zc,fk:null,em:this.La.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:null,wi:this.Ka,eh:this.J.get()}}; + s1=function(a,b,c,d,e,f,h,l,m){Z_.call(this,a,b,c,d,e,f,h,m);this.J=l}; + ALa=function(){var a=tKa();a.Vd.push("metadata_type_ad_info_ad_metadata");return a}; + BLa=function(a,b,c,d,e,f){this.u=a;this.Ga=b;this.Va=c;this.B=d;this.i=e;this.Od=f}; + CLa=function(a,b,c,d,e){g.I.call(this);var f=this;this.C=Y(function(){return new $z}); + g.J(this,this.C);this.D=Y(function(){return new RZ(f.C)}); + g.J(this,this.D);this.J=Y(function(){return new OZ}); + g.J(this,this.J);this.S=Y(function(){return new KZ(a)}); + g.J(this,this.S);this.Z=Y(function(){return new d_(f.C)}); + g.J(this,this.Z);this.wc=Y(function(){return new g_}); + g.J(this,this.wc);this.jb=Y(function(){return new TKa(b)}); + g.J(this,this.jb);this.qb=Y(function(){return new vH(b.V())}); + g.J(this,this.qb);this.Ea=Y(function(){return new I0(b)}); + g.J(this,this.Ea);this.vb=Y(function(){return new C_(e)}); + g.J(this,this.vb);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.Y=Y(function(){return new i_(b)}); + g.J(this,this.Y);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.Za=Y(function(){return new H0(d)}); + g.J(this,this.Za);this.B=Y(function(){return new OY(f.Na)}); + g.J(this,this.B);this.Aa=Y(function(){return new HZ(f.Z,f.D,f.Na,f.B,null,null)}); + g.J(this,this.Aa);this.Hb=Y(function(){return new M0(b)}); + g.J(this,this.Hb);this.Ra=Y(function(){return new N0}); + g.J(this,this.Ra);this.i=Y(function(){return new x_(b,f.wc,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.Ua=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.Ua);this.Va=Y(function(){return new s_(b,f.J,f.Ua,f.i)}); + g.J(this,this.Va);this.uc=Y(function(){return new D_}); + g.J(this,this.uc);this.ac=new t0(GKa,r1,function(l,m,n,p){return LJa(f.D.get(),l,m,n,p)},this.S,this.Z,this.D,this.B,this.Na,this.i); + g.J(this,this.ac);this.yc=new Zz(this.S,this.Aa,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i);this.zb=Y(function(){return h}); + this.Tn=h;this.Ya=new NZ(this.S,this.Z,this.Y,this.zb);g.J(this,this.Ya);this.zc=new Tz(this.S,this.Z,this.Aa,this.i,this.Ya,c);g.J(this,this.zc);this.kb=Y(function(){return new J_(f.Za,f.D,f.B)}); + g.J(this,this.kb);this.ma=Y(function(){return new K_}); + g.J(this,this.ma);this.Ka=new z0(a,this.Ea);g.J(this,this.Ka);this.u=new A0(a);g.J(this,this.u);this.Ja=new B0(a,this.zb);g.J(this,this.Ja);this.La=new C0(a,this.Y,this.Ga,this.i);g.J(this,this.La);this.K=new E0(a);g.J(this,this.K);this.Mb=new F0(a);g.J(this,this.Mb);this.ya=Y(function(){return new v0}); + g.J(this,this.ya);this.kc=Y(function(){return new w0(f.Ga)}); + g.J(this,this.kc);this.eb=Y(function(){return new M_(f.zc)}); + g.J(this,this.eb);this.Db=Y(function(){return new T_(f.Va,f.K)}); + g.J(this,this.Db);this.Zb=Y(function(){return new r0(a,f.K,f.Va,f.Ua,f.uc,f.Gd,f.i,f.Ga,f.Y,f.fd,f.Jc,f.qb,f.vb,f.Hb,f.Na)}); + g.J(this,this.Zb);this.Fc=Y(function(){return new BLa(f.Ea,f.Ga,f.Va,f.J,f.jb,c)}); + g.J(this,this.Fc);this.Tc=new G0(a,this.Ra,this.B,this.i,this.C,this.Na);g.J(this,this.Tc);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.ac],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ya]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.kb],["SLOT_TYPE_FORECASTING",this.ma],["SLOT_TYPE_IN_PLAYER",this.ma],["SLOT_TYPE_PLAYER_BYTES", + this.ma]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ka],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED", + this.Ja],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.La],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.La],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.K],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.K],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ja],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mb]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ya],["SLOT_TYPE_FORECASTING",this.ya],["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.kc]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", + this.eb],["SLOT_TYPE_FORECASTING",this.Db],["SLOT_TYPE_IN_PLAYER",this.Fc],["SLOT_TYPE_PLAYER_BYTES",this.Zb]])};this.listeners=[this.J.get()];this.Yp={zc:this.zc,fk:null,em:this.Ra.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.C.get(),dm:null,wi:this.Ka,eh:this.J.get()}}; + DLa=function(a,b,c,d,e,f){this.i=a;this.Ga=b;this.Va=c;this.u=d;this.B=e;this.Od=f}; + ELa=function(a,b,c,d,e){g.I.call(this);var f=this;this.K=Y(function(){return new $z}); + g.J(this,this.K);this.S=Y(function(){return new RZ(f.K)}); + g.J(this,this.S);this.C=Y(function(){return new OZ}); + g.J(this,this.C);this.D=Y(function(){return new KZ(a)}); + g.J(this,this.D);this.J=Y(function(){return new d_(f.K)}); + g.J(this,this.J);this.vb=Y(function(){return new g_}); + g.J(this,this.vb);this.Mb=Y(function(){return new TKa(b)}); + g.J(this,this.Mb);this.Zb=Y(function(){return new vH(b.V())}); + g.J(this,this.Zb);this.Ja=Y(function(){return new I0(b)}); + g.J(this,this.Ja);this.ac=Y(function(){return new C_(e)}); + g.J(this,this.ac);this.fd=Y(function(){return new MJ(b)}); + g.J(this,this.fd);this.ma=Y(function(){return new i_(b)}); + g.J(this,this.ma);this.Gd=Y(function(){return new L0(b)}); + g.J(this,this.Gd);this.Jc=Y(function(){return new j_(b)}); + g.J(this,this.Jc);this.Na=Y(function(){return new k_(b)}); + g.J(this,this.Na);this.zb=Y(function(){return new H0(d)}); + g.J(this,this.zb);this.B=Y(function(){return new OY(f.Na)}); + g.J(this,this.B);this.Ka=Y(function(){return new HZ(f.J,f.S,f.Na,f.B,null,f.Ya,3)}); + g.J(this,this.Ka);this.wc=Y(function(){return new M0(b)}); + g.J(this,this.wc);this.eb=Y(function(){return new N0}); + g.J(this,this.eb);this.i=Y(function(){return new x_(b,f.vb,f.Na)}); + g.J(this,this.i);this.dc=new f_(this.Na,this.B,this.i);g.J(this,this.dc);this.Y=Y(function(){return new K0(b,f.i,f.Na,f.Va)}); + g.J(this,this.Y);this.Ea=Y(function(){return new $0(b)}); + g.J(this,this.Ea);this.Ga=Y(function(){return new y_(b,f.i)}); + g.J(this,this.Ga);this.zd=Y(function(){return new D_}); + this.kb=Y(function(){return new n_(f.Ga,b)}); + g.J(this,this.kb);this.Va=Y(function(){return new s_(b,f.C,f.kb,f.i)}); + g.J(this,this.Va);this.yc=new Zz(this.D,this.Ka,c,this.Na,a,this.i,this.Ga);g.J(this,this.yc);var h=new h_(b,this.yc,this.Ga,this.i,this.Y);this.Ra=Y(function(){return h}); + this.Tn=h;this.cd=new t0(HKa,r1,function(l,m,n,p){return LJa(f.S.get(),l,m,n,p)},this.D,this.J,this.S,this.B,this.Na,this.i); + g.J(this,this.cd);this.Ya=new s0(this.D,this.J,this.i,this.Ra,this.Y,this.Ga,this.Na,this.Ea);g.J(this,this.Ya);this.qb=new NZ(this.D,this.J,this.ma,this.Ra);g.J(this,this.qb);this.zc=new Tz(this.D,this.J,this.Ka,this.i,this.qb,c);g.J(this,this.zc);this.Hb=Y(function(){return new J_(f.zb,f.S,f.B,f.Ea)}); + g.J(this,this.Hb);this.ya=Y(function(){return new K_}); + g.J(this,this.ya);this.La=new z0(a,this.Ja);g.J(this,this.La);this.u=new A0(a);g.J(this,this.u);this.Ua=new B0(a,this.Ra);g.J(this,this.Ua);this.Za=new C0(a,this.ma,this.Ga,this.i);g.J(this,this.Za);this.jb=new Z0(a,this.i);g.J(this,this.jb);this.Z=new E0(a);g.J(this,this.Z);this.Fc=new F0(a);g.J(this,this.Fc);this.Aa=Y(function(){return new v0}); + g.J(this,this.Aa);this.dd=Y(function(){return new w0(f.Ga)}); + g.J(this,this.dd);this.Db=Y(function(){return new M_(f.zc)}); + g.J(this,this.Db);this.kc=Y(function(){return new T_(f.Va,f.Z)}); + g.J(this,this.kc);this.Tc=Y(function(){return new W0(a,f.Z,f.i,f.Ea,f.Ga,f.Va,f.vb,f.Y,f.kb,f.zd,f.Gd,f.ma,f.fd,f.Jc,f.Zb,f.ac,f.wc,f.Na,f.C)}); + g.J(this,this.Tc);this.uc=Y(function(){return new DLa(f.Ja,f.Ga,f.Va,f.C,f.Mb,c)}); + g.J(this,this.uc);this.qd=new G0(a,this.eb,this.B,this.i,this.K,this.Na);g.J(this,this.qd);this.Ld={jq:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.zc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ya],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cd],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.yc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.qb]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hb],["SLOT_TYPE_FORECASTING",this.ya], + ["SLOT_TYPE_IN_PLAYER",this.ya],["SLOT_TYPE_PLAYER_BYTES",this.ya]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.La],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.u],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.u],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.u],["TRIGGER_TYPE_SLOT_ID_EXITED",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.u],["TRIGGER_TYPE_SLOT_ID_SCHEDULED", + this.u],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ua],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Za],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Za],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.jb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.jb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Z],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.Z],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ua],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Fc]]),zm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST", + this.Aa],["SLOT_TYPE_FORECASTING",this.Aa],["SLOT_TYPE_IN_PLAYER",this.Aa],["SLOT_TYPE_PLAYER_BYTES",this.dd]]),cm:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Db],["SLOT_TYPE_FORECASTING",this.kc],["SLOT_TYPE_PLAYER_BYTES",this.Tc],["SLOT_TYPE_IN_PLAYER",this.uc]])};this.listeners=[this.C.get()];this.Yp={zc:this.zc,fk:null,em:this.eb.get(),Tf:this.Na.get(),Zn:this.Ga.get(),yc:this.yc,Ul:this.K.get(),dm:null,wi:this.La,eh:this.C.get()}}; + t1=function(a,b,c,d){g.I.call(this);var e=this;this.i=FLa(function(){return e.u},a,b,c,d); + g.J(this,this.i);this.u=(new oZ(this.i)).B();g.J(this,this.u)}; + u1=function(a){return a.i.Yp}; + FLa=function(a,b,c,d,e){try{var f=b.V();if(g.vF(f))var h=new vLa(a,b,c,d,e);else if(g.yF(f))h=new xLa(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===f.deviceParams.c)h=new zLa(a,b,c,d,e);else if(mF(f))h=new yLa(a,b,c,d,e);else if(g.fF(f))h=new CLa(a,b,c,d,e);else if(g.eF(f))h=new ELa(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.V(),T("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,interface:e.deviceParams.c, + Saa:e.deviceParams.cver,Raa:e.deviceParams.ctheme,Qaa:e.deviceParams.cplayer,dba:e.playerStyle}),new gKa(a,b,c,d)}}; + v1=function(a,b){this.i=a;this.fk=b}; + w1=function(a){nL.call(this,a)}; + x1=function(a,b,c,d,e){uL.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",U:[{G:"svg",L:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},U:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.u=Math.ceil(10*Math.PI); + this.hide()}; + y1=function(a,b,c,d,e,f){QK.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",W:{tabindex:"0"},U:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",U:[{G:"div",L:"ytp-ad-action-interstitial-card",U:[{G:"div",L:"ytp-ad-action-interstitial-image-container"},{G:"div",L:"ytp-ad-action-interstitial-headline-container"},{G:"div",L:"ytp-ad-action-interstitial-description-container"},{G:"div",L:"ytp-ad-action-interstitial-action-button-container"}]}]}]}, + "ad-action-interstitial",c,d);this.Eg=e;this.Ji=f;this.navigationEndpoint=this.i=this.skipButton=this.u=this.actionButton=null;this.Ja=this.Fa("ytp-ad-action-interstitial-image-container");this.C=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-image");g.J(this,this.C);this.C.Da(this.Ja);this.Ea=this.Fa("ytp-ad-action-interstitial-headline-container");this.K=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-headline");g.J(this,this.K);this.K.Da(this.Ea); + this.Aa=this.Fa("ytp-ad-action-interstitial-description-container");this.D=new sL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-description");g.J(this,this.D);this.D.Da(this.Aa);this.Ua=this.Fa("ytp-ad-action-interstitial-background-container");this.Y=new jL(this.api,this.Wa,this.layoutId,this.ub,"ytp-ad-action-interstitial-background",!0);g.J(this,this.Y);this.Y.Da(this.Ua);this.La=this.Fa("ytp-ad-action-interstitial-action-button-container");this.B=new ky;g.J(this,this.B);this.hide()}; + GLa=function(a){var b=g.vg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; + z1=function(a,b,c,d){QK.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",U:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.K=[];this.Za=this.Aa=this.C=this.Ua=this.Ja=null;this.La=!1;this.D=null;this.Y=0;a=this.Fa("ytp-ad-overlay-container");this.Ea=new DL(a,45E3,6E3,.3,.4);g.J(this,this.Ea);this.B=HLa(this);g.J(this,this.B);this.B.Da(a);this.u=ILa(this);g.J(this,this.u);this.u.Da(a);this.i=JLa(this);g.J(this,this.i);this.i.Da(a);this.hide()}; + HLa=function(a){var b=new g.PK({G:"div",L:"ytp-ad-text-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element, + c)}); + a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)}); + a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);b.hide();return b}; + ILa=function(a){var b=new g.PK({G:"div",Ha:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-text-image",U:[{G:"img",W:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",va:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",va:"{{description}}"},{G:"div",Ha:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], + va:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){return B1(a,b.element,c)}); + a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){return B1(a,b.element,c)}); + a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.WV);b.hide();return b}; + JLa=function(a){var b=new g.PK({G:"div",L:"ytp-ad-image-overlay",U:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",U:[{G:"button",L:"ytp-ad-overlay-close-button",U:[cL(A1)]}]},{G:"div",L:"ytp-ad-overlay-image",U:[{G:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){return B1(a,b.element,c)}); + a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.zi);b.hide();return b}; + C1=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.Ly(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.vg("video-ads ytp-ad-module")||null,null==b)g.Ly(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.PK({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.J(a,a.Aa),a.Aa.Da(b),b=new rL(a.api,a.Wa,a.layoutId,a.ub,a.Aa.element,!1),g.J(a,b),b.init(tH("ad-info-hover-text-button"),c, + a.macros),a.D){b.Da(a.D,0);b.subscribe("f",a.qT,a);b.subscribe("e",a.rF,a);a.T(a.D,"click",a.rT);var d=g.vg("ytp-ad-button",b.element);a.T(d,"click",function(){var e,f,h;if(null===(h=null===(f=null===(e=c.button)||void 0===e?void 0:e.buttonRenderer)||void 0===f?void 0:f.serviceEndpoint)||void 0===h?0:h.adInfoDialogEndpoint)a.La=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); + a.Za=b}else g.Ly(Error("Ad info button container within overlay ad was not present."))}else g.My(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; + KLa=function(a){return a.C&&a.C.closeButton&&a.C.closeButton.buttonRenderer&&(a=a.C.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]}; + LLa=function(a,b){if(D1(a,E1)||a.api.Je())return!1;var c=RK(b.title),d=RK(b.description);if(g.$a(c)||g.$a(d))return!1;a.Rg(a.B.element,b.trackingParams||null);a.B.Sa("title",RK(b.title));a.B.Sa("description",RK(b.description));a.B.Sa("displayUrl",RK(b.displayUrl));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.B.show();a.Ea.start();a.ib(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.Y++}); + return!0}; + MLa=function(a,b){if(D1(a,E1)||a.api.Je())return!1;var c=RK(b.title),d=RK(b.description);if(g.$a(c)||g.$a(d))return!1;a.Rg(a.u.element,b.trackingParams||null);a.u.Sa("title",RK(b.title));a.u.Sa("description",RK(b.description));a.u.Sa("displayUrl",RK(b.displayUrl));a.u.Sa("imageUrl",Psa(b.image));b.navigationEndpoint&&Eb(a.K,b.navigationEndpoint);a.Ua=b.imageNavigationEndpoint||null;a.u.show();a.Ea.start();a.ib(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.Y++}); + return!0}; + NLa=function(a,b){if(a.api.Je())return!1;var c=Qsa(b.image),d=c;c.widthdocument.documentMode)c=Ef;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.Gg("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Sga(d.style)}b=Paa(c,Ff({"background-image":'url("'+b+'")'}));a.style.cssText=Cf(b)}}; + ZLa=function(a){var b=g.vg("html5-video-player");b&&g.O(b,"ytp-ad-display-override",a)}; + R1=function(a,b,c){nL.call(this,a);this.api=a;this.u={};this.K=b;a=new g.V({G:"div",Ha:["video-ads","ytp-ad-module"]});g.J(this,a);UE&&g.N(a.element,"ytp-ads-tiny-mode");this.J=new JK(a.element);g.J(this,this.J);g.NM(this.api,a.element,4);WJa(c)&&(c=new g.V({G:"div",Ha:["ytp-ad-underlay"]}),g.J(this,c),this.B=new JK(c.element),g.J(this,this.B),g.NM(this.api,c.element,0));g.J(this,fta())}; + $La=function(a,b){a=nc(a.u,b.id,null);null==a&&g.My(Error("Component not found for element id: "+b.id));return a||null}; + S1=function(a){g.$M.call(this,a);var b=this;this.u=this.Wa=null;this.created=!1;this.Vo=new qK(this.player);this.B=function(){function d(){return b.Wa} + if(null!=b.u)return b.u;var e=qsa({np:a.getVideoData(1)});e=new iIa({UQ:new v1(function(){return b.Wa},u1(b.i).fk), + Yo:e.MR(),jR:d,hT:d,wi:u1(b.i).wi,Oh:e.QD(),I:b.player,Tf:u1(b.i).Tf,Va:b.i.i.Va,eh:u1(b.i).eh,Jc:b.i.i.Jc});b.u=e.PP;return b.u}; + this.i=new t1(this.player,this,this.Vo,this.B);g.J(this,this.i);var c=a.V();!kF(c)||g.eF(c)||mF(c)||(g.J(this,new R1(a,function(){return b.Wa},u1(this.i).Tf)),g.J(this,new w1(a)))}; + aMa=function(a){a.created!==a.loaded&&T("Created and loaded are out of sync")}; + T1=function(a,b){b===a.To&&(a.To=void 0)}; + bMa=function(a){a.Wa?u1(a.i).yc.fE()||a.Wa.fE()||u1(a.i).Zn.wp():T("AdService is null when calling maybeUnlockPrerollIfReady")}; + cMa=function(a){a=g.r(u1(a.i).eh.Ki.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.rb&&"core"===b.gb)return!0;return!1}; + dMa=function(a){a=g.r(u1(a.i).eh.Ki.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1}; + vja=function(a,b,c){c=void 0===c?"":c;var d=u1(a.i).Tf,e=a.player.getVideoData(1),f=e&&e.getPlayerResponse()||{};f=f&&f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;e=e&&e.tf()||!1;d=eMa(b,d,f,e);yja(u1(a.i).zc,c,d.oA,b);a.Wa&&0>>0)+"_",e=0;return b}); + ha("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;c=e}}); + ha("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Da(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}}); + ha("String.prototype.repeat",function(a){return a?a:function(b){var c=Da(this,null,"repeat");if(0>b||1342177279>>=1)c+=c;return d}}); + ha("Set",function(a){function b(c){this.i=new Map;if(c){c=g.r(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.i.size} + if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)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||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; + b.prototype.add=function(c){c=0===c?0:c;this.i.set(c,c);this.size=this.i.size;return this}; + b.prototype.delete=function(c){c=this.i.delete(c);this.size=this.i.size;return c}; + b.prototype.clear=function(){this.i.clear();this.size=0}; + b.prototype.has=function(c){return this.i.has(c)}; + b.prototype.entries=function(){return this.i.entries()}; + b.prototype.values=function(){return this.i.values()}; + b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.i.forEach(function(f){return c.call(d,f,f,e)})}; + return b}); + ha("Array.prototype.values",function(a){return a?a:function(){return Ca(this,function(b,c){return c})}}); + ha("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l}; + var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;hb?-c:c}}); + ha("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); + ha("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(0>c&&(c=Math.max(c+e,0));cc&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c>>0);eaa=0;g.Qa(Sa,Error);Sa.prototype.name="CustomError";var pg;g.Qa(Ta,Sa);Ta.prototype.name="AssertionError";var gd,uaa="undefined"!==typeof TextDecoder;var jb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},ab=/&/g,bb=//g,db=/"/g,eb=/'/g,fb=/\x00/g,jaa=/[\x00&<>"']/;var vb,Am,vn;vb=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0); + for(var c=0;cc&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1}; + g.Qb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;fparseFloat(Z1)){Y1=String(a2);break a}}Y1=Z1}var Hc=Y1,raa={},b2;if(g.D.document&&g.Qc){var uMa=Gc();b2=uMa?uMa:parseInt(Hc,10)||void 0}else b2=void 0;var saa=b2;var dF,$G;g.fj=wc();dF=Ac()||Vb("iPod");$G=Vb("iPad");g.WE=Vb("Android")&&!(xc()||wc()||(Sb?0:Vb("Opera"))||(vc()?Tb("Silk"):Vb("Silk")));g.ej=xc();g.gj=yc()&&!Bc();var Lc={},Sc=null;var taa="function"===typeof Uint8Array.prototype.slice,Tc,qd=0,rd=0;Xc.prototype.clone=function(){return Zc(this.u,this.C,this.B-this.C)}; + Xc.prototype.clear=function(){this.u=null;this.i=this.B=this.C=0;this.Bl=this.D=!1}; + Xc.prototype.reset=function(){this.i=this.C}; + Xc.prototype.advance=function(a){this.i+=a}; + var Yc=[];bd.prototype.reset=function(){this.i.reset();this.u=this.C=-1}; + bd.prototype.advance=function(a){this.i.advance(a)};jd.prototype.push=function(a){if(!(this.u+1>>0);g.Qa(g.Ue,g.I);g.Ue.prototype[Ce]=!0;g.k=g.Ue.prototype;g.k.addEventListener=function(a,b,c,d){Je(this,a,b,c,d)}; + g.k.removeEventListener=function(a,b,c,d){Qe(this,a,b,c,d)}; + g.k.dispatchEvent=function(a){var b=this.La;if(b){var c=[];for(var d=1;b;b=b.La)c.push(b),++d}b=this.qb;d=a.type||a;if("string"===typeof a)a=new g.xe(a,b);else if(a instanceof g.xe)a.target=a.target||b;else{var e=a;a=new g.xe(d,b);g.tc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Ve(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Ve(h,d,!0,a)&&e,a.u||(e=Ve(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&fl?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.i.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+ + e:"")}; + g.k.get=function(a,b){for(var c=a+"=",d=(this.i.cookie||"").split(";"),e=0,f;ed&&this.Kau||401===u||0===u)c.u=x.concat(c.u),c.Aa||c.i.enabled||c.i.start();b&&b("net-send-failed",u)},t=function(){c.Ja?c.Ja.send(n,p,q):c.jb(n,p,q)}; + m?m.then(function(u){n.uq["Content-Encoding"]="gzip";n.uq["Content-Type"]="application/binary";n.body=u;n.bR=2;t()},function(){t()}):t()}}}}; + g.k.zD=function(){this.flush()}; + g.w(lj,g.xe);mj.prototype.Oe=function(){var a=new ij(1654,this.ma?this.ma:Vh,"0",this.J,this.B,this.C,!1,void 0,void 0,void 0,this.K?this.K:void 0);if(this.Z){var b=this.Z;Od(b,1)||Pd(b,1,1);Yd(a.D,1,b)}if(this.u){b=this.u;var c=Wd(a.D,Oi,1),d=Wd(c,Ni,11);d||(d=new Ni);Pd(d,7,b);Yd(c,11,d);Od(c,1)||Pd(c,1,1);Yd(a.D,1,c)}this.D&&(a.S=this.D);this.i&&(a.Y=this.i);this.S&&((b=this.S)?(a.C||(a.C=new Wh),b=ae(b),Pd(a.C,4,b)):a.C&&Pd(a.C,4,void 0));this.ya&&(b=this.ya,a.C||(a.C=new Wh),Sd(a.C,2,b));this.Y&&(b=this.Y, + a.Ra=!0,kj(a,b));return a};nj.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Kh,c=[],d=0;d>>3;1!=f.B&&2!=f.B&&15!=f.B&&lk(f,h,l,"unexpected tag");f.u=1;f.i=0;f.C=0} + function c(m){f.C++;5==f.C&&m&240&&lk(f,h,l,"message length too long");f.i|=(m&127)<<7*(f.C-1);m&128||(f.u=2,f.S=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.i):f.D=Array(f.i),0==f.i&&e())} + function d(m){f.D[f.S++]=m;f.S==f.i&&e()} + function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.push(m)}f.u=0} + for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;lb||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?tk(this,7):7==c?tk(this,8):d||tk(this,3)),this.u||(this.u=Qba(this.i),null==this.u&&tk(this,5)),2this.B){var h=a.length;c=[];try{if(this.u.Vx())for(var l=0;lthis.B){l=e.substr(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){tk(this,5);uk(this);break a}}4==b?(0!=e.length|| + this.Z?tk(this,2):tk(this,4),uk(this)):tk(this,1)}}}catch(p){tk(this,6),uk(this)}};g.k=vk.prototype;g.k.gm=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this}; + g.k.addListener=function(a,b){this.gm(a,b);return this}; + g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Ab(c,b);(a=this.i[a])&&g.Ab(a,b);return this}; + g.k.once=function(a,b){var c=this.i[a];c||(c=[],this.i[a]=c);c.push(b);return this}; + g.k.gU=function(a){var b=this.u.data;b&&wk(a,b);(b=this.i.data)&&wk(a,b);this.i.data=[]}; + g.k.QV=function(){switch(this.B.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")}};yk.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Fk(function(h){var l=h.Yy(),m=h.getMetadata(),n=Hk(e,!1);m=Ik(e,m,n,f+l.getName());var p=Jk(n,l.u,!0);h=l.i(h.i);n.send(m,"POST",h);return p},this.C).call(this,Aj(d,b,c))};Kk.prototype.create=function(a,b){return Gk(this.i,"https://waa-pa.googleapis.com/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},GMa)};Mk.prototype.snapshot=function(a){if(this.i)throw Error("Already disposed");return this.u.then(function(b){var c=b.aR;return new Promise(function(d){c(function(e){d(e)},[a.yJ, + a.pba])})})}; + Mk.prototype.dispose=function(){this.i=!0;this.u.then(function(a){(a=a.eX)&&a()})}; + Mk.prototype.isDisposed=function(){return this.i};/* + + SPDX-License-Identifier: Apache-2.0 + */ + var Tk={};g.w(Ok,Nk);Ok.prototype.toString=function(){return this.i}; + var Eta=new Ok("about:invalid#zTSz",Tk);var Pk;var Sk=[Rk("data"),Rk("http"),Rk("https"),Rk("mailto"),Rk("ftp"),new Qk(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(Wk,Vk);Wk.prototype.toString=function(){return this.i.toString()};ea.Object.defineProperties(cl.prototype,{u:{configurable:!0,enumerable:!0,get:function(){return this.i.a}}, + B:{configurable:!0,enumerable:!0,get:function(){return this.i.b}}});g.w(el,g.I);g.w(fl,el);fl.prototype.Tz=function(a){this.i+=1;var b=new cl(this.J(a.yJ));a=b.u;b=Rc(b.B);var c=new je;a=Pd(c,1,a);a=Pd(a,2,b);b=new ke;c=de;b.i||(b.i={});var d=a?a.oh(!1):a;b.i[3]=a;a=Vd(b,3,c,d);b=new md;ud(b,1,ee(a,he,1),Aaa);ud(b,2,ee(a,ie,2),Baa);ud(b,3,ee(a,je,3),Caa);fe(a,b);return pd(b)}; + fl.prototype.B=function(){return this.i>=this.C}; + fl.prototype.dispose=function(){this.D.dispose()}; + g.w(gl,el);gl.prototype.Tz=function(){return this.i}; + gl.prototype.B=function(){return!1}; + dl.prototype.isReady=function(){return!!this.Vu}; + dl.prototype.ready=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.A(d,c.LL,0)})})}; + dl.prototype.Tz=function(a){if(!this.isReady())throw Error("Not ready");try{var b=this.Vu,c=Date.now();void 0!==b.u&&this.logger.Iz(fca(b.u));try{var d=b.Tz(a)}catch(e){throw jl(this,5,e);}b.B()&&hl(this,1);this.logger.cw("m",Date.now()-c);return d}catch(e){return this.onError(e instanceof Error?e:Error(String(e)),"Could not mint"),a="WE:",a=e instanceof le?a+(e.code+":"+e.message+":"+e.stack):e instanceof Error?a+(e.message+":"+e.stack):a+(""+e),new Uint8Array(g.Va(a.substring(0,2048)))}};var Pn;Pn=["av.default","js","unreleased"].slice(-1)[0];var km=document,zl=window;var gda={NONE:0,w1:1},Mca={SO:0,y8:1,x8:2,z8:3};ml.prototype.isVisible=function(){return this.Qp?.3<=this.Zc:.5<=this.Zc};var Jm={xZ:0,N1:1},Kca={NONE:0,T2:1,n2:2};nl.prototype.getValue=function(){return this.u}; + g.w(ol,nl);ol.prototype.setValue=function(a){if(null!==this.u||!g.gc(this.B,a))return!1;this.u=a;return!0}; + g.w(pl,nl);pl.prototype.setValue=function(a){if(null!==this.u||"number"!==typeof a)return!1;this.u=a;return!0}; + g.w(ql,nl);ql.prototype.setValue=function(a){if(null!==this.u||"string"!==typeof a)return!1;this.u=a;return!0};rl.prototype.disable=function(){this.u=!1}; + rl.prototype.enable=function(){this.u=!0}; + rl.prototype.isEnabled=function(){return this.u}; + rl.prototype.reset=function(){this.i={};this.u=!0;this.B={}};var hda=!g.Qc&&!yc();wl.prototype.now=function(){return 0}; + wl.prototype.u=function(){return 0}; + wl.prototype.B=function(){return 0}; + wl.prototype.i=function(){return 0};g.w(yl,wl);yl.prototype.now=function(){return xl()&&zl.performance.now?zl.performance.now():wl.prototype.now.call(this)}; + yl.prototype.u=function(){return xl()&&zl.performance.memory?zl.performance.memory.totalJSHeapSize||0:wl.prototype.u.call(this)}; + yl.prototype.B=function(){return xl()&&zl.performance.memory?zl.performance.memory.usedJSHeapSize||0:wl.prototype.B.call(this)}; + yl.prototype.i=function(){return xl()&&zl.performance.memory?zl.performance.memory.jsHeapSizeLimit||0:wl.prototype.i.call(this)};var qca=cf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); + g.D.addEventListener("test",null,b)}catch(c){}return a});El.prototype.isVisible=function(){return 1===Dl(km)};g.lf("csi.gstatic.com");g.lf("googleads.g.doubleclick.net");g.lf("pagead2.googlesyndication.com");g.lf("partner.googleadservices.com");g.lf("pubads.g.doubleclick.net");g.lf("securepubads.g.doubleclick.net");g.lf("tpc.googlesyndication.com");var tca=/https?:\/\/[^\/]+/,rca={pY:"allow-forms",qY:"allow-modals",rY:"allow-orientation-lock",sY:"allow-pointer-lock",tY:"allow-popups",uY:"allow-popups-to-escape-sandbox",vY:"allow-presentation",wY:"allow-same-origin",xY:"allow-scripts",yY:"allow-top-navigation",zY:"allow-top-navigation-by-user-activation"},wca=cf(function(){return sca()});g.k=Ml.prototype;g.k.getHeight=function(){return this.bottom-this.top}; + g.k.clone=function(){return new Ml(this.top,this.right,this.bottom,this.left)}; + g.k.contains=function(a){return this&&a?a instanceof Ml?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="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};g.k=g.Pl.prototype;g.k.clone=function(){return new g.Pl(this.left,this.top,this.width,this.height)}; + g.k.contains=function(a){return a instanceof g.ag?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.distance=function(a){var b=a.xe)return"";this.i.sort(function(p,q){return p-q}); + c=null;b="";for(var f=0;f=n.length){e-=n.length;a+=n;b=this.B;break}c=null==c?h:c}}e="";null!=c&&(e=b+"trn="+c);return a+e+d};Cm.prototype.setInterval=function(a,b){return zl.setInterval(a,b)}; + Cm.prototype.clearInterval=function(a){zl.clearInterval(a)}; + Cm.prototype.setTimeout=function(a,b){return zl.setTimeout(a,b)}; + Cm.prototype.clearTimeout=function(a){zl.clearTimeout(a)};Gm.prototype.getContext=function(){if(!this.i){if(!zl)throw Error("Context has not been set and window is undefined.");this.i=Bm(Cm)}return this.i};g.w(Hm,Nd);var Lca={a8:1,PQ:2,i6:3};rf(kf(g.lf("https://pagead2.googlesyndication.com/pagead/osd.js")));Km.prototype.HF=function(a){if("string"===typeof a&&0!=a.length){var b=this.featureSet;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=d[0];d=1=this.S?a:this;b!==this.i?(this.J=this.i.J,Hn(this)):this.J!==this.i.J&&(this.J=this.i.J,Hn(this))}; + g.k.En=function(a){if(a.u===this.i){var b=this.C,c=this.Z;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.B==a.B)b=b.i,c=a.i,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.C=a;!c&&Gn(this)}}; + g.k.Rk=function(){return this.Z}; + g.k.dispose=function(){this.Aa=!0}; + g.k.isDisposed=function(){return this.Aa};g.k=In.prototype;g.k.NB=function(){return!0}; + g.k.Pt=function(){}; + g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Ab(a.D,this);a.Z&&this.Rk()&&Fn(a);this.Pt();this.Y=!0}}; + g.k.isDisposed=function(){return this.Y}; + g.k.xn=function(){return this.u.xn()}; + g.k.Ql=function(){return this.u.Ql()}; + g.k.Sr=function(){return this.u.Sr()}; + g.k.Pv=function(){return this.u.Pv()}; + g.k.hs=function(){}; + g.k.En=function(){this.Qm()}; + g.k.Rk=function(){return this.ma};g.k=Jn.prototype;g.k.Ql=function(){return this.i.Ql()}; + g.k.Sr=function(){return this.i.Sr()}; + g.k.Pv=function(){return this.i.Pv()}; + g.k.create=function(a,b,c){var d=null;this.i&&(d=this.Gx(a,b,c),Dn(this.i,d));return d}; + g.k.xH=function(){return this.Qt()}; + g.k.Qt=function(){return!1}; + g.k.init=function(a){return this.i.initialize()?(Dn(this.i,this),this.C=a,!0):!1}; + g.k.hs=function(a){0==a.Ql()&&this.C(a.Sr(),this)}; + g.k.En=function(){}; + g.k.Rk=function(){return!1}; + g.k.dispose=function(){this.D=!0}; + g.k.isDisposed=function(){return this.D}; + g.k.xn=function(){return{}};Mn.prototype.add=function(a,b,c){++this.B;var d=this.B/4096,e=this.i,f=e.push;a=new Kn(a,b,c);d=new Kn(a.u,a.i,a.B+d);f.call(e,d);this.u=!0;return this};Qn.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=On(this.i);0=h;h=!(0=h)||c;this.i[e].update(f&&l,d,!f||h)}};co.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.Zc):b.Zc;this.ma=Math.max(this.ma,b.Zc);this.ya=-1!=this.ya?Math.min(this.ya,b.nh):b.nh;this.Ea=Math.max(this.Ea,b.nh);this.Za.update(b.nh,c.nh,b.i,a,d);this.u.update(b.Zc,c.Zc,b.i,a,d);c=d||c.Qp!=b.Qp?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.i;this.La.update(c,a,b)}; + co.prototype.Tp=function(){return this.La.B>=this.Ya};var QMa=new Ml(0,0,0,0);var fda=new Ml(0,0,0,0);g.w(ho,g.I);g.k=ho.prototype;g.k.xa=function(){this.Sg.i&&(this.pp.UE&&(Cl(this.Sg.i,"mouseover",this.pp.UE),this.pp.UE=null),this.pp.SE&&(Cl(this.Sg.i,"mouseout",this.pp.SE),this.pp.SE=null));this.lx&&this.lx.dispose();this.Kd&&this.Kd.dispose();delete this.Oz;delete this.KE;delete this.tO;delete this.Sg.Mn;delete this.Sg.i;delete this.pp;delete this.lx;delete this.Kd;delete this.featureSet;g.I.prototype.xa.call(this)}; + g.k.yn=function(){return this.Kd?this.Kd.i:this.position}; + g.k.HF=function(a){Lm().HF(a)}; + g.k.Rk=function(){return!1}; + g.k.cz=function(){return new co}; + g.k.Xg=function(){return this.Oz}; + g.k.oK=function(a){return ko(this,a,1E4)}; + g.k.Pa=function(a,b,c,d,e,f,h){this.zs||(this.Dy&&(a=this.PC(a,c,e,h),d=d&&this.vf.Zc>=(this.Qp()?.3:.5),this.UG(f,a,d),this.lastUpdateTime=b,0=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0=a.bottom||a.left>=a.right?new Ml(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.i.bottom-this.i.top)*(this.i.right-this.i.left)&&(this.eL(c)?c=new Ml(0,0,0,0):(d=zn().C,b=new Ml(0,d.height,d.width,0),d=go(c,this.i),e=go(c,zn().i),b=go(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Ml(0,0,0, + 0):Ol(c,-this.i.left,-this.i.top);An()||(e=d=0);this.K=new mn(a,this.i,c,d,e,this.timestamp,b)}; + g.k.getName=function(){return this.u.getName()};var SMa=new Ml(0,0,0,0);g.w(wo,vo);g.k=wo.prototype;g.k.NB=function(){this.B();return!0}; + g.k.En=function(){vo.prototype.Qm.call(this)}; + g.k.hJ=function(){}; + g.k.SC=function(){}; + g.k.Qm=function(){this.B();vo.prototype.Qm.call(this)}; + g.k.hs=function(a){a=a.isActive();a!==this.J&&(a?this.B():(zn().i=new Ml(0,0,0,0),this.i=new Ml(0,0,0,0),this.C=new Ml(0,0,0,0),this.timestamp=-1));this.J=a};var g2={},Cfa=(g2.firstquartile=0,g2.midpoint=1,g2.thirdquartile=2,g2.complete=3,g2);g.w(yo,ho);g.k=yo.prototype;g.k.Rk=function(){return!0}; + g.k.Yl=function(){return 2==this.xg}; + g.k.oK=function(a){return ko(this,a,Math.max(1E4,this.B/3))}; + g.k.Pa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.tc(m,e);this.B=m.duration||this.B;this.Z=m.isVpaid||this.Z;this.Ja=m.isYouTube||this.Ja;e=rda(this,b);1===Co(this)&&(f=e);ho.prototype.Pa.call(this,a,b,c,d,m,f,h);this.cq&&this.cq.i&&g.Qb(this.J,function(n){n.i||(n.i=uo(n,l))})}; + g.k.UG=function(a,b,c){ho.prototype.UG.call(this,a,b,c);Bo(this).update(a,b,this.vf,c);this.Za=no(this.vf)&&no(b);-1==this.Ea&&this.Ya&&(this.Ea=this.Xg().B.i);this.jf.B=0;a=this.Tp();b.isVisible()&&oo(this.jf,"vs");a&&oo(this.jf,"vw");un(b.volume)&&oo(this.jf,"am");no(b)&&oo(this.jf,"a");this.qs&&oo(this.jf,"f");-1!=b.u&&(oo(this.jf,"bm"),1==b.u&&oo(this.jf,"b"));no(b)&&b.isVisible()&&oo(this.jf,"avs");this.Za&&a&&oo(this.jf,"avw");0this.i.S&&(this.i=this,Hn(this)),this.S=a);return 2==a};dp.prototype.sample=function(){op(this,Ro(),!1)}; + dp.prototype.C=function(){var a=An(),b=fn();a?(hn||(jn=b,g.Qb(Qo.i,function(c){var d=c.Xg();d.Ja=ro(d,b,1!=c.xg)})),hn=!0):(this.K=qp(this,b),hn=!1,Lo=b,g.Qb(Qo.i,function(c){c.Dy&&(c.Xg().S=b)})); + op(this,Ro(),!a)}; + var ep=Bm(dp);var rp=null,cq="",bq=!1;var h2=xp([void 0,1,2,3,4,8,16]),i2=xp([void 0,4,8,16]),UMa={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:wp("p0",i2),p1:wp("p1",i2),p2:wp("p2",i2),p3:wp("p3",i2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:vp("mtos1",[0,2,4],!1,i2),mtos2:vp("mtos2",[0,2,4],!1,i2),mtos3:vp("mtos3",[0,2,4],!1,i2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:wp("a0",i2),a1:wp("a1",i2),a2:wp("a2",i2),a3:wp("a3",i2),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:wp("c0",i2),c1:wp("c1",i2),c2:wp("c2",i2),c3:wp("c3",i2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:wp("qmtos",h2),qnc:wp("qnc",h2),qmv:wp("qmv",h2),qnv:wp("qnv",h2),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:wp("ss0",i2),ss1:wp("ss1",i2),ss2:wp("ss2",i2),ss3:wp("ss3",i2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia"},VMa={c:sp("c"), + at:"at",atos:vp("atos",[0,2,4]),ta:function(a,b){return function(c){if(void 0===c[a])return b}}("tth","1"), + a:"a",dur:"dur",p:"p",tos:up(),j:"dom",mtos:vp("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:sp("ss"),vsv:af("w2"),t:"t"},WMa={atos:"atos",avt:vp("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:sp("ss"),t:"t"},XMa={a:"a",tos:up(),at:"at",c:sp("c"),mtos:vp("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:af("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},YMa={tos:up(),at:"at",c:sp("c"),mtos:vp("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:af("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:vp("qmtos", + [0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if("number"===typeof d)return g.ym(b,function(e){return 0=e?1:0})}}("qnc",[1, + .5,0]),qmv:"qmv",qa:"qas",a:"a"};var Bp=zp().lk,Ap=zp().version;var fga={P1:"visible",GY:"audible",T9:"time",U9:"timetype"},Gp={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, + audible:function(a){return"0"==a||"1"==a}, + timetype:function(a){return"mtos"==a||"tos"==a}, + time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};g.w(Hp,so);Hp.prototype.getId=function(){return this.J}; + Hp.prototype.D=function(){return!0}; + Hp.prototype.C=function(a){var b=a.Xg(),c=a.getDuration();return vn(this.K,function(d){if(void 0!=d.i)var e=hga(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.i;break b;case "tos":e=d.u?b.D.i:b.B.i;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0=d);return d})};g.w(Ip,so);Ip.prototype.C=function(a){var b=Yn(a.Xg().i,1);return Do(a,b)};g.w(Jp,so);Jp.prototype.C=function(a){return a.Xg().Tp()};g.w(Mp,iga);Mp.prototype.i=function(a){var b=new Kp;b.i=Lp(a,UMa);b.B=Lp(a,WMa);return b};g.w(Np,wo);Np.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=ul(this.featureSet,"queryid");"function"===typeof a&&b&&a(b)}; + Np.prototype.getName=function(){return"gsv"};g.w(Op,Jn);Op.prototype.getName=function(){return"gsv"}; + Op.prototype.Qt=function(){var a=zn();Lm();return a.u&&!1}; + Op.prototype.Gx=function(a,b,c){return new Np(this.i,b,c)};g.w(Pp,wo);Pp.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=ul(this.featureSet,"queryid");"function"===typeof b&&c&&b(c,function(d){g.lc(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.i=tn(d.opt_nativeViewBounds||{});var h=a.u.C;h.i=f?SMa.clone():tn(e);a.timestamp=d.opt_nativeTime||-1;zn().i=h.i;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})}; + Pp.prototype.getName=function(){return"nis"};g.w(Qp,Jn);Qp.prototype.getName=function(){return"nis"}; + Qp.prototype.Qt=function(){var a=zn();Lm();return a.u&&!1}; + Qp.prototype.Gx=function(a,b,c){return new Pp(this.i,b,c)};g.w(Rp,Cn);g.k=Rp.prototype;g.k.Ot=function(){return null!=this.u.rj}; + g.k.lK=function(){var a={};this.Ka&&(a.mraid=this.Ka);this.ya&&(a.mlc=1);a.mtop=this.u.fX;this.K&&(a.mse=this.K);this.Ja&&(a.msc=1);a.mcp=this.u.compatibility;return a}; + g.k.uo=function(a,b){for(var c=[],d=1;dthis.u?this.blockSize:2*this.blockSize)-this.u);a[0]=128;for(var b=1;bb;++b)for(var d=0;32>d;d+=8)a[c++]=this.i[b]>>>d&255;return a};g.w(sq,Mp);sq.prototype.i=function(a){var b=Mp.prototype.i.call(this,a);var c=lq=g.Pa();var d=mq(5);c=(oq?!d:d)?c|2:c&-3;d=mq(2);c=(pq?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};this.u||(this.u=xga());b.D=this.u;b.J=Lp(a,VMa,c,"h",tq("kArwaWEsTs"));b.C=Lp(a,XMa,{},"h",tq("b96YPMzfnx"));b.u=Lp(a,YMa,{},"h",tq("yb8Wev6QDg"));return b};uq.prototype.u=function(){return g.Ga(this.i)};g.w(vq,Zp);g.k=vq.prototype;g.k.jz=function(a,b){var c=this,d=Bm(Uo);if(null!=d.i)switch(d.i.getName()){case "nis":var e=Cga(this,a,b);break;case "gsv":e=Bga(this,a,b);break;case "exc":e=Dga(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=rga(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.yk()&&(e.S==g.Ha&&(e.S=function(f){return c.yH(f)}),Aga(this,e,b)); + return e}; + g.k.yH=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){Lm();a.Ua&&(Lm(),"h"!=eq(this)&&eq(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Gf)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Gf)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Gf)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null=== + c?a.u|=16:g.lc(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.K=0;for(var d in OMa)null==b[d]&&(a.K|=OMa[d]);jq(b,"currentTime");jq(b,"duration");un(c.volume)&&un(void 0)&&(c.volume*=NaN);return c}; + g.k.EJ=function(){Lm();"h"!=eq(this)&&eq(this);var a=Ega(this);return null!=a?new uq(a,this.C):null}; + g.k.PF=function(a){!a.i&&a.zs&&fq(this,a,"overlay_unmeasurable_impression")&&(a.i=!0)}; + g.k.vN=function(a){a.NN&&(a.Tp()?fq(this,a,"overlay_viewable_end_of_session_impression"):fq(this,a,"overlay_unviewable_impression"),a.NN=!1)}; + g.k.AK=function(){}; + g.k.cG=function(){}; + g.k.Rw=function(a,b,c,d){a=Zp.prototype.Rw.call(this,a,b,c,d);this.D&&(b=this.J,null==a.D&&(a.D=new lda),b.i[a.Gf]=a.D,a.D.D=TMa);return a}; + g.k.Xu=function(a){a&&1==a.yk()&&this.D&&delete this.J.i[a.Gf];return Zp.prototype.Xu.call(this,a)}; + var wq=new Kp;wq.D="stopped";wq.i="stopped";wq.B="stopped";wq.J="stopped";wq.C="stopped";wq.u="stopped";Object.freeze(wq);var ZMa=an(193,zq,iq);g.Fa("Goog_AdSense_Lidar_sendVastEvent",ZMa,void 0);var $Ma=dn(194,function(a,b){b=void 0===b?{}:b;a=xq(Bm(vq),a,b);return yq(a)}); + g.Fa("Goog_AdSense_Lidar_getViewability",$Ma,void 0);var aNa=an(195,function(){return Fm()},void 0); + g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",aNa,void 0);var bNa=dn(196,function(){return JSON.stringify(Fm())}); + g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",bNa,void 0);var mha=(new Date).getTime();var Bq="://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(" "),Hga=/\bocr\b/;var Iga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var wna={b4:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Y3:"LIVING_ROOM_APP_MODE_MAIN",X3:"LIVING_ROOM_APP_MODE_KIDS",Z3:"LIVING_ROOM_APP_MODE_MUSIC",a4:"LIVING_ROOM_APP_MODE_UNPLUGGED",W3:"LIVING_ROOM_APP_MODE_GAMING"};Eq.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&0===a%1&&this.data_[a]!=b&&(this.data_[a]=b,this.i=-1)}; + Eq.prototype.get=function(a){return!!this.data_[a]};g.Qa(g.Fq,g.I);g.k=g.Fq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Hq(this),b=Iq(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.i=Je(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.i=a&&b?a.call(this.u,this.B):this.u.setTimeout(bf(this.B),20)}; + g.k.stop=function(){if(this.isActive()){var a=Hq(this),b=Iq(this);a&&!b&&this.u.mozRequestAnimationFrame?Re(this.i):a&&b?b.call(this.u,this.i):this.u.clearTimeout(this.i)}this.i=null}; + g.k.isActive=function(){return null!=this.i}; + g.k.bP=function(){this.C&&this.i&&Re(this.i);this.i=null;this.J.call(this.D,g.Pa())}; + g.k.xa=function(){this.stop();g.Fq.le.xa.call(this)};g.Qa(g.M,g.I);g.k=g.M.prototype;g.k.Rt=0;g.k.xa=function(){g.M.le.xa.call(this);this.stop();delete this.i;delete this.u}; + g.k.start=function(a){this.stop();this.Rt=g.zh(this.B,void 0!==a?a:this.Vf)}; + g.k.stop=function(){this.isActive()&&g.D.clearTimeout(this.Rt);this.Rt=0}; + g.k.isActive=function(){return 0!=this.Rt}; + g.k.zH=function(){this.Rt=0;this.i&&this.i.call(this.u)};Mq.prototype[Symbol.iterator]=function(){return this}; + Mq.prototype.next=function(){var a=this.i.next();return{value:a.done?void 0:this.u.call(void 0,a.value,this.B++),done:a.done}};Vq.prototype.Lg=function(){return new Wq(this.u())}; + Vq.prototype[Symbol.iterator]=function(){return new Xq(this.u())}; + Vq.prototype.i=function(){return new Xq(this.u())}; + g.w(Wq,g.lo);Wq.prototype.sj=function(){var a=this.u.next();if(a.done)throw g.$q;return a.value}; + Wq.prototype[Symbol.iterator]=function(){return new Xq(this.u)}; + Wq.prototype.i=function(){return new Xq(this.u)}; + g.w(Xq,Vq);Xq.prototype.next=function(){return this.B.next()};g.k=g.ar.prototype;g.k.Ip=function(){cr(this);for(var a=[],b=0;b2*this.size&&cr(this),!0):!1}; + g.k.get=function(a,b){return br(this.u,a)?this.u[a]:b}; + g.k.set=function(a,b){br(this.u,a)||(this.size+=1,this.i.push(a),this.Io++);this.u[a]=b}; + g.k.forEach=function(a,b){for(var c=this.Vr(),d=0;d=d.i.length)throw g.$q;var f=d.i[b++];return a?f:d.u[f]}; + return e};g.Qa(g.dr,g.Ue);g.k=g.dr.prototype;g.k.Ec=function(){return 1==this.i}; + g.k.aA=function(){this.gi("begin")}; + g.k.yw=function(){this.gi("end")}; + g.k.onFinish=function(){this.gi("finish")}; + g.k.gi=function(a){this.dispatchEvent(a)};var cNa=cf(function(){if(g.Qc)return g.Ic("10.0");var a=g.Gg("DIV"),b=g.Bg?"-webkit":Ul?"-moz":g.Qc?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!AMa.test("div"))throw Error("");if("DIV"in CMa)throw Error("");var d=void 0;c=null;var e="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!AMa.test(l))throw Error("");var f=b[l];if(null!=f){var h=l;if(f instanceof jf)f=kf(f);else if("style"==h.toLowerCase()){if(!g.La(f))throw Error(""); + f instanceof Bf||(f=Ff(f));f=Cf(f)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in BMa)if(f instanceof pf)f=qf(f).toString();else if(f instanceof g.tf)f=g.uf(f);else if("string"===typeof f)f=g.yf(f).Hh();else throw Error("");}f.Ck&&(f=f.Hh());h=h+'="'+gb(String(f))+'"';e+=" "+h}}var l="":(c=Waa(d),l+=">"+g.Mf(c).toString()+"",c=c.Rr());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Nf(l,c);g.Sf(a,b);return""!= + g.Vl(a.firstChild,"transition")});g.Qa(er,g.dr);g.k=er.prototype;g.k.play=function(){if(this.Ec())return!1;this.aA();this.gi("play");this.startTime=g.Pa();this.i=1;if(cNa())return g.Sl(this.u,this.K),this.C=g.zh(this.wW,void 0,this),!0;this.OB(!1);return!1}; + g.k.wW=function(){g.gm(this.u);Lga(this.u,this.S);g.Sl(this.u,this.D);this.C=g.zh((0,g.E)(this.OB,this,!1),1E3*this.J)}; + g.k.stop=function(){this.Ec()&&this.OB(!0)}; + g.k.OB=function(a){g.Sl(this.u,"transition","");g.D.clearTimeout(this.C);g.Sl(this.u,this.D);this.endTime=g.Pa();this.i=0;if(a)this.gi("stop");else this.onFinish();this.yw()}; + g.k.xa=function(){this.stop();er.le.xa.call(this)}; + g.k.pause=function(){};var gr=g.Ha;var Mga={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};jr("Element","attributes")||jr("Node","attributes");jr("Element","innerHTML")||jr("HTMLElement","innerHTML");jr("Node","nodeName");jr("Node","nodeType");jr("Node","parentNode");jr("Node","childNodes");jr("HTMLElement","style")||jr("Element","style");jr("HTMLStyleElement","sheet");var Qga=kr("getPropertyValue"),Rga=kr("setProperty");jr("Element","namespaceURI")||jr("Node","namespaceURI");var Pga={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};g.or.prototype.clone=function(){return new g.or(this.i,this.K,this.B,this.D,this.C,this.J,this.u,this.S)};qr.prototype.clone=function(){return new qr(this.start,this.end)};var dNa=new WeakMap;(function(){if(aIa){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Ub))?a[1]:"0"}return aU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Ub))?a[0].replace(/_/g,"."):"10"):g.fu?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Ub))?a[1]:""):rMa||sMa||tMa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Ub))?a[1].replace(/_/g,"."):""):""})();var Yga=function(){if(g.fj)return rr(/Firefox\/([0-9.]+)/);if(g.Qc||g.ax||g.VE)return Hc;if(g.ej){if(Bc()||Vb("Macintosh")){var a=rr(/CriOS\/([0-9.]+)/);if(a)return a}return rr(/Chrome\/([0-9.]+)/)}if(g.gj&&!Bc())return rr(/Version\/([0-9.]+)/);if(dF||$G){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Ub))return a[1]+"."+a[2]}else if(g.WE)return(a=rr(/Android\s+([0-9.]+)/))?a:rr(/Version\/([0-9.]+)/);return""}();g.Qa(g.tr,g.I);g.k=g.tr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.i[e]=a;this.i[e+1]=b;this.i[e+2]=c;this.J=e+3;d.push(e);return e}; + g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.i;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.eg(a)}return!1}; + g.k.eg=function(a){var b=this.i[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.i[a+1]=g.Ha):(c&&g.Ab(c,a),delete this.i[a],delete this.i[a+1],delete this.i[a+2])}return!!b}; + g.k.ea=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e=c.length)throw g.$q;var e=c.key(b++);if(a)return e;e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; + return d}; + g.k.clear=function(){this.i.clear()}; + g.k.key=function(a){return this.i.key(a)};g.Qa(Dr,Cr);g.Qa(Er,Cr);g.Qa(Gr,Br);var aha={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Fr=null;g.k=Gr.prototype;g.k.isAvailable=function(){return!!this.i}; + g.k.set=function(a,b){this.i.setAttribute(Hr(a),b);Ir(this)}; + g.k.get=function(a){a=this.i.getAttribute(Hr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a}; + g.k.remove=function(a){this.i.removeAttribute(Hr(a));Ir(this)}; + g.k.Lg=function(a){var b=0,c=this.i.XMLDocument.documentElement.attributes,d=new g.lo;d.sj=function(){if(b>=c.length)throw g.$q;var e=c[b++];if(a)return decodeURIComponent(e.nodeName.replace(/\./g,"%")).substr(1);e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return e}; + return d}; + g.k.clear=function(){for(var a=this.i.XMLDocument.documentElement,b=a.attributes.length;0=b)){if(1==b)yb(a);else{a[0]=a.pop();a=0;b=this.i;for(var d=b.length,e=b[a];a>1;){var f=2*a+1,h=2*a+2;f=he.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; + g.k.Ip=function(){for(var a=this.i,b=[],c=a.length,d=0;dc;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.i;this.B=(this.B+1)%4}}; + Lu.prototype.xa=function(){window.clearInterval(this.S);g.Bu(this.ma)};g.w(Qu,Mu);Qu.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()}; + Qu.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};Ru();var Yu={};var cv={},Dha=0;var hNa,ev,gv;hNa=g.D.ytPubsubPubsubInstance||new g.tr;ev=g.D.ytPubsubPubsubSubscribedKeys||{};gv=g.D.ytPubsubPubsubTopicToKeys||{};g.fv=g.D.ytPubsubPubsubIsSynchronous||{};g.tr.prototype.subscribe=g.tr.prototype.subscribe;g.tr.prototype.unsubscribeByKey=g.tr.prototype.eg;g.tr.prototype.publish=g.tr.prototype.ea;g.tr.prototype.clear=g.tr.prototype.clear;g.Fa("ytPubsubPubsubInstance",hNa,void 0);g.Fa("ytPubsubPubsubTopicToKeys",gv,void 0);g.Fa("ytPubsubPubsubIsSynchronous",g.fv,void 0); + g.Fa("ytPubsubPubsubSubscribedKeys",ev,void 0);var n2;n2=window;g.Q=n2.ytcsi&&n2.ytcsi.now?n2.ytcsi.now:n2.performance&&n2.performance.timing&&n2.performance.now&&n2.performance.timing.navigationStart?function(){return n2.performance.timing.navigationStart+n2.performance.now()}:function(){return(new Date).getTime()};var Gha=Ds("initial_gel_batch_timeout",2E3),Bv=Math.pow(2,16)-1,pv=void 0,vv=0,wv=0,rv=0,xv=!0,ov=g.D.ytLoggingTransportGELQueue_||new Map;g.Fa("ytLoggingTransportGELQueue_",ov,void 0);var mv=g.D.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",mv,void 0);var Dv=g.D.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",Dv,void 0);var Hv=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Hv,void 0);g.k=g.Iv.prototype;g.k.get=function(a,b){Mv(a);Lv(a);a=void 0!==Hv[a]?Hv[a].toString():null;return null!=a?a:b?b:""}; + g.k.set=function(a,b){Mv(a);Lv(a);if(null==b)throw Error("ExpectedNotNull");Hv[a]=b.toString()}; + g.k.remove=function(a){Mv(a);Lv(a);delete Hv[a]}; + g.k.save=function(){var a=!0;g.Cs("web_secure_pref_cookie_killswitch")&&(a=!1);g.Nt(this.i,this.dump(),63072E3,this.u,a)}; + g.k.clear=function(){g.mc(Hv)}; + g.k.dump=function(){var a=[],b;for(b in Hv)a.push(b+"="+encodeURIComponent(String(Hv[b])));return a.join("&")}; + Ia(g.Iv);var Ov={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},Qv={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};Tv.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.i)try{this.i.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Zh(b))}catch(f){return}else e=escape(b);g.Nt(a,e,c,this.u)}; + Tv.prototype.get=function(a,b){var c=void 0,d=!this.i;if(!d)try{c=this.i.get(a)}catch(e){d=!0}if(d&&(c=g.Ot(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c}; + Tv.prototype.remove=function(a){this.i&&this.i.remove(a);g.Pt(a,"/",this.u)};var Uv=function(){var a;return function(){a||(a=new Tv("ytidb"));return a}}();var $v=[],Wv,aw=!1;g.w(g.dw,Error);var o2={},iw=(o2.AUTH_INVALID="No user identifier specified.",o2.EXPLICIT_ABORT="Transaction was explicitly aborted.",o2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",o2.MISSING_INDEX="Index not created.",o2.MISSING_OBJECT_STORE="Object store not created.",o2.DB_DELETED_BY_MISSING_OBJECT_STORE="Database is deleted because an expected object store was not created.",o2.UNKNOWN_ABORT="Transaction was aborted for unknown reasons.",o2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.", + o2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",o2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",o2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",o2),p2={},Mha=(p2.AUTH_INVALID="ERROR",p2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",p2.EXPLICIT_ABORT="IGNORED",p2.IDB_NOT_SUPPORTED="ERROR",p2.MISSING_INDEX="WARNING",p2.MISSING_OBJECT_STORE="ERROR",p2.DB_DELETED_BY_MISSING_OBJECT_STORE= + "WARNING",p2.QUOTA_EXCEEDED="WARNING",p2.QUOTA_MAYBE_EXCEEDED="WARNING",p2.UNKNOWN_ABORT="WARNING",p2.INCOMPATIBLE_DB_VERSION="WARNING",p2),q2={},Nha=(q2.AUTH_INVALID=!1,q2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,q2.EXPLICIT_ABORT=!1,q2.IDB_NOT_SUPPORTED=!1,q2.MISSING_INDEX=!1,q2.MISSING_OBJECT_STORE=!1,q2.DB_DELETED_BY_MISSING_OBJECT_STORE=!1,q2.QUOTA_EXCEEDED=!1,q2.QUOTA_MAYBE_EXCEEDED=!0,q2.UNKNOWN_ABORT=!0,q2.INCOMPATIBLE_DB_VERSION=!1,q2);g.w(jw,g.dw);g.w(kw,jw);g.w(lw,Error); + var Oha=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];pw.all=function(a){return new pw(new ow(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Oq:0};f.Oq=K.Mm&&!(q.i.version>=S)&&!q.i.objectStoreNames.contains(C)){G=C;break a}}G=void 0}t=G;if(void 0=== + t){z.fb(5);break}if(p.B){z.fb(6);break}p.B=!0;return g.A(z,p.delete(),7);case 7:return bw(new jw("DB_DELETED_BY_MISSING_OBJECT_STORE",{dbName:p.name,YS:t})),z.return(a());case 6:throw new kw(t);case 5:return z.return(q);case 2:u=wa(z);if(u instanceof DOMException?"VersionError"!==u.name:"DOMError"in self&&u instanceof DOMError?"VersionError"!==u.name:!(u instanceof Object&&"message"in u)||"An attempt was made to open a database using a lower version than the existing version."!==u.message){z.fb(8); + break}return g.A(z,p.u(p.name,void 0,Object.assign(Object.assign({},e),{upgrade:void 0})),9);case 9:x=z.u;y=x.i.version;if(void 0!==p.options.version&&y>p.options.version+1)throw x.close(),p.C=!1,Vw(p,y);return z.return(x);case 8:throw b(),u instanceof Error&&!g.Cs("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+n.substring(n.indexOf("\n")+1)),mw(u,p.name,"",null!==(m=p.options.version)&&void 0!==m?m:-1);}})})} + function b(){c.i===d&&(c.i=void 0)} + var c=this;if(!this.C)throw Vw(this);if(this.i)return this.i;var d,e={blocking:function(f){f.close()}, + closed:b,pX:b,upgrade:this.options.upgrade};return this.i=d=a()};var Xw=new Uw("YtIdbMeta",{Gs:{databases:{Mm:1}},upgrade:function(a,b){b(1)&&Bw(a,"databases",{keyPath:"actualName"})}});var cx,bx=new function(){}(new function(){});new Lk;g.k=jx.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.df.set(d,this.databaseToken).then(function(e){d.id=e;c.Ve.Te()&&mx(c,d)}).catch(function(e){mx(c,d); + ox(c,e)})}else this.wm(a,b)}; + g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.Ve.Te()){if(!e.skipRetry){var f=b.onError?b.onError:function(){}; + b.onError=function(h,l){return g.H(d,function n(){var p=this,q;return g.B(n,function(t){if(1==t.i)return q=p,g.A(t,p.df.set(e,p.databaseToken).catch(function(u){ox(q,u)}),2); + f(h,l);g.sa(t)})})}}this.wm(a,b,e.skipRetry)}else this.df.set(e,this.databaseToken).catch(function(h){d.wm(a,b,e.skipRetry); + ox(d,h)})}else c=this.ob&&this.ob("nwl_skip_retry")&&c,this.wm(a,b,c)}; + g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(this.databaseToken&&this.re){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){}; + d.options.onSuccess=function(h,l){void 0!==d.id?c.df.Kr(d.id,c.databaseToken):e=!0;c.Ve.Pn&&c.ob&&c.ob("vss_network_hint")&&c.Ve.Pn(!0);f(h,l)}; + this.wm(d.url,d.options);this.df.set(d,this.databaseToken).then(function(h){d.id=h;e&&c.df.Kr(d.id,c.databaseToken)}).catch(function(h){ox(c,h)})}else this.wm(a,b)}; + g.k.sx=function(){var a=this;if(!this.databaseToken)throw g.nw("throttleSend");this.i||(this.i=g.Pu(0,function(){return g.H(a,function c(){var d=this,e;return g.B(c,function(f){if(1==f.i)return g.A(f,d.df.pK("NEW",d.databaseToken),2);if(3!=f.i)return e=f.u,e?g.A(f,mx(d,e),3):(d.jJ(),f.return());d.i&&(d.i=0,d.sx());g.sa(f)})})},this.aO))}; + g.k.jJ=function(){g.Tu(this.i);this.i=0};qx.prototype.toString=function(){return this.topic};var iNa=g.Ga("ytPubsub2Pubsub2Instance")||new g.tr;g.tr.prototype.subscribe=g.tr.prototype.subscribe;g.tr.prototype.unsubscribeByKey=g.tr.prototype.eg;g.tr.prototype.publish=g.tr.prototype.ea;g.tr.prototype.clear=g.tr.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",iNa,void 0);var tx=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",tx,void 0);var vx=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",vx,void 0); + var ux=g.Ga("ytPubsub2Pubsub2IsAsync")||{};g.Fa("ytPubsub2Pubsub2IsAsync",ux,void 0);g.Fa("ytPubsub2Pubsub2SkipSubKey",null,void 0);g.w(yx,Uw);yx.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.bx?dia:cia)(a,b,Object.assign({},c))}; + yx.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.bx?hx:eia)(this.name,a)};var Ax;var jNa={},oia=zx("ServiceWorkerLogsDatabase",{Gs:(jNa.SWHealthLog={Mm:1},jNa),bx:!0,upgrade:function(a,b){b(1)&&Jw(Bw(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, + version:1});var Jx;var tia=Ds("network_polling_interval",3E4);g.w(Mx,g.Ue);g.k=Mx.prototype;g.k.Te=function(){return this.i}; + g.k.Pn=function(a,b){a!==this.i&&((void 0===b?0:b)?this.Sk():this.i=a)}; + g.k.ZS=function(a){this.u=!0;if(void 0===a?0:a)this.J||Ox(this)}; + g.k.VD=function(){var a=window.navigator.onLine;return void 0===a?!0:a}; + g.k.zR=function(){this.K=!0}; + g.k.Qa=function(a,b){return g.Ue.prototype.Qa.call(this,a,b)}; + g.k.Sk=function(a){var b=this;return this.C?this.C:this.C=new Promise(function(c){return g.H(b,function e(){var f,h,l,m=this;return g.B(e,function(n){switch(n.i){case 1:return f=window.AbortController?new window.AbortController:void 0,h=null===f||void 0===f?void 0:f.signal,l=!1,ua(n,2,3),f&&(m.D=g.Pu(0,function(){f.abort()},a||2E4)),g.A(n,fetch("/generate_204",{method:"HEAD", + signal:h}),5);case 5:l=!0;case 3:xa(n);m.C=void 0;m.D&&g.Tu(m.D);l!==m.i&&(m.i=l,m.i&&m.u?m.dispatchEvent("ytnetworkstatus-online"):m.u&&m.dispatchEvent("ytnetworkstatus-offline"));c(l);ya(n,0);break;case 2:wa(n),l=!1,n.fb(3)}})})})}; + Mx.prototype.sendNetworkCheckRequest=Mx.prototype.Sk;Mx.prototype.listen=Mx.prototype.Qa;Mx.prototype.enableErrorFlushing=Mx.prototype.zR;Mx.prototype.getWindowStatus=Mx.prototype.VD;Mx.prototype.monitorNetworkStatusChange=Mx.prototype.ZS;Mx.prototype.networkStatusHint=Mx.prototype.Pn;Mx.prototype.isNetworkAvailable=Mx.prototype.Te;Mx.getInstance=Nx;g.w(Qx,g.Ue);Qx.prototype.Te=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable").bind(this.i);return a?a():!0}; + Qx.prototype.Pn=function(a,b){b=void 0===b?!1:b;var c=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.i);c&&c(a,b)}; + Qx.prototype.Sk=function(a){return g.H(this,function c(){var d=this,e;return g.B(c,function(f){return(e=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(d.i))?f.return(e(a)):f.return(!0)})})};var Zx=0,ay=0,by,$x=g.D.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1,databaseToken:void 0,potentialEsfErrorCounter:ay,isIdbSupported:!1};g.Fa("ytNetworklessLoggingInitializationOptions",$x,void 0);g.w(cy,jx);cy.prototype.writeThenSend=function(a,b){b||(b={});fw()||(this.re=!1);jx.prototype.writeThenSend.call(this,a,b)}; + cy.prototype.sendThenWrite=function(a,b,c){b||(b={});fw()||(this.re=!1);jx.prototype.sendThenWrite.call(this,a,b,c)}; + cy.prototype.sendAndWrite=function(a,b){b||(b={});fw()||(this.re=!1);jx.prototype.sendAndWrite.call(this,a,b)};g.ey.prototype.isReady=function(){!this.config_&&Sv()&&(this.config_=g.zv());return!!this.config_};var Bia=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]),Dia=["/fashion","/feed/fashion_destination","/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ"];var Hia={};g.w(ky,g.I);ky.prototype.T=function(a,b,c,d,e){c=Hs((0,g.E)(c,d||this.Ra));c={target:a,name:b,callback:c};var f;e&&Jia()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.D.push(c);return c}; + ky.prototype.jc=function(a){for(var b=0;b=this.start&&(atNa.length)t2=void 0;else{var u2=sNa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);t2=u2&&6==u2.length?Number(u2[5].replace("_",".")):0}var aH=t2,PN=0<=aH;PN&&0<=g.Ub.search("Safari")&&g.Ub.search("Version");g.w(uA,px);g.w(vA,px);var Yja=new qx("aft-recorded",uA),YA=new qx("timing-sent",vA);var v2=window,yA=v2.performance||v2.mozPerformance||v2.msPerformance||v2.webkitPerformance||new Tja;var Xja=!1,w2={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc", + 'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"}, + kka=(0,g.E)(yA.clearResourceTimings||yA.webkitClearResourceTimings||yA.mozClearResourceTimings||yA.msClearResourceTimings||yA.oClearResourceTimings||g.Ha,yA);var KA=g.D.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",KA,void 0);IA.prototype.tick=function(a,b,c,d){LA(this,"tick_"+a+"_"+b)||g.Zv("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})}; + IA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");LA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Zv("latencyActionInfo",a,{cttAuthInfo:c}))}; + IA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");LA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Zv("latencyActionSpan",a,{cttAuthInfo:c}))};var x2={},ika=(x2.auto_search="LATENCY_ACTION_AUTO_SEARCH",x2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",x2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",x2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",x2.app_startup="LATENCY_ACTION_APP_STARTUP",x2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",x2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",x2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",x2.browse="LATENCY_ACTION_BROWSE",x2.channels="LATENCY_ACTION_CHANNELS", + x2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",x2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",x2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",x2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",x2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",x2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",x2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",x2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC", + x2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",x2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",x2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",x2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",x2.chips="LATENCY_ACTION_CHIPS",x2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",x2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",x2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",x2.embed= + "LATENCY_ACTION_EMBED",x2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",x2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",x2.explore="LATENCY_ACTION_EXPLORE",x2.home="LATENCY_ACTION_HOME",x2.library="LATENCY_ACTION_LIBRARY",x2.live="LATENCY_ACTION_LIVE",x2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",x2.onboarding="LATENCY_ACTION_ONBOARDING",x2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",x2.parent_tools_collection= + "LATENCY_ACTION_PARENT_TOOLS_COLLECTION",x2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",x2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",x2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",x2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",x2.prebuffer="LATENCY_ACTION_PREBUFFER",x2.prefetch="LATENCY_ACTION_PREFETCH",x2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",x2.profile_switcher="LATENCY_ACTION_LOGIN",x2.reel_watch="LATENCY_ACTION_REEL_WATCH",x2.results="LATENCY_ACTION_RESULTS", + x2.search_ui="LATENCY_ACTION_SEARCH_UI",x2.search_suggest="LATENCY_ACTION_SUGGEST",x2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",x2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",x2.seek="LATENCY_ACTION_PLAYER_SEEK",x2.settings="LATENCY_ACTION_SETTINGS",x2.tenx="LATENCY_ACTION_TENX",x2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",x2.watch="LATENCY_ACTION_WATCH",x2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",x2["watch,watch7"]="LATENCY_ACTION_WATCH",x2["watch,watch7_html5"]="LATENCY_ACTION_WATCH", + x2["watch,watch7ad"]="LATENCY_ACTION_WATCH",x2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",x2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",x2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",x2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",x2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",x2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",x2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",x2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",x2["video.live_settings"]= + "LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",x2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",x2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",x2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",x2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",x2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",x2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",x2),y2={},cka=(y2.ad_allowed="adTypesAllowed",y2.yt_abt= + "adBreakType",y2.ad_cpn="adClientPlaybackNonce",y2.ad_docid="adVideoId",y2.yt_ad_an="adNetworks",y2.ad_at="adType",y2.aida="appInstallDataAgeMs",y2.browse_id="browseId",y2.p="httpProtocol",y2.t="transportProtocol",y2.cs="commandSource",y2.cpn="clientPlaybackNonce",y2.ccs="creatorInfo.creatorCanaryState",y2.ctop="creatorInfo.topEntityType",y2.csn="clientScreenNonce",y2.docid="videoId",y2.GetHome_rid="requestIds",y2.GetSearch_rid="requestIds",y2.GetPlayer_rid="requestIds",y2.GetWatchNext_rid="requestIds", + y2.GetBrowse_rid="requestIds",y2.GetLibrary_rid="requestIds",y2.is_continuation="isContinuation",y2.is_nav="isNavigation",y2.b_p="kabukiInfo.browseParams",y2.is_prefetch="kabukiInfo.isPrefetch",y2.is_secondary_nav="kabukiInfo.isSecondaryNav",y2.nav_type="kabukiInfo.navigationType",y2.prev_browse_id="kabukiInfo.prevBrowseId",y2.query_source="kabukiInfo.querySource",y2.voz_type="kabukiInfo.vozType",y2.yt_lt="loadType",y2.mver="creatorInfo.measurementVersion",y2.yt_ad="isMonetized",y2.nr="webInfo.navigationReason", + y2.nrsu="navigationRequestedSameUrl",y2.ncnp="webInfo.nonPreloadedNodeCount",y2.pnt="performanceNavigationTiming",y2.prt="playbackRequiresTap",y2.plt="playerInfo.playbackType",y2.pis="playerInfo.playerInitializedState",y2.paused="playerInfo.isPausedOnLoad",y2.yt_pt="playerType",y2.fmt="playerInfo.itag",y2.yt_pl="watchInfo.isPlaylist",y2.yt_pre="playerInfo.preloadType",y2.yt_ad_pr="prerollAllowed",y2.pa="previousAction",y2.yt_red="isRedSubscriber",y2.rce="mwebInfo.responseContentEncoding",y2.rc="resourceInfo.resourceCache", + y2.scrh="screenHeight",y2.scrw="screenWidth",y2.st="serverTimeMs",y2.ssdm="shellStartupDurationMs",y2.br_trs="tvInfo.bedrockTriggerState",y2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",y2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",y2.label="tvInfo.label",y2.is_mdx="tvInfo.isMdx",y2.preloaded="tvInfo.isPreloaded",y2.aac_type="tvInfo.authAccessCredentialType",y2.upg_player_vis="playerInfo.visibilityState",y2.query="unpluggedInfo.query",y2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString", + y2.yt_vst="videoStreamType",y2.vph="viewportHeight",y2.vpw="viewportWidth",y2.yt_vis="isVisible",y2.rcl="mwebInfo.responseContentLength",y2.GetSettings_rid="requestIds",y2.GetTrending_rid="requestIds",y2.GetMusicSearchSuggestions_rid="requestIds",y2.REQUEST_ID="requestIds",y2),dka="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "), + z2={},eka=(z2.ccs="CANARY_STATE_",z2.mver="MEASUREMENT_VERSION_",z2.pis="PLAYER_INITIALIZED_STATE_",z2.yt_pt="LATENCY_PLAYER_",z2.pa="LATENCY_ACTION_",z2.ctop="TOP_ENTITY_TYPE_",z2.yt_vst="VIDEO_STREAM_TYPE_",z2),fka="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var A2=window;A2.ytcsi&&(A2.ytcsi.info=g.SA,A2.ytcsi.tick=TA);var Roa={h1:1,E1:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var $T=16/9,uNa=[.25,.5,.75,1,1.25,1.5,1.75,2],vNa=uNa.concat([3,4,5,6,7,8,9,10,15]);var wNa=["h","H"],xNa=["9","("],yNa=["9h","(h"],zNa=["8","*"],ANa=["a","A"],BNa=["o","O"],CNa=["m","M"],DNa=["mac3","MAC3"],ENa=["meac3","MEAC3"],B2={},Mma=(B2.h=wNa,B2.H=wNa,B2["9"]=xNa,B2["("]=xNa,B2["9h"]=yNa,B2["(h"]=yNa,B2["8"]=zNa,B2["*"]=zNa,B2.a=ANa,B2.A=ANa,B2.o=BNa,B2.O=BNa,B2.m=CNa,B2.M=CNa,B2.mac3=DNa,B2.MAC3=DNa,B2.meac3=ENa,B2.MEAC3=ENa,B2);bB.prototype.getLanguageInfo=function(){return this.Ac}; + bB.prototype.toString=function(){return this.Ac.name}; + bB.prototype.getLanguageInfo=bB.prototype.getLanguageInfo;var C2,hB;C2={};g.eB=(C2.auto=0,C2.tiny=144,C2.light=144,C2.small=240,C2.medium=360,C2.large=480,C2.hd720=720,C2.hd1080=1080,C2.hd1440=1440,C2.hd2160=2160,C2.hd2880=2880,C2.highres=4320,C2);hB={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};cB.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.i}; + cB.prototype.compose=function(a){if(a.B&&gB(a))return nG;if(a.B||gB(this))return a;if(this.B||gB(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.i&&a.i?Math.min(this.i,a.i):this.i||a.i;b=Math.min(b,c);return b===this.u&&c===this.i?this:new cB(b,c,!1,c===this.i?this.reason:a.reason)}; + cB.prototype.C=function(a){return a.video?qka(this,a.video.quality):!1}; + var FNa=fB("auto","hd1080",!1,"l"),iEa=fB("auto","large",!1,"l"),nG=fB("auto","auto",!1,"p");fB("small","auto",!1,"p");jB.prototype.qn=function(a){a=a||nG;for(var b=g.Ko(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;ea.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; + g.k.update=function(a,b,c){this.index.append(a);Hka(this.index,c);this.K=b}; + g.k.Se=function(){return this.Tt()?!0:uC.prototype.Se.call(this)}; + g.k.Im=function(a,b){var c=this.index.getSegmentURL(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0c&&(this.segments=this.segments.slice(b))}}; + g.k.Or=function(a){if(!this.gk)return BB.prototype.Or.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.Fg+1);else{b=Lb(this.segments,function(d){return a=d.endTime?1:0}); + if(0<=b)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.Ma-b.Ma-1))+1)+b.Ma}return this.ej(b)}; + g.k.ej=function(a){if(!this.gk)return BB.prototype.ej.call(this,a);if(!this.segments.length)return null;var b=QC(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fg;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new AB(a,d,b,0,"sq/"+a,void 0,void 0, + !0)};g.w(SC,LC);g.k=SC.prototype;g.k.Wv=function(){return!0}; + g.k.Se=function(){return!0}; + g.k.Hm=function(a){return!a.B}; + g.k.Fp=function(){}; + g.k.Pl=function(a,b){b=void 0===b?!1:b;return"number"!==typeof a||isFinite(a)?LC.prototype.Pl.call(this,a,b):(a=new AC(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Li,void 0,this.Li*this.info.Nb),new HC([a],""))}; + g.k.Im=function(a,b){var c=void 0===c?!1:c;if(RC(this.index,a))return LC.prototype.Im.call(this,a,b);var d=this.index.getStartTime(a),e=b?0:this.Li*this.info.Nb;b=!b;c=new AC(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,e,a===this.index.getLastSegmentNumber()&&!this.K&&0a.Ma&&this.index.getFirstSegmentNumber()<=a.Ma+1}; + g.k.OD=function(){return 0}; + g.k.CF=function(){return!1};g.k=UC.prototype;g.k.getOffset=function(a){return this.offsets[a]}; + g.k.getStartTime=function(a){return this.i[a]/this.B}; + g.k.getStartTimeInPeriod=function(){return 0}; + g.k.getIngestionTime=function(){return NaN}; + g.k.getStitchedVideoInfo=function(){return null}; + g.k.getDuration=function(a){a=this.getDurationTicks(a);return 0<=a?a/this.B:-1}; + g.k.getDurationTicks=function(a){return a+1=this.getLastSegmentNumber())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,this.getByteLength(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.i;this.i=new Float64Array(a+1);for(a=0;a=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{oz:b,Eq:c}}; + WC.prototype.isFocused=function(a){return a>=this.B&&athis.info.u||4===this.info.type)return!0;var b=cD(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Cb)return 1836019558===b||1936286840=== + b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.i.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=cD(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Cb)return 524531317===c||440786851===c}return!0};g.w(fD,uC);g.k=fD.prototype;g.k.Fp=function(a){var b=new AC(1,this,this.initRange,"initInfo"),c=new AC(2,this,this.indexRange,"indexInfo");b=[b,c];0=this.index.getOffset(c+1);)c++;return gD(this,c,b,a.u).i}; + g.k.Hm=function(a){return this.Se()?!0:a.range.end+1this.info.contentLength&&(b=new wC(b.start,this.info.contentLength-1)),a=[new AC(4,a.i,b,"getNextRequestInfoByLength")],new HC(a);4===a.type&&(a=this.Vw(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Cb+a.u;3===a.type&&(c=a.Ma,d===a.range.end+1&&(c+=1));return gD(this,c,d,b)}; + g.k.St=function(){return null}; + g.k.Pl=function(a,b){b=void 0===b?!1:b;a=this.index.getSegmentNumberForTime(a);b&&(a=Math.min(this.index.getLastSegmentNumber(),a+1));return gD(this,a,this.index.getOffset(a),0)}; + g.k.Pg=function(){return!0}; + g.k.Wv=function(){return!1}; + g.k.OD=function(){return this.indexRange.length+this.initRange.length}; + g.k.CF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var E2={},pB=(E2.WIDTH={name:"width",video:!0,valid:640,invalid:99999},E2.HEIGHT={name:"height",video:!0,valid:360,invalid:99999},E2.FRAMERATE={name:"framerate",video:!0,valid:30,invalid:9999},E2.BITRATE={name:"bitrate",video:!0,valid:3E5,invalid:2E9},E2.EOTF={name:"eotf",video:!0,valid:"bt709",invalid:"catavision"},E2.CHANNELS={name:"channels",video:!1,valid:2,invalid:99},E2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",invalid:"invalidformat"},E2.DECODETOTEXTURE={name:"decode-to-texture", + video:!0,valid:"false",invalid:"nope"},E2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",invalid:"av99.0.05M.08"},E2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",invalid:"invalid"},E2);var Z={},mD=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H", + Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["271"]="9",Z["313"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]= + "o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]= + "(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z);var kD="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");jD.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};g.k=nD.prototype;g.k.lc=function(){return this.id.split(";",1)[0]}; + g.k.ue=function(){return 2===this.containerType}; + g.k.isEncrypted=function(){return!!this.Bd}; + g.k.Ek=function(){return!!this.audio}; + g.k.isVideo=function(){return!!this.video};tD.prototype.getName=function(){return this.name}; + tD.prototype.getId=function(){return this.id}; + tD.prototype.getIsDefault=function(){return this.isDefault}; + tD.prototype.toString=function(){return this.name}; + tD.prototype.getName=tD.prototype.getName;tD.prototype.getId=tD.prototype.getId;tD.prototype.getIsDefault=tD.prototype.getIsDefault;g.w(g.uD,ky);g.uD.prototype.T=function(a,b,c,d,e){return ky.prototype.T.call(this,a,b,c,d,e)};g.w(ID,g.R);g.k=ID.prototype;g.k.appendBuffer=function(a,b,c){if(this.xd.Uy()!==this.appendWindowStart+this.start||this.xd.ED()!==this.appendWindowEnd+this.start||this.xd.Uc()!==this.timestampOffset+this.start)this.xd.supports(1),this.xd.dG(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.xd.TA(this.timestampOffset+this.start);this.xd.appendBuffer(a,b,c)}; + g.k.abort=function(){this.xd.abort()}; + g.k.remove=function(a,b){this.xd.remove(a+this.start,b+this.start)}; + g.k.dG=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; + g.k.SD=function(){return this.timestampOffset+this.start}; + g.k.Uy=function(){return this.appendWindowStart}; + g.k.ED=function(){return this.appendWindowEnd}; + g.k.TA=function(a){this.timestampOffset=a}; + g.k.Uc=function(){return this.timestampOffset}; + g.k.lf=function(a){a=this.xd.lf(void 0===a?!1:a);return HD(a,this.start,this.end)}; + g.k.bh=function(){return this.xd.bh()}; + g.k.Bp=function(){return this.xd.Bp()}; + g.k.Wy=function(){return this.xd.Wy()}; + g.k.SG=function(a,b){this.xd.SG(a,b)}; + g.k.supports=function(a){return this.xd.supports(a)}; + g.k.Xy=function(){return this.xd.Xy()}; + g.k.isView=function(){return!0}; + g.k.gB=function(a,b,c){return this.isActive?this.xd.gB(a,b,c):!1}; + g.k.ly=function(){return this.xd.ly()?this.isActive:!1}; + g.k.isLocked=function(){return this.Cx&&!this.isActive}; + g.k.Ib=function(a){return this.xd.Ib(a)+(";vw."+this.start+"-"+this.end)}; + g.k.Bv=function(){return this.xd.Bv()}; + g.k.xa=function(){oy(this.xd,this.FK);g.R.prototype.xa.call(this)};var OU=!1;g.w(MD,g.R);g.k=MD.prototype;g.k.appendBuffer=function(a,b,c){var d;this.ey=!1;c&&(this.Ez=c);b&&(b.isEncrypted()&&(this.oL=this.Ez),3===b.type&&(this.Ue=b));(null===(d=this.Wb)||void 0===d?0:d.appendBuffer)?this.Wb.appendBuffer(a):this.Wb?this.Wb.append(a):this.Ke&&this.Ke.webkitSourceAppend(this.id,a)}; + g.k.abort=function(){try{this.Wb?this.Wb.abort():this.Ke&&this.Ke.webkitSourceAbort(this.id)}catch(a){}this.Ez=this.Ue=null}; + g.k.remove=function(a,b){var c;this.ey=!1;(null===(c=this.Wb)||void 0===c?0:c.remove)&&this.Wb.remove(a,b)}; + g.k.Uy=function(){var a;return OU&&this.isVideo?this.appendWindowStart:(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowStart)||0}; + g.k.ED=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.appendWindowEnd)||0}; + g.k.dG=function(a,b){this.Wb&&(OU&&this.isVideo?(this.appendWindowStart=a,this.Wb.appendWindowEnd=b):a>this.Uy()?(this.Wb.appendWindowEnd=b,this.Wb.appendWindowStart=a):(this.Wb.appendWindowStart=a,this.Wb.appendWindowEnd=b))}; + g.k.SD=function(){return this.timestampOffset}; + g.k.TA=function(a){OU?this.timestampOffset=a:this.supports(1)&&(this.Wb.timestampOffset=a)}; + g.k.Uc=function(){return OU?this.timestampOffset:this.supports(1)?this.Wb.timestampOffset:0}; + g.k.lf=function(a){if(void 0===a?0:a)return this.ey||this.bh()||(this.fJ=this.lf(!1),this.ey=!0),this.fJ;try{return this.Wb?this.Wb.buffered:this.Ke?this.Ke.webkitSourceBuffered(this.id):BD([0],[Infinity])}catch(b){return BD([],[])}}; + g.k.bh=function(){var a;return(null===(a=this.Wb)||void 0===a?void 0:a.updating)||!1}; + g.k.Bp=function(){return this.Ez}; + g.k.Wy=function(){return this.oL}; + g.k.SG=function(a,b){this.containerType!==a&&(this.supports(4),ND()&&this.Wb.changeType(b));this.containerType=a}; + g.k.Xy=function(){return this.Ue}; + g.k.isView=function(){return!1}; + g.k.supports=function(a){var b,c,d,e,f;switch(a){case 1:return void 0!==(null===(b=this.Wb)||void 0===b?void 0:b.timestampOffset);case 0:return!(null===(c=this.Wb)||void 0===c||!c.appendBuffer);case 2:return!(null===(d=this.Wb)||void 0===d||!d.remove);case 3:return!!((null===(e=this.Wb)||void 0===e?0:e.addEventListener)&&(null===(f=this.Wb)||void 0===f?0:f.removeEventListener));case 4:return!(!this.Wb||!this.Wb.changeType);default:return!1}}; + g.k.ly=function(){return!this.bh()}; + g.k.isLocked=function(){return!1}; + g.k.Ib=function(a){var b,c;a.to=""+this.Uc();a.up=""+ +this.bh();var d=(null===(b=this.Wb)||void 0===b?void 0:b.appendWindowStart)||0,e=(null===(c=this.Wb)||void 0===c?void 0:c.appendWindowEnd)||Infinity;a.aw=d.toFixed(3)+"-"+e.toFixed(3);try{a.bu=CD(this.lf())}catch(f){}return g.JD(a)}; + g.k.xa=function(){this.supports(3)&&(this.Wb.removeEventListener("updateend",this.Ae),this.Wb.removeEventListener("error",this.Ae));g.R.prototype.xa.call(this)}; + g.k.gB=function(a,b,c){if(!this.supports(2)||this.bh())return!1;var d=this.lf(),e=DD(d,a);if(0>e)return!1;try{if(b&&e+1KNa){I2=KNa;break a}}var LNa=J2.match("("+g.ec(INa).join("|")+")");I2=LNa?INa[LNa[0]]:0}else I2=void 0}var aF=I2,$E=0<=aF;var sna={RED:"red",jaa:"white"};var yna={nY:"adunit",Y0:"detailpage",u1:"editpage",z1:"embedded",A1:"embedded_unbranded",J3:"leanback",e8:"previewpage",h8:"profilepage",s$:"unplugged",V7:"playlistoverview",F9:"sponsorshipsoffer",s9:"shortspage"};Uma.prototype.ob=function(a){return"true"===this.flags[a]};wE.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;du?a=a||MNa[b]:2.2===aF?a=a||NNa[b]:Ut()&&(a=a||ONa[b]);return!!a}; + wE.prototype.isTypeSupported=function(a){this.oa();return this.J?window.cast.receiver.platform.canDisplayType(a):xD(a)}; + wE.prototype.disableAv1=function(){this.S=!0}; + wE.prototype.oa=function(){}; + var NNa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},ONa={"application/x-mpegURL":"maybe"},MNa={"application/x-mpegURL":"maybe"};g.w(zE,g.R);zE.prototype.add=function(a,b){!this.items[a]&&(b.Ou||b.py||b.xx)&&(this.items[a]=uc(b),this.ea("vast_info_card_add",a))}; + zE.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; + zE.prototype.get=function(a){return this.items[a]||null}; + zE.prototype.isEmpty=function(){return g.lc(this.items)};var iF={d4:1,e4:2,f4:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};Xma.prototype.load=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.i)return e.return();c.i=hE();return c.i?e.return():g.A(e,Yma(c),2)}d=e.u;if(!d)return e.return();c.i={primary:d};Hma(d);g.sa(e)})})};CE.prototype.Mg=function(a,b){var c=Math.pow(this.alpha,a);this.i=b*(1-c)+c*this.i;this.u+=a}; + CE.prototype.qg=function(){return this.i/(1-Math.pow(this.alpha,this.u))};DE.prototype.Mg=function(a,b){a=Math.min(this.i,Math.max(1,Math.round(a*this.resolution)));a+this.valueIndex>=this.i&&(this.u=!0);for(;a--;)this.values[this.valueIndex]=b,this.valueIndex=(this.valueIndex+1)%this.i;this.C=!0}; + DE.prototype.qg=function(){return this.D?(EE(this,this.B-this.D)+EE(this,this.B)+EE(this,this.B+this.D))/3:EE(this,this.B)};g.w(jna,g.I);var mna=/^([0-9\.]+):([0-9\.]+)$/;var qna="blogger books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),xna={RY:"cbrand",SY:"cbr",TY:"cbrver",P2:"c",S2:"cver",R2:"ctheme",Q2:"cplayer",h6:"cmodel",O6:"cnetwork",i7:"cos",j7:"cosver",N7:"cplatform"};g.w(oF,g.I);g.k=oF.prototype;g.k.N=function(a){return this.experiments.ob(a)}; + g.k.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.rF(this);d&&"www.youtube.com"===c?d="https://youtu.be/"+a:g.eF(this)?(d="https://"+c+"/fire",b.v=a):(d=this.protocol+"://"+c+"/watch",b.v=a,du&&(a=vs())&&(b.ebc=a));return g.ti(d,b)}; + g.k.getVideoEmbedCode=function(a,b,c){a="https://"+g.rF(this)+"/embed/"+a;c&&(a=g.ti(a,{list:c}));c=b.width;b=b.height;a=g.hg(a);return''}; + g.k.supportsGaplessAudio=function(){return g.ej&&!du&&74<=Rt()||g.fj&&g.Ic(68)?!0:!1}; + g.k.getPlayerType=function(){return this.deviceParams.cplayer}; + g.k.xa=function(){this.Ug&&(window.clearInterval(this.Ug),this.Ug=void 0);g.I.prototype.xa.call(this)}; + var Cna=["www.youtube-nocookie.com","youtube.googleapis.com"];g.k=GF.prototype;g.k.mf=function(){return this.i}; + g.k.Vt=function(){return null}; + g.k.hK=function(){var a=this.Vt();return a?(a=g.Os(a.i),Number(a.expire)):NaN}; + g.k.aG=function(){}; + g.k.lc=function(){return this.i.lc()}; + g.k.getHeight=function(){return this.i.video.height};Dna.prototype.Oe=function(){Gna(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.i)var c=this.i;else{c="";for(var d=g.r(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Ac){if(e.Ac.getIsDefault()){c=e.Ac.getId();break a}c||(c=e.Ac.getId())}}d=g.r(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Ac||e.Ac.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.r(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.i])for(e=g.r(e),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.Ac){p=f.Ac;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.i?this.i===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=IF(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Fna(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.r(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=PNa,d=(h=d.Ac)?'#EXT-X-MEDIA:URI="'+IF(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=0f.getHeight())&&c.push(f)}return c}; + kG.prototype.J=function(a,b,c,d){return new g.jG(a,b,c,d)};g.w(lG,g.jG);g.k=lG.prototype;g.k.LD=function(){return this.u.getNumberOfSegments()}; + g.k.Hx=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.getLastSegmentNumber();a=c.getSegmentNumberForTime(a);return a>d-b?-1:a}; + g.k.Wt=function(){return this.u.getLastSegmentNumber()}; + g.k.QB=function(){return this.u.getFirstSegmentNumber()}; + g.k.CH=function(a){this.u=a};g.w(mG,kG);mG.prototype.u=function(a,b){return kG.prototype.u.call(this,"$N|"+a,b)}; + mG.prototype.J=function(a,b,c){return new lG(a,b,c,this.isLive)};g.w(oG,g.R);g.k=oG.prototype;g.k.V=function(){return this.C}; + g.k.N=function(a){return this.C.N(a)}; + g.k.sf=function(){return!this.isLivePlayback||this.allowLiveDvr}; + g.k.nM=function(){this.isDisposed()||(this.i.B||this.i.unsubscribe("refresh",this.nM,this),this.uJ(-1))}; + g.k.uJ=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=nma(this.i,this.PG);if(0(a?parseInt(a[1],10):NaN);b=this.C;b=("TVHTML5_CAST"===b.deviceParams.c||"TVHTML5"===b.deviceParams.c&&(b.deviceParams.cver.startsWith("6.20130725")||b.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"=== + this.C.deviceParams.ctheme;!this.Ge&&(b||Ana(this.C))&&!a&&(a="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===this.musicVideoType,b=(this.N("cast_prefer_audio_only_for_atv_and_uploads")||this.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===this.musicVideoType,a||b)&&(this.Ge=!0);return!this.C.deviceHasDisplay||this.Ge&&this.C.u}; + g.k.jG=function(){return this.Oi||this.Tc}; + g.k.ex=function(){return this.Ye||this.Tc}; + g.k.HC=function(){return zG(this,"html5_samsung_vp9_live")}; + g.k.useInnertubeDrmService=function(){if(!(this.J&&this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webDrmConfig))return!1;var a="playready"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForPlayready,b="fairplay"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForFairplay;return!!("widevine"===this.J.flavor&&this.playerResponse.playerConfig.webDrmConfig.useItdrmForWidevine||a||b)}; + g.k.Ba=function(a,b,c){this.ea("ctmp",a,b,c)}; + g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; + g.k.xa=function(){g.R.prototype.xa.call(this);delete this.ol;this.vl=null;delete this.rX;delete this.accountLinkingConfig;delete this.i;this.B=this.playerResponse=this.watchNextResponse=null;this.Gi=this.adaptiveFormats="";delete this.botguardData;this.Kq={};this.suggestions=null};cH.prototype.Vv=function(){return!1}; + cH.prototype.Ja=function(){return function(){return null}};var xH=null;g.w(wH,g.R);wH.prototype.Av=function(a){return this.i.hasOwnProperty(a)?this.i[a].Av():{}}; + g.Fa("ytads.bulleit.getVideoMetadata",function(a){return yH().Av(a)},void 0); + g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=yH();c=Dpa(c);null!==c&&d.ea(c,{queryId:a,viewabilityString:b})},void 0);g.w(BH,cH);g.k=BH.prototype;g.k.us=function(){return!0}; + g.k.Oo=function(){return!1}; + g.k.isSkippable=function(){return null!=this.Ea}; + g.k.getVideoUrl=function(){return this.ya}; + g.k.Vv=function(){return!0};g.w(IH,cH);IH.prototype.us=function(){return!0}; + IH.prototype.Oo=function(){return!1}; + IH.prototype.Vv=function(){return!0}; + IH.prototype.Ja=function(){return function(){return g.vg("video-ads")}};Mpa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.i.i};var aKa={WX:"FINAL",iY:"AD_BREAK_LENGTH",jY:"AD_CPN",kY:"AH",lY:"AD_MT",mY:"ASR",oY:"AW",lZ:"NM",mZ:"NX",nZ:"NY",sZ:"CONN",DZ:"CPN",o1:"DV_VIEWABILITY",G1:"ERRORCODE",K1:"ERROR_MSG",M1:"EI",v2:"GOOGLE_VIEWABILITY",M2:"IAS_VIEWABILITY",H3:"LACT",V3:"LIVE_TARGETING_CONTEXT",g4:"I_X",h4:"I_Y",L5:"MT",P5:"MIDROLL_POS",Q5:"MIDROLL_POS_MS",S5:"MOAT_INIT",T5:"MOAT_VIEWABILITY",Q7:"P_H",R7:"PV_H",S7:"PV_W",T7:"P_W",Y7:"TRIGGER_TYPE",K8:"SDKV",C9:"SLOT_POS",R9:"SURVEY_LOCAL_TIME_EPOCH_S",Q9:"SURVEY_ELAPSED_MS", + PQ:"VIS",R$:"VIEWABILITY",S$:"VED",Y$:"VOL",baa:"WT",yaa:"YT_ERROR_CODE"};var Tpa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];PH.prototype.send=function(a,b,c){try{var d=!!a.scrubReferrer,e=g.Dq(a.baseUrl,Qpa(b,d,c)),f;if(a.headers)for(var h=g.r(a.headers),l=h.next();!l.done;l=h.next())switch(l.value.headerType){case "USER_AUTH":var m=this.nf();m&&(f||(f={}),f.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":var n=this.i();n&&(f||(f={}),f["X-Goog-PageId"]=n)}g.av(e,void 0,d,f)}catch(p){}};g.w(QH,PH);QH.prototype.nf=function(){return this.np?this.np.nf():""}; + QH.prototype.i=function(){return this.np?this.np.V().pageId:""};RH.prototype.send=function(a,b,c){try{var d=a.match(gi);if("https"===d[1])var e=a;else d[1]="https",e=ei("https",d[2],d[3],d[4],d[5],d[6],d[7]);a=e;var f=Cq(a);e=[];Us(a)&&(e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}));this.Yo.send({baseUrl:a,scrubReferrer:f,headers:e},b,c)}catch(h){}};g.w(Upa,g.I);g.w(gI,g.R);g.k=gI.prototype;g.k.Av=function(){return{}}; + g.k.UF=function(){}; + g.k.ld=function(a){this.jk();this.ea(a)}; + g.k.DH=function(){}; + g.k.jk=function(){bqa(this,this.ya,3);this.ya=[]}; + g.k.getDuration=function(){return this.I.getDuration(2,!1)}; + g.k.Bn=function(){var a=this.i;TH(a)||!aI(a,"impression")&&!aI(a,"start")||aI(a,"abandon")||aI(a,"complete")||aI(a,"skip")||cI(a,"pause");this.C||(a=this.i,TH(a)||!aI(a,"unmuted_impression")&&!aI(a,"unmuted_start")||aI(a,"unmuted_abandon")||aI(a,"unmuted_complete")||cI(a,"unmuted_pause"))}; + g.k.Cn=function(){this.Aa||this.K||this.Ef()}; + g.k.qh=function(){WH(this.i,this.getDuration());if(!this.C){var a=this.i;this.getDuration();TH(a)||(Ypa(a,0,!0),Zpa(a,0,0,!0),SH(a,"unmuted_complete"))}}; + g.k.vg=function(){var a=this.i;!aI(a,"impression")||aI(a,"skip")||aI(a,"complete")||$H(a,"abandon");this.C||(a=this.i,aI(a,"unmuted_impression")&&!aI(a,"unmuted_complete")&&$H(a,"unmuted_abandon"))}; + g.k.Kp=function(){var a=this.i;UH(a)?SH(a,"skip"):!aI(a,"impression")||aI(a,"abandon")||aI(a,"complete")||SH(a,"skip")}; + g.k.Ef=function(){if(!this.K){var a=this.Ty();this.i.macros.AD_CPN=a;a=this.i;if(UH(a)){var b=a.i.getCurrentTime(2,!1);ZH(a,"impression",b,0)}else SH(a,"impression");SH(a,"start");TH(a)||a.i.isFullscreen()&&$H(a,"fullscreen");this.K=!0;this.C=this.I.isMuted();this.C||(a=this.i,SH(a,"unmuted_impression"),SH(a,"unmuted_start"),TH(a)||a.i.isFullscreen()&&$H(a,"unmuted_fullscreen"))}}; + g.k.Yg=function(a){a=a||"";var b="",c="",d="";dH(this.I)&&(b=this.I.yb(2).state,this.I.jd()&&(c=this.I.jd().rh(),null!=this.I.jd().aj()&&(d=this.I.jd().aj())));var e=this.i;e.macros=OH(e.macros,MH(3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));SH(e,"error");this.C||Vpa(this.i,3,"There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))}; + g.k.Ff=function(){}; + g.k.gN=function(){this.ea("adactiveviewmeasurable")}; + g.k.hN=function(){this.ea("adfullyviewableaudiblehalfdurationimpression")}; + g.k.iN=function(){this.ea("adoverlaymeasurableimpression")}; + g.k.jN=function(){this.ea("adoverlayunviewableimpression")}; + g.k.kN=function(){this.ea("adoverlayviewableendofsessionimpression")}; + g.k.lN=function(){this.ea("adoverlayviewableimmediateimpression")}; + g.k.mN=function(){this.ea("adviewableimpression")}; + g.k.dispose=function(){this.isDisposed()||(this.jk(),this.u.unsubscribe("adactiveviewmeasurable",this.gN,this),this.u.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.hN,this),this.u.unsubscribe("adoverlaymeasurableimpression",this.iN,this),this.u.unsubscribe("adoverlayunviewableimpression",this.jN,this),this.u.unsubscribe("adoverlayviewableendofsessionimpression",this.kN,this),this.u.unsubscribe("adoverlayviewableimmediateimpression",this.lN,this),this.u.unsubscribe("adviewableimpression", + this.mN,this),delete this.u.i[this.ad.K],g.R.prototype.dispose.call(this))}; + g.k.Ty=function(){var a=this.I.getVideoData(2);return a&&a.clientPlaybackNonce||""}; + g.k.RJ=function(){return""};g.w(jI,cH);jI.prototype.us=function(){return!0}; + jI.prototype.Oo=function(){return!1};g.w(kI,uH);g.w(lI,gI);g.k=lI.prototype;g.k.Zq=function(){0=this.Z&&(g.Gs(Error("durationMs was specified incorrectly with a value of: "+this.Z)),this.qh());this.Ef();this.I.addEventListener("progresssync",this.ma)}; + g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandonedreset")}; + g.k.Ef=function(){var a=this.I.V();gI.prototype.Ef.call(this);this.B=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.D=this.B+this.Z/1E3;g.lF(a)?this.I.Oa("onAdMessageChange",{renderer:this.S.i,startTimeSecs:this.B}):hI(this,[new eqa(this.S.i)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.Ey(),c=this.S.i.videoAdBreakOffsetMsInt64;b&&g.Zv("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D- + this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J)for(this.Y=!0,a=g.r(this.J.listeners),b=a.next();!b.done;b=a.next())b=b.value,b.u?b.i?T("Received AdNotify started event before another one exited"):(b.i=b.u,Eqa(b.B(),b.i)):T("Received AdNotify started event without start requested event");g.U(this.I.yb(1),512)&&(a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.Ey(),c=this.S.i.videoAdBreakOffsetMsInt64,b&&g.Zv("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3* + this.D),timeToAdBreakSec:Math.ceil(this.D-this.B),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.qh())}; + g.k.qh=function(){gI.prototype.qh.call(this);this.ld("adended")}; + g.k.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")}; + g.k.ld=function(a){this.I.removeEventListener("progresssync",this.ma);this.jk();this.ea(a);gqa(this)}; + g.k.dispose=function(){this.I.removeEventListener("progresssync",this.ma);gqa(this);gI.prototype.dispose.call(this)}; + g.k.jk=function(){g.lF(this.I.V())?this.I.Oa("onAdMessageChange",{renderer:null,startTimeSecs:this.B}):gI.prototype.jk.call(this)};tI.prototype.sendAdsPing=function(a){this.J.send(a,qqa(this),{})}; + tI.prototype.Id=function(a){var b=this;if(a){var c=qqa(this);Array.isArray(a)?a.forEach(function(d){return b.u.executeCommand(d,c)}):this.u.executeCommand(a,c)}};uI.prototype.get=function(){return this.value}; + g.w(vI,uI);vI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"}; + g.w(wI,uI);wI.prototype.getType=function(){return"metadata_type_ad_next_params"}; + g.w(xI,uI);xI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"}; + g.w(yI,uI);yI.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"}; + g.w(zI,uI);zI.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"}; + g.w(AI,uI);AI.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"}; + g.w(BI,uI);BI.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"}; + g.w(CI,uI);CI.prototype.getType=function(){return"metadata_ad_video_is_listed"}; + g.w(DI,uI);DI.prototype.getType=function(){return"metadata_type_ad_placement_config"}; + g.w(EI,uI);EI.prototype.getType=function(){return"metadata_type_ad_pod_info"}; + g.w(FI,uI);FI.prototype.getType=function(){return"metadata_type_ad_video_id"}; + g.w(GI,uI);GI.prototype.getType=function(){return"metadata_type_ad_video_url"}; + g.w(HI,uI);HI.prototype.getType=function(){return"metadata_type_content_cpn"}; + g.w(II,uI);II.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"}; + g.w(JI,uI);JI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"}; + g.w(KI,uI);KI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"}; + g.w(LI,uI);LI.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"}; + g.w(MI,uI);MI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}; + g.w(NI,uI);NI.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}; + g.w(OI,uI);OI.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"}; + g.w(PI,uI);PI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"}; + g.w(QI,uI);QI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"}; + g.w(RI,uI);RI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"}; + g.w(SI,uI);SI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"}; + g.w(TI,uI);TI.prototype.getType=function(){return"metadata_type_player_bytes_callback"}; + g.w(UI,uI);UI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"}; + g.w(VI,uI);VI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"}; + g.w(WI,uI);WI.prototype.getType=function(){return"metadata_type_sub_layouts"}; + g.w(XI,uI);XI.prototype.getType=function(){return"metadata_type_cue_point"}; + g.w(YI,uI);YI.prototype.getType=function(){return"metadata_type_video_length_seconds"}; + g.w(ZI,uI);ZI.prototype.getType=function(){return"metadata_type_player_vars"}; + g.w($I,uI);$I.prototype.getType=function(){return"metadata_type_sodar_extension_data"}; + g.w(aJ,uI);aJ.prototype.getType=function(){return"metadata_type_layout_enter_ms"}; + g.w(bJ,uI);bJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"}; + g.w(cJ,uI);cJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"}; + g.w(dJ,uI);dJ.prototype.getType=function(){return"metadata_type_dai"}; + g.w(eJ,uI);eJ.prototype.getType=function(){return"metadata_type_ad_intro"}; + g.w(fJ,uI);fJ.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"}; + g.w(gJ,uI);gJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"}; + g.w(hJ,uI);hJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"}; + g.w(iJ,uI);iJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"}; + g.w(jJ,uI);jJ.prototype.getType=function(){return"metadata_type_ad_break_response_data"}; + g.w(kJ,uI);kJ.prototype.getType=function(){return"metadata_type_remote_slots_data"}; + g.w(lJ,uI);lJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}; + g.w(mJ,uI);mJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}; + g.w(nJ,uI);nJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"}; + g.w(oJ,uI);oJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}; + g.w(pJ,uI);pJ.prototype.getType=function(){return"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR"}; + g.w(qJ,uI);qJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"}; + g.w(rJ,uI);rJ.prototype.getType=function(){return"metadata_type_survey_overlay"};wqa.prototype.Id=function(a){this.i.Id(a)};g.w(tJ,g.R);tJ.prototype.getProgressState=function(){return this.B}; + tJ.prototype.start=function(){this.C=Date.now();yqa(this,{current:this.i/1E3,duration:this.u/1E3});this.Lb.start()}; + tJ.prototype.stop=function(){this.Lb.stop()};g.w(uJ,uH);g.w(vJ,g.R);vJ.prototype.start=function(){this.B||(this.B=!0,this.u.start(),this.C=Date.now())}; + vJ.prototype.stop=function(){this.B&&(this.B=!1,this.u.stop())}; + vJ.prototype.Qb=function(){var a=Date.now(),b=a-this.C;this.C=a;this.i+=b;this.i>=this.durationMs?(this.i=this.durationMs,this.u.stop(),this.D(this.i),this.J()):this.D(this.i)};g.w(yJ,gI);g.k=yJ.prototype;g.k.Zq=function(){this.Ef()}; + g.k.Ef=function(){var a=this,b=this.D.i;if(g.lF(this.I.V()))zqa(this,b),this.Y=Date.now(),this.B&&this.B.start();else if(hI(this,[new uJ(b)]),this.D.i.controlWithFixEnabled){var c=1E3*this.D.u;this.S=new vJ(c,function(d){var e={current:d/1E3,duration:c/1E3};iI(a,d/1E3);a.I.Oa("onAdPlaybackProgress",e)},function(){var d={current:c/1E3, + duration:c/1E3};xJ(a);a.I.Oa("onAdPlaybackProgress",d)}); + g.J(this,this.S);this.S.start()}wJ();gI.prototype.Ef.call(this)}; + g.k.getDuration=function(){return this.D.u}; + g.k.Bn=function(){gI.prototype.Bn.call(this);this.B&&this.B.stop()}; + g.k.Cn=function(){gI.prototype.Cn.call(this);this.B&&this.B.start()}; + g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")}; + g.k.Kp=function(){gI.prototype.Kp.call(this);this.ld("adended")}; + g.k.DH=function(){var a=this.I.V();this.D.i.controlWithFixEnabled&&!g.lF(a)&&(a=2===this.I.getPresentingPlayerType(!0),this.K&&!a&&(xJ(this),this.ld("adended")))}; + g.k.Yg=function(a){this.I.V().experiments.ob("html5_block_player_errors_while_survey_active")?T("Unexpected Player Error while the Survey is playing."):(gI.prototype.Yg.call(this,a),this.ld("aderror"))}; + g.k.ld=function(a){this.jk();this.ea(a)}; + g.k.Ff=function(a){switch(a){case "skip-button":this.Kp();break;case "survey-submit":this.ld("adended")}}; + g.k.jk=function(){g.lF(this.I.V())?(this.B&&this.B.stop(),this.I.Oa("onAdInfoChange",null)):gI.prototype.jk.call(this)};g.w(zJ,uH);g.w(AJ,gI);AJ.prototype.Zq=function(){this.Ef()}; + AJ.prototype.Ef=function(){wJ();hI(this,[new zJ(this.B.i,this.macros)]);gI.prototype.Ef.call(this)}; + AJ.prototype.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")}; + AJ.prototype.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")};g.w(BJ,gI);g.k=BJ.prototype;g.k.Av=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.B.u,isPlaying:Bpa(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}}; + g.k.Zq=function(){if(this.B.Z)cqa(this),this.ld("aderror");else{var a=this.B.i.legacyInfoCardVastExtension,b=this.B.D;a&&b&&this.I.V().S.add(b,{Ou:a});try{var c=this.B.i.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{ll(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.lf("//tpc.googlesyndication.com/sodar/%{path}");g.My(new g.dw("Load Sodar Error.",d instanceof jf,d.constructor===jf,{Message:e.message,"Escaped injector basename":g.hg(c.siub),"BG vm basename":c.bgub}));if(d.constructor===jf)throw e; + }}catch(e){g.Ly(e)}sH(this.I,!1);a=Kpa(this.B);b=this.I.V();a.iv_load_policy=b.isMobile||g.lF(b)||g.xF(b)?3:1;b=this.I.getVideoData(1);b.Bg&&(a.ctrl=b.Bg);b.Hf&&(a.ytr=b.Hf);b.El&&(a.ytrcc=b.El);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Uh&&(a.vss_credentials_token_type=b.Uh),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ea("adunstarted",-1);this.Y?this.J.start():(this.I.cueVideoByPlayerVars(a,2),this.J.start(),this.I.playVideo(2))}}; + g.k.Bn=function(){gI.prototype.Bn.call(this);this.ea("adpause",2)}; + g.k.Cn=function(){gI.prototype.Cn.call(this);this.ea("adplay",1)}; + g.k.Ef=function(){gI.prototype.Ef.call(this);this.J.stop();this.ma.T(this.I,g.nA("bltplayback"),this.dP);var a=new g.lA(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.Ad([a],2);a=FJ(this);this.D.Ja=a;if(this.I.isMuted()){a=this.i;var b=this.I.isMuted();UH(a)||SH(a,b?"mute":"unmute")}this.ea("adplay",1);if(null!==this.Z){a=null!==this.D.i.getVideoData(1)?this.D.i.getVideoData(1).clientPlaybackNonce:"";b=Bqa(this);for(var c=this.B,d=Aqa(this),e=g.r(this.Z.listeners), + f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.D,q=l.getVideoUrl();p&&n.push(new FI(p));q&&n.push(new GI(q));(q=(p=l.i)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new II(q)),(q=q.elementId)&&n.push(new QI(q))):T("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new JI(p));l.i.adNextParams&&n.push(new wI(l.i.adNextParams||""));(p=l.Ka)&&n.push(new xI(p));(p=Vz(f.S.get(),2))?(n.push(new BI({channelId:p.Ri, + channelThumbnailUrl:p.Ph,channelTitle:p.author,videoTitle:p.title})),n.push(new CI(p.isListed))):T("Expected meaningful PlaybackData on ad started.");n.push(new EI(l.B));n.push(new YI(l.u));n.push(new HI(a));n.push(new UI({current:this}));p=l.Ua;null!=p.kind&&n.push(new DI(p));(p=l.Ra)&&n.push(new kJ(p));void 0!==m&&n.push(new lJ(m));f.i?T(f.i.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):Cqa(f,h,n,!0,l.i.adLayoutLoggingData)}}this.S.To= + this;this.I.Oa("onAdStart",FJ(this));a=g.r(this.B.i.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; + g.k.dP=function(a){"bltcompletion"==a.getId()&&(this.I.We("bltplayback",2),WH(this.i,this.getDuration()),EJ(this,"adended"),T1(this.S,this))}; + g.k.qh=function(){gI.prototype.qh.call(this);this.ld("adended");for(var a=g.r(this.B.i.completeCommands||[]),b=a.next();!b.done;b=a.next())this.D.executeCommand(b.value,this.macros)}; + g.k.vg=function(){gI.prototype.vg.call(this);this.ld("adabandoned")}; + g.k.JA=function(){var a=this.i;TH(a)||$H(a,"clickthrough");this.C||(a=this.i,TH(a)||$H(a,"unmuted_clickthrough"))}; + g.k.Bw=function(){this.Kp()}; + g.k.Kp=function(){gI.prototype.Kp.call(this);this.ld("adended")}; + g.k.Yg=function(a){gI.prototype.Yg.call(this,a);this.ld("aderror")}; + g.k.ld=function(a){this.J.stop();sH(this.I,!0);"adabandoned"!=a&&this.I.Oa("onAdComplete");EJ(this,a);T1(this.S,this);this.I.Oa("onAdEnd",FJ(this));this.ea(a)}; + g.k.jk=function(){var a=this.I.V();g.lF(a)&&(g.xF(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.lF(a))?this.I.Oa("onAdInfoChange",null):gI.prototype.jk.call(this)}; + g.k.hm=function(){this.UF()}; + g.k.UF=function(){this.JS&&this.I.playVideo()}; + g.k.JS=function(){return 2==this.I.getPlayerState(2)}; + g.k.RJ=function(a,b){if(this.B.Z)return cqa(this),this.ld("aderror"),"";if(!Number.isFinite(a))return g.Ly(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.Ly(Error("Start time is not earlier than end time")),"";var c=1E3*this.B.u,d=Kpa(this.B);d=this.I.yr(d,2,c,a,b);a+c>b&&this.I.zt(d,b-a);return d}; + g.k.dispose=function(){Bpa(this.I)&&!this.Y&&this.I.stopVideo(2);EJ(this,"adabandoned");T1(this.S,this);gI.prototype.dispose.call(this)};GJ.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.i[b];c?b=c:(c={Wu:null,wL:-Infinity},b=this.i[b]=c);c=a.startSecs+a.i/1E3;if(!(caH&&(a=Math.max(.1,a)),this.Lx(a))}; + g.k.stopVideo=function(){this.Df()&&(UNa&&du&&0b.i.getCurrentTime(2,!1)&&!b.i.V().N("html5_dai_pseudogapless_seek_killswitch")))){c=b.ad;if(c.Vv()){var d=b.B.I.V().N("html5_dai_enable_active_view_creating_completed_adblock");Aq(c.K,d)}b.ad.J.seek=!0}0>eI(a,4)&&!(0>eI(a,2))&&(b=this.u,c=b.i,TH(c)||cI(c,"resume"),b.C||(b=b.i,TH(b)||cI(b,"unmuted_resume")));!this.I.V().experiments.ob("html5_dai_handle_suspended_state_killswitch")&&this.daiEnabled&&g.fI(a,512)&&!g.$J(a.state)&&NJ(this.C)}}}}; + g.k.onVideoDataChange=function(){return this.daiEnabled?bra(this):!1}; + g.k.resume=function(){this.u&&this.u.UF()}; + g.k.Ym=function(){this.u&&this.u.ld("adended")}; + g.k.pk=function(){this.Ym()}; + g.k.Ci=function(a){this.Rf.Ci(a)}; + g.k.eP=function(a){this.Rf.i.Oa("onAdUxUpdate",a)}; + g.k.onAdUxClicked=function(a){this.u.Ff(a)}; + g.k.DD=function(){return 1}; + g.k.KG=function(a){this.daiEnabled&&this.i.K&&this.i.i.start<=a&&a=this.D?this.B.i:this.B.i.slice(this.D)).some(function(a){return a.us()})}; + g.k.Hk=function(){return this.J instanceof IH||this.J instanceof oI}; + g.k.Yv=function(){return this.J instanceof BH||this.J instanceof mI}; + g.k.YM=function(){this.daiEnabled?dH(this.I)&&bra(this):Ora(this)}; + g.k.Yt=function(a){var b=Nra(a);this.J&&b&&this.S!==b&&(b?Fsa(this.Rf):Hsa(this.Rf),this.S=b);this.J=a;this.daiEnabled&&(this.D=this.B.i.findIndex(function(c){return c===a})); + bK.prototype.Yt.call(this,a)}; + g.k.pk=function(){this.D=this.B.i.length;this.u&&this.u.ld("adended");fK(this)}; + g.k.Ym=function(){this.onAdEnd()}; + g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Ci(0),a?fK(this,a,b):Ora(this))}; + g.k.ZL=function(){if(1==this.B.u)fK(this);else this.onAdEnd()}; + g.k.ez=function(){var a=0>=this.D?this.B.i:this.B.i.slice(this.D);return 0eI(a,16)&&(this.S.forEach(this.gF,this),this.S.clear())}; + g.k.iW=function(){if(this.u)this.u.onVideoDataChange()}; + g.k.lW=function(){if(dH(this.i)&&this.u){var a=this.i.getCurrentTime(2,!1),b=this.u;b.u&&iI(b.u,a)}}; + g.k.mT=function(){this.Ya=!0;if(this.u){var a=this.u;a.u&&a.u.vg()}}; + g.k.wT=function(a){if(this.u)this.u.onAdUxClicked(a)}; + g.k.mW=function(){if(2==this.i.getPresentingPlayerType()&&this.u){var a=this.u.u,b=a.i,c=a.I.isMuted();UH(b)||SH(b,c?"mute":"unmute");a.C||(b=a.I.isMuted(),SH(a.i,b?"unmuted_mute":"unmuted_unmute"))}}; + g.k.oU=function(a){if(this.u){var b=this.u.u,c=b.i;TH(c)||$H(c,a?"fullscreen":"end_fullscreen");b.C||(b=b.i,TH(b)||$H(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}}; + g.k.If=function(a,b){this.i.If(a,b);a=g.r(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.Xo.delete(b),this.B.delete(b)}; + g.k.HX=function(){for(var a=[],b=g.r(this.Xo),c=b.next();!c.done;c=b.next())c=c.value,qA(c)||a.push(c);b=this.i.app;1!==b.getPresentingPlayerType()||ZX(b,"cuerangemarkersupdated",a)}; + g.k.Ci=function(a){this.i.Ci(a);switch(a){case 1:this.sz=1;break;case 0:this.sz=0}}; + g.k.mG=function(){var a=this.i.getVideoData(2);return a?a.isListed&&!this.Z:!1}; + g.k.Ym=function(){this.u&&this.u.Np()&&this.u.Ym()}; + g.k.pk=function(){this.u&&this.u.Np()&&this.u.pk()}; + g.k.Jy=function(){}; + g.k.sy=function(){}; + g.k.Qb=function(a){if(this.u){var b=this.u;b.u&&iI(b.u,a)}}; + g.k.Hk=function(){return dH(this.i)&&!!this.u&&this.u.Hk()}; + g.k.executeCommand=function(a,b,c){var d=this.jb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.u,c=f.ad.Vv()?XH(f.i,c):{}):c={}}else c={};e.call(d,a,b,c)}; + g.k.bK=function(){return this.Ea}; + g.k.cK=function(){return this.La};g.w(IK,g.I);IK.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");this.i.appendChild(a.i)}; + g.w(JK,IK);g.w(Ksa,g.I);var Msa=1;g.w(g.LK,g.I);g.k=g.LK.prototype; + g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.L,d=a.Ha;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.BF&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Gg(a.G);if(c){if(c=MK(this,e,"class",c))NK(this,e,"class",c),this.Ya[c]=e}else if(d){c=g.r(d);for(var f=c.next();!f.done;f=c.next())this.Ya[f.value]=e;NK(this,e,"class",d.join(" "))}d=a.va;c=a.U;if(d)b=MK(this,e,"child",d),void 0!==b&&e.appendChild(g.Hg(b));else if(c)for(d=0,c=g.r(c),f=c.next();!f.done;f=c.next())if(f= + f.value)if("string"===typeof f)f=MK(this,e,"child",f),null!=f&&e.appendChild(g.Hg(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ob&&(h=KK(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.Jg(e,f,d++))}if(a=a.W)for(b=e,d=g.r(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],NK(this,b,c,"string"===typeof f? + MK(this,b,c,f):f);return e}; + g.k.Fa=function(a){return this.Ya[a]}; + g.k.Da=function(a,b){"number"===typeof b?g.Jg(a,this.element,b):a.appendChild(this.element)}; + g.k.detach=function(){g.Kg(this.element)}; + g.k.update=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.Sa(c,a[c])}; + g.k.Sa=function(a,b){(a=this.Zb["{{"+a+"}}"])&&NK(this,a[0],a[1],b)}; + g.k.xa=function(){this.Ya={};this.Zb={};this.detach();g.I.prototype.xa.call(this)};g.w(g.V,g.LK);g.k=g.V.prototype;g.k.kd=function(a,b){this.Sa(b||"content",a)}; + g.k.show=function(){this.Ab||(g.Sl(this.element,"display",""),this.Ab=!0)}; + g.k.hide=function(){this.Ab&&(g.Sl(this.element,"display","none"),this.Ab=!1)}; + g.k.Yb=function(a){this.Z=a}; + g.k.Qa=function(a,b,c){return this.T(this.element,a,b,c)}; + g.k.T=function(a,b,c,d){c=(0,g.E)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d}; + g.k.jc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})}; + g.k.focus=function(){var a=this.element;Pg(a);a.focus()}; + g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.LK.prototype.xa.call(this)};g.w(g.PK,g.V);g.PK.prototype.subscribe=function(a,b,c){return this.Ka.subscribe(a,b,c)}; + g.PK.prototype.unsubscribe=function(a,b,c){return this.Ka.unsubscribe(a,b,c)}; + g.PK.prototype.eg=function(a){return this.Ka.eg(a)}; + g.PK.prototype.ea=function(a,b){for(var c=[],d=1;dMath.pow(5,2))b.C=!0}; + g.k.hP=function(a){if(this.ma){var b=this.ma,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&Lsa(b,c)&&(b.Y=a,b.i.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}}; + g.k.Rg=function(a,b){this.api.Rg(a,this);this.api.ym(a,b)}; + g.k.ib=function(a,b){this.api.Rv(a)&&this.api.ib(a,b,this.ub)}; + g.k.xa=function(){this.clear(null);this.jc(this.eb);for(var a=g.r(this.ya),b=a.next();!b.done;b=a.next())this.jc(b.value);g.PK.prototype.xa.call(this)};g.w(dL,QK); + dL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.i=b;if(null==b.text&&null==b.icon)Is(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}null!=a&&g.N(this.element,a);null!=b.text&&(a=g.sA(b.text),g.$a(a)||(this.element.setAttribute("aria-label",a),this.B=new g.PK({G:"span",L:"ytp-ad-button-text",va:a}),g.J(this,this.B),this.B.Da(this.element)));null!=b.icon&&(b=cL(b.icon),null!= + b&&(this.u=new g.PK({G:"span",L:"ytp-ad-button-icon",U:[b]}),g.J(this,this.u)),this.C?g.Jg(this.element,this.u.element,0):this.u.Da(this.element))}}; + dL.prototype.clear=function(){this.hide()}; + dL.prototype.onClick=function(a){var b=this;QK.prototype.onClick.call(this,a);eta(this).forEach(function(c){return b.Wa.executeCommand(c,b.macros)}); + this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(eL,g.I);eL.prototype.xa=function(){this.u&&g.Bu(this.u);this.i.clear();fL=null;g.I.prototype.xa.call(this)}; + eL.prototype.register=function(a,b){b&&this.i.set(a,b)}; + var fL=null;g.w(hL,QK); + hL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&b.button.buttonRenderer||null;null==b?g.Gs(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new dL(this.api,this.Wa,this.layoutId,this.ub),g.J(this,this.button),this.button.init(tH("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.sA(a)),this.button.Da(this.element),this.D&&!g.Qq(this.button.element,"ytp-ad-clickable")&&g.N(this.button.element,"ytp-ad-clickable"), + a&&(this.u=new g.PK({G:"div",L:"ytp-ad-hover-text-container"}),this.C&&(b=new g.PK({G:"div",L:"ytp-ad-hover-text-callout"}),b.Da(this.u.element),g.J(this,b)),g.J(this,this.u),this.u.Da(this.element),b=gL(a),g.Jg(this.u.element,b,0)),this.show())}; + hL.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();QK.prototype.hide.call(this)}; + hL.prototype.show=function(){this.button&&this.button.show();QK.prototype.show.call(this)};g.w(jL,QK);jL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b=(a=b.thumbnail)&&iL(a)||"";g.$a(b)?(this.api.V().N("web_player_ad_image_error_rate_sampling_killswitch")||.01>Math.random())&&Is(Error("Found AdImage without valid image URL")):(this.i?g.Sl(this.element,"backgroundImage","url("+b+")"):xg(this.element,{src:b}),xg(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),this.show())}; + jL.prototype.clear=function(){this.hide()};g.w(kL,QK);g.k=kL.prototype;g.k.hide=function(){QK.prototype.hide.call(this);this.B&&this.B.focus()}; + g.k.show=function(){this.B=document.activeElement;QK.prototype.show.call(this);this.C.focus()}; + g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.Gs(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.Gs(Error("ConfirmDialogRenderer.cancelLabel was not set.")):ita(this,b):g.Gs(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; + g.k.clear=function(){g.my(this.i);this.hide()}; + g.k.dF=function(){this.hide()}; + g.k.RB=function(){var a=this.u.cancelEndpoint;a&&this.Wa.executeCommand(a,this.macros);this.hide()}; + g.k.eF=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&this.Wa.executeCommand(a,this.macros);this.hide()};g.w(lL,QK);g.k=lL.prototype; + g.k.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.Gs(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.Gs(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}null!=a&&g.N(this.B,a)}a={};b.defaultText? + (c=g.sA(b.defaultText),g.$a(c)||(a.buttonText=c,this.i.setAttribute("aria-label",c))):g.hm(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.i.hasAttribute("aria-label")||this.Y.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=cL(b.defaultIcon),this.Sa("untoggledIconTemplateSpec",c),b.toggledIcon?(this.K=!0,c=cL(b.toggledIcon),this.Sa("toggledIconTemplateSpec",c)):(g.hm(this.D,!0),g.hm(this.C,!1)),g.hm(this.i,!1)):g.hm(this.Y,!1);g.lc(a)||this.update(a);b.isToggled&& + (g.N(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));mL(this);this.T(this.element,"change",this.EH);this.show()}}; + g.k.onClick=function(a){0a&&g.Gs(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ua&&g.N(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.i.zv():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(tH("ad-text"),d,c);(d=this.api.getVideoData(1))&& + d.Tj&&b.thumbnail?this.D.init(tH("ad-image"),b.thumbnail,c):this.K.hide()}; + g.k.clear=function(){this.hide()}; + g.k.hide=function(){this.u.hide();this.B.hide();this.D.hide();wL(this);uL.prototype.hide.call(this)}; + g.k.show=function(){vL(this);this.u.show();this.B.show();this.D.show();uL.prototype.show.call(this)}; + g.k.qq=function(){this.hide()}; + g.k.ao=function(){if(null!=this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ja&&a>=this.Aa?(this.Y.hide(),this.Ja=!0,this.ea("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.La&&(tL(this.B,{TIME_REMAINING:String(a)}),this.La=a)))}};g.w(BL,uL);g.k=BL.prototype; + g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.actionButton&&b.actionButton.buttonRenderer&&b.actionButton.buttonRenderer.navigationEndpoint){a=this.api.getVideoData(2);if(null!=a)if(b.image&&b.image.thumbnail){var d=b.image.thumbnail.thumbnails;null!=d&&0=this.Aa&&(wL(this),g.Sq(this.element,"ytp-flyout-cta-inactive"))}}; + g.k.qq=function(){this.clear()}; + g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.DK.bind(this))}; + g.k.show=function(){this.u&&this.u.show();uL.prototype.show.call(this)}; + g.k.hide=function(){this.u&&this.u.hide();uL.prototype.hide.call(this)}; + g.k.DK=function(a){a?this.hide():this.show()};g.w(CL,QK);g.k=CL.prototype;g.k.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);this.i=b;this.i.rectangle&&(wta(this,c),this.C.show(100),this.show(),(this.i&&this.i.impressionCommands||[]).forEach(function(e){return d.Wa.executeCommand(e,d.macros)}))}; + g.k.clear=function(){this.hide()}; + g.k.hide=function(){this.B.hide();this.u.hide();QK.prototype.hide.call(this)}; + g.k.show=function(){this.B.show();this.u.show();QK.prototype.show.call(this)}; + g.k.GH=function(){Uq(this.element,"ytp-ad-instream-user-sentiment-selected");this.i.postMessageAction&&this.api.Oa("onYtShowToast",this.i.postMessageAction);this.C.hide()}; + g.k.onClick=function(a){0=this.K&&zta(this,!0)};g.w(GL,dL);GL.prototype.init=function(a,b,c){dL.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.sA(b.text),a=!g.$a(a));a?null==b.navigationEndpoint?Is(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?Is(Error("Button style was not a link-style type in renderer,")):this.show():Is(Error("No visit advertiser text was present in the renderer."))};g.w(HL,QK);HL.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);a=b.text;g.$a(RK(a))?Is(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.i&&(b=this.api.V(),b=a.text+" "+(b&&b.isMobile?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a=new sL(this.api,this.Wa,this.layoutId,this.ub),a.init(tH("simple-ad-badge"),b,c),a.Da(this.element),g.J(this,a)),this.show())}; + HL.prototype.clear=function(){this.hide()};g.w(IL,uH);g.w(JL,g.R);g.k=JL.prototype;g.k.zv=function(){return this.durationMs}; + g.k.stop=function(){this.i&&this.Ae.jc(this.i)}; + g.k.Qb=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ea("h")}; + g.k.getProgressState=function(){return this.u}; + g.k.Mc=function(a){g.fI(a,2)&&this.ea("g")};g.w(KL,g.R);g.k=KL.prototype;g.k.zv=function(){return this.durationMs}; + g.k.start=function(){this.B||(this.B=!0,this.i.start(),this.C=Date.now())}; + g.k.stop=function(){this.B&&(this.B=!1,this.i.stop())}; + g.k.Qb=function(){var a=Date.now(),b=a-this.C;this.J?(this.C=a,this.u+=b):this.u+=100;a=!1;this.u>this.durationMs&&(this.u=this.durationMs,this.i.stop(),a=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.u/1E3};this.Wa&&this.Wa.Qb(this.D.current);this.ea("h");a&&this.ea("g")}; + g.k.getProgressState=function(){return this.D};g.w(NL,uL);g.k=NL.prototype;g.k.init=function(a,b,c){var d;uL.prototype.init.call(this,a,b,c);if(null===(d=null===b||void 0===b?void 0:b.templatedCountdown)||void 0===d?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){Is(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new sL(this.api,this.Wa,this.layoutId,this.ub);this.u.init(tH("ad-text"),a,{});this.u.Da(this.element);g.J(this,this.u)}this.show()}; + g.k.clear=function(){this.hide()}; + g.k.hide=function(){wL(this);uL.prototype.hide.call(this)}; + g.k.qq=function(){this.hide()}; + g.k.ao=function(){if(null!=this.i){var a=this.i.getProgressState();if(null!=a&&null!=a.current&&this.u){a=(this.i instanceof JL?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.i instanceof KL?a.seekableEnd:this.api.getDuration(2,!1))-a.current;var b=g.LL(a);tL(this.u,{FORMATTED_AD_DURATION_REMAINING:String(b),TIME_REMAINING:String(Math.ceil(a))})}}}; + g.k.show=function(){vL(this);uL.prototype.show.call(this)};g.w(OL,sL);OL.prototype.onClick=function(a){sL.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(TL,g.PK);TL.prototype.Qb=function(){var a=this.u.getProgressState();this.Oc.style.width=100*SL(new PL(a.seekableStart,a.seekableEnd),a.current,0)+"%"}; + TL.prototype.onStateChange=function(){g.eF(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.i&&(this.show(),this.i=this.u.subscribe("h",this.Qb,this),this.Qb()):-1!==this.i&&(this.hide(),this.u.eg(this.i),this.i=-1))};g.w(UL,QK); + UL.prototype.init=function(a,b,c,d){QK.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(a=b.skipOrPreviewRenderer,a.skipAdRenderer?(c=new FL(this.api,this.Wa,this.layoutId,this.ub,this.i,this.D),c.Da(this.C),c.init(tH("skip-button"),a.skipAdRenderer,this.macros),g.J(this,c)):a.adPreviewRenderer&&(c=new zL(this.api,this.Wa,this.layoutId,this.ub,this.i,!1),c.Da(this.C),c.init(tH("ad-preview"),a.adPreviewRenderer,this.macros),AL(c),g.J(this,c)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,c= + new CL(this.api,this.Wa,this.layoutId,this.ub),c.Da(this.Y),c.init(tH("instream-user-sentiment"),a,this.macros),g.J(this,c));b.flyoutCtaRenderer&&(a=b.flyoutCtaRenderer,a.flyoutCtaRenderer&&(c=new BL(this.api,this.Wa,this.layoutId,this.ub,this.i),g.J(this,c),c.Da(this.K),c.init(tH("flyout-cta"),a.flyoutCtaRenderer,this.macros)));d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new HL(this.api,this.Wa,this.layoutId, + this.ub,!0),g.J(this,c),c.Da(this.u),c.init(tH("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new NL(this.api,this.Wa,this.layoutId,this.ub,this.i,d),g.J(this,d),d.Da(this.u),d.init(tH("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=b.adInfoRenderer,d.adHoverTextButtonRenderer&&(a=new rL(this.api,this.Wa,this.layoutId, + this.ub,this.element),g.J(this,a),a.Da(this.u),a.init(tH("ad-info-hover-text-button"),d.adHoverTextButtonRenderer,this.macros)));b.visitAdvertiserRenderer&&(b=b.visitAdvertiserRenderer,b.buttonRenderer&&(d=Bta(this)&&this.B?this.B:this.u))&&(a=new GL(this.api,this.Wa,this.layoutId,this.ub),g.J(this,a),a.Da(d),a.init(tH("visit-advertiser"),b.buttonRenderer,this.macros));(b=this.api.V())&&!bF(b)&&"3"==b.controlsType&&(b=new TL(this.api,this.i),b.Da(this.Aa),g.J(this,b));this.api.V().N("enable_updated_html5_player_focus_style")&& + g.N(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; + UL.prototype.clear=function(){this.hide()};g.Fa("yt.pubsub.publish",g.jv,void 0);var dM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Y2={},Lta=(Y2.WEB_UNPLUGGED="^unplugged/",Y2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Y2.WEB_UNPLUGGED_OPS="^unplugged/",Y2.WEB_UNPLUGGED_PUBLIC="^unplugged/",Y2.WEB_CREATOR="^creator/",Y2.WEB_KIDS="^kids/",Y2.WEB_EXPERIMENTS="^experiments/",Y2.WEB_MUSIC="^music/",Y2.WEB_REMIX="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Y2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Y2);aM.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?dM:c;var d={context:lK(a.clickTrackingParams,!1,this.C)};var e=this.i(a);if(e){this.u(d,e,b);var f,h;b=g.YL(this.B());(a=null===(h=null===(f=a.commandMetadata)||void 0===f?void 0:f.webCommandMetadata)||void 0===h?void 0:h.apiUrl)&&(b=a);f=Nta(ZL(b),void 0);d={input:f,wq:$L(f),Vl:d,config:Object.assign({},void 0)};d.config.fp?d.config.fp.identity=c:d.config.fp={identity:c};return d}g.Ly(new g.dw("Error: Failed to create Request from Command.", + a))}; + ea.Object.defineProperties(aM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(bM,aM);bM.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",wq:$L("/getDatasyncIdsEndpoint","GET"),Vl:{}}}; + bM.prototype.B=function(){return[]}; + bM.prototype.i=function(){}; + bM.prototype.u=function(){};var WNa={},Ota=(WNa.GET_DATASYNC_IDS=bM,WNa);g.w(fM,aM);fM.prototype.B=function(){return oNa}; + fM.prototype.i=function(a){return a.subscribeEndpoint}; + fM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)}; + ea.Object.defineProperties(fM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(gM,aM);gM.prototype.B=function(){return pNa}; + gM.prototype.i=function(a){return a.unsubscribeEndpoint}; + gM.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)}; + ea.Object.defineProperties(gM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(hM,aM);hM.prototype.B=function(){return lNa}; + hM.prototype.i=function(a){return a.feedbackEndpoint}; + hM.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))}; + ea.Object.defineProperties(hM.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(iM,aM);iM.prototype.B=function(){return mNa}; + iM.prototype.i=function(a){return a.modifyChannelNotificationPreferenceEndpoint}; + iM.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(jM,aM);jM.prototype.B=function(){return nNa}; + jM.prototype.i=function(a){return a.playlistEditEndpoint}; + jM.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(kM,aM);kM.prototype.B=function(){return kNa}; + kM.prototype.i=function(a){return a.webPlayerShareEntityServiceEndpoint}; + kM.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};lM.prototype.fetch=function(a,b){var c=this;a=new window.Request(a,b);return Promise.resolve(fetch(a).then(function(d){return c.handleResponse(d)}).catch(function(d){g.My(d)}))}; + lM.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))}); + a.redirected||a.ok||(b=b.then(function(c){g.My(new g.dw("Error: API fetch failed",a.status,a.url,c));return Object.assign(Object.assign({},c),{errorMetadata:{status:a.status}})})); + return b};var mM;oM.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f,h,l=new XMLHttpRequest;l.onerror=function(){e(d.handleResponse(a,l.status,l.response))}; + l.onload=function(){e(d.handleResponse(a,l.status,l.response))}; + if(null===c||void 0===c?0:c.Js)l.onreadystatechange=function(q){c.Js(l,q)}; + l.open(null!==(f=b.method)&&void 0!==f?f:"GET",a,!0);l.responseType="text";l.withCredentials=!0;if(b.headers)for(var m=g.r(Object.entries(b.headers)),n=m.next();!n.done;n=m.next()){var p=g.r(n.value);n=p.next().value;p=p.next().value;l.setRequestHeader(n,p)}l.send(null!==(h=b.body)&&void 0!==h?h:null)})}; + oM.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.My(new g.dw("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.My(new g.dw("XHR API fetch failed",a,b,c)),d=Object.assign(Object.assign({},d),{errorMetadata:{status:b}}));return d};var Vta=[],pM=!1;qM.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new qM,g.Fa("ytglobal.storage_",a,void 0));return a}; + qM.prototype.estimate=function(){var a,b;return g.H(this,function d(){var e;return g.B(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f.return(e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.queryUsageAndQuota)?f.return(Yta()):f.return()})})}; + g.Fa("ytglobal.storageClass_",qM,void 0);Xv.prototype.ge=function(a){this.handleError(a)}; + Xv.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Cs("idb_data_corrupted_killswitch")||this.i("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.i("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Cs("idb_is_supported_completed_killswitch")||this.i("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":$ta(this,b);break;case "TRANSACTION_ENDED":this.B&&this.i("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign(Object.assign({}, + b),{hasWindowUnloaded:this.u}),this.i("idbTransactionAborted",a)}};rM.prototype.initialize=function(a,b,c,d){d=void 0===d?!1:d;var e,f;if(a.program){var h=null!==(e=a.interpreterScript)&&void 0!==e?e:null,l=null!==(f=a.interpreterUrl)&&void 0!==f?f:null;if(a.interpreterSafeScript){var m=a.interpreterSafeScript;h=g.lf("From proto message. b/166824318");m=m.privateDoNotAccessOrElseSafeScriptWrappedValue||"";kf(h);kf(h);h=(h=ff())?h.createScript(m):m;h=(new nf(h,mf)).toString()}a.interpreterSafeUrl&&(l=a.interpreterSafeUrl,l=Rf(g.lf("From proto message. b/166824318"), + l.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());bua(this,h,l,a.program,b,c,d)}else g.My(Error("Cannot initialize botguard without program"))}; + rM.prototype.Zd=function(){return!!this.i}; + rM.prototype.invoke=function(a){a=void 0===a?{}:a;return this.i?this.i.hasOwnProperty("hot")?this.i.hot(void 0,void 0,a):this.i.invoke(void 0,void 0,a):null}; + rM.prototype.dispose=function(){this.i=null};var tM;g.sM=new rM;tM=0;var iua=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var Z2={},XNa=(Z2["api.invalidparam"]=2,Z2.auth=150,Z2["drm.auth"]=150,Z2["heartbeat.net"]=150,Z2["heartbeat.servererror"]=150,Z2["heartbeat.stop"]=150,Z2["html5.unsupportedads"]=5,Z2["fmt.noneavailable"]=5,Z2["fmt.decode"]=5,Z2["fmt.unplayable"]=5,Z2["html5.missingapi"]=5,Z2["html5.unsupportedlive"]=5,Z2["drm.unavailable"]=5,Z2);g.w(zM,g.I);g.k=zM.prototype; + g.k.handleExternalCall=function(a,b,c){var d=this.D[a],e=this.K[a],f=d;if(e)if(c&&fA(c,rNa))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');d=this.app.V();d.Sj&&!this.Z.has(a)&&(this.Z.add(a),g.Zv("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:c||void 0,playerStyle:d.playerStyle||void 0}));if(f){c=!1;d=g.r(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.My(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this, + b)}throw Error('Unknown API method: "'+a+'".');}; + g.k.isExternalMethodAvailable=function(a,b){return this.D[a]?!0:!!(this.K[a]&&b&&fA(b,rNa))}; + g.k.getBandwidthEstimate=function(){return IE(this.app.V().schedule)}; + g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.PM(this.app);b&&(a={gpu:(0,g.wW)(),d:a},b.handleError(new g.KD("feedback",!1,a)))}; + g.k.getApiInterface=function(){return this.S.slice()}; + g.k.getInternalApiInterface=function(){return g.ec(this.u)}; + g.k.XQ=function(a,b){if("string"===typeof b){var c=function(d){for(var e=[],f=0;f=c.Hb.length)c=!1;else{d=g.r(c.Hb);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof JF)){c=!1;break a}var f=a.Ac.getId();e.B&&(Ena(e.B,f),e.u=null)}c.Sj=a;c=!0}c&&xX(b)&&(b.ea("internalaudioformatchange",b.videoData,!0),b.Ba("hlsaudio",a.id))}}}; + g.k.HR=function(){return this.getAvailableAudioTracks()}; + g.k.getAvailableAudioTracks=function(){return g.PM(this.app,this.playerType).getAvailableAudioTracks()}; + g.k.getMaxPlaybackQuality=function(){var a=g.PM(this.app,this.playerType);return a&&a.getVideoData().u?iB(a.Ee?zEa(a.Zf,a.Ee,a.Xr()):nG):"unknown"}; + g.k.getUserPlaybackQualityPreference=function(){var a=g.PM(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"}; + g.k.getSubtitlesUserSettings=function(){var a=g.hN(this.app.wb());return a?a.TR():null}; + g.k.resetSubtitlesUserSettings=function(){g.hN(this.app.wb()).OW()}; + g.k.setMinimized=function(a){this.app.setMinimized(a)}; + g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)}; + g.k.setGlobalCrop=function(a){this.app.bb().setGlobalCrop(a)}; + g.k.getVisibilityState=function(){var a=this.Je();return this.app.getVisibilityState(this.qf(),this.isFullscreen()||bF(this.app.V()),a,this.isInline(),this.app.ws(),this.app.rs())}; + g.k.isMutedByMutedAutoplay=function(){return this.app.jw}; + g.k.isInline=function(){return this.app.isInline()}; + g.k.setInternalSize=function(a,b){this.app.bb().setInternalSize(new g.cg(a,b))}; + g.k.Uc=function(){var a=g.PM(this.app,void 0);return a?a.Uc():0}; + g.k.Je=function(){return this.app.Je()}; + g.k.qf=function(){var a=g.PM(this.app,this.playerType);return!!a&&a.qf()}; + g.k.isFullscreen=function(){return this.app.isFullscreen()}; + g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a}; + g.k.canPlayType=function(a){return this.app.canPlayType(a)}; + g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;if(b&&b!==a.list)if(this.N("player_enable_playback_playlist_change"))c=!0;else return;void 0!==a.external_list&&this.app.setIsExternalPlaylist(a.external_list);var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.UM(b).videoId||(a.index=b.index)):fY(this.app,{list:a.list,index:a.index,playlist_length:d.length});WM(this.app.getPlaylist(),a);this.Oa("onPlaylistUpdate")}else this.app.updatePlaylist()}; + g.k.updateVideoData=function(a,b){var c=g.PM(this.app,this.playerType||1);c&&g.rG(c.getVideoData(),a,b)}; + g.k.updateEnvironmentData=function(a){jF(this.app.V(),a,!1)}; + g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)}; + g.k.setCardsVisible=function(a,b,c){var d=g.oN(this.app.wb());d&&d.yh()&&d.setCardsVisible(a,b,c)}; + g.k.productsInVideoVisibilityUpdated=function(a){this.ea("changeProductsInVideoVisibility",a)}; + g.k.setInline=function(a){this.app.setInline(a)}; + g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)}; + g.k.getVideoAspectRatio=function(){return this.app.bb().getVideoAspectRatio()}; + g.k.getPreferredQuality=function(){var a=g.PM(this.app);return a?a.getPreferredQuality():"unknown"}; + g.k.setPlaybackQualityRange=function(a,b){var c=g.PM(this.app,this.playerType);c&&(a=fB(a,b||a,!0,"m"),Mza(c,a,!0))}; + g.k.onAdUxClicked=function(a,b){this.ea("aduxclicked",a,b)}; + g.k.showAirplayPicker=function(){this.app.showAirplayPicker()}; + g.k.ea=function(a,b){for(var c=[],d=1;d([^<>]+)<\/a>/;g.w(FN,g.uD);FN.prototype.Mh=function(){qva(this)}; + FN.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.isValid()){var c=this.I.V(),d=[],e="";if(!c.K){var f=ova(this);c.N("enable_web_media_session_metadata_fix")&&g.fF(c)&&f?(d=pva(f.thumbnailDetails),f.album&&(e=g.sA(f.album))):d=[{src:b.Ie("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}qva(this);nva(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.KM(this.I)&&(this.i.delete("nexttrack"),this.i.delete("previoustrack"), + b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()}); + GN(this,"nexttrack",b);GN(this,"previoustrack",c)}}; + FN.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.r(this.i),b=a.next();!b.done;b=a.next())GN(this,b.value,null);g.uD.prototype.xa.call(this)};g.w(HN,g.V);g.k=HN.prototype;g.k.onClick=function(a){g.wN(a,this.I,!0);this.I.Fb(this.element)}; + g.k.onVideoDataChange=function(a,b){rva(this,b);this.ud&&sva(this,this.ud)}; + g.k.Mc=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&rva(this,b);this.i&&sva(this,a.state);this.ud=a.state}; + g.k.td=function(){this.B.show();this.I.ea("paidcontentoverlayvisibilitychange",!0);this.I.ib(this.element,!0)}; + g.k.Eb=function(){this.B.hide();this.I.ea("paidcontentoverlayvisibilitychange",!1);this.I.ib(this.element,!1)};g.w(IN,g.V);IN.prototype.hide=function(){this.i.stop();this.message.style.display="none";g.V.prototype.hide.call(this)}; + IN.prototype.onStateChange=function(a){tva(a.state)?this.i.start():this.hide()}; + IN.prototype.u=function(){this.message.style.display="block"};g.w(g.JN,g.PK);g.k=g.JN.prototype;g.k.show=function(){var a=this.Wf();g.PK.prototype.show.call(this);this.Ea&&(this.K.T(window,"blur",this.Eb),this.K.T(document,"click",this.nP));a||this.ea("show",!0)}; + g.k.hide=function(){var a=this.Wf();g.PK.prototype.hide.call(this);uva(this);a&&this.ea("show",!1)}; + g.k.td=function(a,b){this.u=a;this.Y.show();b?(this.S||(this.S=this.K.T(this.I,"appresize",this.VI)),this.VI()):this.S&&(this.K.jc(this.S),this.S=void 0)}; + g.k.VI=function(){var a=g.DM(this.I);this.u&&a.nq(this.element,this.u)}; + g.k.Eb=function(){var a=this.Wf();uva(this);this.Y.hide();a&&this.ea("show",!1)}; + g.k.nP=function(a){var b=Du(a);b&&(g.Mg(this.element,b)||this.u&&g.Mg(this.u,b)||!g.ML(a))||this.Eb()}; + g.k.Wf=function(){return this.Ab&&4!==this.Y.state};g.w(LN,g.JN);LN.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(vva(this),this.td()):(this.i&&this.Fb(),this.Eb()))}; + LN.prototype.Mh=function(a){this.api.isMutedByMutedAutoplay()&&g.fI(a,2)&&this.Eb()}; + LN.prototype.onClick=function(){this.api.unMute();this.Fb()}; + LN.prototype.Fb=function(){this.clicked||(this.clicked=!0,this.api.Fb(this.element))};g.w(g.NN,g.uD);g.k=g.NN.prototype;g.k.init=function(){var a=this.api.yb();this.Ub(a);this.Dm();this.xb()}; + g.k.onVideoDataChange=function(a,b){this.AE!==b.videoId&&(this.AE=b.videoId,a=this.rd,a.ya=b&&0=aH&&this.api.yb().isCued()?MN(this):this.Cy.start(),this.HG=this.T(this.api.bb(),"touchmove",this.AV,void 0,!0)):this.Cy.stop();!xva(this)||!QN(this,a)||this.api.V().C&&this.api.V().N("embeds_enable_mobile_dtts")||MN(this);var b=this.iB.Wf(); + if(TE&&yva(this,a))b&&g.Gu(a);else if(this.rd.u||ON(this,Du(a))||this.iB.Wf()||(this.api.yb().isCued(),g.Gu(a)),this.dB=!0,g.N(this.api.getRootNode(),"ytp-touch-mode"),this.rd.Wk(),this.api.V().N("player_doubletap_to_seek")||this.api.V().N("embeds_enable_mobile_dtts")&&this.api.V().C)if(b=this.api.yb(),!(!this.api.sf()||g.U(b,2)&&HM(this.api)||g.U(b,64))){b=Date.now()-this.tL;this.nw+=1;if(350>=b){this.Yu=!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=10*(this.nw-1);02*b&&d<3*b&&(this.Rs(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.Gu(a)}else this.api.V().C&&this.api.V().N("embeds_enable_mobile_dtts")&&PN&&QN(this,a)&&g.Gu(a);this.tL=Date.now();this.yN.start()}}; + g.k.vV=function(a){if(!yva(this,a)){if(!xva(this)&&QN(this,a)&&!this.Cy.isActive()){if(g.yF(this.api.V())&&this.api.yb().isCued()){var b=void 0===b?{}:b;PA("warm");HA();OA();BA(!1);b.cttAuthInfo&&(CA().cttAuthInfo=b.cttAuthInfo);zs("TIMING_AFT_KEYS",[]);b.Uaa?g.SA("yt_lt","hot"):g.SA("yt_lt","warm");zs("TIMING_ACTION","");zs("TIMING_WAIT",[]);delete g.P("TIMING_INFO",{}).yt_lt;QA("warm",b.startTime);b=["pbs","pbu"];GA("").info.actionType="watch";b&&zs("TIMING_AFT_KEYS",b);zs("TIMING_ACTION","watch"); + b=g.P("TIMING_INFO",{});for(var c in b)b.hasOwnProperty(c)&&g.SA(c,b[c]);g.SA("is_nav",1);(c=g.Ey())&&g.SA("csn",c);(c=g.P("PREVIOUS_ACTION",void 0))&&!MA()&&g.SA("pa",c);c=DA();b=g.P("CLIENT_PROTOCOL");var d=g.P("CLIENT_TRANSPORT");b&&g.SA("p",b);d&&g.SA("t",d);g.SA("yt_vis",nka());if("cold"===c.yt_lt){g.SA("yt_lt","cold");b=Uja();if(d=AA())TA("srt",b.responseStart),1!==c.prerender&&QA("n",d);c=$ja();0=AA()&&0this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)}; + g.k.Az=function(){return this.uf()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)}; + g.k.ni=function(){return this.dB}; + g.k.zn=function(){return null}; + g.k.ij=function(){var a=this.api.bb().getPlayerSize();return new g.Pl(0,0,a.width,a.height)}; + g.k.handleGlobalKeyDown=function(){return!1}; + g.k.handleGlobalKeyUp=function(){return!1}; + g.k.nq=function(){}; + g.k.showControls=function(a){void 0!==a&&this.api.bb().Zw(a)}; + g.k.Wk=function(){}; + g.k.sK=function(){return null};g.w(RN,g.R);g.k=RN.prototype;g.k.zv=function(){return 1E3*this.api.getDuration(this.Kj,!1)}; + g.k.stop=function(){this.i&&this.Ae.jc(this.i)}; + g.k.Qb=function(){var a=this.api.getProgressState(this.Kj);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(this.Kj,!1)};this.ea("h")}; + g.k.getProgressState=function(){return this.u}; + g.k.Mc=function(a){g.fI(a,2)&&this.ea("g")};g.w(SN,g.V);SN.prototype.onClick=function(){this.I.Oa("BACK_CLICKED")};g.w(g.TN,g.V);g.TN.prototype.show=function(){g.V.prototype.show.call(this);g.Jq(this.i)}; + g.TN.prototype.hide=function(){this.u.stop();g.V.prototype.hide.call(this)}; + g.TN.prototype.Bq=function(a){a?g.U(this.I.yb(),64)||UN(this,bta(),"Play"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?UN(this,dta(),"Stop live playback"):UN(this,$sa(),"Pause"))};g.w(XN,g.V);g.k=XN.prototype;g.k.td=function(){this.I.V().N("player_new_info_card_format")&&g.Qq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.XE(this.I.V())||(this.u.show(),g.jv("iv-button-shown"))}; + g.k.Eb=function(){g.jv("iv-button-hidden");this.u.hide()}; + g.k.Wf=function(){return this.Ab&&4!==this.u.state}; + g.k.xa=function(){this.i&&this.i();g.V.prototype.xa.call(this)}; + g.k.uU=function(){g.jv("iv-button-mouseover")}; + g.k.onClicked=function(a){this.I.yh();var b=g.Qq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.jv("iv-teaser-clicked",b);a=0===a.screenX&&0===a.screenY;this.I.setCardsVisible(!this.I.hk(),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(ZN,g.V);g.k=ZN.prototype;g.k.uO=function(){this.I.yh()&&this.I.hk()&&this.Wf()&&this.Eb()}; + g.k.xG=function(){this.Eb();g.jv("iv-teaser-clicked",null!=this.i);this.I.setCardsVisible(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}; + g.k.oP=function(){g.jv("iv-teaser-mouseover");this.i&&this.i.stop()}; + g.k.VV=function(a){this.I.V().N("player_new_info_card_format")&&!g.XE(this.I.V())&&this.di.Eb();this.i||!a||this.I.hk()||this.u&&this.u.isActive()||(this.td(a),g.jv("iv-teaser-shown"))}; + g.k.td=function(a){this.Sa("text",a.teaserText);this.element.setAttribute("dir",g.nr(a.teaserText));this.C.show();this.u=new g.M(function(){g.N(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.N("player_new_info_card_format")&&!g.XE(this.I.V())&&this.di.Eb();this.VG()},0,this); + this.u.start();WN(this.di,!1);this.i=new g.M(this.Eb,580+a.durationMs,this);this.i.start();this.D.push(this.Qa("mouseover",this.IH,this));this.D.push(this.Qa("mouseout",this.HH,this))}; + g.k.VG=function(){if(!this.I.V().N("player_new_info_card_format")&&g.XE(this.I.V())&&this.Ab){var a=this.di.element.offsetLeft,b=g.vg("ytp-cards-button-icon"),c=this.I.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.di.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}}; + g.k.kR=function(){g.XE(this.I.V())&&this.Y.uf()&&this.Ab&&this.S.start()}; + g.k.IH=function(){this.J.stop();this.i&&this.i.isActive()&&this.K.start()}; + g.k.HH=function(){this.K.stop();this.i&&!this.i.isActive()&&this.J.start()}; + g.k.IU=function(){this.i&&this.i.stop()}; + g.k.HU=function(){this.Eb()}; + g.k.zi=function(){this.Eb()}; + g.k.Eb=function(){!this.i||this.B&&this.B.isActive()||(g.jv("iv-teaser-hidden"),this.C.hide(),g.Sq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.M(function(){for(var a=g.r(this.D),b=a.next();!b.done;b=a.next())this.jc(b.value);this.D=[];this.i&&(this.i.dispose(),this.i=null);WN(this.di,!0)},330,this),this.B.start())}; + g.k.Wf=function(){return this.Ab&&4!==this.C.state}; + g.k.xa=function(){var a=this.I.getRootNode();a&&g.Sq(a,"ytp-cards-teaser-shown");g.ve(this.u,this.B,this.i);g.V.prototype.xa.call(this)};var a3={},$N=(a3.BUTTON="ytp-button",a3.TITLE_NOTIFICATIONS="ytp-title-notifications",a3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",a3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",a3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",a3);g.w(aO,g.V);aO.prototype.onClick=function(){this.api.Fb(this.element);var a=!this.i;this.Sa("label",a?"Stop getting notified about every new video":"Get notified about every new video");this.Sa("pressed",a);Bva(this,a)};g.w(g.cO,g.V);g.cO.prototype.u=function(){g.N(this.element,"ytp-sb-subscribed")}; + g.cO.prototype.B=function(){g.Sq(this.element,"ytp-sb-subscribed")};g.w(dO,g.V);g.k=dO.prototype;g.k.SF=function(){Fva(this);this.channel.classList.remove("ytp-title-expanded")}; + g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")}; + g.k.wD=function(){if(Dva(this)&&!this.isExpanded()){this.Sa("flyoutUnfocusable","false");this.Sa("channelTitleFocusable","0");this.B&&this.B.stop();this.subscribeButton&&(this.subscribeButton.show(),this.api.ib(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.u&&a.Di&&a.subscribed&&(this.u.show(),this.api.ib(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}; + g.k.bD=function(){this.Sa("flyoutUnfocusable","true");this.Sa("channelTitleFocusable","-1");this.B&&this.B.start()}; + g.k.Pa=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!1;2===this.api.getPresentingPlayerType()?c=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.ac&&!!a.Ph:g.XE(b)&&(c=!!a.videoId&&!!a.ac&&!!a.Ph&&!(a.D&&b.pfpChazalUi)&&!(b.C&&200>this.api.getPlayerSize().width));var d=g.FF(this.api.V())+a.ac;g.XE(this.api.V())&&(d=g.ti(d,g.vM("emb_ch_name_ex")));var e=a.ac,f=a.Ph;b=g.XE(b)?a.Xp:a.author;e=void 0===e?"":e;f=void 0===f?"":f;b=void 0===b?"":b;c?(e=g.FF(this.api.V())+e,this.K!==f&&(this.i.style.backgroundImage= + "url("+f+")",this.K=f),this.Sa("channelLink",e),this.Sa("channelLogoLabel",g.rI("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:b})),g.N(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.ib(this.i,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=a.Ri);this.Sa("expandedTitle",a.Xp);this.Sa("channelTitleLink",d);this.Sa("expandedSubtitle",a.expandedSubtitle)};g.w(g.fO,g.PK);g.fO.prototype.Sa=function(a,b){g.PK.prototype.Sa.call(this,a,b);this.ea("size-change")};g.w(iO,g.PK);iO.prototype.iM=function(){this.ea("size-change")}; + iO.prototype.focus=function(){this.content.focus()}; + iO.prototype.LT=function(){this.ea("back")};g.w(g.jO,iO);g.jO.prototype.Gc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Kb(this.items,a,Gva);if(0<=b)return;b=~b;g.Gb(this.items,b,0,a);g.Jg(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.qF,this);this.menuItems.ea("size-change")}; + g.jO.prototype.Jf=function(a){a.unsubscribe("size-change",this.qF,this);this.isDisposed()||(g.Ab(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ea("size-change"))}; + g.jO.prototype.qF=function(){this.menuItems.ea("size-change")}; + g.jO.prototype.focus=function(){for(var a=0,b=0;bb.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=a,e=b,f=5,65==(f&65)&&(h.x=d.right)&&(f&=-2),132==(f&132)&&(h.y=d.bottom)&& + (f&=-5),h.xd.right&&(e.width=Math.min(d.right-h.x,c+e.width-d.left),e.width=Math.max(e.width,0))),h.x+e.width>d.right&&f&1&&(h.x=Math.max(d.right-e.width,d.left)),h.yd.bottom&&(e.height=Math.min(d.bottom-h.y,c+e.height-d.top),e.height=Math.max(e.height,0))),h.y+e.height>d.bottom&&f&4&&(h.y=Math.max(d.bottom-e.height,d.top)));d=new g.Pl(0,0,0,0);d.left= + a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Zl(this.element,new g.ag(d.left,d.top));g.my(this.B);this.B.T(document,"contextmenu",this.kU);this.B.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.B.T(this.I,"pageTransition",this.qP)}; + g.k.kU=function(a){if(!g.Hu(a)){var b=Du(a);g.Mg(this.element,b)||this.Eb();this.I.V().disableNativeContextMenu&&g.Gu(a)}}; + g.k.onFullscreenToggled=function(){this.Eb();Nva(this)}; + g.k.qP=function(){this.Eb()};g.w(g.vO,g.V);g.vO.prototype.onClick=function(){return g.H(this,function b(){var c=this,d,e,f,h;return g.B(b,function(l){if(1==l.i)return d=c.api.V(),e=c.api.getVideoData(),f=c.api.getPlaylistId(),h=d.getVideoUrl(e.videoId,f,void 0,!0),g.A(l,Pva(c,h),2);l.u&&Ova(c);c.api.Fb(c.element);g.sa(l)})})}; + g.vO.prototype.Pa=function(){var a=this.api.V(),b=this.api.getVideoData();this.Sa("icon",{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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.Sa("title-attr","Copy link");var c=this.api.bb().getPlayerSize().width;this.visible= + !!b.videoId&&c>=this.u&&b.Xj&&!(b.D&&a.pfpChazalUi);g.O(this.element,"ytp-copylink-button-visible",this.visible);g.OK(this,this.visible);xO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)}; + g.vO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)}; + g.vO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-copylink-button-visible")};g.w(yO,g.V);g.k=yO.prototype;g.k.show=function(){g.V.prototype.show.call(this);g.Jq(this.i)}; + g.k.hide=function(){this.u.stop();g.Sq(this.element,"ytp-chapter-seek");g.Sq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; + g.k.Rs=function(a,b,c,d){this.Ss(a,d)}; + g.k.Ss=function(a,b){g.Lq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.Sq(this.element,"ytp-chapter-seek");this.Sa("chapterSeekText","");a=g.rI("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});this.Sa("seekTime",a)}; + g.k.IA=function(a,b){g.Lq(this.i);this.u.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-chapter-seek");this.Sa("chapterSeekText",b);this.Sa("seekTime","")};g.w(zO,g.V);g.k=zO.prototype;g.k.show=function(){g.V.prototype.show.call(this);g.Jq(this.u)}; + g.k.hide=function(){this.B.stop();g.Sq(this.element,"ytp-chapter-seek");g.Sq(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)}; + g.k.Rs=function(a,b,c,d){var e=-1===a?this.D:this.C;e&&this.I.Fb(e);g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.bb().getPlayerSize().height;e=this.I.bb().getPlayerSize();e=e.width/3-3*e.height;this.i.style.width=f+"px";this.i.style.height=f+"px";1===a?(this.i.style.left="",this.i.style.right=e+"px"):-1===a&&(this.i.style.right="",this.i.style.left=e+"px");var h=2.5*f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height= + h+"px";1===a?(a=this.I.bb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(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.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");Qva(this,d)}; + g.k.Ss=function(a,b){var c=this.I.bb().getPlayerSize();g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");g.N(this.element,"ytp-time-seeking");this.i.style.width="110px";this.i.style.height="110px";1===a?(this.i.style.right="",this.i.style.left=.8*c.width-30+"px"):-1===a&&(this.i.style.right="",this.i.style.left=.1*c.width-15+"px");this.i.style.top=.5*c.height+15+"px";Qva(this,b)}; + g.k.IA=function(a,b){g.Lq(this.u);this.B.start();this.element.setAttribute("data-side",-1===a?"back":"forward");this.i.style.width="0";this.i.style.height="0";g.N(this.element,"ytp-chapter-seek");this.Sa("seekText",b);this.Sa("seekTime","")};var ZNa={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ZNa).reduce(function(a,b){a[ZNa[b]]=b;return a},{}); + var $Na={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys($Na).reduce(function(a,b){a[$Na[b]]=b;return a},{}); + var aOa={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(aOa).reduce(function(a,b){a[aOa[b]]=b;return a},{});var b3,bOa;b3=[{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"}];bOa=[{option:0,text:AO(0)},{option:.25,text:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}]; + g.EO=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:b3},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:AO(.5)},{option:-1,text:AO(.75)},{option:0,text:AO(1)},{option:1,text:AO(1.5)},{option:2,text:AO(2)}, + {option:3,text:AO(3)},{option:4,text:AO(4)}]},{option:"background",text:"Background color",options:b3},{option:"backgroundOpacity",text:"Background opacity",options:bOa},{option:"windowColor",text:"Window color",options:b3},{option:"windowOpacity",text:"Window opacity",options:bOa},{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:AO(.25)},{option:.5,text:AO(.5)},{option:.75,text:AO(.75)},{option:1,text:AO(1)}]}];g.w(g.DO,g.uD);g.k=g.DO.prototype; + g.k.BK=function(a){var b=!1,c=g.Iu(a),d=Du(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,h=!1,l=this.api.V();g.Hu(a)?(e=!1,h=!0):l.Ye&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"), + d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);VN(this.xc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);VN(this.xc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.sf()&&(this.api.startSeekCsiAction(), + this.api.seekTo(0),h=f=!0);break;case 35:this.api.sf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&CO(this,!0);(b||h)&&this.rd.Wk();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.Gu(a);l.u&&(a={keyCode:g.Iu(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.Hu(a),fullscreen:this.api.isFullscreen()},this.api.Oa("onKeyPress",a))}; + g.k.CK=function(a){this.handleGlobalKeyUp(g.Iu(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}; + g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.LM(this.api.wb());c&&(c=c.Ao)&&c.Ab&&(c.xK(a),b=!0);9===a&&(CO(this,!0),b=!0);return b}; + g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.Ye)return h;var l=g.LM(this.api.wb());if(l&&(l=l.Ao)&&l.Ab)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.wK(a)}e.D||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&Uq(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h){f=(f=this.api.getVideoData())?f.ql:[];l=aU?d:c;switch(a){case 80:b&& + !e.ma&&(UN(this.xc,cta(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.ma&&(UN(this.xc,YK(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,10):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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()),h=!0);break;case 76:this.api.sf()&&(this.api.startSeekCsiAction(),e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(1,10):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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()),h=!0);break;case 37:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Sva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.IA(-1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&this.i?this.i.Ss(-1,5):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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()),h=!0));break;case 39:this.api.sf()&&(this.api.startSeekCsiAction(),l&&e.N("web_player_seek_chapters_by_shortcut")?(l=Rva(f,1E3*this.api.getCurrentTime()),-1!==l&&null!=this.i&&(this.i.IA(1,f[l].title),this.api.seekTo(f[l].startTime/1E3),h=!0)):(e.N("web_player_seek_chapters_by_shortcut")&&null!=this.i?this.i.Ss(1,5):UN(this.xc,{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),VN(this.xc,this.api.getVolume(),!1)):(this.api.mute(),VN(this.xc,0,!0));h=!0;break;case 32:case 75:e.ma||(h=!g.YJ(this.api.yb()),this.xc.Bq(h),h?this.api.playVideo():this.api.pauseVideo(),h=!0);break;case 190:b?e.kc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),Ava(this.xc,!1),h=!0):this.api.sf()&&(Uva(this,1),h=!0);break;case 188:b?e.kc&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h- + .25,!0),Ava(this.xc,!0),h=!0):this.api.sf()&&(Uva(this,-1),h=!0);break;case 70:iva(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0); + break;case 27:this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.hN(this.api.wb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),UN(this.xc,jva(),!e||e&&!e.displayName?"Subtitles/closed captions on":"Subtitles/closed captions off"),h=!0);break;case 79:FO(this,"textOpacity");break;case 87:FO(this,"windowOpacity");break;case 187:case 61:FO(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:FO(this,"fontSizeIncrement",!0,!0)}var m;b||c||d||(48<=a&&57>=a?m=a-48: + 96<=a&&105>=a&&(m=a-96));null!=m&&this.api.sf()&&(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(m/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.rd.Wk()}return h}; + g.k.xa=function(){g.Lq(this.B);g.uD.prototype.xa.call(this)};g.w(GO,g.V);GO.prototype.Pa=function(){var a=g.XE(this.I.V())&&g.KM(this.I)&&g.U(this.I.yb(),128),b=this.I.getPlayerSize();this.visible=this.i.uf()&&!a&&240<=b.width&&!(this.I.getVideoData().D&&this.I.V().pfpChazalUi);g.O(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&xO(this.tooltip);this.I.ib(this.element,this.visible&&this.Z)}; + GO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)}; + GO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-overflow-button-visible")};g.w(HO,g.JN);g.k=HO.prototype;g.k.sP=function(a){a=Du(a);g.Mg(this.element,a)&&(g.Mg(this.i,a)||g.Mg(this.closeButton,a)||KN(this))}; + g.k.Eb=function(){g.JN.prototype.Eb.call(this);this.tooltip.cj(this.element)}; + g.k.show=function(){this.Ab&&this.I.ea("OVERFLOW_PANEL_OPENED");g.JN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Vva(this,!0)}; + g.k.hide=function(){g.JN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Vva(this,!1)}; + g.k.onFullscreenToggled=function(a){!a&&this.Wf()&&KN(this)}; + g.k.focus=function(){for(var a=g.r(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ab){b.focus();break}};g.w(JO,g.V);JO.prototype.onClick=function(a){g.wN(a,this.api)&&this.api.playVideoAt(this.index)};g.w(KO,g.JN);g.k=KO.prototype;g.k.show=function(){g.JN.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.SB);this.B.T(this.api,"onPlaylistUpdate",this.SB);this.SB()}; + g.k.hide=function(){g.JN.prototype.hide.call(this);g.my(this.B);this.updatePlaylist(null)}; + g.k.SB=function(){this.updatePlaylist(this.api.getPlaylist())}; + g.k.MA=function(){var a=this.playlist,b=a.B;if(b===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.i[a.index];else{for(var c=g.r(this.i),d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;this.i=[];for(d=0;dthis.api.bb().getPlayerSize().width&&!a);this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.rI("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.rI("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ab||(this.show(),xO(this.tooltip)),this.visible=!0,this.Yb(!0)): + this.Ab&&(this.hide(),this.Yb(!1),xO(this.tooltip))}; + LO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)}; + LO.prototype.i=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pa,this);this.Pa()};g.w(MO,g.V);g.k=MO.prototype; + g.k.TB=function(a,b){if(!this.C){if(a){this.tooltipRenderer=a;var c,d,e,f,h,l,m,n;a=this.tooltipRenderer.text;var p=!1;(null===(c=null===a||void 0===a?void 0:a.runs)||void 0===c?0:c.length)&&a.runs[0].text&&(this.update({title:a.runs[0].text.toString()}),p=!0);g.hm(this.title,p);a=this.tooltipRenderer.detailsText;c=!1;if((null===(d=null===a||void 0===a?void 0:a.runs)||void 0===d?0:d.length)&&a.runs[0].text){p=a.runs[0].text.toString();d=p.indexOf("$TARGET_ICON");if(-1=this.u&&!a;g.O(this.element,"ytp-share-button-visible",this.visible);g.OK(this,this.visible);xO(this.tooltip);this.api.ib(this.element,this.visible&&this.Z)}; + g.QO.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)}; + g.QO.prototype.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.element,"ytp-share-button-visible")};g.w(g.RO,g.JN);g.k=g.RO.prototype;g.k.uP=function(a){a=Du(a);g.Mg(this.D,a)||g.Mg(this.closeButton,a)||KN(this)}; + g.k.Eb=function(){g.JN.prototype.Eb.call(this);this.tooltip.cj(this.element)}; + g.k.show=function(){var a=this.Ab;g.JN.prototype.show.call(this);this.Pa();a||this.api.Oa("onSharePanelOpened")}; + g.k.RS=function(){this.Ab&&this.Pa()}; + g.k.Pa=function(){var a=this;g.N(this.element,"ytp-share-panel-loading");g.Sq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&eM(this.api.Ml(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Sq(a.element,"ytp-share-panel-loading"),$va(a,d))}); + b=this.api.getVideoUrl(!0,!0,!1,!1);g.hF(this.api.V())&&(b=g.ti(b,g.vM("emb_share")));this.Sa("link",b);this.Sa("linkText",b);this.Sa("shareLinkWithUrl",g.rI("Share link $URL",{URL:b}));zN(this.B)}; + g.k.onFullscreenToggled=function(a){!a&&this.Wf()&&KN(this)}; + g.k.focus=function(){this.B.focus()}; + g.k.xa=function(){g.JN.prototype.xa.call(this);Zva(this)};g.w(UO,g.V);g.k=UO.prototype;g.k.aF=function(){}; + g.k.bF=function(){}; + g.k.hx=function(){return!0}; + g.k.gX=function(){if(this.expanded){this.Aa.show();var a=this.J.element.scrollWidth}else a=this.J.element.scrollWidth,this.Aa.hide();this.Za=34+a;g.O(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Za)+"px";this.ya.start()}; + g.k.DR=function(){this.badge.element.style.width=(this.expanded?this.Za:34)+"px";this.Ja.start()}; + g.k.FX=function(){g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)}; + g.k.Th=function(){this.hx()?this.S.show():this.S.hide();awa(this)}; + g.k.vP=function(){this.enabled=!1;this.Th()}; + g.k.EX=function(a){this.eb=a;this.Th()}; + g.k.PT=function(a){this.Ra=1===a;this.Th();g.O(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}; + g.k.nU=function(){g.O(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Th()};g.w(VO,UO);g.k=VO.prototype;g.k.xa=function(){WO(this);UO.prototype.xa.call(this)}; + g.k.aF=function(a){a.target!==this.dismissButton.element&&(cwa(this,!1),this.I.Oa("innertubeCommand",this.onClickCommand))}; + g.k.bF=function(){this.B=!0;cwa(this,!0);this.Th()}; + g.k.ZU=function(a){this.Ka=a;this.Th()}; + g.k.RU=function(a){var b=this.I.getVideoData();b&&b.videoId===this.videoId&&this.Ea&&(this.Y=a,a||(a=3+this.I.getCurrentTime(),this.Ad(a)))}; + g.k.onVideoDataChange=function(a,b){var c;if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.B=!1,this.i=!0,this.Y=this.Ea=this.u=this.K=!1,WO(this);if(a||!b.videoId)this.D=this.C=!1;a=b.shoppingOverlayRenderer;this.Ka=this.enabled=!1;if(a){this.enabled=!0;var d,e,f;if(!this.C){var h=null===(d=a.badgeInteractionLogging)||void 0===d?void 0:d.trackingParams;(this.C=!!h)&&this.I.ym(this.badge.element,h||null)}this.D||(this.D=!(null===(e=a.dismissButton)||void 0===e||!e.trackingParams))&& + this.I.ym(this.dismissButton.element,(null===(f=a.dismissButton)||void 0===f?void 0:f.trackingParams)||null);this.text=g.sA(a.text);if(d=null===(c=a.dismissButton)||void 0===c?void 0:c.a11yLabel)this.Ua=g.sA(d);this.onClickCommand=a.onClickCommand;this.timing=a.timing;GG(b)?this.Y=this.Ea=!0:this.Ad()}bwa(this);TO(this);this.Th()}; + g.k.hx=function(){return this.eb&&!this.Ka&&this.enabled&&!this.B&&!this.kb.uf()&&!this.Ra&&!this.Y&&(this.u||this.i)}; + g.k.De=function(a){(this.u=a)?(SO(this),TO(this,!1)):(WO(this),this.ma.start());this.Th()}; + g.k.Ad=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.lA(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.lA(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.I.Ad(b)};g.w(XO,g.JN);XO.prototype.show=function(){g.JN.prototype.show.call(this);this.C.start()}; + XO.prototype.hide=function(){g.JN.prototype.hide.call(this);this.C.stop()}; + XO.prototype.gs=function(a,b){"dataloaded"===a&&((this.B=b.AI,this.i=b.yI,isNaN(this.B)||isNaN(this.i))?this.D&&(this.I.We("intro"),this.I.removeEventListener(g.nA("intro"),this.ya),this.I.removeEventListener(g.oA("intro"),this.ma),this.I.removeEventListener("onShowControls",this.J),this.hide(),this.D=!1):(this.I.addEventListener(g.nA("intro"),this.ya),this.I.addEventListener(g.oA("intro"),this.ma),this.I.addEventListener("onShowControls",this.J),a=new g.lA(this.B,this.i,{priority:9,namespace:"intro"}), + this.I.Ad([a]),this.D=!0))};g.w(YO,g.V);YO.prototype.onClick=function(){this.I.zo()}; + YO.prototype.Pa=function(){var a=!0,b=this.I.V();(b.N("embeds_enable_mobile_custom_controls")||"1"===b.controlsType&&!b.N("embeds_use_native_controls_killswitch")&&b.isMobile)&&g.XE(b)&&(a=a&&480<=this.I.bb().getPlayerSize().width);g.OK(this,a);this.Sa("icon",this.I.qf()?{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z", + fill:"#fff"}}]}:{G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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"}}]})};new Tv("yt.autonav");g.w(ZO,g.V);g.k=ZO.prototype; + g.k.Zt=function(){if(3!==this.I.getPresentingPlayerType()&&g.OM(this.I)&&400<=this.I.bb().getPlayerSize().width&&!1!==this.I.getVideoData().EW){if(!this.i){this.i=!0;g.OK(this,this.i);this.u.push(this.T(this.I,"videodatachange",this.Zt));this.u.push(this.T(this.I,"videoplayerreset",this.Zt));this.u.push(this.T(this.I,"onPlaylistUpdate",this.Zt));this.u.push(this.T(this.I,"autonavchange",this.JH));var a=this.I.getVideoData();this.JH(a.autonavState);this.I.ib(this.element,this.i)}}else{this.i=!1;g.OK(this, + this.i);a=g.r(this.u);for(var b=a.next();!b.done;b=a.next())this.jc(b.value)}}; + g.k.JH=function(a){(a=1!==a)||(g.Iv.getInstance(),a=g.Cs("web_autonav_allow_off_by_default")&&!g.Kv(0,141)&&g.P("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Kv(0,140));this.isChecked=a;dwa(this)}; + g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.LA(this.isChecked?2:1);dwa(this);this.I.Fb(this.element)}; + g.k.getValue=function(){return this.isChecked}; + g.k.setValue=function(a){this.isChecked=a;this.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(this.isChecked))};g.w(g.aP,g.V);g.aP.prototype.xa=function(){this.ctx=null;g.V.prototype.xa.call(this)};g.w(bP,g.V);bP.prototype.onClick=function(){this.I.Oa("innertubeCommand",this.B)}; + bP.prototype.onClickCommand=function(a){(null===a||void 0===a?0:a.changeKeyedMarkersVisibilityCommand)&&this.Qb()}; + bP.prototype.updateVideoData=function(a,b){a=b.RX;this.B=null===a||void 0===a?void 0:a.command;this.u.disabled=null==this.B;g.O(this.u,"ytp-chapter-container-disabled",this.u.disabled);this.Qb()}; + bP.prototype.Qb=function(){var a="",b=this.K.i;if(1d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.kF()}}; + g.k.disable=function(){var a=this;if(!this.message){var b=(null!=uu(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"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.JN(this.I,{G:"div",Ha:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},U:[b[0],{G:"a",W:{href:"https://support.google.com/youtube/answer/6276924", + target:this.I.V().J},va:b[2]},b[4]]},100,!0);this.message.hide();g.J(this,this.message);this.message.subscribe("show",function(c){a.u.Mr(a.message,c)}); + g.NM(this.I,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.i)();this.i=null}}; + g.k.Pa=function(){var a=iva(this.I),b=this.I.V().C&&250>this.I.getPlayerSize().width;g.OK(this,a&&!b)}; + g.k.Hi=function(a){if(a){var b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", + L:"ytp-fullscreen-button-corner-1",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=AN(this.I,"Exit full screen","f");document.activeElement===this.element&&this.I.getRootNode().focus()}else b={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{G:"g",L:"ytp-fullscreen-button-corner-0",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-1",U:[{G:"path", + Ob:!0,L:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-2",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",L:"ytp-fullscreen-button-corner-3",U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=AN(this.I,"Full screen","f");a=this.message?null:a;this.update({title:a,label:a,icon:b});xO(this.u.fc())}; + g.k.xa=function(){this.message||((0,this.i)(),this.i=null);g.V.prototype.xa.call(this)};g.w(hP,g.V);hP.prototype.onClick=function(){this.I.Oa("onCollapseMiniplayer");this.I.Fb(this.element)}; + hP.prototype.Pa=function(){this.visible=!this.I.isFullscreen();g.OK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)}; + hP.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.I.ib(this.element,this.visible&&a)};g.w(iP,g.V);iP.prototype.onVideoDataChange=function(a){this.Pa("newdata"===a)}; + iP.prototype.Pa=function(a){var b=this.I.getVideoData(),c=b.cd,d=this.I.yb();d=(g.YJ(d)||g.U(d,4))&&0a&&this.delay.start()}; + var dOa=new g.or(0,0,.4,0,.2,1,1,1),jwa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.mP,g.V);g.k=g.mP.prototype;g.k.KH=function(a){this.visible=300<=a.width;g.OK(this,this.visible);this.I.ib(this.element,this.visible&&this.Z)}; + g.k.JU=function(){this.I.V().Y?this.I.isMuted()?this.I.unMute():this.I.mute():KN(this.message,this.element,!0);this.I.Fb(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.I.V();a=0===d?1:50this.clipEnd)&&this.FA()}; + g.k.yP=function(a){if(!g.Hu(a)){var b=!1;switch(g.Iu(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.Gu(a)}}; + g.k.gs=function(a,b){this.updateVideoData(b,"newdata"===a)}; + g.k.dS=function(){this.gs("newdata",this.api.getVideoData())}; + g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.isValid();c&&(bH(a)||DP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?this.zb=!1:this.zb=a.allowLiveDvr,g.O(this.api.getRootNode(),"ytp-enable-live-buffer",!(null===a||void 0===a||!bH(a))));Nwa(this,this.api.sf());if(b){if(c)for(b=a.clipEnd,this.clipStart=a.clipStart,this.clipEnd=b,GP(this),BP(this,this.S,this.Ra);0b&&(e=b,c=-this.ma,b=SL(this.u,b)*zP(this).i+c,a.position= + b),b=this.u.u;DP(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(b=this.u.u);b=h||g.LL(this.zb?e-this.u.i:e-b);c=a.position+this.cd;e-=this.api.Uc();if(this.api.Gh()){if(1= + l&&q.timeRangeStartMillis=n.visibleTimeRangeStartMillis&&p<=n.visibleTimeRangeEndMillis&&(f=n.label,b=g.LL(n.decorationTimeMillis/1E3),g.N(this.api.getRootNode(),"ytp-progress-bar-decoration"));l=320*this.tooltip.scale;n=f.length*(this.B?8.55:5.7);l=n<=l?n:l;n=l<160*this.tooltip.scale;p=3;!n&&l/2>a.position&&(p=1);!n&&l/2>this.C-a.position&&(p=2);this.api.V().C&&(m-=10);0e||1e&&a.J.start()}); + this.J.start()}if(g.U(this.api.yb(),32)||3===this.api.getPresentingPlayerType())this.api.startSeekCsiAction(),1.1*(this.B?60:40),a=zP(this));g.O(this.element,"ytp-pull-ui",e);d&&g.N(this.element,"ytp-pulling");b=0;a.u&&0>=a.position&&1===this.i.length?b=-1:a.D&&a.position>=a.width&&1===this.i.length&&(b=1);if(this.vb!==b&&1===this.i.length&&(this.vb=b,this.J&&(this.J.dispose(),this.J=null),b)){var f=(0,g.Q)();this.J=new g.Fq(function(){var h=c.C*(c.Ja-1);c.ma=g.Xf(c.ma+ + c.vb*((0,g.Q)()-f)*.3,0,h);CP(c);c.api.seekTo(FP(c,zP(c)),!1);0=b;g.OK(this,a);this.I.ib(this.element,a)}; + LP.prototype.B=function(){if(this.Bb.Ab)this.Bb.Eb();else{var a=g.hN(this.I.wb());a&&!a.loaded&&(a.kf("tracklist",{includeAsr:!0}).length||a.load());this.I.Fb(this.element);this.Bb.td(this.element)}}; + LP.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.MM(this.I),e=c&&!!g.LM(this.I.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.O(this.element,"ytp-hdr-quality-badge",a);g.O(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.O(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.O(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.O(this.element,"ytp-8k-quality-badge", + !a&&"highres"===c);g.O(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.O(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(NP,nO);NP.prototype.isLoaded=function(){var a=g.oN(this.I.wb());return void 0!==a&&a.loaded}; + NP.prototype.Pa=function(){void 0!==g.oN(this.I.wb())&&3!==this.I.getPresentingPlayerType()?this.i||(this.Bb.Gc(this),this.i=!0):this.i&&(this.Bb.Jf(this),this.i=!1);this.setValue(this.isLoaded())}; + NP.prototype.u=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ea("annotationvisibility",a)}; + NP.prototype.xa=function(){this.i&&this.Bb.Jf(this);nO.prototype.xa.call(this)};g.w(g.OP,g.fO);g.k=g.OP.prototype;g.k.open=function(){g.pO(this.Bb,this.B)}; + g.k.Vh=function(a){Pwa(this);this.options[a].element.setAttribute("aria-checked","true");this.kd(this.bj(a));this.u=a}; + g.k.QC=function(a,b,c){var d=this;b=new g.fO({G:"div",Ha:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},U:[{G:"div",Ha:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.bj(a,!0));b.Qa("click",function(){d.Cf(a)}); + return b}; + g.k.enable=function(a){this.C?a||(this.C=!1,this.er(!1)):a&&(this.C=!0,this.er(!0))}; + g.k.er=function(a){a?this.Bb.Gc(this):this.Bb.Jf(this)}; + g.k.Cf=function(a){this.ea("select",a)}; + g.k.bj=function(a){return a.toString()}; + g.k.zP=function(a){g.Hu(a)||39!==g.Iu(a)||(this.open(),g.Gu(a))}; + g.k.xa=function(){this.C&&this.Bb.Jf(this);g.fO.prototype.xa.call(this);for(var a=g.r(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(QP,g.OP);QP.prototype.Pa=function(){var a=this.I.getAvailableAudioTracks();1(a.deltaX||-a.deltaY)?-this.D:this.D;this.zq(b);g.Gu(a)}; + g.k.BP=function(a){a=(a-g.am(this.u).x)/this.K*this.range+this.minimumValue;this.zq(a)}; + g.k.zq=function(a,b){b=void 0===b?"":b;a=g.Xf(a,this.minimumValue,this.maximumValue);""===b&&(b=a.toString());this.Sa("valuenow",a);this.Sa("valuetext",b);this.S.style.left=(a-this.minimumValue)/this.range*(this.K-this.ma)+"px";this.i=a}; + g.k.focus=function(){this.ya.focus()};g.w(YP,WP);YP.prototype.Y=function(){this.I.setPlaybackRate(this.i,!0)}; + YP.prototype.zq=function(a){WP.prototype.zq.call(this,a,ZP(this,a).toString());this.B&&(XP(this),this.Aa())}; + YP.prototype.Ea=function(){var a=this.I.getPlaybackRate();ZP(this,this.i)!==a&&(this.zq(a),XP(this))};g.w($P,g.PK);$P.prototype.focus=function(){this.i.focus()};g.w(Rwa,iO);g.w(aQ,g.OP);g.k=aQ.prototype;g.k.bj=function(a){return"1"===a?"Normal":a.toLocaleString()}; + g.k.Pa=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);Uwa(this)}; + g.k.er=function(a){g.OP.prototype.er.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),Uwa(this),Swa(this,this.I.getPlaybackRate())):(this.jc(this.K),this.K=null)}; + g.k.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.J.includes(b)||Twa(this,b);Swa(this,a)}; + g.k.Cf=function(a){g.OP.prototype.Cf.call(this,a);a===this.i?this.I.setPlaybackRate(this.D,!0):this.I.setPlaybackRate(Number(a),!0);this.Bb.kh()};g.w(cQ,g.OP);g.k=cQ.prototype;g.k.Vh=function(a){g.OP.prototype.Vh.call(this,a)}; + g.k.getKey=function(a){return a.option.toString()}; + g.k.getOption=function(a){return this.settings[a]}; + g.k.bj=function(a){return this.getOption(a).text||""}; + g.k.Cf=function(a){g.OP.prototype.Cf.call(this,a);this.ea("settingChange",this.setting,this.settings[a].option)};g.w(dQ,g.jO);dQ.prototype.Af=function(a){for(var b=g.r(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.On[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Vh(e),c.D.element.setAttribute("aria-checked",String(!d)),c.i.element.setAttribute("aria-checked",String(d)))}}}; + dQ.prototype.ih=function(a,b){this.ea("settingChange",a,b)};g.w(eQ,g.OP);eQ.prototype.getKey=function(a){return a.languageCode}; + eQ.prototype.bj=function(a){return this.languages[a].languageName||""}; + eQ.prototype.Cf=function(a){this.ea("select",a);this.I.Fb(this.element);g.tO(this.Bb)};g.w(fQ,g.OP);g.k=fQ.prototype;g.k.getKey=function(a){return g.lc(a)?"__off__":a.displayName}; + g.k.bj=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":("__off__"===a?{}:this.tracks[a]).displayName}; + g.k.Cf=function(a){"__translate__"===a?this.i.open():"__contribute__"===a?(this.I.pauseVideo(),this.I.isFullscreen()&&this.I.toggleFullscreen(),a=g.uM(this.I.V(),this.I.getVideoData()),g.XL(a)):(this.I.Fb(this.element),this.I.setOption("captions","track","__off__"===a?{}:this.tracks[a]),g.OP.prototype.Cf.call(this,a),this.Bb.kh())}; + g.k.Pa=function(){var a,b=this.I.getOptions();b=b&&-1!==b.indexOf("captions");var c=this.I.getVideoData();c=c&&c.Ro;var d=!(null===(a=this.I.getVideoData())||void 0===a||!g.ZG(a)),e={};if(b||c){if(b){var f=this.I.getOption("captions","track");e=this.I.getOption("captions","tracklist",{includeAsr:!0});var h=d?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.Rb(e,this.getKey,this);d=g.ym(e,this.getKey);if(h.length&&!g.lc(f)){var l=f.translationLanguage;if(l&&l.languageName){var m= + l.languageName;l=h.findIndex(function(n){return n.languageName===m}); + qaa(h,l)}Wwa(this.i,h);d.push("__translate__")}h=this.getKey(f)}else this.tracks={},d=[],h="__off__";d.unshift("__off__");this.tracks.__off__={};c&&d.unshift("__contribute__");this.tracks[h]||(this.tracks[h]=f,d.push(h));g.PP(this,d);this.Vh(h);f&&f.translationLanguage?this.i.Vh(this.i.getKey(f.translationLanguage)):Pwa(this.i);b&&this.D.Af(this.I.getSubtitlesUserSettings());this.K.kd(e&&e.length?" ("+e.length+")":"");this.ea("size-change");this.I.ib(this.element,!0);this.enable(!0)}else this.enable(!1)}; + g.k.DP=function(a){var b=this.I.getOption("captions","track");b=g.pc(b);b.translationLanguage=this.i.languages[a];this.I.setOption("captions","track",b)}; + g.k.ih=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}Xwa(this,!0);this.J.start();this.D.Af(this.I.getSubtitlesUserSettings())}; + g.k.IV=function(a){a||g.Lq(this.J)}; + g.k.xa=function(){g.Lq(this.J);g.OP.prototype.xa.call(this)};g.w(gQ,g.rO);g.k=gQ.prototype;g.k.initialize=function(){if(!this.Zd){this.Zd=!0;this.FE=new TP(this.I,this);g.J(this,this.FE);var a=new VP(this.I,this);g.J(this,a);a=new fQ(this.I,this);g.J(this,a);a=new NP(this.I,this);g.J(this,a);this.I.V().kc&&(a=new aQ(this.I,this),g.J(this,a));this.I.V().Mb&&!this.I.V().N("web_player_move_autonav_toggle")&&(a=new RP(this.I,this),g.J(this,a));a=new QP(this.I,this);g.J(this,a);MP(this.settingsButton,this.Wd.items.length)}}; + g.k.Gc=function(a){this.initialize();this.Wd.Gc(a);MP(this.settingsButton,this.Wd.items.length)}; + g.k.Jf=function(a){this.Ab&&1>=this.Wd.items.length&&this.hide();this.Wd.Jf(a);MP(this.settingsButton,this.Wd.items.length)}; + g.k.td=function(a){this.initialize();0=b;g.OK(this,b);this.I.ib(this.element,b);a&&this.Sa("pressed",this.isEnabled())};g.w(g.jQ,g.V);g.k=g.jQ.prototype; + g.k.Qb=function(){var a=this.api.bb().getPlayerSize().width,b=a>=this.K&&(!lQ(this)||!g.U(this.api.yb(),64));g.OK(this,b);g.O(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.V().N("halftime_ux_killswitch")?a.current:this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);kQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")&&(c-=this.Sb.startTimeMs/1E3);c=g.LL(c);this.B!==c&&(this.Sa("currenttime", + c),this.B=c);b=kQ(this)&&this.api.V().N("enable_fully_expanded_clip_range_in_progress_bar")?g.LL((this.Sb.endTimeMs-this.Sb.startTimeMs)/1E3):g.LL(this.api.V().N("halftime_ux_killswitch")?a.duration:this.api.getDuration(b,!1));this.C!==b&&(this.Sa("duration",b),this.C=b)}a=a.isAtLiveHead;!lQ(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Qb(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.kd(this.isPremiere?"Premiere":"Live"),a?this.i&&(this.i(),this.i=null, + b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.i=g.YN(this.tooltip,this.liveBadge.element)));this.VB(this.api.getLoopRange())}; + g.k.VB=function(a){var b=!!this.Sb!==!!a;this.Sb=a;b&&Zwa(this)}; + g.k.oW=function(){this.api.setLoopRange(null)}; + g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Qb();Zwa(this)}; + g.k.updateVideoData=function(a){this.isLiveVideo=a.isLivePlayback&&!a.kb;this.u=bH(a);this.isPremiere=a.isPremiere;g.O(this.element,"ytp-live",lQ(this))}; + g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())}; + g.k.xa=function(){this.i&&this.i();g.V.prototype.xa.call(this)};g.w(oQ,g.V);g.k=oQ.prototype;g.k.im=function(){var a=this.i.Re();this.C!==a&&(this.C=a,nQ(this,this.api.getVolume(),this.api.isMuted()))}; + g.k.NH=function(a){g.OK(this,350<=a.width)}; + g.k.GP=function(a){if(!g.Hu(a)){var b=g.Iu(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.Xf(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.Gu(a))}}; + g.k.EP=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.Xf(b/10,-10,10));g.Gu(a)}; + g.k.MV=function(){mQ(this,this.u,!0,this.B,this.i.ni());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; + g.k.FP=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.am(this.S).x;this.api.setVolume(100*g.Xf((a-c/2)/(b-c),0,1))}; + g.k.LV=function(){mQ(this,this.u,!1,this.B,this.i.ni());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))}; + g.k.onVolumeChange=function(a){nQ(this,a.volume,a.muted)}; + g.k.vJ=function(){mQ(this,this.u,this.isDragging,this.B,this.i.ni())}; + g.k.xa=function(){g.V.prototype.xa.call(this);g.Sq(this.K,"ytp-volume-slider-active")};g.w(g.pQ,g.V);g.pQ.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.pfpChazalUi);g.OK(this,this.visible);this.api.ib(this.element,this.visible&&this.Z);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.Sa("url",a))}; + g.pQ.prototype.onClick=function(a){var b=this.api.getVideoUrl(!g.ML(a),!1,!0,!0);if(g.XE(this.api.V())||g.hF(this.api.V()))b=g.ti(b,g.vM("emb_logo"));g.xN(b,this.api,a);this.api.Fb(this.element)}; + g.pQ.prototype.xb=function(){var a={G:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{G:"path",Ob:!0,L:"ytp-svg-fill",W:{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 "}}]}; + if(g.hF(this.api.V())){var b=this.Fa("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",W:{fill:"none",height:"24",width:"24"},U:[{G:"circle",W:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",W:{viewBox:"0 0 80 24"},U:[{G:"ellipse",W:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",W:{cx:"12.18", + cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",W:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z", + fill:"#fff"}}]};g.O(b,"ytp-youtube-music-logo-icon-only",c)}this.Sa("logoSvg",a)}; + g.pQ.prototype.Yb=function(a){g.V.prototype.Yb.call(this,a);this.api.ib(this.element,this.visible&&a)};g.w(rQ,g.uD);g.k=rQ.prototype;g.k.od=function(){this.Oc.Qb();this.Gg.Qb()}; + g.k.vj=function(){var a,b;this.WB();this.rd.u?(this.od(),null===(b=this.K)||void 0===b?void 0:b.show()):(g.zQ(this.Oc.tooltip),null===(a=this.K)||void 0===a?void 0:a.hide())}; + g.k.gq=function(){this.od();this.Jd.start()}; + g.k.WB=function(){var a=!this.I.V().isMobile&&300>g.Owa(this.Oc)&&this.I.yb().Ec()&&!!window.requestAnimationFrame,b=!a;this.rd.u||(a=b=!1);b?this.J||(this.J=this.T(this.I,"progresssync",this.od)):this.J&&(this.jc(this.J),this.J=null);a?this.Jd.isActive()||this.Jd.start():this.Jd.stop()}; + g.k.xb=function(){var a=this.u.Re(),b=this.I.bb().getPlayerSize(),c=sQ(this),d=Math.max(b.width-2*c,100);if(this.Ja!==b.width||this.Ka!==a){this.Ja=b.width;this.Ka=a;var e=bxa(this);this.i.element.style.width=e+"px";this.i.element.style.left=c+"px";g.JP(this.Oc,c,e,a);this.u.fc().XB=e}c=this.settingsMenu;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-tQ(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.Nx=e;c.Bt();this.WB();!this.I.V().N("html5_player_bottom_linear_gradient")&&this.I.V().N("html5_player_dynamic_bottom_gradient")&& + g.$O(this.La,b.height)}; + g.k.onVideoDataChange=function(){var a=this.I.getVideoData();this.ya.style.background=a.D?a.Ua:"";g.OK(this.Z,a.JB)};g.w(uQ,UO);g.k=uQ.prototype;g.k.aF=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Oa("innertubeCommand",this.onClickCommand),this.B=!0,this.S.hide())}; + g.k.bF=function(){this.B=!0;this.S.hide()}; + g.k.onVideoDataChange=function(a,b){var c;"newdata"===a&&(this.u=this.B=!1,vQ(this));a=b.suggestedAction;if(null==b.shoppingOverlayRenderer&&a){this.i=this.K=this.enabled=!0;this.text=rP(a.title)||"View Chapters";var d=null===(c=a.trigger)||void 0===c?void 0:c.suggestedActionTimeRangeTrigger;if(d){b=[];var e=d.timeRangeStartMillis;d=d.timeRangeEndMillis;null!=e&&null!=d&&b.push(new g.lA(e,d,{priority:9,namespace:"suggested_action_button_visible"}));this.I.Ad(b)}this.onClickCommand=a.tapCommand;bwa(this); + TO(this);this.Th()}}; + g.k.hx=function(){return!this.B&&this.enabled&&(this.u||this.i)}; + g.k.De=function(a){this.B||((this.u=a)?SO(this):(vQ(this),this.ma.start()),this.Th())}; + g.k.xa=function(){vQ(this);UO.prototype.xa.call(this)};var c3={},wQ=(c3.CHANNEL_NAME="ytp-title-channel-name",c3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",c3.LINK="ytp-title-link",c3.SESSIONLINK="yt-uix-sessionlink",c3.SUBTEXT="ytp-title-subtext",c3.TEXT="ytp-title-text",c3.TITLE="ytp-title",c3);g.w(xQ,g.V);xQ.prototype.onClick=function(a){this.api.Fb(this.element);var b=this.api.getVideoUrl(!g.ML(a),!1,!0);g.XE(this.api.V())&&(b=g.ti(b,g.vM("emb_title")));g.xN(b,this.api,a)}; + xQ.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();this.Sa("title",a.title);cxa(this);if(2===this.api.getPresentingPlayerType()){var c=this.api.getVideoData();c.videoId&&c.isListed&&c.author&&c.ac&&c.Ph?(this.Sa("channelLink",c.ac),this.Sa("channelName",c.author),this.Sa("channelTitleFocusable","0")):cxa(this)}c=b.externalFullscreen||!this.api.isFullscreen()&&b.Kg;g.O(this.link,wQ.FULLERSCREEN_LINK,c);b.K||!a.videoId||c||a.D&&b.pfpChazalUi?this.i&&(this.Sa("url",null),this.jc(this.i), + this.i=null):(this.Sa("url",this.api.getVideoUrl(!0)),this.i||(this.i=this.T(this.link,"click",this.onClick)))};g.w(g.yQ,g.V);g.k=g.yQ.prototype;g.k.pM=function(a,b){a<=this.B&&this.B<=b&&(a=this.B,this.B=NaN,exa(this,a))}; + g.k.NS=function(){Joa(this.i,this.B,160*this.scale)}; + g.k.Uj=function(){switch(this.type){case 2:var a=this.u;a.removeEventListener("mouseout",this.Y);a.addEventListener("mouseover",this.C);a.removeEventListener("blur",this.Y);a.addEventListener("focus",this.C);hxa(this);break;case 3:hxa(this);break;case 1:this.i&&(this.i.unsubscribe("l",this.pM,this),this.i=null),this.api.removeEventListener("videoready",this.ma),this.ya.stop()}this.type=null;this.K&&this.D.hide()}; + g.k.cj=function(a){for(var b=0;b(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.vj=function(a){a&&(this.tooltip.cj(this.Rh.element),this.dg&&this.tooltip.cj(this.dg.i.element));this.yz&&(g.O(this.contextMenu.element,"ytp-autohide",a),g.O(this.contextMenu.element,"ytp-autohide-active",!0));g.NN.prototype.vj.call(this,a)}; + g.k.ZE=function(){g.NN.prototype.ZE.call(this);this.yz&&(g.O(this.contextMenu.element,"ytp-autohide-active",!1),this.yz&&(this.contextMenu.hide(),this.ag&&this.ag.hide()))}; + g.k.ij=function(a,b){var c=this.api.bb().getPlayerSize();c=new g.Pl(0,0,c.width,c.height);if(a||this.rd.u&&!this.xo()){if(this.api.V().Mj||b)a=this.Re()?this.aD:this.ZC,c.top+=a,c.height-=a;this.dg&&(c.height-=tQ(this.dg))}return c}; + g.k.im=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.Oy.element,b),b.parentElement.insertBefore(this.Ny.element,b.nextSibling))):g.Gs(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.Oy.detach(),this.Ny.detach());this.xb();this.Dm()}; + g.k.Re=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.C||!1}; + g.k.showControls=function(a){this.zy=!a;this.Qi()}; + g.k.xb=function(){var a=this.Re();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.O(this.contextMenu.element,"ytp-big-mode",a);this.Qi();if(this.uf()&&this.ag)this.ph&&IO(this.ag,this.ph),this.shareButton&&IO(this.ag,this.shareButton),this.Qg&&IO(this.ag,this.Qg);else{if(this.ag){a=this.ag;for(var b=g.r(a.actionButtons),c=b.next();!c.done;c=b.next())c.value.detach();a.actionButtons=[]}this.ph&&!g.Mg(this.Hg.element,this.ph.element)&&this.ph.Da(this.Hg.element);this.shareButton&&!g.Mg(this.Hg.element, + this.shareButton.element)&&this.shareButton.Da(this.Hg.element);this.Qg&&!g.Mg(this.Hg.element,this.Qg.element)&&this.Qg.Da(this.Hg.element)}this.Dm();g.NN.prototype.xb.call(this)}; + g.k.MD=function(){if(mxa(this)&&!g.KM(this.api))return!1;var a=this.api.getVideoData();return!g.XE(this.api.V())||2===this.api.getPresentingPlayerType()||!this.og||((a=this.og||a.og)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&a.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.NN.prototype.MD.call(this):!1}; + g.k.Dm=function(){g.NN.prototype.Dm.call(this);this.api.ib(this.title.element,!!this.Dk);this.Ms&&this.Ms.Yb(!!this.Dk);this.channelAvatar.Yb(!!this.Dk);this.overflowButton&&this.overflowButton.Yb(this.uf()&&!!this.Dk);this.shareButton&&this.shareButton.Yb(!this.uf()&&!!this.Dk);this.ph&&this.ph.Yb(!this.uf()&&!!this.Dk);this.Qg&&this.Qg.Yb(!this.uf()&&!!this.Dk);if(!this.Dk){this.tooltip.cj(this.Rh.element);for(var a=0;athis.i;)a[d++]^=c[this.i++];for(var e=b-(b-d)%16;db.i&&(c=1));return c};g.w(bS,g.I);bS.prototype.xa=function(){this.K&&this.K();g.I.prototype.xa.call(this)}; + bS.prototype.createAction=function(a,b){var c=RQ(a.entityKey).entityType,d=yy();return new WR(c,d,a,b.actionId,b.rootActionId)}; + bS.prototype.Y=function(a){var b;return g.H(this,function d(){var e=this,f,h,l,m,n,p,q,t;return g.B(d,function(u){if(1==u.i){if(e.isDisposed())return u.return();f=null!==(b=a.offlineOrchestrationActionWrapperEntity)&&void 0!==b?b:new Set;h=[];l=g.r(f);for(m=l.next();!m.done;m=l.next())n=m.value,p=RQ(n),q=p.entityId,aza(e.i,q)||h.push(n);return g.A(u,jza(e,h),2)}t=u.u;return g.A(u,dS(e,t),0)})})}; + bS.prototype.retry=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return g.A(d,kza(c),0)})})};nza.prototype.B=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p;return g.B(b,function(q){if(1==q.i)return g.A(q,vR(c.u,"orchestrationWebSamplingEntity"),2);if(3!=q.i){d=q.u;if(50c.i&&g.Pu(0,c.B.bind(c),Math.floor(Wf(3E4,3E5)));g.sa(q)})})};tza.prototype.info=function(){};g.k=uza.prototype; + g.k.lU=function(a){var b,c;return g.H(this,function e(){var f=this,h;return g.B(e,function(l){if(!g.U(a.state,128))return l.fb(0);var m=null===(b=a.state.getData())||void 0===b?void 0:b.errorCode,n=null===(c=a.state.getData())||void 0===c?void 0:c.KF;h="net.retryexhausted"===m&&(null===n||void 0===n?0:n.includes("net.connect"))?"TRANSFER_FAILURE_REASON_NETWORK_LOST":(null===m||void 0===m?0:m.startsWith("net."))?"TRANSFER_FAILURE_REASON_NETWORK":"TRANSFER_FAILURE_REASON_INTERNAL";return g.A(l,f.hq(f.player.getVideoData().videoId, + h),0)})})}; + g.k.hq=function(a,b){return g.H(this,function d(){var e=this;return g.B(d,function(f){if(1==f.i){if(e.u)return f.return();e.u=!0;return"TRANSFER_FAILURE_REASON_NETWORK_LOST"===b?(Aza(e,a,!1),f.fb(0)):g.A(f,eS(e,a),3)}WF(a,4);return g.A(f,e.i.hq(b),0)})})}; + g.k.Hs=function(a){2===a.status?(a.status!==this.B&&(jS(this.i),WF(a.videoId,2)),a.Kw&&Qza(this.i,a.videoId,a.Kw)):4===a.status?(eS(this,a.videoId),this.hq(a.videoId,a.rz?"TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":"TRANSFER_FAILURE_REASON_INTERNAL")):1===a.status&&Pza(this.i);this.B=a.status;this.api.Oa("localmediachange",{videoId:a.videoId,status:a.status})}; + g.k.nF=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(c.u)return e.return();c.u=!0;d=c.player.getVideoData().videoId;return g.A(e,eS(c,d),2)}return g.A(e,c.i.nF(),0)})})}; + g.k.N=function(a){return this.api.V().N(a)};g.w(fS,g.I);fS.prototype.xa=function(){this.u&&this.u();g.I.prototype.xa.call(this)}; + fS.prototype.B=function(a){var b;return g.H(this,function d(){var e,f,h,l,m,n,p,q=this;return g.B(d,function(t){e=null!==(b=a.transfer)&&void 0!==b?b:new Set;f=[];h=g.r(e);for(l=h.next();!l.done;l=h.next())m=l.value,n=RQ(m),p=n.entityId,f.push(p);return 0===f.length?t.return():g.A(t,Cza(q,f),0)})})};g.w(gS,g.I);g.k=gS.prototype;g.k.xa=function(){this.K&&this.K();this.S.dispose();this.B.dispose();this.ya&&Ge(this.D.B,this.ya);this.ma&&Ge(this.D.B,this.ma);g.I.prototype.xa.call(this)}; + g.k.vW=function(a){this.i&&this.C&&Aza(this.J,this.C,void 0===a?!1:a);this.B.stop()}; + g.k.RW=function(){this.i?Iza(this,this.i):hS(this)}; + g.k.IP=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){switch(e.i){case 1:if(!d.i){e.fb(2);break}if("TRANSFER_STATE_COMPLETE"===d.i.transferState||"TRANSFER_STATE_FAILED"===d.i.transferState||!a.transfer||!a.transfer.has(d.i.key)){e.fb(3);break}return g.A(e,uR(d.u,d.i.key,"transfer"),4);case 4:d.i=e.u;if(d.i){e.fb(3);break}return g.A(e,Jza(d),3);case 3:if(d.i)return e.return();case 2:return g.A(e,hS(d),0)}})})}; + g.k.hq=function(a,b){return g.H(this,function d(){var e=this,f,h;return g.B(d,function(l){if(1==l.i){a:switch(a){case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_PLAYABILITY":case "TRANSFER_FAILURE_REASON_TOO_MANY_RETRIES":var m=!1;break a;default:m=!0}return m&&Rza(e)?g.A(l,lS(e,"TRANSFER_STATE_TRANSFER_IN_QUEUE"),5):g.A(l,Sza(e,a),3)}3!=l.i&&(f=RQ(e.i.key).entityId,GR({transferStatusType:"TRANSFER_STATUS_TYPE_REENQUEUED_BY_RETRY", + statusType:"ADDED_TO_QUEUE"},{videoId:f,Go:e.i}));iS(e);h=hS(e,!0);b&&b(h);g.sa(l)})})}; + g.k.nF=function(a){return g.H(this,function c(){var d=this,e,f,h,l,m,n;return g.B(c,function(p){if(1==p.i)return Rza(d)?g.A(p,lS(d,"TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"),5):g.A(p,Sza(d,"TRANSFER_FAILURE_REASON_STREAM_MISSING"),3);if(3!=p.i)return e=RQ(d.i.key).entityId,GR({transferStatusType:"TRANSFER_STATUS_TYPE_DEQUEUED_BY_PLAYER_RESPONSE_EXPIRATION",statusType:"ADDED_TO_QUEUE"},{videoId:e,Go:d.i}),f=Tya(),f.playbackDataActionMetadata={isEnqueuedForExpiredStreamUrlRefetch:!0},h=SQ(e, + "playbackData"),l={actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",entityKey:h,actionMetadata:f},m=YR(new WR("playbackData",e,l)),g.A(p,tR(d.u,m,"offlineOrchestrationActionWrapperEntity"),3);iS(d);n=hS(d,!0);a&&a(n);g.sa(p)})})}; + var f3={},mS=(f3.TRANSFER_STATE_TRANSFERRING=1,f3.TRANSFER_STATE_TRANSFER_IN_QUEUE=2,f3);g.k=Xza.prototype;g.k.YB=function(){vya(this.u)}; + g.k.isOrchestrationLeader=function(){return this.u.i}; + g.k.refreshAllVideos=function(){return g.H(this,function b(){var c=this,d;return g.B(b,function(e){if(1==e.i){if(!c.J.Te())return e.return(cAa(c));d=c.Mw;return g.A(e,bAa(c),2)}return e.return(d.call(c,e.u,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"))})})}; + g.k.deleteVideos=function(a){return g.H(this,function c(){var d=this;return g.B(c,function(e){return e.return(d.Mw(a,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; + g.k.deleteAllVideos=function(){return g.H(this,function b(){var c=this;return g.B(b,function(d){return d.return(c.Mw(["!*$_ALL_VIDEOS_!*$"],"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"))})})}; + g.k.Mw=function(a,b,c){return g.H(this,function e(){var f=this,h,l,m;return g.B(e,function(n){if(1==n.i)return g.A(n,xR(),2);h=n.u;if(!h||!f.X.N("woffle_orchestration"))return n.return([]);l=a.map(function(p){var q=SQ(p,"ytMainDownloadedVideoEntity");q={actionType:b,entityKey:q,actionMetadata:Object.assign(Object.assign({},Tya()),c)};"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"!==b&&(q.actionMetadata.priority=0);p=new WR("ytMainDownloadedVideoEntity",p,q);return YR(p)}); + m=Yxa(h,l);f.YB();return n.return(m)})})};var oS=[],uHa=!1;g.wW=cf(function(){var a="";try{var b=g.Gg("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.pS,OJ);g.k=g.pS.prototype;g.k.isView=function(){return!0}; + g.k.RF=function(){var a=this.ra.getCurrentTime();if(ae?this.Le("next_player_future"):(this.D=d,this.B=Xla(a,c,d,!0),this.C=Xla(a,e,f,!1),a=this.u.getVideoData().clientPlaybackNonce,this.i.Ba("gaplessPrep","cpn."+a),yS(this.i,this.B),this.i.setMediaElement(oAa(b,c,d,!this.i.getVideoData().isAd())), + xS(this,2),uAa(this))):this.oa():this.oa()}else this.Le("no-elem")}else this.oa()}; + g.k.gr=function(a){var b=tAa(this).KN,c=a===b;b=c?this.B.i:this.B.u;c=c?this.C.i:this.C.u;if(b.isActive&&!c.isActive){var d=this.D;ED(a.lf(),d-.01)&&(xS(this,4),b.isActive=!1,b.Cx=b.Cx||b.isActive,this.u.Ba("sbh","1"),c.isActive=!0,c.Cx=c.Cx||c.isActive);a=this.C.u;this.C.i.isActive&&a.isActive&&xS(this,5)}}; + g.k.vM=function(){4<=this.status.status&&6>this.status.status&&this.Le("player-reload-after-handoff")}; + g.k.Le=function(a){if(!this.isDisposed()&&!this.isFinished()){this.oa();var b=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.i&&this.u){var c=this.u.getVideoData().clientPlaybackNonce;this.i.Ba("gaplessError","cpn."+c+";msg."+a);a=this.i;a.videoData.Ja=!1;b&&iW(a);a.Xa&&mDa(a.Xa)}this.Vk.reject(void 0);this.dispose()}}; + g.k.xa=function(){sAa(this);this.i.unsubscribe("newelementrequired",this.vM,this);if(this.B){var a=this.B.u;this.B.i.xd.unsubscribe("updateend",this.gr,this);a.xd.unsubscribe("updateend",this.gr,this)}g.I.prototype.xa.call(this)}; + g.k.Mc=function(a){g.fI(a,128)&&this.Le("player-error-event")}; + g.k.oa=function(){};g.w(AS,g.I);AS.prototype.clearQueue=function(){this.oa();this.C&&this.C.reject("Queue cleared");BS(this)}; + AS.prototype.ys=function(){return!this.u}; + AS.prototype.xa=function(){BS(this);g.I.prototype.xa.call(this)}; + AS.prototype.oa=function(){};g.w(ES,g.R);g.k=ES.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:yAa()?3:b?2:c?1:d?5:e?7:f?8:0}; + g.k.Hi=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.De())}; + g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.De())}; + g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.De())}; + g.k.Ys=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.De())}; + g.k.setImmersivePreview=function(a){this.u!==a&&(this.u=a,this.De())}; + g.k.qf=function(){return this.i}; + g.k.isFullscreen=function(){return 0!==this.fullscreen}; + g.k.Ur=function(){return this.fullscreen}; + g.k.Je=function(){return this.B}; + g.k.isInline=function(){return this.inline}; + g.k.isBackground=function(){return yAa()}; + g.k.ws=function(){return this.pictureInPicture}; + g.k.rs=function(){return this.u}; + g.k.De=function(){this.ea("visibilitychange");var a=this.getVisibilityState(this.qf(),this.isFullscreen(),this.Je(),this.isInline(),this.ws(),this.rs());a!==this.D&&this.ea("visibilitystatechange");this.D=a}; + g.k.xa=function(){BAa(this.C);g.R.prototype.xa.call(this)};g.w(g.IS,g.I);g.k=g.IS.prototype;g.k.onCueRangeEnter=function(a){this.Ea.push(a);var b=this.B.get(a),c=null==b;this.Ka.add(a.u);c||this.Ca.Ba("sdai","enterAdCueRange");if(this.Ja){this.Ja=!1;if(!c){var d=this.u.find(function(e){return e.cpn===b}); + d&&(this.api.ea("serverstitchedvideochange",d.Cc,d.Eu),this.Ca.Ba("sdai",{ssvc:"midab"}),this.Uu=1)}this.S=!1}else if(this.i){if(this.i.Pp)this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()}),this.X.N("web_player_same_transition_fallback_killswitch")||(d=this.Ca.getCurrentTime(),a={Cd:a,isAd:!c,Pp:!0,Mf:d,adCpn:b},d={Cd:this.i.Cd,isAd:this.i.isAd,Pp:!1,Mf:d,adCpn:this.i.adCpn},this.Ka.delete(this.i.Cd.u), + LS(this,a,d));else{if(this.i.Cd===a){this.Ca.Ba("sdai",{same_cue_range_pair_enter:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}d={Cd:a,isAd:!c,Pp:!0,Mf:this.Ca.getCurrentTime(),adCpn:b};LS(this,d,this.i)}this.i=void 0;this.S=!1}else this.i={Cd:a,isAd:!c,Pp:!0,Mf:this.Ca.getCurrentTime(),adCpn:b}}; + g.k.onCueRangeExit=function(a){if(this.X.N("web_player_same_transition_fallback_killswitch")||this.Ka.has(a.u)){this.Ka.delete(a.u);this.Ea=this.Ea.filter(function(d){return d!==a}); + this.Ja&&(this.S=this.Ja=!1,this.Ca.Ba("sdai","cref"));var b=this.B.get(a),c=null==b;if(this.i){if(this.i.Pp){if(this.i.Cd===a){this.Ca.Ba("sdai",{same_cue_range_pair_exit:1,acpn:this.i.adCpn,transitionTime:this.i.Mf,cpn:b,currentTime:this.Ca.getCurrentTime()});this.i=void 0;return}if(this.i.adCpn===b){b&&this.Ca.Ba("sdai",{dchtsc:b});this.i=void 0;return}c={Cd:a,isAd:!c,Pp:!1,Mf:this.Ca.getCurrentTime(),adCpn:b};LS(this,this.i,c)}else this.Ca.Ba("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.i.adCpn, + transitionTime:this.i.Mf,upcomingCpn:b,contentCpn:this.Ca.getVideoData().clientPlaybackNonce,currentTime:this.Ca.getCurrentTime()});this.i=void 0;this.S=!1}else this.i={Cd:a,isAd:!c,Pp:!1,Mf:this.Ca.getCurrentTime(),adCpn:b};this.X.N("web_player_halftime_dai")&&(c=this.u.find(function(d){return d.cpn===b}),this.isLiveNow&&c&&this.Ca.getCurrentTime()=this.ac)return this.Ca.Ba("sdai",{gdu:1,seg:b,itag:l,err:a.errorCount}),null;a.locations||(a.locations=new Map);if(!a.locations.has(l)){var n=null===(f=null===(e=a.playerResponse)|| + void 0===e?void 0:e.streamingData)||void 0===f?void 0:f.adaptiveFormats;if(!n)return this.Ca.Ba("sdai",{gdu:"noadpfmts",seg:b,itag:l}),US(this,b,m),null;var p=n.find(function(q){return q.itag===l}); + if(!p||!p.url){a={gdu:"nofmt",seg:b,vid:a.videoData.videoId,itag:l,itags:""};if(!this.X.N("html5_ssdai_log_missing_itags_killswitch")){d=[];c=g.r(n);for(n=c.next();!n.done;n=c.next())d.push(n.value.itag);a.itags=d.join(",")}this.Ca.Ba("sdai",a);US(this,b,m);return null}n=!this.X.N("html5_ssdai_decipher_killswitch");a.locations.set(l,new g.uB(p.url,n))}n=a.locations.get(l);if(!n)return this.Ca.Ba("sdai",{gdu:"nourl",seg:b,itag:l}),US(this,b,m),null;n=new oC(n);this.jb&&n.set("dvc","webm");this.X.experiments.ob("ssdai_return_original_content")&& + n.set("dairoc","1");(c=KAa(this,b-1,c,d))&&n.set("daistate",c);a.pG&&b>=a.pG&&n.set("skipsq",""+a.pG);(p=this.Ca.getVideoData().clientPlaybackNonce)&&n.set("cpn",p);c=[];a.hg&&(c=NAa(this,a.hg),0=c+m||(n=!1,l?cthis.B;)(c=this.data.shift())&&gT(this,c,!0);eT(this)}; + fT.prototype.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a}); + c&&(gT(this,c,b),g.Bb(this.data,function(d){return d.key===a}),eT(this))}; + fT.prototype.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){gT(a,b,!0)}); + this.data=[]};g.w(hT,g.tr);hT.prototype.ea=function(a,b){for(var c=[],d=1;dthis.policy.S&&(null===(b=this.i)||void 0===b?0:qD(b.info))&&(null===(c=this.nextVideo)||void 0===c||!qD(c.info))&&(this.S=!0))}; + qU.prototype.oa=function(){};zU.prototype.dispose=function(){this.Y=!0}; + zU.prototype.isDisposed=function(){return this.Y};GU.prototype.skip=function(a){this.offset+=a}; + GU.prototype.getOffset=function(){return this.offset};IU.prototype.Qh=function(){this.u.shift()}; + IU.prototype.Ek=function(){return!!this.D.info.audio}; + IU.prototype.getDuration=function(){return this.D.index.getMaxKnownEndTime()}; + IU.prototype.oa=function(){};g.k=QU.prototype;g.k.HD=function(){return 0}; + g.k.PH=function(){return null}; + g.k.kK=function(){return null}; + g.k.isComplete=function(){return 3<=this.state}; + g.k.isFailed=function(){return 5===this.state}; + g.k.onStateChange=function(){}; + g.k.isDisposed=function(){return-1===this.state}; + g.k.dispose=function(){this.info.dj()&&4!==this.state&&(this.info.i[0].i.C=!1);RU(this,-1)};g.w(UU,QU);g.k=UU.prototype;g.k.onStateChange=function(){this.isDisposed()&&(gGa(this.Ce,this.u),this.B.dispose())}; + g.k.du=function(){return{}}; + g.k.gK=function(){return 0}; + g.k.fu=function(){return!0}; + g.k.ZB=function(){this.Dn();this.S=!0;return uCa(this.i)}; + g.k.QH=function(){this.Dn();return this.i.ke}; + g.k.Ns=function(){var a,b;return!(null===(b=null===(a=this.i)||void 0===a?void 0:a.ke)||void 0===b||!b.length)||this.Ce.Xf(this.u)}; + g.k.Dn=function(){for(;this.Ce.Xf(this.u);){var a=this.i,b=this.Ce.Qh(this.u),c=this.Ce.Ne.get(this.u);tCa(a,b,c.rf&&!c.ke.totalLength&&wCa(this.Ce,this.u))}};VU.prototype.cg=function(){return dCa(this.C)}; + VU.prototype.Qh=function(a){this.C.Qh(a);a=a.info;var b=a.i.info.Nb;this.policy.Cu&&a.Rd&&a.duration&&(b=Math.max(b,(a.Cb+a.u)/a.duration));this.Nb=Math.max(this.Nb,b||0)}; + VU.prototype.getDuration=function(){return this.i.index.getMaxKnownEndTime()}; + VU.prototype.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.i[0].Ma:!1};g.k=iV.prototype;g.k.Js=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.C.Ks()}; + g.k.onError=function(){this.D=!0;this.onDone()}; + g.k.onDone=function(){this.isDisposed||(this.u&&(this.i.append(this.u),delete this.u),this.C.Yn())}; + g.k.Fn=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}; + g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; + g.k.xv=function(){return+this.getResponseHeader("content-length")}; + g.k.Ol=function(){return this.B}; + g.k.Ow=function(){return 200<=this.status&&300>this.status&&!!this.B}; + g.k.Xf=function(){return 0a-this.C&&nV(this)||NCa(this,a,b);this.K.iq(a,b)}; + g.k.Yn=function(){this.K.Yn()}; + g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; + g.k.now=function(){return(0,g.Q)()};var UCa=0;g.k=rV.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Ea);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.Ja,this.onError).then(void 0,Yv)}; + g.k.onDone=function(){if(!this.isDisposed()){this.oa();this.Y=!0;if(TCa(this)&&!this.i.totalLength&&!this.J&&this.u){$A(this);var a=new Uint8Array(8),b=new DataView(a.buffer);b.setUint32(0,8);b.setUint32(4,1936419184);this.i.append(a);this.u+=a.length}this.D.Yn()}}; + g.k.getResponseHeader=function(a){return this.S?this.S.get(a):null}; + g.k.Fn=function(){return!!this.S}; + g.k.Ol=function(){return this.u}; + g.k.xv=function(){return+this.getResponseHeader("content-length")}; + g.k.Ow=function(){return 200<=this.status&&300>this.status&&!!this.u}; + g.k.oa=function(){}; + g.k.Xf=function(){if(this.Y||this.policy.i)return!!this.i.totalLength;if(!this.Fn()||this.ya+10>Date.now())return!1;var a=16384;this.Aa||(a=Math.max(a,16384));(this.policy.i?0:this.policy.fg&&$A(this))&&(a=1);return this.i.totalLength>=a}; + g.k.Qh=function(){this.Xf();this.ya=Date.now();this.Aa=!0;var a=this.i;this.i=new WC;return a}; + g.k.cg=function(){this.Xf();return this.i}; + g.k.isDisposed=function(){return this.Z}; + g.k.abort=function(){this.oa();this.B&&this.B.cancel().catch(function(){}); + this.C&&this.C.abort();this.Z=!0}; + g.k.nt=function(){return!0}; + g.k.CA=function(){return this.J}; + g.k.qe=function(){return this.errorMessage};g.k=sV.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.i=!0;this.B.Yn()}}; + g.k.Js=function(){2===this.xhr.readyState&&this.B.Ks()}; + g.k.od=function(a){this.isDisposed||(this.status=this.xhr.status,this.i||(this.u=a.loaded),this.B.iq((0,g.Q)(),a.loaded))}; + g.k.Fn=function(){return 2<=this.xhr.readyState}; + g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return Is(Error("Could not read XHR header "+a)),""}}; + g.k.xv=function(){return+this.getResponseHeader("content-length")}; + g.k.Ol=function(){return this.u}; + g.k.Ow=function(){return 200<=this.status&&300>this.status&&this.i&&!!this.u}; + g.k.Xf=function(){return this.i&&!!this.response&&!!this.response.byteLength}; + g.k.Qh=function(){this.Xf();var a=this.response;this.response=void 0;return new WC([new Uint8Array(a)])}; + g.k.cg=function(){this.Xf();return new WC([new Uint8Array(this.response)])}; + g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()}; + g.k.nt=function(){return!1}; + g.k.CA=function(){return!1}; + g.k.qe=function(){return""};g.w(vV,QU);g.k=vV.prototype;g.k.Xd=function(){return this.u.Xd()}; + g.k.du=function(){var a=kV(this.timing);a.shost=wB(this.u.jg);this.B&&(a.rc=this.B.toString());a.itag=this.info.i[0].i.info.lc();a.ml=""+ +this.info.i[0].i.Se();a.sq=""+this.info.i[0].Ma;this.u&&(a.ifi=""+ +Dka(this.u.jg));410!==this.B&&500!==this.B&&503!==this.B||(a.fmt_unav="true");this.xhr.qe()&&(a.msg=this.xhr.qe());this.mx&&(a.smb="1");if(this.i){var b=this.i.ke;b.length&&Hla(b[0],a)}return a}; + g.k.gK=function(){return RCa(this.timing)}; + g.k.qe=function(){return this.xhr.qe()||""}; + g.k.fu=function(){var a;(a=this.isComplete())||(a=this.timing,a=a.u>a.mA&&oV(a,a.u));return a}; + g.k.iq=function(){!this.isDisposed()&&this.xhr&&(this.B=this.xhr.status,this.Ns()?SU(this,2):!this.Aa&&this.fu()&&(SU(this),this.Aa=!0))}; + g.k.Ks=function(){if(!this.isDisposed()&&this.xhr){if(!this.Y&&this.xhr.Fn()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Y=((0,g.Q)()-a)/1E3}this.xhr.Fn()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Gq&&!Gma()&&g.Kz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.J=a||this.J;this.K=b||this.K}}; + g.k.Yn=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.Z.stop(),this.B=a.status,a=ZCa(this,a),5===a?uV(this):RU(this,a))}; + g.k.canRetry=function(){this.isDisposed();var a=tV(this);return a.timedOut=.8*this.ya?(this.C++,this.oa(),b=5<=this.C):this.C=0):(b=this.timing,b.gh&&qV(b,b.now()),a-=b.ma,this.policy.Db&&01E3*b)&&this.oa());this.C&&this.callback&&this.callback(this,this.state);b?$Ca(this,!1):this.Z.start()}}; + g.k.dispose=function(){QU.prototype.dispose.call(this);this.Z.dispose();this.policy.wh||wV(this)}; + g.k.ZB=function(){if(!this.QH().length)return[];this.S=!0;return uCa(this.i)}; + g.k.Ns=function(){var a;return 1>this.state?!1:this.i&&this.i.ke.length||(null===(a=this.xhr)||void 0===a?0:a.Xf())?!0:!1}; + g.k.QH=function(){this.Dn(!1);return this.i?this.i.ke:[]}; + g.k.Dn=function(a){if(a||this.xhr.Fn()&&this.xhr.Xf()&&!XCa(this)&&!this.D){if(!this.i){if(this.xhr.nt())this.info.range&&(b=this.info.range.length);else var b=this.xhr.Ol();this.i=new sCa(this.info.i,b)}for(;this.xhr.Xf();)tCa(this.i,this.xhr.Qh(),a&&!this.xhr.Xf())}}; + g.k.Ol=function(){return this.xhr.Ol()}; + g.k.HD=function(){return this.Y}; + g.k.un=function(){return aDa(this)?2:1}; + g.k.oa=function(){}; + g.k.PH=function(){this.xhr&&(this.J=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.J}; + g.k.kK=function(){this.xhr&&(this.K=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.K}; + var YCa=-1;xV.prototype.clear=function(){this.u=this.K=this.C=null;this.i=this.D=this.J=this.startTimeSecs=NaN;this.B=!1}; + xV.prototype.oa=function(){};g.w(g.zV,g.I);g.k=g.zV.prototype; + g.k.initialize=function(a,b,c){this.oa();a=a||0;this.Ca.cA(OBa(this.u));if(this.i.isManifestless){if(this.policy.Di){b=Aka(this.policy);for(var d in this.i.i)this.i.i.hasOwnProperty(d)&&(this.i.i[d].index.u=b)}kDa(this)}this.D&&cDa(this.D,this.videoTrack.i);this.policy.La&&ZA()&&this.Ba("streaming","ac."+(!!window.AbortController||aB()),!0);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.i.isManifestless?d:a;this.ma&&(jDa(this,this.videoTrack),jDa(this,this.audioTrack),hGa(this.ma), + delete this.ma,this.policy.vu&&(a=tC(this.audioTrack.i.u,!1),AE("https://"+a+"/generate_204","oprobe")));c?(this.policy.Tc?(this.jb=c,EV(this,c)):EV(this,!1),g.Jq(this.La)):(c=0===this.currentTime,AV(this,this.videoTrack,this.videoTrack.i,c),AV(this,this.audioTrack,this.audioTrack.i,c),g.qh(this.seek(this.currentTime),function(){}),this.timing.tick("gv")); + (this.i.xe||this.i.wg||this.i.J||this.i.D||this.i.K)&&this.Ba("minMaxSq","minSq."+this.i.xe+";maxSq."+this.i.wg+";minDvrTime."+this.i.J+";maxDvrTime."+this.i.D+";startWalltime."+this.i.K)}; + g.k.resume=function(){if(this.isSuspended||this.Aa){this.oa();this.Ua=this.Aa=this.isSuspended=!1;try{this.uh()}catch(a){g.Ly(a)}}}; + g.k.setAudioTrack=function(a){if(!this.isDisposed()){var b=this.u;b.u=b.D.i[a.id];b.K=b.u;a=new pU(b.K,b.i,"m");this.oa();MV(this.Ca,a.reason,a.audio.info);OV(this.Ca)}}; + g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)}; + g.k.Ov=function(a){var b=a.info.i[0].i,c=a.lastError;if(xB(b.u.i)){var d=g.Mc(g.Va(a.qe()),3);this.Ba("dldbrerr",d||"none")}this.K&&(d=a.info.i[0].Ma,this.K.Ov(CBa(this.B,a.info.i[0].C,d),d));if(a.canRetry()){d=(b.info.video&&1b&&c.u.pop();a.B.length?a.u=g.pb(g.pb(a.B).info.i):a.C.u.length?a.u=JU(a.C).info:a.u=XU(a);a.u&&b=c||cthis.B&&(this.B=c,g.lc(this.i)||(this.i={},this.C.stop(),this.u.stop())),this.i[b]=a,g.Jq(this.u))}}; + RV.prototype.D=function(){for(var a=g.r(Object.keys(this.i)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ea;for(var d=this.B,e=this.i[c].match(gi),f=[],h=g.r(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+fg(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e=a.size||(a.forEach(function(c,d){var e=nE(b.u)?d:c;d=new Uint8Array(nE(b.u)?c:d);nE(b.u)&&$Da(d);c=g.Mc(d,4);$Da(d);d=g.Mc(d,4);b.i[c]?b.i[c].status=e:b.i[d]?b.i[d].status=e:b.i[c]={type:"",status:e}}),this.oa("Key statuses changed: "+XDa(this,",")),TV(this,"onkeystatuschange"),this.status="kc",this.ea("keystatuseschange",this))}; + g.k.error=function(a,b,c,d){this.isDisposed()||(this.ea("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.J)/1E3,this.J=NaN,this.ea("ctmp","provf",""+a.toFixed(3))));b&&this.dispose()}; + g.k.shouldRetry=function(a,b){return this.Aa&&this.K?!1:!a&&this.requestNumber===b.requestNumber}; + g.k.xa=function(){this.i={};g.R.prototype.xa.call(this)}; + g.k.Ib=function(){var a={requestedKeyIds:this.ya,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.i);return a}; + g.k.mf=function(){var a=this.D.join();if(VV(this)){var b=new Set,c;for(c in this.i)"usable"!==this.i[c].status&&b.add(this.i[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; + g.k.oa=function(){}; + g.k.Xd=function(){return this.url};g.w(XV,g.I);g.k=XV.prototype;g.k.KP=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}}; + g.k.Wn=function(){this.K&&this.K(this.i.keyStatuses)}; + g.k.DM=function(a){this.D&&this.D(a.message,"license-request")}; + g.k.CM=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; + g.k.BM=function(){this.J&&this.J()}; + g.k.update=function(a){var b=this;if(this.i)return this.i.update(a).then(null,Hs(function(c){cEa(b,"t.update",c)})); + this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.S.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,a,this.initData,this.sessionId);return Kt()}; + g.k.xa=function(){this.i&&this.i.close();this.element=null;g.I.prototype.xa.call(this)};g.w(YV,g.I);g.k=YV.prototype;g.k.setServerCertificate=function(){return"widevine"===this.i.flavor&&this.i.B&&this.u.setServerCertificate?this.u.setServerCertificate(this.i.B):null}; + g.k.createSession=function(a,b){var c=a.initData;if(this.i.keySystemAccess){b&&b("createsession");var d=this.u.createSession();pE(this.i)&&(c=eEa(c,this.i.u));b&&b("genreq");a=d.generateRequest(a.contentType,c);var e=new XV(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},Hs(function(f){cEa(e,"t.generateRequest",f)})); + return e}if(mE(this.i))return gEa(this,c);if(oE(this.i))return fEa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.i.keySystem,c):this.element.webkitGenerateKeyRequest(this.i.keySystem,c);return this.C=new XV(this.element,this.i,c,null,null)}; + g.k.NP=function(a){var b=$V(this,a);b&&b.DM(a)}; + g.k.MP=function(a){var b=$V(this,a);b&&b.CM(a)}; + g.k.LP=function(a){var b=$V(this,a);b&&b.BM(a)}; + g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a}; + g.k.xa=function(){var a;this.B=this.u=null;null===(a=this.C)||void 0===a?void 0:a.dispose();for(var b=g.r(Object.values(this.J)),c=b.next();!c.done;c=b.next())c.value.dispose();this.J={};g.I.prototype.xa.call(this);delete this.element};g.w(aW,g.I); + aW.prototype.init=function(){return g.H(this,function b(){var c=this,d,e;return g.B(b,function(f){if(1==f.i)return g.Sl(c.i,{position:"absolute",width:"1px",height:"1px",display:"block"}),c.i.src=c.B.D,document.body.appendChild(c.i),c.C.T(c.i,"encrypted",c.J),d=[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}],g.A(f,navigator.requestMediaKeySystemAccess("com.youtube.fairplay",d),2);e=f.u;c.B.keySystemAccess= + e;c.u=new YV(c.i,c.B);g.J(c,c.u);ZV(c.u);g.sa(f)})})}; + aW.prototype.J=function(a){var b=this;if(!this.isDisposed()){var c=new Uint8Array(a.initData);a=new EU(c,a.initDataType);var d=DDa(c).replace("skd://","https://"),e={},f=this.u.createSession(a,function(){b.oa()}); + f&&(g.J(this,f),this.D.push(f),ODa(f,function(h){aEa(h,f.i,d,e)},function(){b.oa()},function(){},function(){}))}}; + aW.prototype.oa=function(){}; + aW.prototype.xa=function(){this.D=[];this.i&&this.i.parentNode&&this.i.parentNode.removeChild(this.i);g.I.prototype.xa.call(this)};g.w(bW,QV); + bW.prototype.J=function(a){var b;if(!(b=!this.C)){a:{if((b=a.cryptoPeriodIndex)&&0=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c=!c}c?c=0:(c=a.i,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30)));this.ea("log_qoe","wvagt.delay."+ + c+".cpi."+a.cryptoPeriodIndex+".reqlen."+this.i.length);this.C&&0>=c?hEa(this,a):(this.i.push({time:b+c,info:a}),g.Jq(this.u,c))}}; + bW.prototype.xa=function(){this.i=[];QV.prototype.xa.call(this)};cW.prototype.get=function(a){a=eW(this,a);return-1!==a?this.values[a]:null}; + cW.prototype.remove=function(a){a=eW(this,a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))}; + cW.prototype.set=function(a,b){var c=eW(this,a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};g.w(fW,g.R);g.k=fW.prototype;g.k.OP=function(a){this.Jg("onecpt");a.initData&&mEa(this,new Uint8Array(a.initData),a.initDataType)}; + g.k.LU=function(a){this.Jg("onndky");mEa(this,a.initData,a.contentType)}; + g.k.Is=function(a){this.Jg("onneedkeyinfo");this.X.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));lEa(this,a)}; + g.k.TI=function(a){this.B.push(a);gW(this)}; + g.k.createSession=function(a){var b=nEa(this)?$Ba(a):g.Mc(a.initData);this.u.get(b);this.ya=!0;a=new UV(this.videoData,this.X,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.dM,this);a.subscribe("keystatuseschange",this.Wn,this);a.subscribe("licenseerror",this.bA,this);a.subscribe("newlicense",this.xM,this);a.subscribe("newsession",this.yM,this);a.subscribe("sessionready",this.LM,this);a.subscribe("fairplay_next_need_key_info",this.oM,this);QDa(a,this.C)}; + g.k.xM=function(a){this.isDisposed()||(this.oa(),this.Jg("onnelcswhb"),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ea("heartbeatparams",a)))}; + g.k.yM=function(){this.isDisposed()||(this.oa(),this.Jg("newlcssn"),this.B.shift(),this.ya=!1,gW(this))}; + g.k.LM=function(){if(mE(this.i)&&(this.oa(),this.Jg("onsnrdy"),this.Ka--,0===this.Ka)){var a=this.Y;a.element.msSetMediaKeys(a.B)}}; + g.k.Wn=function(a){if(!this.isDisposed()){!this.Ea&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(oEa(this),this.Ea=!0);this.oa();this.Jg("onksch");if(!VV(a)&&g.ax&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var b="large";else{b=[];var c=!0;if(VV(a))for(var d=g.r(Object.keys(a.i)),e=d.next();!e.done;e=d.next())e=e.value,"usable"===a.i[e].status&&b.push(a.i[e].type),"unknown"!==a.i[e].status&&(c=!1);if(!VV(a)||c)b=a.D;b=g.wb(b,"UHD2")||g.wb(b,"UHD2HDR")? + "highres":g.wb(b,"UHD1")||g.wb(b,"UHD1HDR")?"hd2160":g.wb(b,"HD")||g.wb(b,"HDHDR")?"hd1080":g.wb(b,"HD720")||g.wb(b,"HD720HDR")?"hd720":"large"}a:{c=fB("auto",b,!1,"l");if(this.videoData.Og){if(dB(this.S,c))break a}else if(qka(this.S,b))break a;this.S=c;this.ea("qualitychange");this.oa();this.Jg("updtlq"+b)}this.ea("keystatuseschange",a)}}; + g.k.dM=function(a,b){this.isDisposed()||this.ea("ctmp",a,b)}; + g.k.oM=function(a,b){this.isDisposed()||this.ea("fairplay_next_need_key_info",a,b)}; + g.k.bA=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&oEa(this),this.ea("licenseerror",a,b,c,d))}; + g.k.Xr=function(){return this.S}; + g.k.xa=function(){this.i.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.r(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.dM,this),b.unsubscribe("keystatuseschange",this.Wn,this),b.unsubscribe("licenseerror",this.bA,this),b.unsubscribe("newlicense",this.xM,this),b.unsubscribe("newsession",this.yM,this),b.unsubscribe("sessionready",this.LM,this),b.unsubscribe("fairplay_next_need_key_info",this.oM,this),b.dispose(); + this.u.clear();dW(this.J);dW(this.K);this.heartbeatParams=null;g.R.prototype.xa.call(this)}; + g.k.Ib=function(){for(var a={systemInfo:this.i.Ib(),sessions:[]},b=g.r(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.Ib());return a}; + g.k.mf=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.mf()+(this.D?"/KR":"")}; + g.k.Jg=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(this.oa(),(this.videoData.Y||b)&&this.ea("ctmp","drmlog",a))}; + g.k.oa=function(){};g.w(jW,g.I);g.k=jW.prototype;g.k.Bz=function(){return this.B}; + g.k.handleError=function(a){var b=this,c;tEa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!lW(this,a.errorCode,a.details))&&!vEa(this,a))if(a.i){var d=null===(c=this.Ca.Xa)||void 0===c?void 0:c.u.B;if(("net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&a.details.fmt_unav)&&d&&d.isLocked())var e="FORMAT_UNAVAILABLE";else if(!this.i.D&&"auth"===a.errorCode&&"429"===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}this.Ca.Kf(a.errorCode, + e,g.JD(a.details),f)}else this.Ca.ea("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Q)(),AE(a,"manifest",function(h){b.K=!0;b.Ba("pathprobe",h)},function(h){b.Sd(h.errorCode,h.details)}))}; + g.k.Ba=function(a,b){this.Ca.Xb.Ba(a,b)}; + g.k.Sd=function(a,b){b=g.JD(b);this.Ca.Xb.Sd(a,b)}; + g.k.oa=function(){};mW.prototype.setPlaybackRate=function(a){this.playbackRate=a}; + mW.prototype.N=function(a){return this.X.N(a)};g.w(nW,g.I);nW.prototype.Mc=function(a){QEa(this);this.playerState=a.state;0<=this.B&&g.fI(a,16)&&this.seekCount++;a.state.isError()&&this.send()}; + nW.prototype.onError=function(a){"player.fatalexception"!==a&&(a.match(nOa)?this.networkErrorCount++:this.nonNetworkErrorCount++)}; + nW.prototype.send=function(){if(!(this.C||0>this.u)){QEa(this);var a=g.CS(this.i)-this.u,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState, + 4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");var d=HG(this.i.videoData);c="LIVE_STREAM_MODE_UNKNOWN";"live"===d?c="LIVE_STREAM_MODE_LIVE":"dvr"===d&&(c="LIVE_STREAM_MODE_DVR");d=REa(this.i);var e=0>this.B?a:this.B-this.u;a=this.i.X.jb+36E5<(0,g.Q)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs, + rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.i.videoData.isAd(),liveMode:c,hasDrm:!!g.FG(this.i.videoData),isGapless:this.i.videoData.Ja,isServerStitchedDai:this.i.videoData.enableServerStitchedDai};!a&&this.i.N("html5_health_to_gel")&&g.Zv("html5PlayerHealthEvent",b);this.i.N("html5_health_to_qoe")&&(b.muted=a,this.K(g.JD(b)));this.C=!0;this.dispose()}}; + nW.prototype.xa=function(){this.C||this.send();g.I.prototype.xa.call(this)}; + var nOa=/\bnet\b/;var VEa=window;var TEa=/[?&]cpn=/;g.w(g.rW,g.I);g.k=g.rW.prototype;g.k.fS=function(){var a=g.CS(this.i);sW(this,a)}; + g.k.Cv=function(){return this.Ra}; + g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.CS(this.i),-1<["PL","B","S"].indexOf(this.ud)&&(!g.lc(this.u)||a>=this.C+30)&&(g.qW(this,a,"vps",[this.ud]),this.C=a),!g.lc(this.u))){7E3===this.sequenceNumber&&g.My(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){tW(this,a);var b=a,c=this.i.Ca.Lv(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.eb,h=e&&!this.qb;if(d>c.totalVideoFrames||5E3=this.playTimeSecs&&(this.i.Ca.xw(),this.u.qoealert=["1"],this.La=!0)}"B"!==d||"PL"!==this.ud&&"PB"!==this.ud||(this.ya=!0);this.C=c}"PL"===this.ud&&("B"=== + d||"S"===d)||this.i.videoData.Y?tW(this,c):sW(this,c);"PL"===d&&g.Jq(this.Db);this.i.N("html5_unstarted_buffering")&&this.i.videoData.Y&&g.U(a.state,64)&&"N"!==d&&this.Ba("unstub",d);g.qW(this,c,"vps",[d]);this.ud=d;this.C=this.Ua=c;this.D=!0}a=b.getData();g.U(b,128)&&a&&this.Sd(c,a.errorCode,a.KF);(g.U(b,2)||g.U(b,128))&&this.reportStats(c);b.Ec()&&!this.J&&(0<=this.B&&(this.u.user_intent=[this.B.toString()]),this.J=!0);uW(this)}; + g.k.Cw=function(a){var b=g.CS(this.i);g.qW(this,b,"vfs",[a.i.id,a.u,this.vb,a.reason]);this.vb=a.i.id;var c=this.i.Ca.getPlayerSize();if(0b-this.lastUpdateTime+2||hFa(this,a,b))){var d=this.i.Dh();c=d.volume;var e=c!==this.Y;d=d.muted;d!==this.Z?(this.Z=d,c=!0):(!e||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2=this.i.videoData.Mb;a&&(this.C&&this.i.videoData.Mb&&(a=EW(this,"delayplay"),a.wh=!0,a.send(),this.Y=!0),lFa(this))}; + g.k.Mc=function(a){this.isDisposed()||(g.U(a.state,2)?(this.currentPlayerState="paused",g.fI(a,2)&&this.C&&HW(this).send()):g.U(a.state,8)?(this.currentPlayerState="playing",this.C&&isNaN(this.B)&&FW(this,!1)):this.currentPlayerState="paused")}; + g.k.xa=function(){g.I.prototype.xa.call(this);g.wt(this.B);this.B=NaN;fFa(this.u)}; + g.k.Ib=function(){return BW(EW(this,"playback"))}; + g.k.At=function(){this.i.videoData.S.eventLabel=SG(this.i.videoData);this.i.videoData.S.playerStyle=this.i.X.playerStyle;this.i.videoData.dh&&(this.i.videoData.S.feature="pyv");this.i.videoData.S.vid=this.i.videoData.videoId;var a=this.i.videoData.S;var b=this.i.videoData;b=b.isAd()||!!b.dh;a.isAd=b}; + g.k.Eh=function(a){var b=EW(this,"engage");b.Z=a;return iFa(b,qFa(this.i))};pFa.prototype.isEmpty=function(){return this.endTime===this.startTime};JW.prototype.N=function(a){return this.X.N(a)}; + var rFa={other:1,none:2,wifi:3,cellular:7};g.w(g.KW,g.I);g.k=g.KW.prototype;g.k.Mc=function(a){var b;if(g.fI(a,1024)||g.fI(a,512)||g.fI(a,4)){if(this.B){var c=this.B;0<=c.B||(c.u=-1,c.delay.stop())}this.qoe&&(c=this.qoe,c.J||(c.B=-1))}this.u.videoData.enableServerStitchedDai&&this.Sf?null===(b=this.C.get(this.Sf))||void 0===b?void 0:b.Mc(a):this.i&&this.i.Mc(a);this.qoe&&this.qoe.Mc(a);this.B&&this.B.Mc(a)}; + g.k.od=function(){var a;this.u.videoData.enableServerStitchedDai&&this.Sf?null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.od():this.i&&this.i.od()}; + g.k.Sd=function(a,b){if(this.qoe)this.qoe.onError(a,b);if(this.B)this.B.onError(a)}; + g.k.Cw=function(a){this.qoe&&this.qoe.Cw(a)}; + g.k.uw=function(a){this.qoe&&this.qoe.uw(a)}; + g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)}; + g.k.Vn=ba(33);g.k.Ba=function(a,b,c){this.qoe&&this.qoe.Ba(a,b,c)}; + g.k.Qw=function(a,b,c){this.qoe&&this.qoe.Qw(a,b,c)}; + g.k.Pw=function(a){this.qoe&&this.qoe.Pw(a)}; + g.k.Qs=function(a,b,c){this.qoe&&this.qoe.Qs(a,b,c)}; + g.k.Un=ba(36);g.k.xj=ba(14);g.k.Cv=function(){if(this.qoe)return this.qoe.Cv()}; + g.k.Ib=function(){var a;if(this.u.videoData.enableServerStitchedDai&&this.Sf)null===(a=this.C.get(this.Sf))||void 0===a?void 0:a.Ib();else if(this.i)return this.i.Ib();return{}}; + g.k.Eh=function(a){return this.i?this.i.Eh(a):function(){}}; + g.k.At=function(){this.i&&this.i.At()};g.w(LW,g.I);g.k=LW.prototype;g.k.Ad=function(a,b){this.bl();if(b&&2E3<=this.i.i.length){var c=(isNaN(this.u)?g.U(this.D(),2)?0x8000000000000:1E3*this.S():this.u)-1E4;b=this.Ll().filter(function(d){return"captions"===d.namespace&&d.enda&&this.C.start()))}; + g.k.sD=function(a){var b=[];if(!a.length)return b;for(var c=0;ca&&(a=(a-this.u)/this.ma(),this.C.start(a)))}}; + g.k.aL=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.U(a,32)&&this.Y.start();for(var b=g.U(this.D(),2)?0x8000000000000:1E3*this.S(),c=g.U(a,2),d=[],e=[],f=g.r(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.vD(e));f=e=null;c?(a=CFa(this.i,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=DFa(this.i)):a=this.u<=b&&ZJ(a)?BFa(this.i,this.u,b):CFa(this.i,b); + d=d.concat(this.sD(a));e&&(d=d.concat(this.vD(e)));f&&(d=d.concat(this.sD(f)));this.u=b;HFa(this,d)}}; + g.k.xa=function(){this.B=[];this.i.i=[];g.I.prototype.xa.call(this)}; + g.wS.wz(LW,{Ad:"crmacr",sD:"crmncr",vD:"crmxcr",aL:"crmis",If:"crmrcr"});g.w(PW,g.R);PW.prototype.Xl=function(){return this.K}; + PW.prototype.hj=function(){return Math.max(this.S()-NFa(this,!0),this.videoData.getMinSeekableTime())}; + PW.prototype.oa=function(){};g.w(UW,g.I);UW.prototype.Mc=function(){g.Jq(this.B)}; + UW.prototype.D=function(){var a=this,b=this.Ca.jd(),c=this.Ca.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.i,f=g.U(c,8)&&g.U(c,16),h=this.Ca.Jp().isBackground()||c.isSuspended();VW(this,this.Ea,f&&!h,e,"qoe.slowseek",function(){},"timeout"); + f=f&&isFinite(this.i)&&0d+5;q=p&&m&&q;VW(this,this.K,q&&!h,p&&!m,"qoe.longrebuffer",n,"jiggle_cmt");VW(this,this.S,q&&!h,p&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(f){var u=f.getCurrentTime();n=b.Gp();n=Ula(n,u);n=!f.C.i&&d===n;VW(this,this.Ua,p&&m&&n&&!h,p&&!m&&!n,"qoe.longrebuffer",function(){b.seekTo(u)},"seek_to_loader")}VW(this,this.Z,p&&m&&!h,p&&!m,"qoe.longrebuffer",function(){}, + "timeout"); + n=c.isSuspended();n=g.wb(this.Ca.Dj,"ad")&&!n;VW(this,this.J,n,!n,"qoe.start15s",function(){a.Ca.Md("ad")},"ads_preroll_timeout"); + n=this.Ca.getVideoData();q=.5>d-this.C;t=n.isAd()&&p&&!m&&q;p=function(){var x=a.Ca,y=x.Yx.Kc();(!y||!x.videoData.isAd()||y.getVideoData().Cc!==x.getVideoData().Cc)&&x.videoData.Qd||x.Kf("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+x.videoData.videoId)}; + VW(this,this.Ja,t,!t,"ad.rebuftimeout",p,"skip_slow_ad");m=n.isAd()&&m&&ED(b.Uf(),d+5)&&q;VW(this,this.La,m,!m,"ad.rebuftimeout",p,"skip_slow_ad_buf");VW(this,this.Ra,g.YJ(c)&&g.U(c,64)&&!h,e,"qoe.start15s",function(){},"timeout"); + VW(this,this.Y,!!f&&!f.mediaSource&&g.YJ(c),e,"qoe.start15s",l,"newElemMse");this.C=d;this.B.start()}}; + UW.prototype.Sd=function(a,b,c){b=this.Ib(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.Ca.Sd(new g.KD(a,!1,b));this.u[a]=!0}; + UW.prototype.Ib=function(a){a=Object.assign(this.Ca.Ib(!0),a.Ib());this.i&&(a.stt=this.i.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; + SW.prototype.reset=function(){this.i=this.triggerTimestamp=this.u=this.startTimestamp=0;this.B=!1}; + SW.prototype.Ib=function(){var a={},b=(0,g.Q)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.triggerTimestamp&&(a.wtd=(b-this.triggerTimestamp).toFixed());this.i&&(a.wssd=(b-this.i).toFixed());return a};g.w(XW,g.I);g.k=XW.prototype;g.k.setMediaElement=function(a){g.my(this.Ja);(this.ra=a)?(dGa(this),WW(this)):ZW(this)}; + g.k.Mc=function(a){this.Y.Mc(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.Ec()?g.Jq(this.ma):this.ma.stop());var b;if(b=this.ra)b=8===a.Sn.state&&ZJ(a.state)&&g.$J(a.state)&&this.policy.B;if(b){a=this.ra.getCurrentTime();b=this.ra.Uf();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?DD(b,Math.max(a-3.5,0)):DD(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Ua-c)||(this.Ca.Ba("seekover","b."+CD(b, + "_")+";cmt."+a),this.Ua=c,this.seekTo(c,{Mp:!0,Td:"playbacktimeline_postLiveDisc"})))}}; + g.k.getCurrentTime=function(){return!isNaN(this.i)&&isFinite(this.i)?this.i:this.ra&&aGa(this)?this.ra.getCurrentTime()+this.timestampOffset:this.B||0}; + g.k.Ch=function(){return this.getCurrentTime()-this.Uc()}; + g.k.hj=function(){return this.u?this.u.hj():Infinity}; + g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RW(this.u,a)}; + g.k.Xl=function(){return!!this.u&&this.u.Xl()}; + g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.pO?!1:c.pO;var d=void 0===c.qO?0:c.qO,e=void 0===c.Mp?!1:c.Mp,f=void 0===c.DG?0:c.DG,h=void 0===c.Td?"":c.Td;if(void 0===c.ep?0:c.ep)a+=this.Uc();c=a;var l=!isFinite(c)||(this.u?RW(this.u,c):c>=this.hd())||!g.KG(this.videoData);l||this.Ca.Ba("seeknotallowed",c+";"+this.hd());if(!l)return this.C&&(this.C=null,bX(this)),jh(this.getCurrentTime());this.oa();if(.005>Math.abs(a-this.i)&&this.S)return this.oa(),this.D;h&&(c=a,(g.yG(this.videoData)|| + this.N("html5_log_seek_reasons"))&&this.Ca.Ba("seekreason","reason."+h+";tgt."+c));this.S&&ZW(this);this.D||(this.D=new uS);a&&!isFinite(a)&&YW(this,!1);h=a;(aX(this)&&!(this.ra&&0e.videoData.endSeconds&& + isFinite(a)&&(e.removeCueRange(e.qk),e.qk=null);a>31)}this.i.qL&&NQ(a,16,this.i.qL);this.i.viewportHeight&&this.i.viewportWidth&&(NQ(a,18,this.i.viewportWidth),NQ(a,19,this.i.viewportHeight));this.i.UN&&NQ(a,21,this.i.UN);this.i.cJ&&NQ(a,23,this.i.cJ);void 0!==this.i.visibilityState&&NQ(a,34,this.i.visibilityState);void 0!==this.i.cO&&NQ(a,39,this.i.cO);this.i.Jn&&NQ(a,40,1)};g.w(rX,mX);rX.prototype.u=function(a){OQ(a,2,this.i);OQ(a,5,this.encryptedClientKey);OQ(a,6,this.iv);OQ(a,7,this.hmac);NQ(a,10,this.serializeResponseAsJson?1:0)};g.w(sX,mX);sX.prototype.u=function(a){qxa(a);this.i.u(a);rxa(a);OQ(a,3,nX(this.B));this.onesieUstreamerConfig&&OQ(a,4,this.onesieUstreamerConfig)};tX.prototype.feed=function(a){XC(this.i,a);yGa(this)}; + tX.prototype.dispose=function(){this.i=new WC};var n3={init:"0-1",index:"2-3",clen:"",url:"",sp:"",s:"",lmt:""},EGa=[Object.assign({itag:"137",bitrate:"4000000",size:"1920x1080",fps:"30",type:'video/mp4; codecs="avc1.4d401e"'},n3),Object.assign({itag:"248",bitrate:"2000000",fps:"30",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"399",bitrate:"1000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="av01.0.08M.08"'},n3),Object.assign({itag:"298",bitrate:"3500000",size:"1280x720",fps:"60",type:'video/mp4; codecs="avc1.64001e"'}, + n3),Object.assign({itag:"299",bitrate:"5000000",size:"1920x1080",fps:"60",type:'video/mp4; codecs="avc1.64001e"'},n3),Object.assign({itag:"302",bitrate:"2500000",fps:"60",size:"1280x720",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"303",bitrate:"3000000",fps:"60",size:"1920x1080",type:'video/webm; codecs="vp9"'},n3),Object.assign({itag:"140",type:'audio/mp4; codecs="mp4a.40.2"'},n3),Object.assign({itag:"251",audio_sample_rate:"48000",type:'audio/webm; codecs="opus"'},n3)],o3=["136","135", + "134","133","160"],p3=["247","244","243","242"],q3={},DGa=(q3["137"]=o3,q3["248"]=p3,q3["399"]=["398","397","396","395","394"],q3["298"]=o3,q3["302"]=p3,q3["299"]=["298","137"].concat(o3),q3["303"]=["302","248"].concat(p3),q3["140"]=[],q3["251"]=["250"],q3),r3={},BGa=(r3["133"]=240,r3["134"]=360,r3["135"]=480,r3["136"]=720,r3["137"]=1080,r3["242"]=240,r3["243"]=360,r3["244"]=480,r3["247"]=720,r3["248"]=1080,r3["298"]=720,r3["299"]=1080,r3["302"]=720,r3["303"]=1080,r3["395"]=240,r3["396"]=360,r3["397"]= + 480,r3["398"]=720,r3["399"]=1080,r3);g.w(uX,g.I);g.k=uX.prototype;g.k.Xe=function(a){this.Ca.Xe(a)}; + g.k.hF=function(){this.Xe("orpr");this.HK=!0}; + g.k.hA=function(a,b){var c;null===(c=this.Ce)||void 0===c?void 0:(c.Ne.get(a).wk=b,c.oa());lX(this)}; + g.k.Ba=function(a,b){this.Ca.Ba(a,b)}; + g.k.fetch=function(){return g.H(this,function b(){var c=this,d,e,f,h,l,m,n,p,q,t;return g.B(b,function(u){if(1==u.i){c.oa();c.kA.start();c.UM&&c.jA.start();c.Xe("ogpd");var x=c.playerRequest,y=c.X,z=c.videoData,G=y.Og;G="https://youtubei.googleapis.com/youtubei/"+G.innertubeApiVersion+"/player?key="+G.innertubeApiKey;var F=[new oX({name:"Content-Type",value:"application/json"})],C=z.nf();C&&F.push(new oX({name:"Authorization",value:"Bearer "+C}));F.push(new oX({name:"User-Agent",value:g.Ub}));(z= + z.visitorData||g.P("VISITOR_DATA",void 0))&&F.push(new oX({name:"X-Goog-Visitor-Id",value:z}));(y=g.jE(y.experiments,"debug_sherlog_username"))&&F.push(new oX({name:"X-Youtube-Sherlog-Username",value:y}));x=JSON.stringify(x);e=new pX({url:G,httpHeaders:F,postBody:x});try{var K=c.X,S=c.videoData,L=c.Ca.getPlayerSize(),W=c.Ca.getVisibilityState(),pa=c.HJ.onesieUstreamerConfig,ta=c.xF;var rb=ta.encrypt(nX(e));var ob=ta.i.encryptedClientKey,Ib=ta.iv,sc=ta.iv,dd=new cR(ta.i.u);dd.update(rb);dd.update(sc); + var We=Cxa(dd);dd.update(dd.D);dd.update(We);var $b=Cxa(dd);dd.reset();var zk=new rX(rb,ob,Ib,$b);ta={};var Vi=eE(0);if(Vi){ta.qL=Vi;ta.lastManualDirection=Cma();var Wi=mja()||0;0Ld.i||K.push(S);hc=K}if(hc.length){sb={video:hc,audio:sb};break a}c.Ba("ombspf","l."+Ld.u+";u."+Ld.i+";o."+Ld.B+";r."+Ld.reason)}sb=void 0}Nb.set("ack","1");Nb.set("cpn",kb.clientPlaybackNonce);Nb.set("opr","1");Nb.set("oaad","0");Nb.set("oavd","0");Nb.set("por","1");sb?(kb=sb.audio,Nb.set("pvi",sb.video.join(",")),Nb.set("pai",kb.join(",")),ZA()||Nb.set("osh","1")):(Nb.set("pvi","135"),Nb.set("pai","140"),Nb.set("oad", + "0"),Nb.set("ovd","0"));c.oa();c.mj&&c.Ba("ombrs","1");t=c.Ca.V().schedule;c.Qk=new jV(c,{Ng:t,qD:c.mj});n.set("rn",""+c.Qk.requestNumber);c.Dw=n.Xd();c.Xe("ocs");ZA()?aB()?c.xhr=new iV(c.Dw,h,c.Qk,m):c.xhr=new rV(c.Dw,h,c.Qk,m):c.xhr=new sV(c.Dw,c.Qk,m);c.X.N("html5_onesie_host_probing")&&c.iE&&(c.iE.u=c,Nb=c.iE,kb=Nb.i||hE(),(sb=null===kb||void 0===kb?void 0:kb.secondary)&&Zma(Nb,sb,"o2"),kb=null===kb||void 0===kb?void 0:kb.primary)&&(kb=$ma(kb),Zma(Nb,kb,"o3"));return u.return(c.Vk)})})}; + g.k.Ks=function(){}; + g.k.iq=function(){this.Dn();this.jA.isActive()&&this.jA.start()}; + g.k.Yn=function(){this.oa();this.Dn();var a=IGa(this),b=this.xhr;if(b.qe()){var c="onesie.net";a.msg=b.qe()}else 400<=b.status?c="onesie.net.badstatus":b.Ow()?this.HK||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.Bh(new g.KD(c,!1,a)):(this.Xe("orf"),OCa(this.Qk,(0,g.Q)(),this.Qk.u,0),this.mj&&this.Ba("rqs",a));this.mj&&this.Ba("ombre","ok."+ +!c);this.Uw=!1;lX(this);uGa(this.eq)}; + g.k.EK=function(){this.oa();this.Uw=!1;if(!lX(this)){var a=IGa(this);a.timeout="1";this.Bh(new g.KD("onesie.request",!1,a))}}; + g.k.Bh=function(a){this.Vk.reject(a);this.kA.stop();this.Xe("ore");this.dispose()}; + g.k.xa=function(){var a;this.playerResponse="";null===(a=this.xhr)||void 0===a?void 0:a.abort();uGa(this.eq);this.rO.dispose();g.I.prototype.xa.call(this)}; + g.k.Dn=function(){var a=this.xhr;102400=a.start);return a}; + g.k.Xl=function(){return this.Nc.Xl()}; + g.k.Ec=function(){return this.playerState.Ec()}; + g.k.getPlayerState=function(){return this.playerState}; + g.k.getPlayerType=function(){return this.playerType}; + g.k.getPreferredQuality=function(){if(this.Ee){var a=this.Ee;a=a.videoData.Sq.compose(a.videoData.YL);a=iB(a)}else a="auto";return a}; + g.k.Gv=ba(9);g.k.isGapless=function(){return!!this.ra&&this.ra.isView()}; + g.k.setMediaElement=function(a){this.oa();if(this.ra&&a.Me()===this.ra.Me()&&(a.isView()||this.ra.isView())){if(a.isView()||!this.ra.isView())g.my(this.Dt),this.ra=a,iHa(this),this.Nc.setMediaElement(this.ra)}else{this.ra&&this.Cg();if(!this.playerState.isError()){var b=VJ(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=UJ(b,1));a.isView()&&(b=VJ(b,64));this.Ub(b)}this.ra=a;this.ra.setLoop(this.loop);this.ra.setPlaybackRate(this.playbackRate);iHa(this);this.Nc.setMediaElement(this.ra)}}; + g.k.Cg=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.oa();if(this.ra){var c=this.getCurrentTime();0this.ra.getCurrentTime()&& + this.Xa)return;break;case "resize":tHa(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ea("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.aJ&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&0===this.getCurrentTime()&&g.gj){FX(this,"safari_autoplay_disabled");return}}if(this.ra&&this.ra.Df()===b){this.ea("videoelementevent",a);b=this.playerState;if(!g.U(b,128)){c=this.Lu;var e=this.ra,f=this.X.experiments;d=b.state;e=e?e:a.target;var h=e.getCurrentTime(); + if(!g.U(b,64)||"ended"!==a.type&&"pause"!==a.type){var l=e.Gk()||1Math.abs(h-e.getDuration());h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.U(b,4)&&!MW(c,h);if("pause"===a.type&&e.Gk()||l&&h)0a-this.Dz))this.Dz=a,b!==this.qf()&&(a=this.visibility,a.i!==b&&(a.i=b,a.De()),this.Ba("airplay","rbld_"+b),kW(this)),this.ea("airplayactivechange")}; + g.k.Mv=function(a){if(this.Xa){var b=this.Xa,c=b.B,d=b.currentTime;c.Ba("sdai","adfetchdone_"+a);a&&!isNaN(c.C)&&EBa(c,d,c.C,c.B);c.i=4;g.Jq(b.Z)}}; + g.k.Qb=function(a){var b=this;a=void 0===a?!1:a;if(this.ra&&this.videoData){WFa(this.Nc,this.Ec());var c=this.getCurrentTime();this.Xa&&(g.U(this.playerState,4)&&g.KG(this.videoData)||zDa(this.Xa,c));5Math.abs(m-h)?(b.Ba("setended","ct."+h+";bh."+l+";dur."+m+";live."+ +n),n&&b.N("html5_set_ended_in_pfx_live_cfl")||(b.ra.Dp()?(b.oa(),b.seekTo(0,{Td:"videoplayer_loop"})):DS(b))):(g.$J(b.playerState)||SX(b,"progress_fix"),b.Ub(UJ(b.playerState,1)))):(m&&!n&&!p&&0n-1&&b.Ba("misspg","t:"+h.toFixed(2)+";d:"+n.toFixed(2)+";r:"+m.toFixed(2)+";bh:"+l.toFixed(2))),g.U(b.playerState,4)&&g.$J(b.playerState)&&5eI(b,8)||g.fI(b,1024))&&this.aq.stop();!g.fI(b,8)||this.videoData.qb||g.U(b.state,1024)||this.aq.start();g.U(b.state,8)&&0>eI(b,16)&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&LG(this.videoData)&&(this.Ej(this.getCurrentTime()),this.Qb(!0));g.fI(b,2)&&this.bG(!0);g.fI(b,128)&&this.pm();this.videoData.i&&this.videoData.isLivePlayback&&!this.wO&&(0>eI(b,8)?(a=this.videoData.i,a.C&&a.C.stop()): + g.fI(b,8)&&this.videoData.i.resume());this.Nc.Mc(b);this.Xb.Mc(b);if(c&&!this.isDisposed())try{for(var e=g.r(this.tA),f=e.next();!f.done;f=e.next()){var h=f.value;this.Ah.Mc(h);this.ea("statechange",h)}}finally{this.tA.length=0}}}; + g.k.xw=function(){this.videoData.isLivePlayback||this.ea("connectionissue")}; + g.k.tF=function(){this.Pb.tick("qoes")}; + g.k.bA=function(a,b,c,d){a:{var e=this.rk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);if("drm.keyerror"===a&&this.Hd&&1e.D)a="drm.sessionlimitexhausted",b=!1;else if(e.videoData.N("html5_drm_fallback_to_playready_on_retry")&&"drm.keyerror"===a&&2>e.J&&(e.J++,RX(e.Ca),1=e.u.size){var f="ns;";e.Z||(f+="nr;");e=f+="ql."+e.B.length}else e=YDa(e.u.values().next().value);d.drmp=e}Object.assign(c,(null===(a=this.Xa)||void 0===a?void 0:a.Ib())||{});Object.assign(c,(null===(b=this.ra)||void 0===b?void 0:b.Ib())||{})}this.Xb.Sd("qoe.start15s",g.JD(c)); + this.ea("loadsofttimeout")}}; + g.k.Ej=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,CX(this))}; + g.k.bG=function(a){var b=this;a=void 0===a?!1:a;if(!this.Zx){VA("att_s","player_att")||WA("att_s",void 0,"player_att");var c=new g.lua(this.videoData);if("c1a"in c.i&&!g.sM.Zd()&&(WA("att_wb",void 0,"player_att"),2===this.LC&&.01>Math.random()&&g.My(Error("Botguard not available after 2 attempts")),!a&&5>this.LC)){g.Jq(this.MC);this.LC++;return}if("c1b"in c.i){var d=wFa(this.Xb);d&&oua(c).then(function(e){e&&!b.Zx&&d?(WA("att_f",void 0,"player_att"),d(e),b.Zx=!0):WA("att_e",void 0,"player_att")}, + function(){WA("att_e",void 0,"player_att")})}else(a=g.mua(c))?(WA("att_f",void 0,"player_att"),vFa(this.Xb,a),this.Zx=!0):WA("att_e",void 0,"player_att")}}; + g.k.hd=function(a){return this.Nc.hd(void 0===a?!1:a)}; + g.k.getMinSeekableTime=function(){return this.Nc.getMinSeekableTime()}; + g.k.Uc=function(){return this.Nc?this.Nc.Uc():0}; + g.k.getStreamTimeOffset=function(){return this.Nc?this.Nc.getStreamTimeOffset():0}; + g.k.setPlaybackRate=function(a){var b=this.videoData.B&&this.videoData.B.videoInfos&&32=+c),b.dis=this.ra.getStyle("display"));(a=a?(0,g.wW)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();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.V().experiments.experimentIds.join(", ")},b=this.yb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; + g.k.getPresentingPlayerType=function(a){var b;return 1===this.appState?1:XX(this)?3:a&&(null===(b=this.Pc)||void 0===b?0:b.isAdPlaying(this.getCurrentTime()))?2:g.PM(this).getPlayerType()}; + g.k.yb=function(a){return 3===this.getPresentingPlayerType()?JM(this.Wc).ud:g.PM(this,a).getPlayerState()}; + g.k.getAppState=function(){return this.appState}; + g.k.wF=function(a){var b=this;switch(a.type){case "loadedmetadata":VA("fvb",this.Pb.timerName)||this.Pb.tick("fvb");WA("fvb",void 0,"video_to_ad");this.NA.start();g.Qb(this.Vs,function(c){XHa(b,c.id,c.MX,c.LX,!1)}); + this.Vs=[];break;case "loadstart":VA("gv",this.Pb.timerName)||this.Pb.tick("gv");WA("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!VA("l2s",this.Pb.timerName)&&2<=GD(a.target.Uf())&&this.Pb.tick("l2s");break;case "playing":g.BF&&this.NA.start(),QHa(this)&&(this.tb.Ba("hidden","1",!0),this.getVideoData().Db||(this.N("html5_new_elem_on_hidden")?(this.getVideoData().Db=1,this.wM(null),this.tb.playVideo()):$X(this,"hidden",!0)))}}; + g.k.onLoadProgress=function(a,b){this.Ta.Oa("onLoadProgress",b)}; + g.k.PV=function(){this.Ta.ea("playbackstalledatstart")}; + g.k.onVideoProgress=function(a,b){a=eY(this,a);b=nY(this,a.getCurrentTime(),a);this.Ta.Oa("onVideoProgress",b)}; + g.k.onDompaused=function(){this.Ta.Oa("onDompaused")}; + g.k.onAutoplayBlocked=function(){this.Ta.Oa("onAutoplayBlocked")}; + g.k.gV=function(){this.Ta.ea("progresssync")}; + g.k.HT=function(a){if(1===this.getPresentingPlayerType()){g.fI(a,1)&&!g.U(a.state,64)&&TX(this).isLivePlayback&&this.sb.isAtLiveHead()&&1=1E3*(this.getDuration()-1)){OHa(this);return}JHa(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Oa("onError",XNa[b.errorCode]||5);this.Ta.Oa("onDetailedError",{errorCode:b.errorCode, + errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.tD});6048E5<(0,g.Q)()-this.X.jb&&this.Ta.Oa("onReloadRequired")}b={};if(a.state.Ec()&&!g.$J(a.state)&&!VA("pbresume","ad_to_video")&&VA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);UA(b,"ad_to_video");TA("pbresume",void 0,"ad_to_video")}this.Ta.ea("applicationplayerstatechange",a)}}; + g.k.TM=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("presentingplayerstatechange",a)}; + g.k.Mh=function(a){bY(this,aK(a.state));g.U(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(BM(this,{muted:!1,volume:this.gg.volume},!1),lY(this,!1))}; + g.k.XU=function(a){a.state.Ec()&&!g.$J(a.state)&&(ava(this.Wc),g.my(this.QE))}; + g.k.DT=function(a,b,c){"newdata"===a&&UX(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId})}; + g.k.uw=function(){this.Ta.Oa("onPlaybackAudioChange",this.Ta.getAudioTrack().Ac.name)}; + g.k.Cw=function(a){var b=this.tb.getVideoData();a===b&&this.Ta.Oa("onPlaybackQualityChange",a.u.video.quality)}; + g.k.onVideoDataChange=function(a,b,c){this.oa("on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId);b===this.sb&&(this.X.Ge=c.oauthToken);this.getVideoData().enableServerStitchedDai&&!this.Pc?this.Pc=new g.IS(this.Ta,this.X,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Pc&&(this.Pc=null);if("newdata"===a)this.oa(),kN(this.Wc,2),this.Ta.ea("videoplayerreset",b);else{if(!this.ra)return;if("dataloaded"===a)if(this.tb===this.sb)if(jF(c.C,c.hI),this.oa(),this.sb.getPlayerState().isError())this.oa(); + else{var d=XX(this);TX(this).isLoaded();d&&this.Tk(6);LHa(this);d||(d=lN(this.Wc))&&!d.created&&iN(this.Wc)&&d.create()}else LHa(this);if(1===b.getPlayerType()&&(this.X.Y&&dIa(this),this.getVideoData().isLivePlayback&&!this.X.vl&&this.Le("html5.unsupportedlive","DEVICE_FALLBACK"),c.isLoaded())){if(c.dh||c.CB||c.Mq||c.S.focEnabled||c.S.rmktEnabled||this.getVideoData().vl)d=this.getVideoData(),qY(this,"part2viewed",1,0x8000000000000),qY(this,"engagedview",Math.max(1,1E3*d.Mb),0x8000000000000),d.isLivePlayback|| + (d=1E3*d.lengthSeconds,qY(this,"videoplaytime25",.25*d,d),qY(this,"videoplaytime50",.5*d,d),qY(this,"videoplaytime75",.75*d,d),qY(this,"videoplaytime100",d,0x8000000000000),qY(this,"conversionview",d,0x8000000000000));if(c.hasProgressBarBoundaries()){var e;d=Number(null===(e=this.getVideoData().progressBarEndPosition)||void 0===e?void 0:e.utcTimeMillis)/1E3;!isNaN(d)&&(e=this.getIngestionTime())&&(e-=this.getCurrentTime(),e=1E3*(d-e),d=this.zA.progressEndBoundary,(null===d||void 0===d?void 0:d.start)!== + e&&(d&&this.GA([d]),e=new g.lA(e,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.sb.addCueRange(e),this.zA.progressEndBoundary=e))}}this.Ta.ea("videodatachange",a,c,b.getPlayerType())}this.Ta.Oa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.OA();if(b=c.Xw){if(a=this.In,c=c.clientPlaybackNonce,a.clientPlaybackNonce!==c){a.clientPlaybackNonce=c;c=b;b=hK();var f=void 0===f?{}:f;Object.values(qNa).includes(c)||(g.My(new g.dw("createClientScreen() called with a non-page VE", + c)),c=83769);f.isHistoryNavigation||b.i.push({rootVe:c,key:f.key||""});b.D=[];b.K=[];f.LJ?mra(b,c,f):lra(b,c,f);oBa(a)}}else oBa(this.In)}; + g.k.Cr=function(){fY(this,null);this.Ta.Oa("onPlaylistUpdate")}; + g.k.bM=function(a){var b=a.getId(),c=TX(this);"part2viewed"===b?(c.qI&&g.av(c.qI),c.CB&&wY(this,c.CB),c.Mq&&xY(this,c.Mq)):"conversionview"===b?this.sb.At():"engagedview"===b&&g.av(c.dh);if(c.sI){var d=a.getId();d=Qs(c.sI,{label:d});g.av(d)}switch(b){case "videoplaytime25":c.nI&&wY(this,c.nI);c.EB&&xY(this,c.EB);c.zI&&g.av(c.zI);break;case "videoplaytime50":c.oI&&wY(this,c.oI);c.FB&&xY(this,c.FB);c.BI&&g.av(c.BI);break;case "videoplaytime75":c.pI&&wY(this,c.pI);c.HB&&xY(this,c.HB);c.DI&&g.av(c.DI); + break;case "videoplaytime100":c.jI&&wY(this,c.jI),c.DB&&xY(this,c.DB),c.uI&&g.av(c.uI)}(b=this.getVideoData().vl)&&VHa(b,a.getId())&&VHa(b,a.getId()+"gaia");this.sb.removeCueRange(a)}; + g.k.fV=function(a){delete this.zA[a.getId()];this.sb.removeCueRange(a);var b;a:{a=this.getVideoData();var c,d,e,f,h,l,m,n,p,q,t,u,x,y=(null===(h=null===(f=null===(e=null===(d=null===(c=a.watchNextResponse)||void 0===c?void 0:c.contents)||void 0===d?void 0:d.singleColumnWatchNextResults)||void 0===e?void 0:e.autoplay)||void 0===f?void 0:f.autoplay)||void 0===h?void 0:h.sets)||(null===(q=null===(p=null===(n=null===(m=null===(l=a.watchNextResponse)||void 0===l?void 0:l.contents)||void 0===m?void 0:m.twoColumnWatchNextResults)|| + void 0===n?void 0:n.autoplay)||void 0===p?void 0:p.autoplay)||void 0===q?void 0:q.sets);if(y)for(c=g.r(y),d=c.next();!d.done;d=c.next())if(d=d.value,d=d.autoplayVideo||(null===(t=null===(b=d.autoplayVideoRenderer)||void 0===b?void 0:b.autoplayEndpointRenderer)||void 0===t?void 0:t.endpoint),(null===(u=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===u?void 0:u.videoId)===a.videoId&&(null===(x=null===d||void 0===d?void 0:d.watchEndpoint)||void 0===x?0:x.continuePlayback)){b=d;break a}b=null}t= + null===b||void 0===b?void 0:b.watchEndpoint;this.N("enable_linear_player_handling")&&t&&this.Ta.Oa("onPlayVideo",{sessionData:{autonav:"1",itct:null===b||void 0===b?void 0:b.clickTrackingParams},videoId:t.videoId,watchEndpoint:t})}; + g.k.Tk=function(a){a!==this.appState&&(this.oa(),2===a&&1===this.getPresentingPlayerType()&&(bY(this,-1),bY(this,5)),this.appState=a,this.Ta.ea("appstatechange",a))}; + g.k.Le=function(a,b,c,d){this.sb.Kf(a,b,c,d)}; + g.k.Uk=ba(7);g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.PM(this,a);if(!c)return!1;a=dY(this,c);c=eY(this,c);return a!==c?a.isAtLiveHead(nY(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; + g.k.vn=function(){var a=g.PM(this,void 0);return a?dY(this,a).vn():0}; + g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.PM(this,d))2===this.appState&&jY(this),this.Qd(d)?this.Pc?this.Pc.seekTo(a,b,c):this.Fd.seekTo(a,b,c):d.seekTo(a,{pO:!b,qO:c,Td:"application"})}; + g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; + g.k.fA=function(){this.Ta.Oa("SEEK_COMPLETE")}; + g.k.FV=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.U(a.getPlayerState(),512)||jY(this):this.Ta.Oa("SEEK_TO",b)}; + g.k.onAirPlayActiveChange=function(){this.Ta.ea("airplayactivechange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayActiveChange",this.Ta.qf())}; + g.k.onAirPlayAvailabilityChange=function(){this.Ta.ea("airplayavailabilitychange");this.X.N("html5_external_airplay_events")&&this.Ta.Oa("onAirPlayAvailabilityChange",this.Ta.Uv())}; + g.k.showAirplayPicker=function(){var a;null===(a=this.tb)||void 0===a?void 0:a.zo()}; + g.k.cF=function(){this.Ta.ea("beginseeking")}; + g.k.iF=function(){this.Ta.ea("endseeking")}; + g.k.getStoryboardFormat=function(a){return(a=g.PM(this,a))?dY(this,a).getVideoData().getStoryboardFormat():null}; + g.k.Gh=function(a){return(a=g.PM(this,a))?dY(this,a).getVideoData().Gh():null}; + g.k.Qd=function(a){if(a=a||this.tb){a=a.getVideoData();if(this.Pc)a=a===this.Pc.Ca.getVideoData();else a:{var b=this.Fd;if(a===b.u.getVideoData()&&b.i.length)a=!0;else{b=g.r(b.i);for(var c=b.next();!c.done;c=b.next())if(a.Cc===c.value.Cc){a=!0;break a}a=!1}}if(a)return!0}return!1}; + g.k.yr=function(a,b,c,d,e,f){var h;this.oa();if(!this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")){var l=this.getVideoData().enableServerStitchedDai;null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attl."+(null!=this.Pc)+"_"+l+"_"+XX(this))}a=this.Pc?GAa(this.Pc,a,b,c,d,e,f):WAa(this.Fd,a,b,c,d,e);this.oa();return a}; + g.k.Sv=function(a,b,c,d,e,f){var h;this.X.N("web_player_ssdai_add_to_timeline_logging_killswitch")||(null===(h=this.tb)||void 0===h?void 0:h.Ba("sdai","app.attlr."+(null!=this.Pc)));this.Pc&&(GAa(this.Pc,a,b,c,d,e,f),this.oa());return""}; + g.k.Xn=function(a){var b;null===(b=this.Pc)||void 0===b?void 0:b.Xn(a)}; + g.k.lp=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;this.Pc?this.X.N("web_player_ssdai_prevent_clearing_timeline_killswitch")&&QS(this.Pc,a,b):cT(this.Fd,a,b)}; + g.k.zt=function(a,b,c){if(this.Pc){var d=this.Pc,e=c;c=null;for(var f=g.r(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){c=h;break}c?(d.oa(),void 0===e&&(e=c.pd),a=c,d.oa(),a.durationMs=b,a.pd=e,d.X.N("web_player_ssdai_prevent_updating_ad_cuerange_killswitch")&&JAa(d,c)):d.ge("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Fd;e=null;f=g.r(d.i);for(h=f.next();!h.done;h=f.next())if(h=h.value,h.Cc===a){e=h;break}e?(d.oa(),void 0===c&&(c=e.pd),bBa(d,e,b,c)):d.ge("e.InvalidTimelinePlaybackId timelinePlaybackId="+ + a)}}; + g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Qd();a=new oG(this.X,a);d&&(a.Cc=d);c=void 0===c?Infinity:c;this.oa();b=b||this.tb.getPlayerType();var e;this.X.N("html5_gapless_preloading")&&(e=mY(this,b,a,!0));e||(e=this.Fl(b,a));2===b&&this.sb&&(a=e.getVideoData(),this.sb.Qs(a.clientPlaybackNonce,a.uc||"",a.breakType||0,a.ye));this.Fy(e,c)}; + g.k.Fy=function(a,b,c){var d=this;c=void 0===c?0:c;var e=g.PM(this);e&&(dY(this,e).wO=!0);wAa(this.Et,a,b,c).then(function(){d.Ta.Oa("onQueuedVideoLoaded")},function(){})}; + g.k.ys=function(){return this.Et.ys()}; + g.k.clearQueue=function(){this.oa();this.Et.clearQueue()}; + g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f,h=!1,l=new oG(this.X,a),m=null!==(f=l.vb)&&void 0!==f?f:"";this.Pb.timerName=m;if(!this.N("web_player_load_video_context_killswitch")&&e){for(;l.oi.length&&l.oi[0].isExpired();)l.oi.shift();h=l.oi.length-1;h=0Math.random()&&g.Zv("autoplayTriggered",{intentional:this.ZK});this.AL=!1;this.Ta.Oa("onPlaybackStartExternal");this.X.N("mweb_client_log_screen_associated");(function(){var c=g.Ey(a.EN||(a.Je()?3:0));if(c){var d={cpn:a.getVideoData().clientPlaybackNonce,csn:c};if(a.X.N("web_playback_associated_ve")&& + a.getVideoData().Ya){var e=g.Ay(a.getVideoData().Ya);g.Ry(c,e,void 0);d.playbackVe=e.getAsJson()}a.X.N("kevlar_playback_associated_queue")&&a.getVideoData().queueInfo&&(d.queueInfo=a.getVideoData().queueInfo);c={};a.N("web_playback_associated_log_ctt")&&a.getVideoData().jb&&(c.cttAuthInfo={token:a.getVideoData().jb,videoId:a.getVideoData().videoId});g.Zv("playbackAssociated",d,c)}})(); + RA("player_att");if(this.N("web_player_inline_botguard")){var b=this.getVideoData().botguardData;b&&(this.N("web_player_botguard_inline_skip_config_killswitch")&&(zs("BG_I",b.interpreterScript),zs("BG_IU",b.interpreterUrl),zs("BG_P",b.program)),g.vF(this.X)||"MWEB"===this.X.deviceParams.c?Ou(Ru(),function(){kY(a)}):kY(this))}this.OA()}; + g.k.mF=function(){this.Ta.ea("internalAbandon");this.N("html5_ad_module_cleanup_killswitch")||oY(this)}; + g.k.jM=function(a){a=a.i;!isNaN(a)&&0window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.ra.ov())}; + g.k.yU=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ea("liveviewshift",a)}; + g.k.playVideo=function(a){this.oa();if(a=g.PM(this,a))2===this.appState?jY(this):(null!=this.Ti&&this.Ti.Ab&&this.Ti.start(),g.U(a.getPlayerState(),2)?this.seekTo(0):a.playVideo())}; + g.k.pauseVideo=function(a){(a=g.PM(this,a))&&a.pauseVideo()}; + g.k.stopVideo=function(){this.oa();var a=this.sb.getVideoData(),b=new oG(this.X,{video_id:a.tC||a.videoId,oauth_token:a.oauthToken});b.Z=g.pc(a.Z);this.cancelPlayback(6);sY(this,b,1);null!=this.Ti&&this.Ti.stop()}; + g.k.cancelPlayback=function(a,b){this.oa();wx(this.Fo);this.Fo=0;var c=g.PM(this,b);c?(this.X.N("html5_high_res_logging")&&c.Ba("canclpb","r."+a),1===this.appState||2===this.appState?this.oa():(c===this.tb&&(this.oa(),kN(this.Wc,a)),1===b&&(this.X.N("html5_stop_video_in_cancel_playback")&&c.stopVideo(),oY(this)),c.pm(),ZX(this,"cuerangesremoved",c.Ll()),c.Ah.reset(),this.Et&&c.isGapless()&&(c.Cg(!0),c.setMediaElement(this.ra)))):this.oa()}; + g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.PM(this,b))&&this.X.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()}; + g.k.Eh=function(a){var b=g.PM(this,void 0);return b&&this.X.enabledEngageTypes.has(a.toString())?b.Eh(a):null}; + g.k.updatePlaylist=function(){tF(this.X)?gY(this):g.XE(this.X)&&hY(this);this.Ta.Oa("onPlaylistUpdate")}; + g.k.setSizeStyle=function(a,b){this.ON=a;this.vE=b;this.Ta.ea("sizestylechange",a,b);this.template.resize()}; + g.k.isWidescreen=function(){return this.vE}; + g.k.Je=function(){return this.visibility.Je()}; + g.k.isInline=function(){return this.visibility.isInline()}; + g.k.ws=function(){return this.visibility.ws()}; + g.k.rs=function(){return this.visibility.rs()}; + g.k.tE=function(){return this.ON}; + g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return JM(this.Wc).getAdState();if(!this.Qd()){var a=lN(this.wb());if(a)return a.getAdState()}return-1}; + g.k.sV=function(a){var b=this.template.getVideoContentRect();Ql(this.uL,b)||(this.uL=b,this.tb&&GX(this.tb),this.sb&&this.sb!==this.tb&&GX(this.sb),1===this.Ur()&&this.Ew&&bIa(this,!0));this.BE&&g.dg(this.BE,a)||(this.Ta.ea("appresize",a),this.BE=a)}; + g.k.sf=function(){return this.Ta.sf()}; + g.k.KV=function(){2===this.getPresentingPlayerType()&&this.Fd.isManifestless()&&!this.N("web_player_manifestless_ad_signature_expiration_killswitch")?aBa(this.Fd):(this.Pc&&QS(this.Pc),$X(this,"signature",void 0,!0))}; + g.k.wM=function(){this.Cg();YX(this)}; + g.k.rV=function(a){yS(a,this.ra.Ep())}; + g.k.MU=function(a){"manifest.net.badstatus"===a.errorCode&&"401"===a.details.rc&&this.Ta.Oa("onPlayerRequestAuthFailed")}; + g.k.xw=function(){this.Ta.Oa("CONNECTION_ISSUE")}; + g.k.zw=function(a){this.Ta.ea("heartbeatparams",a)}; + g.k.LA=function(a){this.Ta.Oa("onAutonavChangeRequest",1!==a)}; + g.k.jd=function(){return this.ra}; + g.k.setBlackout=function(a){this.X.Hb=a;this.tb&&(this.tb.Iq(),this.X.Y&&dIa(this))}; + g.k.setAccountLinkState=function(a){var b=g.PM(this);b&&(b.getVideoData().rI=a,b.Iq())}; + g.k.updateAccountLinkingConfig=function(a){var b=g.PM(this);if(b){var c=b.getVideoData();c.accountLinkingConfig&&(c.accountLinkingConfig.linked=a);this.Ta.ea("videodatachange","dataupdated",c,b.getPlayerType())}}; + g.k.OU=function(){var a=g.PM(this);if(a){var b=!this.Ta.Xv();(a.GK=b)||a.aq.stop();if(a.videoData.i)if(b)a.videoData.i.resume();else{var c=a.videoData.i;c.C&&c.C.stop()}a.X.N("html5_suspend_loader")&&a.Xa&&(b?a.Xa.resume():NX(a,!0));a.X.N("html5_fludd_suspend")&&(g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Ub(VJ(a.playerState,512)):a.Ub(UJ(a.playerState,512)));a=a.Xb;a.qoe&&(a=a.qoe,g.qW(a,g.CS(a.i),"stream",[b?"A":"I"]))}}; + g.k.onLoadedMetadata=function(){this.Ta.Oa("onLoadedMetadata")}; + g.k.onDrmOutputRestricted=function(){this.Ta.Oa("onDrmOutputRestricted")}; + g.k.KC=function(){this.N("html5_skip_empty_load")&&(RNa=!0);UNa=this.N("html5_ios_force_seek_to_zero_on_stop");SNa=this.N("html5_ios7_force_play_on_stall");TNa=this.N("html5_ios4_seek_above_zero");this.N("html5_mediastream_applies_timestamp_offset")&&(OU=!0);this.N("html5_dont_override_default_sample_desc_index")&&(Ska=!0);if(this.N("html5_androidtv_quic")){var a=window;"h5vcc"in a&&"settings"in a.h5vcc&&a.h5vcc.settings.set("QUIC",1)}Error.stackTraceLimit=25;var b=g.rE(this.X.experiments,"html5_idle_rate_limit_ms"); + b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}})}; + g.k.HE=function(){this.ZK=!0}; + g.k.xa=function(){this.Wc.dispose();this.Fd.dispose();this.Pc&&this.Pc.dispose();this.sb.dispose();this.Cg();g.ve(dc(this.zx),this.playlist);wx(this.Fo);this.Fo=0;g.I.prototype.xa.call(this)}; + g.k.oa=function(){}; + g.k.N=function(a){return this.X.N(a)}; + g.k.UA=function(){return this.gx}; + g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)}; + g.k.setScreenLayer=function(a){this.EN=a}; + g.k.seekToChapterWithAnimation=function(a){var b,c,d=null===(b=CM(this.wb()))||void 0===b?void 0:b.wv(),e=null===(c=this.getVideoData())||void 0===c?void 0:c.ql;if(this.N("web_player_seek_chapters_by_shortcut")&&e&&d instanceof g.NN&&aq.start&&dG;G++)if(y= + (y<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(u.charAt(G)),4==G%5){for(var F="",C=0;6>C;C++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(y&31)+F,y>>=5;z+=F}u=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)}else u="";l={video_id_and_cpn:c.videoId+" / "+u,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",drm_style:p?"":"display:none",drm:p,debug_info:d,bandwidth_style:t,network_activity_style:t,network_activity_bytes:m.toFixed(0)+ + " KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1a)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":f="Optimized for Normal Latency";break;case "LOW":f="Optimized for Low Latency";break;case "ULTRALOW":f="Optimized for Ultra Low Latency";break;default:f="Unknown Latency Setting"}else f= + c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=f;(a=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+a.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=kT(h,"bandwidth");l.network_activity_samples=kT(h,"networkactivity");l.live_latency_samples=kT(h,"livelatency");l.buffer_health_samples=kT(h,"bufferhealth");c.N("woffle_orchestration")&& + (b=g.ZG(c),c.cotn||b)&&(l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b);l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";zG(c,"web_player_release_debug")?(l.release_name="youtube.player.web_20211010_0_RC0",l.release_style=""):l.release_style="display:none";return l}; + g.k.getVideoUrl=function(a,b,c,d,e){return this.Sb&&this.Sb.postId?(a=this.X.getVideoUrl(a),a=yi(a,"v"),a.replace("/watch","/clip/"+this.Sb.postId)):this.X.getVideoUrl(a,b,c,d,e)}; + var s3={};g.Fa("yt.player.Application.create",g.WX.create,void 0);g.Fa("yt.player.Application.createAlternate",g.WX.create,void 0);Wia(Hy(),{fm:[{hw:/Unable to load player module/,weight:5},{hw:/Failed to fetch/,weight:500},{hw:/XHR API fetch failed/,weight:10},{hw:/JSON parsing failed after XHR fetch/,weight:10},{hw:/Retrying OnePlatform request/,weight:10}]});var pOa=g.Ga("ytcsi.tick");pOa&&pOa("pe");var qOa={v8:"replaceUrlMacros",Z2:"isExternalShelfAllowedFor",g7:"onAboutThisAdPopupClosed"};yY.prototype.xk=function(){return"adLifecycleCommand"}; + yY.prototype.handle=function(a){var b=this;switch(a.action){case "END_LINEAR_AD":g.ah(function(){b.controller.Ym()}); + break;case "END_LINEAR_AD_PLACEMENT":g.ah(function(){b.controller.pk()}); + break;case "FILL_ABOVE_FEED_SLOT":g.ah(function(){a.elementId&&b.controller.Jy(a.elementId)}); + break;case "CLEAR_ABOVE_FEED_SLOT":g.ah(function(){b.controller.sy()})}}; + yY.prototype.Sl=function(a){this.handle(a)};zY.prototype.xk=function(){return"clearCueRangesCommand"}; + zY.prototype.handle=function(){var a=this.gD();g.ah(function(){a.If(Array.from(a.Xo))})}; + zY.prototype.Sl=function(a){this.handle(a)};AY.prototype.xk=function(){return"muteAdEndpoint"}; + AY.prototype.handle=function(a){gIa(this,a)}; + AY.prototype.Sl=function(a,b){gIa(this,a,b)};BY.prototype.xk=function(){return"openPopupAction"}; + BY.prototype.handle=function(){}; + BY.prototype.Sl=function(a){this.handle(a)};CY.prototype.xk=function(){return"pingingEndpoint"}; + CY.prototype.handle=function(){}; + CY.prototype.Sl=function(a){this.handle(a)};DY.prototype.xk=function(){return"urlEndpoint"}; + DY.prototype.handle=function(a,b){b=g.Dq(a.url,b);var c,d,e;if((null===(c=a.browserConversionApiData)||void 0===c?0:c.impressiondata)&&(null===(d=a.browserConversionApiData)||void 0===d?0:d.conversiondestination)){if(null===(e=a.browserConversionApiData)||void 0===e?0:e.originTrialToken)c=document.createElement("meta"),c.setAttribute("http-equiv","origin-trial"),c.setAttribute("content",a.browserConversionApiData.originTrialToken),document.head.appendChild(c);a={attributionSourceEventId:a.browserConversionApiData.impressiondata, + attributionDestination:a.browserConversionApiData.conversiondestination,attributionReportTo:a.browserConversionApiData.reportingorigin,attributionExpiry:Number(a.browserConversionApiData.impressionexpiry)||void 0}}else a=void 0;g.XL(b,void 0,void 0,a)}; + DY.prototype.Sl=function(){T("Trying to handle UrlEndpoint with no macro in controlflow")};EY.prototype.xk=function(){return"adPingingEndpoint"}; + EY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Yo.send(a,b,c)}; + EY.prototype.Sl=function(a,b){YJa(this.Va.get(),a,b,void 0)};FY.prototype.xk=function(){return"changeEngagementPanelVisibilityAction"}; + FY.prototype.handle=function(a){this.I.Oa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})}; + FY.prototype.Sl=function(a){this.handle(a)};GY.prototype.xk=function(){return"loggingUrls"}; + GY.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,this.Oh.send(d.baseUrl,b,c,d.headers)}; + GY.prototype.Sl=function(a,b){a=g.r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,YJa(this.Va.get(),c.baseUrl,b,c.headers)};g.w(iIa,g.I);var uIa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var DIa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED", + "trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);var mIa=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),kIa=new Map([["normal",{Ts:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Ts:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], + ["muted",{Ts:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Ts:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Ts:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",kt:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}]]);g.w(PY,g.I);g.k=PY.prototype;g.k.RD=function(a,b){return this.i.RD(a,b)}; + g.k.Ai=function(a,b){LZ(this.dc,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b,void 0);for(var c=g.r(this.Pd),d=c.next();!d.done;d=c.next())d.value.Ai(a,b)}; + g.k.xf=function(a){if(TY(this.i,a)){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.i.xf(a);for(var b=g.r(this.Pd),c=b.next();!c.done;c=b.next())c.value.xf(a);qIa(this,a)}}; + g.k.yf=function(a){if(TY(this.i,a)){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.i.yf(a);for(var b=g.r(this.Pd),c=b.next();!c.done;c=b.next())c.value.yf(a);TY(this.i,a)&&UY(this.i,a).D&&RY(this,a,!1)}}; + g.k.gA=function(a){DJ(this.dc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);TY(this.i,a)&&(this.i.gA(a),RY(this,a,!1))}; + g.k.Lc=function(a,b){if(TY(this.i,a)){VY(this.dc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.r(this.Pd),d=c.next();!d.done;d=c.next())d.value.Lc(a,b)}}; + g.k.Xc=function(a,b,c){if(TY(this.i,a)){VY(this.dc,lIa(c),a,b);this.i.Xc(a,b);for(var d=g.r(this.Pd),e=d.next();!e.done;e=d.next())e.value.Xc(a,b,c);(c=hZ(this.i,a))&&b.layoutId===c.layoutId&&AIa(this,a,!1)}}; + g.k.wf=function(a,b,c){T(c,a,b,void 0,c.Zo);RY(this,a,!0)}; + g.k.xa=function(){var a=CIa(this.i);a=g.r(a);for(var b=a.next();!b.done;b=a.next())RY(this,b.value,!1);g.I.prototype.xa.call(this)};BIa.prototype.isActive=function(){switch(this.i){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(WY,Sa);g.w(eZ,Sa);g.w(kZ,g.I);g.k=kZ.prototype;g.k.RD=function(a,b){b=gZ(this,a+"_"+b);a=[];b=g.r(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a}; + g.k.Nh=function(a){a=UY(this,a);"not_scheduled"!==a.i&&iZ(a.slot,a.i,"onSlotScheduled");a.i="scheduled"}; + g.k.tv=function(a){a=UY(this,a);a.C="fill_requested";a.K.tv()}; + g.k.xf=function(a){a=UY(this,a);"enter_requested"!==a.i&&iZ(a.slot,a.i,"onSlotEntered");a.i="entered"}; + g.k.gA=function(a){UY(this,a).C="fill_canceled"}; + g.k.yf=function(a){a=UY(this,a);"exit_requested"!==a.i&&iZ(a.slot,a.i,"onSlotExited");a.i="scheduled"}; + g.k.Xc=function(a,b){a=UY(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.i&&iZ(a.slot,a.i,"onLayoutExited"),a.i="entered")};g.w(oZ,g.I);oZ.prototype.B=function(){return this.u};g.w(pZ,g.I);pZ.prototype.get=function(){this.isDisposed()&&T("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.i});this.i||(this.i=this.u());return this.i};g.w(KZ,g.I);g.w(NZ,g.I);NZ.prototype.onCueRangeEnter=function(){}; + NZ.prototype.onCueRangeExit=function(a){var b=this,c=this.i.get(a);c&&(this.i.delete(a),this.u.get().removeCueRange(a),Uz(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=aA(d.u.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign(Object.assign({},c),{slotId:d,Vb:c.Vb?NJa(c.slotId,d,c.Vb):void 0,qc:OJa(c.slotId,d,c.qc),pc:OJa(c.slotId,d,c.pc)})]},c.slotId))}; + NZ.prototype.hh=function(){for(var a=g.r(this.i.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.u.get().removeCueRange(b);this.i.clear()}; + NZ.prototype.wj=function(){};g.w(OZ,g.I);g.k=OZ.prototype;g.k.Nh=function(){}; + g.k.Cj=function(){}; + g.k.xf=function(){}; + g.k.Bj=function(){}; + g.k.yf=function(){}; + g.k.Lk=function(){}; + g.k.Mk=function(){}; + g.k.yj=function(a,b){this.i.has(a)||this.i.set(a,new Set);this.i.get(a).add(b)}; + g.k.zj=function(a,b){this.Ki.has(a)&&this.Ki.get(a)===b&&T("Unscheduled a Layout that is currently entered.",a,b);if(this.i.has(a)){var c=this.i.get(a);c.has(b)?(c.delete(b),0===c.size&&this.i.delete(a)):T("Trying to unscheduled a Layout that was not scheduled.",a,b)}else T("Trying to unscheduled a Layout that was not scheduled.",a,b)}; + g.k.Lc=function(a,b){this.Ki.set(a,b)}; + g.k.Xc=function(a){this.Ki.delete(a)}; + g.k.Ai=function(){};ZZ.prototype.clone=function(a){var b=this;return new ZZ(function(){return b.triggerId},a)};$Z.prototype.clone=function(a){var b=this;return new $Z(function(){return b.triggerId},a)};a_.prototype.clone=function(a){var b=this;return new a_(function(){return b.triggerId},a)};b_.prototype.clone=function(a){var b=this;return new b_(function(){return b.triggerId},a)};c_.prototype.clone=function(a){var b=this;return new c_(function(){return b.triggerId},a)};g.w(f_,g.I);f_.prototype.logEvent=function(a){LZ(this,a)};g.w(h_,g.I);g.k=h_.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.hh=function(a,b,c,d,e,f,h){var l;if(""===a)T("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.V().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.i||c){this.i=a;this.Ga.get().hh(a,b,c,d,e,f,h);this.C.get().hh(a,b,c,d,e,f,h);null===(l=this.u)||void 0===l?void 0:l.get().hh(a,b,c,d,e,f,h);this.B.hh(a,b,c,d,e,f,h);for(var m=g.r(this.listeners),n=m.next();!n.done;n=m.next())n.value.hh(a,b,c,d,e,f,h)}}; + g.k.mF=function(){this.i&&this.wj(this.i)}; + g.k.wj=function(a){this.i=void 0;for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.wj(a)};g.w(i_,g.I);i_.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.i.has(a)?T("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new UJa(a,b,c,d,f),this.i.set(a.id,{Cd:a,listener:e,Kj:h}),this.I.Ad([a],h))}; + i_.prototype.removeCueRange=function(a){var b=this.i.get(a);b?(this.I.If([b.Cd],b.Kj),this.i.delete(a)):T("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; + i_.prototype.onCueRangeEnter=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeEnter(a.id)}; + i_.prototype.onCueRangeExit=function(a){if(this.i.has(a.id))this.i.get(a.id).listener.onCueRangeExit(a.id)}; + g.w(UJa,g.lA);j_.prototype.Ci=function(a){this.I.Ci(a)}; + j_.prototype.Oa=function(a,b){for(var c=[],d=1;d=this.u.length)throw new eZ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,b.init(),aZ(this.B,this.slot,b.Kb())}; + g.k.oo=function(){for(var a=g.r(this.u),b=a.next();!b.done;b=a.next())b=b.value,Fqa(this.B,this.slot,b.Kb()),b.release()}; + g.k.lq=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.lq()}; + g.k.xq=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.xq()}; + g.k.Bw=function(a,b){var c=this.u[this.i];b.layoutId!==d0(c,a,b)?T("onSkipRequested for a PlayerBytes layout that is not currently active",c.Dd(),c.Kb(),{requestingSlot:a,requestingLayout:b}):e0(this,c.Dd(),c.Kb(),"skipped")}; + g.k.Co=function(){-1===this.i&&uKa(this)}; + g.k.RV=function(a,b){bZ(this.B,a,b)}; + g.k.Do=function(a,b){var c=this;this.i!==this.u.length?(a=this.u[this.i],a.gf(a.Kb(),b),this.D=function(){c.callback.Xc(c.slot,c.layout,b)}):this.callback.Xc(this.slot,this.layout,b)}; + g.k.Lc=function(a,b){var c=this.u[this.i];c&&c.Lc(a,b)}; + g.k.Xc=function(a,b,c){b0.prototype.Xc.call(this,a,b,c);var d=this.u[this.i];d&&d.Xc(a,b,c)}; + g.k.GL=function(){var a=this.u[this.i];a&&a.lz()}; + g.k.xi=function(a){var b=this.u[this.i];b&&b.xi(a)}; + g.k.EM=function(a){var b=this.u[this.i];b&&b.Aj(a)}; + g.k.wf=function(a,b){-1===this.i&&(this.callback.Lc(this.slot,this.layout),this.i++);var c=this.u[this.i];c?c.mw(a,b):T("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.i),layoutId:this.Kb().layoutId})}; + g.k.onFullscreenToggled=function(a){var b=this.u[this.i];if(b)b.onFullscreenToggled(a)}; + g.k.yg=function(a){var b=this.u[this.i];b&&b.yg(a)}; + g.k.uj=function(a){var b=this.u[this.i];b&&b.uj(a)}; + g.k.onVolumeChange=function(){var a=this.u[this.i];if(a)a.onVolumeChange()}; + g.k.TV=function(a,b,c){e0(this,a,b,c)}; + g.k.SV=function(a,b){e0(this,a,b,"error")};g.w(j0,g.I);g.k=j0.prototype;g.k.Dd=function(){return this.slot}; + g.k.Kb=function(){return this.layout}; + g.k.init=function(){var a=X(this.layout.Ia,"metadata_type_video_length_seconds");p_(this.ya.get(),this.layout.layoutId,a,this);v_(this.Va.get(),this);this.Hn()}; + g.k.release=function(){q_(this.ya.get(),this.layout.layoutId);w_(this.Va.get(),this);this.oo()}; + g.k.lq=function(){}; + g.k.xq=function(){}; + g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):(this.u="rendering_start_requested",Cpa(this.La.get(),1)?(this.Mu(!1),this.K(-1),this.Co(a)):this.mw("ui_unstable",new WY("Failed to render media layout because ad ui unstable.")))}; + g.k.Lc=function(a,b){var c,d,e;b.layoutId===this.layout.layoutId&&(this.u="rendering",Q_(this.i,"impression"),Q_(this.i,"start"),this.Ga.get().isMuted()&&(Q_(this.i,"mute"),a=(null===(c=i0(this))||void 0===c?void 0:c.muteCommands)||[],this.B.get().Id(a,this.layout.layoutId)),this.Ga.get().isFullscreen()&&(this.i.Bf("fullscreen"),a=(null===(d=i0(this))||void 0===d?void 0:d.fullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)),this.Z=this.Ga.get().isMuted(),k0(this,"unmuted_impression"), + k0(this,"unmuted_start"),this.Ga.get().isFullscreen()&&m0(this,"unmuted_fullscreen"),Vqa(this.fd.get()),this.K(1),this.rM(),a=(null===(e=i0(this))||void 0===e?void 0:e.impressionCommands)||[],this.B.get().Id(a,this.layout.layoutId))}; + g.k.mw=function(a,b,c){this.Ja={rB:3,yx:"load_timeout"===a?402:400,errorMessage:b.message};var d;X(this.layout.Ia,"METADATA_TYPE_LOG_PLAYER_TYPE_ON_ERROR")&&T("There is a player error in this survey ads",this.Dd(),this.Kb(),{playerType:String(c)});Q_(this.i,"error");k0(this,"unmuted_error");a=(null===(d=i0(this))||void 0===d?void 0:d.errorCommands)||[];this.B.get().Id(a,this.layout.layoutId);this.callback.wf(this.slot,this.layout,b)}; + g.k.lz=function(){this.S()}; + g.k.yK=function(){var a;if("rendering"===this.u){this.i.Bf("pause");m0(this,"unmuted_pause");var b=(null===(a=i0(this))||void 0===a?void 0:a.pauseCommands)||[];this.B.get().Id(b,this.layout.layoutId);this.K(2)}}; + g.k.zK=function(){var a;if("rendering"===this.u){this.i.Bf("resume");m0(this,"unmuted_resume");var b=(null===(a=i0(this))||void 0===a?void 0:a.resumeCommands)||[];this.B.get().Id(b,this.layout.layoutId)}}; + g.k.gf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new WY("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType))):"rendering_stop_requested"!==this.u&&(this.u="rendering_stop_requested",this.Y=b,this.Do(a,b))}; + g.k.Xc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.u="not_rendering",this.Y=void 0,this.Na.get().I.V().N("html5_check_ad_position_and_reset_on_new_ad_playback_csi")?(a="normal"!==c||this.position+1===this.Ka)&&this.Mu(a):this.Mu(!0),this.sM(c),this.K(0),c){case "abandoned":var d;if(S_(this.i,"impression")){Q_(this.i,"abandon");k0(this,"unmuted_abandon");var e=(null===(d=i0(this))||void 0===d?void 0:d.abandonCommands)||[];this.B.get().Id(e,this.layout.layoutId)}break;case "normal":Q_(this.i, + "complete");k0(this,"unmuted_complete");d=(null===(e=i0(this))||void 0===e?void 0:e.completeCommands)||[];this.B.get().Id(d,this.layout.layoutId);break;case "skipped":var f;Q_(this.i,"skip");d=(null===(f=i0(this))||void 0===f?void 0:f.skipCommands)||[];this.B.get().Id(d,this.layout.layoutId)}}; + g.k.Dv=function(){return this.layout.layoutId}; + g.k.CD=function(){return this.Ja}; + g.k.Aj=function(a){if("not_rendering"!==this.u){this.Ea||(a=new g.dI(a.state,new g.SJ),this.Ea=!0);var b=2===this.Ga.get().getPresentingPlayerType();"rendering_start_requested"===this.u?b&&g0(a)&&this.Aa():b?g.fI(a,2)?this.RH():(g0(a)?this.K(1):g.fI(a,4)&&!g.fI(a,2)&&this.yK(),0>eI(a,4)&&!(0>eI(a,2))&&this.zK()):this.lz()}}; + g.k.pw=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_measurable");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewMeasurableCommands)||[];this.B.get().Id(b,this.layout.layoutId)}}; + g.k.ow=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_fully_viewable_audible_half_duration");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.B.get().Id(b,this.layout.layoutId)}}; + g.k.qw=function(){var a;if("rendering"===this.u){Q_(this.i,"active_view_viewable");var b=(null===(a=i0(this))||void 0===a?void 0:a.activeViewViewableCommands)||[];this.B.get().Id(b,this.layout.layoutId)}}; + g.k.Mu=function(a){this.fd.get().Mu(X(this.layout.Ia,"metadata_type_ad_placement_config").kind,a,this.position,this.Ka,!1)}; + g.k.onFullscreenToggled=function(a){var b,c;"rendering"===this.u&&(a?(this.i.Bf("fullscreen"),m0(this,"unmuted_fullscreen"),a=(null===(b=i0(this))||void 0===b?void 0:b.fullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)):(this.i.Bf("end_fullscreen"),m0(this,"unmuted_end_fullscreen"),a=(null===(c=i0(this))||void 0===c?void 0:c.endFullscreenCommands)||[],this.B.get().Id(a,this.layout.layoutId)))}; + g.k.onVolumeChange=function(){var a,b;if("rendering"===this.u)if(this.Ga.get().isMuted()){Q_(this.i,"mute");k0(this,"unmuted_mute");var c=(null===(a=i0(this))||void 0===a?void 0:a.muteCommands)||[];this.B.get().Id(c,this.layout.layoutId)}else Q_(this.i,"unmute"),k0(this,"unmuted_unmute"),c=(null===(b=i0(this))||void 0===b?void 0:b.unmuteCommands)||[],this.B.get().Id(c,this.layout.layoutId)}; + g.k.yg=function(){}; + g.k.uj=function(){};g.w(o0,j0);g.k=o0.prototype;g.k.Hn=function(){}; + g.k.oo=function(){var a=this.Va.get();a.ZA===this&&(a.ZA=null);m_(this.Na.get())?this.J.stop():this.D.stop()}; + g.k.Co=function(){this.Va.get().ZA=this;wJ();this.Aa()}; + g.k.rM=function(){zKa(this)}; + g.k.RH=function(){}; + g.k.lq=function(){m_(this.Na.get())?this.J.stop():this.D.stop();j0.prototype.yK.call(this)}; + g.k.xq=function(){zKa(this);j0.prototype.zK.call(this)}; + g.k.Nl=function(){return X(this.Kb().Ia,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; + g.k.Do=function(){m_(this.Na.get())?this.J.stop():this.D.stop()}; + g.k.Qb=function(){var a=Date.now(),b=a-this.ma;this.ma=a;this.C+=b;this.C>=this.Nl()?(this.C=this.Nl(),l0(this,this.C/1E3,!0),n0(this,this.C),this.S()):(l0(this,this.C/1E3),n0(this,this.C))}; + g.k.sM=function(){}; + g.k.xi=function(){};g.w(p0,j0);g.k=p0.prototype;g.k.Hn=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=this}; + g.k.oo=function(){X(this.Kb().Ia,"metadata_type_player_bytes_callback_ref").current=null;this.C&&this.J.get().removeCueRange(this.C);this.C=void 0;this.D.dispose()}; + g.k.Co=function(a){var b=X(a.Ia,"metadata_type_ad_video_id"),c=X(a.Ia,"metadata_type_legacy_info_card_vast_extension");b&&c&&this.Ra.get().I.V().S.add(b,{Ou:c});(b=X(a.Ia,"metadata_type_sodar_extension_data"))&&hKa(this.Ua.get(),b);fKa(this.Ga.get(),!1);b=this.Gd.get();a=X(a.Ia,"metadata_type_player_vars");b.I.cueVideoByPlayerVars(a,2);this.D.start();this.Gd.get().I.playVideo(2)}; + g.k.rM=function(){var a;this.D.stop();this.C="adcompletioncuerange:"+this.Kb().layoutId;this.J.get().addCueRange(this.C,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=(null===(a=Vz(this.ma.get(),2))||void 0===a?void 0:a.clientPlaybackNonce)||"")||T("Media layout confirmed started, but ad CPN not set.");this.Jc.get().Oa("onAdStart",this.adCpn)}; + g.k.RH=function(){this.S()}; + g.k.Nl=function(){var a;return null===(a=Vz(this.ma.get(),2))||void 0===a?void 0:a.playbackDurationMs}; + g.k.JA=function(){this.i.Bf("clickthrough")}; + g.k.Do=function(){this.D.stop();fKa(this.Ga.get(),!0)}; + g.k.onCueRangeEnter=function(a){a!==this.C?T("Received CueRangeEnter signal for unknown layout.",this.Dd(),this.Kb(),{cueRangeId:a}):(this.J.get().removeCueRange(this.C),this.C=void 0,a=X(this.Kb().Ia,"metadata_type_video_length_seconds"),l0(this,a,!0),Q_(this.i,"complete"))}; + g.k.sM=function(a){"abandoned"!==a&&this.Jc.get().Oa("onAdComplete");this.Jc.get().Oa("onAdEnd",this.adCpn)}; + g.k.onCueRangeExit=function(){}; + g.k.xi=function(a){"rendering"===this.u&&l0(this,a)};g.w(q0,b0);g.k=q0.prototype;g.k.Dd=function(){return this.i.Dd()}; + g.k.Kb=function(){return this.i.Kb()}; + g.k.Hn=function(){this.i.init()}; + g.k.oo=function(){this.i.release()}; + g.k.lq=function(){this.i.lq()}; + g.k.xq=function(){this.i.xq()}; + g.k.Bw=function(a,b){T("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Dd(),this.Kb(),{requestingSlot:a,requestingLayout:b})}; + g.k.Co=function(a){this.i.startRendering(a)}; + g.k.Do=function(a,b){this.i.gf(a,b)}; + g.k.Lc=function(a,b){this.i.Lc(a,b)}; + g.k.Xc=function(a,b,c){b0.prototype.Xc.call(this,a,b,c);this.i.Xc(a,b,c);b.layoutId===this.Kb().layoutId&&NJ(this.fd.get())}; + g.k.GL=function(){this.i.lz()}; + g.k.xi=function(a){this.i.xi(a)}; + g.k.EM=function(a){this.i.Aj(a)}; + g.k.wf=function(a,b,c){this.i.mw(a,b,c)}; + g.k.onFullscreenToggled=function(a){this.i.onFullscreenToggled(a)}; + g.k.yg=function(a){this.i.yg(a)}; + g.k.uj=function(a){this.i.uj(a)}; + g.k.onVolumeChange=function(){this.i.onVolumeChange()};r0.prototype.Oe=function(a,b,c,d){if(a=CKa(a,b,c,d,this.Ze,this.J,this.Va,this.D,this.S,this.Gd,this.K,this.Ga,this.B,this.fd,this.Jc,this.i,this.u,this.C,this.Na))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(s0,g.I);g.k=s0.prototype;g.k.uM=function(a){var b;this.i?DKa(this,this.i,a):null===(b=this.C)||void 0===b?void 0:b.get().Xn(a.identifier)}; + g.k.kM=function(){}; + g.k.hh=function(a){this.i&&this.i.contentCpn!==a&&(T("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn}),this.i=null)}; + g.k.wj=function(a){this.i&&this.i.contentCpn!==a&&T("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.i.contentCpn},!0);this.i=null}; + g.k.xa=function(){g.I.prototype.xa.call(this);this.i=null};g.w(t0,g.I);g.k=t0.prototype;g.k.Lc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&HY(b,this.S)){var d=Vz(this.C.get(),2),e=this.J(b,d);e?Uz(this.D.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[QJa(c.u.get(),e.contentCpn,e.ut,function(h){return c.K(h.slotId,"core",e,NY(c.i.get(),h))},e.OK)]; + e.instreamAdPlayerUnderlayRenderer&&WJa(c.Na.get())&&f.push(EKa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):T("Expected MediaLayout to carry valid opportunity on entered",a,b)}}; + g.k.Nh=function(){}; + g.k.Cj=function(){}; + g.k.xf=function(){}; + g.k.Bj=function(){}; + g.k.yf=function(){}; + g.k.Lk=function(){}; + g.k.Mk=function(){}; + g.k.yj=function(){}; + g.k.zj=function(){}; + g.k.Ai=function(){}; + g.k.Xc=function(){};var r1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=IKa.prototype;g.k.init=function(){}; + g.k.Dd=function(){return this.slot}; + g.k.Gy=function(){this.callback.xf(this.slot)}; + g.k.Hy=function(){this.callback.yf(this.slot)}; + g.k.release=function(){};v0.prototype.Oe=function(a,b){return new IKa(a,b)};g.k=JKa.prototype;g.k.init=function(){}; + g.k.Dd=function(){return this.slot}; + g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");this.callback.xf(this.slot)}; + g.k.Hy=function(){this.callback.yf(this.slot);B_(this.Ga.get(),"ad-showing")}; + g.k.release=function(){};g.k=KKa.prototype;g.k.init=function(){}; + g.k.Dd=function(){return this.slot}; + g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");A_(this.Ga.get(),"ad-interrupting");this.u=this.Ga.get().isAtLiveHead();this.i=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)}; + g.k.Hy=function(){B_(this.Ga.get(),"ad-showing");B_(this.Ga.get(),"ad-interrupting");var a=this.u?Infinity:this.Ga.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.i;this.Ga.get().I.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)}; + g.k.release=function(){};g.k=LKa.prototype;g.k.init=function(){}; + g.k.Dd=function(){return this.slot}; + g.k.Gy=function(){A_(this.Ga.get(),"ad-showing");A_(this.Ga.get(),"ad-interrupting");this.callback.xf(this.slot)}; + g.k.Hy=function(){this.Ga.get().wp();B_(this.Ga.get(),"ad-showing");B_(this.Ga.get(),"ad-interrupting");this.callback.yf(this.slot)}; + g.k.release=function(){this.Ga.get().wp()};w0.prototype.Oe=function(a,b){if(Xz(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new JKa(a,b,this.Ga);if(b.Vb instanceof MZ&&Xz(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new KKa(a,b,this.Ga);if(Xz(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new LKa(a,b,this.Ga);throw new eZ("Unsupported slot with type "+b.rb+" and client metadata: "+(JY(b.Ia)+" in PlayerBytesSlotAdapterFactory."));};g.w(y0,g.I);y0.prototype.i=function(a){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.Fe===a&&b.push(d)}b.length?cZ(this.aC(),b):T("Mute requested but no registered triggers can be activated.")};g.w(z0,y0);g.k=z0.prototype;g.k.Ff=function(a,b){if(b)if("survey-submit"===a)MKa(this,b);else if("skip-button"===a){a=[];for(var c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof wZ&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.Fe===b&&a.push(d)}a.length&&cZ(this.aC(),a)}else"survey-single-select-answer-button"===a&&MKa(this,b)}; + g.k.cE=function(a){y0.prototype.i.call(this,a)}; + g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof xZ||b instanceof wZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Gb.set(b.triggerId,new x0(a,b,c,d))}; + g.k.Pi=function(a){this.Gb.delete(a.triggerId)}; + g.k.aE=function(){}; + g.k.ZD=function(){}; + g.k.mz=function(){};g.w(A0,g.I);g.k=A0.prototype; + g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof ZZ||b instanceof $Z||b instanceof a_||b instanceof b_||b instanceof c_||b instanceof QZ||b instanceof VZ||b instanceof vZ||b instanceof DZ||b instanceof PZ||b instanceof UZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new x0(a,b,c,d);this.Gb.set(b.triggerId,a);b instanceof c_&&this.D.has(b.Ig)&& + cZ(this.i(),[a]);b instanceof ZZ&&this.B.has(b.Ig)&&cZ(this.i(),[a]);b instanceof VZ&&this.u.has(b.Fe)&&cZ(this.i(),[a])}; + g.k.Pi=function(a){this.Gb.delete(a.triggerId)}; + g.k.Nh=function(a){this.D.add(a.slotId);for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof c_&&a.slotId===d.trigger.Ig&&b.push(d);0eI(a,16)){a=g.r(this.i);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value);this.i.clear()}}; + g.k.xi=function(){}; + g.k.onFullscreenToggled=function(){}; + g.k.yg=function(){}; + g.k.uj=function(){}; + g.k.onVolumeChange=function(){};g.w(E0,g.I);g.k=E0.prototype;g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof zZ||b instanceof YZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))}; + g.k.Pi=function(a){this.Gb.delete(a.triggerId)}; + g.k.Ym=function(){}; + g.k.pk=function(){}; + g.k.Lc=function(a,b){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.i?T("called onLayoutEntered with AboveFeedSlot but there is already a layout entered"):this.i=b.layoutId)}; + g.k.Xc=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(this.i=null)}; + g.k.Nh=function(){}; + g.k.Cj=function(){}; + g.k.Bj=function(){}; + g.k.xf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null!=this.u?T("called onSlotEntered with AboveFeedSlot but there is already a slot entered"):this.u=a.slotId)}; + g.k.yf=function(a){"SLOT_TYPE_ABOVE_FEED"===a.rb&&(null===this.u?T("called onSlotExited with AboveFeedSlot but there is no entered slot"):this.u=null)}; + g.k.Lk=function(){}; + g.k.Mk=function(){}; + g.k.yj=function(){}; + g.k.zj=function(){}; + g.k.Ai=function(){}; + g.k.sy=function(){null!=this.i&&f0(this,this.i)}; + g.k.Jy=function(a){if(null===this.u){for(var b=[],c=g.r(this.Gb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof YZ&&d.trigger.slotId===a&&b.push(d);b.length&&cZ(this.B(),b)}};g.w(F0,g.I);g.k=F0.prototype;g.k.Ai=function(a,b){for(var c=[],d=g.r(this.Gb.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&&cZ(this.i(),c)}; + g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof HJa))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d))}; + g.k.Pi=function(a){this.Gb.delete(a.triggerId)}; + g.k.Nh=function(){}; + g.k.Cj=function(){}; + g.k.Bj=function(){}; + g.k.xf=function(){}; + g.k.yf=function(){}; + g.k.Lk=function(){}; + g.k.Mk=function(){}; + g.k.yj=function(){}; + g.k.zj=function(){}; + g.k.Lc=function(){}; + g.k.Xc=function(){};g.w(G0,g.I);G0.prototype.xa=function(){this.D.get().removeListener(this);g.I.prototype.xa.call(this)};H0.prototype.fetch=function(a){var b=a.IJ;return this.Vo.fetch(a.CO,{Tu:void 0===a.Tu?void 0:a.Tu,Cd:b}).then(function(c){return PKa(c,b)})};g.w(I0,g.I);g.k=I0.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.onAdUxClicked=function(a,b){J0(this,function(c){c.Ff(a,b)})}; + g.k.YE=function(a){J0(this,function(b){b.aE(a)})}; + g.k.XE=function(a){J0(this,function(b){b.ZD(a)})}; + g.k.xT=function(a){J0(this,function(b){b.mz(a)})};g.w(K0,g.I);g.k=K0.prototype;g.k.hh=function(){this.B=new GJ(this,VJa(this.Na.get()));this.i=new HJ;RKa(this)}; + g.k.wj=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.sF=function(a){this.fB.push(a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.uM(a)}; + g.k.mM=function(a){g.Pb(this.i.i,1E3*a);for(var b=g.r(this.listeners),c=b.next();!c.done;c=b.next())c.value.kM(a)}; + g.k.fF=function(a){var b=Vz(this.C.get(),1),c=b.clientPlaybackNonce;b=b.daiEnabled;var d=Date.now();a=g.r(a);for(var e=a.next();!e.done;e=a.next())e=e.value,(b||JZ(this.Na.get()))&&u_(this.Va.get(),{cuepointTrigger:{event:SKa(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.i,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:d,contentCpn:c}}),this.u.add(e),b?this.B.reduce(e):JZ(this.Na.get())&&0!==this.I.getCurrentTime(1)&&"start"===e.event&&this.sF(e)}; + g.k.xa=function(){this.I.getVideoData(1).unsubscribe("cuepointupdated",this.fF,this);this.listeners.length=0;this.u.clear();this.fB.length=0;g.I.prototype.xa.call(this)};N0.prototype.addListener=function(a){this.listeners.push(a)}; + N0.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=O0.prototype;g.k.Dd=function(){return this.slot}; + g.k.Kb=function(){return this.layout}; + g.k.init=function(){var a;this.D.get().addListener(this);this.Ga.get().addListener(this);this.Hn();var b=X(this.layout.Ia,"metadata_type_layout_enter_ms"),c=X(this.layout.Ia,"metadata_type_layout_exit_ms"),d=null===(a=this.B.get().rp)||void 0===a?void 0:a.clientPlaybackNonce,e=this.layout.Dc.adClientDataEntry;u_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:c-b,contentCpn:d,adClientData:e}});var f=this.D.get();f=IJ(f.i,b,c);null!==f&&(u_(this.Va.get(),{daiStateTrigger:{filledAdsDurationMs:f- + b,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.K.get().lp(f,c))}; + g.k.release=function(){this.oo();this.D.get().removeListener(this);this.Ga.get().removeListener(this)}; + g.k.startRendering=function(){this.Co();this.callback.Lc(this.slot,this.layout);Q_(this.i,"ad_placement_start")}; + g.k.gf=function(a,b){this.Do(b);null!==this.driftRecoveryMs&&(P0(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(UKa(this)-X(this.layout.Ia,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ga.get().I.vn()).toString()}),this.driftRecoveryMs=null);this.callback.Xc(this.slot,this.layout,b);"normal"!==b?a=!1:(a=this.Ga.get().getCurrentTimeSec(2,!0),b=X(this.layout.Ia,"metadata_type_layout_exit_ms")/1E3,a=1>=Math.abs(a-b));a&&Q_(this.i,"ad_placement_end")}; + g.k.uM=function(){}; + g.k.kM=function(a){var b,c=X(this.layout.Ia,"metadata_type_layout_enter_ms"),d=X(this.layout.Ia,"metadata_type_layout_exit_ms");a*=1E3;c<=a&&aa.width&&Y0(this.B,this.layout)}; + g.k.onVolumeChange=function(){}; + g.k.xi=function(){}; + g.k.onFullscreenToggled=function(){}; + g.k.yg=function(){}; + g.k.Aj=function(){}; + g.k.xa=function(){U_.prototype.xa.call(this)}; + g.k.release=function(){U_.prototype.release.call(this);this.Ga.get().removeListener(this)};tLa.prototype.Oe=function(a,b,c,d){if(b=$_(a,c,d,this.i,this.Ga,this.Va,this.J,this.Od))return b;if(L_(d,sLa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,rLa()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,{Vd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],cf:["LAYOUT_TYPE_SURVEY"]}))return new o1(c,d,a,this.i,this.u,this.Ga,this.Na);if(L_(d,{Vd:["metadata_type_player_bytes_layout_controls_callback_ref", + "metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],cf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new f1(c,d,a,this.i,this.Va);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(p1,g.I);g.k=p1.prototype;g.k.Fi=function(a,b,c,d){if(this.Gb.has(b.triggerId))throw new eZ("Tried to register duplicate trigger for slot.");if(!(b instanceof CZ))throw new eZ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Gb.set(b.triggerId,new x0(a,b,c,d));a=this.i.has(b.Fe)?this.i.get(b.Fe):new Set;a.add(b);this.i.set(b.Fe,a)}; + g.k.Pi=function(a){this.Gb.delete(a.triggerId);if(!(a instanceof CZ))throw new eZ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.i.get(a.Fe))b.delete(a),0===b.size&&this.i.delete(a.Fe)}; + g.k.Nh=function(){}; + g.k.Cj=function(){}; + g.k.Bj=function(){}; + g.k.xf=function(){}; + g.k.yf=function(){}; + g.k.Lk=function(){}; + g.k.Mk=function(){}; + g.k.yj=function(){}; + g.k.zj=function(){}; + g.k.Ai=function(){}; + g.k.Lc=function(a,b){var c=this;if(this.i.has(b.layoutId)){b=this.i.get(b.layoutId);a={};b=g.r(b);for(var d=b.next();!d.done;a={Jt:a.Jt},d=b.next())a.Jt=d.value,d=new g.M(function(e){return function(){var f=c.Gb.get(e.Jt.triggerId);cZ(c.B(),[f])}}(a),a.Jt.durationMs),d.start(),this.u.set(a.Jt.triggerId,d)}}; + g.k.Xc=function(){};g.w(q1,g.I);q1.prototype.xa=function(){this.C.get().removeListener(this);g.I.prototype.xa.call(this)};g.w(vLa,g.I);wLa.prototype.Oe=function(a,b,c,d){if(b=$_(a,c,d,this.i,this.Ga,this.Va,this.J,this.Od))return b;if(L_(d,sLa()))return new m1(c,d,this.Va,this.C,this.i,a,this.u,this.D,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));if(L_(d,rLa()))return new l1(c,d,this.Va,this.C,this.i,a,this.u,this.Ga,this.B,this.Na,this.Od,new n1(this.Ga));throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(xLa,g.I);g.w(yLa,g.I);g.w(zLa,g.I);g.w(s1,Z_);s1.prototype.startRendering=function(a){Z_.prototype.startRendering.call(this,a);X(this.layout.Ia,"metadata_ad_video_is_listed")&&(a=X(this.layout.Ia,"metadata_type_ad_info_ad_metadata"),this.J.get().I.Oa("onAdMetadataAvailable",a))};BLa.prototype.Oe=function(a,b,c,d){if(L_(d,ALa()))return new s1(a,c,d,this.u,this.Ga,this.Va,this.B,this.i,this.Od);throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(CLa,g.I);DLa.prototype.Oe=function(a,b,c,d){if(L_(d,ALa()))return new s1(a,c,d,this.i,this.Ga,this.Va,this.u,this.B,this.Od);if(a=$_(a,c,d,this.i,this.Ga,this.Va,this.u,this.Od))return a;throw new WY("Unsupported layout with type: "+d.layoutType+" and client metadata: "+JY(d.Ia)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(ELa,g.I);g.w(t1,g.I);t1.prototype.B=function(){return this.u};v1.prototype.Jy=function(a){this.fk.Jy(a)}; + v1.prototype.sy=function(){try{this.fk.sy()}catch(a){}}; + v1.prototype.Ym=function(){this.i().Ym()}; + v1.prototype.pk=function(){this.i().pk()};g.w(w1,nL); + w1.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:this.i.Oa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1); + this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:b.renderer&&(b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.i.Oa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.i.getVideoData(1);this.i.Oa("updateKevlarOrC3Companion", + {contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.i,interactionLoggingClientData:b.ub});break;case 3:b=this.i.getVideoData(1),this.i.Oa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.i.Oa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.i.Oa("updateEngagementPanelAction",b.addAction);this.i.Oa("changeEngagementPanelVisibility", + b.expandAction);break;case 3:this.i.Oa("changeEngagementPanelVisibility",b.hideAction),this.i.Oa("updateEngagementPanelAction",b.removeAction)}};g.w(x1,uL);g.k=x1.prototype;g.k.init=function(a,b,c){uL.prototype.init.call(this,a,b,c);g.Sl(this.B,"stroke-dasharray","0 "+this.u);this.show()}; + g.k.clear=function(){this.hide()}; + g.k.hide=function(){wL(this);uL.prototype.hide.call(this)}; + g.k.show=function(){vL(this);uL.prototype.show.call(this)}; + g.k.qq=function(){this.hide()}; + g.k.ao=function(){if(this.i){var a=this.i.getProgressState();null!=a&&null!=a.current&&g.Sl(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(y1,QK);g.k=y1.prototype; + g.k.init=function(a,b,c){QK.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&&b.actionButton.buttonRenderer)if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.Ly(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!= + e&&0=this.B?(this.D.hide(),this.K=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Y&&(tL(this.messageText,{TIME_REMAINING:String(a)}),this.Y=a)))}};g.w(G1,QK); + G1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&b.actionButton.buttonRenderer?(this.i.init(tH("ad-image"),b.image,c),this.B.init(tH("ad-text"),b.headline,c),this.u.init(tH("ad-text"),b.description,c),this.actionButton=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-underlay-action-button"]),g.J(this,this.actionButton),this.actionButton.Da(this.C),this.actionButton.init(tH("button"),b.actionButton.buttonRenderer,c), + this.api.QA(!0),this.show()):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ly(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; + G1.prototype.show=function(){QLa(!0);this.actionButton&&this.actionButton.show();QK.prototype.show.call(this)}; + G1.prototype.hide=function(){QLa(!1);QK.prototype.hide.call(this)}; + G1.prototype.clear=function(){this.api.QA(!1);this.hide()};g.w(H1,QK); + H1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&b.answer.buttonRenderer?(a=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Da(this.answer),a.init(tH("ytp-ad-survey-answer-button"),b.answer.buttonRenderer,c),a.show()):b.answer&&b.answer.toggleButtonRenderer&&(this.i=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-toggle-button"]),this.i.Da(this.answer), + g.J(this,this.i),this.i.init(tH("survey-answer-button"),b.answer.toggleButtonRenderer,c));this.show()}; + H1.prototype.clear=function(){this.hide()};g.w(I1,QK);I1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);b.answer&&b.answer.toggleButtonRenderer&&(this.button=new lL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Da(this.i),this.button.init(tH("survey-none-of-the-above-button"),b.answer.toggleButtonRenderer,c));this.show()};g.w(J1,dL);J1.prototype.init=function(a,b,c){dL.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.sA(b.text),a=!g.$a(b));a||g.My(Error("No submit text was present in the renderer."))}; + J1.prototype.onClick=function(a){this.ea("l");dL.prototype.onClick.call(this,a)};g.w(K1,QK); + K1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)a.skipAdRenderer?(a=a.skipAdRenderer,c=new FL(this.api,this.Wa,this.layoutId,this.ub,this.B,this.Ji),c.Da(this.D),c.init(tH("skip-button"),a,this.macros),g.J(this,c),this.i=c):a.adPreviewRenderer&&(a=a.adPreviewRenderer,c=new zL(this.api,this.Wa,this.layoutId,this.ub,this.B,!1),c.Da(this.D),c.init(tH("ad-preview"),a,this.macros),AL(c),g.J(this,c),this.i=c);null==this.i&&g.Ly(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b))); + b.submitButton&&(a=b.submitButton,a.buttonRenderer&&(a=a.buttonRenderer,c=new J1(this.api,this.Wa,this.layoutId,this.ub),c.Da(this.submitButton),c.init(tH("survey-submit"),a,this.macros),g.J(this,c),this.u=c));if(a=b.adBadgeRenderer)a=a.simpleAdBadgeRenderer,c=new HL(this.api,this.Wa,this.layoutId,this.ub,!0),c.Da(this.C),c.init(tH("simple-ad-badge"),a,this.macros),g.J(this,c);if(a=b.adDurationRemaining)a=a.adDurationRemainingRenderer,c=new NL(this.api,this.Wa,this.layoutId,this.ub,this.B,void 0), + c.Da(this.C),c.init(tH("ad-duration-remaining"),a,this.macros),g.J(this,c);(b=b.adInfoRenderer)&&b.adHoverTextButtonRenderer&&(a=new rL(this.api,this.Wa,this.layoutId,this.ub,this.element),g.J(this,a),a.Da(this.C),a.init(tH("ad-info-hover-text-button"),b.adHoverTextButtonRenderer,this.macros));this.show()}; + K1.prototype.clear=function(){this.hide()};g.w(L1,QK);L1.prototype.init=function(a,b,c){QK.prototype.init.call(this,a,b,c);ULa(this)}; + L1.prototype.show=function(){this.C=g.Pa();QK.prototype.show.call(this)}; + L1.prototype.tN=function(){};g.w(M1,L1);g.k=M1.prototype;g.k.init=function(a,b,c){var d=this;L1.prototype.init.call(this,a,b,c);b.questionText&&g.Ng(this.questionText,g.sA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&RLa(d,e.instreamSurveyAdAnswerRenderer,c)}); + this.K=new Set(this.u.map(function(e){return e.i.i})); + (a=b.noneOfTheAbove)&&(a=a.instreamSurveyAdAnswerNoneOfTheAboveRenderer)&&VLa(this,a,c);b.surveyAdQuestionCommon&&TLa(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; + g.k.tN=function(){N1(this,!1);this.D.u.subscribe("l",this.UV,this)}; + g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.i?WLa(this):this.K.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),N1(this,!0))}; + g.k.UV=function(){var a=this,b=this.u.reduce(function(d,e){var f=e.toggledLoggingParams;e.i&&e.i.isToggled()&&f&&d.push(f);return d},[]).join("&"),c=this.submitEndpoints.map(function(d){if(!d.loggingUrls)return d; + d=g.qc(d);d.loggingUrls=d.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=ui(e.baseUrl,b));return e}); + return d}); + c&&c.forEach(function(d){return a.Wa.executeCommand(d,a.macros)})}; + g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(O1,L1);O1.prototype.init=function(a,b,c){var d=this;L1.prototype.init.call(this,a,b,c);b.questionText&&g.Ng(this.questionText,g.sA(b.questionText));b.answers&&b.answers.forEach(function(e){e.instreamSurveyAdAnswerRenderer&&RLa(d,e.instreamSurveyAdAnswerRenderer,c)}); + b.surveyAdQuestionCommon?TLa(this,b.surveyAdQuestionCommon):g.Ly(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; + O1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(P1,QK); + P1.prototype.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);(b.questions||[]).forEach(function(e){if(e.instreamSurveyAdSingleSelectQuestionRenderer){e=e.instreamSurveyAdSingleSelectQuestionRenderer;var f=new O1(d.api,d.Wa,d.layoutId,d.ub,d.Eg,d.Ji,d.i);f.Da(d.u);f.init(tH("survey-question-single-select"),e,c);d.questions.push(f);g.J(d,f)}else e.instreamSurveyAdMultiSelectQuestionRenderer&&(e=e.instreamSurveyAdMultiSelectQuestionRenderer,f=new M1(d.api,d.Wa,d.layoutId,d.ub,d.Eg, + d.Ji,d.i),f.Da(d.u),f.init(tH("survey-question-multi-select"),e,c),d.questions.push(f),g.J(d,f))}); + this.show()}; + P1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};g.w(Q1,QK); + Q1.prototype.init=function(a,b,c){var d=this;QK.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.Ly(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&b.ctaButton.buttonRenderer)if(b.brandImage)if(b.backgroundImage&&b.backgroundImage.thumbnailLandscapePortraitRenderer&&b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape){YLa(this.interstitial,b.backgroundImage.thumbnailLandscapePortraitRenderer.landscape); + YLa(this.logoImage,b.brandImage);g.Ng(this.text,g.sA(b.text));this.actionButton=new dL(this.api,this.Wa,this.layoutId,this.ub,["ytp-ad-survey-interstitial-action-button"]);g.J(this,this.actionButton);this.actionButton.Da(this.u);this.actionButton.init(tH("button"),b.ctaButton.buttonRenderer,c);this.actionButton.show();var e=b.timeoutCommands,f=this.api.V().N("html5_use_normal_timer_for_survey");this.i=this.Eg?new JL(this.api,1E3*a):new KL(1E3*a,void 0,f);this.i.subscribe("g",function(){d.transition.hide(); + if(!d.Eg){for(var h=g.r(e),l=h.next();!l.done;l=h.next())d.Wa.executeCommand(l.value,c);d.Wa.executeCommand({adLifecycleCommand:{action:"END_LINEAR_AD"}},c)}}); + g.J(this,this.i);this.T(this.element,"click",function(h){var l=b.dismissCommands,m=h.target===d.interstitial;h=d.actionButton.element.contains(h.target);if(m||h)if(d.transition.hide(),m)if(d.lG)d.api.onAdUxClicked(d.componentType,d.layoutId);else for(l=g.r(l),m=l.next();!m.done;m=l.next())d.Wa.executeCommand(m.value,d.macros)}); + this.transition.show(100);if(!this.Eg&&b.impressionCommands)for(a=g.r(b.impressionCommands),f=a.next();!f.done;f=a.next())this.Wa.executeCommand(f.value,c)}else g.Ly(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ly(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ly(Error("SurveyTextInterstitialRenderer has no button."));else g.Ly(Error("SurveyTextInterstitialRenderer has no text."));else g.Ly(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; + Q1.prototype.clear=function(){this.hide()}; + Q1.prototype.show=function(){ZLa(!0);QK.prototype.show.call(this)}; + Q1.prototype.hide=function(){ZLa(!1);QK.prototype.hide.call(this)};var rOa="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"]);g.w(R1,nL); + R1.prototype.C=function(a){var b,c=a.id,d=a.content,e=d.componentType;if(!rOa.includes(e))switch(a.actionType){case 1:a=this.K();var f=d instanceof kI||d instanceof uJ||d instanceof zJ?d.Eg:!1,h=d instanceof kI||d instanceof IL||d instanceof uJ?d.Ji:!1,l=d instanceof uJ&&(null===(b=d.renderer)||void 0===b?void 0:b.controlWithFixEnabled);var m=this.api,n=d.layoutId,p=d.ub,q=d instanceof zJ?d.lG:!1;p=void 0===p?{}:p;f=void 0===f?!1:f;h=void 0===h?!1:h;q=void 0===q?!1:q;l=void 0===l?!1:l;switch(e){case "invideo-overlay":a= + new z1(m,a,n,p);break;case "player-overlay":a=new UL(m,a,n,p,new RN(m),h);break;case "survey":a=new P1(m,a,n,p,f,h,l);break;case "ad-action-interstitial":a=new y1(m,a,n,p,f,h);break;case "survey-interstitial":a=new Q1(m,a,n,p,f,q);break;case "ad-message":a=new F1(m,a,n,p,new RN(m,1));break;case "player-underlay":a=new G1(m,a,n,p);break;default:a=null}if(!a){g.My(Error("No UI component returned from ComponentFactory for type: "+e));break}fc(this.u,c)?g.My(Error("Ad UI component already registered: "+ + c)):this.u[c]=a;a.bind(d);d instanceof d1?this.B?this.B.append(a.XF):g.Ly(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(a.XF);break;case 2:c=$La(this,a);if(null==c)break;c.bind(d);break;case 3:d=$La(this,a),null!=d&&(g.ue(d),fc(this.u,c)?(d=this.u,c in d&&delete d[c]):g.My(Error("Ad UI component does not exist: "+c)))}}; + R1.prototype.xa=function(){g.ve(Object.values(this.u));this.u={};nL.prototype.xa.call(this)};g.w(S1,g.$M);g.k=S1.prototype;g.k.create=function(){if(lZ(u1(this.i).Tf))try{aMa(this),this.load(),this.created=!0,aMa(this)}catch(a){T(a instanceof Error?a:String(a))}else this.load(),this.created=!0}; + g.k.load=function(){g.$M.prototype.load.call(this);var a=u1(this.i).Tf;Aja(a.I.V().N("html5_reduce_ecatcher_errors"));if(lZ(a))try{this.player.getRootNode().classList.add("ad-created")}catch(l){T(l instanceof Error?l:String(l))}else this.player.getRootNode().classList.add("ad-created");var b=this.B(),c=this.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}); + e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;var h=c&&c.tf()||!1;a=eMa(f,a,e,h);f=c&&c.clientPlaybackNonce||"";c=c&&c.ip||!1;h=1E3*this.player.getDuration(1);this.Wa=new FK(this,this,this.player,this.Vo,b,u1(this.i));zsa(this.Wa,a.Nu);this.i.i.Tn.hh(f,h,c,a.oA,a.oA.concat(a.Nu),e,d);GK(this.Wa)}; + g.k.destroy=function(){var a=this.player.getVideoData(1);this.i.i.Tn.wj(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; + g.k.unload=function(){g.$M.prototype.unload.call(this);Aja(!1);if(lZ(u1(this.i).Tf))try{this.player.getRootNode().classList.remove("ad-created")}catch(b){T(b instanceof Error?b:String(b))}else this.player.getRootNode().classList.remove("ad-created");if(null!==this.Wa){var a=this.Wa;this.Wa=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Vo.reset()}; + g.k.Ii=function(){return!1}; + g.k.mG=function(){return null===this.Wa?!1:this.Wa.mG()}; + g.k.Kk=function(a){null!==this.Wa&&this.Wa.Kk(a)}; + g.k.getAdState=function(){return this.Wa?this.Wa.sz:-1}; + g.k.getOptions=function(){return Object.values(qOa)}; + g.k.kf=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=LH(this.player),Object.assign(b,a.Baa),this.Wa&&!b.AD_CPN&&(b.AD_CPN=this.Wa.Ty()),a=g.Dq(a.url,b)):a=null,a;case "isExternalShelfAllowedFor":a:if(b.playerResponse){a=b.playerResponse.adPlacements||[];for(b=0;b { - const key = 'en_US-vfljDEtYP'; - const url = 'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; +describe('Get functions', () => { + const key = 'en_US-vflset-387dfd49'; + const url = 'https://www.youtube.com/s/player/387dfd49/player_ias.vflset/en_US/base.js'; const filepath = path.resolve(__dirname, `files/html5player/${key}.js`); - it('Returns a set of tokens', async() => { + it('Returns a set of functions', async() => { const scope = nock.url(url).replyWithFile(200, filepath); - let tokens = await sig.getTokens(url, {}); + let tokens = await sig.getFunctions(url, {}); scope.done(); assert.ok(tokens.length); }); @@ -22,11 +18,11 @@ describe('Get tokens', () => { describe('Hit the same video twice', () => { it('Gets html5player tokens from cache', async() => { const scope = nock.url(url).replyWithFile(200, filepath); - let tokens = await sig.getTokens(url, {}); + let functions = await sig.getFunctions(url, {}); scope.done(); - assert.ok(tokens.length); - let tokens2 = await sig.getTokens(url, {}); - assert.ok(tokens2.length); + assert.ok(functions.length); + let functions2 = await sig.getFunctions(url, {}); + assert.ok(functions2.length); }); }); @@ -34,108 +30,20 @@ describe('Get tokens', () => { it('Gives an error', async() => { const testUrl = 'https://s.ytimg.com/yts/jsbin/player-en_US-bad/base.js'; const scope = nock.url(testUrl).reply(404, 'uh oh'); - await assert.rejects(sig.getTokens(testUrl, {})); + await assert.rejects(sig.getFunctions(testUrl, {})); scope.done(); }); }); - describe('Unable to find tokens', () => { + describe('Unable to find functions', () => { const testKey = 'mykey'; const testUrl = `https://s.ytimg.com/yts/jsbin/player-${testKey}/base.js`; const contents = 'my personal contents'; it('Gives an error', async() => { const scope = nock.url(testUrl).reply(200, contents); - await assert.rejects(sig.getTokens(testUrl, {}), /Could not extract signature/); + await assert.rejects(sig.getFunctions(testUrl, {}), /Could not extract functions/); scope.done(); }); }); }); - -describe('Signature decipher', () => { - describe('extract deciphering actions', () => { - it('Returns the correct set of actions', done => { - let total = 0; - for (let name in html5player) { - total++; - fs.readFile(path.resolve(__dirname, `files/html5player/${name}.js`), - 'utf8', (err, body) => { - assert.ifError(err); - const actions = sig.extractActions(body); - assert.deepEqual(actions, html5player[name]); - if (--total === 0) { - done(); - } - }); - } - }); - }); - - const testDecipher = (tokens, input, expected) => { - const result = sig.decipher(tokens, input); - assert.strictEqual(result, expected); - }; - - describe('properly apply actions based on tokens', () => { - it('reverses', () => { - testDecipher(['r'], 'abcdefg', 'gfedcba'); - }); - - it('swaps head and position', () => { - testDecipher(['w2'], 'abcdefg', 'cbadefg'); - testDecipher(['w3'], 'abcdefg', 'dbcaefg'); - testDecipher(['w5'], 'abcdefg', 'fbcdeag'); - }); - - it('slices', () => { - testDecipher(['s3'], 'abcdefg', 'defg'); - }); - - it('real set of tokens', () => { - testDecipher(html5player['en_US-vfl0Cbn9e'], - 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', - 'bbSdefghijklmnoaqrstuvwxyzAZCDEFGHIJKLMNOPQRpTUVWc'); - }); - }); -}); - -describe('Set download URL', () => { - it('Adds signature to download URL', () => { - const format = { - fallback_host: 'tc.v9.cache7.googlevideo.com', - quality: 'small', - type: 'video/x-flv', - itag: '5', - // eslint-disable-next-line max-len - url: 'https://r4---sn-p5qlsnsr.googlevideo.com/videoplayback?nh=IgpwZjAxLmlhZDI2Kgw3Mi4xNC4yMDMuOTU&upn=utAH1aBebVk&source=youtube&sparams=cwbhb%2Cdur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Crequiressl%2Csource%2Cupn%2Cexpire&initcwndbps=772500&pl=16&ip=0.0.0.0&lmt=1309008098017854&key=yt6&id=o-AJj1D_OYO_EieAH08Qa2tRsP6zid9dsuPAvktizyDRlv&expire=1444687469&mm=31&mn=sn-p5qlsnsr&itag=5&mt=1444665784&mv=m&cwbhb=yes&fexp=9408208%2C9408490%2C9408710%2C9409069%2C9414764%2C9415435%2C9416126%2C9417224%2C9417380%2C9417488%2C9417707%2C9418448%2C9418494%2C9419445%2C9419802%2C9420324%2C9420348%2C9420982%2C9421013%2C9421170%2C9422341%2C9422540&ms=au&sver=3&dur=298.109&requiressl=yes&ipbits=0&mime=video%2Fx-flv&ratebypass=yes', - container: 'flv', - resolution: '240p', - encoding: 'Sorenson H.283', - profile: null, - bitrate: '0.25', - audioEncoding: 'mp3', - audioBitrate: 64, - }; - sig.setDownloadURL(format, 'mysiggy', false); - assert.ok(format.url.indexOf('signature=mysiggy') > -1); - }); - - describe('With a badly formatted URL', () => { - const format = { - url: 'https://r4---sn-p5qlsnsr.googlevideo.com/videoplayback?%', - }; - - it('Does not set URL', () => { - sig.setDownloadURL(format, 'mysiggy', false); - assert.ok(format.url.indexOf('signature=mysiggy') === -1); - }); - }); - - describe('Without a URL', () => { - it('Does not set URL', () => { - const format = { bla: 'blu' }; - sig.setDownloadURL(format, 'nothing', false); - assert.deepEqual(format, { bla: 'blu' }); - }); - }); -});