From 7cd0705120268d1a8a5280d13e82dea3a9cd73c4 Mon Sep 17 00:00:00 2001 From: Yunzhe Date: Tue, 6 Aug 2024 10:03:42 +0800 Subject: [PATCH] Init. --- README.md | 55 + examples/multi-thread.js | 78 + examples/one-shot.js | 4 + index.js | 11 + lib/consts.js | 9 + lib/inject.js | 26 + lib/task.js | 40 + lib/utils.js | 22 + lib/workflow.js | 14 + package.json | 24 + vendor/README.md | 2 + vendor/base.js | 12830 +++++++++++++++++++++++++++++++++++++ vendor/index.html | 10 + yarn.lock | 283 + 14 files changed, 13408 insertions(+) create mode 100644 README.md create mode 100644 examples/multi-thread.js create mode 100644 examples/one-shot.js create mode 100644 index.js create mode 100644 lib/consts.js create mode 100644 lib/inject.js create mode 100644 lib/task.js create mode 100644 lib/utils.js create mode 100644 lib/workflow.js create mode 100644 package.json create mode 100644 vendor/README.md create mode 100644 vendor/base.js create mode 100644 vendor/index.html create mode 100644 yarn.lock diff --git a/README.md b/README.md new file mode 100644 index 0000000..30c5509 --- /dev/null +++ b/README.md @@ -0,0 +1,55 @@ +# YouTube PoToken Generator + +## Introduction + +This program outputs the mysterious pair `{ visitorData, poToken }`, with the help of `js-dom`. + +## How it works + +Only one network request is made to get a fresh copy of `visitorData`. + +Then `poToken` is generated with pre-downloaded scripts from YouTube and some magic provided in `lib/inject.js` + +No real browser is required to install. + +## How to use + +```bash +yarn add youtube-po-token-generator +# Or +npm install youtube-po-token-generator +``` + +See `examples` for simple usages. + +```javascript +const { generate } = require('youtube-po-token-generator') + +generate().then(console.log, console.error) +// => { visitorData: '...', poToken: '...' } +``` + +Require `lib/task` directly if you have already prepared your `visitorData`. + +```javascript +const { createTask } = require('youtube-po-token-generator/lib/task') + +const visitorData = '...' + +createTask(visitorData).then(task => task.start).then(console.log, console.error) +// => { poToken: '...' } +``` + +## Related works + +This project is inspired by https://github.com/iv-org/youtube-trusted-session-generator . + +## More + +Debugging the source code from YouTube was a pain. + +* Pausing at key parts of the `poToken` generation may lead to misleading branches. + +* Modification on the injected code from `botguardData.program` may lead to invalid tokens. + +* Improper userAgent would lead to valid or invalid poToken being generated randomly, like a lottery. diff --git a/examples/multi-thread.js b/examples/multi-thread.js new file mode 100644 index 0000000..44c22b2 --- /dev/null +++ b/examples/multi-thread.js @@ -0,0 +1,78 @@ +const { parentPort, Worker, isMainThread } = require('worker_threads') +const { createTask } = require('../lib/task') +const { formatError } = require('../lib/utils') +const { fetchVisitorData } = require('../lib/workflow') +const os = require('os') + +if (isMainThread) { + const generate = async () => { + const visitorData = await fetchVisitorData() + + return new Promise((res, rej) => { + try { + const workers = Array(Math.max(1, os.cpus().length - 1)).fill(0).map(() => new Worker(__filename)) + + workers.forEach((worker, i) => { + worker.on('message', ({ result, data }) => { + if (result === 'success') { + console.log(`Worker ${i} finished the race.`) + workers.forEach(worker => { + worker.postMessage({ action: 'stop' }) + }) + res(data) + } + }) + + worker.on('error', (err) => { + console.error(`Worker ${i} encountered an error ${formatError(err)}`) + }) + + worker.on('exit', (code) => { + console.error(`Worker ${i} exited (${code})`) + }) + + console.log(`Starting worker ${i}...`) + worker.postMessage({ action: 'start', data: { visitorData } }) + }) + } catch (err) { + rej(err) + } + }) + } + + module.exports = { generate } +} else { + let flagStop = false + let visitorData = undefined + let stop + + const start = async () => { + try { + if (!visitorData) { + throw new Error('visitorData is absent') + } + const task = await createTask(visitorData) + stop = task.stop + const { poToken } = await task.start() + return { result: 'success', data: { visitorData, poToken } } + } catch (err) { + return { result: 'failure', data: { reason: formatError(err) } } + } + } + + parentPort.on('message', async ({ action, data }) => { + if (action === 'start') { + visitorData = data.visitorData + const message = await start() + if (flagStop) { + return + } + parentPort.postMessage(message) + } + if (action === 'stop') { + flagStop = true + stop?.() + process.exit(0) + } + }) +} diff --git a/examples/one-shot.js b/examples/one-shot.js new file mode 100644 index 0000000..86c3119 --- /dev/null +++ b/examples/one-shot.js @@ -0,0 +1,4 @@ +const { generate } = require('../index') +const { formatError } = require('../lib/utils') + +generate().then(console.log, err => console.log(formatError(err))) diff --git a/index.js b/index.js new file mode 100644 index 0000000..05b207b --- /dev/null +++ b/index.js @@ -0,0 +1,11 @@ +const { createTask } = require('./lib/task') +const { fetchVisitorData } = require('./lib/workflow') + +const generate = async () => { + const visitorData = await fetchVisitorData() + const task = await createTask(visitorData) + const { poToken } = await task.start() + return { visitorData, poToken } +} + +module.exports = { generate } diff --git a/lib/consts.js b/lib/consts.js new file mode 100644 index 0000000..fa3bd72 --- /dev/null +++ b/lib/consts.js @@ -0,0 +1,9 @@ +const url = 'https://www.youtube.com/embed/dQw4w9WgXcQ' +const userAgent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)' +const headers = { + 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', + 'accept-language': 'en-US;q=0.9', + 'user-agent': userAgent, +} + +module.exports = { url, headers, userAgent } diff --git a/lib/inject.js b/lib/inject.js new file mode 100644 index 0000000..371c7f8 --- /dev/null +++ b/lib/inject.js @@ -0,0 +1,26 @@ +const bOa$ = bOa +bOa = (...args) => { + const ret = bOa$(...args) + if (ret.length > 80) { + window.onPoToken(ret) + } + return ret +} +ytcfg.set({ + 'INNERTUBE_CONTEXT': { + ...ytcfg.get('INNERTUBE_CONTEXT'), + client: { + ...ytcfg.get('INNERTUBE_CONTEXT').client, + visitorData: window.visitorData, + }, + }, + 'VISITOR_DATA': window.visitorData, + 'IDENTITY_MEMENTO': { + 'visitor_data': window.visitorData, + }, +}) +g.C_.create( + document.getElementById('player'), + { args: {}, attrs: {}, loaded: true }, + ytcfg.get('WEB_PLAYER_CONTEXT_CONFIGS')['WEB_PLAYER_CONTEXT_CONFIG_ID_EMBEDDED_PLAYER'], +) diff --git a/lib/task.js b/lib/task.js new file mode 100644 index 0000000..7fa0dfa --- /dev/null +++ b/lib/task.js @@ -0,0 +1,40 @@ +const fs = require('fs/promises') +const { JSDOM, VirtualConsole } = require('jsdom') +const { url, userAgent } = require('./consts') + +const createTask = async (visitorData) => { + const domContent = await fs.readFile('vendor/index.html', 'utf-8') + const baseContent = await fs.readFile(`vendor/base.js`, 'utf-8') + const baseAppendContent = await fs.readFile(`lib/inject.js`, 'utf-8') + let destroy = undefined + return { + stop: () => destroy?.(), + start: async () => { + while (true) { + const { poToken } = await new Promise(async (res, rej) => { + const { window } = new JSDOM(domContent, { + url, + pretendToBeVisual: true, + runScripts: 'dangerously', + virtualConsole: new VirtualConsole(), + }) + Object.defineProperty(window.navigator, 'userAgent', { value: userAgent, writable: false }) + window.visitorData = visitorData + window.onPoToken = (poToken) => { + res({ poToken }) + } + window.eval(baseContent.replace(/}\s*\)\(_yt_player\);\s*$/, (matched) => `;${baseAppendContent};${matched}`)) + destroy = () => { + window.close() + rej(new Error('Window is closed')) + } + }).finally(() => destroy()) + if (poToken.length === 160) { + return { poToken } + } + } + }, + } +} + +module.exports = { createTask } diff --git a/lib/utils.js b/lib/utils.js new file mode 100644 index 0000000..f1409eb --- /dev/null +++ b/lib/utils.js @@ -0,0 +1,22 @@ +const https = require('https') +const { headers, url } = require('./consts') + +const download = (url) => new Promise((resolve, reject) => { + https.get(url, { headers }, (res) => { + let data = '' + + res.on('data', (chunk) => { + data += chunk + }) + + res.on('end', () => { + resolve(data) + }) + }).on('error', (err) => { + reject(err) + }) +}) + +const formatError = (err) => err.message || err.toString() + +module.exports = { download, formatError } diff --git a/lib/workflow.js b/lib/workflow.js new file mode 100644 index 0000000..75887f5 --- /dev/null +++ b/lib/workflow.js @@ -0,0 +1,14 @@ +const { download } = require('./utils') +const { url } = require('./consts') + +const fetchVisitorData = async () => { + const data = await download(url) + const matched = data.match(/"visitorData":"([^"]+)/) + if (matched) { + return matched[1] + } else { + throw new Error(`Failed to find visitorData`) + } +} + +module.exports = { fetchVisitorData } diff --git a/package.json b/package.json new file mode 100644 index 0000000..3fa51f6 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "youtube-po-token-generator", + "version": "0.1.0", + "author": "Yunzhe ", + "description": "It generates a valid poToken with visitorData fetched from YouTube.", + "keywords": [ + "youtube", + "session", + "poToken", + "visitorData", + "po_token", + "visitor_data", + "invidious" + ], + "repository": "https://github.com/YunzheZJU/youtube-po-token-generator.git", + "main": "index.js", + "license": "MIT", + "dependencies": { + "jsdom": "^24.1.1" + }, + "engines": { + "node": ">=18.0" + } +} diff --git a/vendor/README.md b/vendor/README.md new file mode 100644 index 0000000..b15b20d --- /dev/null +++ b/vendor/README.md @@ -0,0 +1,2 @@ +* `index.html` was downloaded from https://www.youtube.com/embed/dQw4w9WgXcQ . Inspect its content for generating timestamp and region. +* `base.js` was downloaded from https://www.youtube.com/s/player/d2e656ee/player_ias.vflset/en_US/base.js . `d2e656ee` should be the version number for its content. \ No newline at end of file diff --git a/vendor/base.js b/vendor/base.js new file mode 100644 index 0000000..471db69 --- /dev/null +++ b/vendor/base.js @@ -0,0 +1,12830 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.io/license +*/ +/* + + (The MIT License) + + Copyright (C) 2014 by Vitaly Puzrin + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + + ----------------------------------------------------------------------------- + Ported from zlib, which is under the following license + https://github.com/madler/zlib/blob/master/zlib.h + + zlib.h -- interface of the 'zlib' general purpose compression library + version 1.2.8, April 28th, 2013 + Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + The data format used by the zlib library is described by RFCs (Request for + Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 + (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ +'use strict';var aa,baa,caa,ka,daa,ma,eaa,na,ra,sa,ta,gaa,haa,Aa,Ba,iaa,jaa,Da,kaa,Ea,Fa,Ha,laa,Ia,Ma,Na,naa,oaa,Za,paa,$a,bb,eb,ib,jb,qaa,nb,raa,qb,sb,ub,Bb,Cb,Db,Eb,zaa,Aaa,Fb,Hb,Gb,Baa,Caa,Daa,Eaa,Faa,Jb,Haa,Iaa,Vb,Jaa,Zb,Kaa,Laa,Xb,Maa,Naa,Oaa,ec,Paa,fc,gc,ic,Qaa,jc,Raa,Taa,Vaa,mc,oc,Yaa,pc,sc,Zaa,$aa,Ac,aba,Ic,Kc,dba,eba,Mc,jba,Sc,gba,iba,Pc,Oc,Wc,Xc,kba,Yc,lba,$c,ad,mba,bd,dd,ed,gd,jd,od,pd,sd,ud,yba,wba,xba,Aba,Bba,xd,yd,zd,Eba,Ad,Fba,Gba,Hba,Jba,Iba,Fd,Hd,Kba,Ld,Nd,Od,Lba,Nba,Mba,Oba,Pba, +Sd,Td,Vd,Wd,Qba,Rba,Sba,Tba,Zd,$d,ee,Wba,Yba,Xba,fe,he,Zba,ge,oe,Yd,aca,$ba,te,se,Xd,ve,bca,we,xe,Ae,cca,eca,gca,Ge,He,Ie,kca,mca,Ke,nca,Je,rca,Ee,ica,tca,qca,oca,pca,uca,sca,Le,lca,Oe,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Re,Mca,Qca,Rca,Sca,Xca,Ve,Wca,Tca,Zca,ada,cda,Xe,eda,Ze,$e,bf,af,cf,df,ef,ff,gf,gda,jf,kf,lf,mf,of,pf,ida,tf,xf,jda,yf,kda,lda,zf,wf,Af,Cf,pda,Df,qda,Ef,Ff,sda,Gf,Hf,If,vda,Lf,wda,xda,yda,uda,Kf,tda,Jf,Ada,Bda,Cda,Dda,Eda,Mf,Nf,Of,Fda,Ida,Gda,Qf,Jda,Hda, +Wf,Yf,Zf,Mda,Lda,Nda,Oda,$f,Pda,Qda,bg,dg,Sda,fg,Tda,eg,ig,hg,jg,ng,Zda,Xda,Yda,pg,$da,aea,rg,cea,sg,tg,dea,xg,yg,zg,ug,wg,vg,Cg,Wda,Dg,eea,gea,Eg,Fg,Gg,og,qg,Hg,hea,Ig,Jg,Kg,Lg,Mg,Ng,Rg,Sg,Tg,Ug,iea,Vg,jea,Wg,Xg,Zg,Yg,$g,ah,bh,ch,dh,kea,mea,fh,nea,oea,gh,hh,kh,qea,rea,lh,vea,yea,sea,xea,wea,uea,tea,zea,mh,Aea,ph,Cea,Eea,Fea,Hea,qh,Iea,rh,Jea,sh,Kea,th,wh,Lea,xh,yh,Nea,zh,Dh,Qea,Eh,Sea,Tea,Pea,Uea,Gh,Yea,Zea,$ea,Hh,bfa,cfa,Ah,afa,dfa,Xea,Kh,Lh,Mh,Nh,Oh,Ph,ffa,gfa,Qh,hfa,Rh,ifa,Sh,Th,Uh,Wh,jfa,lfa, +mfa,ofa,nfa,pfa,Zh,$h,ai,rfa,sfa,tfa,ci,di,ei,fi,ii,ji,ki,ufa,li,wfa,oi,xfa,pi,qi,ri,yfa,zfa,ui,Bfa,ti,si,Afa,Cfa,Dfa,wi,Efa,vi,xi,yi,zi,Ai,Ffa,Gfa,Bi,Hfa,Di,Ifa,Lfa,Ei,Ii,Ji,Ki,Oi,Nfa,Pi,Qi,Ri,Ofa,Pfa,Ui,Qfa,Vi,Wi,Tfa,Vfa,Xfa,Wfa,Yfa,Yi,Zfa,aj,ej,gj,hj,ij,jj,kj,fj,lj,mj,nj,pj,qj,dga,rj,sj,tj,ega,fga,gga,hga,uj,vj,wj,xj,jga,zj,mga,pga,qga,Aj,rga,kga,Bj,nga,sga,oga,tga,Cj,vga,wga,xga,yga,zga,Ej,Aga,Bga,Cga,Dga,Gga,Ega,Fj,Gj,Hj,Ij,Jj,Kj,Lj,Mj,Iga,Oj,Hga,Pj,Jga,Kga,Lga,Mga,Qj,Rj,Nga,Sj,Tj,Oga,Uj,Vj, +Wj,Xj,Yj,Sga,Pga,bk,Rga,ck,Qga,ak,Zj,ek,Uga,gk,fk,lk,mk,ok,Xga,nk,rk,Yga,sk,Vga,aha,bha,cha,vk,wk,xk,dha,Dk,Ek,Fk,Gk,eha,Hk,Ik,Jk,fha,gha,Kk,hha,yj,kha,lha,mha,nha,iha,Lk,Mk,Nk,Ok,pha,Qk,Pk,qha,rha,sha,Uk,tha,Xk,Yk,uha,Zk,wha,$k,vha,xha,yha,al,bl,cl,dl,el,fl,gl,zha,hl,il,jl,Aha,Cha,Dha,ll,nl,ml,pl,ql,rl,Fha,Gha,sl,tl,ul,Iha,Jha,Mha,Kha,Nha,Rha,vl,Qha,Oha,wl,xl,Sha,yl,Tha,zl,Vha,Uha,Wha,Xha,Dl,El,Yha,Zha,$ha,Fl,Gl,aia,Hl,bia,cia,eia,iia,Il,jia,kia,lia,mia,nia,Ll,oia,pia,qia,Sl,Rl,Ql,ria,sia,tia,Tl, +Ul,Vl,via,$l,cm,dm,wia,em,yia,zia,Aia,fm,hm,im,nm,om,rm,Cia,Eia,Dia,Fia,Gia,Cm,Hia,Iia,Dm,Jia,Kia,Lia,Mia,Hm,Fm,Im,Jm,Km,Nia,Oia,Pia,Lm,Mm,Nm,Qia,Ria,Sia,Om,Tia,Pm,Qm,Uia,Via,Wia,Xia,Yia,Zia,Rm,Sm,Tm,Vm,bja,Wm,Xm,cja,aja,Um,dja,Ym,Zm,$m,bn,an,eja,fja,gja,cn,ija,dn,kja,lja,mja,nja,oja,pja,qja,rja,gn,hn,jn,tja,sja,uja,vja,ln,wja,mn,xja,yja,nn,on,pn,zja,qn,rn,Aja,sn,tn,un,vn,wn,xn,yn,zn,Bja,Cja,Dja,Eja,An,Fja,Hja,Gja,Cn,Dn,Jja,Ija,Mja,Pja,Oja,En,Qja,Rja,Sja,Uja,Tja,Vja,Fn,Wja,Xja,Hn,Yja,Zja,$ja,aka, +In,bka,Jn,cka,Kn,Ln,eka,Mn,fka,Nn,On,gka,hka,Xn,Zn,jka,$n,ika,kka,lka,mka,oka,ao,pka,eo,fo,rka,ska,vka,wka,go,ho,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,Aka,zka,Bka,Dka,Cka,Fka,yka,Eka,xka,to,uo,Hka,Ika,Jka,yo,zo,Ao,vo,Lka,Bo,Gka,Nka,Oka,Mka,Co,Do,Eo,Fo,Pka,Kka,Qka,Go,Rka,Ska,Tka,Uka,Vka,Yka,Zka,$ka,ala,bla,fla,hla,jla,kla,mla,lla,ola,qla,rla,Yo,sla,Xo,$o,tla,ap,cp,dp,ula,vla,wla,kp,xla,yla,tp,zla,Bla,up,Cla,Dla,Jla,Fla,xp,yp,zp,Bp,Cp,Ola,Dp,Ep,Fp,Qla,Ip,Rla,Sla,Jp,Ula,Lp,Mp,Np,Op,Vla,Pp,Rp,Sp,Tp,Up,Wla, +Wp,Xp,Yp,Zp,$p,aq,Xla,Yla,Zla,$la,ama,bma,bq,cma,iq,dma,ema,fma,jq,lq,sq,tq,wq,xq,yq,hma,Bq,Cq,Dq,ima,jma,Eq,kma,lma,Gq,tma,uma,vma,Hq,wma,xma,Ama,Jq,Cma,Bma,Lq,Dma,Ema,Nq,Oq,Fma,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,Xq,Yq,Zq,$q,ar,br,cr,dr,er,fr,gr,hr,ir,jr,kr,Gma,Hma,Ima,or,qr,Jma,ur,vr,wr,xr,yr,Br,Nma,Cr,Dr,Er,Pma,Oma,Kma,Hr,Gr,Tma,Ir,Rr,Or,Sr,Tr,Vma,Yma,Vr,Zma,$ma,bna,gna,cna,ena,fna,Xr,Wr,hna,Zr,$r,as,ina,gs,jna,hs,kna,js,lna,ls,ms,ns,os,ps,nna,ts,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,pna,Es,Hs,Gs,rna,vna,tna,una,wna, +xna,zna,Ana,yna,Cna,Ks,Ls,Os,Dna,Ena,Ns,Ps,Gna,Hna,Lna,Kna,Ts,Us,Vs,Ws,Xs,Zs,Nna,Ona,Pna,ft,gt,Qna,Rna,Sna,mt,nt,ot,Tna,Una,Wna,Yna,tt,Zna,wt,ut,At,Bt,Dt,$na,Kt,Lt,Mt,Nt,Pt,Qt,St,eoa,foa,Ut,goa,hoa,Wt,ioa,joa,Xt,Yt,koa,loa,noa,bu,poa,qoa,$t,roa,soa,uoa,toa,fu,ooa,woa,xoa,lu,ju,yoa,zoa,mu,nu,Aoa,Boa,qu,Coa,Doa,Eoa,Foa,wu,Goa,Hoa,Ioa,Joa,Koa,Loa,Moa,Noa,yu,Ooa,Au,Qoa,Roa,Soa,Toa,Uoa,Bu,Hu,Woa,Zoa,Iu,$oa,bpa,Voa,cpa,dpa,epa,Xoa,Yoa,Cu,Du,Gu,apa,Fu,Eu,fpa,gpa,hpa,ipa,jpa,kpa,ppa,lpa,Pu,Tu,Vu,spa,vpa, +upa,Uu,Yu,wpa,av,xpa,zpa,fv,ypa,Ipa,Apa,Hpa,jv,Jpa,Mpa,kv,iv,Kpa,Lpa,Npa,mv,Ppa,Qpa,Rpa,Spa,Tpa,Upa,Vpa,Opa,Xpa,Ypa,Zpa,$pa,aqa,cqa,qv,dqa,rv,tv,uv,eqa,fqa,xv,yv,hqa,gqa,zv,iqa,kqa,mqa,lqa,nqa,qqa,oqa,Mv,Lv,rqa,Kv,Nv,Ov,Pv,sqa,tqa,Rv,vqa,Uv,Tv,Wv,Xv,Yv,wqa,Zv,aw,xqa,cw,ew,fw,yqa,zqa,Aqa,gw,iw,Bqa,jw,kw,lw,Dqa,mw,Eqa,ow,rw,qw,pw,tw,uw,Hqa,Nqa,Pqa,Mqa,Lqa,Oqa,xw,Aw,Rqa,Qqa,Fw,Gw,Gqa,$qa,Mw,Zqa,cra,Yqa,ww,Nw,Ew,Kw,ara,Cw,Jqa,Iqa,Kqa,zw,Xqa,Rw,kra,jra,Sw,mra,nra,ora,Uw,pra,qra,rra,tra,ura,Xw,wra,Yw,xra, +yra,Ara,Bra,$w,Cra,Era,ax,Fra,bx,cx,dx,Gt,Ora,Lra,Sra,kx,Ura,Xra,mx,Zra,$ra,asa,csa,bsa,dsa,vx,tpa,tx,wx,ux,nx,Ex,Dx,Hx,Ix,Kx,fsa,Lx,Ox,Px,gsa,hsa,Sx,jsa,ksa,lsa,msa,nsa,osa,psa,qsa,rsa,ssa,Wx,tsa,Xx,Zx,usa,vsa,wsa,$x,xsa,ysa,ey,fy,gy,zsa,hy,Asa,jy,Csa,Bsa,ly,my,ny,oy,Dsa,py,qy,Esa,Fsa,ry,sy,Jsa,Gsa,Isa,Hsa,ty,uy,vy,Ksa,Lsa,Msa,wy,Osa,Rsa,Qsa,yy,zy,Ay,By,Cy,Ey,Fy,Gy,Hy,Iy,Jy,Ssa,Tsa,Usa,Vsa,Ky,Ly,My,Ny,Py,Ry,Xsa,Wsa,Ty,Ysa,Uy,Vy,Wy,Xy,Yy,az,bz,cz,dz,$sa,ez,fz,gz,ata,iz,kz,bta,lz,dta,eta,fta,hta,jta, +rz,kta,tz,sz,mta,nta,ota,wz,xz,qta,zz,Qz,Rz,Sz,sta,Tz,Uz,Vz,tta,Wz,rta,Xz,Yz,vta,uta,Zz,$z,aA,bA,dA,xta,yta,fA,gA,iA,jA,zta,hA,Cta,Dta,Eta,Fta,Gta,Hta,Ita,lA,kA,Bta,Lta,mA,Nta,Ota,rA,Pta,oA,pA,Qta,sA,Sta,Uta,tA,uA,Vta,vA,Xta,wA,cua,aua,Yta,$ta,Zta,yA,zA,AA,BA,CA,DA,EA,GA,eua,hua,iua,kua,KA,MA,LA,NA,lua,nua,mua,oua,sua,uua,tua,vua,wua,xua,OA,zua,yua,PA,QA,RA,Aua,SA,TA,UA,Cua,Dua,VA,Bua,WA,Gua,XA,YA,ZA,$A,aB,bB,cB,dB,eB,fB,gB,hB,iB,jB,kB,lB,mB,nB,oB,pB,qB,rB,sB,tB,uB,vB,wB,xB,yB,zB,AB,BB,CB,DB,EB,FB, +GB,HB,IB,JB,KB,LB,MB,NB,OB,PB,QB,RB,SB,TB,UB,VB,WB,XB,YB,ZB,$B,aC,bC,cC,dC,eC,fC,gC,hC,iC,jC,kC,lC,mC,oC,pC,Iua,qC,rC,sC,nC,tC,uC,vC,Kua,xC,Mua,wC,Nua,zC,Oua,BC,yC,CC,DC,EC,GC,Qua,Rua,Sua,Tua,PC,QC,LC,RC,Vua,Wua,Xua,Yua,Pua,Zua,FC,$ua,ava,TC,YC,UC,IC,bva,HC,SC,VC,ZC,dva,JC,KC,XC,WC,eva,$C,aD,bD,cD,fva,dD,eD,fD,gD,hD,hva,iva,kva,lva,jD,kD,lD,mD,qva,sva,uva,vva,oD,xva,yva,uD,zva,vD,wD,xD,yD,zD,AD,Ava,Cva,Bva,Dva,Eva,ED,FD,HD,ID,JD,KD,LD,Fva,MD,ND,GD,QD,RD,SD,TD,Gva,PD,Iva,UD,Jva,Kva,VD,Lva,WD,XD,Mva, +Nva,YD,Ova,Pva,ZD,Qva,Rva,Sva,Tva,Uva,$D,Vva,Wva,aE,bE,cE,Xva,dE,eE,Yva,fE,gE,Zva,hE,$va,iE,awa,bwa,jE,kE,cwa,dwa,ewa,fwa,lE,gwa,hwa,iwa,mE,jwa,nE,kwa,oE,lwa,pE,mwa,tE,nwa,uE,vE,owa,wE,pwa,xE,yE,qwa,rwa,BE,CE,twa,DE,uwa,vwa,swa,wwa,xwa,EE,FE,GE,HE,Awa,IE,JE,LE,Bwa,ME,NE,PE,SE,QE,WE,XE,Cwa,YE,ZE,$E,aF,Dwa,cF,dF,eF,Ewa,fF,gF,hF,UE,iF,jF,kF,Fwa,lF,mF,nF,Gwa,oF,pF,qF,rF,sF,uF,vF,wF,xF,Hwa,Iwa,Jwa,Kwa,CF,yF,DF,EF,Lwa,Mwa,Nwa,FF,GF,HF,Owa,Pwa,AF,Qwa,Rwa,IF,Swa,JF,KF,MF,NF,OF,PF,QF,SF,TF,VF,WF,XF,YF,UF, +Vwa,Wwa,$F,aG,bG,Xwa,dG,Zwa,eG,fG,gG,hG,jG,$wa,iG,kG,lG,mG,axa,pG,cxa,dxa,qG,rG,exa,fxa,gxa,sG,ixa,cG,hxa,jxa,uG,tG,kxa,vG,lxa,wG,mxa,nxa,oxa,pxa,qxa,xG,sxa,rxa,yG,BG,CG,DG,txa,uxa,vxa,wxa,xxa,EG,yxa,FG,Axa,HG,IG,Cxa,Bxa,Dxa,Exa,Fxa,KG,LG,MG,Gxa,Hxa,Ixa,Jxa,Kxa,Lxa,Mxa,Nxa,Oxa,Pxa,bH,eH,Qxa,Rxa,fH,gH,Sxa,hH,iH,kH,Txa,lH,mH,nH,Uxa,oH,Vxa,pH,Wxa,qH,Xxa,Yxa,rH,Zxa,$xa,aya,sH,tH,uH,vH,wH,bya,xH,yH,zH,cya,AH,BH,dya,eya,fya,CH,gya,DH,EH,FH,GH,jva,hya,iya,jya,kya,lya,HH,IH,JH,KH,LH,MH,NH,OH,PH,QH,RH,mya, +nya,YH,ZH,oya,$H,eI,qya,uya,zya,vya,Bya,Cya,Aya,Dya,Eya,Fya,pI,Iya,Kya,Mya,Nya,Oya,sI,Qya,Rya,Vya,tI,Wya,Sya,uI,vI,Xya,$ya,Zya,dza,aza,wI,xI,iza,AI,mza,lza,kza,qza,pza,rza,sza,vza,tza,uza,jza,wza,xza,BI,oza,yza,CI,nza,FI,GI,Aza,Dza,Bza,Gza,Oza,Nza,Hza,Pza,Jza,Kza,Iza,Tza,Vza,Xza,Zza,bAa,cAa,eAa,fAa,hAa,gAa,mAa,jAa,iAa,nAa,qAa,rAa,sAa,tAa,SI,Jya,wAa,uAa,VI,xAa,zAa,YI,CAa,DAa,BAa,ZI,EAa,$I,aJ,BD,bJ,Hya,dJ,eJ,fJ,FAa,GAa,gJ,HAa,IAa,JAa,hJ,iJ,jJ,kJ,lJ,mJ,nJ,oJ,pJ,KAa,LAa,qJ,MAa,rJ,AG,sJ,tJ,NAa,uJ,OAa, +PAa,Lya,AAa,QAa,vJ,CD,iD,EI,RAa,SAa,xJ,hza,yI,TAa,TI,UI,JI,II,HI,LI,$za,dAa,KI,eza,oAa,UAa,Qza,Lza,yJ,yAa,rI,WAa,VAa,zza,aAa,XAa,pAa,PI,fza,gza,Yya,Yza,Wza,Fza,Cza,Uya,Tya,Pya,Sza,Mza,kAa,bza,cza,NI,OI,MI,lAa,Uza,ZAa,YAa,zJ,AJ,BJ,CJ,DJ,EJ,KJ,LJ,aBa,OJ,RJ,bBa,dBa,cBa,eBa,fBa,gBa,hBa,iBa,jBa,TJ,VJ,lBa,WJ,XJ,YJ,ZJ,mBa,nBa,$J,aK,bK,oBa,pBa,cK,eK,iK,jK,kK,lK,mK,nK,oK,pK,qK,rK,sK,tK,uK,qBa,rBa,vK,wK,xK,yK,zK,AK,sBa,tBa,BK,FK,wBa,xBa,GK,IK,yBa,zBa,ABa,JK,KK,LK,MK,NK,OK,PK,EBa,RK,QK,FBa,CBa,DBa,GBa,SK,TK, +HBa,IBa,UK,JBa,Ft,LBa,KBa,NBa,OBa,QBa,RBa,PBa,SBa,VBa,aL,bL,WBa,XBa,YBa,ZBa,cL,dL,$Ba,aCa,bCa,cCa,fCa,hCa,iCa,gCa,hL,jL,iL,jCa,fL,kCa,lCa,mCa,gL,qCa,rCa,sCa,pCa,oCa,nCa,tCa,uCa,dCa,vCa,wCa,eCa,xCa,BCa,yCa,zCa,ACa,ECa,CCa,DCa,FCa,lL,HCa,GCa,KCa,ICa,LCa,JCa,MCa,NCa,OCa,PCa,QCa,RCa,SCa,TCa,UCa,VCa,WCa,XCa,mL,ZCa,$Ca,aDa,YCa,bDa,cDa,fDa,oL,qL,sL,uL,gDa,vL,wL,xL,kDa,mDa,lDa,oDa,wDa,FL,zL,nDa,jDa,iDa,hDa,EL,AL,DL,KL,LL,zDa,ML,NL,JL,DDa,ADa,BDa,EDa,OL,PL,GDa,RL,SL,TL,UL,VL,WL,XL,HDa,IDa,YL,ZL,aM,KDa,LDa, +$L,bM,ODa,PDa,cM,QDa,fM,RDa,gM,iM,SDa,hM,jM,TDa,lM,VDa,WDa,nM,oM,tM,YDa,qM,uM,wM,ZDa,yM,sM,vM,$Da,zM,aEa,AM,bEa,pM,rM,XDa,xM,BM,cEa,dEa,CM,eEa,DM,fEa,EM,FM,HM,GM,IM,JM,gEa,hEa,KM,LM,MM,NM,iEa,OM,PM,jEa,kEa,QM,RM,SM,lEa,TM,mEa,nEa,oEa,UM,pEa,qEa,rEa,sEa,tEa,VM,WM,XM,YM,uEa,vEa,$M,wEa,aN,bN,xEa,yEa,cN,zEa,AEa,kHa,IHa,OFa,fHa,gHa,eN,fN,gN,hN,JHa,KHa,iN,jN,LHa,kN,lN,NHa,MHa,nN,mN,OHa,PHa,QHa,RHa,oN,SHa,qN,rN,THa,VHa,WHa,tN,xN,$Ha,uDa,BL,aIa,bIa,cIa,dIa,eIa,fIa,yL,uN,gIa,hIa,AN,BN,kIa,lIa,mIa,CN,qIa,nIa, +oIa,sIa,tIa,DN,uIa,rIa,vIa,EN,FN,GN,wIa,xIa,yIa,HN,zIa,IN,AIa,JN,yN,CIa,DIa,BIa,GIa,ON,IIa,vDa,pDa,PN,QN,SN,TN,UN,VN,WN,RN,ZN,KIa,bO,LIa,MIa,NIa,OIa,PIa,cO,QIa,dO,SIa,eO,UIa,VIa,TIa,RIa,WIa,XIa,YIa,jO,ZIa,$Ia,bJa,kO,yDa,mO,cJa,eJa,GL,fJa,gJa,hJa,CL,qDa,sDa,tDa,oO,pO,qO,iJa,jJa,rO,kJa,sO,tO,lJa,uO,vO,mJa,nJa,wO,xO,yO,zO,AO,BO,CO,pJa,oJa,DO,qJa,rJa,tJa,EO,uJa,sJa,WO,UO,XO,ZO,$O,vJa,CJa,NC,VO,cP,GJa,gP,IJa,KO,hP,JO,iP,TO,lP,NJa,mP,nP,OJa,PJa,oP,QJa,RJa,SJa,TJa,pP,UJa,ZJa,YJa,VJa,XJa,WJa,qP,$Ja,rP,aKa, +bKa,dKa,eKa,fKa,kKa,wP,xP,nKa,yP,zP,oKa,rKa,sKa,tKa,uKa,AP,vKa,xKa,yKa,MP,HKa,CKa,DKa,JKa,NP,KKa,MKa,LKa,NKa,PP,SP,OKa,OP,TP,UP,PKa,SKa,QKa,VKa,ZP,lQ,qQ,uQ,tQ,rLa,gLa,cQ,vQ,iQ,wQ,eLa,tLa,sLa,xQ,YP,hQ,vLa,wLa,xLa,zLa,uLa,zQ,yLa,ALa,BLa,CQ,DQ,DLa,XP,eQ,AQ,jLa,RKa,nLa,JQ,fQ,QQ,rQ,SQ,TQ,UQ,PLa,sQ,QLa,WQ,RLa,SLa,gQ,XQ,fLa,ZQ,ILa,dQ,ZKa,TLa,XKa,WKa,TKa,$Q,VLa,dMa,cMa,fMa,gMa,eR,gR,hR,fR,jR,kR,hMa,lR,jMa,mR,lMa,pR,kMa,rR,sR,pMa,tR,sMa,tMa,wR,uMa,wMa,IR,fS,gS,xMa,iS,jS,mS,nS,oS,pS,yMa,qS,rS,CMa,sS,tS,DMa, +EMa,uS,FMa,GMa,HMa,IMa,vS,wS,JMa,LMa,zS,AS,DS,ES,MMa,FS,GS,HS,NMa,OMa,IS,PMa,JS,RMa,QMa,SMa,KS,UMa,TMa,LS,VMa,MS,NS,WMa,YMa,ZMa,$Ma,aNa,OS,PS,QS,RS,SS,TS,cNa,dNa,eNa,bNa,US,iNa,gNa,hNa,VS,WS,jNa,kNa,lNa,XS,mNa,nNa,YS,ZS,oNa,pNa,bT,$S,aT,qNa,cT,rNa,sNa,gT,uNa,tNa,jT,wNa,xNa,vNa,yNa,kT,lT,mT,zNa,nT,ANa,BNa,qT,CNa,DNa,rT,uT,sT,ENa,vT,wT,xT,zT,AT,GNa,yT,CT,DT,FT,HNa,GT,HT,IT,INa,LNa,KNa,KT,LT,MT,ONa,MNa,NNa,NT,PNa,TNa,RNa,QNa,SNa,OT,VNa,WNa,PT,$Na,YNa,ZNa,QT,bOa,XNa,cOa,RT,ST,dOa,eOa,fOa,TT,gOa,hOa,iOa, +jOa,kOa,lOa,mOa,pOa,nOa,qOa,rOa,sOa,tOa,vOa,wOa,dU,eU,xOa,cU,iU,jU,kU,lU,nU,gU,hU,mU,AOa,BOa,oU,HOa,DOa,EOa,IOa,JOa,GOa,COa,pU,LOa,KOa,MOa,SOa,sU,VOa,YOa,XOa,WOa,QOa,ROa,NOa,OOa,TOa,tU,uU,$Oa,BR,mMa,aPa,wU,bPa,dPa,cPa,UOa,fPa,gPa,hPa,yU,iPa,FU,kPa,lPa,mPa,oPa,nPa,pPa,GU,HU,qPa,tPa,uPa,JU,sPa,vPa,wPa,rPa,KU,NU,xPa,yPa,MU,zPa,APa,BPa,CPa,EPa,DPa,HPa,IPa,FPa,KPa,LPa,GPa,QU,RU,MPa,OPa,SU,NPa,PPa,RPa,QPa,SPa,TU,TPa,UPa,VPa,UU,VU,XPa,WPa,YPa,ZPa,aQa,$Pa,bQa,cQa,dQa,eQa,fQa,hQa,XU,WU,YU,iQa,jQa,gQa,oQa, +pQa,qQa,tQa,sQa,rQa,uQa,vQa,ZU,$U,wQa,xQa,yQa,zQa,BQa,CQa,aV,cV,AQa,DQa,EQa,FQa,GQa,HQa,eV,IQa,JQa,MQa,fV,NQa,LQa,gV,hV,OQa,PQa,RQa,TQa,QQa,SQa,jV,UQa,WQa,XQa,ZQa,$Qa,kV,lV,aRa,VQa,dRa,cRa,bRa,mV,nV,fRa,eRa,oV,pV,gRa,hRa,qV,iRa,jRa,kRa,rV,lRa,sV,mRa,tV,nRa,qRa,rRa,sRa,uRa,vRa,wRa,tRa,yRa,xRa,zRa,CRa,wV,ERa,DRa,ARa,BRa,FRa,GRa,xV,yV,HRa,IRa,JRa,KRa,LRa,MRa,ORa,PRa,XRa,SRa,TRa,QRa,ZRa,EV,$Ra,dSa,HV,eSa,aSa,DV,KV,JV,FV,LV,hSa,jSa,iSa,MV,GV,CV,gSa,IV,bSa,fSa,lSa,zV,NV,mSa,nSa,cSa,OV,PV,oSa,QV,RV,SV,pSa, +qSa,sSa,tSa,rSa,TV,uSa,UV,VV,WV,vSa,wSa,xSa,ySa,zSa,BSa,DSa,CSa,ASa,XV,ESa,GSa,FSa,YV,ZV,HSa,JSa,KSa,$V,ISa,LSa,MSa,aW,NSa,bW,eW,dW,PSa,OSa,QSa,fW,gW,RSa,SSa,USa,TSa,VSa,WSa,XSa,iW,YSa,ZSa,$Sa,aTa,bTa,cTa,eTa,fTa,gTa,dTa,hTa,iTa,jTa,kTa,lTa,mW,mTa,nW,pTa,oW,rTa,pW,qTa,tTa,uTa,sTa,qW,vTa,wTa,xTa,yTa,sW,zTa,ATa,BTa,HTa,MTa,KTa,DTa,vW,JTa,CTa,LTa,OTa,PTa,NTa,xW,RTa,STa,TTa,VTa,WTa,UTa,XTa,BT,CW,DW,EW,YTa,GW,$Ta,aUa,bUa,HW,cUa,dUa,eUa,fUa,gUa,hUa,ZTa,iUa,IW,jUa,oUa,pUa,qUa,KW,rUa,MW,NW,sUa,OW,tUa,LW, +uUa,vUa,CUa,SW,UW,EUa,GUa,FUa,wUa,VW,IUa,JUa,LUa,WW,XW,MUa,DUa,YW,OUa,NUa,ZW,AUa,QW,PUa,QUa,RUa,SUa,TUa,xUa,zUa,RW,WUa,XUa,ZUa,YUa,aX,cX,dX,bVa,cVa,$W,dVa,$Ua,aVa,UUa,eVa,fVa,gVa,nVa,oVa,iVa,eX,bX,VUa,hVa,qVa,uVa,iX,vVa,wVa,sVa,kX,xVa,yVa,pVa,zVa,tVa,AVa,lX,jX,BVa,DVa,CVa,hX,FVa,oX,GVa,mX,pX,nX,qX,HVa,IVa,LVa,KVa,NVa,OVa,MVa,tX,sX,QVa,RVa,SVa,TVa,UVa,WVa,VVa,XVa,vX,wX,YVa,ZVa,cWa,$Va,dWa,eWa,aWa,bWa,fWa,gWa,hWa,xX,iWa,kWa,mWa,pWa,nWa,oWa,DX,HX,rWa,IX,sWa,tWa,uWa,JX,wWa,xWa,yWa,vWa,BWa,CWa,DWa,KX, +LX,EWa,FWa,GWa,BKa,GKa,HWa,JWa,IWa,KWa,NX,OX,LWa,MWa,QX,RX,PX,NWa,OWa,PWa,RWa,VWa,aXa,eXa,VX,fXa,zX,hXa,iXa,jXa,kXa,lXa,mXa,nXa,XX,oXa,YX,pXa,ZX,rXa,sXa,$X,tXa,uXa,vXa,wXa,xXa,yXa,zXa,AXa,BXa,CXa,DXa,FXa,aY,HXa,GXa,LXa,cY,EXa,bY,dY,eY,fY,gY,hY,iY,MXa,jY,NXa,OXa,TXa,WXa,XXa,YXa,ZXa,nY,oY,VXa,SXa,$Xa,lY,PXa,bYa,kY,mY,QXa,RXa,pY,cYa,dYa,UXa,aYa,eYa,gYa,fYa,qY,lYa,jYa,kYa,hYa,mYa,rY,iYa,sY,tY,nYa,oYa,pYa,uY,rYa,sYa,vY,tYa,wY,uYa,vYa,wYa,xYa,zYa,AYa,JXa,HYa,DYa,yYa,JYa,KYa,EYa,FYa,CYa,GYa,yY,BYa,IYa,QYa, +OYa,NYa,MYa,LYa,zY,RYa,yX,AY,BY,CY,SYa,TYa,UYa,DY,VYa,FX,WYa,EY,BX,CX,jWa,GY,IY,$Ya,aZa,KY,HY,FY,LY,YYa,XYa,ZYa,MY,bZa,cZa,KXa,AX,NY,dZa,JY,eZa,fZa,gZa,hZa,OY,iZa,jZa,kZa,lZa,zWa,AWa,PY,mZa,nZa,oZa,pZa,QY,sZa,qZa,tZa,vZa,rZa,wZa,yZa,xZa,AZa,TY,WY,BZa,EZa,DZa,IZa,GZa,JZa,KZa,FZa,HZa,CZa,LZa,MZa,NZa,XY,OZa,qXa,PZa,QZa,RZa,YY,SZa,ZY,TZa,$Y,aZ,UZa,XZa,VZa,WZa,YZa,ZZa,$Za,a_a,b_a,c_a,cZ,j_a,i_a,hZ,k_a,h_a,n_a,iZ,o_a,p_a,q_a,t_a,r_a,v_a,w_a,x_a,y_a,z_a,B_a,C_a,D_a,A_a,kZ,bZ,F_a,u_a,G_a,s_a,lZ,I_a,E_a,jZ, +J_a,K_a,N_a,Q_a,O_a,P_a,R_a,L_a,M_a,V_a,T_a,W_a,U_a,X_a,Y_a,S_a,Z_a,$_a,mZ,a0a,b0a,c0a,d0a,g0a,f0a,e0a,nZ,h0a,j0a,k0a,l0a,m0a,rZ,sZ,IXa,n0a,o0a,r0a,q0a,p0a,s0a,u0a,v0a,t0a,tZ,x0a,y0a,z0a,F0a,C0a,D0a,E0a,G0a,I0a,PYa,oZ,B0a,A0a,H0a,EX,xY,SY,L0a,K0a,M0a,N0a,O0a,P0a,i0a,VY,UY,Q0a,S0a,R0a,T0a,uZa,U0a,J0a,zZa,vZ,wZ,W0a,xZ,X0a,Y0a,Z0a,$0a,a1a,b1a,d1a,c1a,f1a,g1a,k1a,h1a,j1a,l1a,zZ,p1a,n1a,o1a,s1a,t1a,u1a,v1a,w1a,yZ,x1a,r1a,m1a,AZ,y1a,i1a,z1a,BZ,B1a,C1a,D1a,A1a,CZ,G1a,F1a,J1a,I1a,H1a,K1a,L1a,DZ,M1a,N1a,T1a, +Q1a,R1a,S1a,U1a,V1a,W1a,Y1a,X1a,Z1a,$1a,a2a,c2a,e2a,d2a,f2a,b2a,g2a,i2a,k2a,h2a,l2a,m2a,o2a,n2a,p2a,j2a,HZ,q2a,r2a,s2a,u2a,w2a,x2a,z2a,B2a,LZ,D2a,E2a,F2a,G2a,H2a,J2a,I2a,M2a,jVa,MZ,fX,K2a,L2a,N2a,PZ,P2a,O2a,Q2a,R2a,S2a,V2a,T2a,Y2a,QZ,U2a,Z2a,RZ,c3a,TZ,UZ,d3a,SZ,e3a,VZ,h3a,g3a,a3a,b3a,i3a,j3a,k3a,$2a,l3a,WZ,m3a,f3a,C2a,OZ,o3a,gX,p3a,lVa,kVa,q3a,r3a,s3a,t3a,u3a,v3a,YZ,mVa,w3a,y3a,z3a,A3a,x3a,B3a,C3a,ZZ,D3a,E3a,F3a,G3a,$Z,Uwa,H3a,I3a,J3a,b_,M3a,N3a,c_,P3a,Q3a,O3a,L3a,d_,a_,K3a,g_,f_,R3a,h_,e_,V3a,Y3a, +$3a,a4a,c4a,T3a,Z3a,d4a,U3a,e4a,f4a,m_,i_,h4a,g4a,k_,j4a,k4a,X3a,W3a,i4a,l4a,b4a,S3a,n_,r4a,o4a,s4a,p4a,n4a,t4a,m4a,w4a,o_,x4a,z4a,BF,B4a,D4a,E4a,F4a,s_,G4a,yUa,J4a,t_,FZ,K4a,M4a,H4a,zW,l_,N4a,O4a,y_,H_a,C4a,x_,p_,R4a,S4a,U4a,T4a,V4a,L4a,v_,W4a,BW,X4a,ITa,Z4a,Y4a,w0a,EZ,A_,QTa,$4a,HUa,a5a,JNa,u_,b5a,FTa,c5a,GTa,d5a,f5a,Q4a,A4a,h5a,g5a,w_,q_,i5a,B_,wW,k5a,l5a,TW,O1a,m5a,n5a,o5a,ETa,z_,qZ,P1a,I4a,p5a,V0a,j_,y5a,u5a,A5a,s5a,B5a,r5a,D_,AW,G5a,C5a,E5a,D5a,I5a,G_,H_,L5a,K5a,J5a,J_,x5a,N_,N5a,M_,I_,P5a, +S5a,T5a,v5a,Q5a,Q_,U5a,w5a,M5a,K_,V5a,F_,W5a,X5a,Y5a,T_,U_,O5a,V_,W_,Z5a,L_,H5a,$5a,a6a,b6a,R5a,c6a,O_,d6a,P_,e6a,g6a,E_,X_,F5a,h6a,i6a,S_,R_,j6a,JVa,k6a,l6a,m6a,Y_,Z_,p6a,s6a,u6a,o6a,C6a,D6a,E6a,F6a,G6a,H6a,I6a,K6a,J6a,$_,a0,b0,L6a,M6a,c0,zG,N6a,d0,O6a,e0,f0,P6a,cJ,g0,QI,Q6a,WI,vAa,R6a,zI,S6a,nG,oG,h0,wJ,T6a,U6a,V6a,i0,X6a,Y6a,j0,l0,m0,a7a,b7a,n0,c7a,Z6a,$6a,d7a,e7a,f7a,g7a,h7a,o0,j7a,Hva,GG,k7a,l7a,JG,i7a,OD,m7a,n7a,o7a,p0,ZF,q7a,zE,r7a,q0,r0,s7a,s0,t7a,k0,u7a,v7a,bxa,t0,u0,w7a,v0,w0,x7a,x0,y7a, +y0,z0,z7a,A7a,zxa,A0,B7a,D7a,C7a,B0,E7a,C0,D0,F7a,G7a,H7a,I7a,J7a,K7a,M7a,F0,L7a,N7a,O7a,P7a,Q7a,U7a,R7a,S7a,T7a,W7a,Y7a,Z7a,$7a,X7a,G0,a8a,b8a,c8a,d8a,e8a,I0,f8a,J0,K0,L0,g8a,h8a,j8a,k8a,l8a,m8a,o8a,n8a,p8a,M0,N0,s8a,q8a,r8a,O0,u8a,v8a,P0,Q0,R0,S0,T0,x8a,U0,y8a,z8a,A8a,V0,W0,X0,B8a,C8a,D8a,G8a,F8a,Y0,H8a,I8a,J8a,Gya,E8a,L8a,M8a,O8a,aaa,ea;aa=function(a){return function(){return aaa[a].apply(this,arguments)}}; +g.ba=function(a,b){return aaa[a]=b}; +baa=function(a){var b=0;return function(){return b=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,fN:e}}return{i:-1,fN:void 0}}; +Ia=function(a){return a?a:function(b,c){return laa(this,b,c).i}}; +g.Ka=function(a,b,c){a=a.split(".");c=c||g.Ja;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}; +Ma=function(a,b){var c=g.La("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b}; +g.La=function(a,b){a=a.split(".");b=b||g.Ja;for(var c=0;c2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}; +g.Ua=function(a,b,c){g.Ua=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?naa:oaa;return g.Ua.apply(null,arguments)}; +g.Va=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}}; +g.Xa=function(){return Date.now()}; +g.Ya=function(a,b){function c(){} +c.prototype=b.prototype;a.Of=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l=0&&a.indexOf(b,c)==c}; +g.pb=function(a){return/^[\s\xa0]*$/.test(a)}; +qb=function(a){if(!saa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(taa,"&"));a.indexOf("<")!=-1&&(a=a.replace(uaa,"<"));a.indexOf(">")!=-1&&(a=a.replace(vaa,">"));a.indexOf('"')!=-1&&(a=a.replace(waa,"""));a.indexOf("'")!=-1&&(a=a.replace(xaa,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(yaa,"�"));return a}; +g.rb=function(a,b){return a.indexOf(b)!=-1}; +sb=function(a,b){return g.rb(a.toLowerCase(),b.toLowerCase())}; +g.vb=function(a,b){var c=0;a=tb(String(a)).split(".");b=tb(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&eb?1:0}; +g.wb=function(){var a=g.Ja.navigator;return a&&(a=a.userAgent)?a:""}; +Bb=function(a){return xb||yb?Ab?Ab.brands.some(function(b){return(b=b.brand)&&g.rb(b,a)}):!1:!1}; +Cb=function(a){return g.rb(g.wb(),a)}; +Db=function(){return xb||yb?!!Ab&&Ab.brands.length>0:!1}; +Eb=function(){return Db()?!1:Cb("Opera")}; +zaa=function(){return Db()?!1:Cb("Trident")||Cb("MSIE")}; +Aaa=function(){return Db()?Bb("Microsoft Edge"):Cb("Edg/")}; +Fb=function(){return Cb("Firefox")||Cb("FxiOS")}; +Hb=function(){return Cb("Safari")&&!(Gb()||(Db()?0:Cb("Coast"))||Eb()||(Db()?0:Cb("Edge"))||Aaa()||(Db()?Bb("Opera"):Cb("OPR"))||Fb()||Cb("Silk")||Cb("Android"))}; +Gb=function(){return Db()?Bb("Chromium"):(Cb("Chrome")||Cb("CriOS"))&&!(Db()?0:Cb("Edge"))||Cb("Silk")}; +Baa=function(){return Cb("Android")&&!(Gb()||Fb()||Eb()||Cb("Silk"))}; +Caa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]}); +return function(c){return b[c.find(function(d){return d in b})]||""}}; +Daa=function(a){var b=g.wb();if(a==="Internet Explorer"){if(zaa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]); +b=Caa(c);switch(a){case "Opera":if(Eb())return b(["Version","Opera"]);if(Db()?Bb("Opera"):Cb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Db()?0:Cb("Edge"))return b(["Edge"]);if(Aaa())return b(["Edg"]);break;case "Chromium":if(Gb())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Fb()||a==="Safari"&&Hb()||a==="Android Browser"&&Baa()||a==="Silk"&&Cb("Silk")?(b=c[2])&&b[1]||"":""}; +Eaa=function(a){if(Db()&&a!=="Silk"){var b=Ab.brands.find(function(c){return c.brand===a}); +if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Daa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])}; +g.Ib=function(a){return a[a.length-1]}; +Faa=function(a,b){var c=a.length,d=typeof a==="string"?a.split(""):a;for(--c;c>=0;--c)c in d&&b.call(void 0,d[c],c,a)}; +g.Kb=function(a,b,c){b=Jb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}; +Jb=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1}; +g.Mb=function(a,b){return Gaa(a,b)>=0}; +Haa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}; +g.Pb=function(a,b){b=Gaa(a,b);var c;(c=b>=0)&&g.Nb(a,b);return c}; +g.Nb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1}; +g.Qb=function(a,b){b=Jb(a,b);b>=0&&g.Nb(a,b)}; +Iaa=function(a,b){var c=0;Faa(a,function(d,e){b.call(void 0,d,e,a)&&g.Nb(a,e)&&c++})}; +g.Sb=function(a){return Array.prototype.concat.apply([],arguments)}; +g.Tb=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1}; +g.$b=function(a,b){a.sort(b||Xb)}; +Laa=function(a,b){var c=Xb;g.$b(a,function(d,e){return c(b(d),b(e))})}; +g.ac=function(a,b){if(!g.Pa(a)||!g.Pa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Maa,e=0;eb?1:a=0})}; +Vaa=function(a){return g.lc?"webkit"+a:a.toLowerCase()}; +mc=function(a,b){g.lb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)}; +oc=function(a){return!(!a||!a[Waa])}; +Yaa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Hd=e;this.key=++Xaa;this.removed=this.eJ=!1}; +pc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Hd=null}; +g.qc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)}; +g.rc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}; +sc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c}; +g.tc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}; +Zaa=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}; +g.vc=function(a){for(var b in a)return b}; +$aa=function(a){for(var b in a)return a[b]}; +g.wc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}; +g.xc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}; +g.yc=function(a,b){return a!==null&&b in a}; +g.zc=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1}; +Ac=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c}; +aba=function(a,b){return(b=Ac(a,b))&&a[b]}; +g.Bc=function(a){for(var b in a)return!1;return!0}; +g.bba=function(a){for(var b in a)delete a[b]}; +g.Cc=function(a,b,c){return a!==null&&b in a?a[b]:c}; +g.Ec=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0}; +g.Fc=function(a){var b={},c;for(c in a)b[c]=a[c];return b}; +g.Gc=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Gc(a[c]);return b}; +g.Hc=function(a,b){for(var c,d,e=1;e]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.td(c,Cd)}; +Jba=function(a,b,c,d){a=Iba(a);b=b||g.Ja;c=c instanceof bd?dd(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)}; +Iba=function(a){a=sd(a);return a!==void 0?a:g.qd.toString()}; +g.Dd=function(a,b,c){return Math.min(Math.max(a,b),c)}; +g.Ed=function(a,b){a%=b;return a*b<0?a+b:a}; +Fd=function(a,b,c){return a+c*(b-a)}; +g.Gd=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0}; +Hd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; +g.Id=function(a,b){this.width=a;this.height=b}; +g.Jd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}; +g.Kd=function(a,b){b=sd(b);b!==void 0&&(a.href=b)}; +Kba=function(a){var b="true".toString(),c=[new yd];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof yd)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); +a.setAttribute("data-loaded",b)}; +Ld=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);}; +g.Md=function(a,b,c){var d=window;a=sd(a);return a!==void 0?d.open(a,b,c):null}; +Nd=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""}; +Od=function(a){var b=Nd(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)}; +g.Pd=function(a,b){a.src=g.id(b);Od(a)}; +Lba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b}; +Nba=function(a){var b=g.La("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ja.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Mba(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message; +if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Qd[c])c=Qd[c];else{c=String(c);if(!Qd[c]){var f=/function\s+([^\(]+)/m.exec(c);Qd[c]=f?f[1]:"[Anonymous]"}c=Qd[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message, +name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}}; +Mba=function(a,b){b||(b={});b[Oba(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Oba(a)]&&(c+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(c+=typeof a==="string"?a:a.message+"\n"),c+=Mba(a,b));return c}; +Oba=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack}; +Pba=function(a,b){return a.parseFromString(g.wd(b),"text/xml")}; +g.Rd=function(a){return encodeURIComponent(String(a))}; +Sd=function(a){return decodeURIComponent(a.replace(/\+/g," "))}; +Td=function(a){return a=qb(a)}; +g.Ud=function(a){return a==null?"":String(a)}; +Vd=function(a){for(var b=0,c=0;c>>0;return b}; +Wd=function(a){var b=Number(a);return b==0&&g.pb(a)?NaN:b}; +Qba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}; +Rba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +Sba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})}; +Tba=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c}; +Zd=function(a){return a?new Xd(Yd(a)):Uba||(Uba=new Xd)}; +$d=function(a,b){return typeof b==="string"?a.getElementById(b):b}; +g.ae=function(a,b){return(b||document).getElementsByTagName(String(a))}; +g.ce=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.be(document,"*",a,b)}; +g.de=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.be(c,"*",a,b)[0]||null}return a||null}; +g.be=function(a,b,c,d){a=d||a;b=b&&b!="*"?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,typeof b.split=="function"&&g.Mb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a}; +ee=function(a,b){g.qc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Vba.hasOwnProperty(d)?a.setAttribute(Vba[d],c):nb(d,"aria-")||nb(d,"data-")?a.setAttribute(d,c):a[d]=c})}; +Wba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Id(a.clientWidth,a.clientHeight)}; +Yba=function(a){var b=Xba(a);a=a.parentWindow||a.defaultView;return new g.Gd(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}; +Xba=function(a){return a.scrollingElement?a.scrollingElement:g.lc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement}; +fe=function(a){return a?a.parentWindow||a.defaultView:window}; +he=function(a,b,c){var d=arguments,e=document,f=d[1],h=ge(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):ee(h,f));d.length>2&&Zba(e,h,d,2);return h}; +Zba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)} +for(;d0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.Qa(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.cc(h?g.Tb(f):f,e)}}}; +g.je=function(a){return ge(document,a)}; +ge=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)}; +g.ke=function(a){return document.createTextNode(String(a))}; +g.le=function(a,b){a.appendChild(b)}; +g.me=function(a){for(var b;b=a.firstChild;)a.removeChild(b)}; +oe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)}; +g.pe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; +g.qe=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; +Yd=function(a){return a.nodeType==9?a:a.ownerDocument||a.document}; +g.re=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.me(a),a.appendChild(Yd(a).createTextNode(String(b)))}; +aca=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||$ba(a)):a.hasAttribute("tabindex")&&$ba(a)}; +$ba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768}; +te=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return se(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Mb(e.className.split(/\s+/),c))},!0)}; +se=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null}; +Xd=function(a){this.j=a||g.Ja.document||document}; +ve=function(a){typeof g.Ja.setImmediate!=="function"||g.Ja.Window&&g.Ja.Window.prototype&&g.Ja.Window.prototype.setImmediate==g.Ja.setImmediate?(ue||(ue=bca()),ue(a)):g.Ja.setImmediate(a)}; +bca=function(){var a=g.Ja.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!Cb("Presto")&&(a=function(){var e=g.je("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l=f.location.protocol=="file:"?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Ua)(function(m){if((l=="*"||m.origin==l)&&m.data==h)this.port1.onmessage()}, +this); +f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}}); +if(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.mX;c.mX=null;e()}}; +return function(e){d.next={mX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ja.setTimeout(e,0)}}; +we=function(a){g.Ja.setTimeout(function(){throw a;},0)}; +xe=function(){this.B=this.j=null}; +Ae=function(){this.next=this.scope=this.Gm=null}; +g.De=function(a,b){Be||cca();Ce||(Be(),Ce=!0);dca.add(a,b)}; +cca=function(){if(g.Ja.Promise&&g.Ja.Promise.resolve){var a=g.Ja.Promise.resolve(void 0);Be=function(){a.then(eca)}}else Be=function(){ve(eca)}}; +eca=function(){for(var a;a=dca.remove();){try{a.Gm.call(a.scope)}catch(b){we(b)}kba(fca,a)}Ce=!1}; +g.Fe=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Zc)try{var b=this;a.call(void 0,function(c){Ee(b,2,c)},function(c){Ee(b,3,c)})}catch(c){Ee(this,3,c)}}; +gca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1}; +Ge=function(a,b,c){var d=hca.get();d.C=a;d.B=b;d.context=c;return d}; +He=function(a){if(a instanceof g.Fe)return a;var b=new g.Fe(g.Zc);Ee(b,2,a);return b}; +Ie=function(a){return new g.Fe(function(b,c){c(a)})}; +g.jca=function(a,b,c){ica(a,b,c,null)||g.De(g.Va(b,a))}; +kca=function(a){return new g.Fe(function(b,c){a.length||b(void 0);for(var d=0,e;d1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?nca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):oca(c),pca(c,e,3,b)))}a.C=null}else Ee(a,3,b)}; +Je=function(a,b){a.B||a.j!=2&&a.j!=3||qca(a);a.D?a.D.next=b:a.B=b;a.D=b}; +rca=function(a,b,c,d){var e=Ge(null,null,null);e.j=new g.Fe(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f; +e.B=c?function(l){try{var m=c.call(d,l);m===void 0&&l instanceof Le?h(l):f(m)}catch(n){h(n)}}:h}); +e.j.C=a;Je(a,e);return e.j}; +Ee=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,ica(c,a.Yea,a.Zea,a)||(a.N=c,a.j=b,a.C=null,qca(a),b!=3||c instanceof Le||sca(a,c)))}; +ica=function(a,b,c,d){if(a instanceof g.Fe)return Je(a,Ge(b||g.Zc,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Qa(a))try{var f=a.then;if(typeof f==="function")return tca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1}; +tca=function(a,b,c,d,e){function f(m){l||(l=!0,d.call(e,m))} +function h(m){l||(l=!0,c.call(e,m))} +var l=!1;try{b.call(a,h,f)}catch(m){f(m)}}; +qca=function(a){a.K||(a.K=!0,g.De(a.v8,a))}; +oca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b}; +pca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,uca(b,c,d);else try{b.D?b.C.call(b.context):uca(b,c,d)}catch(e){vca.call(null,e)}kba(hca,b)}; +uca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)}; +sca=function(a,b){a.G=!0;g.De(function(){a.G&&vca.call(null,b)})}; +Le=function(a){ib.call(this,a)}; +lca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c}; +g.Me=function(a,b){g.Vc.call(this);this.cj=a||1;this.ZH=b||g.Ja;this.hX=(0,g.Ua)(this.Kea,this);this.a_=g.Xa()}; +g.Ne=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.Ua)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.Ua)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Ja.setTimeout(a,b||0)}; +Oe=function(a,b){var c=null;return(new g.Fe(function(d,e){c=g.Ne(function(){d(b)},a); +c==-1&&e(Error("Failed to schedule timer."))})).Wk(function(d){g.Ja.clearTimeout(c); +throw d;})}; +g.Pe=function(a){g.O.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.Me(this.flushInterval);this.j.listen("tick",this.BN,!1,this);g.P(this,this.j)}; +wca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.BN()}; +xca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)}; +yca=function(a){for(var b=0;b>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e=56320&&h<=57343){f=(f-55296)*1024+ +h-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a}; +Rca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")}; +Sca=function(a){for(var b=[],c=0;c>6|192:((e&64512)==55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b}; +g.Te=function(a,b){b===void 0&&(b=0);Tca();b=Uca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")}; +g.Ue=function(a,b){if(Vca&&!b)a=g.Ja.btoa(a);else{for(var c=[],d=0,e=0;e255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Te(c,b)}return a}; +Xca=function(a){var b=[];Wca(a,function(c){b.push(c)}); +return b}; +Ve=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.rb("=.",a[b-1])&&(c=g.rb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Wca(a,function(f){d[e++]=f}); +return e!==c?d.subarray(0,e):d}; +Wca=function(a,b){function c(m){for(;d>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}}; +Tca=function(){if(!We){We={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Uca[c]=d;for(var e=0;e>>0;rf=b;sf=(a-b)/4294967296>>>0}; +xf=function(a){if(a<0){tf(0-a);var b=g.w(wf(rf,sf));a=b.next().value;b=b.next().value;rf=a>>>0;sf=b>>>0}else tf(a)}; +jda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a}; +yf=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else ef()?c=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+kda(c)+kda(a));return c}; +kda=function(a){a=String(a);return"0000000".slice(a.length)+a}; +lda=function(){var a=rf,b=sf;b&2147483648?ef()?a=""+(BigInt(b|0)<>>0)):(b=g.w(wf(a,b)),a=b.next().value,b=b.next().value,a="-"+yf(a,b)):a=yf(a,b);return a}; +zf=function(a){if(a.length<16)xf(Number(a));else if(ef())a=BigInt(a),rf=Number(a&BigInt(4294967295))>>>0,sf=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");sf=rf=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),sf*=1E6,rf=rf*1E6+d,rf>=4294967296&&(sf+=Math.trunc(rf/4294967296),sf>>>=0,rf>>>=0);b&&(b=g.w(wf(rf,sf)),a=b.next().value,b=b.next().value,rf=a,sf=b)}}; +wf=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]}; +Af=function(a){a.voa=!0;return a}; +Cf=function(a){var b=a;if(mda(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(nda(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Bf?BigInt(a):a=oda(a)?a?"1":"0":mda(a)?a.trim()||"0":String(a)}; +pda=function(a,b){if(a.length>b.length)return!1;if(a.lengthe)return!1;if(d>>0:void 0}; +vda=function(a,b){b=b===void 0?0:b;if(!Ff(a))throw df("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return Jf(a);case "bigint":return String(BigInt.asIntN(64,a));default:return tda(a)}case 8192:switch(c){case "string":return Ff(a),b=Math.trunc(Number(a)),Number.isSafeInteger(b)?a=Cf(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=ef()?Cf(BigInt.asIntN(64,BigInt(a))):Cf(uda(a))),a;case "bigint":return Cf(BigInt.asIntN(64,a));default:return Cf(Kf(a))}case 0:switch(c){case "string":return Jf(a); +case "bigint":return Cf(BigInt.asIntN(64,a));default:return Kf(a)}default:return Ld(b,"Unknown format requested type for int64")}}; +Lf=function(a){return a==null?a:vda(a)}; +wda=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467}; +xda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337}; +yda=function(a){if(a<0){xf(a);var b=yf(rf,sf);a=Number(b);return Number.isSafeInteger(a)?a:b}if(wda(String(a)))return a;xf(a);return sf*4294967296+(rf>>>0)}; +uda=function(a){if(xda(a))return a;zf(a);return lda()}; +Kf=function(a){Ff(a);a=Math.trunc(a);Number.isSafeInteger(a)||(xf(a),a=jda(rf,sf));return a}; +tda=function(a){Ff(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);xda(b)?a=b:(xf(a),a=lda())}return a}; +Jf=function(a){Ff(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return uda(a)}; +Ada=function(a){if(a==null)return a;if(typeof a==="bigint")return zda(Cf(a))?a=Number(BigInt.asIntN(54,a)):(a=BigInt.asIntN(64,a),a=zda(Cf(a))?Number(a):String(a)),a;if(Ff(a))return typeof a==="number"?Kf(a):Jf(a)}; +Bda=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(BigInt.asIntN(64,a));if(Ff(a)){if(b==="string")return Jf(a);if(b==="number")return Kf(a)}}; +Cda=function(a){if(a==null)return a;if(Ff(a)){if(typeof a==="string"){Ff(a);var b=Math.trunc(Number(a));Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),wda(a)||(zf(a),a=yf(rf,sf)));return a}if(typeof a==="number")return Ff(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:yda(a)}}; +Dda=function(a){if(a==null||typeof a=="string"||Xe(a)||a instanceof Ze)return a}; +Eda=function(a){if(typeof a!=="string")throw Error();return a}; +Mf=function(a){if(a!=null&&typeof a!=="string")throw Error();return a}; +Nf=function(a){return a==null||typeof a==="string"?a:void 0}; +Of=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+qda(b)+" but got "+(a&&qda(a.constructor)));return a}; +Fda=function(a,b,c){if(a!=null&&typeof a==="object"&&a.eL===Pf)return a;if(Array.isArray(a)){var d=nf(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&hf(a,e);return new b(a)}}; +Ida=function(a){var b=Qf(a);if(b)return b;if(Math.random()>.01||typeof Proxy!=="function")return a;b=new Proxy(a,{set:function(c,d,e){Gda();c[d]=e;return!0}}); +Hda(a,b);return b}; +Gda=function(){cf()}; +Qf=function(a){var b;return(b=Tf)==null?void 0:b.get(a)}; +Jda=function(a){var b;return((b=Uf)==null?void 0:b.get(a))||a}; +Hda=function(a,b){(Tf||(Tf=new WeakMap)).set(a,b);(Uf||(Uf=new WeakMap)).set(b,a)}; +Wf=function(a,b){Vf=b;a=new a(b);Vf=void 0;return a}; +Yf=function(a){switch(typeof a){case "boolean":return Xf||(Xf=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Kda||(Kda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}}; +Zf=function(a,b,c){a==null&&(a=Vf);Vf=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=nf(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(lf(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<< +14}}}hf(a,d);return a}; +Mda=function(a,b){return Lda(b)}; +Lda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(of(a,void 0,0))return}else{if(Xe(a))return Zca(a);if(a instanceof Ze){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Zca(b)}}}return a}; +Nda=function(a,b,c){var d=ff(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b=a.length||b>=c))return a[b]}; +eg=function(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(Tda(a,b,e,c)&&gg!=null){var h;a=(h=Uda)!=null?h:Uda={};h=a[gg]||0;h>=4||(a[gg]=h+1,cf())}return d}return Tda(a,b,e,c)}}; +ig=function(a,b,c){var d=a.sb,e=ag(d);pf(e);hg(d,e,b,c);return a}; +hg=function(a,b,c,d,e){var f=b>>14&1023||536870912;if(c>=f||e&&!Vda){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c "+a)}; +Wg=function(a){if(typeof a==="string")return{buffer:cda(a),Cx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Cx:!1};if(a.constructor===Uint8Array)return{buffer:a,Cx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Cx:!1};if(a.constructor===Ze)return{buffer:af(a)||new Uint8Array(0),Cx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Cx:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); +}; +Xg=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)}; +Zg=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<>>0,c>>>0);throw Vg();}; +Yg=function(a,b){a.j=b;if(b>a.C)throw jea(a.C,b);}; +$g=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Vg();Yg(a,c);return e}; +ah=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];Yg(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; +bh=function(a){var b=ah(a);return ah(a)*4294967296+(b>>>0)}; +ch=function(a){var b=ah(a),c=ah(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)}; +dh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;ca.C)throw jea(b,a.C-c);a.j=d;return c}; +mea=function(a,b){if(b==0)return $e();var c=kea(a,b);a.QI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):lea?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?$e():new Ze(c,Ye)}; +fh=function(a,b){if(eh.length){var c=eh.pop();c.init(a,void 0,void 0,b);a=c}else a=new Xg(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;nea(this,b)}; +nea=function(a,b){b=b===void 0?{}:b;a.pP=b.pP===void 0?!1:b.pP}; +oea=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=$g(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw iea(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0}; +gh=function(a){switch(a.B){case 0:a.B!=0?gh(a):dh(a.j);break;case 1:a=a.j;Yg(a,a.j+8);break;case 2:if(a.B!=2)gh(a);else{var b=$g(a.j)>>>0;a=a.j;Yg(a,a.j+b)}break;case 5:a=a.j;Yg(a,a.j+4);break;case 3:b=a.D;do{if(!oea(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}gh(a)}while(1);break;default:throw iea(a.B,a.C);}}; +hh=function(a,b,c){var d=a.j.C,e=$g(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d}; +kh=function(a){var b=$g(a.j)>>>0;a=a.j;var c=kea(a,b);a=a.B;if(pea){var d=a,e;(e=ih)||(e=ih=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(jh===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),jh=!0}catch(p){jh=!1}}!jh&&(ih=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f=b?Re():(m=a[f++],l<194||(m&192)!==128?(f--,Re()):c.push((l&31)<<6|m&63)): +l<240?f>=b-1?Re():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,Re()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?Re():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,Re()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Re(),c.length>=8192&&(h=Mca(h,c),c.length=0);f=Mca(h,c)}return f}; +qea=function(a){var b=$g(a.j)>>>0;return mea(a.j,b)}; +rea=function(a){return a}; +lh=function(a){return a}; +vea=function(a,b,c,d){return sea(a,b,c,d,tea,uea)}; +yea=function(a,b,c,d){return sea(a,b,c,d,wea,xea)}; +sea=function(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var h=0,l=0,m=0,n=0,p=0,q=c.length-1;q>=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=zea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,y=c.length-1;y>=0;y--){var A=c[y];if(!(A==null||d&&y===c.length-1&&A===d)){A=y-b;var D=e(A,t)+f(q,r,u);D=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h1?a-1:0)}; +wea=function(a,b){return(a>1?a-1:0)+(a-b)*4}; +uea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b}; +tea=function(a){return 40+4*a}; +zea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2}; +mh=function(a,b,c){this.sb=Zf(a,b,c)}; +Aea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");cg(b,32);return Wf(a,b)}; +ph=function(a){var b=nh?a.sb:$f(a.sb,Pda,void 0,void 0,!1);var c=!nh;var d=Bea?void 0:a.constructor.kpa;var e=ag(c?a.sb:b);if(a=b.length){var f=b[a-1],h=lf(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!oh&&Vda&&!(e&512),p;e=(p=oh)!=null?p:lh;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t0;a--){D=a-1;A=p[D];D-=l;if(!(A==null||of(A,d,D)||kf(A)&&A.size===0))break;F=!0}if(p!==b||q||F){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(F||q||r)p.length=a;r&&p.push(r)}b=p}return b}; +Cea=function(a,b){this.B=a>>>0;this.j=b>>>0}; +Eea=function(a){if(!a)return Dea||(Dea=new Cea(0,0));if(!/^\d+$/.test(a))return null;zf(a);return new Cea(rf,sf)}; +Fea=function(a,b){this.B=a>>>0;this.j=b>>>0}; +Hea=function(a){if(!a)return Gea||(Gea=new Fea(0,0));if(!/^-?\d+$/.test(a))return null;zf(a);return new Fea(rf,sf)}; +qh=function(){this.j=[]}; +Iea=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)}; +rh=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)}; +Jea=function(a,b){if(b>=0)rh(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}}; +sh=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)}; +Kea=function(){this.C=[];this.B=0;this.j=new qh}; +th=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)}; +wh=function(a,b,c){rh(a.j,b*8+c)}; +Lea=function(a,b,c){c!=null&&(typeof c==="string"&&Eea(c),wh(a,b,1),typeof c==="number"?(a=a.j,tf(c),sh(a,rf),sh(a,sf)):(c=Eea(c),a=a.j,b=c.j,sh(a,c.B),sh(a,b)))}; +xh=function(a,b,c){wh(a,b,2);rh(a.j,c.length);th(a,a.j.end());th(a,c)}; +yh=function(a,b,c,d){this.kN=a;this.lN=b;this.j=c;this.X3=d}; +Nea=function(a){return Array.isArray(a)?a[0]instanceof yh?a:[Mea,a]:[a,void 0]}; +zh=function(a,b,c){if(Array.isArray(b)){var d=nf(b);if(d&4)return b;for(var e=0,f=0;e0?void 0:b]}; +Pea=function(a){var b=a[Fh];if(b)return b;b=Gh(a,a[Fh]=new Eh,Tea,Tea,Sea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(Yf(a[0])===Xf?Ch?b=Ch:(b=new Eh,b.pB=Yf(!0),b=Ch=b):b=Bh||(Bh=new Eh),b=a[Fh]=b):b.G=!0}return b}; +Uea=function(a,b,c){a[b]=c}; +Gh=function(a,b,c,d,e){e=e===void 0?Uea:e;b.pB=Yf(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}}; +hfa=function(a){return function(){var b=new Kea;Xea(this.sb,b,Hh(a));th(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h>>31)&4294967295;q=e[0];var u=e[1],y=e[2],A=e[3],D=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=A^u&(y^A);var H=1518500249}else F=u^y^A,H=1859775393;else t<60?(F=u&y|A&(u|y),H=2400959708):(F=u^y^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+D+H+r[t]&4294967295;D=A;A=y;y=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]= +e[2]+y&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+D&4294967295} +function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,y=q.length;u=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q} +for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,X7:function(){for(var q=d(),r="",t=0;t=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Sd(e):"")}}}; +Qi=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]}; +Ri=function(a,b,c){if(Array.isArray(b))for(var d=0;d=0&&bc)e=c;d+=b.length+1;return Sd(a.slice(d,e!==-1?e:0))}; +Wi=function(a,b){for(var c=a.search(Rfa),d=0,e,f=[];(e=Qfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Sfa,"$1")}; +Tfa=function(a,b,c){return Ui(Wi(a,b),b,c)}; +g.Xi=function(a){g.Vc.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ba=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ga=this.Z=this.Fa=!1;this.ra=0;this.qa=null;this.Ma="";this.K=!1}; +Vfa=function(a,b,c,d,e,f,h){var l=new g.Xi;Ufa.push(l);b&&l.listen("complete",b);l.cG("ready",l.x7);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)}; +Xfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Wfa(a);Yi(a)}; +Wfa=function(a){a.Fa||(a.Fa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))}; +Yfa=function(a){if(a.C&&typeof Zi!="undefined")if(a.Ba[1]&&g.$i(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.$i(a)==4)g.Ne(a.x0,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(aj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.$i(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Wfa(a)}}finally{Yi(a)}}}; +Yi=function(a,b){if(a.j){Zfa(a);var c=a.j,d=a.Ba[0]?function(){}:null; +a.j=null;a.Ba=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}}; +Zfa=function(a){a.qa&&(g.Ja.clearTimeout(a.qa),a.qa=null)}; +aj=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=b===0)a=g.Mi(1,String(a.Y)),!a&&g.Ja.self&&g.Ja.self.location&&(a=g.Ja.self.location.protocol.slice(0,-1)),b=!$fa.test(a?a.toLowerCase():"");c=b}return c}; +g.$i=function(a){return a.j?a.j.readyState:0}; +g.bj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}}; +g.cj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ma){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}}; +g.aga=function(a){var b={};a=(a.j&&g.$i(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c>1,b),Cj(a,a.length>>1)]}; +wga=function(a){var b=g.w(vga(a,Dj));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)}; +xga=function(a,b){var c=vga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.w(c);c=d.next().value;d=d.next().value;for(var e=1;e>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]}; +Ej=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c}; +Aga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Ej(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ej(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Ej(a)):new Ej(a,c,b)}; +Bga=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=Aga(a))}; +Cga=function(a,b,c,d,e){var f=a.index?ij(a.logger,function(){return yga(a.index,wga(b),c,d,e)},"W"):"u"; +a.logger.p_(f)}; +Dga=function(a,b,c){var d=g.w(a.index?ij(a.logger,function(){return zga(wga(b),c)},"R"):["u"]),e=d.next().value; +d=d.next().value;a.logger.n_(e);return d}; +Gga=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15} +a=Ega(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=Fj(a,l),d+=Fj(a,l+4),e+=Fj(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Fga.toString(e)}; +Ega=function(a){for(var b=[],c=0;c>7,a.error.code]);d.set(c,4);return d}; +Oj=function(a,b,c){Gj.call(this,a);this.G=b;this.clientState=c;this.C="S";this.B="q"}; +Hga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.Se(a)}; +Pj=function(a,b,c){g.O.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.B=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})}; +Jga=function(a,b){var c;return(c=a.j)==null?void 0:Ij(c,function(){return Qj(a,b)},function(d){var e; +if(a.j instanceof Jj&&((e=b.hk)==null?0:e.JM))try{var f;(f=a.cache)==null||Cga(f,Qj(a,b),d,b.hk.pE,a.D)}catch(h){a.reportError(new qj(24,"ELX:write",h))}})}; +Kga=function(a,b){var c;if((c=b.hk)!=null&&c.UI)try{var d,e=(d=a.cache)==null?void 0:Dga(d,Qj(a,b),b.hk.pE);return e?ij(a.logger,function(){return g.Te(e,2)},"a"):void 0}catch(f){a.reportError(new qj(23,"RXO:read",f))}}; +Lga=function(a,b){if(!b.P$)throw new qj(29,"SDF:notready");return Ij(new Oj(a.logger,a.B,a.state),function(){return Qj(a,b)})}; +Mga=function(a,b){b=b instanceof qj?b:new qj(5,"TVD:error",b);a.reportError(b);return Ij(new Mj(a.logger,b),function(){return[]})}; +Qj=function(a,b){return b.EJ?b.EJ:b.Ar?ij(a.logger,function(){return b.EJ=Hga(b.Ar)},"c"):[]}; +Rj=function(a){this.sb=Zf(a)}; +Nga=function(a,b,c){this.B=a;this.j=b;this.C=c}; +Sj=function(a,b){b=b===void 0?{}:b;this.Eda=a;this.j=b}; +Tj=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e}; +Oga=function(a,b,c){c=c===void 0?{}:c;return new Nga(b,a,c)}; +Uj=function(a){this.sb=Zf(a)}; +Vj=function(a){this.sb=Zf(a)}; +Wj=function(a){this.sb=Zf(a)}; +Xj=function(a){this.sb=Zf(a)}; +Yj=function(a,b){this.N=a.Y$;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&Pga(this)}; +Sga=function(a,b){g.Nc(a.j,"complete",function(){if(aj(a.j)){var c=g.bj(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){Zj(a,new Bi(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Ffa(a.j.getStatus());ak(a,bk(a));c==0?Qga(a,d):Zj(a,new Bi(c,"Xhr succeeded but the status code is not 200"))}else{c=g.bj(a.j);d=bk(a);if(c){var e=Rga(a,c);c=e.code;var f=e.details; +e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;ak(a,d);Zj(a,new Bi(c,f,e))}})}; +Pga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){Zj(a,new Bi(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Qga(a,d)}if("2"in b)for(b=Rga(a,b["2"]),c=0;c-1&&a.splice(b,1)}; +Qga=function(a,b){for(var c=0;c>4&15).toString(16)+(a&15).toString(16)}; +nk=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b}; +rk=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Pi(a.C,function(b,c){a.add(Sd(b),c)}))}; +Yga=function(a,b){rk(a);b=sk(a,b);return a.j.has(b)}; +g.Zga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(sk(a,b),g.Tb(c)),a.B=a.B+c.length)}; +sk=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b}; +Vga=function(a,b){b&&!a.D&&(rk(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Zga(this,e,c))},a)); +a.D=b}; +g.$ga=function(a){var b="";g.qc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"}); +return b}; +g.tk=function(a,b,c){if(g.Bc(c))return a;c=g.$ga(c);if(typeof a==="string")return Ui(a,g.Rd(b),c);g.pk(a,b,c);return a}; +g.uk=function(a){g.O.call(this);this.B=a;this.j={}}; +aha=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h0&&(b[e]=d)},a); +return b}; +Aha=function(a){a=jl(a);var b=[];g.qc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))}); +return b}; +Cha=function(a){gl(a,"od",Bha);gl(a,"opac",kl).j=!0;gl(a,"sbeos",kl).j=!0;gl(a,"prf",kl).j=!0;gl(a,"mwt",kl).j=!0;gl(a,"iogeo",kl)}; +Dha=function(){this.j=this.Ju=null}; +ll=function(){}; +nl=function(){if(!ml())throw Error();}; +ml=function(){return!(!ol||!ol.performance)}; +pl=function(a){return a?a.passive&&Eha()?a:a.capture||!1:!1}; +ql=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,pl(d)),!0):!1}; +rl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0}; +Fha=function(){}; +Gha=function(){return(xb||yb)&&Ab?Ab.mobile:!sl()&&(Cb("iPod")||Cb("iPhone")||Cb("Android")||Cb("IEMobile"))}; +sl=function(){return(xb||yb)&&Ab?!Ab.mobile&&(Cb("iPad")||Cb("Android")||Cb("Silk")):Cb("iPad")||Cb("Android")&&!Cb("Mobile")||Cb("Silk")}; +tl=function(a){try{return!!a&&a.location.href!=null&&Raa(a,"foo")}catch(b){return!1}}; +ul=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}; +Iha=function(){var a=[];ul(Hha,function(b){a.push(b)}); +return a}; +Jha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""}; +Mha=function(){var a=Kha("IFRAME"),b={};g.cc(Lha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)}); +return b}; +Kha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())}; +Nha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,tl(a)&&(b=a);return b}; +Rha=function(a){a=a||vl();for(var b=new Oha(g.Ja.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Pha.test(f.url)&&(c=f);if(f.url&&!f.VQ){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Qha(b,e,c)}; +vl=function(){var a=g.Ja,b=[],c=null;do{var d=a;if(tl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Oha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Ja;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;ab?c.length:b;return 3997-b-a.C.length-1}; +zl=function(a,b){this.j=a;this.depth=b}; +Vha=function(){function a(l,m){return l==null?m:l} +var b=vl(),c=Math.max(b.length-1,0),d=Rha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new zl([f.url,f.VQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new zl([e.url,2],0));b.url&&b!=f&&h.push(new zl([b.url,0],a(b.depth,c)));d=g.Al(h,function(l,m){return h.slice(0,h.length-m)}); +!b.url||(f||e)&&b!=f||(e=Jha(b.url))&&d.push([new zl([e,1],a(b.depth,c))]);d.push([]);return g.Al(d,function(l){return Uha(c,l)})}; +Uha=function(a,b){g.Bl(b,function(e){return e.depth>=0}); +var c=Cl(b,function(e,f){return Math.max(e,f.depth)},-1),d=Naa(c+2); +d[0]=a;g.cc(b,function(e){return d[e.depth+1]=e.j}); +return d}; +Wha=function(){var a=a===void 0?Vha():a;return a.map(function(b){return yl(b)})}; +Xha=function(a){var b=!1;b=b===void 0?!1:b;ol.google_image_requests||(ol.google_image_requests=[]);var c=Kha("IMG",ol.document);b&&(c.attributionSrc="");c.src=a;ol.google_image_requests.push(c)}; +Dl=function(a){var b="ih";if(a.ih&&a.hasOwnProperty(b))return a.ih;var c=new a;a.ih=c;a.hasOwnProperty(b);return c}; +El=function(){this.B=new Fha;this.j=ml()?new nl:new ll}; +Yha=function(){Fl();var a=ol.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof ol.setInterval==="function"&&typeof ol.clearInterval==="function"&&typeof ol.setTimeout==="function"&&typeof ol.clearTimeout==="function")}; +Zha=function(){Fl();return Wha()}; +$ha=function(){}; +Fl=function(){var a=Dl($ha);if(!a.j){if(!ol)throw Error("Context has not been set and window is undefined.");a.j=Dl(El)}return a.j}; +Gl=function(a){this.sb=Zf(a)}; +aia=function(a){this.C=a;this.j=-1;this.B=this.D=0}; +Hl=function(a,b){return function(){var c=g.Ca.apply(0,arguments);if(a.j>-1)return b.apply(null,g.x(c));try{return a.j=a.C.j.now(),b.apply(null,g.x(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}}; +bia=function(a,b){this.B=a;this.C=b;this.j=new aia(a)}; +cia=function(){this.j={}}; +eia=function(){var a=Il().flags,b=dia;a=a.j[b.key];if(b.valueType==="proto"){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue}; +iia=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Lc=new fl;gl(this.Lc,"mv",fia).j=!0;gl(this.Lc,"omid",kl);gl(this.Lc,"epoh",kl).j=!0;gl(this.Lc,"epph",kl).j=!0;gl(this.Lc,"umt",kl).j=!0;gl(this.Lc,"phel",kl).j=!0;gl(this.Lc,"phell",kl).j=!0;gl(this.Lc,"oseid",gia).j=!0;var a=this.Lc;a.j.sloi||(a.j.sloi=new dl);a.j.sloi.j=!0;gl(this.Lc,"mm",Jl);gl(this.Lc,"ovms",hia).j=!0;gl(this.Lc,"xdi",kl).j=!0;gl(this.Lc,"amp",kl).j=!0;gl(this.Lc,"prf",kl).j=!0;gl(this.Lc,"gtx",kl).j=!0;gl(this.Lc, +"mvp_lv",kl).j=!0;gl(this.Lc,"ssmol",kl).j=!0;gl(this.Lc,"fmd",kl).j=!0;gl(this.Lc,"gen204simple",kl);this.j=new bia(Fl(),this.Lc);this.D=!1;this.flags=new cia}; +Il=function(){return Dl(iia)}; +jia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof wl)var e=c;else e=new wl,ul(c,function(h,l){var m=e,n=m.D++;h=xl(l,h);m.j.push(n);m.B[n]=h}); +var f=e.Ce(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Fl(),Xha(f))}catch(h){}}; +kia=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c}; +lia=function(){var a=a===void 0?g.Ja:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Xa()}; +mia=function(){var a=a===void 0?g.Ja:a;return(a=a.performance)&&a.now?a.now():null}; +nia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +Ll=function(){var a=window;this.events=[];this.B=a||g.Ja;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=Kl()||(b!=null?b:Math.random()<1)}; +oia=function(a){a&&Ml&&Kl()&&(Ml.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Ml.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))}; +pia=function(){var a=Nl;this.j=Ol;this.XX="jserror";this.QT=!0;this.oO=null;this.B=this.qR;this.ud=a===void 0?null:a}; +qia=function(a,b,c){var d=Pl;return Hl(Il().j.j,function(){try{if(d.ud&&d.ud.j){var e=d.ud.start(a.toString(),3);var f=b();d.ud.end(e)}else f=b()}catch(l){var h=d.QT;try{oia(e),h=d.B(a,new Ql(Rl(l)),void 0,c)}catch(m){d.qR(217,m)}if(!h)throw l;}return f})()}; +Sl=function(a,b,c,d){return Hl(Il().j.j,function(){var e=g.Ca.apply(0,arguments);return qia(a,function(){return b.apply(c,e)},d)})}; +Rl=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n");break a}catch(e){b=c;break a}b=void 0}return b}; +Ql=function(a){kia.call(this,Error(a),{message:a})}; +ria=function(){ol&&typeof ol.google_measure_js_timing!="undefined"&&(ol.google_measure_js_timing||Nl.disable())}; +sia=function(a){Pl.oO=function(b){g.cc(a,function(c){c(b)})}}; +tia=function(a,b){return qia(a,b)}; +Tl=function(a,b){return Sl(a,b)}; +Ul=function(a,b,c,d){Pl.qR(a,b,c,d)}; +Vl=function(){return Date.now()-uia}; +via=function(){var a=Il().C,b=Wl>=0?Vl()-Wl:-1,c=Xl?Vl()-Yl:-1,d=Zl>=0?Vl()-Zl:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];Ul(637,Error(),.001);var f=b;c!=-1&&c1500&&d<4E3?500:h}; +$l=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}; +cm=function(a){return a.right-a.left}; +dm=function(a,b,c){b instanceof g.Gd?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a}; +wia=function(a,b,c){var d=new $l(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c}; +em=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l}; +yia=function(a){var b=a!==a.top,c=a.top===Nha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Zaa(xia,function(h){return typeof f[h]==="function"})||(e=1)); +return{Jo:f,compatibility:e,qea:d}}; +zia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"}; +Aia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Id(b.innerWidth,b.innerHeight)).round():Wba(b||window).round()}catch(d){return new g.Id(-12245933,-12245933)}}; +fm=function(a,b,c){try{a&&(b=b.top);var d=Aia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new $l(f,f,f,f);var h=Yba(Zd(b.document).j),l=h.x,m=h.y;return new $l(m,l+f,m+e,l)}catch(n){return new $l(-12245933,-12245933,-12245933,-12245933)}}; +g.gm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}; +hm=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; +g.jm=function(a,b,c){if(typeof b==="string")(b=im(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=im(c,d);f&&(c.style[f]=e)}}; +im=function(a,b){var c=Bia[b];if(!c){var d=Qba(b);c=d;a.style[d]===void 0&&(d=(g.lc?"Webkit":km?"Moz":g.lm?"ms":null)+Sba(d),a.style[d]!==void 0&&(c=d));Bia[b]=c}return c}; +g.mm=function(a,b){var c=a.style[Qba(b)];return typeof c!=="undefined"?c:a.style[im(a,b)]||""}; +nm=function(a,b){var c=Yd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""}; +om=function(a,b){return nm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}; +g.qm=function(a,b,c){if(b instanceof g.Gd){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.pm(d,!1);a.style.top=g.pm(b,!1)}; +rm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; +Cia=function(a){var b=Yd(a),c=om(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=om(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null}; +g.sm=function(a){var b=Yd(a),c=new g.Gd(0,0);if(a==(b?Yd(b):document).documentElement)return c;a=rm(a);b=Yba(Zd(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c}; +Eia=function(a,b){var c=new g.Gd(0,0),d=fe(Yd(a));if(!Raa(d,"parent"))return c;do{var e=d==b?g.sm(a):Dia(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.tm=function(a,b){a=Fia(a);b=Fia(b);return new g.Gd(a.x-b.x,a.y-b.y)}; +Dia=function(a){a=rm(a);return new g.Gd(a.left,a.top)}; +Fia=function(a){if(a.nodeType==1)return Dia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Gd(a.clientX,a.clientY)}; +g.um=function(a,b,c){if(b instanceof g.Id)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.pm(b,!0);a.style.height=g.pm(c,!0)}; +g.pm=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a}; +g.Am=function(a){var b=Gia;if(om(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}; +Gia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.lc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=rm(a),new g.Id(a.right-a.left,a.bottom-a.top)):new g.Id(b,c)}; +g.Bm=function(a,b){a.style.display=b?"":"none"}; +Cm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b}; +Hia=function(a){return new $l(a.top,a.right,a.bottom,a.left)}; +Iia=function(a){var b=a.top||0,c=a.left||0;return new $l(b,c+(a.width||0),b+(a.height||0),c)}; +Dm=function(a){return a!=null&&a>=0&&a<=1}; +Jia=function(){var a=g.wb();return a?Em("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return sb(a,b)})||sb(a,"OMI/")&&!sb(a,"XiaoMi/")?!0:sb(a,"Presto")&&sb(a,"Linux")&&!sb(a,"X11")&&!sb(a,"Android")&&!sb(a,"Mobi"):!1}; +Kia=function(){this.C=!tl(ol.top);this.isMobileDevice=sl()||Gha();var a=vl();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Ni(a[a.length-1].url)||"":"";this.j=new $l(0,0,0,0);this.D=new g.Id(0,0);this.G=new g.Id(0,0);this.N=new $l(0,0,0,0);this.frameOffset=new g.Gd(0,0);this.K=0;this.Z=!1;this.B=!(!ol||!yia(ol).Jo);this.update(ol)}; +Lia=function(a,b){b&&b.screen&&(a.D=new g.Id(b.screen.width,b.screen.height))}; +Mia=function(a,b){a:{var c=a.j?new g.Id(cm(a.j),a.j.getHeight()):new g.Id(0,0);b=b===void 0?ol:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth); +m>c.height?m>p?(d=m,e=n):(d=p,e=q):m0||a.Z)return!0;a=Fl().B.isVisible();var b=rl(Gm)===0;return a||b}; +Fm=function(){return Dl(Kia)}; +Im=function(a){this.C=a;this.B=0;this.j=null}; +Jm=function(a,b,c){this.C=a;this.Ra=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new wia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Ga="uk";this.Fa=!1;this.K=!0}; +Km=function(a,b){g.Mb(a.G,b)||(a.G.push(b),b.wA(a.j),b.mu(a.D),b.Hq()&&(a.Y=!0))}; +Nia=function(a){a=a.j;a.BV();a.AV();var b=Fm();b.N=fm(!1,a.C,b.isMobileDevice);Mia(Fm(),a.C);a.D.j=a.JY()}; +Oia=function(a){a.Y=a.G.length?Em(a.G,function(b){return b.Hq()}):!1}; +Pia=function(a){var b=g.Tb(a.G);g.cc(b,function(c){c.mu(a.D)})}; +Lm=function(a){var b=g.Tb(a.G);g.cc(b,function(c){c.wA(a.j)}); +a.j!=a||Pia(a)}; +Mm=function(a,b,c,d){this.element=a;this.j=new $l(0,0,0,0);this.D=new $l(0,0,0,0);this.B=b;this.Lc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new em(b.D,this.element,this.j,new $l(0,0,0,0),0,0,Vl(),0)}; +Nm=function(a){this.G=!1;this.j=a;this.D=function(){}}; +Qia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b}; +Ria=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +Sia=function(a,b){return a.Cb.C?!1:a.Bb.B?!1:typeof a.jtypeof b.j?!1:a.j0?d[c]-d[c-1]:d[c]})}; +Ym=function(){this.B=new Sm;this.Ra=new Rm;this.ra=this.N=-1;this.Ya=1E3;this.Xa=new Sm([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Ba=-1}; +Zm=function(a,b){return bja(a.B,b===void 0?!0:b)}; +$m=function(a,b,c,d){var e=e===void 0?!1:e;c=Sl(d,c);ql(a,b,c,{capture:e})}; +bn=function(a,b){b=an(b);return b===0?0:an(a)/b}; +an=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}; +eja=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=a.parentElement||a){var d=Yd(a),e=d&&fe(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1}; +fja=function(a,b,c){if(!a||!b)return!1;b=dm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;tl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!zia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Yd(c))&&b.defaultView&&b.defaultView.frameElement)&&eja(b,a);var d=a===c;a=!d&&a&&se(a,function(e){return e===c}); +return!(b||d||a)}; +gja=function(a,b,c,d){return Fm().C?!1:cm(a)<=0||a.getHeight()<=0?!0:c&&d?tia(208,function(){return fja(a,b,c)}):!1}; +cn=function(a,b,c){g.O.call(this);this.position=hja.clone();this.bL=this.cK();this.lR=-2;this.timeCreated=Date.now();this.W2=-1;this.kq=b;this.SK=null;this.KE=!1;this.sL=null;this.opacity=-1;this.requestSource=c;this.Rea=!1;this.rR=function(){}; +this.u3=function(){}; +this.qk=new Dha;this.qk.Ju=a;this.qk.j=a;this.vu=!1;this.Rw={BR:null,AR:null};this.v2=!0;this.RH=null;this.IA=this.j$=!1;Il().K++;this.wi=this.aQ();this.R2=-1;this.Zf=null;this.hasCompleted=this.g$=!1;this.Lc=new fl;Cha(this.Lc);ija(this);this.requestSource==1?hl(this.Lc,"od",1):hl(this.Lc,"od",0)}; +ija=function(a){a=a.qk.Ju;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:jja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Rba()):!!a.getAttribute("data-"+Rba());b&&(Fm().B=!0)}; +dn=function(a,b){b!=a.IA&&(a.IA=b,a=Fm(),b?a.K++:a.K>0&&a.K--)}; +kja=function(a,b){if(a.Zf){if(b.getName()===a.Zf.getName())return;a.Zf.dispose();a.Zf=null}b=b.create(a.qk.j,a.Lc,a.Hq());if(b=b!=null&&b.CN()?b:null)a.Zf=b}; +lja=function(a,b,c){if(!a.SK||a.kq==-1||b.B===-1||a.SK.B===-1)return 0;a=b.B-a.SK.B;return a>c?0:a}; +mja=function(a,b,c){if(a.Zf){a.Zf.Et();var d=a.Zf.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.sL=new g.Gd(h.left-f.left,h.top-f.top)}f=a.EM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.yY(d);a.SK=d;a.Ta(f,b,c,!1,h,e,d.Z)}}; +nja=function(a){if(a.KE&&a.RH){var b=il(a.Lc,"od")==1,c=Fm().j,d=a.RH,e=a.Zf?a.Zf.getName():"ns",f=a.sL,h=new g.Id(cm(c),c.getHeight());c=a.EM();a={zea:e,sL:f,rfa:h,EM:c,Be:a.wi.Be,mfa:b};if(b=d.B){b.Et();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Gd(h.left-f.left,h.top-f.top),l=new g.Id(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={zea:b.getName(),sL:h,rfa:l,EM:c,mfa:!1,Be:e}}else c=null;c&&Zia(d,a,c)}}; +oja=function(a,b,c){b&&(a.rR=b);c&&(a.u3=c)}; +g.en=function(){}; +g.fn=function(a){return{value:a,done:!1}}; +pja=function(){this.D=this.j=this.C=this.B=this.G=0}; +qja=function(a){var b={};var c=g.Xa()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b}; +rja=function(){al.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +gn=function(a){return Dm(a.volume)&&a.volume>0}; +hn=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d; +return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return sja(f,b,c)}}; +jn=function(a,b){return function(c){return b(c)?c[a]:void 0}}; +tja=function(a){return function(b){for(var c=0;c0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})}; +uja=function(){this.B=this.j=""}; +vja=function(){}; +ln=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.Hc(c,a);return Qm(Pm(new Om,c))}; +wja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)this.B[b][1]>0&&(this.j[b]=0);this.C=0}; +mn=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)}; +xja=function(a){var b=g.xc(a.B),c=0,d;for(d in a.j)g.Mb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c}; +yja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b}; +nn=function(){this.j=this.B=0}; +on=function(){Ym.call(this);this.C=new Rm;this.Ka=this.Y=this.Fa=0;this.Z=-1;this.fb=new Rm;this.G=new Rm;this.j=new Sm;this.K=this.D=-1;this.qa=new Rm;this.Ya=2E3;this.Ma=new nn;this.Wa=new nn;this.Va=new nn}; +pn=function(a,b,c){var d=a.Ka;Xl||c||a.Z==-1||(d+=b-a.Z);return d}; +zja=function(){this.C=!1}; +qn=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0}; +rn=function(a,b){qn.call(this,a,b);this.N=[]}; +Aja=function(){}; +sn=function(){}; +tn=function(a,b,c,d){Mm.call(this,a,b,c,d)}; +un=function(a,b,c){Mm.call(this,null,a,b,c);this.K=a.isActive();this.G=0}; +vn=function(a){return[a.top,a.left,a.bottom,a.right]}; +wn=function(a,b,c,d,e,f){f=f===void 0?new sn:f;cn.call(this,b,c,d);this.GS=e;this.mP=0;this.Bi={};this.Kg=new wja;this.M3={};this.ij="";this.Ya=null;this.Ab=!1;this.j=[];this.us=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.ra=this.qa=0;this.Ga=-1;this.fb=this.Xa=!1;this.Fa=this.Z=this.B=this.JC=this.Jb=0;new Sm;this.Ma=this.Va=0;this.Wa=-1;this.Hk=0;this.N=g.Zc;this.Ba=[this.cK()];this.Ob=2;this.ez={};this.ez.pause="p";this.ez.resume="r";this.ez.skip="s";this.ez.mute="m";this.ez.unmute= +"um";this.ez.exitfullscreen="ef";this.G=null;this.ob=this.yb=!1;this.Kb=Math.floor(Date.now()/1E3-1704067200);this.Ka=0}; +xn=function(a){a.hasCompleted=!0;a.Hk!=0&&(a.Hk=3)}; +yn=function(a){return a===void 0?a:Number(a)?Cm(a,3):0}; +zn=function(a,b){return a.Ba[b!=null&&bMath.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Wa==-1&&d>0&&(a.Wa=Zl>=0?Vl()-Zl:-1);a.qa=c;return e}; +Dja=function(a,b){Em(a.K,function(c){return c.D==b.D})||a.K.push(b)}; +Eja=function(a){var b=Vm(a.Cj().j,1);return An(a,b)}; +An=function(a,b,c){return b>=15E3?!0:a.Xa?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Ga>0?b>=a.Ga:!1:!1}; +Fja=function(a){var b=Cm(a.wi.Be,2),c=a.Kg.C,d=a.wi,e=zn(a),f=yn(e.D),h=yn(e.K),l=yn(d.volume),m=Cm(e.N,2),n=Cm(e.ra,2),p=Cm(d.Be,2),q=Cm(e.Ba,2),r=Cm(e.Ga,2);d=Cm(d.Tk,2);a=a.Zt().clone();a.round();e=Zm(e,!1);return{qfa:b,FF:c,fL:f,WK:h,iE:l,gL:m,YK:n,Be:p,iL:q,ZK:r,Tk:d,position:a,kL:e}}; +Hja=function(a,b){Gja(a.j,b,function(){return{qfa:0,FF:void 0,fL:-1,WK:-1,iE:-1,gL:-1,YK:-1,Be:-1,iL:-1,ZK:-1,Tk:-1,position:void 0,kL:[]}}); +a.j[b]=Fja(a)}; +Gja=function(a,b,c){for(var d=a.length;d0?1:0;p.atos=Tm(m.j);p.ssb=Tm(m.Xa,!1);p.amtos=bja(m.j,!1);p.uac=a.Jb;p.vpt=m.C.j;n=="nio"&& +(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=An(a,m.C.j,!0)?1:0;p.efpf=a.Ob;if(n=="gsv"||n=="nis")n=a.Zf,n.G>0&&(p.nnut=n.G);p.tcm=Bja(a);p.nmt=a.Va;p.bt=a.Ma;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Kg.C;a.j.length>=1&&(p.i0=a.j[0].FF,p.a0=[a.j[0].iE],p.c0=[a.j[0].Be],p.ss0=[a.j[0].Tk],n=a.j[0].position,p.p0=n?vn(n):void 0);a.j.length>=2&&(p.i1=a.j[1].FF,p.a1=Dn(a.j[1].fL,a.j[1].iE,a.j[1].WK),p.c1=Dn(a.j[1].gL,a.j[1].Be,a.j[1].YK),p.ss1=Dn(a.j[1].iL,a.j[1].Tk,a.j[1].ZK),n=a.j[1].position, +p.p1=n?vn(n):void 0,p.mtos1=a.j[1].kL);a.j.length>=3&&(p.i2=a.j[2].FF,p.a2=Dn(a.j[2].fL,a.j[2].iE,a.j[2].WK),p.c2=Dn(a.j[2].gL,a.j[2].Be,a.j[2].YK),p.ss2=Dn(a.j[2].iL,a.j[2].Tk,a.j[2].ZK),n=a.j[2].position,p.p2=n?vn(n):void 0,p.mtos2=a.j[2].kL);a.j.length>=4&&(p.i3=a.j[3].FF,p.a3=Dn(a.j[3].fL,a.j[3].iE,a.j[3].WK),p.c3=Dn(a.j[3].gL,a.j[3].Be,a.j[3].YK),p.ss3=Dn(a.j[3].iL,a.j[3].Tk,a.j[3].ZK),n=a.j[3].position,p.p3=n?vn(n):void 0,p.mtos3=a.j[3].kL);p.cs=yja(a.Kg);b&&(p.ic=xja(a.Kg),p.dvpt=m.C.B,p.dvs= +Xm(m.B,.5),p.dfvs=Xm(m.B,1),p.davs=Xm(m.j,.5),p.dafvs=Xm(m.j,1),c&&(m.C.B=0,cja(m.B),cja(m.j)),a.hs()&&(p.dtos=m.Fa,p.dav=m.Y,p.dtoss=a.mP+1,c&&(m.Fa=0,m.Y=0,a.mP++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[cm(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.JC&&(p.vds=a.JC);if(a.K.length>0||a.us)b=g.Tb(a.K),a.us&&b.push(a.us),p.pings=g.Al(b,function(q){return q.toString()}); +b=g.Al(g.kn(a.K,function(q){return q.K()}),function(q){return q.getId()}); +Jaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Fa&&(p.vmiec=a.Fa);p.avms=a.Zf?a.Zf.getName():"ns";a.Zf&&g.Hc(p,a.Zf.Vt());d?(p.c=Cm(a.wi.Be,2),p.ss=Cm(a.wi.Tk,2)):p.tth=Vl()-Lja;p.mc=Cm(m.ra,2);p.nc=Cm(m.N,2);p.mv=yn(m.K);p.nv=yn(m.D);p.lte=Cm(a.lR,2);d=zn(a,e);Zm(m);p.qmtos=Zm(d);p.qnc=Cm(d.N,2);p.qmv=yn(d.K);p.qnv=yn(d.D);p.qas=d.D>0?1:0;p.qi=a.ij;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=Aha(l.Lc);l.length&&(p.veid=l);a.G&&g.Hc(p, +qja(a.G));p.avas=a.QJ();p.vs=a.MY();p.co=Mja(a);return p}; +Ija=function(a,b){if(g.Mb(Nja,b))return!0;var c=a.Bi[b];return c!==void 0?(a.Bi[b]=!0,!c):!1}; +Mja=function(a){var b=a.Ka.toString(10).padStart(2,"0");b=""+a.Kb+b;a.Ka<99&&a.Ka++;return b}; +Pja=function(){this.j={};var a=fe();En(this,a,document);var b=Oja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)En(this,c,c.document);En(this,a.top,a.top.document)}}catch(d){}}; +Oja=function(){var a=document.documentElement;try{if(!tl(fe().top))return"2";var b=[],c=fe(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}}; +En=function(a,b,c){$m(c,"mousedown",function(){return Qja(a)},301); +$m(b,"scroll",function(){return Rja(a)},302); +$m(c,"touchmove",function(){return Sja(a)},303); +$m(c,"mousemove",function(){return Tja(a)},304); +$m(c,"keydown",function(){return Uja(a)},305)}; +Qja=function(a){g.qc(a.j,function(b){b.C>1E5||++b.C})}; +Rja=function(a){g.qc(a.j,function(b){b.j>1E5||++b.j})}; +Sja=function(a){g.qc(a.j,function(b){b.j>1E5||++b.j})}; +Uja=function(a){g.qc(a.j,function(b){b.B>1E5||++b.B})}; +Tja=function(a){g.qc(a.j,function(b){b.D>1E5||++b.D})}; +Vja=function(){this.j=[];this.B=[]}; +Fn=function(a,b){return g.Kb(a.j,function(c){return c.ij==b})}; +Wja=function(a,b){return b?g.Kb(a.j,function(c){return c.qk.Ju==b}):null}; +Xja=function(a,b){return g.Kb(a.B,function(c){return c.Wp()==2&&c.ij==b})}; +Hn=function(){var a=Gn;return a.j.length==0?a.B:a.B.length==0?a.j:g.Sb(a.B,a.j)}; +Yja=function(a,b){a=b.Wp()==1?a.j:a.B;var c=Jb(a,function(d){return d==b}); +return c!=-1?(a.splice(c,1),b.Zf&&b.Zf.DI(),b.dispose(),!0):!1}; +Zja=function(a){var b=Gn;if(Yja(b,a)){switch(a.Wp()){case 0:var c=function(){return null}; +case 2:c=function(){return Xja(b,a.ij)}; +break;case 1:c=function(){return Fn(b,a.ij)}}for(var d=c();d;d=c())Yja(b,d)}}; +$ja=function(a){var b=Gn;a=g.kn(a,function(c){return!Wja(b,c.qk.Ju)}); +b.j.push.apply(b.j,g.x(a))}; +aka=function(a){var b=[];g.cc(a,function(c){Em(Gn.j,function(d){return d.qk.Ju===c.qk.Ju&&d.ij===c.ij})||(Gn.j.push(c),b.push(c))})}; +In=function(){this.j=this.B=null}; +bka=function(a,b){function c(d,e){b(d,e)} +if(a.B==null)return!1;a.j=g.Kb(a.B,function(d){return d!=null&&d.CV()}); +a.j&&(a.j.init(c)?Nia(a.j.j):b(a.j.j.kA(),a.j));return a.j!=null}; +Jn=function(a){a=cka(a);Nm.call(this,a.length?a[a.length-1]:new Jm(ol,0));this.C=a;this.B=null}; +cka=function(a){if(!a.length)return[];a=(0,g.kn)(a,function(c){return c!=null&&c.sD()}); +for(var b=1;bc.time?b:c},a[0])}; +Nn=function(a){a=a===void 0?ol:a;Nm.call(this,new Jm(a,2))}; +On=function(){var a=gka();Jm.call(this,ol.top,a,"geo")}; +gka=function(){Il();var a=Fm();return a.C||a.B?0:2}; +hka=function(){}; +Xn=function(){this.done=!1;this.j={d7:0,MW:0,npa:0,RX:0,HQ:-1,I7:0,H7:0,J7:0,xea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Im(this)}; +Zn=function(){var a=Yn;a.K||(a.K=!0,ika(a,function(){return a.D.apply(a,g.x(g.Ca.apply(0,arguments)))}),a.D())}; +jka=function(){Dl(hka);var a=Dl(In);a.j!=null&&a.j.j?Nia(a.j.j):Fm().update(ol)}; +$n=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{jka();var d=Vl();Il().G=d;if(Dl(In).j!=null)for(var e=0;e=0?Vl()-Wl:-1,l=Vl();e.j.HQ==-1&&(h=l);var m=Fm(),n=Il(),p=jl(n.Lc),q=Hn();try{if(q.length>0){var r=m.j;r&&(p.bs=[cm(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);ol.screen&&(p.scs=[ol.screen.width,ol.screen.height])}else p.url=encodeURIComponent(ol.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512))); +p.tt=h;p.pt=Wl;p.bin=n.B;ol.google_osd_load_pub_page_exp!==void 0&&(p.olpp=ol.google_osd_load_pub_page_exp);p.deb=[1,e.j.d7,e.j.MW,e.j.RX,e.j.HQ,0,e.B.B,e.j.I7,e.j.H7,e.j.J7,e.j.xea,-1].join(";");p.tvt=lka(e,l);m.B&&(p.inapp=1);if(ol!==null&&ol!=ol.top){q.length>0&&(p.iframe_loc=encodeURIComponent(ol.location.href.substring(0,512)));var u=m.N;p.is=[cm(u),u.getHeight()]}}catch(y){p.error=1}Yn.C=p}r=g.Fc(Yn.C);t=Il().j;il(t.C,"prf")==1?(u=new Gl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=sg(u,1,Df(e.D+ +f),0),e=t.j,u=sg(u,5,Gf(e.j>-1?e.B+1:e.B),0),u=sg(u,2,Lf(t.B.j.C()),"0"),u=sg(u,3,Lf(t.B.j.B()),"0"),t=sg(u,4,Lf(t.B.j.j()),"0"),u={},t=(u.pf=g.Te(t.j()),u)):t={};g.Hc(r,t);g.Hc(b,d,c,r,a())}])}; +oka=function(){var a=nka||ol;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("&")}; +ao=function(){var a="youtube.player.web_20240730_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240730_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240730_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240730_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240730_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null}; +pka=function(){return"av.default_js".includes("ima_html5_sdk")?{Kp:"ima",Op:null}:"av.default_js".includes("ima_native_sdk")?{Kp:"nima",Op:null}:"av.default_js".includes("admob-native-video-javascript")?{Kp:"an",Op:null}:"youtube.player.web_20240730_01_RC00".includes("cast_js_sdk")?{Kp:"cast",Op:ao()}:"youtube.player.web_20240730_01_RC00".includes("youtube.player.web")?{Kp:"yw",Op:ao()}:"youtube.player.web_20240730_01_RC00".includes("outstream_web_client")?{Kp:"out",Op:ao()}:"youtube.player.web_20240730_01_RC00".includes("drx_rewarded_web")? +{Kp:"r",Op:ao()}:"youtube.player.web_20240730_01_RC00".includes("gam_native_web_video")?{Kp:"n",Op:ao()}:"youtube.player.web_20240730_01_RC00".includes("admob_interstitial_video")?{Kp:"int",Op:ao()}:{Kp:"j",Op:null}}; +eo=function(a,b){var c={sv:"963"};bo!==null&&(c.v=bo);c.cb=qka;c.nas=Gn.j.length;c.msg=a;b!==void 0&&(a=rka(b))&&(c.e=co[a]);return c}; +fo=function(a){return nb(a,"custom_metric_viewable")}; +rka=function(a){var b=fo(a)?"custom_metric_viewable":a.toLowerCase();return Ac(Bn,function(c){return c==b})}; +ska=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"}; +vka=function(a){try{var b=a.split(",");return b.length>g.xc(tka).length?null:Cl(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||uka[d[0]]===void 0||!uka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}}; +wka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?Wm(b.j,a.j):Wm(b.B,a.j);case "tos":return a.B?Vm(b.j,a.j):Vm(b.B,a.j)}return 0}; +go=function(a,b,c,d){qn.call(this,b,d);this.N=a;this.Z=c}; +ho=function(){}; +io=function(a){qn.call(this,"fully_viewable_audible_half_duration_impression",a)}; +jo=function(a){this.j=a}; +ko=function(a,b){qn.call(this,a,b)}; +lo=function(a){rn.call(this,"measurable_impression",a)}; +mo=function(){jo.apply(this,arguments)}; +no=function(a,b,c){un.call(this,a,b,c)}; +oo=function(a){a=a===void 0?ol:a;Nm.call(this,new Jm(a,2))}; +po=function(a,b,c){un.call(this,a,b,c)}; +qo=function(a){a=a===void 0?ol:a;Nm.call(this,new Jm(a,2))}; +ro=function(){Jm.call(this,ol,2,"mraid");this.Ma=0;this.ra=this.Ba=!1;this.N=null;this.B=yia(this.C);this.D.j=new $l(0,0,0,0);this.Ka=!1}; +so=function(a,b,c){a.tv("addEventListener",b,c)}; +Aka=function(a){Il().D=!!a.tv("isViewable");so(a,"viewableChange",xka);a.tv("getState")==="loading"?so(a,"ready",yka):zka(a)}; +zka=function(a){typeof a.B.Jo.AFMA_LIDAR==="string"?(a.Ba=!0,Bka(a)):(a.B.compatibility=3,a.N="nc",a.Zi("w"))}; +Bka=function(a){a.ra=!1;var b=il(Il().Lc,"rmmt")==1,c=!!a.tv("isViewable");(b?!c:1)&&Fl().setTimeout(Tl(524,function(){a.ra||(Cka(a),Ul(540,Error()),a.N="mt",a.Zi("w"))}),500); +Dka(a);so(a,a.B.Jo.AFMA_LIDAR,Eka)}; +Dka=function(a){var b=il(Il().Lc,"sneio")==1,c=a.B.Jo.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Jo.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Jo.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Jo.AFMA_LIDAR_EXP_1=!b)}; +Cka=function(a){a.tv("removeEventListener",a.B.Jo.AFMA_LIDAR,Eka);a.Ba=!1}; +Fka=function(a,b){if(a.tv("getState")==="loading")return new g.Id(-1,-1);b=a.tv(b);if(!b)return new g.Id(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Id(-1,-1):new g.Id(a,b)}; +yka=function(){try{var a=Dl(ro);a.tv("removeEventListener","ready",yka);zka(a)}catch(b){Ul(541,b)}}; +Eka=function(a,b){try{var c=Dl(ro);c.ra=!0;var d=a?new $l(a.y,a.x+a.width,a.y+a.height,a.x):new $l(0,0,0,0);var e=Vl(),f=Hm();var h=new wia(e,f,c);h.j=d;h.volume=b;c.mu(h)}catch(l){Ul(542,l)}}; +xka=function(a){var b=Il(),c=Dl(ro);a&&!b.D&&(b.D=!0,c.Ka=!0,c.N&&c.Zi("w",!0))}; +to=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.S9,a.firstquartile=this.N9,a.midpoint=this.P9,a.thirdquartile=this.T9,a.complete=this.K9,a.error=this.L9,a.pause=this.FS,a.resume=this.M1,a.skip=this.R9,a.viewable_impression=this.Xp,a.mute=this.GC,a.unmute=this.GC,a.fullscreen=this.O9,a.exitfullscreen=this.M9,a.fully_viewable_audible_half_duration_impression=this.Xp,a.measurable_impression=this.Xp,a.abandon=this.FS,a.engagedview=this.Xp,a.impression=this.Xp,a.creativeview= +this.Xp,a.progress=this.GC,a.custom_metric_viewable=this.Xp,a.bufferstart=this.FS,a.bufferfinish=this.M1,a.audio_measurable=this.Xp,a.audio_audible=this.Xp,a);a={};this.N=(a.overlay_resize=this.Q9,a.abandon=this.wQ,a.close=this.wQ,a.collapse=this.wQ,a.overlay_unmeasurable_impression=function(b){return Cn(b,"overlay_unmeasurable_impression",Hm())},a.overlay_viewable_immediate_impression=function(b){return Cn(b,"overlay_viewable_immediate_impression",Hm())},a.overlay_unviewable_impression=function(b){return Cn(b, +"overlay_unviewable_impression",Hm())},a.overlay_viewable_end_of_session_impression=function(b){return Cn(b,"overlay_viewable_end_of_session_impression",Hm())},a); +Il().B=3;Gka(this)}; +uo=function(a,b,c,d){a=a.iH(null,d,!0,b);a.D=c;$ja([a]);return a}; +Hka=function(a,b,c){yha(b);var d=a.j;g.cc(b,function(e){var f=g.Al(e.criteria,function(h){var l=vka(h);if(l==null)h=null;else if(h=new ska,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=raa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h}); +Em(f,function(h){return h==null})||Dja(c,new go(e.id,e.event,f,d))})}; +Ika=function(){var a=[],b=Il();a.push(Dl(On));il(b.Lc,"mvp_lv")&&a.push(Dl(ro));b=[new oo,new qo];b.push(new Jn(a));b.push(new Nn(ol));return b}; +Jka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Vl(),c=Il(),d=Fm();Wl=b;c.C=79463069;a.B!=="o"&&(nka=Nha(ol));if(Yha()){Yn.j.MW=0;Yn.j.HQ=Vl()-b;var e=Ika(),f=Dl(In);f.B=e;bka(f,function(){vo()})?Yn.done||(kka(),Km(f.j.j,a),Zn()):d.C?vo():Zn()}else wo=!0}catch(h){throw Gn.reset(),h; +}}}; +yo=function(a){Yn.B.cancel();xo=a;Yn.done=!0}; +zo=function(a){if(a.B)return a.B;var b=Dl(In).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B}; +Ao=function(a,b,c){if(a.j==null)return b.JC|=4,!1;a=Kka(a.j,c,b);b.JC|=a;return a==0}; +vo=function(){var a=[new Nn(ol)],b=Dl(In);b.B=a;bka(b,function(){yo("i")})?Yn.done||(kka(),Zn()):yo("i")}; +Lka=function(a,b){if(!a.Ab){var c=Cn(a,"start",Hm());c=a.GS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="963";bo!==null&&(d.v=bo);Pi(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)}); +b=oka();Pi(b,function(e,f){return d[e]=encodeURIComponent(f)}); +b="//pagead2.googlesyndication.com/pagead/gen_204?"+Qm(Pm(new Om,d));Xia(b);a.Ab=!0}}; +Bo=function(a,b,c){$n(Yn,[a],!Hm());Hja(a,c);c!=4&&Gja(a.Ba,c,a.cK);return Cn(a,b,Hm())}; +Gka=function(a){mka(function(){var b=Mka();a.B!=null&&(b.sdk=a.B);var c=Dl(In);c.j!=null&&(b.avms=c.j.getName());return b})}; +Nka=function(a,b,c,d){var e=Wja(Gn,c);e!==null&&e.ij!==b&&(a.xJ(e),e=null);e||(b=a.iH(c,Vl(),!1,b),Gn.B.length==0&&(Il().C=79463069),aka([b]),e=b,e.D=zo(a),d&&(e.Ya=d));return e}; +Oka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))}; +Mka=function(){var a=Fm(),b={},c={},d={};return Object.assign({},(b.sv="963",b),bo!==null&&(c.v=bo,c),(d["if"]=a.C?"1":"0",d.nas=String(Gn.j.length),d))}; +Co=function(a){qn.call(this,"audio_audible",a)}; +Do=function(a){rn.call(this,"audio_measurable",a)}; +Eo=function(){jo.apply(this,arguments)}; +Fo=function(){}; +Pka=function(a){this.j=a}; +Kka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},bo!==null&&(d.v=bo,d),(e.sv="963",e.cb=qka,e.e=Qka(b),e));e=Cn(c,b,Hm());g.Hc(d,e);c.M3[b]=e;d=c.Wp()==2?Wia(d).join("&"):c.GS.j(d).j;try{return a(c.ij,d,b),0}catch(f){return 2}}else return 1}; +Qka=function(a){var b=fo(a)?"custom_metric_viewable":a;a=Ac(Bn,function(c){return c==b}); +return co[a]}; +Go=function(){to.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +Rka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&Hka(a,c,b)}; +Ska=function(a,b,c){var d=Fn(Gn,b);d||(d=c.opt_nativeTime||-1,d=uo(a,b,zo(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d}; +Tka=function(a,b,c){var d=Fn(Gn,b);d||(d=uo(a,b,"n",c.opt_nativeTime||-1));return d}; +Uka=function(a,b){var c=Fn(Gn,b);c||(c=uo(a,b,"h",-1));return c}; +Vka=function(a){Il();switch(zo(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}; +Yka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.Hc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.mK(b,c);c=f?f.GS:a.gP();if(e.opt_bounds)return c.j(eo("ol",d));if(d!==void 0)if(rka(d)!==void 0)if(wo)a=eo("ue",d);else if(Jka(a),xo=="i")a=eo("i",d),a["if"]=0;else if(b=a.mK(b,e)){b:{xo=="i"&&(b.vu=!0);f=e.opt_fullscreen;f!==void 0&&dn(b,!!f);var h;if(f=!Fm().B)(f=sb(g.wb(),"CrKey")&&!(sb(g.wb(),"CrKey")&&sb(g.wb(),"SmartSpeaker"))||sb(g.wb(),"PlayStation")||sb(g.wb(),"Roku")||Jia()||sb(g.wb(), +"Xbox"))||(f=g.wb(),f=sb(f,"AppleTV")||sb(f,"Apple TV")||sb(f,"CFNetwork")||sb(f,"tvOS")),f||(f=g.wb(),f=sb(f,"sdk_google_atv_x86")||sb(f,"Android TV")),f=!f;f&&(Fl(),f=rl(Gm)===0);if(h=f){switch(b.Wp()){case 1:Lka(b,"pv");break;case 2:a.cT(b)}yo("pv")}f=d.toLowerCase();if(h=!h)h=il(Il().Lc,"ssmol")&&f==="loaded"?!1:g.Mb(Wka,f);if(h&&b.Hk==0){xo!="i"&&(Yn.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;Zl=h=typeof h==="number"?h:Vl();b.KE=!0;var l=Hm();b.Hk=1;b.Bi={};b.Bi.start=!1;b.Bi.firstquartile= +!1;b.Bi.midpoint=!1;b.Bi.thirdquartile=!1;b.Bi.complete=!1;b.Bi.resume=!1;b.Bi.pause=!1;b.Bi.skip=!1;b.Bi.mute=!1;b.Bi.unmute=!1;b.Bi.viewable_impression=!1;b.Bi.measurable_impression=!1;b.Bi.fully_viewable_audible_half_duration_impression=!1;b.Bi.fullscreen=!1;b.Bi.exitfullscreen=!1;b.mP=0;l||(b.Cj().Z=h);$n(Yn,[b],!l)}(h=b.ez[f])&&mn(b.Kg,h);il(Il().Lc,"fmd")||g.Mb(Xka,f)&&b.us&&b.us.B(b,null);switch(b.Wp()){case 1:var m=fo(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a, +b,e,d),il(Il().Lc,"fmd")&&g.Mb(Xka,f)&&b.us&&b.us.B(b,null),d!==void 0)){e=eo(void 0,f);g.Hc(e,d);d=e;break b}d=void 0}b.Hk==3&&a.xJ(b);a=d}else a=eo("nf",d);else a=void 0;else wo?a=eo("ue"):f?(a=eo(),g.Hc(a,Jja(f,!0,!1,!1))):a=eo("nf");return typeof a==="string"?c.j():c.j(a)}; +Zka=function(a,b){b&&(a.C=b)}; +$ka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b}; +ala=function(a,b,c){c=c===void 0?{}:c;a=Yka(Dl(Go),b,c,a);return $ka(a)}; +bla=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}}; +fla=function(a){if(g.pb(g.Ud(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.hk(a)}catch(c){return g.Kb(dla,function(d){return a.search(d)>0})!=null}return b.K.match(ela)?!0:g.Kb(dla,function(c){return a.match(c)!=null})!=null}; +g.Ho=function(a,b){return a.replace(gla,function(c,d){try{var e=g.Cc(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.pb(g.Ud(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})}; +hla=function(a,b){return Object.is(a,b)}; +g.Jo=function(a){var b=Io;Io=a;return b}; +jla=function(a){if(a.ej!==void 0){var b=g.Ko;g.Ko=!0;try{for(var c=g.w(a.ej),d=c.next();!d.done;d=c.next()){var e=d.value;e.xl||g.ila(e)}}finally{g.Ko=b}}}; +kla=function(){var a;return((a=Io)==null?void 0:a.Kt)!==!1}; +g.ila=function(a){a.xl=!0;jla(a);var b;(b=a.vE)==null||b.call(a,a)}; +g.Lo=function(a){a&&(a.mL=0);return g.Jo(a)}; +g.Oo=function(a,b){g.Jo(b);if(a&&a.dg!==void 0&&a.Ym!==void 0&&a.By!==void 0){if(g.Mo(a))for(b=a.mL;ba.mL;)a.dg.pop(),a.By.pop(),a.Ym.pop()}}; +mla=function(a,b,c){lla(a);if(a.ej.length===0&&a.dg!==void 0)for(var d=0;d0}; +g.Po=function(a){a.dg!=null||(a.dg=[]);a.Ym!=null||(a.Ym=[]);a.By!=null||(a.By=[])}; +lla=function(a){a.ej!=null||(a.ej=[]);a.Gu!=null||(a.Gu=[])}; +ola=function(a){function b(){if(g.Ko)throw Error("");if(Io!==null){var d=Io.mL++;g.Po(Io);d0?" "+b:b))}}; +g.op=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.np(a,e)}); +else{var c={};Array.prototype.forEach.call(kp(a),function(e){c[e]=!0}); +Array.prototype.forEach.call(b,function(e){c[e]=!0}); +b="";for(var d in c)b+=b.length>0?" "+d:d;g.lp(a,b)}}; +g.pp=function(a,b){a.classList?a.classList.remove(b):g.mp(a,b)&&g.lp(a,Array.prototype.filter.call(kp(a),function(c){return c!=b}).join(" "))}; +g.qp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.pp(a,c)}):g.lp(a,Array.prototype.filter.call(kp(a),function(c){return!g.Mb(b,c)}).join(" "))}; +g.rp=function(a,b,c){c?g.np(a,b):g.pp(a,b)}; +xla=function(a,b){var c=!g.mp(a,b);g.rp(a,b,c)}; +g.sp=function(){g.Vc.call(this);this.j=0;this.endTime=this.startTime=null}; +yla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); +g.jm(a,"transition",b.join(","))}; +tp=function(a,b,c,d,e){g.sp.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]}; +zla=function(a,b,c,d){return new tp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})}; +Bla=function(a){a=tb(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Ala))return null}return a}; +up=function(a,b){a=g.Ja[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null}; +Cla=function(a){var b=g.Ja.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null}; +Dla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.lm&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)}; +Jla=function(a){if(!a)return Ela;var b=document.createElement("div").style;Fla(a).forEach(function(c){var d=g.lc&&c in Gla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");nb(d,"--")||nb(d,"var")||(c=Dla(Hla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Bla(c),c!=null&&Dla(Ila,b,b.setProperty?"setProperty":"setAttribute",[d,c]))}); +return new g.td(b.cssText||"",Cd)}; +Fla=function(a){g.Pa(a)?a=g.Tb(a):(a=g.xc(a),g.Pb(a,"cssText"));return a}; +g.wp=function(a){var b,c=b=0,d=!1;a=a.split(Kla);for(var e=0;e.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"}; +g.Ap=function(a){if(a instanceof xp||a instanceof yp||a instanceof zp)return a;if(typeof a.next=="function")return new xp(function(){return a}); +if(typeof a[Symbol.iterator]=="function")return new xp(function(){return a[Symbol.iterator]()}); +if(typeof a.wm=="function")return new xp(function(){return a.wm()}); +throw Error("Not an iterator or iterable.");}; +xp=function(a){this.B=a}; +yp=function(a){this.B=a}; +zp=function(a){xp.call(this,function(){return a}); +this.C=a}; +Bp=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l}; +Cp=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Fd(a.j,a.x1,b),d=Fd(a.x1,a.x2,b);a=Fd(a.x2,a.B,b);c=Fd(c,d,b);d=Fd(d,a,b);return Fd(c,d,b)}; +Ola=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=Cp(a,c);var l=(Cp(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f1E-6&&h<8;h++)f=0}; +g.Gp=function(a){g.O.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a}; +Qla=function(a,b,c){g.De(function(){a.apply(b,c)})}; +g.Hp=function(a){this.j=a}; +Ip=function(a){this.j=a}; +Rla=function(a){this.data=a}; +Sla=function(a){return a===void 0||a instanceof Rla?a:new Rla(a)}; +Jp=function(a){this.j=a}; +g.Tla=function(a){var b=a.creation;a=a.expiration;return!!a&&ag.Xa()}; +g.Kp=function(a){this.j=a}; +Ula=function(){}; +Lp=function(){}; +Mp=function(a){this.j=a;this.B=null}; +Np=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||we(Error("Storage mechanism: Storage unavailable"))}; +Op=function(){var a=null;try{a=g.Ja.localStorage||null}catch(b){}Mp.call(this,a)}; +Vla=function(){var a=null;try{a=g.Ja.sessionStorage||null}catch(b){}Mp.call(this,a)}; +Pp=function(a,b){this.B=a;this.j=b+"::"}; +g.Qp=function(a){var b=new Op;return b.isAvailable()?a?new Pp(b,a):b:null}; +Rp=function(a,b){this.j=a;this.B=b}; +Sp=function(a){this.j=[];if(a)a:{if(a instanceof Sp){var b=a.Xn();a=a.Mm();if(this.j.length<=0){for(var c=this.j,d=0;d>>6:(f<65536?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>> +6&63),l[c++]=128|f&63);return l}; +Wp=function(a){for(var b=a.length;--b>=0;)a[b]=0}; +Xp=function(a,b,c,d,e){this.H2=a;this.x8=b;this.w8=c;this.e8=d;this.H$=e;this.jZ=a&&a.length}; +Yp=function(a,b){this.SX=a;this.lB=0;this.Bv=b}; +Zp=function(a,b){a.rg[a.pending++]=b&255;a.rg[a.pending++]=b>>>8&255}; +$p=function(a,b,c){a.Gi>16-c?(a.yj|=b<>16-a.Gi,a.Gi+=c-16):(a.yj|=b<>>=1,c<<=1;while(--b>0);return c>>>1}; +Yla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Xla(d[e]++,e))}; +Zla=function(a){var b;for(b=0;b<286;b++)a.wk[b*2]=0;for(b=0;b<30;b++)a.Vw[b*2]=0;for(b=0;b<19;b++)a.Xi[b*2]=0;a.wk[512]=1;a.Cs=a.AC=0;a.Tm=a.matches=0}; +$la=function(a){a.Gi>8?Zp(a,a.yj):a.Gi>0&&(a.rg[a.pending++]=a.yj);a.yj=0;a.Gi=0}; +ama=function(a,b,c){$la(a);Zp(a,c);Zp(a,~c);Vp.Dz(a.rg,a.window,b,c,a.pending);a.pending+=c}; +bma=function(a,b,c,d){var e=b*2,f=c*2;return a[e]>>7)];aq(a,h,c);l=gq[h];l!==0&&(e-=hq[h],$p(a,e,l))}}while(d>1;h>=1;h--)bq(a,c,h);m=f;do h=a.yg[1],a.yg[1]=a.yg[a.Tr--],bq(a,c,1),d=a.yg[1],a.yg[--a.zA]=h,a.yg[--a.zA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.yg[1]=m++,bq(a,c,1);while(a.Tr>= +2);a.yg[--a.zA]=a.yg[1];h=b.SX;m=b.lB;d=b.Bv.H2;e=b.Bv.jZ;f=b.Bv.x8;var n=b.Bv.w8,p=b.Bv.H$,q,r=0;for(q=0;q<=15;q++)a.xr[q]=0;h[a.yg[a.zA]*2+1]=0;for(b=a.zA+1;b<573;b++){var t=a.yg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.xr[q]++;var u=0;t>=n&&(u=f[t-n]);var y=h[t*2];a.Cs+=y*(q+u);e&&(a.AC+=y*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.xr[q]===0;)q--;a.xr[q]--;a.xr[q+1]+=2;a.xr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.xr[q];t!==0;)d=a.yg[--b],d>m||(h[d*2+1]!==q&&(a.Cs+=(q-h[d* +2+1])*h[d*2],h[d*2+1]=q),t--)}Yla(c,l,a.xr)}; +dma=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h>>=1)if(b&1&&a.wk[c*2]!==0)return 0;if(a.wk[18]!==0||a.wk[20]!==0||a.wk[26]!==0)return 1;for(c=32;c<256;c++)if(a.wk[c*2]!==0)return 1;return 0}; +jq=function(a,b,c){a.rg[a.BE+a.Tm*2]=b>>>8&255;a.rg[a.BE+a.Tm*2+1]=b&255;a.rg[a.dR+a.Tm]=c&255;a.Tm++;b===0?a.wk[c*2]++:(a.matches++,b--,a.wk[(cq[c]+256+1)*2]++,a.Vw[(b<256?fq[b]:fq[256+(b>>>7)])*2]++);return a.Tm===a.dG-1}; +lq=function(a,b){a.msg=kq[b];return b}; +sq=function(a){for(var b=a.length;--b>=0;)a[b]=0}; +tq=function(a){var b=a.state,c=b.pending;c>a.Je&&(c=a.Je);c!==0&&(Vp.Dz(a.output,b.rg,b.UG,c,a.uB),a.uB+=c,b.UG+=c,a.lU+=c,a.Je-=c,b.pending-=c,b.pending===0&&(b.UG=0))}; +wq=function(a,b){var c=a.vl>=0?a.vl:-1,d=a.Gb-a.vl,e=0;if(a.level>0){a.xe.kP===2&&(a.xe.kP=fma(a));iq(a,a.PK);iq(a,a.wJ);dma(a,a.wk,a.PK.lB);dma(a,a.Vw,a.wJ.lB);iq(a,a.gX);for(e=18;e>=3&&a.Xi[gma[e]*2+1]===0;e--);a.Cs+=3*(e+1)+14;var f=a.Cs+3+7>>>3;var h=a.AC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)$p(a,b?1:0,3),ama(a,c,d);else if(a.strategy===4||h===f)$p(a,2+(b?1:0),3),cma(a,uq,vq);else{$p(a,4+(b?1:0),3);c=a.PK.lB+1;d=a.wJ.lB+1;e+=1;$p(a,c-257,5);$p(a,d-1,5);$p(a,e-4,4);for(f=0;f>>8&255;a.rg[a.pending++]=b&255}; +hma=function(a,b){var c=a.y_,d=a.Gb,e=a.Pl,f=a.T_,h=a.Gb>a.tj-262?a.Gb-(a.tj-262):0,l=a.window,m=a.Jv,n=a.Cq,p=a.Gb+258,q=l[d+e-1],r=l[d+e];a.Pl>=a.QY&&(c>>=2);f>a.jc&&(f=a.jc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&de){a.jB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!== +0);return e<=a.jc?e:a.jc}; +Bq=function(a){var b=a.tj,c;do{var d=a.R3-a.jc-a.Gb;if(a.Gb>=b+(b-262)){Vp.Dz(a.window,a.window,b,b,0);a.jB-=b;a.Gb-=b;a.vl-=b;var e=c=a.wK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Cq[--e],a.Cq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.xe.xj===0)break;e=a.xe;c=a.window;f=a.Gb+a.jc;var h=e.xj;h>d&&(h=d);h===0?c=0:(e.xj-=h,Vp.Dz(c,e.input,e.Xx,h,f),e.state.wrap===1?e.Ud=zq(e.Ud,c,h,f):e.state.wrap===2&&(e.Ud=Aq(e.Ud,c,h,f)),e.Xx+=h,e.Yy+=h,c=h);a.jc+=c;if(a.jc+a.Fh>=3)for(d=a.Gb-a.Fh, +a.De=a.window[d],a.De=(a.De<=3&&(a.De=(a.De<=3)if(c=jq(a,a.Gb-a.jB,a.Te-3),a.jc-=a.Te,a.Te<=a.pR&&a.jc>=3){a.Te--;do a.Gb++,a.De=(a.De<=3&&(a.De=(a.De<4096)&&(a.Te=2));if(a.Pl>=3&&a.Te<=a.Pl){d=a.Gb+a.jc-3;c=jq(a,a.Gb-1-a.l1,a.Pl-3);a.jc-=a.Pl-1;a.Pl-=2;do++a.Gb<=d&&(a.De=(a.De<=3&&a.Gb>0&&(d=a.Gb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Gb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&da.jc&&(a.Te=a.jc)}a.Te>=3?(c=jq(a,1,a.Te-3),a.jc-=a.Te,a.Gb+=a.Te,a.Te=0):(c=jq(a,0,a.window[a.Gb]),a.jc--,a.Gb++);if(c&&(wq(a,!1),a.xe.Je===0))return 1}a.Fh=0;return b=== +4?(wq(a,!0),a.xe.Je===0?3:4):a.Tm&&(wq(a,!1),a.xe.Je===0)?1:2}; +jma=function(a,b){for(var c;;){if(a.jc===0&&(Bq(a),a.jc===0)){if(b===0)return 1;break}a.Te=0;c=jq(a,0,a.window[a.Gb]);a.jc--;a.Gb++;if(c&&(wq(a,!1),a.xe.Je===0))return 1}a.Fh=0;return b===4?(wq(a,!0),a.xe.Je===0?3:4):a.Tm&&(wq(a,!1),a.xe.Je===0)?1:2}; +Eq=function(a,b,c,d,e){this.q9=a;this.G$=b;this.X$=c;this.F$=d;this.func=e}; +kma=function(){this.xe=null;this.status=0;this.rg=null;this.wrap=this.pending=this.UG=this.Xm=0;this.Qd=null;this.jo=0;this.method=8;this.ZA=-1;this.Jv=this.DU=this.tj=0;this.window=null;this.R3=0;this.head=this.Cq=null;this.T_=this.QY=this.strategy=this.level=this.pR=this.y_=this.Pl=this.jc=this.jB=this.Gb=this.Qx=this.l1=this.Te=this.vl=this.Rr=this.Qr=this.AQ=this.wK=this.De=0;this.wk=new Vp.er(1146);this.Vw=new Vp.er(122);this.Xi=new Vp.er(78);sq(this.wk);sq(this.Vw);sq(this.Xi);this.gX=this.wJ= +this.PK=null;this.xr=new Vp.er(16);this.yg=new Vp.er(573);sq(this.yg);this.zA=this.Tr=0;this.depth=new Vp.er(573);sq(this.depth);this.Gi=this.yj=this.Fh=this.matches=this.AC=this.Cs=this.BE=this.Tm=this.dG=this.dR=0}; +lma=function(a,b){if(!a||!a.state||b>5||b<0)return a?lq(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.xj!==0||c.status===666&&b!==4)return lq(a,a.Je===0?-5:-2);c.xe=a;var d=c.ZA;c.ZA=b;if(c.status===42)if(c.wrap===2)a.Ud=0,xq(c,31),xq(c,139),xq(c,8),c.Qd?(xq(c,(c.Qd.text?1:0)+(c.Qd.ou?2:0)+(c.Qd.extra?4:0)+(c.Qd.name?8:0)+(c.Qd.comment?16:0)),xq(c,c.Qd.time&255),xq(c,c.Qd.time>>8&255),xq(c,c.Qd.time>>16&255),xq(c,c.Qd.time>>24&255),xq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),xq(c,c.Qd.os& +255),c.Qd.extra&&c.Qd.extra.length&&(xq(c,c.Qd.extra.length&255),xq(c,c.Qd.extra.length>>8&255)),c.Qd.ou&&(a.Ud=Aq(a.Ud,c.rg,c.pending,0)),c.jo=0,c.status=69):(xq(c,0),xq(c,0),xq(c,0),xq(c,0),xq(c,0),xq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),xq(c,3),c.status=113);else{var e=8+(c.DU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Gb!==0&&(e|=32);c.status=113;yq(c,e+(31-e%31));c.Gb!==0&&(yq(c,a.Ud>>>16),yq(c,a.Ud&65535));a.Ud=1}if(c.status===69)if(c.Qd.extra){for(e= +c.pending;c.jo<(c.Qd.extra.length&65535)&&(c.pending!==c.Xm||(c.Qd.ou&&c.pending>e&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e)),tq(a),e=c.pending,c.pending!==c.Xm));)xq(c,c.Qd.extra[c.jo]&255),c.jo++;c.Qd.ou&&c.pending>e&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e));c.jo===c.Qd.extra.length&&(c.jo=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Qd.name){e=c.pending;do{if(c.pending===c.Xm&&(c.Qd.ou&&c.pending>e&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e)),tq(a),e=c.pending,c.pending===c.Xm)){var f=1;break}f=c.joe&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e));f===0&&(c.jo=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Qd.comment){e=c.pending;do{if(c.pending===c.Xm&&(c.Qd.ou&&c.pending>e&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e)),tq(a),e=c.pending,c.pending===c.Xm)){f=1;break}f=c.joe&&(a.Ud=Aq(a.Ud,c.rg,c.pending-e,e));f===0&&(c.status=103)}else c.status= +103;c.status===103&&(c.Qd.ou?(c.pending+2>c.Xm&&tq(a),c.pending+2<=c.Xm&&(xq(c,a.Ud&255),xq(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(c.pending!==0){if(tq(a),a.Je===0)return c.ZA=-1,0}else if(a.xj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return lq(a,-5);if(c.status===666&&a.xj!==0)return lq(a,-5);if(a.xj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?jma(c,b):c.strategy===3?ima(c,b):Fq[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Je===0&&(c.ZA= +-1),0;if(d===2&&(b===1?($p(c,2,3),aq(c,256,uq),c.Gi===16?(Zp(c,c.yj),c.yj=0,c.Gi=0):c.Gi>=8&&(c.rg[c.pending++]=c.yj&255,c.yj>>=8,c.Gi-=8)):b!==5&&($p(c,0,3),ama(c,0,0),b===3&&(sq(c.head),c.jc===0&&(c.Gb=0,c.vl=0,c.Fh=0))),tq(a),a.Je===0))return c.ZA=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(xq(c,a.Ud&255),xq(c,a.Ud>>8&255),xq(c,a.Ud>>16&255),xq(c,a.Ud>>24&255),xq(c,a.Yy&255),xq(c,a.Yy>>8&255),xq(c,a.Yy>>16&255),xq(c,a.Yy>>24&255)):(yq(c,a.Ud>>>16),yq(c,a.Ud&65535));tq(a);c.wrap>0&& +(c.wrap=-c.wrap);return c.pending!==0?0:1}; +Gq=function(a){if(!(this instanceof Gq))return new Gq(a);a=this.options=Vp.assign({level:-1,method:8,chunkSize:16384,Kv:15,M$:8,strategy:0,to:""},a||{});a.raw&&a.Kv>0?a.Kv=-a.Kv:a.r9&&a.Kv>0&&a.Kv<16&&(a.Kv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.xe=new mma;this.xe.Je=0;var b=this.xe;var c=a.level,d=a.method,e=a.Kv,f=a.M$,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=lq(b,-2);else{e===8&&(e=9);var m= +new kma;b.state=m;m.xe=b;m.wrap=l;m.Qd=null;m.DU=e;m.tj=1<>=7;f<30;f++)for(hq[f]=h<<7,e=0;e<1<=n.tj&&(b===0&&(sq(n.head),n.Gb=0,n.vl=0,n.Fh=0),c=new Vp.kz(n.tj),Vp.Dz(c,f,h-n.tj,n.tj,0),f=c,h=n.tj);c=a.xj;d=a.Xx;e=a.input;a.xj=h;a.Xx=0;a.input=f;for(Bq(n);n.jc>=3;){f=n.Gb;h=n.jc-2;do n.De=(n.De<-8&&(0,c[56])(c[14],c[37]),(0,c[78])(c[34]),(0,c[5])(c[72],c[77]),(0,c[5])(c[59],c[70])}catch(d){}try{c[27]!=-5&&(c[0]==7&&((0,c[5])(c[36],c[77]),1)||(0,c[68])(c[27],c[23])),c[52]=-4&&(0,c[69])((0,c[14])(c[77],c[4]),c[25],(0,c[47])(c[2],c[78]),c[Math.pow(7,2)-129- -82]),(c[10]!=-2||((0,c[34])((((0,c[61])(c[54],c[4]),(0,c[22])((0,c[5])(),c[6],c[28]),c[22])((0,c[51])(),c[6],c[28]),(0,c[22])((0,c[5])(),c[71],c[28]),c[22])((0,c[26])(),c[54],c[28])^(0,c[55])(c[78]),c[55],c[6]),NaN))&&(((0,c[1])((0,c[62])(c[38],c[54]),c[16],(0,c[34])((0,c[new Date("1970-01-01T02:30:33.000+02:30")/1E3])(c[new Date("1970-01-01T06:00:47.000+06:00")/ +1E3],c[76]),c[56],c[59],c[66]),c[54],c[71]),c[65])(c[35]),c[59])((0,c[60])(c[39],c[76]),c[60],c[39],c[new Date("1970-01-01T02:46:13.000+02:45")/1E3])}catch(d){(0,c[71])((0,c[28])(),c[6],c[65]),(0,c[60])(c[22],c[33])}finally{c[54]!==-9&&((0,c[32])(c[22],c[70]),c[68])(c[60],(0,c[38])(c[27]),(0,c[49])(c[75],c[56]),(0,c[21])(c[42],c[77]),c[75],c[55])}try{c[34]!=new Date("1969-12-31T21:29:50.000-02:30")/1E3&&(c[19]>2&&((0,c[-42*Math.pow(6,4)- -54453])(c[54],c[79]),(0,c[21])(c[42],c[63]),1)||((0,c[49])(c[Math.pow(3, +2)+116-50],c[68]),c[50])(c[9],c[35]))}catch(d){(0,c[50])(c[76],c[75])}try{c[58]!==new Date("1970-01-01T09:44:57.000+09:45")/1E3&&((0,c[50])(c[78],c[42]),[])||(0,c[10])((0,c[53])(),c[75],c[16]),(c[81]!=-8||((0,c[22])((0,c[22])((0,c[50])(c[36],c[59]),c[50],c[41],c[36504+Math.pow(3,4)-36510]),c[10],(0,c[53])(),c[42],c[16])&(0,c[43])(c[66]),""))&&((((0,c[10])((0,c[53])(),c[75],c[16]),c[49])(c[75],c[38]),c[49])(c[75],c[18]),c[21])(c[59],c[31])}catch(d){((0,c[10])((0,c[53])(),c[59],c[16]),c[10])((0,c[14])(), +c[75],c[16])}}catch(d){return"enhanced_except_35sBoOT-_w8_"+a}return Array.prototype.join.call(b,("",""))}; +g.Mq=function(a){this.name=a}; +Ema=function(a){this.sb=Zf(a)}; +Nq=function(a){this.sb=Zf(a)}; +Oq=function(a){this.sb=Zf(a)}; +Fma=function(a){this.sb=Zf(a)}; +Pq=function(a){this.sb=Zf(a)}; +Qq=function(a){this.sb=Zf(a)}; +Rq=function(a){this.sb=Zf(a)}; +Sq=function(a){this.sb=Zf(a)}; +Tq=function(a){this.sb=Zf(a)}; +Uq=function(a){this.sb=Zf(a)}; +Vq=function(a){this.sb=Zf(a)}; +Wq=function(a){this.sb=Zf(a)}; +Xq=function(a){this.sb=Zf(a)}; +Yq=function(a){this.sb=Zf(a)}; +Zq=function(a){this.sb=Zf(a)}; +$q=function(a){this.sb=Zf(a)}; +ar=function(a){this.sb=Zf(a)}; +br=function(a){this.sb=Zf(a)}; +cr=function(a){this.sb=Zf(a)}; +dr=function(a){this.sb=Zf(a)}; +er=function(a){this.sb=Zf(a)}; +fr=function(a){this.sb=Zf(a)}; +gr=function(a){this.sb=Zf(a)}; +hr=function(a){this.sb=Zf(a)}; +ir=function(a){this.sb=Zf(a,497)}; +jr=function(a){this.sb=Zf(a)}; +kr=function(a){this.sb=Zf(a)}; +Gma=function(a){this.sb=Zf(a)}; +Hma=function(){return g.La("yt.ads.biscotti.lastId_")||""}; +Ima=function(a){g.Ka("yt.ads.biscotti.lastId_",a)}; +or=function(){var a=arguments;a.length>1?nr[a[0]]=a[1]:a.length===1&&Object.assign(nr,a[0])}; +g.pr=function(a,b){return a in nr?nr[a]:b}; +qr=function(a){var b=nr.EXPERIMENT_FLAGS;return b?b[a]:void 0}; +Jma=function(a){rr.forEach(function(b){return b(a)})}; +g.tr=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.sr(b)}}:a}; +g.sr=function(a){var b=g.La("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.pr("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),or("ERRORS",b));Jma(a)}; +ur=function(a,b,c,d,e){var f=g.La("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.pr("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),or("ERRORS",f))}; +vr=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d1?a[1]:a[0])):{}}; +g.Ar=function(a,b){return Nma(a,b||{},!0)}; +Br=function(a,b){return Nma(a,b||{},!1)}; +Nma=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=xr(e[1]||"");for(var f in b)if(c||!g.yc(e,f))e[f]=b[f];return g.Ti(a,e)+d}; +Cr=function(a){if(!b)var b=window.location.href;var c=g.Mi(1,a),d=g.Ni(a);c&&d?(a=a.match(Li),b=b.match(Li),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Ni(b)===d&&(Number(g.Mi(4,b))||null)===(Number(g.Mi(4,a))||null):!0;return a}; +Dr=function(a){a||(a=document.location.href);a=g.Mi(1,a);return a!==null&&a==="https"}; +Er=function(a){a=Oma(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +Pma=function(a){a=Oma(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1}; +Oma=function(a){a=g.Ni(a);return a!==null?a.split(".").reverse():null}; +Kma=function(a){return a&&a.match(Qma)?a:Sd(a)}; +Hr=function(a){var b=Fr;a=a===void 0?Hma():a;var c=Object,d=c.assign,e=Gr(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(D){}try{var m=f.outerWidth;var n=f.outerHeight}catch(D){}try{var p=f.innerWidth;var q=f.innerHeight}catch(D){}try{var r=f.screenLeft;var t=f.screenTop}catch(D){}try{p=f.innerWidth,q=f.innerHeight}catch(D){}try{var u=f.screen.availWidth;var y=f.screen.availTop}catch(D){}f=[r,t,h,l,u,y,m,n,p,q];h=Aia(!1,b.j.top);l={};var A=A===void 0?g.Ja:A;m=new $o;"SVGElement"in A&&"createElementNS"in +A.document&&m.set(0);n=Mha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=tla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=rl(b.B),l.wgl=!!ol.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c}; +Gr=function(a){var b={};b.dt=Rma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?ol:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=ol.screen)==null?void 0:f.height;var h;b.u_w=(h=ol.screen)==null?void 0:h.width;var l;b.u_ah=(l=ol.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=ol.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=ol.screen)==null?void 0: +n.colorDepth}catch(p){}return b}; +Tma=function(){if(!Sma)return null;var a=Sma();return"open"in a?a:null}; +g.Jr=function(a){switch(Ir(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +Ir=function(a){return a&&"status"in a?a.status:-1}; +g.Kr=function(a,b){typeof a==="function"&&(a=g.tr(a));return window.setTimeout(a,b)}; +g.Lr=function(a,b){typeof a==="function"&&(a=g.tr(a));return window.setInterval(a,b)}; +g.Mr=function(a){window.clearTimeout(a)}; +g.Nr=function(a){window.clearInterval(a)}; +g.Pr=function(a){a=Or(a);return typeof a==="string"&&a==="false"?!1:!!a}; +g.Qr=function(a,b){a=Or(a);return a===void 0&&b!==void 0?b:Number(a||0)}; +Rr=function(){return g.pr("EXPERIMENTS_TOKEN","")}; +Or=function(a){return g.pr("EXPERIMENT_FLAGS",{})[a]}; +Sr=function(){for(var a=[],b=g.pr("EXPERIMENTS_FORCED_FLAGS",{}),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.pr("EXPERIMENT_FLAGS",{});d=g.w(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a}; +Tr=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.tr(b)(n)} +c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Tma();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.Pr("debug_forward_web_query_parameters")&&(a=Uma(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Vma(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"===p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){ur(q)}}n.send(d);return n}; +Vma=function(a,b){b=b===void 0?{}:b;var c=Cr(a),d=g.pr("INNERTUBE_CLIENT_NAME"),e=g.Pr("web_ajax_ignore_global_headers_if_set"),f;for(f in Wma){var h=g.pr(Wma[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.pr("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.Ni(a)?!1:!0))){m=a;var n;if(n=g.Pr("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&Pma(m))m=Ki(g.Mi(5,m))||"",m=m.split("/"), +m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.Ni(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Ni(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.Ni(a)||(b["X-YouTube-Ad-Signals"]= +wr(Hr()));return b}; +Yma=function(a,b){var c=g.Ni(a);g.Pr("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Cr(a)&&(c=document.location.hostname);var d=Ki(g.Mi(5,a));d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=xr(b),f={};g.cc(Xma,function(h){e[h]&&(f[h]=e[h])}); +return Br(a,f)}; +Vr=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.Ur(a,b)}; +g.Ur=function(a,b){var c=b.format||"JSON";a=Zma(a,b);var d=$ma(a,b),e=!1,f=ana(a,function(m){if(!e){e=!0;l&&g.Mr(l);var n=g.Jr(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=bna(a,c,m,b.convertToSafeHtml);n&&(n=cna(c,m,p));p=p||{};q=b.context||g.Ja;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials); +d=b.timeout||0;if(b.onTimeout&&d>0){var h=b.onTimeout;var l=g.Kr(function(){e||(e=!0,f.abort(),g.Mr(l),h.call(b.context||g.Ja,f))},d)}return f}; +Zma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.pr("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.Ar(a,b);return a}; +$ma=function(a,b){var c=g.pr("XSRF_FIELD_NAME"),d=g.pr("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.pr("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Ni(a)&&!b.withCredentials&&g.Ni(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.Pr("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=xr(e),g.Hc(e,f),e=b.postBodyFormat&& +b.postBodyFormat==="JSON"?JSON.stringify(e):g.Si(e));f=e||f&&!g.Bc(f);!dna&&f&&b.method!=="POST"&&(dna=!0,g.sr(Error("AJAX request with postData should use POST")));return e}; +bna=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var f=c.responseText}catch(h){throw d=Error("Error reading responseText"),d.params=a,ur(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?ena(a):null)e={},g.cc(a.getElementsByTagName("*"),function(h){e[h.tagName]=fna(h)})}d&&gna(e); +return e}; +gna=function(a){if(g.Qa(a))for(var b in a)b==="html_content"||raa(b,"_html")?a[b]=xd(a[b]):gna(a[b])}; +cna=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; +ena=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null}; +fna=function(a){var b="";g.cc(a.childNodes,function(c){b+=c.nodeValue}); +return b}; +Xr=function(a,b){var c=g.Fc(b),d;return(new g.Fe(function(e,f){c.onSuccess=function(h){g.Jr(h)?e(new hna(h)):f(new Wr("Request failed, status="+Ir(h),"net.badstatus",h))}; +c.onError=function(h){f(new Wr("Unknown request error","net.unknown",h))}; +c.onTimeout=function(h){f(new Wr("Request timed out","net.timeout",h))}; +d=g.Ur(a,c)})).Wk(function(e){if(e instanceof Le){var f; +(f=d)==null||f.abort()}return Ie(e)})}; +g.Yr=function(a,b,c,d){function e(l,m,n){return l.Wk(function(p){if(m<=0||Ir(p.xhr)===403)return Ie(new Wr("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(Xr(a,b),m-1,q)})})} +function f(l){return new g.Fe(function(m){setTimeout(m,l)})} +var h=h===void 0?-1:h;return e(Xr(a,b),c-1,d)}; +Wr=function(a,b,c){ib.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"}; +hna=function(a){this.xhr=a}; +Zr=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null}; +$r=function(a){var b=new Zr;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b}; +as=function(a){var b=new Zr;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b}; +g.ds=function(a,b,c,d,e){bs||cs.set(""+a,b,{iG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})}; +g.es=function(a,b){if(!bs)return cs.get(""+a,b)}; +g.fs=function(a,b,c){bs||cs.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)}; +ina=function(){if(g.Pr("embeds_web_enable_cookie_detection_fix")){if(!g.Ja.navigator.cookieEnabled)return!1}else if(!cs.isEnabled())return!1;if(!cs.isEmpty())return!0;g.Pr("embeds_web_enable_cookie_detection_fix")?cs.set("TESTCOOKIESENABLED","1",{iG:60,Oda:"none",secure:!0}):cs.set("TESTCOOKIESENABLED","1",{iG:60});if(cs.get("TESTCOOKIESENABLED")!=="1")return!1;cs.remove("TESTCOOKIESENABLED");return!0}; +g.R=function(a,b){if(a)return a[b.name]}; +gs=function(a){var b=g.pr("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Oi(a)));return a}; +jna=function(a,b){var c={};g.Pr("web_api_key_killswitch")&&(g.pr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.pr("INNERTUBE_API_KEY")));g.Pr("json_condensed_response")&&(c.prettyPrint="false");return a=Br(a,c)}; +hs=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:Cr(a)?"same-origin":"cors",credentials:Cr(a)?"same-origin":"include"};b={};for(var d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a}; +kna=function(){var a=/Chrome\/(\d+)/.exec(g.wb());return a?parseFloat(a[1]):NaN}; +js=function(){return g.is("android")&&g.is("chrome")&&!(g.is("trident/")||g.is("edge/"))&&!g.is("cobalt")}; +lna=function(){return g.is("armv7")||g.is("aarch64")||g.is("android")}; +g.ks=function(){return g.is("cobalt")}; +ls=function(){return g.is("cobalt")&&g.is("appletv")}; +ms=function(){return g.is("(ps3; leanback shell)")||g.is("ps3")&&g.ks()}; +ns=function(){return g.is("(ps4; leanback shell)")||g.is("ps4")&&g.ks()}; +g.mna=function(){return g.ks()&&(g.is("ps4 vr")||g.is("ps4 pro vr"))}; +os=function(){var a=/WebKit\/([0-9]+)/.exec(g.wb());return!!(a&&parseInt(a[1],10)>=600)}; +ps=function(){var a=/WebKit\/([0-9]+)/.exec(g.wb());return!!(a&&parseInt(a[1],10)>=602)}; +nna=function(){return g.is("iemobile")||g.is("windows phone")&&g.is("edge")}; +ts=function(){return(qs||rs)&&g.is("applewebkit")&&!g.is("version")&&(!g.is("safari")||g.is("gsa/"))}; +vs=function(){return g.us&&g.is("version/")}; +ws=function(){return g.is("smart-tv")&&g.is("samsung")}; +g.is=function(a){var b=g.wb();return b?b.toLowerCase().indexOf(a)>=0:!1}; +xs=function(){return rfa()||ts()||vs()?!0:g.pr("EOM_VISITOR_DATA")?!1:!0}; +ys=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1}; +zs=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}; +As=function(a,b){return b===void 0||b===null?a:Number(b)}; +Bs=function(a,b){return b===void 0||b===null?a:b.toString()}; +Cs=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(ona))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN}; +Ds=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null}; +pna=function(a){return Es(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.Fs=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +Es=function(a,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?zs(b,c.embeddedPlayerMode,qna):b}; +Hs=function(a){ib.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Gs;this.isTimeout=a instanceof Wr&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Le}; +Gs=function(){ib.call(this,"Biscotti ID is missing from server")}; +rna=function(){if(g.Pr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!xs())return Error("User has not consented - not fetching biscotti id.");var a=g.pr("PLAYER_VARS",{});if(g.Cc(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pna(a))return Error("Biscotti id fetching has been disabled for pfl.")}; +vna=function(){var a=rna();if(a!==void 0)return Ie(a);Is||(Is=Xr("//googleads.g.doubleclick.net/pagead/id",sna).then(tna).Wk(function(b){return una(2,b)})); +return Is}; +tna=function(a){a=a.xhr.responseText;if(!nb(a,")]}'"))throw new Gs;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Gs;a=a.id;Ima(a);Is=as(a);wna(18E5,2);return a}; +una=function(a,b){b=new Hs(b);Ima("");Is=$r(b);a>0&&wna(12E4,a-1);throw b;}; +wna=function(a,b){g.Kr(function(){Xr("//googleads.g.doubleclick.net/pagead/id",sna).then(tna,function(c){return una(b,c)}).Wk(g.Zc)},a)}; +xna=function(){try{var a=g.La("yt.ads.biscotti.getId_");return a?a():vna()}catch(b){return Ie(b)}}; +zna=function(a){a&&(a.dataset?a.dataset[yna()]="true":Kba(a))}; +Ana=function(a){return a?a.dataset?a.dataset[yna()]:a.getAttribute("data-loaded"):null}; +yna=function(){return Bna.loaded||(Bna.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))}; +Cna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Js+"VisibilityState";if(b in a)return a[b]}; +Ks=function(a,b){var c;Em(a,function(d){c=b[d];return!!c}); +return c}; +Ls=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()}; +Os=function(a){var b;g.Ms()?Ns()==a&&(b=document):b=a;return b&&(a=Ks(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; +Dna=function(a){return g.Kb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})}; +Ena=function(){var a=document;return g.Kb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})}; +g.Ms=function(){return!!Ks(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +Ns=function(a){a=a===void 0?!1:a;var b=Ks(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; +Ps=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(a=a||window.event){this.event=a;for(var b in a)b in Fna||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget; +if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}}; +Gna=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}}; +Hna=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Ac(Qs,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Qa(e[4])&&g.Qa(d)&&g.Ec(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})}; +g.Rs=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Hna(a,b,c,d);if(e)return e;e=++Ina.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Ps(l);if(!se(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Ps(l); +l.currentTarget=a;return c.call(a,l)}; +h=g.tr(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Jna()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Qs[e]=[a,b,c,h,d];return e}; +Lna=function(a){return Kna(a,function(b){return g.mp(b,"ytp-ad-has-logging-urls")})}; +Kna=function(a,b){var c=document.body||document;return g.Rs(c,"click",function(d){var e=se(d.target,function(f){return f===c||b(f)},!0); +e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})}; +g.Ss=function(a){a&&(typeof a=="string"&&(a=[a]),g.cc(a,function(b){if(b in Qs){var c=Qs[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Jna()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Qs[b]}}))}; +Ts=function(a){for(var b in Qs)Qs[b][0]==a&&g.Ss(b)}; +Us=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a}; +Vs=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.Rs(window,"mousemove",(0,g.Ua)(this.Y,this));this.Z=g.Lr((0,g.Ua)(this.qa,this),25)}; +Ws=function(a){g.O.call(this);this.N=[];this.ob=a||this}; +Xs=function(a,b,c,d){for(var e=0;e0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.$s)():at())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}; +g.ct=function(a){var b=at(),c=(0,g.$s)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d}; +Ona=function(){var a=(0,g.$s)();if(a&&(a=a.B("yt-player-quality")))return a.creation}; +g.dt=function(a){try{var b=at(),c=(0,g.$s)();b&&b.remove(a);c&&c.remove(a)}catch(d){}}; +g.et=function(){return g.ct("yt-remote-session-screen-id")}; +Pna=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c}); +a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})}; +ft=function(){if(!g.Ja.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ja.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ja.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ja.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ja.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +gt=function(){this.L2=!0}; +Qna=function(){gt.instance||(gt.instance=new gt);return gt.instance}; +Rna=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; +Sna=function(){this.j=g.pr("ALT_PREF_COOKIE_NAME","PREF");this.B=g.pr("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.es(this.j);a&&this.parse(a)}; +g.it=function(){ht||(ht=new Sna);return ht}; +g.kt=function(a,b){return!!((Tna("f"+(Math.floor(b/31)+1))||0)&1<0;)switch(a=It.shift(),a.type){case "ERROR":Et.Kl(a.payload);break;case "EVENT":Et.logEvent(a.eventType,a.payload)}}; +Kt=function(a){Jt||(Et?Et.Kl(a):(It.push({type:"ERROR",payload:a}),It.length>10&&It.shift()))}; +Lt=function(a,b){Jt||(Et?Et.logEvent(a,b):(It.push({type:"EVENT",eventType:a,payload:b}),It.length>10&&It.shift()))}; +Mt=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +Nt=function(a){return a.substr(0,a.indexOf(":"))||a}; +g.Ot=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?aoa[a]:c;d=d===void 0?boa[a]:d;e=e===void 0?coa[a]:e;g.pt.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.Ot.prototype)}; +Pt=function(a,b){g.Ot.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},aoa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Pt.prototype)}; +Qt=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,Qt.prototype)}; +St=function(a,b,c,d){b=Nt(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Ot)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.Ot("QUOTA_EXCEEDED",a);if(g.Rt&&e.name==="UnknownError")return new g.Ot("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Qt)return new g.Ot("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&doa.some(function(f){return e.message.includes(f)}))return new g.Ot("EXECUTE_TRANSACTION_ON_CLOSED_DB", +a); +if(e.name==="AbortError")return new g.Ot("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",ML:e.name})];e.level="WARNING";return e}; +g.Tt=function(a,b,c){var d=Dt();return new g.Ot("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; +eoa=function(a){if(!a)throw Error();throw a;}; +foa=function(a){return a}; +Ut=function(a){this.j=a}; +g.Vt=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.w(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} +function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.w(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}} +var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}}; +goa=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.Vt?Wt(a,b,f,d,e):d(f)}catch(h){e(h)}}; +hoa=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.Vt?Wt(a,b,f,d,e):d(f)}catch(h){e(h)}}; +Wt=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.Vt?Wt(a,b,f,d,e):d(f)},function(f){e(f)})}; +ioa=function(a,b,c){function d(){c(a.error);f()} +function e(){b(a.result);f()} +function f(){try{a.removeEventListener("success",e),a.removeEventListener("error",d)}catch(h){}} +a.addEventListener("success",e);a.addEventListener("error",d)}; +joa=function(a){return new Promise(function(b,c){ioa(a,b,c)})}; +Xt=function(a){return new g.Vt(new Ut(function(b,c){ioa(a,b,c)}))}; +Yt=function(a,b){return new g.Vt(new Ut(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()} +e()}))}; +koa=function(a,b){this.request=a;this.cursor=b}; +loa=function(a){return Xt(a).then(function(b){return b?new koa(a,b):null})}; +g.moa=function(a){a.cursor.continue(void 0);return loa(a.request)}; +noa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.Zt)());this.B=!1}; +g.au=function(a,b,c){a=a.j.createObjectStore(b,c);return new $t(a)}; +bu=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)}; +g.eu=function(a,b,c){return g.cu(a,[b],{mode:"readwrite",Pb:!0},function(d){return g.du(d.objectStore(b),c)})}; +g.cu=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){switch(A.j){case 1:var D={mode:"readonly",Pb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?D.mode=c:Object.assign(D,c);e=D;a.transactionCount++;f=e.Pb?3:1;h=0;case 2:if(l){A.Ha(4);break}h++;m=Math.round((0,g.Zt)());g.va(A,5);n=a.j.transaction(b,e.mode);D=new fu(n);D=ooa(D,d);return g.G(A,D,7);case 7:return p=A.B,q=Math.round((0,g.Zt)()),poa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.xa(A);t=Math.round((0,g.Zt)()); +u=St(r,a.j.name,b.join(),a.j.version);if((y=u instanceof g.Ot&&!u.j)||h>=f)poa(a,m,t,h,u,b.join(),e),l=u;A.Ha(2);break;case 4:return A.return(Promise.reject(l))}})}; +poa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Ot&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Lt("QUOTA_EXCEEDED",{dbName:Nt(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Ot&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),Lt("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),qoa(a,!1,d,f,b,h.tag),Kt(e)):qoa(a,!0,d, +f,b,h.tag)}; +qoa=function(a,b,c,d,e,f){Lt("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; +$t=function(a){this.j=a}; +g.gu=function(a,b,c){a.j.createIndex(b,c,{unique:!1})}; +roa=function(a,b){return g.hu(a,{query:b},function(c){return c.delete().then(function(){return g.iu(c)})}).then(function(){})}; +soa=function(a,b,c){var d=[];return g.hu(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.iu(e)}).then(function(){return d})}; +uoa=function(a){return"getAllKeys"in IDBObjectStore.prototype?Xt(a.j.getAllKeys(void 0,void 0)):toa(a)}; +toa=function(a){var b=[];return g.voa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.moa(c)}).then(function(){return b})}; +g.du=function(a,b,c){return Xt(a.j.put(b,c))}; +g.hu=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return ju(a).then(function(d){return Yt(d,c)})}; +g.voa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return loa(a).then(function(e){return Yt(e,c)})}; +fu=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()}); +b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)}); +b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.Ot;for(var f=b.j.objectStoreNames,h=[],l=0;l=c))return d.push(e.getValue()),g.iu(e)}).then(function(){return d})}; +g.ku=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return ju(a).then(function(d){return Yt(d,c)})}; +lu=function(a,b){this.request=a;this.cursor=b}; +ju=function(a){return Xt(a).then(function(b){return b?new lu(a,b):null})}; +g.iu=function(a){a.cursor.continue(void 0);return ju(a.request)}; +yoa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new noa(h.result,{closed:q}));return r} +var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Hea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&Lt("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:Nt(a)});var u=f(),y=new fu(h.transaction); +p&&p(u,function(A){return t.oldVersion=A},y); +y.done.catch(function(A){e(A)})}catch(A){e(A)}}); +h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())}); +t.addEventListener("close",function(){Lt("IDB_UNEXPECTEDLY_CLOSED",{dbName:Nt(a),dbVersion:t.version});n&&n()}); +d(f())}); +h.addEventListener("error",function(){e(h.error)}); +l&&h.addEventListener("blocked",function(){l()})})}; +zoa=function(a,b,c){c=c===void 0?{}:c;return yoa(a,b,c)}; +mu=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.J(function(h){if(h.j==1)return g.va(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.G(h,joa(c),4); +if(h.j!=2)return g.wa(h,0);f=g.xa(h);throw St(f,a,"",-1);})}; +nu=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0}; +Aoa=function(a,b){return new g.Ot("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})}; +g.ou=function(a,b){if(!b)throw g.Tt("openWithToken",Nt(a.name));return a.open()}; +Boa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,g.ou(pu,b),2);c=d.B;return d.return(g.cu(c,["databases"],{Pb:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.du(f,a).then(function(){})})}))})}; +qu=function(a,b){var c;return g.J(function(d){if(d.j==1)return a?g.G(d,g.ou(pu,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})}; +Coa=function(a,b){var c,d;return g.J(function(e){return e.j==1?(c=[],g.G(e,g.ou(pu,b),2)):e.j!=3?(d=e.B,g.G(e,g.cu(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.hu(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.iu(h)})}),3)):e.return(c)})}; +Doa=function(a,b){return Coa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)}; +Eoa=function(){var a,b,c,d;return g.J(function(e){switch(e.j){case 1:a=Dt();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(ru&&os()&&!ps()||g.tu)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.va(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.G(e,Boa(d,uu),4);case 4:return g.G(e,qu("yt-idb-test-do-not-use",uu),5);case 5:return e.return(!0);case 2:return g.xa(e),e.return(!1)}})}; +Foa=function(){if(vu!==void 0)return vu;Jt=!0;return vu=Eoa().then(function(a){Jt=!1;var b;if((b=Ct())!=null&&b.j){var c;b={hasSucceededOnce:((c=Dt())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Ct())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})}; +wu=function(){return g.La("ytglobal.idbToken_")||void 0}; +g.xu=function(){var a=wu();return a?Promise.resolve(a):Foa().then(function(b){(b=b?uu:void 0)&&g.Ka("ytglobal.idbToken_",b);return b})}; +Goa=function(a){if(!g.rt())throw a=new g.Ot("AUTH_INVALID",{dbName:a}),Kt(a),a;var b=g.qt();return{actualName:a+":"+b,publicName:a,userIdentifier:b}}; +Hoa=function(a,b,c,d){var e,f,h,l,m,n;return g.J(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.xu(),2);case 2:h=p.B;if(!h)throw l=g.Tt("openDbImpl",a,b),g.Pr("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Kt(l),l;Mt(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Goa(a);g.va(p,3);return g.G(p,Boa(m,h),5);case 5:return g.G(p,zoa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.xa(p),g.va(p,7),g.G(p,qu(m.actualName, +h),9);case 9:g.wa(p,8);break;case 7:g.xa(p);case 8:throw n;}})}; +Ioa=function(a,b,c){c=c===void 0?{}:c;return Hoa(a,b,!1,c)}; +Joa=function(a,b,c){c=c===void 0?{}:c;return Hoa(a,b,!0,c)}; +Koa=function(a,b){b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.xu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();Mt(a);d=Goa(a);return g.G(e,mu(d.actualName,b),3)}return g.G(e,qu(d.actualName,c),0)})}; +Loa=function(a,b,c){a=a.map(function(d){return g.J(function(e){return e.j==1?g.G(e,mu(d.actualName,b),2):g.G(e,qu(d.actualName,c),0)})}); +return Promise.all(a).then(function(){})}; +Moa=function(a){var b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.xu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();Mt(a);return g.G(e,Doa(a,c),3)}d=e.B;return g.G(e,Loa(d,b,c),0)})}; +Noa=function(a,b){b=b===void 0?{}:b;var c;return g.J(function(d){if(d.j==1)return g.G(d,g.xu(),2);if(d.j!=3){c=d.B;if(!c)return d.return();Mt(a);return g.G(d,mu(a,b),3)}return g.G(d,qu(a,c),0)})}; +yu=function(a,b){nu.call(this,a,b);this.options=b;Mt(a)}; +Ooa=function(a,b){var c;return function(){c||(c=new yu(a,b));return c}}; +g.zu=function(a,b){return Ooa(a,b)}; +Au=function(a){return g.ou(Poa(),a)}; +Qoa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.Zt)()},g.G(l,Au(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.eu(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})}; +Roa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.Zt)()},g.G(m,Au(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.eu(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})}; +Soa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Au(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.cu(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.ku(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; +Toa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Au(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.cu(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.ku(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})}; +Uoa=function(){return g.J(function(a){return g.G(a,Moa("ytGcfConfig"),0)})}; +Bu=function(){g.O.call(this);this.B=[];this.j=[];var a=g.La("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.x(a)),this.j=a):(this.j=[],g.Ka("yt.gcf.config.hotUpdateCallbacks",this.j))}; +Hu=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Bu;this.hd={roa:function(){a.G=!0}, +wna:function(){return a.j}, +zpa:function(b){Cu(a,b)}, +Js:function(b){a.Js(b)}, +spa:function(b){Du(a,b)}, +N8:function(){return a.coldHashData}, +W8:function(){return a.hotHashData}, +Nna:function(){return a.B}, +Fna:function(){return Eu()}, +Hna:function(){return Fu()}, +Gna:function(){return g.La("yt.gcf.config.coldHashData")}, +Ina:function(){return g.La("yt.gcf.config.hotHashData")}, +Rpa:function(){Voa(a)}, +lpa:function(){a.Js(void 0);Gu(a);delete Hu.instance}, +wpa:function(b){a.C=b}, +Bna:function(){return a.C}}}; +Woa=function(){if(!Hu.instance){var a=new Hu;Hu.instance=a}return Hu.instance}; +Zoa=function(a){var b;g.J(function(c){if(c.j==1)return g.Pr("start_client_gcf")||g.Pr("delete_gcf_config_db")?g.Pr("start_client_gcf")?g.G(c,g.xu(),3):c.Ha(2):c.return();c.j!=2&&((b=c.B)&&g.rt()&&!g.Pr("delete_gcf_config_db")?(a.G=!0,Voa(a)):(Xoa(a),Yoa(a)));return g.Pr("delete_gcf_config_db")?g.G(c,Uoa(),0):c.Ha(0)})}; +Iu=function(){var a;return(a=Fu())!=null?a:g.pr("RAW_HOT_CONFIG_GROUP")}; +$oa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.B)return l.return(Fu());if(!a.G)return b=g.Tt("getHotConfig IDB not initialized"),ur(b),l.return(Promise.reject(b));c=wu();d=g.pr("TIME_CREATED_MS");if(!c){e=g.Tt("getHotConfig token error");ur(e);l.Ha(2);break}return g.G(l,Toa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Cu(a,f.config),a.Js(f.hashData),l.return(Fu());case 2:Yoa(a);if(!(c&&a.B&&a.hotHashData)){l.Ha(4);break}return g.G(l,Qoa(a.B,a.hotHashData,c,d),4);case 4:return a.B? +l.return(Fu()):(h=new g.pt("Config not available in ytConfig"),ur(h),l.return(Promise.reject(h)))}})}; +bpa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j)return l.return(Eu());if(!a.G)return b=g.Tt("getColdConfig IDB not initialized"),ur(b),l.return(Promise.reject(b));c=wu();d=g.pr("TIME_CREATED_MS");if(!c){e=g.Tt("getColdConfig");ur(e);l.Ha(2);break}return g.G(l,Soa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Du(a,f.config),apa(a,f.configData),Gu(a,f.hashData),l.return(Eu());case 2:Xoa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ha(4);break}return g.G(l,Roa(a.j, +a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Eu()):(h=new g.pt("Config not available in ytConfig"),ur(h),l.return(Promise.reject(h)))}})}; +Voa=function(a){if(!a.B||!a.j){if(!wu()){var b=g.Tt("scheduleGetConfigs");ur(b)}a.D||(a.D=g.Zo.Vi(function(){return g.J(function(c){switch(c.j){case 1:return g.va(c,2),g.G(c,$oa(a),4);case 4:g.wa(c,3);break;case 2:g.xa(c);case 3:return g.va(c,5),g.G(c,bpa(a),7);case 7:g.wa(c,6);break;case 5:g.xa(c);case 6:a.D&&(a.D=0),g.ua(c)}})},100))}}; +cpa=function(a,b,c){var d,e,f;return g.J(function(h){switch(h.j){case 1:if(!g.Pr("start_client_gcf")){h.Ha(0);break}c&&Cu(a,c);a.Js(b);d=wu();if(!d){h.Ha(3);break}if(c){h.Ha(4);break}return g.G(h,Toa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,Qoa(c,b,d),3);case 3:if(c)for(var l=c,m=g.w(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.ua(h)}})}; +dpa=function(a,b,c){var d,e,f,h;return g.J(function(l){if(l.j==1){if(!g.Pr("start_client_gcf"))return l.Ha(0);Gu(a,b);return(d=wu())?c?l.Ha(4):g.G(l,Soa(d),5):l.Ha(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ha(0);h=c.configData;return g.G(l,Roa(c,b,h,d),0)})}; +epa=function(){var a=Woa(),b=(0,g.Zt)()-a.C;if(!(a.C!==0&&b0&&(b.request={internalExperimentFlags:c});gpa(a,void 0,b);hpa(void 0,b);ipa(void 0,b);jpa(a,void 0,b);kpa(void 0,b);g.Pr("start_client_gcf")&&lpa(void 0,b);g.pr("DELEGATED_SESSION_ID")&& +!g.Pr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.pr("DELEGATED_SESSION_ID")});!g.Pr("fill_delegate_context_in_gel_killswitch")&&(a=g.pr("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.w(Object.entries(xr(g.pr("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"? +e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b}; +gpa=function(a,b,c){a=a.IQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=Dg(b,Oq,96)||new Oq;var d=ft();d=Object.keys(mpa).indexOf(d);d=d===-1?null:d;d!==null&&Ug(c,3,d);Eg(b,Oq,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=ft())}; +hpa=function(a,b){var c=g.La("yt.embedded_player.embed_url");c&&(a?(b=Dg(a,Sq,7)||new Sq,Sg(b,4,c),Eg(a,Sq,7,b)):b&&(b.thirdParty={embedUrl:c}))}; +ipa=function(a,b){var c;if(g.Pr("web_log_memory_total_kbytes")&&((c=g.Ja.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Ja.navigator)==null?void 0:d.deviceMemory;a?ig(a,95,Lf(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}}; +jpa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=Dg(b,Nq,62))!=null?d:new Nq;Sg(c,6,a.appInstallData);Eg(b,Nq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)}; +kpa=function(a,b){var c=Wna();c&&(a?Ug(a,61,npa[c]):b&&(b.client.connectionType=c));g.Pr("web_log_effective_connection_type")&&(c=Yna())&&(a?Ug(a,94,opa[c]):b&&(b.client.effectiveConnectionType=c))}; +ppa=function(a,b,c){c=c===void 0?{}:c;var d={};g.pr("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.pr("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.pr("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.XW||g.pr("AUTHORIZATION");b||(a?b="Bearer "+g.La("gapi.auth.getToken")().access_token:(a=Qna().aF(Lu),g.Pr("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d}; +lpa=function(a,b){var c=epa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=Dg(a,Nq,62))!=null?f:new Nq;d=Sg(b,1,d);Sg(d,3,e).Js(c);Eg(a,Nq,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}}; +Pu=function(a,b){this.version=a;this.args=b}; +Tu=function(a,b){this.topic=a;this.j=b}; +Vu=function(a,b){var c=Uu();c&&c.publish.call(c,a.toString(),a,b)}; +spa=function(a){var b=qpa,c=Uu();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var h=g.La("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(Wu[d])try{if(f&&b instanceof Tu&&b!=e)try{var l=b.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Iv){var n=new l;l.Iv=n.version}var p=l.Iv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l, +g.Tb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+q.message,q;}a.call(window,f)}catch(q){g.sr(q)}},rpa[b.toString()]?g.zt()?g.Zo.Vi(h):g.Kr(h,0):h())}); +Wu[d]=!0;Xu[b.toString()]||(Xu[b.toString()]=[]);Xu[b.toString()].push(d);return d}; +vpa=function(){var a=tpa,b=spa(function(c){a.apply(void 0,arguments);upa(b)}); +return b}; +upa=function(a){var b=Uu();b&&(typeof a==="number"&&(a=[a]),g.cc(a,function(c){b.unsubscribeByKey(c);delete Wu[c]}))}; +Uu=function(){return g.La("ytPubsub2Pubsub2Instance")}; +Yu=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()Bpa||h=Fpa&&(hv++,g.Pr("abandon_compression_after_N_slow_zips")?gv===g.Qr("compression_disable_point")&&hv>Gpa&&(dv=!1):dv=!1);Hpa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)}; +Ipa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.Zt)(),e={startTime:d,ticks:{},infos:{}},f=b?g.La("yt.logging.gzipForFetch",!1):!0;if(dv&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=Apa(h);if(l!=null&&(l>Bpa||l=Fpa)if(hv++,g.Pr("abandon_compression_after_N_slow_zips")||g.Pr("abandon_compression_after_N_slow_zips_lr")){b=hv/gv;var n=Gpa/g.Qr("compression_disable_point");gv>0&&gv%g.Qr("compression_disable_point")===0&&b>=n&&(dv=!1)}else dv=!1;Hpa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return ur(p),a}}else return a}; +Apa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return ur(b),null}}; +Hpa=function(a){g.Pr("gel_compression_csi_killswitch")||!g.Pr("log_gel_compression_latency")&&!g.Pr("log_gel_compression_latency_lr")||Yu("gel_compression",a,{sampleRate:.1})}; +jv=function(a){var b=this;this.aJ=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; +this.xA=function(){}; +this.now=Date.now;this.GE=!1;this.hd={upa:function(p){b.zf=p}, +Spa:function(){b.EC()}, +s7:function(){b.JO()}, +CF:function(p){return g.J(function(q){return g.G(q,b.CF(p),0)})}, +pM:function(p,q){return b.pM(p,q)}, +sM:function(){b.sM()}}; +var c;this.P2=(c=a.P2)!=null?c:100;var d;this.P1=(d=a.P1)!=null?d:1;var e;this.H1=(e=a.H1)!=null?e:2592E6;var f;this.B1=(f=a.B1)!=null?f:12E4;var h;this.O1=(h=a.O1)!=null?h:5E3;var l;this.zf=(l=a.zf)!=null?l:void 0;this.CJ=!!a.CJ;var m;this.jJ=(m=a.jJ)!=null?m:.1;var n;this.aM=(n=a.aM)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.xA&&(this.xA=a.xA);a.GE&&(this.GE=a.GE);a.aJ&&(this.aJ=a.aJ);this.kb=a.kb;this.Go=a.Go;this.Kh=a.Kh;this.lh=a.lh;this.sendFn=a.sendFn;this.xS=a.xS;this.IR= +a.IR;iv(this)&&(!this.kb||this.kb("networkless_logging"))&&Jpa(this)}; +Jpa=function(a){iv(a)&&!a.GE&&(a.j=!0,a.CJ&&Math.random()<=a.jJ&&a.Kh.w7(a.zf),a.sM(),a.lh.Ih()&&a.EC(),a.lh.listen(a.xS,a.EC.bind(a)),a.lh.listen(a.IR,a.JO.bind(a)))}; +Mpa=function(a,b){if(!iv(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){}; +b.options.onError=function(e,f){var h,l,m,n;return g.J(function(p){switch(p.j){case 1:h=Kpa(f);(l=Lpa(f))&&a.kb&&a.kb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.aM)){p.Ha(2);break}if(!a.lh.wM){p.Ha(3);break}return g.G(p,a.lh.wM(),3);case 3:if(a.lh.Ih()){p.Ha(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||((m=b)==null?void 0: +m.id)===void 0){p.Ha(6);break}return g.G(p,a.Kh.jT(b.id,a.zf,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.aM)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ha(8);break}return b.sendCount=400&&a<=599?!1:!0}; +Lpa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)}; +Npa=function(){if(lv)return lv();var a={};lv=g.zu("LogsDatabaseV2",{ys:(a.LogsRequestsStore={Hn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.au(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.gu(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&bu(b,"sapisid");c(9)&&bu(b,"SWHealthLog")}, +version:9});return lv()}; +mv=function(a){return g.ou(Npa(),a)}; +Ppa=function(a,b){var c,d,e,f;return g.J(function(h){if(h.j==1)return c={startTime:(0,g.Zt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,mv(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.pr("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.eu(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.Zt)();Opa(c);return h.return(f)})}; +Qpa=function(a,b){var c,d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1)return c={startTime:(0,g.Zt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,mv(b),2);if(p.j!=3)return d=p.B,e=g.pr("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.Zt)()],l=IDBKeyRange.bound(f,h),m="prev",g.Pr("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.cu(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.ku(q.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3); +c.ticks.tc=(0,g.Zt)();Opa(c);return p.return(n)})}; +Rpa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,mv(b),2);c=d.B;return d.return(g.cu(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.du(f,h).then(function(){return h})})}))})}; +Spa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.J(function(f){if(f.j==1)return g.G(f,mv(b),2);e=f.B;return f.return(g.cu(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.du(l,m).then(function(){return m})):g.Vt.resolve(void 0)})}))})}; +Tpa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,mv(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})}; +Upa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,mv(a),2);b=d.B;c=(0,g.Zt)()-2592E6;return g.G(d,g.cu(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.hu(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.iu(f)})})}),0)})}; +Vpa=function(){g.J(function(a){return g.G(a,Moa("LogsDatabaseV2"),0)})}; +Opa=function(a){g.Pr("nwl_csi_killswitch")||Yu("networkless_performance",a,{sampleRate:1})}; +Xpa=function(a){return g.ou(Wpa(),a)}; +Ypa=function(a){var b,c;g.J(function(d){if(d.j==1)return g.G(d,Xpa(a),2);b=d.B;c=(0,g.Zt)()-2592E6;return g.G(d,g.cu(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.hu(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.iu(f)})})}),0)})}; +Zpa=function(a){var b;return g.J(function(c){if(c.j==1)return g.G(c,Xpa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})}; +g.nv=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.ks()){if(a){a=g.ld(g.rd(a));if(a===g.qd.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.vd?l=a:(a=String(a).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),l.hpa&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1 ")),l.gpa&&(a=a.replace(/(\r\n|\n|\r)/g,"
")),l.ipa&&(a=a.replace(/(\t+)/g,'$1')), +l=xd(a));a=g.Rd(g.Ci(g.wd(l).toString()))}g.pb(a)||(l=he("IFRAME",{src:'javascript:""',style:"display:none"}),Yd(l).body.appendChild(l))}}else if(e)Tr(a,b,"POST",e,d);else if(g.pr("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Tr(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new bla({url:a});if(m.C&&m.B||m.D){var n=Ki(g.Mi(5,a));var p=!(!n||!n.endsWith("/aclk")||Vi(a,"ri")!=="1");break b}}catch(q){}p=!1}p?$pa(a)?(b&&b(),l=!0):l=!1:l=!1;l||aqa(a,b)}}; +$pa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1}; +aqa=function(a,b){var c=new Image,d=""+bqa++;ov[d]=c;c.onload=c.onerror=function(){b&&ov[d]&&b();delete ov[d]}; +c.src=a}; +cqa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"}; +qv=function(){pv||(pv=new Bt("yt.offline"));return pv}; +dqa=function(a){if(g.Pr("offline_error_handling")){var b=qv().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);qv().set("errors",b,2592E3,!0)}}; +rv=function(){this.j=new Map;this.B=!1}; +tv=function(){if(!rv.instance){var a=g.La("yt.networkRequestMonitor.instance")||new rv;g.Ka("yt.networkRequestMonitor.instance",a);rv.instance=a}return rv.instance}; +uv=function(){g.Vc.call(this);var a=this;this.B=!1;this.j=sla();this.j.listen("networkstatus-online",function(){if(a.B&&g.Pr("offline_error_handling")){var b=qv().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.pt(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.sr(d)}qv().set("errors",{},2592E3,!0)}}})}; +eqa=function(){if(!uv.instance){var a=g.La("yt.networkStatusManager.instance")||new uv;g.Ka("yt.networkStatusManager.instance",a);uv.instance=a}return uv.instance}; +g.vv=function(a){a=a===void 0?{}:a;g.Vc.call(this);var b=this;this.j=this.D=0;this.B=eqa();var c=g.La("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){fqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){fqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; +fqa=function(a,b){a.rateLimit?a.j?(g.Zo.jk(a.D),a.D=g.Zo.Vi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.Zt)())},a.rateLimit-((0,g.Zt)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.Zt)()):a.dispatchEvent(b)}; +xv=function(){var a=jv.call;wv||(wv=new g.vv({Eoa:!0,Xma:!0}));a.call(jv,this,{Kh:{w7:Upa,Yz:Tpa,zY:Qpa,C$:Rpa,jT:Spa,set:Ppa},lh:wv,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;ur(new g.pt(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.sr(b)}, +xA:ur,sendFn:gqa,now:g.Zt,S3:dqa,Go:g.xt(),xS:"publicytnetworkstatus-online",IR:"publicytnetworkstatus-offline",CJ:!0,jJ:.1,aM:g.Qr("potential_esf_error_limit",10),kb:g.Pr,GE:!(g.rt()&&g.Ni(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.oj;g.Pr("networkless_immediately_drop_all_requests")&&Vpa();Noa("LogsDatabaseV2")}; +yv=function(){var a=g.La("yt.networklessRequestController.instance");a||(a=new xv,g.Ka("yt.networklessRequestController.instance",a),g.Pr("networkless_logging")&&g.xu().then(function(b){a.zf=b;Jpa(a);a.C.resolve();a.CJ&&Math.random()<=a.jJ&&a.zf&&Ypa(a.zf);g.Pr("networkless_immediately_drop_sw_health_store")&&hqa(a)})); +return a}; +hqa=function(a){var b;g.J(function(c){if(!a.zf)throw b=g.Tt("clearSWHealthLogsDb"),b;return c.return(Zpa(a.zf).catch(function(d){a.handleError(d)}))})}; +gqa=function(a,b,c,d){d=d===void 0?!1:d;b=g.Pr("web_fp_via_jspb")?Object.assign({},b):b;g.Pr("use_cfr_monitor")&&iqa(a,b);if(g.Pr("use_request_time_ms_header"))b.headers&&Cr(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Zt)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Zt)())}c&&Object.keys(b).length===0?g.nv(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),fv(a,b.postBody, +b,g.Ur,d)):fv(a,JSON.stringify(b.postParams),b,Vr,d):g.Ur(a,b)}; +zv=function(a,b){g.Pr("use_event_time_ms_header")&&Cr(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Zt)())));return b}; +iqa=function(a,b){var c=b.onError?b.onError:function(){}; +b.onError=function(e,f){tv().requestComplete(a,!1);c(e,f)}; +var d=b.onSuccess?b.onSuccess:function(){}; +b.onSuccess=function(e,f){tv().requestComplete(a,!0);d(e,f)}}; +g.Av=function(a){this.config_=null;a?this.config_=a:fpa()&&(this.config_=g.Ju())}; +g.Bv=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?yv().writeThenSend(n,f):yv().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));fv(n,r,f,g.Ur,q)}else fv(n,JSON.stringify(f.postParams),f,Vr,q)}else g.Pr("web_all_payloads_via_jspb")?g.Ur(n,f):Vr(n,f)}catch(t){if(t.name==="InvalidAccessError")ur(Error("An extension is blocking network request.")); +else throw t;}} +!g.pr("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&ur(new g.pt("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.pt("innertube xhrclient not ready",b,c,d),g.sr(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, +onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)}, +onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)}, +onError:function(p,q){if(d.onError)d.onError(q)}, +onFetchError:function(p){if(d.onError)d.onError(p)}, +timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.BZ;h&&(c=h);var l=a.config_.CZ||!1;h=ppa(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.LQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=g.Ar(""+c+b,l);g.La("ytNetworklessLoggingInitializationOptions")&& +jqa.isNwlInitialized?Foa().then(function(p){e(p)}):e(!1)}; +g.Gv=function(a,b,c){var d=g.Cv();if(d&&b){var e=d.subscribe(a,function(){function f(){Dv[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)} +var h=arguments;try{g.Ev[a]?f():g.Kr(f,0)}catch(l){g.sr(l)}},c); +Dv[e]=!0;Fv[a]||(Fv[a]=[]);Fv[a].push(e);return e}return 0}; +kqa=function(a){var b=g.Gv("LOGGED_IN",function(c){a.apply(void 0,arguments);g.Hv(b)})}; +g.Hv=function(a){var b=g.Cv();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.cc(a,function(c){b.unsubscribeByKey(c);delete Dv[c]}))}; +g.Iv=function(a,b){var c=g.Cv();return c?c.publish.apply(c,arguments):!1}; +mqa=function(a){var b=g.Cv();if(b)if(b.clear(a),a)lqa(a);else for(var c in Fv)lqa(c)}; +g.Cv=function(){return g.Ja.ytPubsubPubsubInstance}; +lqa=function(a){Fv[a]&&(a=Fv[a],g.cc(a,function(b){Dv[b]&&delete Dv[b]}),a.length=0)}; +g.Jv=function(a,b,c){nqa(a,b,c===void 0?null:c)}; +nqa=function(a,b,c){c=c===void 0?null:c;var d=oqa(a),e=document.getElementById(d),f=e&&Ana(e),h=e&&!f;f?b&&b():(b&&(f=g.Gv(d,b),b=""+g.Ta(b),pqa[b]=f),h||(e=qqa(a,d,function(){Ana(e)||(zna(e),g.Iv(d),g.Kr(function(){mqa(d)},0))},c)))}; +qqa=function(a,b,c,d){d=d===void 0?null:d;var e=g.je("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)}; +e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}}; +d&&e.setAttribute("nonce",d);g.Pd(e,g.Kq(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e}; +oqa=function(a){var b=document.createElement("a");g.Kd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vd(a)}; +Mv=function(a){var b=g.Ca.apply(1,arguments);if(!Kv(a)||b.some(function(d){return!Kv(d)}))throw Error("Only objects may be merged."); +b=g.w(b);for(var c=b.next();!c.done;c=b.next())Lv(a,c.value)}; +Lv=function(a,b){for(var c in b)if(Kv(b[c])){if(c in a&&!Kv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Lv(a[c],b[c])}else if(Nv(b[c])){if(c in a&&!Nv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);rqa(a[c],b[c])}else a[c]=b[c];return a}; +rqa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Kv(c)?a.push(Lv({},c)):Nv(c)?a.push(rqa([],c)):a.push(c);return a}; +Kv=function(a){return typeof a==="object"&&!Array.isArray(a)}; +Nv=function(a){return typeof a==="object"&&Array.isArray(a)}; +Ov=function(a){g.O.call(this);this.B=a}; +Pv=function(a){Ov.call(this,!0);this.j=a}; +sqa=function(a,b){g.O.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.Ua)(a,b);this.j=new g.fp(function(){return d(c.qa)},300); +g.P(this,this.j);this.Y=this.Z=Infinity}; +tqa=function(a,b){if(!b)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(d.AU!==void 0)var e=d.AU;else if(d.lfa)e=d[$v]?xqa(a,d[$v],c):[],e=d.lfa.apply(d,g.x(e));else if(d.F3){e=d.F3;var f=e[$v]?xqa(a,e[$v],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.x(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Kpa||a.B.set(b,e); +return e}; +xqa=function(a,b,c){return b?b.map(function(d){return d instanceof Yv?aw(a,d.key,c,!0):aw(a,d,c)}):[]}; +cw=function(){bw||(bw=new wqa);return bw}; +ew=function(){var a,b;return"h5vcc"in dw&&((a=dw.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=dw.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in dw&&dw.performance.mark&&dw.performance.measure?2:0}; +fw=function(a){var b=ew();switch(b){case 1:dw.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:dw.performance.mark(a+"-start");break;case 0:break;default:Ld(b,"unknown trace type")}}; +yqa=function(a){var b=ew();switch(b){case 1:dw.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";dw.performance.mark(c);dw.performance.measure(a,b,c);break;case 0:break;default:Ld(b,"unknown trace type")}}; +zqa=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.xt():d;this.C=c;this.scheduler=d;this.B=new g.oj;this.j=a;for(a={tx:0};a.tx=1E3?f():e>=a?Dw||(Dw=Ew(function(){f();Dw=void 0},0)):h-m>=10&&(Qqa(c,d.tier),l.D=h)}; +Lqa=function(a,b){if(a.endpoint==="log_event"){ww(a);var c=xw(a),d=new Map;d.set(c,[a.payload]);var e=Iqa(a.payload)||"";b&&(Bw=new b);return new g.Fe(function(f,h){Bw&&Bw.isReady()?Fw(d,Bw,f,h,{bypassNetworkless:!0},!0,zw(e)):f()})}}; +Oqa=function(a,b,c){if(b.endpoint==="log_event"){ww(void 0,b);var d=xw(b,!0),e=new Map;e.set(d,[ph(b.payload)]);c&&(Bw=new c);return new g.Fe(function(f){Bw&&Bw.isReady()?Gw(e,Bw,f,{bypassNetworkless:!0},!0,zw(a)):f()})}}; +xw=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new kr;c.videoId?d.setVideoId(c.videoId):c.playlistId&&xg(d,2,Hw,Mf(c.playlistId));Iw[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Jw[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c}; +Aw=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.Fe(function(e,f){var h=Cw(c,d),l=h.C;h.C=!1;Kw(h.B);Kw(h.j);h.j=0;Bw&&Bw.isReady()?d===void 0&&g.Pr("enable_web_tiered_gel")?Rqa(e,f,a,b,c,300,l):Rqa(e,f,a,b,c,d,l):(Qqa(c,d),e())})}; +Rqa=function(a,b,c,d,e,f,h){var l=Bw;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.Pr("enable_web_tiered_gel")?uw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):uw().extractMatchingEntries(q),m.set(d,b),Gw(m,l,a,c,!1,h)):(m=g.Pr("enable_web_tiered_gel")?uw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):uw().extractMatchingEntries(q),n.set(d,m), +Fw(n,l,a,b,c,!1,h));else if(e){b=g.w(Object.keys(yw));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.Pr("enable_web_tiered_gel")?uw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):uw().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.Pr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Pr("web_fp_via_jspb_and_json"))&&delete yw[n];Gw(m,l,a,c,!1,h)}else{m=g.w(Object.keys(yw));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.Pr("enable_web_tiered_gel")?uw().smartExtractMatchingEntries({keys:[{isJspb:!1, +cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):uw().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.Pr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Pr("web_fp_via_jspb_and_json"))&&delete yw[p];Fw(n,l,a,b,c,!1,h)}}; +Qqa=function(a,b){function c(){Aw({writeThenSend:!0},void 0,a,b)} +a=a===void 0?!1:a;b=b===void 0?200:b;var d=Cw(a,b),e=d===Sqa||d===Tqa?5E3:Uqa;g.Pr("web_gel_timeout_cap")&&!d.j&&(e=Ew(function(){c()},e),d.j=e); +Kw(d.B);e=g.pr("LOGGING_BATCH_TIMEOUT",g.Qr("web_gel_debounce_ms",1E4));g.Pr("shorten_initial_gel_batch_timeout")&&Lw&&(e=Vqa);e=Ew(function(){g.Qr("gel_min_batch_size")>0?uw().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Wqa&&c():c()},e); +d.B=e}; +Fw=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.Zt)()),m=a.size,n=Xqa(h);a=g.w(a);var p=a.next();for(h={};!p.done;h={ER:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,qS:void 0,SR:void 0},p=a.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Gc({context:g.Ku(b.config_||g.Ju())});if(!g.Pa(q)&&!g.Pr("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=Jw[p])&&Yqa(h.batchRequest,p,q);delete Jw[p];h.dangerousLogToVisitorSession= +p==="visitorOnlyApprovedKey";Zqa(h.batchRequest,l,h.dangerousLogToVisitorSession);$qa(e);h.qS=function(r){g.Pr("start_client_gcf")&&g.Zo.Vi(function(){return g.J(function(t){return g.G(t,ara(r),0)})}); +m--;m||c()}; +h.ER=0;h.SR=function(r){return function(){r.ER++;if(e.bypassNetworkless&&r.ER===1)try{g.Bv(b,n,r.batchRequest,Mw({writeThenSend:!0},r.dangerousLogToVisitorSession,r.qS,r.SR,f)),Lw=!1}catch(t){g.sr(t),d()}m--;m||c()}}(h); +try{g.Bv(b,n,h.batchRequest,Mw(e,h.dangerousLogToVisitorSession,h.qS,h.SR,f)),Lw=!1}catch(r){g.sr(r),d()}}}; +Gw=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.Zt)()),l={value:a.size},m=new Map([].concat(g.x(a)));m=g.w(m);for(var n=m.next();!n.done;n=m.next()){var p=g.w(n.value).next().value,q=a.get(p);n=new Gma;var r=b.config_||g.Ju(),t=new Vq,u=new Pq;Sg(u,1,r.KQ);Sg(u,2,r.JQ);Ug(u,16,r.AZ);Sg(u,17,r.innertubeContextClientVersion);if(r.GK){var y=r.GK,A=new Nq;y.coldConfigData&&Sg(A,1,y.coldConfigData);y.appInstallData&&Sg(A,6,y.appInstallData);y.coldHashData&&Sg(A,3,y.coldHashData);y.hotHashData&& +A.Js(y.hotHashData);Eg(u,Nq,62,A)}(y=g.Ja.devicePixelRatio)&&y!=1&&ig(u,65,Df(y));y=Rr();y!==""&&Sg(u,54,y);y=Sr();if(y.length>0){A=new Rq;for(var D=0;Ddra&&(a=1);or("BATCH_CLIENT_COUNTER",a);return a}; +Yqa=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}]}; +ww=function(a,b){if(!g.La("yt.logging.transport.enableScrapingForTest")){var c=Or("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")Pw=[],g.Ka("yt.logging.transport.enableScrapingForTest",!0),g.Ka("yt.logging.transport.scrapedPayloadsForTesting",Pw),g.Ka("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ka("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.Ka("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.La("yt.logging.transport.scrapedPayloadsForTesting");var d=g.La("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.La("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.La("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e0&&xra(a,b,f)}else xra(a,b)}; +xra=function(a,b,c){a=yra(a);b=b?g.Si(b):"";c=c||5;xs()&&g.ds(a,b,c)}; +yra=function(a){for(var b=g.w(zra),c=b.next();!c.done;c=b.next())a=Wi(a,c.value);return"ST-"+Vd(a).toString(36)}; +Ara=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")}; +Bra=function(){this.Ft=[];this.ws=[]}; +$w=function(){if(!Zw){var a=Zw=new Bra;a.ws.length=0;a.Ft.length=0;Cra(a,Dra)}return Zw}; +Cra=function(a,b){b.ws&&a.ws.push.apply(a.ws,b.ws);b.Ft&&a.Ft.push.apply(a.Ft,b.Ft)}; +Era=function(a){function b(){return a.charCodeAt(d++)} +var c=a.length,d=0;do{var e=ax(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=ax(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=ax(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=Era(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?bx(f+".ve",h,l,m):0;d+=f;d+=bx(e,a[e],b,c);if(d>500)break}}else c[b]=cx(a),d+=c[b].length;else c[b]=cx(a),d+=c[b].length;return d}; +bx=function(a,b,c,d){c+="."+a;a=cx(b);d[c]=a;return c.length+a.length}; +cx=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}}; +dx=function(a,b,c){c=c===void 0?{}:c;var d=!1;g.pr("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:g.Av;c=c===void 0?{}:c;var e=Math.round(c.timestamp||(0,g.Zt)());Rg(b,1,e=5)){var h=Ira,l=Nba(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",u=p,y=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A=500);A++);else if(a.hasOwnProperty("params")&& +a.params){var D=a.params;if(typeof a.params==="object")for(var F in D){if(D[F]){var H="params."+F,M=cx(D[F]);c[H]=M;y+=H.length+M.length;if(y>500)break}}else c.params=cx(D)}if(h.length)for(var N=0;N=500);N++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var Q={message:m,name:n,lineNumber:r,fileName:t,stack:u,params:c,sampleWeight:1},Z=Number(a.columnNumber);isNaN(Z)||(Q.lineNumber=Q.lineNumber+":"+Z);if(a.level=== +"IGNORED")var fa=0;else a:{for(var pa=$w(),Y=g.w(pa.ws),S=Y.next();!S.done;S=Y.next()){var W=S.value;if(Q.message&&Q.message.match(W.qB)){fa=W.weight;break a}}for(var v=g.w(pa.Ft),V=v.next();!V.done;V=v.next()){var cb=V.value;if(cb.callback(Q)){fa=cb.weight;break a}}fa=1}Q.sampleWeight=fa;for(var zb=g.w(Jra),Ra=zb.next();!Ra.done;Ra=zb.next()){var db=Ra.value;if(db.RL[Q.name])for(var ab=g.w(db.RL[Q.name]),ob=ab.next();!ob.done;ob=ab.next()){var Wa=ob.value,B=Q.message.match(Wa.Pj);if(B){Q.params["params.error.original"]= +B[0];for(var C=Wa.groups,E={},I=0;I1E3&&g.fx(new g.pt("IL Attach cache exceeded limit"))}l= +tx(c,b);ox.has(l)?ux(c,b):qx.set(l,!0)}}d=d.filter(function(p){p.csn!==b?(p.csn=b,p=!0):p=!1;return p}); +c={csn:b,parentVe:c.getAsJson(),childVes:g.Al(d,function(p){return p.getAsJson()})}; +b==="UNDEFINED_CSN"?vx("visualElementAttached",f,c):a?Rw("visualElementAttached",c,a,f):g.Ht("visualElementAttached",c,f)}; +$ra=function(a,b,c,d,e){wx(c,b);d=nx({cttAuthInfo:Xw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};e&&(c.clientData=e);b==="UNDEFINED_CSN"?vx("visualElementShown",d,c):a?Rw("visualElementShown",c,a,d):g.Ht("visualElementShown",c,d)}; +asa=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8;d=nx({cttAuthInfo:Xw(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:e};b==="UNDEFINED_CSN"?vx("visualElementHidden",d,c):a?Rw("visualElementHidden",c,a,d):g.Ht("visualElementHidden",c,d)}; +csa=function(a,b,c,d){bsa(a,b,c,d)}; +bsa=function(a,b,c,d){var e=void 0;wx(c,b);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=nx({cttAuthInfo:Xw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:e};d&&(c.clientData=d);b==="UNDEFINED_CSN"?vx("visualElementGestured",f,c):a?Rw("visualElementGestured",c,a,f):g.Ht("visualElementGestured",c,f)}; +dsa=function(){var a=Rv(16);for(var b=[],c=0;c0&&c.push(g.je("BR"));c.push(g.ke(f))}):c.push(g.ke(d))}return c}; +Lx=function(a,b,c,d){if(c==="child"){g.me(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=fsa(a,e);c=g.w(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.jm(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.ld(g.rd(a))),b.setAttribute(c,a))}; +g.T=function(a){g.Jx.call(this,a);this.Hb=!0;this.Z=!1;this.listeners=[]}; +g.Mx=function(a,b){b?a.show():a.hide()}; +g.Nx=function(a){g.T.call(this,a);this.Ra=new g.Fx;g.P(this,this.Ra)}; +Ox=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.Nx.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.yb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.jb=f;this.Ya=null;this.nT=new Pv(this.element);g.P(this,this.nT);this.ob=this.T(this.element,"click",this.onClick);this.Fa=[];this.Ba=new sqa(this.onClick,this);g.P(this,this.Ba);this.Ab=!1;this.Ma=this.qa=null}; +Px=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.fx(Error("Got null or undefined adText object")),"";var c=g.Ud(a.text);if(!a.isTemplated)return c;if(b==null)return g.fx(Error("Missing required parameters for a templated message")),c;a=g.w(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.w(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c}; +gsa=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.Ud(a.thumbnails[0].url):""}; +hsa=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Id(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Id(0,0)}; +g.Qx=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.w(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""}; +g.Rx=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c1){for(var b=[a[0]],c=1;c0&&(this.j=new g.fp(this.YW,b,this),g.P(this,this.j));this.G=new g.fp(this.YW,c,this);g.P(this,this.G);this.Z=zla(this.B,e,1,d);g.P(this,this.Z);this.N=zla(this.B,0,d,1);g.P(this,this.N);this.D=new Ws;g.P(this,this.D)}; +Ssa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ld(a,"unknown result type")}}; +Tsa=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Ld(a,"Unknown method type")}}; +Usa=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"): +d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);or("ISDSTAT",c);Ky(c,"i.s_",{Sea:"sk",metadata:b,states:d});return c}; +Vsa=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Ky(0,"a.s_",{metadata:a,states:c},!1);or("ASDSTAT",0)}; +Ky=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.Sea)!=null?e:"")+((f=c.g7)!=null?f:""),detectionStates:c.states,durationMs:c.f7};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.Ht("biscottiBasedDetection",h);d&&(a=Ssa(a),b=Tsa(b),or("CATSTAT",Number(g.pr("CATSTAT",0))&~(3<0}; +Ry=function(a,b,c,d,e,f){Ay.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Ga=!1;this.Wa=f;this.G=this.api.U().experiments.kb("enable_modern_skip_button_on_web");this.Xa=!1;this.D=new g.Nx({I:"span",Na:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.P(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.fb=new g.Dy(this.D,500,!1,100,function(){return h.hide()}); +g.P(this,this.fb);this.Ka=new Jy(this.D.element,15E3,5E3,.5,.5,this.G);g.P(this,this.Ka);this.hide()}; +Xsa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.R(a.clickCommand,g.Sy)&&g.R(a.clickCommand,g.Sy).commands||[]).some(function(b){return b.adLifecycleCommand?Wsa(b.adLifecycleCommand):!1})}; +Wsa=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"}; +Ty=function(a,b,c,d,e,f){Ay.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()}; +Ysa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.fb.show(),a.show()):a.C.show())}; +Uy=function(a,b,c,d){gy.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +Vy=function(a,b,c,d,e,f){Ox.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Ea("ytp-ad-simple-ad-badge");this.hide()}; +Wy=function(a,b,c,d,e){e=e===void 0?!1:e;Ex.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.CM=e}; +Xy=function(a,b){g.Fx.call(this);this.api=a;this.durationMs=b;this.j=null;this.Hd=new Ws(this);g.P(this,this.Hd);this.B=Zsa;this.Hd.T(this.api,"presentingplayerstatechange",this.E5);this.j=this.Hd.T(this.api,"onAdPlaybackProgress",this.Tc)}; +Yy=function(a){g.Fx.call(this);this.j=!1;this.qj=0;this.Hd=new Ws(this);g.P(this,this.Hd);this.durationMs=a;this.Xe=new g.Me(100);g.P(this,this.Xe);this.Hd.T(this.Xe,"tick",this.Tc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()}; +g.Zy=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";d>0&&(b+=" "+d+" Days");if(d>0||e>0)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d}; +g.$y=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)}; +az=function(a,b,c,d,e,f){Ay.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()}; +bz=function(a,b,c,d){yy.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")}; +cz=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()}; +dz=function(a,b){this.B=a;this.j=b}; +$sa=function(a,b){return a.B+b*(a.j-a.B)}; +ez=function(a,b,c){return a.j-a.B?g.Dd((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity}; +fz=function(a,b){g.Nx.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.P(this,this.B);this.progressBar=this.Ea("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +gz=function(a,b,c,d,e,f){Ox.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ea("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&& +this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.j=this.Ea("ytp-ad-player-overlay-instream-info");this.D=null;ata(this)&&(a=he("div"),g.np(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new bz(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(a),c.init(Dx("ad-title"),{text:b.title},this.macros),g.P(this,c)),this.D=a);this.G=this.Ea("ytp-ad-player-overlay-skip-or-preview"); +this.Ka=this.Ea("ytp-ad-player-overlay-progress-bar");this.Ga=this.Ea("ytp-ad-player-overlay-instream-user-sentiment");this.ra=this.Ea("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.P(this,this.B);this.hide()}; +ata=function(a){a=a.api.U();return g.hz(a)&&a.B}; +iz=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Ti("/sharing_services",a);g.nv(d)}; +g.jz=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; +kz=function(a){this.j=new Jp(a)}; +bta=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.pr("INNERTUBE_CLIENT_NAME")==="WEB"||g.pr("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a}; +lz=function(a){if(g.pr("LOGGED_IN",!0)&&bta()){var b=g.pr("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Ni(window.location.href);c&&b.push(c);c=g.Ni(a);g.Mb(b,c)||!c&&nb(a,"/")?(b=Oi(a),(b=Nfa(b))?(b=yra(b),b=(b=g.es(b)||null)?xr(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;bta()?(d||(d=g.pr("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Yw(a,b)}}; +g.cta=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.Ti(a,b);lz(a);c=g.rd(a+c);d=d.location;c=sd(c);c!==void 0&&(d.href=c)}; +g.mz=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.pr("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Yw(a,b);c||(lz(a),g.cta(a))}; +g.nz=function(a,b,c,d,e){e=e===void 0?!1:e;c&&Yw(a,c);c=g.rd(a);var f=g.ld(c);a!=f&&ur(Error("Unsafe window.open URL: "+a));a=f;b=b||Vd(a).toString(36);try{if(e){e=a;e=cqa(e);lz(e);g.Md(e,b,"attributionsrc");return}}catch(h){g.sr(h)}lz(a);g.Md(c,b,d)}; +dta=function(a){oz=a}; +eta=function(a){pz=a}; +fta=function(a){qz=a}; +hta=function(){gta=qz=pz=oz=null}; +jta=function(){var a=a===void 0?window.location.href:a;if(g.Pr("kevlar_disable_theme_param"))return null;Ki(g.Mi(5,a));try{var b=g.zr(a).theme;return ita.get(b)||null}catch(c){}return null}; +rz=function(){this.j={};if(this.B=ina()){var a=g.es("CONSISTENCY");a&&kta(this,{encryptedTokenJarContents:a})}}; +kta=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3); +a.B&&g.ds("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}}; +tz=function(){this.B=-1;var a=g.pr("LOCATION_PLAYABILITY_TOKEN");g.pr("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=sz(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)}; +sz=function(a){return a.localStorage===void 0?new Bt("yt-client-location"):a.localStorage}; +g.uz=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.pr("INNERTUBE_CONTEXT");if(!d)return g.ex(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Gc(d);g.Pr("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.pr("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints= +window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=f===void 0?!1:f;g.it();var h="USER_INTERFACE_THEME_LIGHT";g.kt(0,165)?h="USER_INTERFACE_THEME_DARK":g.kt(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Pr("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(h="USER_INTERFACE_THEME_DARK");f=f?h:jta()||h;e.userInterfaceTheme=f;if(!b){if(f=Wna())e.connectionType=f;g.Pr("web_log_effective_connection_type")&&(f=Yna())&&(d.client.effectiveConnectionType=f)}var l;if(g.Pr("web_log_memory_total_kbytes")&&((l=g.Ja.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Ja.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.Pr("web_gcf_hashes_innertube")&&(f=epa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo|| +{},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.zr(g.Ja.location.href);!g.Pr("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Ja.location.href},g.Pr("kevlar_woffle")&&Pna.instance&&(m=Pna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ft(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.Pr("web_lr_app_quality_killswitch")&&(m=g.pr("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.pr("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Pr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(H){}n=void 0}n&&(e.timeZone=n)}(n=Rr())?e.experimentsToken=n:delete e.experimentsToken;n=Sr();rz.instance||(rz.instance=new rz);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.wc(rz.instance.j)});!g.Pr("web_prequest_context_killswitch")&&(n=g.pr("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.it();n=g.kt(0,58);e=e.get("gsml","");d.user=Object.assign({}, +d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Pr("warm_op_csn_cleanup")?c&&(b=g.Ww())&&(d.clientScreenNonce=b):!b&&(b=g.Ww())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.La("yt.mdx.remote.remoteClient_"))d.remoteClient=a;tz.getInstance().setLocationOnInnerTubeContext(d);try{var p=Hr(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.w(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.w(t.value),y=u.next().value, +A=u.next().value;p=y;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var D;if(((D=d.client)==null?void 0:D.clientName)==="TVHTML5"){var F=g.pr("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(H){g.ex(H)}return d}; +mta=function(a,b){if(!a)return!1;var c,d=(c=g.R(a,vz))==null?void 0:c.signal;if(d&&b.Ry)return!!b.Ry[d];var e;if((c=(e=g.R(a,lta))==null?void 0:e.request)&&b.bP)return!!b.bP[c];for(var f in a)if(b.VO[f])return!0;return!1}; +nta=function(a){var b={"Content-Type":"application/json"};g.pr("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.pr("EOM_VISITOR_DATA"):g.pr("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.pr("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.pr("LOGGED_IN",!1);g.pr("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.pr("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.pr("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.pr("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= +a),(a=g.pr("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.pr("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b}; +ota=function(){this.j={}}; +wz=function(){this.mappings=new ota}; +xz=function(a){return function(){return new a}}; +qta=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=pta[b];if(c){c=new RegExp(c);for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(pta).forEach(function(h){var l=g.w(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)}); +c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length}); +d=g.w(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]}; +g.yz=function(a){return"/youtubei/v1/"+qta(a)}; +zz=function(){}; +Qz=function(){}; +Rz=function(){}; +Sz=function(a){return g.La("ytcsi."+(a||"")+"data_")||rta(a)}; +sta=function(){var a=Sz();a.info||(a.info={});return a.info}; +Tz=function(a){a=Sz(a);a.metadata||(a.metadata={});return a.metadata}; +Uz=function(a){a=Sz(a);a.tick||(a.tick={});return a.tick}; +Vz=function(a){a=Sz(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel}; +tta=function(a){a=Vz(a);a.gelInfos||(a.gelInfos={});return a.gelInfos}; +Wz=function(a){var b=Sz(a).nonce;b||(b=g.Sv(16),Sz(a).nonce=b);return b}; +rta=function(a){var b={tick:{},info:{}};g.Ka("ytcsi."+(a||"")+"data_",b);return b}; +Xz=function(){var a=g.La("ytcsi.debug");a||(a=[],g.Ka("ytcsi.debug",a),g.Ka("ytcsi.reference",{}));return a}; +Yz=function(a){a=a||"";var b=uta();if(b[a])return b[a];var c=Xz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d}; +vta=function(a){a=a||"";var b=uta();b[a]&&delete b[a];var c=Xz(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d}; +uta=function(){var a=g.La("ytcsi.reference");if(a)return a;Xz();return g.La("ytcsi.reference")}; +Zz=function(a){return wta[a]||"LATENCY_ACTION_UNKNOWN"}; +$z=function(a,b){Pu.call(this,1,arguments);this.Xe=b}; +aA=function(){this.j=0}; +bA=function(){aA.instance||(aA.instance=new aA);return aA.instance}; +dA=function(a,b){cA[b]=cA[b]||{count:0};var c=cA[b];c.count++;c.time=(0,g.Zt)();a.j||(a.j=g.vt(0,function(){var d=(0,g.Zt)(),e;for(e in cA)cA[e]&&d-cA[e].time>6E4&&delete cA[e];a&&(a.j=0)},5E3)); +return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.pt("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.fx(c)),!0):!1}; +xta=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +yta=function(){var a;if(g.Pr("csi_use_performance_navigation_timing")||g.Pr("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=eA==null?void 0:(a=eA.getEntriesByType)==null?void 0:(b=a.call(eA,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=fA(e.requestStart),e.responseEnd=fA(e.responseEnd),e.redirectStart=fA(e.redirectStart),e.redirectEnd=fA(e.redirectEnd),e.domainLookupEnd=fA(e.domainLookupEnd),e.connectStart=fA(e.connectStart), +e.connectEnd=fA(e.connectEnd),e.responseStart=fA(e.responseStart),e.secureConnectionStart=fA(e.secureConnectionStart),e.domainLookupStart=fA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=eA.timing}else a=g.Pr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(eA.timing)):eA.timing;return a}; +fA=function(a){return Math.round(gA()+a)}; +gA=function(){return(g.Pr("csi_use_time_origin")||g.Pr("csi_use_time_origin_tvhtml5"))&&eA.timeOrigin?Math.floor(eA.timeOrigin):eA.timing.navigationStart}; +iA=function(a,b){hA("_start",a,b)}; +jA=function(a,b){if(!g.Pr("web_csi_action_sampling_enabled")||!Sz(b).actionDisabled){var c=Yz(b||"");Mv(c.info,a);a.loadType&&(c=a.loadType,Tz(b).loadType=c);Mv(tta(b),a);c=Wz(b);b=Sz(b).cttAuthInfo;bA().info(a,c,b)}}; +zta=function(){var a,b,c,d;return((d=cw().resolve(new Yv(Hu))==null?void 0:(a=Iu())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})}; +hA=function(a,b,c){if(!g.Pr("web_csi_action_sampling_enabled")||!Sz(c).actionDisabled){var d=Wz(c),e;if(e=g.Pr("web_csi_debug_sample_enabled")&&d){(cw().resolve(new Yv(Hu))==null?0:Iu())&&!Ata&&(Ata=!0,hA("gcfl",(0,g.Zt)(),c));var f,h,l;e=(cw().resolve(new Yv(Hu))==null?void 0:(f=Iu())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=zta();if(f.length>0)for(h=0;hc.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(hA("wffs",fA(b.startTime)),hA("wffe",fA(b.responseEnd)))}; +Hta=function(a,b,c){eA&&eA.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?eA.measure(a,b,c):b?eA.measure(a,b):eA.measure(a))}; +Ita=function(a){var b=kA("aft",a);if(b)return b;b=g.pr((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d0&&jA(b);b={isNavigation:!0,actionType:Zz(g.pr("TIMING_ACTION"))};var c=g.pr("PREVIOUS_ACTION");c&&(b.previousAction=Zz(c));if(c=g.pr("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.pr("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Ww())&&c!=="UNDEFINED_CSN"&&(b.clientScreenNonce=c);c=Dta();if(c===1||c===-1)b.isVisible= +!0;c=Tz().loadType==="cold";var d=sta();c||(c=d.yt_lt==="cold");if(c){b.loadType="cold";c=sta();d=yta();var e=gA(),f=g.pr("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.Pr("embeds_web_enable_csi_start_override_killswitch")&&(e=f);e&&(hA("srt",d.responseStart),c.prerender!==1&&iA(e));c=Lta();c>0&&hA("fpt",c);c=yta();c.isPerformanceNavigationTiming&&jA({performanceNavigationTiming:!0},void 0);hA("nreqs",c.requestStart,void 0);hA("nress",c.responseStart,void 0);hA("nrese",c.responseEnd,void 0);c.redirectEnd- +c.redirectStart>0&&(hA("nrs",c.redirectStart,void 0),hA("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(hA("ndnss",c.domainLookupStart,void 0),hA("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(hA("ntcps",c.connectStart,void 0),hA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=gA()&&c.connectEnd-c.secureConnectionStart>0&&(hA("nstcps",c.secureConnectionStart,void 0),hA("ntcpe",c.connectEnd,void 0));eA&&"getEntriesByType"in eA&&Gta();c=[];if(document.querySelector&& +eA&&eA.getEntriesByName)for(var h in nA)nA.hasOwnProperty(h)&&(d=nA[h],Fta(h,d)&&c.push(d));if(c.length>0)for(b.resourceInfo=[],h=g.w(c),c=h.next();!c.done;c=h.next())b.resourceInfo.push({resourceCache:c.value})}jA(b);b=Vz();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);h=b.preLoggedGelInfos;b=tta();c=void 0;for(d=0;d-1&&(delete v["@type"],Z=v);y&&a.B.has(y)&&a.B.delete(y);((cb=b.config)==null?0:cb.Fda)&&pA(b.config.Fda);if(Z||(zb=a.C)==null||!zb.Lma(b.input,b.cq)){Ra.Ha(15);break}return g.G(Ra,a.C.Coa(b.input,b.cq),16);case 16:Z=Ra.B;case 15:return cua(a,Z,b),d(),Ra.return(Z||void 0)}})}; +Yta=function(a,b){a:{a=a.tP;var c,d=(c=g.R(b,vz))==null?void 0:c.signal;if(d&&a.Ry&&(c=a.Ry[d])){var e=c();break a}var f;if((c=(f=g.R(b,lta))==null?void 0:f.request)&&a.bP&&(f=a.bP[c])){e=f();break a}for(e in b)if(a.VO[e]&&(b=a.VO[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)}; +$ta=function(a,b,c){var d,e,f,h,l,m,n,p,q,r;return g.J(function(t){if(t.j==1){f=((d=b)==null?void 0:(e=d.Gw)==null?void 0:e.identity)||Lu;m=(h=b)==null?void 0:(l=h.Gw)==null?void 0:l.sessionIndex;q=((p=g.R((n=b)==null?void 0:n.command,vz))==null?void 0:p.signal)==="GET_ACCOUNT_MENU"?!0:!1;var u=He(a.j.aF(f,{sessionIndex:m,sZ:q}));return g.G(t,u,2)}r=t.B;return t.return(Promise.resolve(Object.assign({},nta(c),r)))})}; +Zta=function(a,b,c){var d,e=(b==null?void 0:(d=b.Gw)==null?void 0:d.identity)||Lu,f;d=b==null?void 0:(f=b.Gw)==null?void 0:f.sessionIndex;var h;b=((h=g.R(b==null?void 0:b.command,vz))==null?void 0:h.signal)==="GET_ACCOUNT_MENU"?!0:!1;a=a.j.aF(e,{sessionIndex:d,sZ:b});return Object.assign({},nta(c),a)}; +yA=function(){}; +zA=function(){}; +AA=function(a){this.K=a}; +BA=function(){}; +CA=function(){}; +DA=function(){}; +EA=function(){}; +g.FA=function(a,b){var c=g.Ca.apply(2,arguments);a=a===void 0?0:a;g.pt.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)}; +GA=function(a){this.j=a}; +eua=function(a,b,c){if(a.j){var d=Ki(g.Mi(5,Wi(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.Pr("wug_networking_gzip_request")&&(a=Ipa(c));return new window.Request(b,a)}; +g.IA=function(a,b){if(!HA){var c=cw();Zv(c,{aH:fua,F3:GA});var d={VO:{feedbackEndpoint:xz(BA),modifyChannelNotificationPreferenceEndpoint:xz(CA),playlistEditEndpoint:xz(DA),shareEntityEndpoint:xz(AA),subscribeEndpoint:xz(yA),unsubscribeEndpoint:xz(zA),webPlayerShareEntityServiceEndpoint:xz(EA)}},e=tz.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=Qna());b===void 0&&(b=c.resolve(fua));Xta(d,b,a,f);Zv(c,{aH:gua,AU:vA.instance});HA=c.resolve(gua)}return HA}; +hua=function(a){var b=new nj;if(a.interpreterJavascript){var c=Ama(a.interpreterJavascript);c=Ad(c).toString();var d=new lj;Sg(d,6,c);Eg(b,lj,1,d)}else a.interpreterUrl&&(c=Jq(a.interpreterUrl),c=g.id(c).toString(),d=new mj,Sg(d,4,c),Eg(b,mj,2,d));a.interpreterHash&&Tg(b,3,a.interpreterHash);a.program&&Tg(b,4,a.program);a.globalName&&Tg(b,5,a.globalName);return b}; +iua=function(a){var b={};a=a.split("&");a=g.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b}; +kua=function(){if(!g.Pr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Pr("disable_biscotti_fetch_entirely_for_all_web_clients")&&xs()){var a=g.pr("PLAYER_VARS",{});if(g.Cc(a,"privembed",!1)!="1"&&!pna(a)){var b=function(){JA=!0;"google_ad_status"in window?or("DCLKSTAT",1):or("DCLKSTAT",2)}; +try{g.Jv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}jua.push(g.Zo.Vi(function(){if(!(JA||"google_ad_status"in window)){try{if(b){var c=""+g.Ta(b),d=pqa[c];d&&g.Hv(d)}}catch(e){}JA=!0;or("DCLKSTAT",3)}},5E3))}}}; +KA=function(){var a=Number(g.pr("DCLKSTAT",0));return isNaN(a)?0:a}; +MA=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&lua(this,new Promise(function(e){g.vt(0,function(){e(LA(d))},0)}))}; +LA=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=sj().j)c.interpreterHash=d;g.va(u,2);return g.G(u,NA(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=iua(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.wa(u,3);break;case 2:l= +g.xa(u);g.fx(l);b++;if(b>=5)return g.fx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),mua(a,864E5),u.return({challenge:"",yr:{},jp:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(y){g.vt(0,function(){y(LA(a,b))},m)})); +case 3:n=Number(h.t)||7200;mua(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ha(5);break}q=hua(e.bgChallenge);g.va(u,6);return g.G(u,tj(sj(),q),8);case 8:g.wa(u,7);break;case 6:return r=g.xa(u),g.fx(r),u.return({challenge:f,yr:h,jp:p,bgChallenge:q});case 7:return g.va(u,9),p=new pj({challenge:q,gH:!0,kh:"aGIf"}),g.G(u,p.HH,11);case 11:g.wa(u,5);break;case 9:t=g.xa(u),g.fx(t),p=void 0;case 5:return u.return({challenge:f,yr:h,jp:p,bgChallenge:q})}})}; +NA=function(a,b){var c;return g.J(function(d){c=a.B;return!c||c.Ih()?d.return(NA(a.network,b)):d.return(new Promise(function(e){c.cG("publicytnetworkstatus-online",function(){NA(a.network,b).then(e)})}))})}; +lua=function(a,b){a.j=b}; +nua=function(a){var b,c,d;return g.J(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=LA(a);a.j=f;(c=b)==null||(d=c.jp)==null||d.dispose();g.ua(e)})}; +mua=function(a,b){function c(){var e;return g.J(function(f){e=d-Date.now();return e<1E3?g.G(f,nua(a),0):(ut(c,0,Math.min(e,6E4)),f.Ha(0))})} +var d=Date.now()+b;c()}; +oua=function(a,b){return new Promise(function(c){g.vt(0,function(){c(b())},a)})}; +g.pua=function(a,b){var c;return g.J(function(d){var e=g.La("yt.aba.att");return(c=e?e:MA.instance!==void 0?MA.instance.C.bind(MA.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.qua=function(){var a;return(a=(a=g.La("yt.aba.att2"))?a:MA.instance!==void 0?MA.instance.D.bind(MA.instance):null)?a():Promise.resolve(!1)}; +sua=function(a,b){var c=g.La("ytDebugData.callbacks");c||(c={},g.Ka("ytDebugData.callbacks",c));if(g.Pr("web_dd_iu")||rua.includes(a))c[a]=b}; +uua=function(a){for(var b="",c=0;c=1?a[a.length-1]:null;for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]}; +xua=function(a){return{isReady:a.isr.bind(a),lG:function(b){var c=void 0;b.hk&&(c={ca:b.hk.pE,ma:b.hk.v_,at:b.hk.UI,st:b.hk.JM});var d;return a.mawst((d=b.Ar)!=null?d:"",c)}, +ready:a.rea.bind(a),start:function(){}}}; +OA=function(){this.state=1;this.jp=null}; +zua=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.zd(2),g.Jv(c,function(){if(window[h])yua(a,d,h,e);else{a.zd(3);var l=oqa(c),m=document.getElementById(l);m&&(mqa(l),m.parentNode.removeChild(m));g.fx(new g.pt("Unable to load Botguard","from "+c))}},f)):b?(f=g.je("SCRIPT"),b instanceof zd?(f.textContent=Ad(b),Od(f)):f.textContent=b,f.nonce=Nd(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?yua(a,d,h,e):(a.zd(4),g.fx(new g.pt("Unable to load Botguard from JS")))): +g.fx(new g.pt("Unable to load VM; no url or JS provided"))}; +yua=function(a,b,c,d){a.zd(5);try{var e=new pj({program:b,globalName:c,gH:g.Pr("att_web_record_metrics"),kh:"aGIf"});e.HH.then(function(){a.zd(6);d&&d(b)}); +a.ET(e)}catch(f){a.zd(7),f instanceof Error&&g.fx(f)}}; +PA=function(){var a=g.La("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null}; +QA=function(){OA.apply(this,arguments)}; +RA=function(){}; +Aua=function(a,b,c){for(var d=!1,e=g.w(a.nj.entries()),f=e.next();!f.done;f=e.next())f=g.w(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.bb==="core"&&(d=!0);if(d){a:if(!c){a=g.w(a.nj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.w(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.bb==="core"){c=d.layoutId;break a}c=void 0}c?b.sQ(c):Ny("No triggering layout ID available when attempting to mute.")}}; +SA=function(a,b){this.Jl=a;this.Ko=b}; +TA=function(){}; +UA=function(){}; +Cua=function(a){g.O.call(this);var b=this;this.od=a;this.j=new Map;VA(this,"commandExecutorCommand",function(c,d,e){Bua(b,c.commands,d,e)}); +VA(this,"clickTrackingParams",function(){})}; +Dua=function(a,b){VA(a,b.Ir(),function(c,d,e){b.fu(c,d,e)})}; +VA=function(a,b,c){a.La();a.j.get(b)&&g.ex(Error("Extension name "+b+" already registered"));a.j.set(b,c)}; +Bua=function(a,b,c,d){b=b===void 0?[]:b;a.La();var e=[],f=[];b=g.w(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.R(h,Eua)||g.R(h,Fua)?e.push(h):f.push(h);e=g.w(e);for(b=e.next();!b.done;b=e.next())WA(a,b.value,c,d);f=g.w(f);for(e=f.next();!e.done;e=f.next())WA(a,e.value,c,d)}; +WA=function(a,b,c,d){a.La();b.loggingUrls&&Gua(a,"loggingUrls",b.loggingUrls,c,d);b=g.w(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.od.get().Yu("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.od.get().Yu("innertubeCommand",{confirmDialogEndpoint:f}):Hua.hasOwnProperty(e)||Gua(a,e,f,c,d)}}; +Gua=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.ex(f)}else b=new g.pt("Unhandled field",b),g.fx(b)}; +XA=function(a,b,c){this.Kf=a;this.j=b;this.Oa=c}; +YA=function(a){this.value=a}; +ZA=function(a){this.value=a}; +$A=function(a){this.value=a}; +aB=function(a){this.value=a}; +bB=function(a){this.value=a}; +cB=function(a){this.value=a}; +dB=function(a){this.value=a}; +eB=function(){YA.apply(this,arguments)}; +fB=function(a){this.value=a}; +gB=function(a){this.value=a}; +hB=function(a){this.value=a}; +iB=function(a){this.value=a}; +jB=function(a){this.value=a}; +kB=function(a){this.value=a}; +lB=function(a){this.value=a}; +mB=function(a){this.value=a}; +nB=function(a){this.value=a}; +oB=function(a){this.value=a}; +pB=function(){YA.apply(this,arguments)}; +qB=function(a){this.value=a}; +rB=function(a){this.value=a}; +sB=function(a){this.value=a}; +tB=function(a){this.value=a}; +uB=function(a){this.value=a}; +vB=function(a){this.value=a}; +wB=function(a){this.value=a}; +xB=function(a){this.value=a}; +yB=function(a){this.value=a}; +zB=function(a){this.value=a}; +AB=function(a){this.value=a}; +BB=function(a){this.value=a}; +CB=function(a){this.value=a}; +DB=function(a){this.value=a}; +EB=function(a){this.value=a}; +FB=function(a){this.value=a}; +GB=function(a){this.value=a}; +HB=function(a){this.value=a}; +IB=function(a){this.value=a}; +JB=function(a){this.value=a}; +KB=function(a){this.value=a}; +LB=function(a){this.value=a}; +MB=function(a){this.value=a}; +NB=function(a){this.value=a}; +OB=function(a){this.value=a}; +PB=function(a){this.value=a}; +QB=function(a){this.value=a}; +RB=function(a){this.value=a}; +SB=function(a){this.value=a}; +TB=function(a){this.value=a}; +UB=function(a){this.value=a}; +VB=function(a){this.value=a}; +WB=function(a){this.value=a}; +XB=function(a){this.value=a}; +YB=function(a){this.value=a}; +ZB=function(a){this.value=a}; +$B=function(a){this.value=a}; +aC=function(a){this.value=a}; +bC=function(){YA.apply(this,arguments)}; +cC=function(a){this.value=a}; +dC=function(){YA.apply(this,arguments)}; +eC=function(){YA.apply(this,arguments)}; +fC=function(){YA.apply(this,arguments)}; +gC=function(){YA.apply(this,arguments)}; +hC=function(){YA.apply(this,arguments)}; +iC=function(a){this.value=a}; +jC=function(a){this.value=a}; +kC=function(a){this.value=a}; +lC=function(a){this.value=a}; +mC=function(a){this.value=a}; +oC=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!nC(a.Ca,c.value))return!1;return!0}; +pC=function(){return""}; +Iua=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}}; +qC=function(a,b,c,d){d=d===void 0?!1:d;ib.call(this,a);this.ql=c;this.Fw=d;this.args=[];b&&this.args.push(b)}; +rC=function(a,b,c,d){d=d===void 0?!1:d;ib.call(this,a);this.ql=c;this.Fw=d;this.args=[];b&&this.args.push(b)}; +sC=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)}); +this.j=b}; +nC=function(a,b){return a.j.has(b)}; +tC=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()}; +uC=function(a){return Array.from(a.j.keys())}; +vC=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!nC(a.Ca,c.value))return!1;return!0}; +Kua=function(a){var b;return((b=Jua.get(a))==null?void 0:b.Uy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +xC=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Lua.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=wC(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(wC(d.value)); +b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.w(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(wC(a.value))}return c}; +Mua=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Lua.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c}; +wC=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c}; +Nua=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Al(d||[],function(e){return xC(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{})); +return b}; +zC=function(a,b){return function(c){return Oua(yC(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.bb,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.bb)}}; +Oua=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:xC(a,{slotId:b,slotType:c,slotPhysicalPosition:d,bb:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ca:new sC([])}),layoutData:Mua(a,{layoutId:m,layoutType:n,bb:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Eb:new Map,Ca:new sC([]),ac:{}})}}}; +BC=function(a){this.Aa=a;a=Math.random();var b=this.Aa.get();b=g.AC(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a1){g.fx(new g.pt("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0}; +qwa=function(a,b){var c=new Map;a=g.w(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=tC(d.Ca,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},zE(b,"uct",(e.c=d.layoutId,e)))}a=b.Hm();AE={contentCpn:a,Gt:c}; +d={};zE(b,"acc",(d.ct=c.size,d.c=a,d))}; +rwa=function(){AE={contentCpn:"",Gt:new Map}}; +BE=function(a){var b;return(b=AE.Gt.get(a))!=null?b:"u"}; +CE=function(a,b,c){zE(a,b,c);swa(a)}; +twa=function(a){var b=a.layoutId,c=a.Zr;if(a.Eo){var d={};CE(a.Kf,"slso",(d.ec=b,d.is=c,d.ctp=BE(b),d))}}; +DE=function(a){var b=a.layoutId,c=a.Zr;if(a.Eo){var d={};CE(a.Kf,"slse",(d.ec=b,d.is=c,d.ctp=BE(b),d))}}; +uwa=function(a){var b=a.layoutId,c=a.Zr,d=a.Kf;a.Eo&&(a={},CE(d,"sleo",(a.xc=b,a.is=c,a.ctp=BE(b),a)),swa(d))}; +vwa=function(a){var b=a.cpn,c=a.Kf;a=a.Zr;var d=c.Hm(),e={};CE(c,"ce",(e.ec=b,e.ia=b!==d,e.r=AE.Gt.has(b),e.is=a,e.ctp=BE(b),e))}; +swa=function(a){if(a.Hm()!==AE.contentCpn){var b={};zE(a,"ccm",(b.c=AE.contentCpn,b))}}; +wwa=function(a){var b=a.cpn,c=a.Kf;a=a.Zr;var d=c.Hm(),e={};CE(c,"cx",(e.xc=b,e.ia=b!==d,e.r=AE.Gt.has(b),e.is=a,e.ctp=BE(b),e))}; +xwa=function(a,b){this.Kf=a;this.Aa=b}; +EE=function(a){var b=[];if(a){a=g.w(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")}; +FE=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c}; +GE=function(a){return a===1||a===2}; +HE=function(a,b){b=b===void 0?0:b;if(a instanceof FE)return a;a=a&&a instanceof Error?a:Error(""+a);GE(b)?g.ex(a):g.fx(a);return new FE(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)}; +g.zwa=function(a){return(a=ywa[a.toString()])?a:"LICENSE"}; +Awa=function(a,b){function c(){var d=g.Ca.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.x(d))} +a.addEventListener("playing",c)}; +IE=function(){var a=g.La("yt.player.utils.videoElement_");a||(a=g.je("VIDEO"),g.Ka("yt.player.utils.videoElement_",a));return a}; +JE=function(a){var b=IE();return!!(b&&b.canPlayType&&b.canPlayType(a))}; +LE=function(a){if(/opus/.test(a)&&g.KE&&!Fp("38")&&!g.ks())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ns())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!JE(a)}; +Bwa=function(a){try{var b=LE('video/mp4; codecs="avc1.42001E"')||LE('video/webm; codecs="vp9"');return(LE('audio/mp4; codecs="mp4a.40.2"')||LE('audio/webm; codecs="opus"'))&&(b||!a)||JE('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; +ME=function(){var a=IE();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")}; +NE=function(){var a=IE();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1}; +g.OE=function(){Ws.apply(this,arguments)}; +PE=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f}; +SE=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||QE(a,b);this.j=g.RE[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.RE[this.quality],a===0?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":""))); +this.qualityLabel=a;this.B=l||"";this.primaries=m||""}; +QE=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=TE[0];for(var d=0;d=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"}; +WE=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.ub>0||(c.ub=16E3);Object.assign(this,c);a=g.w(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=UE(b);this.rb=VE[this.itag]||""}; +XE=function(a){return a.rb==="9"||a.rb==="("||a.rb==="9h"||a.rb==="(h"}; +Cwa=function(a){return a.rb==="H"||a.rb==="h"}; +YE=function(a){return a.rb==="9h"||a.rb==="(h"}; +ZE=function(a){return a.rb==="1"||a.rb==="1h"}; +$E=function(a){return a.rb==="mac3"||a.rb==="meac3"||a.rb==="m"}; +aF=function(a){return a.rb==="MAC3"||a.rb==="MEAC3"||a.rb==="M"}; +g.bF=function(a){return a.containerType===1}; +Dwa=function(a){return a.rb==="("||a.rb==="(h"||a.rb==="H"}; +cF=function(a){return a.mimeType==="application/x-mpegURL"}; +dF=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}}; +eF=function(a,b){a=dF(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags}; +Ewa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.rb==="f")return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:a.ub*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.ub*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})}; +fF=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)}; +gF=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)}; +hF=function(a){return a.includes("vtt")||a.includes("text/mp4")}; +UE=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0}; +iF=function(a,b,c,d,e,f){var h=new PE;b in g.RE||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.RE[b],d=Math.round(e*16/9));f=new SE(d,e,0,null,void 0,b,f);a=unescape(a.replace(/"/g,'"'));return new WE(c,a,{audio:h,video:f})}; +jF=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Hw)==null?void 0:c.toFixed(0))+", "+((d=a.ub)==null?void 0:d.toFixed(0))+")"}; +kF=function(a,b){return{start:function(c){return a[c]}, +end:function(c){return b[c]}, +length:a.length}}; +Fwa=function(a,b,c){for(var d=[],e=[],f=0;f=b)return c}catch(d){}return-1}; +nF=function(a,b){return mF(a,b)>=0}; +Gwa=function(a,b){if(!a)return NaN;b=mF(a,b);return b>=0?a.start(b):NaN}; +oF=function(a,b){if(!a)return NaN;b=mF(a,b);return b>=0?a.end(b):NaN}; +pF=function(a){return a&&a.length?a.end(a.length-1):NaN}; +qF=function(a,b){a=oF(a,b);return a>=0?a-b:0}; +rF=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 kF(d,e)}; +sF=function(a,b,c,d){g.Fx.call(this);var e=this;this.Jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.YY={error:function(){!e.La()&&e.isActive&&e.publish("error",e)}, +updateend:function(){!e.La()&&e.isActive&&e.publish("updateend",e)}}; +g.Gx(this.Jd,this.YY);this.pI=this.isActive}; +uF=function(a,b,c,d,e,f){g.Fx.call(this);var h=this;this.Qb=a;this.vg=b;this.id=c;this.containerType=d;this.rb=e;this.zg=f;this.gR=this.WF=this.Gf=null;this.lJ=!1;this.appendWindowStart=this.timestampOffset=0;this.DO=kF([],[]);this.qE=!1;this.VF=[];this.iC=tF?[]:void 0;this.oI=!1;this.Hd=function(m){return h.publish(m.type,h)}; +var l;if((l=this.Qb)==null?0:l.addEventListener)this.Qb.addEventListener("updateend",this.Hd),this.Qb.addEventListener("error",this.Hd)}; +vF=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +wF=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1}; +xF=function(a,b,c){c=c===void 0?!1:c;g.O.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.vg=this.mediaElement.Ib());this.events=new g.OE(this);g.P(this,this.events);this.C=new wF(this.Qa?window.URL.createObjectURL(this.Qa):this.vg.webkitMediaSourceURL,!0);a=this.Qa||this.vg;Xs(this.events,a,["sourceopen","webkitsourceopen"],this.rca);Xs(this.events,a,["sourceclose","webkitsourceclose"],this.qca);this.D={updateend:this.F5}}; +Hwa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +Iwa=function(a,b){yF(a)?g.De(function(){b(a)}):a.callback=b}; +Jwa=function(a,b,c){if(zF){var d;AF(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:BF(d)},!1);g.Gx(b,a.D,a);g.Gx(c,a.D,a)}a.j=b;a.B=c;g.P(a,b);g.P(a,c)}; +Kwa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.rb;c=c.rb;var f;a.Z=(f=a.Qa)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Qa)==null?void 0:h.addSourceBuffer(d);a.vg&&(a.vg.webkitSourceAddId("0",e),a.vg.webkitSourceAddId("1",d));f=new uF(a.Z,a.vg,"0",UE(e),c,!1);d=new uF(a.Y,a.vg,"1",UE(d),b,!0);Jwa(a,f,d)}; +CF=function(a){return!!a.j||!!a.B}; +yF=function(a){try{return DF(a)==="open"}catch(b){return!1}}; +DF=function(a){if(a.Qa)return a.Qa.readyState;switch(a.vg.webkitSourceState){case a.vg.SOURCE_OPEN:return"open";case a.vg.SOURCE_ENDED:return"ended";default:return"closed"}}; +EF=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +Lwa=function(a){yF(a)&&(a.Qa?a.Qa.endOfStream():a.vg.webkitSourceEndOfStream(a.vg.EOS_NO_ERROR))}; +Mwa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Jd:a.j,f=a.B.isView()?a.B.Jd:a.B,h=new xF(a.mediaElement,a.Qa,!0);h.C=a.C;Jwa(h,new sF(e,b,c,d),new sF(f,b,c,d));yF(a)||a.j.Nq(a.j.Dc());return h}; +Nwa=function(a){var b;(b=a.j)==null||b.Kz();var c;(c=a.B)==null||c.Kz();a.K=!1}; +FF=function(){var a=this;this.ZS=this.gC=qaa;this.promise=new g.Fe(function(b,c){a.gC=b;a.ZS=c})}; +GF=function(){g.O.call(this);this.DK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Vc;this.ea=null;g.P(this,this.D)}; +HF=function(a){a=a.uA();return a.length<1?NaN:a.end(a.length-1)}; +Owa=function(a){!a.B&&Hwa()&&(a.C?a.C.then(function(){return Owa(a)}):a.Zh()||(a.B=a.Lr()))}; +Pwa=function(a){a.B&&(a.B.dispose(),a.B=void 0)}; +AF=function(a,b,c){var d;((d=a.ea)==null?0:d.Ac())&&a.ea.oa("rms",b,c===void 0?!1:c)}; +Qwa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.Kr(function(){Qwa(a,a.getCurrentTime(),c+1)},500))}; +Rwa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)}; +IF=function(a){return qF(a.Eh(),a.getCurrentTime())}; +Swa=function(a,b){if(a.jl()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.uA(),a.length||!c)?nF(a,b):c}; +JF=function(a){a.Zh()&&(Twa&&a.ea&&a.ea.Dv("rs_s"),ru&&a.getCurrentTime()>0&&a.seekTo(0),a.lM(),a.load(),Rwa(a,null));delete a.C}; +KF=function(a){switch(a.Xh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.Xf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.LF=function(a,b,c){this.eh=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64}; +MF=function(a,b){return Uwa(a,b.getCurrentTime(),(0,g.Zt)(),IF(b))}; +NF=function(a,b,c,d){if(!(b===a.state&&c===a.eh&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.LF(b,c,e?d?d:a.seekSource:null)}return a}; +OF=function(a,b,c){return NF(a,a.state|b,null,c===void 0?null:c)}; +PF=function(a,b){return NF(a,a.state&~b,null,null)}; +QF=function(a,b,c,d){return NF(a,(a.state|b)&~c,null,d===void 0?null:d)}; +g.U=function(a,b){return!!(a.state&b)}; +g.RF=function(a,b){return b.state===a.state&&b.eh===a.eh}; +SF=function(a){return a.isPlaying()&&!g.U(a,16)&&!g.U(a,32)}; +TF=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,2048)?3:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1}; +VF=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){g.O.call(this);var D=this;this.Zo=a;this.slot=b;this.layout=c;this.Oa=d;this.zb=e;this.Sa=f;this.Ia=h;this.zc=l;this.Mb=m;this.Eq=n;this.position=q;this.K=r;this.Aa=t;this.gs=u;this.Pg=y;this.context=A;this.jh=!0;this.G=!1;this.lc="not_rendering";this.j=!1;this.B=new xE;this.C=!1;a=tC(this.layout.Ca,"metadata_type_ad_placement_config");this.eb=new MD(c.Eb,this.Oa,a,c.layoutId);var F;a=((F=UF(this))==null?void 0:F.progressCommands)||[];this.D=new Tva(m, +a,c.layoutId,function(){return D.nA()})}; +WF=function(a){return{layoutId:a.oA(),Zr:a.gs,Kf:a.Sa.get(),Eo:a.Ve()}}; +XF=function(a,b){return b.layoutId!==a.layout.layoutId?(a.Zo.Hf(a.slot,b,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +YF=function(a){a.lc="rendering_start_requested";a.Eq(-1)}; +UF=function(a){return tC(a.layout.Ca,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +Vwa=function(a){Ny("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)}; +Wwa=function(a){var b;return((b=ZF(a.Sa.get(),2))==null?void 0:b.clientPlaybackNonce)||""}; +$F=function(a,b){switch(b){case "normal":a.Xb("complete");break;case "skipped":a.Xb("skip");break;case "abandoned":SD(a.eb,"impression")&&a.Xb("abandon")}}; +aG=function(a,b){a.G||(b=new g.Oy(b.state,new g.LF),a.G=!0);return b}; +bG=function(a,b){uE(b)?a.Eq(1):g.Qy(b,4)&&!g.Qy(b,2)&&a.f3();Py(b,4)<0&&!(Py(b,2)<0)&&a.g3()}; +Xwa=function(a){a.position===0&&(a.zc.get(),a=tC(a.layout.Ca,"metadata_type_ad_placement_config").kind,a={adBreakType:cG(a)},pA("ad_bl"),g.qA(a))}; +dG=function(a,b){QD(a.eb,b,!a.j)}; +Zwa=function(a){var b;return(((b=UF(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.R(c==null?void 0:c.command,Ywa)})!==-1}; +eG=function(a,b){var c=tC(a.Ca,"metadata_type_eligible_for_ssap");return c===void 0?(Ny("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.Ve(c)}; +fG=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Ny("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Ld(a,"unexpected transition reason")}}; +gG=function(a,b,c){sA(a,c)||uA(a,b,c);sA(a,"video_to_ad")||uA(a,b,"video_to_ad");sA(a,"ad_to_video")||uA(a,b,"ad_to_video");sA(a,"ad_to_ad")||uA(a,b,"ad_to_ad")}; +hG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){VF.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,y,A,D);var F=this;this.od=m;this.uo=q;this.KK=!0;this.jR=this.qj=0;this.pJ=ad(function(){twa(WF(F));F.Zo.vc(F.slot,F.layout)}); +this.uE=ad(function(){uwa(WF(F));F.lc!=="rendering_stop_requested"&&F.uo(F);F.XO()}); +this.Xe=new g.Me(200);this.Xe.listen("tick",function(){F.Tc()}); +g.P(this,this.Xe)}; +jG=function(a){a.jR=Date.now();iG(a,a.qj);a.Xe.start()}; +$wa=function(a){a.qj=a.nA();a.bz(a.qj/1E3,!0);iG(a,a.qj)}; +iG=function(a,b){b={current:b/1E3,duration:a.nA()/1E3};a.od.get().Yu("onAdPlaybackProgress",b)}; +kG=function(a){hG.call(this,a.Zo,a.slot,a.Nf,a.Oa,a.zb,a.Sa,a.Ia,a.zc,a.od,a.Mb,a.Eq,a.uo,a.Qq,a.Xy,a.Aa,a.gs,a.Pg,a.context)}; +lG=function(a){hG.call(this,a.Zo,a.slot,a.Nf,a.Oa,a.zb,a.Sa,a.Ia,a.zc,a.od,a.Mb,a.Eq,a.uo,a.Qq,a.Xy,a.Aa,a.gs,a.Pg,a.context)}; +mG=function(){lG.apply(this,arguments)}; +axa=function(a){return eG(a.slot,a.Aa.get())?new mG(a):new kG(a)}; +pG=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N){VF.call(this,a,b,c,d,e,l,m,p,r,u,y,A,D,F,H,N,M);var Q=this;this.hf=f;this.md=h;this.Pc=n;this.od=q;this.Yf=t;this.uo=y;this.adCpn="";this.PW=0;this.cZ=!1;this.pJ=ad(function(){twa(WF(Q));Q.Zo.vc(Q.slot,Q.layout)}); +this.uE=ad(function(){uwa(WF(Q));Q.lc!=="rendering_stop_requested"&&Q.uo(Q);Q.XO()}); +this.Ve()||(this.dL=new g.fp(function(){Q.pL("load_timeout",new qC("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=nG(this.Aa.get()),F=oG(F.get()),a&&F&&(this.oB=new g.fp(function(){var Z=tC(c.Ca,"metadata_type_preload_player_vars"); +Z&&Q.md.get().J.preloadVideoByPlayerVars(Z,2,300)})))}; +cxa=function(a,b){var c=tC(b.Ca,"metadata_type_ad_video_id"),d=tC(b.Ca,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Yf.get().J.U().Ka.add(c,{iJ:d});(b=tC(b.Ca,"metadata_type_sodar_extension_data"))&&hva(a.hf.get(),b);bxa(a.Ia.get(),!1)}; +dxa=function(a){bxa(a.Ia.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ia.get().sC(!1)}; +qG=function(a){pG.call(this,a.callback,a.slot,a.Nf,a.Oa,a.zb,a.hf,a.md,a.Sa,a.Ia,a.Pc,a.zc,a.od,a.Mb,a.Yf,a.Eq,a.uo,a.Qq,a.Xy,a.Aa,a.gs,a.context,a.Pg)}; +rG=function(){qG.apply(this,arguments)}; +exa=function(a){return axa(Object.assign({},a,{Zo:a.callback,Eq:function(){}}))}; +fxa=function(a){return new pG(a.callback,a.slot,a.Nf,a.Oa,a.zb,a.hf,a.md,a.Sa,a.Ia,a.Pc,a.zc,a.od,a.Mb,a.Yf,function(b){a.od.get().Yu("onAdIntroStateChange",b)},a.uo,a.Qq,a.Xy,a.Aa,a.gs,a.context,a.Pg)}; +gxa=function(a){function b(c){a.od.get().bH(c)} +return eG(a.slot,a.Aa.get())?new rG(Object.assign({},a,{Eq:b})):new pG(a.callback,a.slot,a.Nf,a.Oa,a.zb,a.hf,a.md,a.Sa,a.Ia,a.Pc,a.zc,a.od,a.Mb,a.Yf,b,a.uo,a.Qq,a.Xy,a.Aa,a.gs,a.context,a.Pg)}; +sG=function(a){for(var b=a.Nf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.w(ND()),e=d.next();!e.done;e=d.next())c.push(e.value);if(fE(b,{Nd:c,Fe:["LAYOUT_TYPE_MEDIA_BREAK"]}))return exa(a);b=a.Nf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.w(ND());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(fE(b,{Nd:c,Fe:["LAYOUT_TYPE_MEDIA"]}))return nC(a.Nf.Ca,"metadata_type_ad_intro")?fxa(a):gxa(a)}; +ixa=function(a){var b=tC(a.Ca,"metadata_type_ad_placement_config").kind,c=tC(a.Ca,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:hxa(c),adBreakType:cG(b)}}; +cG=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"}}; +hxa=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +jxa=function(a){try{return new tG(a)}catch(b){}}; +uG=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);this.Ev=a;this.slot=b;this.layout=c;this.Yd=d;this.gf=e;this.Sa=f;this.Gc=h;this.md=l;this.qc=m;this.Ia=n;this.jh=!0;a=sG(p);if(!a)throw Error("Invalid params for sublayout");this.Ld=a}; +tG=function(a){uG.call(this,a.Ev,a.slot,a.layout,a.Yd,a.gf,a.Sa,a.Gc,a.md,a.qc,a.Ia,a.Aea);this.params=a}; +kxa=function(){this.j=1;this.B=new xE}; +vG=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.O.call(this);this.callback=a;this.Sa=b;this.Gc=c;this.md=d;this.Ia=e;this.zc=f;this.Pq=h;this.slot=l;this.layout=m;this.Yd=n;this.Oi=p;this.qc=q;this.Aa=r;this.jh=!0;this.yx=!1;this.Qh=[];this.eE=-1;this.PQ=!1;this.Qw=new kxa}; +lxa=function(a){var b;return(b=a.layout.Ty)!=null?b:tC(a.layout.Ca,"metadata_type_sub_layouts")}; +wG=function(a){return{Kf:a.Sa.get(),Zr:!1,Eo:a.Ve()}}; +mxa=function(a,b,c){if(a.Al()===a.Qh.length-1){var d,e;Ny("Unexpected skip requested during the last sublayout",(d=a.Af())==null?void 0:d.Zb(),(e=a.Af())==null?void 0:e.Za(),{requestingSlot:b,requestingLayout:c})}}; +nxa=function(a,b,c){return c.layoutId!==xG(a,b,c)?(Ny("onSkipRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Za()),!1):!0}; +oxa=function(a){a.Al()===a.Qh.length-1&&Ny("Unexpected skip with target requested during the last sublayout")}; +pxa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==xG(a,b,c)?(Ny("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Za(),{requestingSlot:b,requestingLayout:c}),!1):!0}; +qxa=function(a,b,c,d){var e=tC(b.Za().Ca,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e0)){Ny("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.eE=b;b=a.Af();if(a.Al()>0&&!a.Ve()){var c=a.zc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});rA("ad_to_ad",d)}a.ZT(b)}}; +BG=function(a){vG.call(this,a.Ev,a.Sa,a.Gc,a.md,a.Ia,a.zc,a.Pq,a.slot,a.layout,a.Yd,a.Oi,a.qc,a.Aa)}; +CG=function(a){vG.call(this,a.Ev,a.Sa,a.Gc,a.md,a.Ia,a.zc,a.Pq,a.slot,a.layout,a.Yd,a.Oi,a.qc,a.Aa)}; +DG=function(){CG.apply(this,arguments);this.Ch=void 0}; +txa=function(a,b,c){b.jA().currentState<2&&(c=fG(c),b.Kd(b.Za(),c));c=b.jA().j;a.YO(a.slot,b.Za(),c)}; +uxa=function(a,b){a.Qw.j===2&&b!==a.Hm()&&Ny("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})}; +vxa=function(a,b){var c=a.Af();c?(c.Kd(c.Za(),b),b=a.Al()+1,b>=0&&be&&h.hI(p,e-d);return p}; +Exa=function(a,b){var c=tC(b.Ca,"metadata_type_sodar_extension_data");if(c)try{hva(0,c)}catch(d){Ny("Unexpected error when loading Sodar",a,b,{error:d})}}; +Fxa=function(a,b,c,d,e,f){KG(a,b,new g.Oy(c,new g.LF),d,e,!1,f)}; +KG=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;uE(c)&&vE(e,0,null)&&(!SD(a,"impression")&&h&&h(),a.Xb("impression"));SD(a,"impression")&&(g.Qy(c,4)&&!g.Qy(c,2)&&a.Rh("pause"),Py(c,4)<0&&!(Py(c,2)<0)&&a.Rh("resume"),g.Qy(c,16)&&e>=.5&&a.Rh("seek"),f&&g.Qy(c,2)&&LG(a,c.state,b,d,e))}; +LG=function(a,b,c,d,e,f,h){if(SD(a,"impression")){var l=Math.abs(d-e)<=1;MG(a,b,l?d:e,c,d,f,h&&l);l&&a.Xb("complete")}}; +MG=function(a,b,c,d,e,f,h){RD(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.U(b,16))||(b==null?0:g.U(b,32))||(vE(c,e*.25,d)&&(f&&!SD(a,"first_quartile")&&f("first"),a.Xb("first_quartile")),vE(c,e*.5,d)&&(f&&!SD(a,"midpoint")&&f("second"),a.Xb("midpoint")),vE(c,e*.75,d)&&(f&&!SD(a,"third_quartile")&&f("third"),a.Xb("third_quartile")))}; +Gxa=function(a,b){SD(a,"impression")&&a.Rh(b?"fullscreen":"end_fullscreen")}; +Hxa=function(a){SD(a,"impression")&&a.Rh("clickthrough")}; +Ixa=function(a){a.Rh("active_view_measurable")}; +Jxa=function(a){SD(a,"impression")&&!SD(a,"seek")&&a.Rh("active_view_fully_viewable_audible_half_duration")}; +Kxa=function(a){SD(a,"impression")&&!SD(a,"seek")&&a.Rh("active_view_viewable")}; +Lxa=function(a){SD(a,"impression")&&!SD(a,"seek")&&a.Rh("audio_audible")}; +Mxa=function(a){SD(a,"impression")&&!SD(a,"seek")&&a.Rh("audio_measurable")}; +Nxa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Gc=d;this.eb=e;this.Ia=f;this.Ss=h;this.zb=l;this.hf=m;this.Aa=n;this.Oa=p;this.Sa=q;this.KK=!0;this.rd=this.lc=null;this.adCpn=void 0;this.j=!1}; +Oxa=function(a,b,c){var d;JG(a.Oa.get(),"ads_qua","cpn."+tC(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((d=ZF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; +Pxa=function(a,b){var c,d;JG(a.Oa.get(),"ads_imp","cpn."+tC(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((c=ZF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.R((d=tC(a.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,NG))}; +bH=function(a){return{enterMs:tC(a.Ca,"metadata_type_layout_enter_ms"),exitMs:tC(a.Ca,"metadata_type_layout_exit_ms")}}; +eH=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){FG.call(this,a,b,c,d,e,h,l,m,n,q);this.Ss=f;this.hf=p;this.zb=r;this.Aa=t;this.rd=this.lc=null}; +Qxa=function(a,b){var c;JG(a.Oa.get(),"ads_imp","acpn."+((c=ZF(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)}; +Rxa=function(a,b,c){var d;JG(a.Oa.get(),"ads_qua","cpn."+tC(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((d=ZF(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)}; +fH=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M){this.qc=a;this.Yd=b;this.Oi=c;this.Sa=d;this.Gc=e;this.Ia=f;this.Oa=h;this.Ss=l;this.xf=m;this.zb=n;this.hf=p;this.md=q;this.Pc=r;this.zc=t;this.od=u;this.Mb=y;this.Yf=A;this.Aa=D;this.j=F;this.context=H;this.Pg=M}; +gH=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D){this.qc=a;this.Yd=b;this.Oi=c;this.Oa=d;this.zb=e;this.hf=f;this.md=h;this.Sa=l;this.Ia=m;this.Pc=n;this.zc=p;this.od=q;this.Mb=r;this.Yf=t;this.Aa=u;this.Gc=y;this.context=A;this.Pg=D}; +Sxa=function(a,b,c,d){Ex.call(this,"survey-interstitial",a,b,c,d)}; +hH=function(a,b,c,d,e){FD.call(this,c,a,b,d);this.Oa=e;a=tC(b.Ca,"metadata_type_ad_placement_config");this.eb=new MD(b.Eb,e,a,b.layoutId)}; +iH=function(a){return Math.round(a.width)+"x"+Math.round(a.height)}; +kH=function(a,b,c){c=c===void 0?jH:c;c.widtha.width*a.height*.2)return{jN:3,kI:501,errorMessage:"ad("+iH(c)+") to container("+iH(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{jN:3,kI:501,errorMessage:"ad("+iH(c)+") covers container("+iH(a)+") center."}}; +Txa=function(a,b){var c=tC(a.Ca,"metadata_type_ad_placement_config");return new MD(a.Eb,b,c,a.layoutId)}; +lH=function(a){return tC(a.Ca,"metadata_type_invideo_overlay_ad_renderer")}; +mH=function(a,b,c,d){Ex.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d}; +nH=function(a,b,c,d,e,f,h,l,m,n,p,q){FD.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ia=l;this.Mb=m;this.Aa=n;this.K=p;this.G=q;this.eb=Txa(b,c)}; +Uxa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];ND().forEach(function(b){a.push(b)}); +return{Nd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +oH=function(a,b,c,d,e,f,h,l,m,n,p,q,r){FD.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Z=l;this.Ia=m;this.Mb=n;this.Aa=p;this.K=q;this.G=r;this.eb=Txa(b,c)}; +Vxa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.w(ND()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Nd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +pH=function(a){this.Ia=a;this.j=!1}; +Wxa=function(a,b,c){Ex.call(this,"survey",a,{},b,c)}; +qH=function(a,b,c,d,e,f,h){FD.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Aa=h}; +Xxa=function(a,b,c,d,e,f,h,l,m,n){this.Bc=a;this.Ia=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Aa=m;this.j=n}; +Yxa=function(a,b,c,d,e,f,h,l,m,n){this.Bc=a;this.Ia=b;this.Oa=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Mb=l;this.Aa=m;this.j=n}; +rH=function(a,b,c,d,e,f,h,l,m,n){nE.call(this,a,b,c,d,e,f,h,m);this.Fn=l;this.Sa=n}; +Zxa=function(){var a=kwa();a.Nd.push("metadata_type_ad_info_ad_metadata");return a}; +$xa=function(a,b,c,d,e,f,h){this.Bc=a;this.Ia=b;this.Oa=c;this.B=d;this.Fn=e;this.j=f;this.Sa=h}; +aya=function(a,b,c,d,e,f,h,l){this.Bc=a;this.Ia=b;this.Oa=c;this.B=d;this.Fn=e;this.j=f;this.Aa=h;this.Sa=l}; +sH=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)}; +tH=function(a,b){this.adPodIndex=a;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0); +var c=0;for(a+=1;a0}; +YH=function(a){return!!(a.d$&&a.slot&&a.layout)}; +ZH=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)}; +oya=function(a){if(!RH(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.R(a,sE)||g.R(a,qE)||g.R(a,rE)?!0:!1}; +$H=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0}; +eI=function(a){if(!RH(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.R(a,pya);return b?qya(b):(b=g.R(a,aI))?$H(b):(b=g.R(a,bI))?b.playerVars!==void 0:(b=g.R(a,sE))?b.durationMilliseconds!==void 0:g.R(a,cI)||g.R(a,dI)?!0:!1}; +qya=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.R(b,fI)}); +return a.length>0&&a.every(eI)}; +uya=function(a){if(!RH(a.adLayoutMetadata))return!1;if(g.R(a.renderingContent,rya))return!0;a=g.R(a.renderingContent,gI);return g.R(a==null?void 0:a.sidePanel,sya)||g.R(a==null?void 0:a.sidePanel,tya)?!0:!1}; +zya=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(vya(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.R(a,fI))?eI(c):(c=g.R(a,hI))?uya(c):(c=g.R(a,wya))?oya(c):(c=g.R(a,xya))?mya(c):(a=g.R(a,yya))?RH(a.adLayoutMetadata)?g.R(a.renderingContent,SH)?!0:!1:!1:!1}; +vya=function(a){var b;a=g.R((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,hI);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0}; +Bya=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.w(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.R(b,iI))==null?void 0:c.surveyAdQuestionCommon)||((d=g.R(b,jI))==null?void 0:d.surveyAdQuestionCommon);if(!Aya(e))return!1}return!0}; +Cya=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.R(a.questions[0],iI))==null?void 0:b.surveyAdQuestionCommon)||((c=g.R(a.questions[0],jI))==null?void 0:c.surveyAdQuestionCommon);b=Aya(d)}else b=!1;else b=!1;return b}; +Aya=function(a){if(!a)return!1;a=g.R(a.instreamAdPlayerOverlay,kI);var b=g.R(a==null?void 0:a.skipOrPreviewRenderer,NG),c=g.R(a==null?void 0:a.adInfoRenderer,lI);return(g.R(a==null?void 0:a.skipOrPreviewRenderer,mI)||b)&&c?!0:!1}; +Dya=function(a){return a.linearAds!=null&&RH(a.adLayoutMetadata)}; +Eya=function(a){return a.linearAd!=null&&a.adVideoStart!=null}; +Fya=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.R(a.ctaButton,g.nI)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.R(a.backgroundImage,oI)&&((b=g.R(a.backgroundImage,oI))==null?0:b.landscape)?!0:!1}; +pI=function(a,b,c,d,e,f,h){g.O.call(this);this.Aa=a;this.j=b;this.C=d;this.Sa=e;this.D=f;this.B=h}; +Iya=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.R(f,qI)}); +c.DC?tC(b.Ca,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?BD(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Aa.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Cw.filter(function(f){var h; +return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?Gya(a.B,d,e,b.slotId,c.ssdaiAdsConfig):BD(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):BD(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Hya(a.D,b)):Gya(a.B,c.Cw,e,b.slotId,c.ssdaiAdsConfig)}; +Kya=function(a,b,c,d,e,f){var h=ZF(a.Sa.get(),1);BD(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Jya(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Mp,h.daiEnabled,h,f)},b)}; +Mya=function(a,b,c,d,e,f,h){b=Lya(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof rC?b:rI(a,d,e,b,c);return a instanceof rC?a:[a]}; +Nya=function(a,b,c,d,e){var f=CD(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new XB({getAdBreakUrl:d.getAdBreakUrl,WS:0,VS:0}),new kC(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new MH(a.j,f),slotFulfillmentTriggers:[new bya(a.j)],slotExpirationTriggers:[new GH(a.j,e),new JH(a.j,f)],bb:"core",Ca:new sC(d),adSlotLoggingData:c}:new rC("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new rC("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return a instanceof rC?a:[a]}; +Oya=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; +sI=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new uH(pC,b,a.id):new rC("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new AH(pC,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new rC("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&& +((f=a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=cya(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof rC?b:new zH(pC,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new rC("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new FH(pC,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new rC("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a= +a.onNewPlaybackAfterContentVideoIdTrigger?new GH(pC,b,a.id):new rC("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new HH(pC,a.skipRequestedTrigger.triggeringLayoutId,a.id):new rC("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new IH(pC,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new rC("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n; +b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new JH(pC,a.slotIdExitedTrigger.triggeringSlotId,a.id):new rC("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new OH(pC,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new rC("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new eya(a.id):new rC("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q; +b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new vH(pC,a.closeRequestedTrigger.triggeringLayoutId,a.id):new rC("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new MH(pC,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new rC("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u= +a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new rC("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new Dp(d,u),a=c instanceof rC?c:new CH(pC,b,c,!1,a.id)):a=new rC("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new wH(pC,b,!1,a.id):new rC("Not able to create ContentVideoIdEndedTrigger"); +else{if(a.layoutIdEnteredTrigger){var y;b=(y=a.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new yH(pC,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new rC("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new PH(pC,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new rC("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var D; +b=(D=a.onDifferentLayoutIdEnteredTrigger)!=null&&D.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new DH(pC,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new rC("Not able to create CloseRequestedTrigger")}else b=new rC("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a}; +Qya=function(a,b,c,d,e,f,h,l){return b===null?new rC("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[Pya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new sC([new ZA(d),new kB(e)]);n=iD(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Eb:new Map, +layoutExitNormalTriggers:[new GH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:q,ac:m(r),adLayoutLoggingData:p}})]}; +Rya=function(a,b,c,d,e,f,h,l){return b===null?new rC("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Pya(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new sC([new $A(d),new kB(e)]);n=iD(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +Eb:new Map,layoutExitNormalTriggers:[new GH(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:q,ac:m(r),adLayoutLoggingData:p}})]}; +Vya=function(a,b,c,d,e,f){if(!f)for(b=g.w(b),f=b.next();!f.done;f=b.next())f=f.value,tI(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return Sya(p)}); +b=[];f=g.w(a);for(var h=f.next(),l={};!h.done;l={Mw:void 0},h=f.next()){l.Mw=h.value;h=g.w(l.Mw.kO);for(var m=h.next(),n={};!m.done;n={Gn:void 0},m=h.next())n.Gn=m.value,m=function(p,q){return function(r){return p.Gn.fP(r,q.Mw.instreamVideoAdRenderer.elementId,p.Gn.jO)}}(n,l),n.Gn.isContentVideoCompanion?b.push(Tya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Gn.associatedCompositePlayerBytesLayoutId,n.Gn.adSlotLoggingData,m)):a.length>1?b.push(Uya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Gn.adSlotLoggingData, +function(p,q){return function(r){return p.Gn.fP(r,q.Mw.instreamVideoAdRenderer.elementId,p.Gn.jO,p.Gn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(Uya(c,d,e,l.Mw.instreamVideoAdRenderer.elementId,n.Gn.adSlotLoggingData,m))}return b}; +tI=function(a,b,c){if(b=Wya(b)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=uI(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.GF=c)}else Ny("InstreamVideoAdRenderer without externalVideoId")}}; +Wya=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.R(a.sandwichedLinearAdRenderer.linearAd,aI);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.w(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.R(c,aI)&&b.push(g.R(c,aI));return b}return null}; +Sya=function(a){if(a.instreamVideoAdRenderer===void 0)return Ny("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.w(a.kO),c=b.next();!c.done;c=b.next()){c=c.value;if(c.fP===void 0)return!1;if(c.jO===void 0)return Ny("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.GF===void 0||c.NI===void 0||a.GF!==c.NI&&c.NI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return Ny("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:a.GF,"matching APSR kind":c.NI}),!1}return!0}; +uI=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,GF:void 0,adVideoId:b,kO:[]});return a.get(b)}; +vI=function(a,b,c,d,e,f,h,l,m){e?uI(a,e).kO.push({zma:b,NI:c,isContentVideoCompanion:d,jO:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,fP:m}):Ny("Companion AdPlacementSupportedRenderer without adVideoId")}; +Xya=function(a){var b,c=(b=tC(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=tC(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=tC(a.Ca,"metadata_type_content_cpn"),f=tC(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=tC(a.Ca,"metadata_type_player_underlay_renderer"),l=tC(a.Ca,"metadata_type_ad_placement_config"),m=tC(a.Ca,"metadata_type_video_length_seconds");var n=nC(a.Ca,"metadata_type_layout_enter_ms")&&nC(a.Ca, +"metadata_type_layout_exit_ms")?(tC(a.Ca,"metadata_type_layout_exit_ms")-tC(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sq:d,contentCpn:e,KS:c,lO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,cL:n,inPlayerLayoutId:tC(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:tC(a.Ca,"metadata_type_linked_in_player_slot_id")}}; +$ya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=CD(d,"SLOT_TYPE_PLAYER_BYTES");a=Yya(e,a,h,c,d,m,n);if(a instanceof rC)return a;var y;n=(y=tC(a.Ca,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!n)return new rC("Invalid adNotify layout");b=Zya(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof rC?b:[a].concat(g.x(b))}; +Zya=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=aza(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof rC)return c;a=bza(b,a,h,e,c);return a instanceof rC?a:[].concat(g.x(a.qg),[a.yy])}; +dza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=aza(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof rC)return b;a=cza(a,c,f,h,d,l.Vb,b);return a instanceof rC?a:a.qg.concat(a.yy)}; +aza=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=wI(d,c,n);return r instanceof qC?new rC(r):n.J.U().experiments.kb("html5_refactor_in_player_slot_generation")?function(t){var u=new tH(0,[r.Dp]);t=eza(b,r.layoutId,r.hp,c,xI(r.playerVars,r.YB,f,m,u),r.Dp,e,u,h(t),l.get(r.hp.externalVideoId),q);u=[];if(r.hp.playerOverlay.instreamAdPlayerOverlayRenderer){var y=Xya(t);if(!y)return Ny("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,qg:[]}; +u=[fza(a,y.contentCpn,y.Sq,function(D){return yI(b,D.slotId,"core",y,zC(p,D))},y.inPlayerSlotId)].concat(g.x(u)); +if(y.instreamAdPlayerUnderlayRenderer&&zI(n)){var A=y.instreamAdPlayerUnderlayRenderer;u=[gza(a,y.contentCpn,y.Sq,function(D){return hza(b,D.slotId,A,y.adPlacementConfig,y.Sq,zC(p,D))})].concat(g.x(u))}}return{layout:t, +qg:u}}:function(t){var u=new tH(0,[r.Dp]); +return{layout:eza(b,r.layoutId,r.hp,c,xI(r.playerVars,r.YB,f,m,u),r.Dp,e,u,h(t),l.get(r.hp.externalVideoId),q),qg:[]}}}; +wI=function(a,b,c){if(!a.playerVars)return new qC("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new qC("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=xr(a.playerVars);e=Number(d.length_seconds); +isNaN(e)&&(e=0,Ny("Expected valid length seconds in player vars but got NaN"));if(c.Ve(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new qC("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,hp:a,playerVars:d,YB:a.playerVars,Dp:e}}; +xI=function(a,b,c,d,e){a.iv_load_policy=d;b=xr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){Ny(f)}c.lj&&(a.ctrl=c.lj);c.Qj&&(a.ytr=c.Qj);c.Pw&&(a.ytrcc=c.Pw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.xn&&(a.vss_credentials_token_type=c.xn),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a}; +iza=function(a){var b=new Map;a=g.w(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b}; +AI=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +mza=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.w(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!vya(t)){var y=void 0;u=(t==null?void 0:(y=t.adSlotMetadata)==null?void 0:y.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){y=AI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.Ve(y),D=jza(t,n,d,c.Mp,A);if(D instanceof rC)return D;var F=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(F=t.adSlotMetadata.slotPhysicalPosition)!=null? +F:1,bb:"core",slotEntryTrigger:D.slotEntryTrigger,slotFulfillmentTriggers:D.slotFulfillmentTriggers,slotExpirationTriggers:D.slotExpirationTriggers};if(D=g.R(t.fulfillmentContent.fulfilledLayout,fI)){if(!eI(D))return new rC("Invalid PlayerBytesAdLayoutRenderer");A=kza(u,t.adSlotMetadata.triggerEvent,D,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof rC)return A;D=[];AI(t)&&D.push(new lC({yu:AI(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.Vb&&D.push(new eC({}));D.push(new jC(y));t=Object.assign({}, +u,{Ca:new sC(D),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.x(A.qg));q.push(t)}else if(y=g.R(t.fulfillmentContent.fulfilledLayout,hI),D=A=void 0,((A=y)==null?void 0:(D=A.adLayoutMetadata)==null?void 0:D.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||t.slotEntryTrigger!==void 0)if(y){if(!uya(y))return new rC("Invalid PlayerUnderlayAdLayoutRenderer");A=y;F=d;var H=c.Mp,M=f;D=u;y=t.adSlotMetadata.triggerEvent;if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var N= +g.R(A.renderingContent,gI);if(N)if(N=g.R(N.sidePanel,tya)){var Q={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,bb:"core"};F=BI(A,F,H);y=F instanceof rC?F:Object.assign({},Q,{renderingContent:A.renderingContent,Eb:new Map([["impression",N.impressionPings||[]],["resume",N.resumePings||[]]])},F,{ac:zC(M,D)(Q),Ca:new sC([new kB(CI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})}else y=new rC("DismissablePanelTextPortraitImageRenderer is missing");else y= +new rC("SqueezebackPlayerSidePanelRenderer is missing")}else if(A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING")g.R(A.renderingContent,rya)?(N={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,bb:"core"},F=BI(A,F,H),y=F instanceof rC?F:Object.assign({},N,{renderingContent:A.renderingContent,Eb:new Map},F,{ac:zC(M,D)(N),Ca:new sC([new kB(CI(y))]),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData})):y=new rC("CounterfactualRenderer is missing");else{var Z; +A.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Z=new rC("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Z=new rC("LayoutType ["+A.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");y=Z}if(y instanceof rC)return y;t=Object.assign({},u,{Ca:new sC([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.R(t.fulfillmentContent.fulfilledLayout,xya)){if(!mya(y))return new rC("Invalid AboveFeedAdLayoutRenderer"); +y=lza(y,d,c.Mp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof rC)return y;t=Object.assign({},u,{Ca:new sC([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(y=g.R(t.fulfillmentContent.fulfilledLayout,yya)){if(!RH(y.adLayoutMetadata)||!g.R(y.renderingContent,SH))return new rC("Invalid BelowPlayerAdLayoutRenderer");y=lza(y,d,c.Mp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof +rC)return y;t=Object.assign({},u,{Ca:new sC([]),fulfilledLayout:y,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new rC("Unable to retrieve a client slot ["+u.slotType+"] from a given AdSlotRenderer")}}return q}; +lza=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,bb:"core"};b=BI(a,b,c);if(b instanceof rC)return b;c=[];c.push(new kB(CI(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new CB(h));return Object.assign({},l,{renderingContent:a.renderingContent,Eb:new Map([["impression",nza(a)]])},b,{ac:zC(d,e)(l),Ca:new sC(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}; +kza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var y=BI(c,f,e.Mp);if(y instanceof rC)return y;if(g.R(c.renderingContent,aI)){m=oza([c],e,m);if(m instanceof rC)return m;if(m.length!==1)return new rC("Only expected one media layout.");a=pza(a,b,c,y,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Mp,q);return a instanceof rC?a:{layout:a.layout,qg:a.qf?[a.qf]:[]}}var A=g.R(c.renderingContent,pya);if(A){if(!RH(c.adLayoutMetadata))return new rC("Invalid ad layout metadata");if(!qya(A))return new rC("Invalid sequential layout"); +A=A.sequentialLayouts.map(function(D){return D.playerBytesAdLayoutRenderer}); +a=qza(a,b,c.adLayoutMetadata,y,A,d,f,e,m,h,l,n,p,q,u,r,t);return a instanceof rC?a:{layout:a.D7,qg:a.qg}}return new rC("Not able to convert a sequential layout")}; +qza=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){var D=new oB({current:null}),F=oza(e,l,m);if(F instanceof rC)return F;m=[];for(var H=[],M=void 0,N=0;N0&&(N.push(D),N.push(new nB(M.adPodSkipTarget))); +(f=n.get(M.externalVideoId))&&N.push(new ZB(f));f=N}else f=new rC("Invalid vod media renderer")}if(f instanceof rC)return f;a=Object.assign({},h,d,{Eb:F,renderingContent:c.renderingContent,Ca:new sC(f),ac:zC(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.R(c.renderingContent,aI);if(!c||!$H(c))return new rC("Invalid meida renderer");q=uI(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.GF="AD_PLACEMENT_KIND_START";return t?(m=sza(r,a,m,y,p,A,u,D),m instanceof rC?m:uza(a.layoutId, +r)&&m?{layout:Object.assign({},a,{Ca:new sC(f.concat(new vB(m)))})}:{layout:a,qf:m}):{layout:a}}; +rza=function(a,b,c,d,e){if(!eI(b))return new rC("Invalid PlayerBytesAdLayoutRenderer");var f=g.R(b.renderingContent,sE);if(!f||f.durationMilliseconds===void 0)return new rC("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,bb:"adapter"};d=[new aC(f.durationMilliseconds),new dC({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new kB(d), +new EB("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new mB(e.Dw.adPodIndex-1));d.push(new RB(e.Dw.adPodIndex));var l;d.push(new nB((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,DI,{renderingContent:b.renderingContent,Ca:new sC(d),Eb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,ac:zC(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})}; +sza=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId}); +if(a.length!==0){if(a.length!==1)return new rC("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=jza(a,f,c,d,h);if(h instanceof rC)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,bb:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.R(a.fulfillmentContent.fulfilledLayout, +wya);if(!m||!oya(m))return new rC("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,bb:"core"};c=BI(m,c,d);if(c instanceof rC)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.x(vza(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new kB(CI(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new rC("Not able to parse an SDF InPlayer layout"); +e=Object.assign({},h,c,{renderingContent:m.renderingContent,Eb:new Map,ac:zC(e,f)(h),Ca:new sC(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ca:new sC([])})}}; +vza=function(a,b){var c=[];c.push(new kB(CI(a)));c.push(new CB(b.layoutId));(a=tC(b.Ca,"metadata_type_player_bytes_callback_ref"))&&c.push(new HB(a));(a=tC(b.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new oB(a));(a=tC(b.Ca,"metadata_type_remote_slots_data"))&&c.push(new ZB(a));(a=tC(b.Ca,"metadata_type_ad_next_params"))&&c.push(new cB(a));(a=tC(b.Ca,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new dB(a));(a=tC(b.Ca,"metadata_type_ad_pod_info"))&&c.push(new lB(a));(b= +tC(b.Ca,"metadata_type_ad_video_id"))&&c.push(new pB(b));return c}; +tza=function(a,b,c,d,e,f){function h(n){return EI(b,n)} +var l=d.GJ.inPlayerSlotId,m={layoutId:d.GJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",bb:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:new yH(h,a),slotFulfillmentTriggers:[new IH(h,l)],slotExpirationTriggers:[new JH(h,l),new GH(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new AH(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],Eb:new Map,Ca:new sC([new xB(d.GJ),new kB(d.adPlacementConfig), +e]),ac:zC(f,c)(m),adLayoutLoggingData:d.GJ.adLayoutLoggingData});return Object.assign({},c,{Ca:new sC([new WB(a)])})}; +uza=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.R(c.fulfillmentContent.fulfilledLayout,hI);if(d&&(d=g.R(d.renderingContent,gI))&&d.associatedPlayerBytesLayoutId===a)return c}}; +jza=function(a,b,c,d,e){var f=wza(sI(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof rC)return f;for(var h=[],l=g.w(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=sI(m.value,c,d);if(m instanceof rC)return m;h.push(m)}h=xza(h,e,a,b);b=[];a=g.w(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=sI(e.value,c,d);if(e instanceof rC)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}}; +wza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof uH?new sH(function(e){return EI(d,e)},c.adSlotMetadata.slotId):a}; +xza=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof IH?new MH(function(f){return EI(d,f)},c.adSlotMetadata.slotId):e}):a}; +BI=function(a,b,c){for(var d=[],e=g.w(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=sI(f.value,b,c);if(f instanceof rC)return f;d.push(f)}e=[];f=g.w(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=sI(h.value,b,c);if(h instanceof rC)return h;e.push(h)}f=[];h=g.w(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=sI(l.value,b,c);if(l instanceof rC)return l;f.push(l)}h=[];a=g.w(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l= +a.next()){l=sI(l.value,b,c);if(l instanceof rC)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Yc:[]}}; +oza=function(a,b,c){for(var d=[],e=g.w(a),f=e.next();!f.done;f=e.next())if(f=g.R(f.value.renderingContent,aI)){if(!$H(f))return new rC("Invalid vod media renderer");d.push(yza(f))}e=d.map(function(q){return q.Dp}); +f=[];for(var h=0,l=0;l=2&&(D.slot_pos=A.adPodIndex);D.autoplay="1";var F,H;D=n.videoLengthSeconds;var M=n.playerVars,N=n.Eb, +Q=n.At,Z=n.instreamAdPlayerOverlayRenderer,fa=n.playerOverlayLayoutRenderer,pa=n.adVideoId,Y=(F=g.R(b,aI))==null?void 0:F.adLayoutLoggingData;F=(H=g.R(b,aI))==null?void 0:H.sodarExtensionData;H=iD(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var S={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};A={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA",Eb:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Ca:new sC([new qB(h), +new LB(D),new MB(M),new PB(p),new QB(r),new RB(q),new HB({current:null}),Z&&new rB(Z),fa&&new sB(fa),new kB(f),new pB(pa),new lB(A),F&&new OB(F),y&&new fC(y),new SB({}),new gC(Q)].filter(Lza)),ac:e(S),adLayoutLoggingData:Y};D=Gza(g.R(b,aI),f,h,A.layoutId,d);return{T7:A,Dea:D}}}; +Jza=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=xr(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay|| +{};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&d===0){var l;b=(l=Rza[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Eb:a.pings?LD(a.pings):new Map,At:KD(a.pings)}}; +Kza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a}; +Iza=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{WX:b,ZX:a}}; +Tza=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[Sza(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=iD(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bb:"core"},u=LD(n),y=[new GH(b.j,f)],A;var D=n==null?void 0:(A=n.activeViewTracking)==null?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Eb:u,layoutExitNormalTriggers:y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[], +layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new kB(d),new gC(KD(n)),new hC(D),new LB(h/1E3)]),ac:p(t),adLayoutLoggingData:r}})]:new rC("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})}; +Vza=function(a,b,c,d,e,f,h,l){a=Uza(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=iD(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Eb:q,layoutExitNormalTriggers:[new FH(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new UB(e),new kB(c)]),ac:m(p)}}); +return a instanceof rC?a:[a]}; +Xza=function(a,b,c,d,e,f,h){return[Wza(a,f,d,function(l){var m=l.slotId;l=h(l);m=iD(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Eb:new Map,layoutExitNormalTriggers:[new GH(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new rB(e),new kB(c)]),ac:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]}; +Zza=function(a,b,c,d,e,f,h,l){a=Yza(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=iD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=II(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,JI(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=iD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=II(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,JI(b,n,p))):q.imageOverlayAdContentRenderer?(q=iD(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", +p),n=JI(b,n,p),n.push(new PH(b.j,45E3,q)),n=II(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new qC("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new qC("InvideoOverlayAdRenderer without contentSupportedRenderer");return n}); +return a instanceof rC?a:[a]}; +bAa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new rC("Expected valid duration for AdActionInterstitialRenderer."):function(p){return $za(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return aAa(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=iD(b.B.get(),"LAYOUT_TYPE_ENDCAP", +u);return HI(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new xB(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}}; +cAa=function(a,b,c,d){if(!c.playerVars)return new rC("No playerVars available in AdIntroRenderer.");var e=xr(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=iD(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};return{Nf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Eb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Ca:new sC([new TB({}), +new kB(b),new HB({current:null}),new MB(e)]),ac:f(l)},Dm:[new zH(a.j,h,["error"])],nk:[],Rz:[],Qz:[]}}}; +eAa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=FI(e);if(!Bya(e,n))return new rC("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new rC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=Aza(a,b,e,f,c,d,h);return q instanceof rC?q:function(r){return dAa(b,r.slotId,c,p,e,GI(e),h(r),q,l,m)}}; +fAa=function(a,b,c,d,e,f,h,l){function m(q){return aAa(a,q,d,n)} +function n(q,r){var t=q.slotId;q=h(q);t=iD(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return HI(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new yB(e),f],e.adLayoutLoggingData)} +if(!Fya(e))return new rC("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=KI(b,r,c,p,t,new Map,q,m,void 0,LI(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new DB(r.NL);q=new mB(l);return{Nf:{layoutId:r.layoutId,layoutType:r.layoutType,Eb:r.Eb,layoutExitNormalTriggers:[], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:r.bb,Ca:new sC([].concat(g.x(r.Nz),[t,q])),ac:r.ac,adLayoutLoggingData:r.adLayoutLoggingData},Dm:[],nk:r.layoutExitMuteTriggers,Rz:r.layoutExitUserInputSubmittedTriggers,Qz:r.Yc,qf:r.qf}}}; +hAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){a=CD(a,"SLOT_TYPE_PLAYER_BYTES");d=Yya(b,h,d,e,a,n,p);if(d instanceof rC)return d;var A;h=(A=tC(d.Ca,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new rC("Invalid adNotify layout");b=gAa(h,b,c,e,f,m,l,n,q,r,t,u,y);return b instanceof rC?b:[d].concat(g.x(b))}; +gAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=iAa(b,c,d,f,h,l,m,n,p,q,r);jAa(f)?(d=kAa(b,a),a=CD(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=iD(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=MI(b,d,l),b=[].concat(g.x(l.slotExpirationTriggers),[new vH(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,bb:l.bb},{slotId:a,layoutId:f}),e=a instanceof rC?a:{yy:Object.assign({}, +l,{slotExpirationTriggers:b,Ca:new sC([new WB(a.layout)]),adSlotLoggingData:e}),qg:a.qg}):e=bza(b,a,l,e,c);return e instanceof rC?e:[].concat(g.x(e.qg),[e.yy])}; +mAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=iAa(a,b,c,e,f,h,m,n,p,q,r,t);jAa(e)?(e=lAa(a,c,h,l),e instanceof rC?a=e:(l=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=iD(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.x(e.slotExpirationTriggers),[new vH(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,bb:e.bb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof rC?l: +{yy:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:NI(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:OI(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,bb:e.bb,Ca:new sC([new jC(PI(c)),new WB(l.layout),new lC({yu:a.yu(c)})]),adSlotLoggingData:d},qg:l.qg})):a=cza(a,c,h,l,d,m.Vb,b);return a instanceof rC?a:a.qg.concat(a.yy)}; +jAa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(g.R(b.value,cI))return!0;return!1}; +iAa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(nG(p)&&oG(p))a:{var u=nAa(d,c,p);if(u instanceof rC)t=u;else{for(var y=0,A=[],D=[],F=[],H=[],M=[],N=[],Q=new IB({current:null}),Z=new oB({current:null}),fa=!1,pa=[],Y=0,S=[],W=0;W0?Y:-1;else if(v=g.R(W,sE)){W=bAa(a,b,c,v,f,y,l,Z,Y);if(W instanceof rC){t=W;break a}W= +W(r);A.push(W.Nf);D=[].concat(g.x(W.Dm),g.x(D));F=[].concat(g.x(W.nk),g.x(F));W.qf&&(pa=[W.qf].concat(g.x(pa)))}else if(v=g.R(W,cI)){if(t===void 0){t=new rC("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}W=eAa(a,b,c,f,v,Q,l,t,y,QI(p,"supports_multi_step_on_desktop"));if(W instanceof rC){t=W;break a}W=W(r);A.push(W.Nf);W.qf&&pa.push(W.qf);D=[].concat(g.x(W.Dm),g.x(D));F=[].concat(g.x(W.nk),g.x(F));H=[].concat(g.x(W.Rz),g.x(H));M=[].concat(g.x(W.Qz), +g.x(M));N=[Q].concat(g.x(N))}else if(W=g.R(W,dI)){W=fAa(a,b,c,f,W,Q,l,y);if(W instanceof rC){t=W;break a}W=W(r);A.push(W.Nf);W.qf&&pa.push(W.qf);F=[].concat(g.x(W.nk),g.x(F))}else{t=new rC("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Ty:A,layoutExitSkipTriggers:D,layoutExitUserInputSubmittedTriggers:H,Yc:M,layoutExitMuteTriggers:F,Nz:N,qg:pa}}}else a:if(y=nAa(d,c,p),y instanceof rC)t=y;else{A=0;D=[];F=[];H=[];M=[];N=[];Q=[];Z=new IB({current:null});fa=new oB({current:null}); +pa=!1;S=[];Y=-1;u=g.w(d);for(W=u.next();!W.done;W=u.next())if(W=W.value,g.R(W,bI)){W=cAa(b,c,g.R(W,bI),l);if(W instanceof rC){t=W;break a}W=W(r);D.push(W.Nf);F=[].concat(g.x(W.Dm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));W.qf&&(S=[W.qf].concat(g.x(S)))}else if(g.R(W,aI)){Y=wI(g.R(W,aI),c,p);if(Y instanceof qC){t=new rC(Y);break a}W=new tH(A,y);W=oAa(b,Y.layoutId,Y.hp,c,xI(Y.playerVars,Y.YB,h,n,W),Y.Dp,f,W,l(r),fa,m.get(Y.hp.externalVideoId),void 0,q);A++;D.push(W.Nf);F=[].concat(g.x(W.Dm),g.x(F));H= +[].concat(g.x(W.nk),g.x(H));pa||(Q.push(fa),pa=!0);Y=(Y=Y.hp.adPodSkipTarget)&&Y>0?Y:-1}else if(g.R(W,sE)){W=bAa(a,b,c,g.R(W,sE),f,A,l,fa,Y);if(W instanceof rC){t=W;break a}W=W(r);D.push(W.Nf);F=[].concat(g.x(W.Dm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));W.qf&&(S=[W.qf].concat(g.x(S)))}else if(g.R(W,cI)){if(t===void 0){t=new rC("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.R(W,cI)});break a}W=eAa(a,b,c,f,g.R(W,cI),Z,l,t,A,QI(p,"supports_multi_step_on_desktop")); +if(W instanceof rC){t=W;break a}W=W(r);D.push(W.Nf);W.qf&&S.push(W.qf);F=[].concat(g.x(W.Dm),g.x(F));H=[].concat(g.x(W.nk),g.x(H));M=[].concat(g.x(W.Rz),g.x(M));N=[].concat(g.x(W.Qz),g.x(N));Q=[Z].concat(g.x(Q))}else if(g.R(W,dI)){W=fAa(a,b,c,f,g.R(W,dI),Z,l,A);if(W instanceof rC){t=W;break a}W=W(r);D.push(W.Nf);W.qf&&S.push(W.qf);H=[].concat(g.x(W.nk),g.x(H))}else{t=new rC("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Ty:D,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:M, +Yc:N,layoutExitMuteTriggers:H,Nz:Q,qg:S}}t instanceof rC?r=t:(N=r.slotId,y=t.Ty,A=t.layoutExitSkipTriggers,D=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.Nz,r=l(r),M=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:iD(b.B.get(),M,N),Q={layoutId:N,layoutType:M,bb:"core"},r={layout:{layoutId:N,layoutType:M,Eb:new Map,layoutExitNormalTriggers:[new FH(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:D,layoutExitUserInputSubmittedTriggers:F,Yc:[],bb:"core", +Ca:new sC([new JB(y)].concat(g.x(H))),ac:r(Q)},qg:t.qg});return r}}; +nAa=function(a,b,c){var d=[];a=g.w(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.R(e,aI)){e=wI(g.R(e,aI),b,c);if(e instanceof qC)return new rC(e);d.push(e.Dp)}return d}; +qAa=function(a,b,c,d,e,f,h,l){if(!Bya(c,l===void 0?!1:l))return new rC("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=FI(c);if(m<=0)return new rC("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new IB({current:null}),p=Aza(a,b,c,n,d,f,h);return pAa(a,d,f,m,e,function(q,r){var t=q.slotId,u=GI(c);q=h(q);var y,A=(y=LI(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null? +y:iD(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"core"};y=p(A,r);var D=tC(y.Ca,"metadata_type_fulfilled_layout");D||Ny("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new kB(d),new aC(m),new dC(u),n];D&&u.push(new EB(D.layoutType));return{K$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Eb:new Map,layoutExitNormalTriggers:[new FH(b.j,A)],layoutExitSkipTriggers:[new HH(b.j,r.layoutId)], +layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new OH(b.j,r.layoutId)],Yc:[],bb:"core",Ca:new sC(u),ac:q(t)},Z9:y}})}; +rAa=function(a){if(!Eya(a))return!1;var b=g.R(a.adVideoStart,RI);return b?g.R(a.linearAd,aI)&&YH(b)?!0:(Ny("Invalid Sandwich with notify"),!1):!1}; +sAa=function(a){if(a.linearAds==null)return!1;a=g.R(a.adStart,RI);return a?YH(a)?!0:(Ny("Invalid LASR with notify"),!1):!1}; +tAa=function(a){if(!Dya(a))return!1;a=g.R(a.adStart,RI);return a?YH(a)?!0:(Ny("Invalid LASR with notify"),!1):!1}; +SI=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Me=e;this.C=f;this.Ia=h;this.rk=l;this.loadPolicy=m===void 0?1:m}; +Jya=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(ZH);var p=c.filter(zya),q=d.filter(ZH),r=new Map,t=iza(b),u=c.some(function(W){var v;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),y=c.some(function(W){var v; +return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=c.some(function(W){var v; +return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_IN_PLAYER"}); +c=c.some(function(W){var v,V;return(W==null?void 0:(v=W.adSlotMetadata)==null?void 0:v.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(W==null?void 0:(V=W.adSlotMetadata)==null?void 0:V.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +if(u||y||A||c)c=mza(p,b,l,e,t,a.Me.get(),a.loadPolicy,r,a.Aa.get(),a.D.get(),A),c instanceof rC?Ny(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.x(c));c=g.w(b);for(y=c.next();!y.done;y=c.next())y=y.value,A=uAa(a,r,y,e,f,h,u,l,t,m,p),A instanceof rC?Ny(A,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.x(A));vAa(a.Aa.get())||(f=wAa(a,q,e,l,t,r),n.push.apply(n,g.x(f)));if(a.C===null||h&&!l.HX){var D, +F,H;a=l.Vb&&b.length===1&&((D=b[0].config)==null?void 0:(F=D.adPlacementConfig)==null?void 0:F.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((H=b[0].renderer)==null?void 0:H.adBreakServiceRenderer);if(!n.length&&!a){var M,N,Q,Z;Ny("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(M=b[0])==null?void 0:(N=M.config)==null?void 0:(Q=N.adPlacementConfig)==null?void 0:Q.kind,renderer:(Z=b[0])==null?void 0:Z.renderer})}return n}D= +d.filter(ZH);n.push.apply(n,g.x(Vya(r,D,a.B.get(),a.C,e,u)));if(!n.length){var fa,pa,Y,S;Ny("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(fa=b[0])==null?void 0:(pa=fa.config)==null?void 0:(Y=pa.adPlacementConfig)==null?void 0:Y.kind,renderer:(S=b[0])==null?void 0:S.renderer})}return n}; +wAa=function(a,b,c,d,e,f){function h(r){return zC(a.Me.get(),r)} +var l=[];b=g.w(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&rAa(p)?(Ny("Found AdNotify with SandwichedLinearAdRenderer"),q=g.R(p.adVideoStart,RI),p=g.R(p.linearAd,aI),tI(f,n,m.config.adPlacementConfig.kind),n=void 0,q=Zya((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Aa.get(),a.Me.get()),q instanceof rC?Ny(q):l.push.apply(l,g.x(q))): +q&&(!q.adLayoutMetadata&&sAa(q)||q.adLayoutMetadata&&tAa(q))&&(Ny("Found AdNotify with LinearAdSequenceRenderer"),tI(f,n,m.config.adPlacementConfig.kind),n=void 0,p=gAa((n=g.R(q.adStart,RI))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,RH(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof rC?Ny(p):l.push.apply(l,g.x(p)))}return l}; +uAa=function(a,b,c,d,e,f,h,l,m,n,p){function q(D){return zC(a.Me.get(),D)} +var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,A=l.HX&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return vI(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.adsEngagementPanelRenderer;D=zC(a.Me.get(),D);return TI(N,Q,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new aB(Z),F,H,Z.impressionPings,D,r.adsEngagementPanelRenderer.adLayoutLoggingData,M)}),[]; +if(r.adsEngagementPanelLayoutViewModel)return vI(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.adsEngagementPanelLayoutViewModel;D=zC(a.Me.get(),D);return UI(N,Q,"LAYOUT_TYPE_PANEL",new bB(Z),F,H,D,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,M)}),[]; +if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Qya(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,y,d,q);vI(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.actionCompanionAdRenderer;D=zC(a.Me.get(),D);return TI(N,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new ZA(Z),F,H,Z.impressionPings,D,r.actionCompanionAdRenderer.adLayoutLoggingData,M)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Rya(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,y,d,q); +vI(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.topBannerImageTextIconButtonedLayoutViewModel;D=zC(a.Me.get(),D);return UI(N,Q,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new $A(Z),F,H,D,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,M)})}else if(r.imageCompanionAdRenderer)vI(b, +c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.imageCompanionAdRenderer; +D=zC(a.Me.get(),D);return TI(N,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new fB(Z),F,H,Z.impressionPings,D,r.imageCompanionAdRenderer.adLayoutLoggingData,M)}); +else if(r.bannerImageLayoutViewModel)vI(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.bannerImageLayoutViewModel;D=zC(a.Me.get(),D);return UI(N,Q,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new gB(Z),F,H,D,r.bannerImageLayoutViewModel.adLayoutLoggingData,M)}); +else if(r.shoppingCompanionCarouselRenderer)vI(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(D,F,H,M){var N=a.j.get(),Q=D.slotId,Z=r.shoppingCompanionCarouselRenderer;D=zC(a.Me.get(),D);return TI(N,Q,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new hB(Z),F,H,Z.impressionPings,D,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,M)}); +else if(r.adBreakServiceRenderer){if(!Oya(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return Nya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Mya(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.rk)return new rC("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Vb||Ny("Received non-live cue point triggered AdBreakServiceRenderer", +void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Vb),clientPlaybackNonce:l.clientPlaybackNonce});xAa(a.rk,{adPlacementRenderer:c,contentCpn:d,Mp:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ia)return new rC("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ia.get().getCurrentTimeSec(1,!1);return yAa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,y,f)}}else{if(r.clientForecastingAdRenderer)return Vza(a.B.get(), +a.j.get(),t,y,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return Zza(a.B.get(),a.j.get(),t,y,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return Xza(a.B.get(),a.j.get(),t,y,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return Oza(a.B.get(),a.j.get(),c,d,q,n,!a.Aa.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];tI(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!Dya(r.linearAdSequenceRenderer))return new rC("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds== +null)return new rC("Received invalid LinearAdSequenceRenderer.");if(g.R(r.linearAdSequenceRenderer.adStart,RI)){Ny("Found AdNotify in LinearAdSequenceRenderer");c=g.R(r.linearAdSequenceRenderer.adStart,RI);if(!nya(c))return new rC("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return hAa(a.D.get(),a.B.get(),a.j.get(),a.Me.get(),t,y,c,RH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Aa.get())}return mAa(a.B.get(), +a.j.get(),t,y,r.linearAdSequenceRenderer.linearAds,RH(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];tI(b,r,u);return dza(a.B.get(),a.j.get(),t,y,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Aa.get(),a.Me.get(),p)}if(r.instreamSurveyAdRenderer)return qAa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,y,d,q,QI(a.Aa.get(),"supports_multi_step_on_desktop")); +if(r.sandwichedLinearAdRenderer!=null)return Eya(r.sandwichedLinearAdRenderer)?g.R(r.sandwichedLinearAdRenderer.adVideoStart,RI)?(Ny("Found AdNotify in SandwichedLinearAdRenderer"),c=g.R(r.sandwichedLinearAdRenderer.adVideoStart,RI),nya(c)?(f=g.R(r.sandwichedLinearAdRenderer.linearAd,aI))?$ya(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Me.get(),y,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new rC("Missing IVAR from Sandwich"):new rC("Invalid AdMessageRenderer.")):mAa(a.B.get(),a.j.get(),t,y,[r.sandwichedLinearAdRenderer.adVideoStart, +r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new rC("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=QI(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&l.Bk,Tza(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,y,d,e,l,q)}}return[]}; +VI=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.B=a;this.C=b;this.xf=d;this.Ia=e;this.Aa=f;this.Oa=h;this.Gc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.La()||c.get().removeListener(m)}); +d.get().addListener(this);this.addOnDisposeCallback(function(){d.La()||d.get().removeListener(m)})}; +xAa=function(a,b){if(a.j)Ny("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.w(a.xf.get().WM);for(var c=b.next();!c.done;c=b.next())zAa(a,a.j,c.value)}}; +zAa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Aa.get().J.U().Ac()&&JG(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Dh.toFixed(3));BD(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=WI(a.Aa.get()),n=a.Oa;if(e.Aa.get().J.U().experiments.kb("enable_smearing_expansion_dai")){var p=g.AC(e.Aa.get().J.U().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var q=g.AC(e.Aa.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Zm:AAa(c),XB:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Dh;if(d===0)m.Sn=new Dp(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Sn=t<=0?new Dp(q*1E3,r*1E3):new Dp(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={Zm:AAa(c),XB:!1},r=c.startSecs+c.Dh,c.startSecs<=d?m=new Dp((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new Dp(Math.floor(d+ +Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Sn=m;f=rI(e,f,h,p,l,[new KB(c)]);e.Aa.get().J.U().experiments.kb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Sn.start/1E3-d,n=c.startSecs-d,(h=h.J.Vc())!=null&&(h=h.hc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=g.XI(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):JG(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Sn.start/1E3- +d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})}; +YI=function(a){var b,c=(b=tC(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=tC(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=tC(a.Ca,"metadata_type_content_cpn"),f=tC(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=tC(a.Ca,"metadata_type_player_overlay_layout_renderer"),l=tC(a.Ca,"metadata_type_player_underlay_renderer"),m=tC(a.Ca,"metadata_type_ad_placement_config"),n=tC(a.Ca,"metadata_type_video_length_seconds"); +var p=nC(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?tC(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):nC(a.Ca,"metadata_type_layout_enter_ms")&&nC(a.Ca,"metadata_type_layout_exit_ms")?(tC(a.Ca,"metadata_type_layout_exit_ms")-tC(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sq:d,contentCpn:e,KS:c,lO:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,cL:p,inPlayerLayoutId:tC(a.Ca,"metadata_type_linked_in_player_layout_id"), +inPlayerSlotId:tC(a.Ca,"metadata_type_linked_in_player_slot_id")}}; +CAa=function(a,b){return BAa(a,b)}; +DAa=function(a,b){b=BAa(a,b);if(!b)return null;var c;b.cL=(c=tC(a.Ca,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b}; +BAa=function(a,b){var c,d=(c=tC(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=hwa(a,b);return{e7:gwa(a,b),adPlacementConfig:tC(a.Ca,"metadata_type_ad_placement_config"),h7:c,contentCpn:tC(a.Ca,"metadata_type_content_cpn"),inPlayerLayoutId:tC(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:tC(a.Ca,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:tC(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0, +instreamAdPlayerUnderlayRenderer:void 0,cL:void 0,KS:d,Sq:a.layoutId,videoLengthSeconds:tC(a.Ca,"metadata_type_video_length_seconds")}}; +ZI=function(a,b,c,d,e,f,h,l,m){g.O.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Me=h;this.Aa=l;this.Sa=m;this.jh=!0}; +EAa=function(a,b,c){return gza(a.j.get(),b.contentCpn,b.Sq,function(d){return hza(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Sq,zC(a.Me.get(),d))})}; +$I=function(a,b,c,d,e,f,h,l){g.O.call(this);this.B=a;this.j=b;this.C=c;this.Aa=d;this.D=e;this.Sa=f;this.Ia=h;this.zc=l}; +aJ=function(a){g.O.call(this);this.j=a}; +BD=function(a,b,c,d){a.j().Qg(b,d);c=c();a=a.j();a.Rb.JI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.w(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Rb.dk("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Rb.dk("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.pb(c.slotId))throw new rC("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(IC(e,c))throw new rC("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.ph.St.has(c.slotType))throw new rC("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.ph.zv.has(c.slotType))throw new rC("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ZC(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);ZC(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +c.slotFulfillmentTriggers);ZC(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=UC(f,h);if(IC(f,c))throw new rC("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new ava(c));f.j.set(h,l)}catch(fa){fa instanceof rC&&fa.ql?(d.Rb.mm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",fa.ql,c),Ny(fa,c,void 0,void 0,fa.Fw)):(d.Rb.mm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +c),Ny(fa,c));break a}IC(d.j,c).K=!0;try{var m=d.j,n=IC(m,c),p=c.slotEntryTrigger,q=m.ph.vn.get(p.triggerType);q&&(q.Ql("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var r=g.w(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,y=m.ph.vn.get(u.triggerType);y&&(y.Ql("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,y))}for(var A=g.w(c.slotExpirationTriggers),D=A.next();!D.done;D=A.next()){var F=D.value,H=m.ph.vn.get(F.triggerType);H&&(H.Ql("TRIGGER_CATEGORY_SLOT_EXPIRATION", +F,c,null),n.Y.set(F.triggerId,H))}var M=m.ph.St.get(c.slotType).get().build(m.C,c);n.N=M;var N=m.ph.zv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(fa){fa instanceof rC&&fa.ql?(d.Rb.mm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",fa.ql,c),Ny(fa,c,void 0,void 0,fa.Fw)):(d.Rb.mm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),Ny(fa,c));FC(d,c,!0);break a}d.Rb.dk("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Rg(c);for(var Q=g.w(d.B),Z=Q.next();!Z.done;Z= +Q.next())Z.value.Rg(c);LC(d,c)}}; +bJ=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.C=b;this.Pc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.La()||d.get().removeListener(f)})}; +Hya=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.w(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof CH?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):Ny("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Dp(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Pc.get().addCueRange(c,d.start,d.end,!1,a);cJ(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.Nn.Gk("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))}; +dJ=function(){g.O.apply(this,arguments);this.jh=!0;this.nj=new Map;this.j=new Map}; +eJ=function(a,b){a=g.w(a.nj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1}; +fJ=function(a,b){a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}Ny("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.pb(b)),layoutId:b})}; +FAa=function(){this.j=new Map}; +GAa=function(a,b){this.callback=a;this.slot=b}; +gJ=function(){}; +HAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; +IAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0}; +JAa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c}; +hJ=function(a){this.Ia=a}; +iJ=function(a){g.O.call(this);this.FN=a;this.Wb=new Map}; +jJ=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof OH&&f.triggeringLayoutId===b&&c.push(e)}c.length?RC(a.FN(),c):Ny("Survey is submitted but no registered triggers can be activated.")}; +kJ=function(a,b,c){iJ.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.La()||b.get().removeListener(d)})}; +lJ=function(a){g.O.call(this);this.j=a;this.jh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set}; +mJ=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; +nJ=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&RC(a.j(),c)}; +oJ=function(a,b,c){g.O.call(this);var d=this;this.j=a;this.context=c;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.La()||b.get().removeListener(d)})}; +pJ=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.Pc=b;this.Ia=c;this.Sa=d;this.context=e;this.jh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.La()||c.get().removeListener(f)})}; +KAa=function(a,b,c,d,e,f,h,l,m,n){if(ZF(a.Sa.get(),1).clientPlaybackNonce!==m)throw new rC("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{nE:new QH(b,c,d,e),vJ:f});a.Pc.get().addCueRange(f,h,l,n,a);cJ(a.context.Aa.get())&&(m={},a.context.Nn.Gk("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))}; +LAa=function(a,b){a=g.w(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;if(b===d.vJ)return c}return""}; +qJ=function(a,b){g.O.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.La()||b.get().removeListener(c)}); +var d;this.j=((d=b.get().Tw)==null?void 0:d.slotId)||null}; +MAa=function(a,b){var c=[];a=g.w(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c}; +rJ=function(a){g.O.call(this);this.j=a;this.jh=!0;this.Wb=new Map}; +AG=function(a,b,c){b=b.layoutId;for(var d=[],e=g.w(a.Wb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof FH){var h;if(h=f.trigger.layoutId===b){h=c;var l=Uua.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&RC(a.j(),d)}; +sJ=function(a){g.O.call(this);this.j=a;this.jh=!0;this.Wb=new Map}; +tJ=function(a){g.O.call(this);this.C=a;this.jh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map}; +NAa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c}; +uJ=function(a){g.O.call(this);this.j=a;this.Wb=new Map}; +OAa=function(a,b){for(var c=[],d=g.w(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof sH&&e.trigger.slotId===b&&c.push(e);c.length>=1&&RC(a.j(),c)}; +PAa=function(a,b){var c={slotId:CD(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bb:"surface",Ca:new sC([])},d=Object,e=d.assign;b=iD(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Eb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"surface",Ca:new sC([]), +ac:Oua(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.bb,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{d$:!0,slot:c,layout:b})}; +Lya=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Zm:new Dp(-0x8000000000000,-0x8000000000000),XB:d},c!=null&&(d.Sn=new Dp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Zm:new Dp(0x7ffffffffffff,0x8000000000000),XB:d},c!=null&&(d.Sn=new Dp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||Ny("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +e.offsetEndMilliseconds||Ny("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new rC("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Zm:new Dp(a,e),XB:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Sn=new Dp(a,e)}return d; +default:return new rC("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}}; +AAa=function(a){var b=a.startSecs*1E3;return new Dp(b,b+a.Dh*1E3)}; +QAa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.w(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.w(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.R(b.value,qI))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +vJ=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map}; +CD=function(a,b){if(wJ(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.Sv(16)}; +iD=function(a,b,c){if(wJ(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.Sv(16)}; +EI=function(a,b){if(wJ(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.Sv(16)}; +RAa=function(a){var b=[new CB(a.Sq),new GB(a.KS),new kB(a.adPlacementConfig),new LB(a.videoLengthSeconds),new $B(a.cL)];a.instreamAdPlayerOverlayRenderer&&b.push(new rB(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new sB(a.playerOverlayLayoutRenderer));a.lO&&b.push(new oB(a.lO));return b}; +SAa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:iD(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Eb:new Map,layoutExitNormalTriggers:[new AH(function(n){return EI(f, +n)},c.Sq)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b,Ca:d,ac:e(h),adLayoutLoggingData:m}}; +xJ=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return EI(c.B.get(),d)}}; +hza=function(a,b,c,d,e,f){c=new sC([new tB(c),new kB(d)]);b=iD(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Eb:new Map,layoutExitNormalTriggers:[new AH(function(h){return EI(a.B.get(),h)},e)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:c,ac:f(d),adLayoutLoggingData:void 0}}; +yI=function(a,b,c,d,e){var f=RAa(d);return SAa(b,c,d,new sC(f),e,a.B.get())}; +TAa=function(a,b,c,d,e){var f=RAa(d);f.push(new iB(d.e7));f.push(new jB(d.h7));return SAa(b,c,d,new sC(f),e,a.B.get())}; +TI=function(a,b,c,d,e,f,h,l,m,n){b=iD(a.B.get(),c,b);var p={layoutId:b,layoutType:c,bb:"core"},q=new Map;h&&q.set("impression",h);h=[new DH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new zH(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Eb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([d,new kB(f),new CB(e)]),ac:l(p),adLayoutLoggingData:m}}; +UI=function(a,b,c,d,e,f,h,l,m){b=iD(a.B.get(),c,b);var n={layoutId:b,layoutType:c,bb:"core"},p=[new DH(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new zH(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Eb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([d,new kB(f),new CB(e)]),ac:h(n),adLayoutLoggingData:l}}; +JI=function(a,b,c){var d=[];d.push(new EH(a.j,c));b&&d.push(b);return d}; +II=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,bb:"core"};return{layoutId:b,layoutType:c,Eb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new vH(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new eB(d),new kB(e)]),ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}}; +HI=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,bb:"core"};return{layoutId:b,layoutType:f,Eb:new Map,layoutExitNormalTriggers:[new AH(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new kB(d)].concat(g.x(h))),ac:e(m),adLayoutLoggingData:l}}; +LI=function(a,b,c,d){if(a.Aa.get().Ve(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)Ny("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c}; +$za=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=KI(a,b,c,e,f,h,l,m,q,LI(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Nz;c=new DB(a.NL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new nB(n)),d=[]);b.push(new mB(p));return{Nf:{layoutId:a.layoutId,layoutType:a.layoutType,Eb:a.Eb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:a.bb,Ca:new sC(b),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}, +Dm:d,nk:a.layoutExitMuteTriggers,Rz:a.layoutExitUserInputSubmittedTriggers,Qz:a.Yc,qf:a.qf}}; +dAa=function(a,b,c,d,e,f,h,l,m,n){b=KI(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,LI(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +a=new OH(a.j,b.NL);c=new DB(b.NL);n=new mB(n);return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Eb:b.Eb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b.bb,Ca:new sC([].concat(g.x(b.Nz),[c,n])),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Dm:b.layoutExitSkipTriggers,nk:b.layoutExitMuteTriggers,Rz:[].concat(g.x(b.layoutExitUserInputSubmittedTriggers),[a]),Qz:b.Yc,qf:b.qf}}; +KI=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:iD(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"adapter"};l=l(b);var q=tC(l.Ca,"metadata_type_fulfilled_layout");q||Ny("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new kB(c),new aC(d),new dC(e)];q&&c.push(new EB(q.layoutType));p&&c.push(new RB(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Eb:f,layoutExitNormalTriggers:[], +layoutExitSkipTriggers:[new HH(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"adapter",Nz:c,ac:h(n),adLayoutLoggingData:m,qf:l,NL:r}}; +eza=function(a,b,c,d,e,f,h,l,m,n,p){a=UAa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Eb:a.Eb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Yc:a.Yc,bb:a.bb,Ca:new sC(a.vX),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}}; +oAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=UAa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.vX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new nB(c.adPodSkipTarget)),d=[]);e.push(new mB(l.adPodIndex));c.isCritical&&(d=[new zH(a.j,b.layoutId,["error"])].concat(g.x(d)));return{Nf:{layoutId:b.layoutId,layoutType:b.layoutType,Eb:b.Eb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:b.bb,Ca:new sC(e), +ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Dm:d,nk:b.layoutExitMuteTriggers,Rz:b.layoutExitUserInputSubmittedTriggers,Qz:b.Yc}}; +UAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",bb:c};e=[new kB(e),new lB(m),new pB(d.externalVideoId),new qB(l),new dC({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new MB(f),new HB({current:null}),new LB(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new rB(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new sB(h)); +q&&e.push(new NB(q));(q=d.playerUnderlay)&&e.push(new tB(q));l=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:iD(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new DB(q));e.push(new FB(l));e.push(new RB(m.adPodIndex));d.adNextParams&&e.push(new cB(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new wB(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new dB(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new bC(d.legacyInfoCardVastExtension)); +d.sodarExtensionData&&e.push(new OB(d.sodarExtensionData));p&&e.push(new ZB(p));e.push(new gC(KD(d.pings)));m=LD(d.pings);if(r){a:{r=g.w(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.R(p.fulfillmentContent.fulfilledLayout,hI))&&(f=g.R(f.renderingContent,gI))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new uB(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Eb:m,layoutExitNormalTriggers:[new FH(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? +[new HH(a.j,q)]:[],layoutExitMuteTriggers:[new HH(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:c,vX:e,ac:n(t),adLayoutLoggingData:d.adLayoutLoggingData}}; +Qza=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return oC(p,[],["LAYOUT_TYPE_MEDIA"])})||Ny("Unexpect subLayout type for DAI composite layout"); +b=iD(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Eb:new Map,layoutExitNormalTriggers:[new BH(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Yc:[],bb:"core",Ca:new sC([new PB(c),new QB(l),new JB(d),new kB(e),new VB(f),new SB({}),new iC(m)]),ac:h(n)}}; +Lza=function(a){return a!=null}; +yJ=function(a,b,c){var d=this;this.B=a;this.C=b;this.Aa=c;this.j=function(e){return EI(d.B.get(),e)}}; +yAa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new rC("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new rC("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.w(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={Zm:new Dp(q,q+Number(n)),XB:!1,Sn:new Dp(Math.floor(p+ +Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new mC({breakLengthMs:Number(n)}));h&&q.push(new SB({}));l.push(rI(a,b,e,p,f,q))}return l}; +rI=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=CD(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Sn&&d.Sn.start!==d.Zm.start&&l.push(new CH(a.j,c,new Dp(d.Sn.start,d.Zm.start),!1));l.push(new CH(a.j,c,new Dp(d.Zm.start,d.Zm.end),d.XB));d={getAdBreakUrl:b.getAdBreakUrl,WS:d.Zm.start,VS:d.Zm.end,cueProcessedMs:d.cueProcessedMs};b=new LH(a.j,h);f=[new XB(d)].concat(g.x(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new GH(a.j, +c),new JH(a.j,h),new KH(a.j,h)],bb:"core",Ca:new sC(f),adSlotLoggingData:e}}; +WAa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())d.push(VAa(a,b,e.value));return d}; +VAa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c}; +zza=function(a,b,c,d,e){return XAa(a,b,c,d,e)}; +aAa=function(a,b,c,d){var e=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");return XAa(a,e,b,c,d)}; +XAa=function(a,b,c,d,e){var f=new yH(a.j,c),h=[new IH(a.j,b)];a=[new JH(a.j,b),new GH(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}}; +pAa=function(a,b,c,d,e,f){var h=CD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=iD(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=zJ(a,b,c,d);var n=[new IH(a.j,h)];c=[new JH(a.j,h),new GH(a.j,c),new vH(a.j,m)];if(d instanceof rC)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.K$;l=l.Z9;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:NI(a,b,h,d),slotFulfillmentTriggers:OI(a,b,h,n),slotExpirationTriggers:c,bb:"core",Ca:new sC([new WB(f),new jC(PI(b)),new lC({yu:a.yu(b)})]),adSlotLoggingData:e},l]}; +PI=function(a){return a.kind==="AD_PLACEMENT_KIND_START"}; +fza=function(a,b,c,d,e){e=e?e:CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new yH(a.j,c);var f=[new IH(a.j,e)];a=[new GH(a.j,b),new JH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; +gza=function(a,b,c,d){var e=CD(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new yH(a.j,c);var f=[new IH(a.j,e)];a=[new GH(a.j,b),new JH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}}; +Yya=function(a,b,c,d,e,f,h){var l=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=iD(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=YAa(a,d,f,h,m);if(d instanceof rC)return d;h=[new IH(a.j,l)];e=[new GH(a.j,f),new IH(a.j,e),new NH(a.j,e)];c=zC(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +Eb:new Map,layoutExitNormalTriggers:[new jya(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new lya(a.j,m,b.durationMs)],Yc:[new kya(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],bb:"core",Ca:new sC([new cC(b)]),ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ca:new sC([new WB(b)])}}; +Yza=function(a,b,c,d,e,f){b=zJ(a,b,c,d);if(b instanceof rC)return b;var h=b instanceof CH?new gya(a.j,c,b.j):null;d=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new IH(a.j,d)];a=[new GH(a.j,c),new JH(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof qC?new rC(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a, +bb:"core",Ca:new sC([new WB(f)]),adSlotLoggingData:e}}; +Wza=function(a,b,c,d){var e=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new uH(a.j,b),h=[new MH(a.j,e)];a=[new GH(a.j,b),new JH(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}}; +Fza=function(a,b,c,d){var e=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new yH(a.j,c);var f=[new IH(a.j,e)],h=[new JH(a.j,e),new GH(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new IH(a.j,e)],slotExpirationTriggers:[new GH(a.j,b),new JH(a.j,e)],bb:"core",Ca:new sC([new WB(d(f))])}}; +Cza=function(a,b,c,d,e){var f=CD(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new xH(a.j,d,c);d=[new IH(a.j,f)];a=[new GH(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}}; +Uya=function(a,b,c,d,e,f){var h=CD(a.B.get(),b);return AJ(a,h,b,new yH(a.j,d),[new GH(a.j,c),new JH(a.j,h),new zH(a.j,d,["error"])],e,f)}; +Tya=function(a,b,c,d,e,f,h){var l=CD(a.B.get(),b);return AJ(a,l,b,new zH(a.j,e,["normal"]),[new GH(a.j,c),new JH(a.j,l),new zH(a.j,d,["error"])],f,h)}; +Pya=function(a,b,c,d,e){var f=CD(a.B.get(),b);return AJ(a,f,b,new uH(a.j,c),[new GH(a.j,c),new JH(a.j,f)],d,e)}; +Sza=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=CD(a.B.get(),c);b=new uH(a.j,b);var h=[new IH(a.j,f)];a=[new JH(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(e({slotId:f,slotType:c,slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}}; +Mza=function(a,b,c,d){var e=CD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new dya(a.j),h=[new MH(a.j,e)];b=[new GH(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Aa.get();return!g.OC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5")||g.OC(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ca:new sC([new WB(d(l)),new SB({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ca:new sC([new WB(d(l)),new SB({})])}}; +kAa=function(a,b){return vAa(a.Aa.get())?new zH(a.j,b,["normal","error","skipped"]):new zH(a.j,b,["normal"])}; +bza=function(a,b,c,d,e){b=kAa(a,b);a=MI(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,bb:a.bb});return e instanceof rC?e:{yy:Object.assign({},a,{Ca:new sC([new WB(e.layout)]),adSlotLoggingData:d}),qg:e.qg}}; +cza=function(a,b,c,d,e,f,h){c=lAa(a,b,c,d);if(c instanceof rC)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb});if(h instanceof rC)return h;d=[new jC(PI(b)),new WB(h.layout),new lC({yu:a.yu(b)})];f&&d.push(new eC({}));return{yy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:NI(a, +b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:OI(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb,Ca:new sC(d),adSlotLoggingData:e},qg:h.qg}}; +NI=function(a,b,c,d){return a.Aa.get().Ve(PI(b))?new sH(a.j,c):d}; +OI=function(a,b,c,d){return a.Aa.get().Ve(PI(b))?[new MH(a.j,c)]:d}; +MI=function(a,b,c){var d=CD(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new IH(a.j,d)];a=[new JH(a.j,d),new GH(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,bb:"core"}}; +lAa=function(a,b,c,d){b=zJ(a,b,c,d);return b instanceof rC?b:MI(a,b,c)}; +Uza=function(a,b,c,d,e,f){var h=CD(a.B.get(),"SLOT_TYPE_FORECASTING");b=zJ(a,b,c,d);if(b instanceof rC)return b;d=[new IH(a.j,h)];a=[new JH(a.j,h),new GH(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ca:new sC([new WB(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}}; +ZAa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new uH(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Lya(b,d),a instanceof rC?a:e(a.Zm,f);case "AD_PLACEMENT_KIND_END":return new wH(a.j,c,f);default:return new rC("Cannot construct entry trigger",{kind:b.kind})}}; +YAa=function(a,b,c,d,e){return ZAa(a,b,c,d,function(f,h){return new fya(a.j,c,f,h,e)})}; +zJ=function(a,b,c,d){return ZAa(a,b,c,d,function(e,f){return new CH(a.j,c,e,f)})}; +AJ=function(a,b,c,d,e,f,h){a=[new MH(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,bb:"core",Ca:new sC([new WB(h({slotId:b,slotType:c,slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}}; +BJ=function(a,b){g.O.call(this);this.Aa=a;this.j=b;this.eventCount=0}; +CJ=function(a,b,c,d){BJ.call(this,a,b);this.Aa=a;this.Sa=c;this.context=d}; +DJ=function(){this.j=new Map}; +EJ=function(a){return window.Int32Array?new Int32Array(a):Array(a)}; +KJ=function(a){g.O.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!$Aa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);FJ=new Uint8Array(256);GJ=EJ(256);HJ=EJ(256);IJ=EJ(256);JJ=EJ(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;FJ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;GJ[f]=b<<24|e<<16|e<<8|h;HJ[f]=h<<24|GJ[f]>>>8;IJ[f]=e<<24|HJ[f]>>>8;JJ[f]=e<<24|IJ[f]>>>8}$Aa=!0}e=EJ(44);for(c= +0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(FJ[a>>16&255]^d)<<24|FJ[a>>8&255]<<16|FJ[a&255]<<8|FJ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e}; +LJ=function(a,b){for(var c=0;c<4;c++)a.counter[c]=b[c*4]<<24|b[c*4+1]<<16|b[c*4+2]<<8|b[c*4+3];a.j=16}; +aBa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=GJ[c>>>24]^HJ[d>>16&255]^IJ[e>>8&255]^JJ[f&255]^b[n++],l=GJ[d>>>24]^HJ[e>>16&255]^IJ[f>>8&255]^JJ[c&255]^b[n++],m=GJ[e>>>24]^HJ[f>>16&255]^IJ[c>>8&255]^JJ[d&255]^b[n++],f=GJ[f>>>24]^HJ[c>>16&255]^IJ[d>>8&255]^JJ[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=FJ[c>>>24]^h>>>24;a[1]=FJ[d>>16&255]^h>>16&255;a[2]=FJ[e>>8&255]^ +h>>8&255;a[3]=FJ[f&255]^h&255;h=b[41];a[4]=FJ[d>>>24]^h>>>24;a[5]=FJ[e>>16&255]^h>>16&255;a[6]=FJ[f>>8&255]^h>>8&255;a[7]=FJ[c&255]^h&255;h=b[42];a[8]=FJ[e>>>24]^h>>>24;a[9]=FJ[f>>16&255]^h>>16&255;a[10]=FJ[c>>8&255]^h>>8&255;a[11]=FJ[d&255]^h&255;h=b[43];a[12]=FJ[f>>>24]^h>>>24;a[13]=FJ[c>>16&255]^h>>16&255;a[14]=FJ[d>>8&255]^h>>8&255;a[15]=FJ[e&255]^h&255}; +OJ=function(){if(!MJ&&!g.tu){if(NJ)return NJ;var a;NJ=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=NJ)==null?0:b.importKey)&&((c=NJ)==null?0:c.sign)&&((d=NJ)==null?0:d.encrypt))return NJ;NJ=void 0}}; +g.PJ=function(a){this.D=a}; +g.QJ=function(a){this.B=a}; +RJ=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()}; +bBa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,u,y=0;y<64;)y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=q+SJ[y]+u+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r= +d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=p+SJ[y]+u+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=n+SJ[y]+u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^ +~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=m+SJ[y]+u+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,m=e+r,e=r+t,y++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]= +l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0}; +dBa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;cBa(a);return b}; +cBa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0}; +eBa=function(a){this.j=a}; +fBa=function(a,b,c){a=new RJ(a.j);a.update(b);a.update(c);b=dBa(a);a.update(a.G);a.update(b);b=dBa(a);a.reset();return b}; +gBa=function(a){this.B=a}; +hBa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j){l.Ha(2);break}return g.G(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.G(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})}; +iBa=function(a,b,c){a.C||(a.C=new eBa(a.B));return fBa(a.C,b,c)}; +jBa=function(a,b,c){var d,e;return g.J(function(f){if(f.j==1){d=OJ();if(!d)return f.return(iBa(a,b,c));g.va(f,3);return g.G(f,hBa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.xa(f);g.fx(e);MJ=!0;return f.return(iBa(a,b,c))})}; +TJ=function(){var a=kBa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=uma.apply(null,[vma.apply(null,g.x(b))].concat(g.x(c)));this.store=xma(a,void 0,b)}; +g.UJ=function(a,b,c){for(var d=Object.assign({},a),e=g.w(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.x(h),g.x(l)):l;else if(!Array.isArray(l)&&g.Qa(l)&&!Array.isArray(h)&&g.Qa(h))d[f]=g.UJ(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.pt("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Woa:h,updateValue:l}),g.ex(b), +a}return d}; +VJ=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})}; +lBa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset}; +WJ=function(a,b){b=g.w(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)}; +XJ=function(a,b,c){return a.split(b).qn.split(c).zK}; +YJ=function(a){a.D=void 0;a.B=0;a.C=0}; +ZJ=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length}; +mBa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D}; +nBa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!ZJ(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);YJ(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)}; +$J=function(a,b,c){a=nBa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}; +aK=function(a,b,c){a=$J(a,b===void 0?0:b,c===void 0?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c>10;f=56320|f&1023}fK[e++]=f}}f=String.fromCharCode.apply(String,fK); +e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")}; +iK=function(a,b){var c;if((c=hK)==null?0:c.encodeInto)return b=hK.encodeInto(a,b),b.read>6|192:((e&64512)===55296&&d+1>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c}; +jK=function(a){if(hK)return hK.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=iK(a,b);b.lengthc&&(b=b.subarray(0,c));return b}; +kK=function(a){this.j=a;this.pos=0;this.B=-1}; +lK=function(a){var b=bK(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=bK(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c}; +mK=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=lK(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:lK(a);break;case 1:a.pos+=8;break;case 2:d=lK(a);a.pos+=d;break;case 5:a.pos+=4}}return!1}; +nK=function(a,b){if(mK(a,b))return lK(a)}; +oK=function(a,b){if(mK(a,b))return!!lK(a)}; +pK=function(a,b){if(mK(a,b)){b=lK(a);var c=$J(a.j,a.pos,b);a.pos+=b;return c}}; +qK=function(a,b){if(a=pK(a,b))return g.gK(a)}; +rK=function(a,b,c){if(a=pK(a,b))return c(new kK(new VJ([a])))}; +sK=function(a,b){for(var c=[];mK(a,b);)c.push(lK(a));return c.length?c:void 0}; +tK=function(a,b,c){for(var d=[],e;e=pK(a,b);)d.push(c(new kK(new VJ([e]))));return d.length?d:void 0}; +uK=function(a,b){a=a instanceof Uint8Array?new VJ([a]):a;return b(new kK(a))}; +qBa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a}; +rBa=function(a,b){this.wd=b;this.pos=0;this.B=[];this.j=qBa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; +vK=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c268435455){vK(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(vK(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1}; +xK=function(a,b,c){c!==void 0&&(wK(a,b*8),wK(a,c))}; +yK=function(a,b,c){c!==void 0&&xK(a,b,c?1:0)}; +zK=function(a,b,c){c!==void 0&&(wK(a,b*8+2),b=c.length,wK(a,b),vK(a,b),a.j.set(c,a.pos),a.pos+=b)}; +AK=function(a,b,c){c!==void 0&&(sBa(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),vK(a,c.length*1.2),b=iK(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(vK(a,b),b=iK(c,a.j.subarray(a.pos))),a.pos+=b,tBa(a))}; +sBa=function(a,b,c){c=c===void 0?2:c;wK(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c}; +tBa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}}; +BK=function(a,b,c,d,e){c&&(sBa(a,b,e===void 0?3:e),d(a,c),tBa(a))}; +g.CK=function(a,b,c){c=new rBa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)}; +g.DK=function(a){var b=new kK(new VJ([Ve(decodeURIComponent(a))]));a=qK(b,2);b=nK(b,4);var c=uBa[b];if(typeof c==="undefined")throw a=new g.pt("Failed to recognize field number",{name:"EntityKeyHelperError",kna:b}),g.ex(a),a;return{o8:b,entityType:c,entityId:a}}; +g.EK=function(a,b){var c=new rBa;zK(c,2,jK(a));a=vBa[b];if(typeof a==="undefined")throw b=new g.pt("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.ex(b),b;xK(c,4,a);xK(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Te(b))}; +FK=function(a,b,c,d){if(d===void 0)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; +wBa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.UJ(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))}; +xBa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.ex(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.ex(new g.pt("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.vc(e.payload); +return FK(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.DK(e).entityType;l=FK(d,m,e);break a}catch(q){if(q instanceof Error){g.ex(new g.pt("Failed to deserialize entity key",{entityKey:e,yS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.ex(new g.pt("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.vc(e.payload);var n,p;return wBa(d,l,e.entityKey, +e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a); +case "REPLACE_ENTITY":var c=b.payload;return FK(a,c.entityType,c.key,c.n8);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return FK(h,e,l,f[l])},d)},a); +case "UPDATE_ENTITY":return c=b.payload,wBa(a,c.entityType,c.key,c.n8,c.Hoa);default:return a}}; +GK=function(a,b,c){return a[b]?a[b][c]||null:null}; +IK=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); +e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(HK)?e.replace(",","\u00a0"):f.includes(HK)?e.replace(",","\u202f"):h.includes(HK)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(HK)||d)&&c<10?yBa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=yBa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(HK)&&(c=".");return b.join(c)}; +yBa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +zBa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;ca}; +QBa=function(a,b){PBa(a.program,b.qda)&&(uA("bg_i",void 0,"player_att"),g.WK.initialize(a,function(){uA("bg_l",void 0,"player_att");VK=(0,g.Zt)()},b.cspNonce))}; +RBa=function(a){a=a===void 0?{}:a;return g.WK.invoke(a)}; +PBa=function(a,b){return a?g.WK.isLoading()?!1:OBa(b):!1}; +SBa=function(a){a=a.split("");XK.Ew(a,3);XK.kK(a,60);XK.PN(a,58);XK.kK(a,54);XK.PN(a,24);XK.Ew(a,3);XK.kK(a,27);XK.PN(a,32);XK.Ew(a,1);return a.join("")}; +g.YK=function(a,b){return a.Fa+"timedtext_video?ref=player&v="+b.videoId}; +g.ZK=function(a,b){a.feature=b}; +g.TBa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.WK.isInitialized()){var d="";b.videoData&&b.videoData.wr&&(d=b.videoData.wr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);uA("bg_v",void 0,"player_att");(d=RBa(d))?(uA("bg_s",void 0,"player_att"),c.push("r1a="+d)):(uA("bg_e",void 0,"player_att"),c.push("r1c=2"))}else uA("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.WK.getState()); +return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^KA())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.pr("CATSTAT",0)))},a); +this.videoData&&this.videoData.wr?this.yr=xr(this.videoData.wr):this.yr={}}; +g.UBa=function(a){if(a.videoData&&a.videoData.wr){for(var b=[a.videoData.wr],c=g.w(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.yr[d]&&a.j[d]&&(d=a.j[d](a.yr))&&b.push(d);return b.join("&")}return null}; +g.$K=function(a,b){QBa(a,{qda:g.AC(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; +VBa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3}; +aL=function(a){a=a===void 0?2592E3:a;if(a>0&&!(Ona()>(0,g.Zt)()-a*1E3))return 0;a=g.ct("yt-player-quality");if(typeof a==="string"){if(a=g.RE[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0}; +bL=function(){var a=g.ct("yt-player-proxima-pref");return a==null?null:a}; +WBa=function(){var a=g.ct("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.bt("yt-player-performance-cap",d,c?2592E3:604800))}; +ZBa=function(a,b){b=b===void 0?!0:b;var c=cL();return b?+c[a]||8192:c[a]}; +cL=function(){return g.ct("yt-player-performance-cap")||{}}; +dL=function(){var a;return(a=g.ct("yt-player-performance-cap-active-set"))!=null?a:[]}; +$Ba=function(a){(a===void 0?0:a)?(a=dL().filter(function(b){return b.startsWith("1")}),g.bt("yt-player-performance-cap-active-set",a,2592E3)):g.bt("yt-player-performance-cap-active-set",[],2592E3)}; +aCa=function(a){g.bt("yt-player-watch-later-pending",a)}; +bCa=function(){return!!g.ct("yt-player-headers-readable")}; +cCa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}}; +g.eL=function(){var a=g.ct("yt-player-caption-language-preferences");return a?a:[]}; +fCa=function(a,b){BK(a,2,b.zr,fL,3);BK(a,3,b.MQ,dCa,3);zK(a,4,b.onesieUstreamerConfig);zK(a,9,b.mp);BK(a,10,b.BC,gL,3);BK(a,15,b.reloadPlaybackParams,eCa,3)}; +hCa=function(a,b){BK(a,1,b.formatId,hL,3);xK(a,2,b.startTimeMs);xK(a,3,b.durationMs);xK(a,4,b.pn);xK(a,5,b.Yi);BK(a,9,b.Cma,gCa,3);BK(a,11,b.apa,iL,1);BK(a,12,b.DS,iL,1)}; +iCa=function(a,b){AK(a,1,b.videoId);xK(a,2,b.lmt)}; +gCa=function(a,b){if(b.NW)for(var c=0;c>31));xK(a,16,b.n$);xK(a,17,b.detailedNetworkType);xK(a,18,b.A7);xK(a,19,b.z7);xK(a,21,b.wea);xK(a,23,b.q7);xK(a,28,b.MS);xK(a,29,b.Mea);xK(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(wK(a,285),vK(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}xK(a,36,b.d8); +BK(a,38,b.mediaCapabilities,kCa,3);xK(a,39,b.Lea);xK(a,40,b.Ww);xK(a,44,b.playerState);yK(a,46,b.a8);xK(a,48,b.Ly);xK(a,50,b.Lw);xK(a,51,b.Vy);xK(a,54,b.Gq);yK(a,56,b.R$);xK(a,57,b.F7);yK(a,58,b.So);xK(a,59,b.wj);xK(a,60,b.Wx);yK(a,61,b.isPrefetch);xK(a,62,b.Oz);zK(a,63,b.sabrLicenseConstraint);xK(a,64,b.p$);xK(a,66,b.o$);xK(a,67,b.Joa);xK(a,68,b.D$)}; +kCa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c>31));AK(a,2,b.message)}; +sCa=function(a,b){xK(a,1,b.clientState);BK(a,2,b.Loa,qCa,1)}; +pCa=function(a,b){zK(a,1,b.Rca);BK(a,2,b.Qca,rCa,3);BK(a,3,b.coldStartInfo,sCa,3)}; +oCa=function(a,b){xK(a,1,b.type);zK(a,2,b.value)}; +nCa=function(a,b){AK(a,12,b.deviceMake);AK(a,13,b.deviceModel);xK(a,16,b.clientName);AK(a,17,b.clientVersion);AK(a,18,b.osName);AK(a,19,b.osVersion)}; +tCa=function(a,b){AK(a,1,b.name);AK(a,2,b.value)}; +uCa=function(a,b){AK(a,1,b.url);if(b.EQ)for(var c=0;c1&&(this.G=a[1]==="2")}; +oL=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.ub=e===void 0?0:e}; +qL=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!pL||a.ub===b.ub)}; +g.rL=function(a,b,c,d){return new oL(g.RE[a]||0,g.RE[b]||0,c,d)}; +sL=function(a){if(pL&&a.ub)return!1;var b=g.RE.auto;return a.B===b&&a.j===b}; +uL=function(a){return tL[a.j||a.B]||"auto"}; +gDa=function(a,b){b=g.RE[b];return a.B<=b&&(!a.j||a.j>=b)}; +vL=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")}; +wL=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.w(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.dc||a.has(d.dc.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.dc,itag:d.itag,xtag:d.j,lang:((e=d.dc)==null?void 0:e.name)||"",langid:((f=d.dc)==null?void 0:f.id)||""})}else e=new g.nL(d.id,d.dc),a.add(d.dc.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}}; +xL=function(){g.O.apply(this,arguments);this.j=null}; +kDa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(yL(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.rb]=[a.info]);return n}p=hDa(b,d,l);f&&e({aftsrt:zL(p)});for(var q={},r=g.w(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.w(p[t]),y=u.next();!y.done;y=u.next()){y=y.value;var A=y.itag,D=void 0,F=t+"_"+(((D=y.video)==null?void 0:D.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(y):l[A]=q[F]:(D=AL(b,y,c,d.isLive,m),D!==!0?(h.add(t),l[A]=D, +D==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(y),q[F]=!0))}}f&&e({bfflt:zL(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].zg()&&(n[d]=n[d],n[d]=iDa(b,n[d],l),n[d]=jDa(n[d],l)));f&&e(l);b=g.w(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.N1;f&&e({aftflt:zL(n)});a.j=g.rc(n,function(M){return!!M.length}); +return a.j}; +mDa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Rc&&h&&h.length>1&&!(b.wj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Ob?f:void 0,p=hDa(b,d),q=[],r=[],t={},u=0;u0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(D){return D})); +if(A.length&&!b.So){DL(A,p);if(m){m=[];b=g.w(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return as(new wL(A,a,n))}A=vDa(b);A=g.Kb(A,l);if(!A){if(q[h])return f=q[h],DL(f),as(new wL(f,a,n));m&&f({novideo:1});return $r()}b.yc&&(A==="1"||A==="1h")&&q[c]&&(h=EL(q[A]),p=EL(q[c]),p>h?A=c:b.Ed&&p===h&&wDa(q[c])&&(A=c));A==="9"&&q.h&&EL(q.h)>EL(q["9"])&&(A="h");b.Jb&&d.isLive&&A==="("&&q.H&&EL(q["("])<1440&&(A="H");m&&f({vfmly:FL(A)});b=q[A];if(!b.length)return m&&f({novfmly:FL(A)}), +$r();DL(b);return as(new wL(b,a,n))}; +oDa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c}; +wDa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&xDa.has(b.itag))return!0;return!1}; +FL=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}}; +zL=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(FL(d));d=g.w(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")}; +nDa=function(a,b,c,d,e,f){var h={},l={};g.qc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.me)return l[q]="noenc",!1;if(f.Ab&&p.rb==="(h"&&f.yb)return l[q]="lichdr",!1;if(p.rb==="("||p.rb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.me[c.flavor]&&!!c.j[r])||(l[q]=p.me[c.flavor]?"unspt":"noflv");return r}if(!GL(a,HL.CRYPTOBLOCKFORMAT)&&!a.Ga||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.me[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.me[c.flavor]? +"unspt":"noflv":"nosys",!1)}); +m.length&&(h[n]=m)}); +d&&Object.entries(l).length&&e(l);return h}; +jDa=function(a,b){var c=Cl(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity); +c32||d.video.widtha.K)return"max"+a.K;if(a.fb&&b.rb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.rb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&aF(b)&&!a.Ra)return"blk51live";if((b.rb==="MAC3"||b.rb==="mac3")&&!a.D)return"blkac3";if((b.rb==="MEAC3"||b.rb==="meac3")&&!a.G)return"blkeac3";if((b.rb==="M"||b.rb==="m")&&!a.ra)return"blkaac51";if((b.rb=== +"so"||b.rb==="sa")&&!a.Ba)return"blkamb";if(!a.Ab&&b.me&&b.me.fairplay&&(b.rb==="("||b.rb==="(h"||b.rb==="A"||b.rb==="MEAC3"))return"cbc";if(b.rb==="i"&&!a.Kb)return"blkiamf";var f,h;if(a.Ya&&(b.rb==="1"||b.rb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.Ya)return"av1cap";if((d=c.C.get(b.rb))&&d.N1>0)return e.add(b.rb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Fa&&!GL(c,HL.FRAMERATE))return"capHfr";if(a.Xa&&b.video.j>=4320)return"blk8khfr";if(XE(b)&&a.Zd&&b.me&& +b.video.j>=1440)return"disablevp9hfr"}if(a.ub&&b.ub>a.ub)return"ratecap";a=yDa(c,b);return a!==!0?a:!0}; +DL=function(a,b){b=b===void 0?[]:b;g.$b(a,function(c,d){var e=d.ub-c.ub;if(!c.zg()||!d.zg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.rb)+1,d=b.indexOf(d.rb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})}; +g.IL=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""}; +KL=function(a){JL(a);return a.C}; +LL=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"}; +zDa=function(a){JL(a);return g.tc(a.j,function(b){return b!==null})}; +ML=function(a){JL(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]}; +NL=function(a,b){b=b===void 0?!1:b;JL(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ce();c=new g.hk(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.jk(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.IL(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")? +(g.jk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.jk(c,"www.youtube.com"),d=c.toString()):(c=vva(d),mD(c)&&(d=c));c=new g.IL(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c}; +JL=function(a){if(a.B){if(!mD(a.B)&&!a.B.startsWith("local"))throw new g.pt("Untrusted URL",a.B);var b=g.qk(a.B);a.scheme=b.G;a.C=b.j+(b.C!=null?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=ADa(c);Object.assign(a.j, +BDa(b.D.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(JL(a),b=a.j.n||null)&&(b=CDa[0](b),a.set("n",b),CDa.length||Dma(""))}}; +DDa=function(a){JL(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(zDa(a)){var c=[];g.qc(a.j,function(d,e){d!==null&&c.push(e+"="+d)}); +b+="?"+c.join("&")}return b}; +ADa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b0?EDa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b}; +EDa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c}; +OL=function(a){var b=g.R(a,FDa)||a.signatureCipher;a={aZ:!1,rE:"",PH:"",s:""};if(!b)return a;b=xr(b);a.aZ=!0;a.rE=b.url;a.PH=b.sp;a.s=b.s;return a}; +PL=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Zg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Zg=m||null}; +g.QL=function(){this.segments=[];this.j=null;this.B=!0;this.C=""}; +GDa=function(a,b){if(b>a.qd())a.segments=[];else{var c=Jb(a.segments,function(d){return d.Pa>=b},a); +c>0&&a.segments.splice(0,c)}}; +RL=function(a,b,c,d,e){e=e===void 0?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j}; +SL=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b}; +TL=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b}; +UL=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}; +VL=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b}; +WL=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b}; +XL=function(a,b){b=b===void 0?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=SL(a)<<16|TL(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=VL(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}}; +fM=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.dM(a,0,1836476516))?g.eM(a):NaN}; +RDa=function(a){var b=g.dM(a,0,1937011556);if(!b)return null;b=gM(a,b.dataOffset+8,1635148593)||gM(a,b.dataOffset+8,1635135537);if(!b)return null;var c=gM(a,b.dataOffset+78,1936995172),d=gM(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),SL(c)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var e=c=null,f=null;if(d=gM(a,d.dataOffset,1886547818)){var h=gM(a,d.dataOffset,1886546020),l=gM(a,d.dataOffset,2037673328);if(!l&&(l=gM(a,d.dataOffset,1836279920), +!l))return null;h&&(h.skip(4),c=UL(h)/65536,f=UL(h)/65536,e=UL(h)/65536);a=HDa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new PDa(b,c,f,e,a)}return null}; +gM=function(a,b,c){for(;hM(a,b);){var d=iM(a,b);if(d.type===c)return d;b+=d.size}return null}; +g.dM=function(a,b,c){for(;hM(a,b);){var d=iM(a,b);if(d.type===c)return d;b=jM(d.type)?b+8:b+d.size}return null}; +g.kM=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b}; +iM=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new RL(a,b,c,d)}; +g.eM=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)}; +SDa=function(a){a=new RL(a.data,a.offset,a.size,a.type,a.B);var b=SL(a);a.skip(7);var c=VL(a);if(b===0){b=VL(a);var d=VL(a)}else b=WL(a),d=WL(a);a.skip(2);for(var e=TL(a),f=[],h=[],l=0;l122)return!1}return!0}; +jM=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768}; +TDa=function(a){a.skip(4);return{Pda:XL(a,0),value:XL(a,0),Ts:VL(a),fpa:VL(a),ana:VL(a),id:VL(a),F_:XL(a),offset:a.offset}}; +g.UDa=function(a){var b=gM(a,0,1701671783);if(!b)return null;var c=TDa(b),d=c.Pda;c=cM(c.F_);if(a=gM(a,b.offset+b.size,1701671783))if(a=TDa(a),a=cM(a.F_),c&&a){b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new aM(c,d):null}; +lM=function(a,b){for(var c=gM(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=gM(a,c.offset+c.size,b)}}; +g.mM=function(a,b){for(var c=0,d=[];hM(a,c);){var e=iM(a,c);e.type===b&&d.push(e);c=jM(e.type)?c+8:c+e.size}return d}; +VDa=function(a,b){var c=g.dM(a,0,1937011556),d=g.dM(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.dM(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new IDa(a.byteLength+b);YL(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;YL(d,a,c.offset+16,c.size-16);YL(d,e,e.byteOffset+f.dataOffset+8,b);YL(d,a,c.offset+c.size,a.byteLength- +(c.offset+c.size));c=g.w([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.dM(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.dM(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data}; +WDa=function(a){var b=g.dM(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=gM(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=gM(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=gM(a,b.offset+8,1935894633);if(!b)return null;b=gM(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c}; +nM=function(a,b){this.j=a;this.pos=0;this.start=b||0}; +oM=function(a){return a.pos>=a.j.byteLength}; +tM=function(a,b,c){var d=new nM(c);if(!pM(d,a))return!1;d=qM(d);if(!rM(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=sM(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?XDa(d-9,8):XDa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;bc;e++)c=c*256+yM(a),d*=128;return b?c-d:c}; +vM=function(a){var b=sM(a,!0);a.pos+=b}; +$Da=function(a){if(!rM(a,440786851,!0))return null;var b=a.pos;sM(a,!1);var c=sM(a,!0)+a.pos-b;a.pos=b+c;if(!rM(a,408125543,!1))return null;sM(a,!0);if(!rM(a,357149030,!0))return null;var d=a.pos;sM(a,!1);var e=sM(a,!0)+a.pos-d;a.pos=d+e;if(!rM(a,374648427,!0))return null;var f=a.pos;sM(a,!1);var h=sM(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295); +l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l}; +zM=function(a){var b=a.pos;a.pos=0;var c=1E6;pM(a,[408125543,357149030,2807729])&&(c=uM(a));a.pos=b;return c}; +aEa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!AM(a)||!rM(a,160))return a.pos=c,NaN;sM(a,!0);var d=a.pos;if(!rM(a,161))return a.pos=c,NaN;sM(a,!0);yM(a);var e=yM(a)<<8|yM(a);a.pos=d;if(!rM(a,155))return a.pos=c,NaN;d=uM(a);a.pos=c;return(e+d)*b/1E9}; +AM=function(a){if(!bEa(a)||!rM(a,524531317))return!1;sM(a,!0);return!0}; +bEa=function(a){if(a.Co()){if(!rM(a,408125543))return!1;sM(a,!0)}return!0}; +pM=function(a,b){for(var c=0;c0){var d=BDa(b.substr(c+1));g.qc(d,function(e,f){this.set(f,e)},a); +b=b.substr(0,c)}b=ADa(b);g.qc(b,function(e,f){this.set(f,e)},a)}; +dEa=function(a){var b=a.base.Ce(),c=[];g.qc(a.j,function(e,f){c.push(f+"="+e)}); +if(!c.length)return b;var d=c.join("&");a=zDa(a.base)?"&":"?";return b+a+d}; +CM=function(a,b){var c=new g.IL(b);(b=c.get("req_id"))&&a.set("req_id",b);g.qc(a.j,function(d,e){c.set(e,null)}); +return c}; +eEa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0}; +DM=function(a){a.G=(0,g.Zt)();a.started=0;a.timedOut=0;a.j=0}; +fEa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)}; +EM=function(a,b){a[b]||(a[b]=new eEa);return a[b]}; +FM=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()}; +HM=function(a,b,c){a=b?GM(a,c):a.j;return new BM(a)}; +GM=function(a,b){b=b?b.pm:!1;a.D||(a.D=NL(a.C,b));return a.D}; +IM=function(a,b,c){return KL(b?GM(a,c):a.j)}; +JM=function(a,b,c){c=EM(c,IM(a,a.Xj(b,c),b));b=Math.max(a.G,c.timedOut)+b.dD*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.Zt)()}; +gEa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)}; +hEa=function(a,b,c,d,e){++a.B;b&&++a.G;KL(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.bD&&delete e[KL(a.j)])}; +KM=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new FM(a)}; +LM=function(a,b){this.start=a;this.end=b;this.length=b-a+1}; +MM=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new LM(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a}; +NM=function(a,b){return new LM(a,a+b-1)}; +iEa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}}; +OM=function(a){if(!a)return new LM(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new LM(b,a),b.length>0))return b}; +PM=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Sj=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Pa=-1;this.qO=this.K=0;this.C=d;this.Pa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Ub=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Se=this.range?this.Ub+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.We=this.startTime+this.duration*this.Ub/this.range.length,this.D=this.duration*this.B/this.range.length, +this.Mf=this.We+this.D):jEa(this)}; +jEa=function(a){a.We=a.startTime;a.D=a.duration;a.Mf=a.We+a.D}; +kEa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ub+b.B===a.Ub+a.B:d}; +QM=function(a){return a.type===1||a.type===2}; +RM=function(a){return a.type===3||a.type===6}; +SM=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ub+a.B===b.range.start+b.Ub:a.Pa===b.Pa?a.Ub+a.B===b.Ub:a.Pa+1===b.Pa&&b.Ub===0&&a.Se:!1}; +lEa=function(a,b){return SM(a,b)||Math.abs(a.Mf-b.We)<=1E-6||a.Pa+1===b.Pa&&b.Ub===0&&a.Se?!0:!1}; +TM=function(a){return a.Pa+(a.Se?1:0)}; +mEa=function(a){a.length===1||g.Bl(a,function(c){return!!c.range}); +for(var b=1;b=b.range.start+b.Ub&&a.range.start+a.Ub+a.B<=b.range.start+b.Ub+b.B:a.Pa===b.Pa&&a.Ub>=b.Ub&&(a.Ub+a.B<=b.Ub+b.B||b.Se)}; +tEa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.jg()?(a=a.j.fC(a),Em(a,function(c){return tEa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Ub+b.B>a.Ub&&b.Ub+b.B<=a.Ub+a.B}; +VM=function(a,b){var c=b.Pa;a.C="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.K,a.duration=b.duration,jEa(a)}; +WM=function(a,b){var c=this;this.gb=a;this.D=this.j=null;this.G=this.hh=NaN;this.Xj=this.requestId=null;this.hd={coa:function(){return c.range}}; +this.resource=a[0].j.resource;this.B=b||"";this.gb[0].range&&this.gb[0].B>0&&(nEa(a)?(this.range=mEa(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=oEa(a)))}; +XM=function(a){return!QM(a.gb[a.gb.length-1])}; +YM=function(a){return a.gb[a.gb.length-1].type===4}; +g.ZM=function(a,b,c){c=a.Xj===null?a.resource.Xj(b,c,a.gb[0].type):a.Xj;if(a.j){b=c?NL(a.j,b.pm):a.j;var d=new BM(b);d.get("alr")||d.set("alr","yes");a.B&&cEa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new BM(new g.IL(a.B)):(d=HM(a.resource,c,b),a.B&&cEa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.Fx()&&a.gb.length===1&&a.gb[0].Ub&&d.set("range",a.gb[0].Ub+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.hh)||d.set("headm",a.hh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&& +g.qc(a.urlParams,function(e,f){d.set(f,e)}); +return d}; +uEa=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.D*a.j.info.ub)}; +vEa=function(a,b){return Math.max(0,a.gb[0].We-b)}; +$M=function(a,b,c,d,e,f){f=f===void 0?0:f;KM.call(this,a,b,d,void 0);this.G=c;this.Uj=f;this.index=e||new g.QL}; +wEa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Dh=c;this.j=d||NaN;this.B=e||NaN}; +aN=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName===c)){var d=a.getAttribute(b);if(d)return d}return""}; +bN=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null}; +xEa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0}; +yEa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a}; +cN=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1}; +zEa=function(a){var b=a.C;a.C=[];return b}; +AEa=function(){this.D=[];this.j=null;this.B={};this.C={}}; +kHa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.w(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=OFa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=fHa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=gHa(a,e));if(f==null)return;f.update(d);g.Ub(c,zEa(f))}g.Ub(a.D,c);Laa(a.D,function(h){return h.startSecs*1E3+h.j})}; +IHa=function(a){a.j&&(a.j.j=[]);g.qc(a.B,function(b){b.j=[]}); +g.qc(a.C,function(b){b.j=[]})}; +OFa=function(a){a.j||(a.j=new cN);return a.j}; +fHa=function(a,b){a.B[b]||(a.B[b]=new cN);return a.B[b]}; +gHa=function(a,b){a.C[b]||(a.C[b]=new cN);return a.C[b]}; +eN=function(a){var b=a===void 0?{}:a;a=b.Uj===void 0?0:b.Uj;var c=b.In===void 0?!1:b.In;var d=b.Br===void 0?0:b.Br;var e=b.df===void 0?0:b.df;var f=b.xi===void 0?Infinity:b.xi;var h=b.kB===void 0?0:b.kB;b=b.Wd===void 0?!1:b.Wd;g.QL.call(this);this.Sr=this.aq=-1;this.Vj=a;this.Br=d;this.In=c;this.df=e;this.xi=f;this.kB=h;((this.Wd=b)||isFinite(f)&&this.xi>0)&&c&&dN&&(this.B=!1,this.C="postLive")}; +fN=function(a,b){return Zb(a.segments,function(c){return b-c.Pa})}; +gN=function(a,b,c){c=c===void 0?{}:c;$M.call(this,a,b,"",void 0,void 0,c.Uj||0);this.index=new eN(c)}; +hN=function(a,b,c){KM.call(this,a,b);this.G=c;a=this.index=new g.QL;a.B=!1;a.C="d"}; +JHa=function(a,b,c){var d=a.index.hK(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.ub*f;return new WM([new PM(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)}; +KHa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.D;b=b.G.split(",").filter(function(p){return p.length>0}); +for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n0&&(b-=a.timestampOffset);var c=lN(a)+b;MHa(a,c);a.timestampOffset=b}; +MHa=function(a,b){g.bF(a.info.j.info)||a.info.j.info.Le();a.C=b;if(g.bF(a.info.j.info)){var c=jN(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;hM(c,f);){var h=iM(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.eM(h)));if(h.type===1952867444){!d&&a&&(d=fM(a));var l=g.kM(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+ +4,l)}f=jM(h.type)?f+8:f+h.size}return!0}c=new nM(jN(a));a=a.G?c:new nM(new DataView(a.info.j.j.buffer));d=zM(a);a=c.pos;c.pos=0;if(AM(c)&&rM(c,231))if(e=sM(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b}; +nN=function(a,b){b=b===void 0?!1:b;var c=mN(a);a=b?0:a.info.D;return c||a}; +mN=function(a){g.bF(a.info.j.info)||a.info.j.info.Le();if(a.B&&a.info.type===6)return a.B.Uj;if(g.bF(a.info.j.info)){var b=jN(a);var c=0;b=g.mM(b,1936286840);b=g.w(b);for(var d=b.next();!d.done;d=b.next())d=SDa(d.value),c+=d.dU[0]/d.Ts;c=c||NaN;if(!(c>=0))a:{c=jN(a);b=a.info.j.j;for(var e=d=0,f=0;hM(c,d);){var h=iM(c,d);if(h.type===1836476516)e=g.eM(h);else if(h.type===1836019558){!e&&b&&(e=fM(b));if(!e){c=NaN;break a}var l=gM(h.data,h.dataOffset,1953653094),m=l;l=e;var n=gM(m.data,m.dataOffset,1952868452); +m=gM(m.data,m.dataOffset,1953658222);var p=UL(n);UL(n);p&2&&UL(n);n=p&8?UL(n):0;var q=UL(m),r=q&1;p=q&4;var t=q&256,u=q&512,y=q&1024;q&=2048;var A=VL(m);r&&UL(m);p&&UL(m);for(var D=r=0;D2048?"":b.indexOf("https://")===0?b:""}; +tN=function(a,b,c){b.match(YHa);return a(b,c).then(function(d){var e=g.XHa(d.xhr);return e?tN(a,e,c):d.xhr})}; +xN=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.Fx.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.ob=this.duration=0;this.isPremiere=this.Wd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.xi=this.df=0;this.isOtf=this.Vb=!1;this.Ya=(0,g.Zt)();this.ra=Infinity;this.j={};this.K=new Map;this.state=this.Ag=0;this.timeline=null;this.isManifestless=!1;this.Ga=[];this.G=null;this.Ma=0;this.D="";this.Ka=NaN;this.Ra=this.Tb=this.timestampOffset=this.N= +0;this.Z=this.Fa=NaN;this.Rc=0;this.Xa=this.fb=this.qa=!1;this.Va=[];this.Wa={};this.Ba=NaN;this.hd={Ama:function(l){uN(d,l)}}; +var e;this.yb=(e=b)==null?void 0:e.kb("html5_use_network_error_code_enums");ZHa=!!b&&b.kb("html5_modern_vp9_mime_type");var f;vN=!((f=b)==null||!f.kb("html5_enable_flush_during_seek"))&&g.ks();var h;wN=!((h=b)==null||!h.kb("html5_enable_reset_audio_decoder"))&&g.ks()}; +$Ha=function(a){return g.tc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})}; +uDa=function(a){return g.tc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})}; +BL=function(a){return g.tc(a.j,function(b){return!!b.info.me})}; +aIa=function(a){return g.tc(a.j,function(b){return hF(b.info.mimeType)})}; +bIa=function(a){return g.tc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +cIa=function(a){return g.tc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +dIa=function(a){return g.tc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})}; +eIa=function(a){return g.tc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})}; +fIa=function(a){return Zaa(a.j,function(b){return b.info.video?b.HS():!0})}; +yL=function(a){return g.tc(a.j,function(b){return LL(b.resource.j)})}; +uN=function(a,b){a.j[b.info.id]=b;a.K.set(eF(b.info,a.Vb),b)}; +gIa=function(a,b){return(b.itag||"")+";"+((a.Vb?0:b.lmt||0)||0)+";"+(b.xtags||"")}; +hIa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")}; +AN=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(gF(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=iIa[a.stereoLayout]);var r=VHa(a)||void 0;if(n==null?0:n.primaries)var t=jIa[n.primaries]||void 0;h=new SE(h,e,l,p,q,void 0,m,r,t);d=yN(d,h,VE[a.itag||""]);vN&&(d+="; enableflushduringseek=true");wN&&(d+="; enableresetaudiodecoder=true")}var u;if(fF(d)){var y= +a.audioSampleRate;q=a.audioTrack;y=new PE(y?+y:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.sN(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new THa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&& +m){var D={};m=g.w(m);for(n=m.next();!n.done;n=m.next())(n=zN[n.value])&&(D[n]=b[n])}return new WE(f,d,{audio:y,video:h,dc:u,me:D,ub:q,Hw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})}; +BN=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(gF(d)){var h=(a.size||"640x360").split("x");h=new SE(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=yN(d,h,VE[a.itag]);vN&&(d+="; enableflushduringseek=true");wN&&(d+="; enableresetaudiodecoder=true")}var l;if(fF(d)){var m=new PE(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.sN(a.name,a.audio_track_id, +a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new THa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.w(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new WE(e,d,{audio:m,video:h,dc:l,me:r,ub:f,Hw:c,contentLength:p,lastModified:q,captionTrack:n, +streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})}; +kIa=function(a){return Em(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +lIa=function(a){return Em(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +mIa=function(a,b){return a.timeline?Vb(a.timeline.D,b):a.Ga.length?Vb(a.Ga,b):[]}; +CN=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.IL(a,!0);a.set("alr","yes");c&&(c=SBa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a}; +qIa=function(a,b){var c=aN(b,"id");c=c.replace(":",";");var d=aN(b,"mimeType"),e=aN(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(aN(b,"bandwidth"))/8;var f=Number(bN(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(gF(d)){var l=Number(aN(b,"width"));var m=Number(aN(b,"height")),n=Number(aN(b,"frameRate")),p=nIa(aN(b,a.D+":projectionType"));a:switch(aN(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q= +0}l=new SE(l,m,n,p,q)}if(fF(d)){var r=Number(aN(b,"audioSamplingRate"));var t=Number(aN(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=oIa(aN(b,a.D+":spatialAudioType"));r=new PE(r,t,m);a:{t=aN(b,"lang")||"und";if(m=bN(b,"Role"))if(p=aN(m,"value")||"",g.yc(pIa,p)){m=t+"."+pIa[p];n=p==="main";a=aN(b,a.D+":langName")||t+" - "+p;t=new g.sN(a,m,n);break a}t=void 0}}if(b=bN(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b= +b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new WE(c,d,{audio:r,video:l,dc:t,me:u,ub:e,Hw:h,contentLength:f})}; +nIa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; +oIa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; +sIa=function(a,b){b=b===void 0?"":b;a.state=1;a.Ya=(0,g.Zt)();return WHa(b||a.sourceUrl).then(function(c){if(!a.La()){a.Ag=c.status;c=c.responseText;var d=new DOMParser;c=Pba(d,Cma(c)).getElementsByTagName("MPD")[0];a.ra=xEa(aN(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.w(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.ra=a.ra}; +uIa=function(a){a.G&&a.G.stop()}; +rIa=function(a){var b=a.ra;isFinite(b)&&(DN(a)?a.refresh():(b=Math.max(0,a.Ya+b-(0,g.Zt)()),a.G||(a.G=new g.fp(a.refresh,b,a),g.P(a,a.G)),a.G.start(b)))}; +vIa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.qd()+1}return 0}; +EN=function(a){return a.Tb?a.Tb-(a.N||a.timestampOffset):0}; +FN=function(a){return a.Ra?a.Ra-(a.N||a.timestampOffset):0}; +GN=function(a){if(!isNaN(a.Ka))return a.Ka;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!hF(b[c].info.mimeType)){b=0;for(c=d.Vn();c<=d.qd();c++)b+=d.getDuration(c);b/=d.sA();b=Math.round(b/.5)*.5;d.sA()>10&&(a.Ka=b);return b}if(a.isLive&&(d=b[c],d.Uj))return d.Uj}return NaN}; +wIa=function(a,b){a=aba(a.j,function(d){return d.index.isLoaded()}); +if(!a)return NaN;a=a.index;var c=a.Li(b);return a.getStartTime(c)===b?b:c=0&&e.segments.splice(f,1)}}}; +zIa=function(a){for(var b in a.j)hF(a.j[b].info.mimeType)||GDa(a.j[b].index,Infinity)}; +IN=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.In&&(f&&(e.aq=Math.max(e.aq,f)),h&&(e.Sr=Math.max(e.Sr||0,h)))}c&&(a.Ba=c/1E3)}; +AIa=function(a){a.Ra=0;a.Tb=0;a.Rc=0}; +JN=function(a){return a.fb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive}; +yN=function(a,b,c){KN===null&&(KN=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(ZHa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return KN||c!=="9"&&c!=="("?KN||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!KN&&!LN||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a; +c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'}; +g.MN=function(a){this.tag=a}; +CIa=function(a,b){BIa.apply(null,[6,a,b].concat(g.x(g.Ca.apply(2,arguments))))}; +DIa=function(a,b){BIa.apply(null,[5,a,b].concat(g.x(g.Ca.apply(2,arguments))))}; +BIa=function(a,b,c){var d=g.Ca.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.ex(new (Function.prototype.bind.apply(g.pt,[null,f].concat(g.x(d)))),e);d.unshift(f);d=d.join(", ");e=EIa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(m){}EIa.set(b,f);e=f}if(!(a0&&(e.j=Math.min(e.j+h,10),e.B=f);e.j>0?(e.j--,e=!0):e=!1;if(e)typeof d==="function"&&(d=d()),console.log("plyr."+b,d);else{var l;d=((l=HIa.get(b))!=null?l:0)+1;HIa.set(b,d);d%100===1&&console.warn("plyr","plyr."+b+" is chatty, dropping logs.")}}}; +GIa=function(){this.j=10;this.B=Date.now()}; +ON=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return ZBa(b);a=ZBa(b,!1);if(a!=null&&a>0)return a;a=NN.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192}; +IIa=function(a){this.Da=a;this.wc=this.So=this.Ka=this.G=this.D=this.ra=this.Ma=this.Wa=this.Ba=!1;this.N=this.K=0;this.fb=!1;this.Fa=!0;this.Xa=!1;this.wj=0;this.Ga=!1;this.Tb=Infinity;this.RI=!1;this.yc=!0;this.Va=this.Ra=!1;this.j={};this.Jb=this.B=this.Y=!1;this.Uf=0;this.disableAv1=this.yb=this.ob=!1;this.Ob=this.Da.Ac();this.Ab=this.Da.experiments.kb("html5_enable_vp9_fairplay");this.Fd=this.Da.L("html5_force_av1_for_testing");this.Ya=g.AC(this.Da.experiments,"html5_av1_ordinal_cap");this.Zd= +this.Da.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Rc=this.Da.L("html5_account_onesie_format_selection_during_format_filter");this.Ed=this.Da.L("html5_prefer_hbr_vp9_over_av1");this.ub=g.AC(this.Da.experiments,"html5_max_byterate");this.Z=this.Da.L("html5_prefer_high_aac_by_default");this.Ie=this.Da.L("html5_prefer_language_over_codec");this.Kb=this.Da.L("html5_enable_iamf_audio");this.Wc=this.Da.experiments.kb("html5_allow_capability_merge")}; +vDa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.So&&b.unshift("h");a.qa&&(b=(JIa[a.qa]||[a.qa]).concat(b));return b}; +pDa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Uf===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ba&&(b=["so","sa"].concat(b));!a.wc||a.Ka||a.C||b.unshift("a");!a.Z&&a.Ma&&b.unshift("ah");a.C&&(b=(JIa[a.C]||[a.C]).concat(b));a.Kb&&b.unshift("i");return b}; +PN=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(GL(a.G,HL.AV1_CODECS)&&GL(a.G,HL.HEIGHT)&&GL(a.G,HL.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=cCa();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;lna()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return ZE(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1; +c=c.videoInfos[0].video;a=Math.min(ON(a,"1",c.fps),ON(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=ON(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=ON(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d}; +QN=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.fb=this.keySystemAccess=null;this.uw=this.ww=-1;this.pm=null;this.C=!!d&&d.kb("edge_nonprefixed_eme")}; +SN=function(a){return a.C?!1:!a.keySystemAccess&&!!RN()&&a.keySystem==="com.microsoft.playready"}; +TN=function(a){return a.keySystem==="com.microsoft.playready"}; +UN=function(a){return!a.keySystemAccess&&!!RN()&&a.keySystem==="com.apple.fps.1_0"}; +VN=function(a){return a.keySystem==="com.youtube.fairplay"}; +WN=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"}; +g.XN=function(a){return a.flavor==="fairplay"}; +RN=function(){var a=window,b=a.MSMediaKeys;os()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; +ZN=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.KE&&!g.ks())return Fp("45");if(g.tu||g.lm)return a.kb("edge_nonprefixed_eme");if(g.YN)return Fp("47");if(g.Rt){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.AC(a,"html5_safari_desktop_eme_min_version"))return Fp(a)}return!0}; +KIa=function(a,b,c,d){var e=ls(),f=(c=e||c&&os())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.x(f),g.x($N.playready)):[].concat(g.x($N.playready),g.x(f))}; +bO=function(){this.B=this.Kn=0;this.j=Array.from({length:aO.length}).fill(0)}; +LIa=function(){}; +MIa=function(){this.startTimeMs=(0,g.Zt)();this.j=!1}; +NIa=function(){this.j=new LIa}; +OIa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new bO),a.j[b].Ph(c,d))}; +PIa=function(a,b,c,d,e){var f=(0,g.Zt)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.Kn)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;OIa(a,l,f-d,e)}return b}; +cO=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return PIa(a,h,c,d,e)}; +if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.mf==="function")return b.mf(f)}return PIa(a,b,c,d,e)}; +QIa=function(){}; +dO=function(a,b,c,d,e){d=d===void 0?!1:d;g.O.call(this);this.Da=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)}; +SIa=function(a,b){a.callback=b;a.D=[];ZN(a.Da.experiments)?eO(a):RIa(a)}; +eO=function(a){if(!a.La())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=TIa(a,c);if(fO&&fO.keySystem===b&&fO.Cda===JSON.stringify(d))a.oa("remksa",{re:!0}),UIa(a,c,fO.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=fO)==null?void 0:e.keySystem)!=null?f:""});fO=void 0;(gO.isActive()?gO.ev("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(JK(function(h){UIa(a,c,h,d)}),JK(function(){a.G=!a.G&&a.C[a.B[0]].flavor=== +"widevine"; +a.G||a.B.shift();eO(a)}))}}}; +UIa=function(a,b,c,d){if(!a.La()){d&&(fO={keySystem:b.keySystem,keySystemAccess:c,Cda:JSON.stringify(d)});b.keySystemAccess=c;if(TN(b)){c=IE();d=g.w(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.w(c.audioCapabilities),e=d.next();!e.done;e=d.next())VIa(a,b,e.value);if(c.videoCapabilities)for(c=g.w(c.videoCapabilities),d=c.next();!d.done;d=c.next())VIa(a,b,d.value)}a.D.push(b); +a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&WN(b)?(a.B.shift(),eO(a)):a.callback(a.D)}}; +VIa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0}; +TIa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&VN(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];TN(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.w(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!== +"widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.KE&&g.is("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),g.hO(a.Da)==="MWEB"&&(vs()||js())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; +RIa=function(a){if(RN()&&(g.Rt||qs&&a.L("html5_drm_support_ios_mweb")))a.D.push(new QN("fairplay","com.apple.fps.1_0","",a.Da.experiments));else{var b=WIa(),c=g.Kb(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h}); +c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)}; +WIa=function(){var a=RN();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=IE(); +return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}}; +XIa=function(a){this.experiments=a;this.C=0;this.K=(this.D=this.experiments.kb("html5_consider_end_stall"))&&iO;this.B=this.experiments.kb("html5_measure_max_progress_handling");this.G=this.L("html5_treat_requests_pre_elbow_as_metadata");this.j=this.L("html5_use_media_for_elbow")}; +YIa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=vr(b||"","&");a={};b=g.w(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a}; +g.AC=function(a,b){return Number(a.flags[b])||0}; +jO=function(a,b){return(a=a.flags[b])?a.toString():""}; +ZIa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]}; +$Ia=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.x(a.experimentIds)).map(function(d){return Number(d)}); +b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()}); +a.j.unshift("v1");return a.j}; +bJa=function(a){return aJa.then(a)}; +kO=function(a,b,c){this.experiments=a;this.Fa=b;this.Ga=c===void 0?!1:c;this.Z=!!g.La("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.j=new Map;this.qa=this.experiments.kb("html5_disable_vp9_encrypted");this.Ba=g.AC(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.La("cast.receiver.platform.getValue");this.ra=g.AC(this.experiments,"html5_kaios_max_resolution");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null}; +yDa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Le()&&ls()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(ZE(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(GL(a,HL.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(d==="338"&&!(g.KE?Fp(53):g.YN&&Fp(64)))return"dopus"; +var f;if(a.Ba&&!g.is("ps4 pro")&&ns()&&ZE(b)&&((f=b.video)==null?void 0:f.height)>a.Ba)return"pavert";var h;if(a.ra&&lO&&((h=b.video)==null?void 0:h.j)>a.ra)return"kaios";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[HL.WIDTH.name]=b.video.width),b.video.height&&(c[HL.HEIGHT.name]=b.video.height),b.video.fps&&(c[HL.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[HL.EOTF.name]=b.video.B),b.ub&&(c[HL.BITRATE.name]=b.ub*8*f),b.rb==="("&&(c[HL.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType=== +"EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[HL.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[HL.CHANNELS.name]=b.audio.numChannels);a.D&&XE(b)&&(c[HL.EXPERIMENTAL.name]="allowed");f=g.w(Object.keys(HL));for(h=f.next();!h.done;h=f.next())if(h=HL[h.value],c[h.name]&&!(h===HL.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.kb("html5_ignore_h264_framerate_cap")&&h===HL.FRAMERATE&&Cwa(b)))if(GL(a,h))if(a.G){if(a.G[h.name]< +c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(YE(b)&&h===HL.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.me&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"}; +mO=function(){var a=js()&&!Fp(29),b=g.is("google tv")&&g.is("chrome")&&!Fp(30);return a||b?!1:Hwa()}; +cJa=function(a,b,c){var d=480;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&yDa(a,e,c)===!0&&(d=f)}return d}; +g.nO=function(a,b){b=b===void 0?!1:b;return mO()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(IE(),"application/x-mpegURL")?!0:!1}; +eJa=function(a){dJa(function(){for(var b=g.w(Object.keys(HL)),c=b.next();!c.done;c=b.next())GL(a,HL[c.value])})}; +GL=function(a,b){b.name in a.N||(a.N[b.name]=fJa(a,b));return a.N[b.name]}; +fJa=function(a,b){if(a.G)return!!a.G[b.name];if(b===HL.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===HL.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.zo);if(b.video){var c='video/webm; codecs="vp9"';a.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', +a.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return a.isTypeSupported(c+"; "+b.name+"="+b.valid)&&!a.isTypeSupported(c+"; "+b.name+"="+b.zo)}; +gJa=function(a){a.D||(a.D=!0,a.B=!0)}; +hJa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).y8);a.C.set(b,{y8:c+1,N1:Math.pow(2,c+1)});a.B=!0}; +CL=function(a){for(var b=[],c=g.w(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")}; +qDa=function(a,b){for(var c=new Map,d=g.w(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c}; +sDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,rb:b,Gh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;GL(a,HL.BITRATE)&&(h.maxBitrateBps=c.ub*8);h.JF=l==null?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,rb:b,Gh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth|| +0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,JF:c.JF},GL(a,HL.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)}; +tDa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,rb:b,Gh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,GL(a,HL.BITRATE)&&(b.maxBitrateBps=c.ub* +8),b.JF=f==null?void 0:f.isHdr()),a.j.set(d,b))}; +oO=function(){g.Fx.call(this);this.items={}}; +pO=function(){g.PJ.apply(this,arguments)}; +qO=function(){g.QJ.apply(this,arguments)}; +iJa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)}; +jJa=function(a){a.B||(a.B=new pO(a.j));return a.B}; +rO=function(a){try{return Ve(a)}catch(b){return null}}; +kJa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?rO(b.clientKey):null;var c=b.encryptedClientKey?rO(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.Zt)():null;a&&c&&d&&(this.j=new iJa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=rO(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; +sO=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)}; +tO=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.xl=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a0)b=a.byterate,this.Z=!0;else if(this.policy.Z){var d;c=(((d=navigator.connection)== +null?void 0:d.downlink)||0)*65536;c>0&&(b=c,this.Z=!0)}this.B.zm(this.policy.K,b);a.delay>0&&this.N.zm(1,Math.min(a.delay,2));a.stall>0&&this.G.zm(1,a.stall);a.init>0&&(this.Fa=Math.min(a.init,this.Fa));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Y=(0,g.Zt)();this.policy.N>0&&(this.Ga=new g.fp(this.Va,this.policy.N,this),g.P(this,this.Ga),this.Ga.start())}; +vO=function(a,b,c,d){a.B.zm(d===void 0?b:d,c/b);a.D=(0,g.Zt)()}; +mJa=function(a){a.C||(a.C=(0,g.Zt)());a.policy.qa&&(a.D=(0,g.Zt)())}; +nJa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e}); +d.length>16&&d.pop()}a.ra+=c}a.C=b}; +wO=function(a,b,c){a.N.zm(1,b);a.Ka.zm(1,c)}; +xO=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Ba.zm(b,c/b);a.D=(0,g.Zt)();e||a.K.zm(1,b-d);f||(a.C=0);a.Y>-1&&(0,g.Zt)()-a.Y>3E4&&oJa(a)}; +yO=function(a,b,c){b=Math.max(b,2048);a.G.zm(1,c/b)}; +zO=function(a){a=a.N.fh()+a.Ka.fh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)}; +AO=function(a,b,c){isNaN(c)||(a.qa+=c);isNaN(b)||(a.Ma+=b)}; +BO=function(a){a=a.B.fh();return a>0?a:1}; +CO=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=BO(a);d=1/((a.G.fh()||0)*a.policy.ra+1/d);var e=a.Ba.fh();e=e>0?e:1;var f=Math.max(d,e);a.policy.G>0&&(f=Math.min(a.policy.G,1),f=(1-f)*d+f*e);if(!b)return f;b=1E-9+zO(a);c=f*Math.min(1,c/(f*b));a.policy.C||(a=((a.K.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c}; +pJa=function(a){var b={delay:zO(a),stall:a.G.fh()||0,byterate:BO(a),init:a.Fa},c=a.j[0];c.stamp=Math.round(a.D/36E5)*36E5;c.net=Math.ceil(a.ra);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b}; +oJa=function(a){g.bt("yt-player-bandwidth",pJa(a),2592E3);a.Y=(0,g.Zt)();a.Z=!0}; +DO=function(a){return(0,g.Zt)()-a.D>=4E3}; +qJa=function(a,b){b.Vs=a.qa;b.Fv=a.Ma;b.bandwidthEstimate=CO(a);b.j={ttr:(a.N.fh()*1E3).toFixed(),ttm:(a.Ka.fh()*1E3).toFixed(),d:zO(a).toFixed(2),st:((a.G.fh()||0)*1E9).toFixed(2),bw:a.B.fh().toFixed(0),abw:a.Ba.fh().toFixed(0),v50:a.K.percentile(.5).toFixed(2),v92:a.K.percentile(.92).toFixed(2),v96:a.K.percentile(.96).toFixed(2),v98:a.K.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.ra);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")}; +rJa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.Z=this.experiments.kb("html5_default_bandwidth_from_browser");this.K=.5;this.C=this.D=!1;this.G=g.AC(this.experiments,"html5_auxiliary_estimate_weight");this.ra=g.AC(this.experiments,"html5_stall_factor")||1;this.N=g.AC(this.experiments,"html5_check_for_idle_network_interval_ms");this.Y=this.experiments.kb("html5_trigger_loader_when_idle_network");this.qa=this.experiments.kb("html5_sabr_fetch_on_idle_network_preloaded_players")}; +tJa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.O.call(this);var c=this;this.values=a;this.Pr=b;this.B={};this.C=this.j=0;this.D=new g.fp(function(){sJa(c)},1E4); +g.P(this,this.D)}; +EO=function(a,b){uJa(a,b);return a.values[b]&&a.Pr[b]?a.values[b]/Math.pow(2,a.j/a.Pr[b]):0}; +uJa=function(a,b){a.values[b]||(b=XBa(),a.values=b.values||{},a.Pr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})}; +sJa=function(a){var b=XBa();if(b.values){b=b.values;for(var c={},d=g.w(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=EO(a,e);a.B=c}b=a.Pr;c={};c.values=a.B;c.halfLives=b;g.bt("yt-player-memory",c,2592E3)}; +WO=function(a,b,c,d,e){g.O.call(this);this.webPlayerContextConfig=b;this.fm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Fj=this.ze=this.fb=this.Bj=this.userDisplayName=this.userDisplayImage=this.Wi="";this.j={};this.Ob={};this.controlsType="0";this.Zd=NaN;this.ob=!1;this.Sf=(0,g.Zt)();this.Kb=0;this.hm=this.wp=!1;this.Bn=!0;this.preferGapless=this.Yl=this.Rf=this.C=this.Zl=this.Qf=!1;this.wh=[];this.tm=!0;this.Tf=!1;a=a?g.Fc(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType); +b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new YIa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Bs("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:Bs("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(Q){f=""}this.kf=f;this.ancestorOrigins= +(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=ys(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.j.capsv=""+d.androidPlayServicesVersion),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion|| +"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),d.platform&&(this.j.cplatform=d.platform),f=jO(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Ob.cchip=d.chipset),d.cobaltAppVersion&&(this.Ob.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Ob.cfrmver= +d.firmwareVersion),d.deviceYear&&(this.Ob.crqyear=d.deviceYear)}else this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||vJa(this)&&b.loaderUrl?b.loaderUrl||"":this.kf:this.D||vJa(this)&&a.loaderUrl?Bs("",a.loaderUrl):this.kf;this.D&&g.Ka("yt.embedded_player.embed_url",this.loaderUrl);this.N=kD(this.loaderUrl,wJa);d=this.loaderUrl;var h=h===void 0?!1:h;this.hq=jD(kD(d,xJa),d,h,"Trusted Ad Domain URL");this.yc=ys(!1,a.privembed);this.protocol=this.kf.indexOf("http:")=== +0?"http":"https";this.Fa=lD((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||lD(this.kf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=zs(d,h,yJa):h&&(d="embedded");this.Ma=d;vqa();h=null;d=b?b.playerStyle:a.ps;f=g.Mb(zJa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.K=g.Mb(zJa,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.ra=this.K&&this.playerStyle!=="play"&& +this.playerStyle!=="jamboard";this.Zp=!this.ra;this.Ra=ys(!1,a.disableplaybackui);this.disablePaidContentOverlay=ys(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=ys(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(IE().defaultPlaybackRate?FO||g.us||lO?g.YN&&Fp("20")||g.KE&&Fp("4")||g.GO&&Fp("11")||ps():!(g.GO&&!g.is("chrome")||FO||g.is("android")||g.is("silk")):!1);this.yp=ys(!1,a.enable_faster_speeds);this.B=ys(this.playerStyle=== +"blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=ts()||vs();this.Pp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Va=NE();this.Fq=g.HO;var l;this.nm=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.zp=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Bp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.zn=g.IO(this)&&!this.nm|| +ys(!JO(this)&&!KO(this)&&!this.K,n);this.pm=b?!!b.mobileIphoneSupportsInlinePlayback:ys(!1,a.playsinline);l=this.B&&LO&&MO!=null&&MO>0&&MO<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.IO(this)&&this.B;n=this.B&&!this.Z;m=g.NO(this)||!l&&ys(n,m)?"3":"1";this.disableOrganicUi=!(b==null||!b.disableOrganicUi);n=b?b.controlsType:a.controls;this.controlsType=this.disableOrganicUi?"0":n!=="0"&&n!==0?m:"0";this.Zj=this.B;this.color=zs("red",b?b.progressBarColor:a.color,AJa);this.lq=this.controlsType=== +"3";this.wc=!this.D;this.An=(m=!this.wc&&!KO(this)&&!this.ra&&!this.K&&!JO(this))&&!this.lq&&this.controlsType==="1";this.Fd=g.OO(this)&&m&&this.controlsType==="0"&&!this.An&&!(b==null?0:b.embedsEnableEmc3ds);this.Zq=this.yq=l;this.Wc=(this.controlsType==="3"||this.B||ys(!1,a.use_media_volume))&&!this.Z;this.Cn=qs&&!g.kc(601)?!1:!0;this.Cp=this.D||!1;this.Rc=KO(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Bs("",b?b.widgetReferrer:a.widget_referrer);var p; +b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||ys(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Mj=this.L("enable_cast_for_web_unplugged")&&g.PO(this)&&l||g.hz(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(KO(this)||g.OO(this)||g.QO(this));this.Wq=!!window.document.pictureInPictureEnabled||ME();p=b?!!b.supportsAutoplayOverride:ys(!1,a.autoplayoverride);this.Fi=!(this.B&&!g.IO(this))&&!g.is("nintendo wiiu")||p;this.Ui=(b?!!b.enableMutedAutoplay:ys(!1,a.mutedautoplay))&&!1;p=(KO(this)|| +JO(this))&&this.playerStyle==="blazer";this.Vk=b?!!b.disableFullscreen:!ys(!0,a.fs);l=g.Fs(g.RO(this))&&g.IO(this);this.Ab=!this.Vk&&(p||g.Ms())&&!l;this.Xl=this.L("uniplayer_block_pip")&&(js()&&Fp(58)&&!vs()||ru);p=g.IO(this)&&!this.nm;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Ed=p||ys(!this.K,q);this.yn=ys(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=vs()&&MO>0&&MO<=4.4?"_top":"_blank";this.Ig=g.QO(this);this.Yj=ys(this.playerStyle==="blazer",b? +b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.qa=q;this.Ba=Bs("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.IO(this)&& +(this.yc||!ina()||this.Wa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Ie=((q=!this.Tb)||!!this.Ba&&q)&&ys(!this.ra,this.N?r:void 0);this.jf=b?b.isMobileDevice||!!b.disableKeyboardControls:ys(!1,a.disablekb);this.loop=ys(!1,a.loop);this.pageId=Bs("",b?b.initialDelegatedSessionId:a.pageid);this.Tq=ys(!0,a.canplaylive);this.yb=ys(!1,a.livemonitor);this.disableSharing=ys(this.K,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")? +b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Id(r,q))):r=null;this.Dn=r;this.mute=b?!!b.startMuted:ys(!1,a.mute);this.storeUserVolume=!this.mute&&ys(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:zs(void 0,r,SO);this.captionsLanguagePreference=b?b.captionsLanguagePreference|| +"":Bs("",a.cc_lang_pref);r=zs(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,SO);this.controlsType==="3"&&r===2&&(r=3);this.Jb=r;this.zj=b?b.hl||"en_US":Bs("en_US",a.hl);this.region=b?b.contentRegion||"US":Bs("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Bs("en",a.host_language);this.xp=!this.yc&&Math.random()=480;this.schedule=new uO(q,new XIa(this.experiments),e);g.P(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:ys(!1,a.enable_safety_mode);e=this.Ra?!1:KO(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav): +u=a.allow_autonav;this.ge=ys(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:ys(!1,a.send_visitor_id_header);var y;this.playerStyle==="docs"&&(b?y=b.disableNativeContextMenu:y=a.disable_native_context_menu);this.disableNativeContextMenu=ys(!1,y);this.Ap=NC(this)&&this.L("enable_skip_intro_button");this.embedConfig=Bs("",b?b.serializedEmbedConfig:a.embed_config);this.Ga=Es(a,g.IO(this));this.C=this.Ga==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks); +this.Xk=ys(!1,a.full_window);var A;this.Ya=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var D;this.livingRoomAppMode=zs("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(b==null?void 0:(D=b.device)==null?void 0:D.livingRoomAppMode),DJa);var F;u=As(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:ys(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:ys(!1, +a.show_miniplayer_button);var H;g.IO(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:ys(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:ys(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var M;this.Bn=(M=a.show_loop_video_toggle)!=null?M:!0;this.iq=Math.random()<1E-4;this.al=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)? +new kJa(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0:b.canaryStage;this.Pf=new tJa;g.P(this,this.Pf);this.Zl=ys(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.pr("DATASYNC_ID");this.gm=g.pr("LOGGED_IN",!1);this.Ej=(b==null?void 0:b.allowWoffleManagement)||!1;this.bl=Infinity;this.fl=NaN;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")? +this.Rf=!0:this.Rf=Math.random()*100=0&&a0&&a.iq&&(d.sort(),g.fx(new g.pt("Player client parameters changed after startup",d)));a.userAge=As(a.userAge,b.user_age);a.Wi=Bs(a.Wi,b.user_display_email);a.userDisplayImage=Bs(a.userDisplayImage,b.user_display_image);g.nD(a.userDisplayImage)||(a.userDisplayImage= +"");a.userDisplayName=Bs(a.userDisplayName,b.user_display_name);a.Bj=Bs(a.Bj,b.user_gender);a.csiPageType=Bs(a.csiPageType,b.csi_page_type);a.csiServiceName=Bs(a.csiServiceName,b.csi_service_name);a.Yj=ys(a.Yj,b.enablecsi);a.pageId=Bs(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Uf=b.living_room_session_po_token.toString())}; +XO=function(a,b){return!a.K&&js()&&Fp(55)&&a.controlsType==="3"&&!b}; +g.YO=function(a){a=TO(a.Fa);return a==="www.youtube-nocookie.com"?"www.youtube.com":a}; +ZO=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")}; +$O=function(a){return KO(a)&&!g.PO(a)}; +g.NO=function(a){return a.L("html5_local_playsinline")?qs&&!g.kc(602)&&!("playsInline"in IE()):qs&&!a.pm||g.is("nintendo wiiu")?!0:!1}; +g.hO=function(a){return a.j.c}; +g.OC=function(a){return/^TVHTML5/.test(g.hO(a))}; +vJa=function(a){return g.hO(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +CJa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"}; +g.aP=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +NC=function(a){return/web/i.test(g.hO(a))}; +g.bP=function(a){return g.hO(a).toUpperCase()==="WEB"}; +VO=function(a){return g.hO(a)==="WEB_KIDS"}; +g.PO=function(a){return g.hO(a)==="WEB_UNPLUGGED"}; +cP=function(a){return g.hO(a)==="TVHTML5_UNPLUGGED"}; +g.MC=function(a){return g.PO(a)||g.hO(a)==="TV_UNPLUGGED_CAST"||cP(a)}; +g.hz=function(a){return g.hO(a)==="WEB_REMIX"}; +g.dP=function(a){return g.hO(a)==="WEB_EMBEDDED_PLAYER"}; +g.fP=function(a){return(a.deviceIsAudioOnly||!g.KE||ru||a.controlsType==="3"?!1:g.us?a.D&&g.kc(51):!0)||(a.deviceIsAudioOnly||!g.YN||ru||a.controlsType==="3"?!1:g.us?a.D&&g.kc(48):g.kc(38))||(a.deviceIsAudioOnly||!g.GO||ru||a.controlsType==="3"?!1:g.us?a.D&&g.kc(37):g.kc(27))||!a.deviceIsAudioOnly&&g.eP&&!nna()&&g.kc(11)||!a.deviceIsAudioOnly&&g.Rt&&g.kc("604.4")}; +GJa=function(a){if(g.OO(a)&&LO)return!1;if(g.YN){if(!g.kc(47)||!g.kc(52)&&g.kc(51))return!1}else if(g.Rt)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +gP=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.OC(a)}; +IJa=function(a,b){return a.enabledEngageTypes.has(b.toString())||HJa.includes(b)}; +KO=function(a){return a.Ma==="detailpage"}; +g.OO=function(a){return a.Ma==="embedded"}; +hP=function(a){return a.Ma==="leanback"}; +JO=function(a){return a.Ma==="adunit"||a.playerStyle==="gvn"}; +g.QO=function(a){return a.Ma==="profilepage"}; +g.IO=function(a){return a.D&&g.OO(a)&&!JO(a)&&!a.K}; +iP=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.fx(new g.pt("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage}; +g.jP=function(a){var b=g.YO(a);JJa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b}; +g.kP=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.fm){var c=new FF,d,e=a.fm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.fx(new g.pt("b189348328_oauth_callback_failed",{error:f})); +c.resolve(b)}); +return d!==void 0?as(d):new Zr(c)}return as(b)}; +TO=function(a){var b=g.Ni(a);return(a=Number(g.Mi(4,a))||null)?b+":"+a:b}; +lP=function(a,b){b=b===void 0?!1:b;var c=VE[a],d=KJa[c],e=LJa[a];if(!e||!d)return null;b=new SE(b?e.height:e.width,b?e.width:e.height,e.fps);d=yN(d,b,c);return new WE(a,d,{video:b,ub:e.bitrate/8})}; +NJa=function(a){var b=KJa[VE[a]],c=MJa[a];return c&&b?new WE(a,b,{audio:new PE(c.audioSampleRate,c.numChannels)}):null}; +mP=function(a){this.j=a}; +nP=function(a,b,c,d){if(c)return $r();c={};var e=IE();b=g.w(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Le())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.w(TE);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?as(a):$r()}; +OJa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""}; +PJa=function(a,b){a.C.some(function(c){var d;return((d=c.dc)==null?void 0:d.getId())===b}); +a.j=b}; +oP=function(a,b,c){a.cpn&&(b=g.Ti(b,{cpn:a.cpn}));c&&(b=g.Ti(b,{paired:c}));return b}; +QJa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a}; +RJa=function(a){for(var b=[],c=[],d=g.w(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate}); +c.sort(function(f,h){return f.bitrate-h.bitrate}); +a.B=b.concat(c)}; +SJa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=((b=a.audioItag)==null?void 0:b.split(","))||[];this.LC=a.LC;this.me=a.me||"";this.dc=a.dc;this.audioChannels=a.audioChannels;this.j=""}; +TJa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.w(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/); +m=m?m[1]:"";f.audio_track_id&&(h=new g.sN(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new SJa({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,LC:n?l[n]:void 0,me:f.drm_families,dc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e}; +pP=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null}; +UJa=function(a,b){if(!(ru||os()||ls()))return null;a=TJa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.dc&&(f=h.dc.getId(),c[f]||(h=new g.nL(f,h.dc),c[f]=h,b.push(h)))}}return b.length>0?b:null}; +ZJa=function(a,b,c,d,e,f,h){if(!(ru||os()||ls()))return $r();var l={},m=VJa(c),n=TJa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),$r();WJa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new SJa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,dc:new g.sN("English","en",!1)}):null;for(var A=g.w(Object.keys(n)),D=A.next();!D.done;D=A.next())if(D=D.value,!a.L("html5_disable_drm_hfr_1080")|| +D!=="383"&&D!=="373"){D=g.w(n[D]);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.width){for(var H=g.w(F.B),M=H.next();!M.done;M=H.next())if(M=M.value,n[M]){F.j=M;break}F.j||(F.j=XJa(n,F));if(H=n[F.j])if(c.push(F),F.me==="fairplay"&&(q=p),M="",F.LC==="PQ"?M="smpte2084":F.LC==="HLG"&&(M="arib-std-b67"),M&&(y=M),t.push(YJa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,M)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[D]="disdrmhfr";t.reduce(function(N, +Q){return Q.getInfo().isEncrypted()&&N},!0)&&(q=p); +e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(YJa(r,c,d,f,"93",u,p,n,m,"auto",e,q,y,A));Object.entries(l).length&&h(l);return nP(a.G,t,XO(a,b),!1)}; +YJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,y="",A=g.w(a),D=A.next();!D.done;D=A.next())D=D.value,y||(y=D.itag),D.audioChannels&&D.audioChannels>u&&(u=D.audioChannels,y=D.itag);e=new WE(e,"application/x-mpegURL",{audio:new PE(0,u),video:new SE(f,h,l,null,void 0,n,void 0,r),me:q,M_:y});a=new OJa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new pP(e,a,m)}; +VJa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; +XJa=function(a,b){for(var c=g.w(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.me===b.me&&!e.audioChannels)return d}return""}; +WJa=function(a){for(var b=new Set,c=g.w(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.w(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.w(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]}; +qP=function(a,b){this.j=a;this.B=b}; +$Ja=function(a,b,c,d){var e=[];c=g.w(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.IL(h.url,!0);if(h.s){var l=f,m=h.sp,n=SBa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.w(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=iF(h.type,h.quality,h.itag,h.width,h.height);e.push(new qP(h,f))}}return nP(a.G,e,XO(a,b),!1)}; +rP=function(a,b){this.j=a;this.B=b}; +aKa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=iF(e.type,"medium","0");d.push(new rP(f,e.url))}return nP(a.G,d,XO(a,b),!1)}; +bKa=function(a,b){var c=[],d=iF(b.type,"auto",b.itag);c.push(new rP(d,b.url));return nP(a.G,c,!1,!0)}; +dKa=function(a){return a&&cKa[a]?cKa[a]:null}; +eKa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.mp=rO(a.ustreamerConfig)||void 0)}; +fKa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.vS=new eKa(b)}; +g.sP=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""}; +g.uP=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.tP(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b}; +g.vP=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode}; +g.gKa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.vP(a));return b}; +g.tP=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&b.push(" (Automatic Captions)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")}; +kKa=function(a,b,c,d){a||(a=b&&hKa.hasOwnProperty(b)&&iKa.hasOwnProperty(b)?iKa[b]+"_"+hKa[b]:void 0);b=a;if(!b)return null;a=b.match(jKa);if(!a||a.length!==5)return null;if(a=b.match(jKa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null}; +wP=function(a,b){for(var c={},d=g.w(Object.keys(lKa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.nD(f)&&(c[lKa[e]]=f)}return c}; +xP=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url}); +a.sort(function(l,m){return l.width-m.width||l.height-m.height}); +for(var c=g.w(Object.keys(mKa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=mKa[e];for(var f=g.w(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=nKa(h.url);g.nD(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=nKa(a.url),g.nD(a)&&(b["maxresdefault.jpg"]=a));return b}; +nKa=function(a){return a.startsWith("//")?"https:"+a:a}; +yP=function(a){return a&&a.baseUrl||""}; +zP=function(a){a=g.zr(a);for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a}; +oKa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.wr=b)}; +rKa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.R(h,pKa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.R(h,qKa))return Object.assign({is_yto_interstitial:!0},xr(h))}); +d=g.w(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,ip:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,ip: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, +ip:f===0?5:7})}}}; +sKa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer}; +tKa=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)}; +uKa=function(a,b){b!=null?(a.Rp=b,a.Ff=!0):(a.Rp="",a.Ff=!1)}; +AP=function(a,b){this.type=a||"";this.id=b||""}; +g.BP=function(a){return new AP(a.substr(0,2),a.substr(2))}; +g.CP=function(a,b){this.Da=a;this.author="";this.OE=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=vr(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=wP(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new AP("UU","PLAYER_"+c)).toString();break;default:if(a= +b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.BP(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; +g.DP=function(a,b){this.Da=a;this.Ct=this.author="";this.OE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Mx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Ct=b.Ct||"";if(a=b.endscreen_autoplay_session_data)this.OE=vr(a,"&");this.PE=b.PE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText= +b.lengthText||"";this.Mx=b.Mx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=vr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=wP(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; +vKa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a}; +g.FP=function(a){var b,c,d;a=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,EP);return g.R(a==null?void 0:a.playerBar,wKa)}; +xKa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url}; +yKa=function(){if(GP===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Qp(g.qt()+"::yt-player"))){GP=new kz(a);break a}GP=void 0}}return GP}; +g.HP=function(){var a=yKa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}}; +g.zKa=function(a){var b=yKa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))}; +g.IP=function(a){return g.HP()[a]||0}; +g.JP=function(a,b){var c=g.HP();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.zKa(c))}; +g.KP=function(a){return g.J(function(b){return b.return(g.ou(AKa(),a))})}; +MP=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return m=g.IP(a),m===4?u.return(4):g.G(u,g.xu(),2);case 2:n=u.B;if(!n)throw g.Tt("wiac");if(!l||h===void 0){u.Ha(3);break}return g.G(u,BKa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.KP(n),5);case 5:return q=u.B,g.va(u,6),LP++,g.G(u,g.cu(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(y){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10, +"0");A=g.du(y.objectStore("media"),h,A)}else A=g.Vt.resolve(void 0);var D=CKa(a,b.zg()),F=CKa(a,!b.zg()),H={fmts:DKa(d),format:c||{}};D=g.du(y.objectStore("index"),H,D);var M=d.downloadedEndTime===-1;H=M?y.objectStore("index").get(F):g.Vt.resolve(void 0);var N={fmts:"music",format:{}};y=M&&e&&!b.zg()?g.du(y.objectStore("index"),N,F):g.Vt.resolve(void 0);return g.Vt.all([y,H,A,D]).then(function(Q){Q=g.w(Q);Q.next();Q=Q.next().value;LP--;var Z=g.IP(a);if(Z!==4&&M&&e||Q!==void 0&&g.EKa(Q.fmts))Z=1,g.JP(a, +Z);return Z})}),8); +case 8:return u.return(u.B);case 6:r=g.xa(u);LP--;t=g.IP(a);if(t===4)return u.return(t);g.JP(a,4);throw r;}})}; +g.FKa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,g.xu(),2);if(d.j!=3){b=d.B;if(!b)throw g.Tt("ri");return g.G(d,g.KP(b),3)}c=d.B;return d.return(g.cu(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})}; +HKa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){if(m.j==1)return g.G(m,g.xu(),2);if(m.j!=3){f=m.B;if(!f)throw g.Tt("rc");return g.G(m,g.KP(f),3)}h=m.B;l=g.cu(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)}); +return e?m.return(l.then(function(n){if(n===void 0)throw Error("No data from indexDb");return GKa(e,n)}).catch(function(n){throw new g.pt("Error while reading chunk: "+n.name+", "+n.message); +})):m.return(l)})}; +g.EKa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1}; +CKa=function(a,b){return""+a+"|"+(b?"v":"a")}; +DKa=function(a){var b={};return wr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))}; +JKa=function(a){var b={},c={};a=g.w(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.IKa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.w(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(","); +return c}; +NP=function(a){g.Fx.call(this);this.j=null;this.C=new Tp;this.j=null;this.K=new Set;this.crossOrigin=a||""}; +KKa=function(a,b,c){for(c=OP(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(PP(d,b))&&(d=g.QP(d,b)))return d;c--}return g.QP(a.levels[0],b)}; +MKa=function(a,b,c){c=OP(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=PP(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{d_:f,L_:e}))}LKa(a)}; +LKa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=NKa(a,b)}}; +NKa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.d_].Ce(b.L_);c.onload=function(){var d=b.d_,e=b.L_;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);LKa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.WJ()-1);e=[e,d];a.publish("l",e[0],e[1])}; +return c}; +g.RP=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.signature=a[7];this.videoLength=d}; +PP=function(a,b){return Math.floor(b/(a.columns*a.rows))}; +g.QP=function(a,b){b>=a.IN()&&a.sz();var c=PP(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.sz()+1-d*c;if(f1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +OKa=function(a,b,c){return(a=a.levels[b])?a.KI(c):-1}; +OP=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1}; +TP=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.RP.call(this,a,b,c,0);this.B=null;this.G=d?2:0}; +UP=function(a,b,c,d){SP.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a1&&g.fx(new g.pt("There are more than one engaged_view_urls.")),a.Ej=vf.engagedViewUrls[0])}}var Ck=a.playerResponse.playerCueRanges;Ck&&Ck.length>0&&(a.cueRanges=Ck);var qq=a.playerResponse.playerCueRangeSet;qq&&g.aQ(a,qq);a:{var rq=a.playerResponse.adPlacements; +if(rq)for(var Wn=g.w(rq),Hi=Wn.next();!Hi.done;Hi=Wn.next()){var by=void 0,Az=void 0,OG=(by=Hi.value.adPlacementRenderer)==null?void 0:(Az=by.renderer)==null?void 0:Az.videoAdTrackingRenderer;if(OG){var PG=OG;break a}}PG=null}var QG=PG;ca&&ca.promotedPlaybackTracking&&QG&&g.fx(new g.pt("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));QG&&(a.o3=!0);var RG=a.playerResponse.playerAds;if(RG)for(var JR=b,SG=g.w(RG),Bz=SG.next();!Bz.done;Bz=SG.next()){var TG=Bz.value;if(TG){var UG= +TG.playerLegacyDesktopWatchAdsRenderer;if(UG){var Qo=UG.playerAdParams;if(Qo){Qo.autoplay=="1"&&(a.Pk=!0,a.Lq=!0);a.Sv=Qo.encodedAdSafetyReason||null;Qo.showContentThumbnail!==void 0&&(a.fm=!!Qo.showContentThumbnail);JR.enabled_engage_types=Qo.enabledEngageTypes;break}}}}var ne=a.playerResponse.playerConfig;if(ne){var Ro=ne.manifestlessWindowedLiveConfig;if(Ro){var Cz=Number(Ro.minDvrSequence),Dz=Number(Ro.maxDvrSequence),Ez=Number(Ro.minDvrMediaTimeMs),lr=Number(Ro.maxDvrMediaTimeMs),KR=Number(Ro.startWalltimeMs); +Cz&&(a.df=Cz);Ez&&(a.Ra=Ez/1E3);Dz&&(a.xi=Dz);lr&&(a.Tb=lr/1E3);KR&&(a.Rc=KR/1E3);(Cz||Ez)&&(Dz||lr)&&(a.Ka=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Wd=!1)}var vm=ne.daiConfig;if(vm){if(vm.enableDai){a.Ef=!0;var VG=vm.enableServerStitchedDai;VG&&(a.enableServerStitchedDai=VG);var WG=vm.enablePreroll;WG&&(a.enablePreroll=WG)}var Fz;if(vm.daiType==="DAI_TYPE_SS_DISABLED"||((Fz=vm.debugInfo)==null?0:Fz.isDisabledUnpluggedChannel))a.bE=!0;vm.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.GU=!0)}var Vk=ne.audioConfig; +if(Vk){var Mu=Vk.loudnessDb;Mu!=null&&(a.Hj=Mu);var XG=Vk.trackAbsoluteLoudnessLkfs;XG!=null&&(a.n2=XG);var LR=Vk.loudnessTargetLkfs;LR!=null&&(a.loudnessTargetLkfs=LR);Vk.audioMuted&&(a.al=!0);Vk.muteOnStart&&(a.OY=!0);var Nu=Vk.loudnessNormalizationConfig;if(Nu){Nu.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);Nu.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var mr=Nu.minimumLoudnessTargetLkfs;mr!=null&&(a.minimumLoudnessTargetLkfs=mr);var BEa=Nu.maxStatefulTimeThresholdSec; +BEa!=null&&(a.maxStatefulTimeThresholdSec=BEa)}}var p9=ne.playbackEndConfig;if(p9){var CEa=p9.endSeconds,DEa=p9.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(CEa&&(a.endSeconds=CEa),DEa&&(a.limitedPlaybackDurationInSeconds=DEa))}var MR=ne.fairPlayConfig;if(MR){var EEa=MR.certificate;EEa&&(a.fb=rO(EEa));var FEa=Number(MR.keyRotationPeriodMs);FEa>0&&(a.ww=FEa);var GEa=Number(MR.keyPrefetchMarginMs);GEa>0&&(a.uw=GEa)}var Gz=ne.playbackStartConfig;if(Gz){a.WC=Number(Gz.startSeconds);var HEa=Gz.liveUtcStartSeconds, +IEa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;HEa&&!IEa&&(a.liveUtcStartSeconds=Number(HEa));var q9=Gz.startPosition;if(q9){var JEa=q9.utcTimeMillis;JEa&&!IEa&&(a.liveUtcStartSeconds=Number(JEa)*.001);var KEa=q9.streamTimeMillis;KEa&&(a.ge=Number(KEa)*.001)}a.progressBarStartPosition=Gz.progressBarStartPosition;a.progressBarEndPosition=Gz.progressBarEndPosition}else{var r9=ne.skippableSegmentsConfig;if(r9){var LEa=r9.introSkipDurationMs;LEa&&(a.aE=Number(LEa)/1E3);var MEa=r9.outroSkipDurationMs; +MEa&&(a.TC=Number(MEa)/1E3)}}var s9=ne.skippableIntroConfig;if(s9){var NEa=Number(s9.startMs),OEa=Number(s9.endMs);isNaN(NEa)||isNaN(OEa)||(a.Bj=NEa,a.Qf=OEa)}var PEa=ne.streamSelectionConfig;PEa&&(a.Zd=Number(PEa.maxBitrate));var QEa=ne.vrConfig;QEa&&(a.QA=QEa.partialSpherical=="1");var YG=ne.webDrmConfig;if(YG){YG.skipWidevine&&(a.TX=!0);var REa=YG.widevineServiceCert;REa&&(a.pm=rO(REa));YG.useCobaltWidevine&&(a.useCobaltWidevine=!0);YG.startWithNoQualityConstraint&&(a.Yj=!0)}var So=ne.mediaCommonConfig; +if(So){var NR=So.dynamicReadaheadConfig;if(NR){a.maxReadAheadMediaTimeMs=NR.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=NR.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=NR.readAheadGrowthRateMs||NaN;var SEa,TEa=So==null?void 0:(SEa=So.mediaUstreamerRequestConfig)==null?void 0:SEa.videoPlaybackUstreamerConfig;TEa&&(a.Ei=rO(TEa));var t9=So==null?void 0:So.sabrContextUpdates;if(t9&&t9.length>0)for(var UEa=g.w(t9),u9=UEa.next();!u9.done;u9=UEa.next()){var Ou=u9.value;if(Ou.type&&Ou.value){var Ieb= +{type:Ou.type,scope:Ou.scope,value:rO(Ou.value)||void 0,sendByDefault:Ou.sendByDefault};a.sabrContextUpdates.set(Ou.type,Ieb)}}}var VEa=So.serverPlaybackStartConfig;VEa&&(a.serverPlaybackStartConfig=VEa);So.useServerDrivenAbr&&(a.SD=!0);var WEa=So.requestPipeliningConfig;WEa&&(a.requestPipeliningConfig=WEa)}var XEa=ne.inlinePlaybackConfig;XEa&&(a.z1=!!XEa.showAudioControls);var OR=ne.embeddedPlayerConfig;if(OR){a.embeddedPlayerConfig=OR;var v9=OR.embeddedPlayerMode;if(v9){var YEa=a.U();YEa.Ga=v9; +YEa.C=v9==="EMBEDDED_PLAYER_MODE_PFL"}var ZEa=OR.permissions;ZEa&&(a.allowImaMonetization=!!ZEa.allowImaMonetization)}var $Ea=ne.ssapConfig;$Ea&&(a.Q1=$Ea.ssapPrerollEnabled||!1);var PR=ne.webPlayerConfig;PR&&(PR.gatewayExperimentGroup&&(a.gatewayExperimentGroup=PR.gatewayExperimentGroup),PR.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Wk=a.playerResponse.streamingData;if(Wk){var aFa=Wk.adaptiveFormats;if(aFa){var bFa=Wk.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&bFa)for(var cFa= +g.w(aFa),w9=cFa.next();!w9.done;w9=cFa.next()){var QR=w9.value;!QR.url&&QR.distinctParams&&(QR.url=bFa+"&"+QR.distinctParams)}}var x9=Wk.formats;if(x9){for(var ZG=[],dFa=g.w(x9),y9=dFa.next();!y9.done;y9=dFa.next()){var z9=y9.value;ZG.push(z9.itag+"/"+z9.width+"x"+z9.height)}a.XD=ZG.join(",");ZG=[];for(var eFa=g.w(x9),A9=eFa.next();!A9.done;A9=eFa.next()){var $G=A9.value,aH={itag:$G.itag,type:$G.mimeType,quality:$G.quality},fFa=$G.url;fFa&&(aH.url=fFa);var RR=OL($G),Jeb=RR.rE,Keb=RR.PH,Leb=RR.s;RR.aZ&& +(aH.url=Jeb,aH.sp=Keb,aH.s=Leb);ZG.push(g.Si(aH))}a.Tf=ZG.join(",")}var B9=Wk.hlsFormats;if(B9){var gFa=ne||null,SR={};if(gFa){var C9=gFa.audioPairingConfig;if(C9&&C9.pairs)for(var hFa=g.w(C9.pairs),D9=hFa.next();!D9.done;D9=hFa.next()){var iFa=D9.value,E9=iFa.videoItag;SR[E9]||(SR[E9]=[]);SR[E9].push(iFa.audioItag)}}for(var jFa={},kFa=g.w(B9),F9=kFa.next();!F9.done;F9=kFa.next()){var lFa=F9.value;jFa[lFa.itag]=lFa.bitrate}for(var mFa=[],nFa=g.w(B9),G9=nFa.next();!G9.done;G9=nFa.next()){var bi=G9.value, +wm={itag:bi.itag,type:bi.mimeType,url:bi.url,bitrate:bi.bitrate,width:bi.width,height:bi.height,fps:bi.fps},TR=bi.audioTrack;if(TR){var oFa=TR.displayName;oFa&&(wm.name=oFa,wm.audio_track_id=TR.id,TR.audioIsDefault&&(wm.is_default="1"))}if(bi.drmFamilies){for(var pFa=[],qFa=g.w(bi.drmFamilies),H9=qFa.next();!H9.done;H9=qFa.next())pFa.push(zN[H9.value]);wm.drm_families=pFa.join(",")}var UR=SR[bi.itag];if(UR&&UR.length){wm.audio_itag=UR.join(",");var rFa=jFa[UR[0]];rFa&&(wm.bitrate+=rFa)}var sFa=VHa(bi); +sFa&&(wm.eotf=sFa);bi.audioChannels&&(wm.audio_channels=bi.audioChannels);mFa.push(g.Si(wm))}a.hlsFormats=mFa.join(",")}var I9=Wk.licenseInfos;if(I9&&I9.length>0){for(var tFa={},uFa=g.w(I9),J9=uFa.next();!J9.done;J9=uFa.next()){var vFa=J9.value,wFa=vFa.drmFamily,xFa=vFa.url;wFa&&xFa&&(tFa[zN[wFa]]=xFa)}a.me=tFa}var yFa=Wk.drmParams;yFa&&(a.drmParams=yFa);var zFa=Wk.dashManifestUrl;zFa&&(a.Wc=g.Ti(zFa,{cpn:a.clientPlaybackNonce}));var AFa=Wk.hlsManifestUrl;AFa&&(a.hlsvp=AFa);var BFa=Wk.probeUrl;BFa&& +(a.probeUrl=oD(g.Ti(BFa,{cpn:a.clientPlaybackNonce})));var CFa=Wk.serverAbrStreamingUrl;CFa&&(a.Zl=new g.IL(CFa,!0))}var DFa=a.playerResponse.trackingParams;DFa&&(a.Ma=DFa);var cd=a.playerResponse.videoDetails;if(cd){var xm=b,K9=cd.videoId;K9&&(a.videoId=K9,xm.video_id||(xm.video_id=K9));var EFa=cd.channelId;EFa&&(a.N.uid=EFa.substr(2));var L9=cd.title;L9&&(a.title=L9,xm.title||(xm.title=L9));var M9=cd.lengthSeconds;M9&&(a.lengthSeconds=Number(M9),xm.length_seconds||(xm.length_seconds=M9));var FFa= +cd.keywords;FFa&&(a.keywords=WKa(FFa));var N9=cd.channelId;N9&&(a.Wl=N9,xm.ucid||(xm.ucid=N9));var GFa=cd.viewCount;GFa&&(a.rawViewCount=Number(GFa));var O9=cd.author;O9&&(a.author=O9,xm.author||(xm.author=O9));var HFa=cd.shortDescription;HFa&&(a.shortDescription=HFa);var IFa=cd.isCrawlable;IFa&&(a.isListed=IFa);var JFa=cd.musicVideoType;JFa&&(a.musicVideoType=JFa);var P9=cd.isLive;P9!=null&&(a.isLivePlayback=P9);if(P9||cd.isUpcoming)a.isPremiere=!cd.isLiveContent;var KFa=cd.thumbnail;KFa&&(a.Z=xP(KFa)); +var LFa=cd.isExternallyHostedPodcast;LFa&&(a.isExternallyHostedPodcast=LFa);var Q9=cd.viewerLivestreamJoinPosition;if(Q9==null?0:Q9.utcTimeMillis)a.NC=Wd(Q9.utcTimeMillis);var MFa=ne||null,R9=b;cd.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);cd.isUpcoming&&(a.isUpcoming=!0);if(cd.isPostLiveDvr){a.Wd=!0;var NFa=cd.latencyClass;NFa&&(a.latencyClass=dLa[NFa]||"UNKNOWN");cd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var S9=!1;if(a.yb)a.allowLiveDvr=mO()?!0:rs&&bQ<5?!1:!0,a.isLivePlayback= +!0;else if(cd.isLive){R9.livestream="1";a.allowLiveDvr=cd.isLiveDvrEnabled?mO()?!0:rs&&bQ<5?!1:!0:!1;a.Va=27;cd.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var PFa=cd.latencyClass;PFa&&(a.latencyClass=dLa[PFa]||"UNKNOWN");var QFa=cd.liveChunkReadahead;QFa&&(a.liveChunkReadahead=QFa);var Hz=MFa&&MFa.livePlayerConfig;if(Hz){Hz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Hz.hasSubfragmentedWebm&&(a.BF=!0);Hz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var RFa=Hz.liveExperimentalContentId; +RFa&&(a.liveExperimentalContentId=Number(RFa));var SFa=Hz.isLiveHeadPlayable;a.L("html5_live_head_playable")&&SFa!=null&&(a.isLiveHeadPlayable=SFa)}S9=!0}else cd.isUpcoming&&(S9=!0);S9&&(a.isLivePlayback=!0,R9.adformat&&R9.adformat.split("_")[1]!=="8"||a.Ga.push("heartbeat"),a.Tq=!0)}var TFa=cd.isPrivate;TFa!==void 0&&(a.isPrivate=ys(a.isPrivate,TFa))}if(Y){var UFa=cd||null,VFa=!1,Iz=Y.errorScreen;VFa=Iz&&(Iz.playerLegacyDesktopYpcOfferRenderer||Iz.playerLegacyDesktopYpcTrailerRenderer||Iz.ypcTrailerRenderer)? +!0:UFa&&UFa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Y.status);if(!VFa){a.errorCode=dKa(Y.errorCode)||"auth";var VR=Iz&&Iz.playerErrorMessageRenderer;if(VR){a.playerErrorMessageRenderer=VR;var WFa=VR.reason;WFa&&(a.errorReason=g.Qx(WFa));var T9=VR.subreason;T9&&(a.Qn=g.Qx(T9),a.xw=T9)}else a.errorReason=Y.reason||null;var U9=Y.status;if(U9==="LOGIN_REQUIRED")a.errorDetail="1";else if(U9==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(U9==="AGE_CHECK_REQUIRED"){var XFa= +Y.errorScreen,YFa=XFa&&XFa.playerKavRenderer;a.errorDetail=YFa&&YFa.kavUrl?"4":"3"}else a.errorDetail=Y.isBlockedInRestrictedMode?"5":"0"}}var ZFa=a.playerResponse.interstitialPods;ZFa&&rKa(a,ZFa);a.Xa&&a.eventId&&(a.Xa=Br(a.Xa,{ei:a.eventId}));var V9=a.playerResponse.captions;if(V9&&V9.playerCaptionsTracklistRenderer)a:{var ym=V9.playerCaptionsTracklistRenderer;a.captionTracks=[];if(ym.captionTracks)for(var $Fa=g.w(ym.captionTracks),W9=$Fa.next();!W9.done;W9=$Fa.next()){var zm=W9.value,aGa=TKa(zm.baseUrl); +if(!aGa)break a;var X9={is_translateable:!!zm.isTranslatable,languageCode:zm.languageCode,languageName:zm.name&&g.Qx(zm.name),url:aGa,vss_id:zm.vssId,kind:zm.kind};X9.name=zm.trackName;X9.displayName=zm.name&&g.Qx(zm.name);a.captionTracks.push(new g.sP(X9))}a.FD=ym.audioTracks||[];a.e_=ym.defaultAudioTrackIndex||0;a.gw=[];if(ym.translationLanguages)for(var bGa=g.w(ym.translationLanguages),Y9=bGa.next();!Y9.done;Y9=bGa.next()){var Jz=Y9.value,Qu={};Qu.languageCode=Jz.languageCode;Qu.languageName=g.Qx(Jz.languageName); +if(Jz.translationSourceTrackIndices){Qu.translationSourceTrackIndices=[];for(var cGa=g.w(Jz.translationSourceTrackIndices),Z9=cGa.next();!Z9.done;Z9=cGa.next())Qu.translationSourceTrackIndices.push(Z9.value)}if(Jz.excludeAudioTrackIndices){Qu.excludeAudioTrackIndices=[];for(var dGa=g.w(Jz.excludeAudioTrackIndices),$9=dGa.next();!$9.done;$9=dGa.next())Qu.excludeAudioTrackIndices.push($9.value)}a.gw.push(Qu)}a.HD=[];if(ym.defaultTranslationSourceTrackIndices)for(var eGa=g.w(ym.defaultTranslationSourceTrackIndices), +a$=eGa.next();!a$.done;a$=eGa.next())a.HD.push(a$.value);a.ew=!!ym.contribute&&!!ym.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.WC=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&tKa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var fGa; +a.compositeLiveIngestionOffsetToken=(fGa=a.playerResponse.playbackTracking)==null?void 0:fGa.compositeLiveIngestionOffsetToken;var gGa;a.compositeLiveStatusToken=(gGa=a.playerResponse.playbackTracking)==null?void 0:gGa.compositeLiveStatusToken}ZP(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var hGa=b.hlsdvr;hGa!=null&&(a.allowLiveDvr=hGa=="1"?mO()?!0:rs&&bQ<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Sv||(a.Sv=b.encoded_ad_safety_reason||null);a.fX=b.agcid||null;a.cD=b.ad_id||null;a.gD=b.ad_sys|| +null;a.UD=b.encoded_ad_playback_context||null;a.al=ys(a.al,b.infringe||b.muted);a.vfa=b.authkey;a.lda=b.authuser;a.mutedAutoplay=ys(a.mutedAutoplay,b&&b.playmuted);a.ED=ys(a.ED,b&&b.mutedautoplay);var WR=b.length_seconds;WR&&(a.lengthSeconds=typeof WR==="string"?Wd(WR):WR);if(a.isAd()||a.zn||!g.Fs(g.RO(a.Da)))a.endSeconds=As(a.endSeconds,a.TC||b.end||b.endSeconds);else{var YR=a.lengthSeconds;switch(g.RO(a.Da)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":YR>30?a.limitedPlaybackDurationInSeconds= +30:YR<30&&YR>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=YR*.2}}a.Ma=Bs(a.Ma,b.itct);a.XE=ys(a.XE,b.noiba);a.TF=ys(a.TF,b.is_live_destination);a.isLivePlayback=ys(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Vb();b.isUpcoming&&(a.isUpcoming=ys(a.isUpcoming,b.isUpcoming));a.Wd=ys(a.Wd,b.post_live_playback);a.Ka&&(a.Wd=!1);a.isMdxPlayback=ys(a.isMdxPlayback,b.mdx); +var ZR=b.mdx_control_mode;ZR&&(a.mdxControlMode=typeof ZR==="number"?ZR:Wd(ZR));a.isInlinePlaybackNoAd=ys(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.yc=As(a.yc,b.reload_count);a.reloadReason=Bs(a.reloadReason,b.reload_reason);a.fm=ys(a.fm,b.show_content_thumbnail);a.jG=ys(a.jG,b.utpsa);a.ID=ys(a.ID,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.KD=b.tkn||null;var iGa=wP(b);Object.keys(iGa).length>0&&(a.Z=iGa);a.ra=Bs(a.ra,b.vvt);a.mdxEnvironment=Bs(a.mdxEnvironment,b.mdx_environment); +b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);a.m4=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Bs(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?As(0,b.index):As(a.playlistIndex,b.index));a.wW=b.pyv_view_beacon_url;a.BW=b.pyv_quartile25_beacon_url;a.EW=b.pyv_quartile50_beacon_url;a.GW=b.pyv_quartile75_beacon_url;a.yW= +b.pyv_quartile100_beacon_url;var jGa=b.session_data;!a.IW&&jGa&&(a.IW=vr(jGa,"&").feature);a.isFling=As(a.isFling?1:0,b.is_fling)==1;a.vnd=As(a.vnd,b.vnd);a.forceAdsUrl=Bs(a.forceAdsUrl,b.force_ads_url);a.lj=Bs(a.lj,b.ctrl);a.Qj=Bs(a.Qj,b.ytr);a.Pw=b.ytrcc;a.TW=b.ytrexp;a.jD=b.ytrext;a.wc=Bs(a.wc,b.adformat);a.FC=Bs(a.FC,b.attrib);a.slotPosition=As(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Zp=ys(a.Zp,b.ssrt);a.videoId=Ds(b)||a.videoId;a.K=Bs(a.K,b.vss_credentials_token);a.xn=Bs(a.xn,b.vss_credentials_token_type); +a.Mj=ys(a.Mj,b.audio_only);a.aO=ys(a.aO,b.aac_high);a.XC=ys(a.XC,b.prefer_low_quality_audio);a.QD=ys(a.QD,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.Bp=a.Bp.concat(b.qoe_cat.split(","))):a.wh=Bs(a.wh,b.qoe_cat);a.Bn=ys(a.Bn,b.download_media);var kGa=b.prefer_gapless;var Meb=kGa!=null?ys(a.Y,kGa):a.Y?a.Y:a.Da.preferGapless&&a.Da.supportsGaplessShorts();a.Y=Meb;QAa(a.playerResponse)&&(a.adModule=!0,a.Ga.push("ad"));var lGa=b.adaptive_fmts;lGa&&(a.adaptiveFormats=lGa,a.oa("adpfmts", +{},!0));var mGa=b.allow_embed;mGa&&(a.allowEmbed=mGa=="1");var nGa=b.backgroundable;nGa&&(a.backgroundable=nGa=="1");var oGa=b.autonav;oGa&&(a.isAutonav=oGa=="1");var b$=b.autoplay;b$&&(a.Lq=b$=="1",a.Pk=b$=="1");var pGa=b.iv_load_policy;pGa&&(a.annotationsLoadPolicy=zs(a.annotationsLoadPolicy,pGa,SO));var qGa=b.cc_lang_pref;qGa&&(a.captionsLanguagePreference=Bs(qGa,a.captionsLanguagePreference));var rGa=b.cc_load_policy;rGa&&(a.VC=zs(a.VC,rGa,SO));var sGa;a.deviceCaptionsOn=(sGa=b.device_captions_on)!= +null?sGa:void 0;var tGa;a.H_=(tGa=b.device_captions_lang_pref)!=null?tGa:"";var uGa;a.ZN=(uGa=b.viewer_selected_caption_langs)!=null?uGa:[];if(!a.L("html5_enable_ssap_entity_id")){var vGa=b.cached_load;vGa&&(a.Hp=ys(a.Hp,vGa))}b.dash=="0"&&(a.ND=!0);var wGa=b.dashmpd;wGa&&(a.Wc=g.Ti(wGa,{cpn:a.clientPlaybackNonce}));var xGa=b.delay;xGa&&(a.Kb=Wd(xGa));var yGa=a.TC||b.end;yGa!=void 0&&(a.clipEnd=As(a.clipEnd,yGa));var zGa=b.fmt_list;zGa&&(a.XD=zGa);b.heartbeat_preroll&&a.Ga.push("heartbeat");a.yn= +-Math.floor(Math.random()*10);a.Nv=-Math.floor(Math.random()*40);var AGa=b.is_listed;AGa&&(a.isListed=ys(a.isListed,AGa));var BGa=b.is_private;BGa&&(a.isPrivate=ys(a.isPrivate,BGa));var CGa=b.is_dni;CGa&&(a.Ff=ys(a.Ff,CGa));var DGa=b.dni_color;DGa&&(a.Rp=Bs(a.Rp,DGa));var EGa=b.pipable;EGa&&(a.pipable=ys(a.pipable,EGa));a.qX=a.pipable&&a.Da.Wq;a.bY=a.qX&&!a.Da.showMiniplayerButton;var FGa=b.paid_content_overlay_duration_ms;FGa&&(a.paidContentOverlayDurationMs=Wd(FGa));var GGa=b.paid_content_overlay_text; +GGa&&(a.paidContentOverlayText=GGa);var HGa=b.url_encoded_fmt_stream_map;HGa&&(a.Tf=HGa);var IGa=b.hls_formats;IGa&&(a.hlsFormats=IGa);var JGa=b.hlsvp;JGa&&(a.hlsvp=JGa);var $R=b.live_start_walltime;$R&&(a.qI=typeof $R==="number"?$R:Wd($R));var aS=b.live_manifest_duration;aS&&(a.bk=typeof aS==="number"?aS:Wd(aS));var KGa=b.player_params;KGa&&(a.playerParams=KGa);var LGa=b.partnerid;LGa&&(a.Va=As(a.Va,LGa));var MGa=b.probe_url;MGa&&(a.probeUrl=oD(g.Ti(MGa,{cpn:a.clientPlaybackNonce})));var c$=b.pyv_billable_url; +c$&&qva(c$)&&(a.Ej=c$);var d$=b.pyv_conv_url;d$&&qva(d$)&&(a.xW=d$);XKa(a,b);a.startSeconds>0||(a.startSeconds=As(a.startSeconds,a.WC||a.aE||b.start||b.startSeconds),a.Ob=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var NGa=b.live_utc_start;if(NGa!=null)a.liveUtcStartSeconds=Number(NGa);else{var e$=a.startSeconds;e$&&isFinite(e$)&&e$>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var OGa=b.utc_start_millis;OGa&&(a.liveUtcStartSeconds= +Number(OGa)*.001)}var PGa=b.stream_time_start_millis;PGa&&(a.ge=Number(PGa)*.001);var QGa=a.aE||b.start;QGa==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=As(a.clipStart,QGa));var RGa=b.url_encoded_third_party_media;RGa&&(a.nm=yr(RGa));var f$=b.ypc_offer_button_formatted_text;if(f$){var SGa=JSON.parse(f$);a.bO=SGa!=null?SGa:null;a.U0=f$}var TGa=b.ypc_offer_button_text;TGa&&(a.iz=TGa);var UGa=b.ypc_offer_description;UGa&&(a.Wq=UGa);var VGa=b.ypc_offer_headline;VGa&&(a.jz=VGa);var WGa=b.ypc_full_video_message; +WGa&&(a.yq=WGa);var XGa=b.ypc_offer_id;XGa&&(a.qm=XGa);var YGa=b.ypc_buy_url;YGa&&(a.OC=YGa);var ZGa=b.ypc_item_thumbnail;ZGa&&(a.PC=ZGa);var $Ga=b.ypc_item_title;$Ga&&(a.Fq=$Ga);var aHa=b.ypc_item_url;aHa&&(a.QC=aHa);var bHa=b.ypc_vid;bHa&&(a.Lv=bHa);b.ypc_overlay_timeout&&(a.Zq=Number(b.ypc_overlay_timeout));var cHa=b.ypc_trailer_player_vars;cHa&&(a.tm=xr(cHa));var dHa=b.ypc_original_itct;dHa&&(a.C4=dHa);a.Wl=Bs(a.Wl,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid= +b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=ys(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=ys(a.N.rmktEnabled,b.rmktEnabled);a.nB=b.storyboard_spec||null;a.zw=b.live_storyboard_spec||null;a.OU=b.iv_endscreen_url||null;a.rG=ys(a.rG,b.iv3_module);a.Tq=ys(a.Tq,b.ypc_license_checker_module);a.Nj=ys(a.Nj,b.ypc_module);a.Fi=ys(a.Fi,b.ypc_clickwrap_module);a.Nj&&a.Ga.push("ypc");a.Fi&&a.Ga.push("ypc_clickwrap"); +a.nW={video_id:b.video_id,eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};SKa(a,b);var eHa=b.cotn; +eHa&&(a.cotn=eHa);if(eLa(a))cQ(a)&&(a.isLivePlayback&&a.Wc&&(a.zj=!0),a.fb&&(a.wp=!0));else if(fLa(a))a.zj=!0;else{var hHa,iHa,jHa=((hHa=a.playerResponse)==null?void 0:(iHa=hHa.streamingData)==null?void 0:iHa.adaptiveFormats)||[];if(jHa.length>0)var cH=gLa(a,jHa);else{var lHa=a.adaptiveFormats;if(lHa&&!cQ(a)){dQ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(LN=!0);var Kz=eQ(lHa),g$$=a.me,mHa=a.lengthSeconds,Neb=a.isLivePlayback,dH=a.Wd,Lz=a.Da,Oeb=kIa(Kz);if(Neb||dH){var Nj=new xN("",Lz==null? +void 0:Lz.experiments,!0);Nj.Vb=!0;Nj.isManifestless=!0;Nj.B=!dH;Nj.isLive=!dH;Nj.Wd=dH;for(var nHa=g.w(Kz),h$=nHa.next();!h$.done;h$=nHa.next()){var Mz=h$.value,oHa=BN(Mz,g$$),Ru=CN(Mz.url,Mz.sp,Mz.s),pHa=Ru.get("id");pHa&&pHa.includes("%7E")&&(Nj.qa=!0);var Peb=Number(Mz.target_duration_sec)||5,Qeb=Number(Mz.max_dvr_duration_sec)||14400,qHa=Number(Ru.get("mindsq")||Ru.get("min_sq")||"0"),rHa=Number(Ru.get("maxdsq")||Ru.get("max_sq")||"0")||Infinity;Nj.df=Nj.df||qHa;Nj.xi=Nj.xi||rHa;var Reb=!hF(oHa.mimeType); +Ru&&uN(Nj,new gN(Ru,oHa,{Uj:Peb,In:Reb,Br:Qeb,df:qHa,xi:rHa,kB:300,Wd:dH}))}var sHa=Nj}else{if(Oeb==="FORMAT_STREAM_TYPE_OTF"){var cS=mHa;cS=cS===void 0?0:cS;var Nz=new xN("",Lz==null?void 0:Lz.experiments,!1);Nz.duration=cS||0;for(var tHa=g.w(Kz),i$=tHa.next();!i$.done;i$=tHa.next()){var Oz=i$.value,j$=BN(Oz,g$$,Nz.duration),k$=CN(Oz.url,Oz.sp,Oz.s);if(k$)if(j$.streamType==="FORMAT_STREAM_TYPE_OTF")uN(Nz,new hN(k$,j$,"sq/0"));else{var Seb=MM(Oz.init),Teb=MM(Oz.index);uN(Nz,new rN(k$,j$,Seb,Teb))}}Nz.isOtf= +!0;var uHa=Nz}else{var dS=mHa;dS=dS===void 0?0:dS;var eS=new xN("",Lz==null?void 0:Lz.experiments,!1);eS.duration=dS||0;for(var vHa=g.w(Kz),l$=vHa.next();!l$.done;l$=vHa.next()){var Pz=l$.value,Ueb=BN(Pz,g$$,eS.duration),Veb=MM(Pz.init),Web=MM(Pz.index),wHa=CN(Pz.url,Pz.sp,Pz.s);wHa&&uN(eS,new rN(wHa,Ueb,Veb,Web))}uHa=eS}sHa=uHa}var m$=sHa;if(Kz.length>0){var xHa=Kz[0];if(a.U().playerStyle==="hangouts-meet"&&xHa.url){var Xeb=g.zr(xHa.url);a.iq=a.iq||Number(Xeb.expire)}}var Yeb=a.isLivePlayback&&!a.Wd&& +!a.Ka&&!a.isPremiere;a.L("html5_live_head_playable")&&(!fQ(a)&&Yeb&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(m$.fb=!0));m$.Xa=gQ(a);cH=m$}else cH=null;a.oa("pafmts",{isManifestFilled:!!cH})}if(cH){hQ(a,cH);var yHa=!0}else yHa=!1;yHa?a.enableServerStitchedDai=a.enableServerStitchedDai&&iQ(a):!a.Wc||a.Da.qa==="yt"&&a.Vb()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.zj=!0)}var o$=b.adpings;o$&&(a.Rv=o$?xr(o$):null);var zHa=b.feature;zHa&&(a.Cp=zHa); +var AHa=b.referrer;AHa&&(a.referrer=AHa);a.clientScreenNonce=Bs(a.clientScreenNonce,b.csn);a.tH=As(a.tH,b.root_ve_type);a.xp=As(a.xp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.JB=ys(a.JB,b.upg_content_filter_mode);a.unpluggedFilterModeType=As(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var BHa=b.unplugged_location_info;BHa&&(a.qa=BHa);var CHa=b.unplugged_partner_opt_out;CHa&&(a.aD=Bs("",CHa));a.ow=ys(a.ow,b.disable_watch_next);a.En=Bs(a.En,b.internal_ip_override); +a.SF=!!b.is_yto_interstitial;(a.interstitials.length||a.SF)&&a.Ga.push("yto");var DHa=b.Um;DHa&&(a.Um=DHa);b.GM&&(a.GM=b.GM);var EHa;a.Ya=(EHa=b.csi_timer)!=null?EHa:"";a.Dn=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Su=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&Su&&fKa(a,Su);if(Su==null?0:Su.ustreamerConfig)a.mp=rO(Su.ustreamerConfig);var FHa,GHa,HHa=Su==null?void 0:(FHa=Su.loggingContext)==null?void 0:(GHa=FHa.qoeLoggingContext)==null?void 0:GHa.serializedContextData; +HHa&&(a.A4=HHa);g.IO(a.Da)&&a.Da.Yl&&(a.embedsRct=Bs(a.embedsRct,b.rct),a.embedsRctn=Bs(a.embedsRctn,b.rctn));a.Xl=a.Xl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)}; +VKa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.jQ(a)&&!e&&a.Fy("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Hp||!e?"":(kQ.has(e)?c="":(b=hLa.push(e),kQ.add(e),b>(c!=null?c:50)&&(c=hLa.shift())&&kQ.delete(c),c=e),e!==c&&a.Fy("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)}; +ZP=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Wa=c;var e=a.Wa.playerCueRangeSet;e&&g.aQ(a,e);var f=a.Wa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.R(l,iLa),a.L("web_player_autonav_use_server_provided_state")&&lQ(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=m.playerOverlayVideoDetailsRenderer; +p&&(p.title&&(b.title=g.Qx(p.title)),p.subtitle&&(b.subtitle=g.Qx(p.subtitle)))}g.OO(a.Da)&&(a.Ie=!!h.addToMenu);jLa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.Gda=g.R(q,kLa));var r,t,u,y=g.R((r=a.getWatchNextResponse())==null?void 0: +(t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,lLa);if(y){a.ZD=Number(y==null?void 0:y.durationMs)||NaN;if(y==null?0:y.infoPanelOverviewViewModel)a.Pf=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)a.Zj=y==null?void 0:y.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,D,F=(A=a.getWatchNextResponse())==null?void 0:(D=A.contents)==null?void 0:D.twoColumnWatchNextResults;if(F){var H=F.desktopOverlay&& +g.R(F.desktopOverlay,mLa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.Ie=!1))}n&&nLa(a,b,n);var M=As(0,b.autoplay_count),N=a.getWatchNextResponse(),Q,Z=(Q=N.contents)==null?void 0:Q.twoColumnWatchNextResults,fa,pa,Y,S=(fa=N.playerOverlays)==null?void 0:(pa=fa.playerOverlayRenderer)==null?void 0:(Y=pa.autoplay)==null?void 0:Y.playerOverlayAutoplayRenderer,W=vKa(a),v,V=(v=N.contents)==null?void 0:v.singleColumnWatchNextResults;if(V){var cb;if(((cb=V.autoplay)==null? +0:cb.autoplay)&&!V.playlist){var zb=V.autoplay.autoplay.sets,Ra={},db=new g.DP(a.U()),ab=null,ob;if(zb){for(var Wa=g.w(zb),B=Wa.next();!B.done;B=Wa.next()){var C=B.value.autoplayVideoRenderer;if(C&&C.compactVideoRenderer){ab=C.compactVideoRenderer;break}}if(ob=zb[0].autoplayVideo){var E=ob.clickTrackingParams;E&&(Ra.itct=E);Ra.autonav="1";Ra.playnext=String(M)}}else Ra.feature="related-auto";var I=g.R(ob,g.mQ);if(ab){db.videoId=ab.videoId;var L=ab.shortBylineText;L&&(db.author=g.Qx(L));var X=ab.title; +X&&(db.title=g.Qx(X))}else I!=null&&I.videoId&&(db.videoId=I.videoId);db.OE=Ra;a.suggestions=[];a.Uv=db}}if(W){for(var ha=[],ca=g.w(W),K=ca.next();!K.done;K=ca.next()){var la=K.value,qa=void 0,ia=null;if(la.endScreenVideoRenderer){var Ga=la.endScreenVideoRenderer,kb=Ga.title;ia=new g.DP(a.U());ia.videoId=Ga.videoId;ia.lengthSeconds=Ga.lengthInSeconds||0;var Ob=Ga.publishedTimeText;Ob&&(ia.publishedTimeText=g.Qx(Ob));var nc=Ga.shortBylineText;nc&&(ia.author=g.Qx(nc));var Oa=Ga.shortViewCountText;Oa&& +(ia.shortViewCount=g.Qx(Oa));if(kb){ia.title=g.Qx(kb);var Dc=kb.accessibility;if(Dc){var md=Dc.accessibilityData;md&&md.label&&(ia.ariaLabel=md.label)}}var nd=Ga.navigationEndpoint;if(nd){qa=nd.clickTrackingParams;var ie=g.R(nd,g.mQ),Bd=g.R(nd,g.ky);ie?ia.PE=ie:Bd!=null&&(ia.watchUrl=Bd.url)}var ye=Ga.thumbnailOverlays;if(ye)for(var uc=g.w(ye),ze=uc.next();!ze.done;ze=uc.next()){var Rf=ze.value.thumbnailOverlayTimeStatusRenderer;if(Rf)if(Rf.style==="LIVE"){ia.isLivePlayback=!0;break}else if(Rf.style=== +"UPCOMING"){ia.isUpcoming=!0;break}}ia.Z=xP(Ga.thumbnail)}else if(la.endScreenPlaylistRenderer){var Qe=la.endScreenPlaylistRenderer,uf=Qe.navigationEndpoint;if(!uf)continue;var Qc=g.R(uf,g.mQ);if(!Qc)continue;var Og=Qc.videoId;ia=new g.CP(a.U());ia.playlistId=Qe.playlistId;ia.playlistLength=Number(Qe.videoCount)||0;ia.j=Og||null;ia.videoId=Og;var Vh=Qe.title;Vh&&(ia.title=g.Qx(Vh));var uh=Qe.shortBylineText;uh&&(ia.author=g.Qx(uh));qa=uf.clickTrackingParams;ia.Z=xP(Qe.thumbnail)}ia&&(qa&&(ia.sessionData= +{itct:qa}),ha.push(ia))}a.suggestions=ha}if(S){a.oW=!!S.preferImmediateRedirect;a.Sf=a.Sf||!!S.webShowNewAutonavCountdown;a.gm=a.gm||!!S.webShowBigThumbnailEndscreen;if(a.Sf||a.gm){var Pg=Z||null,Lc=new g.DP(a.U());Lc.videoId=S.videoId;var Sf=S.videoTitle;if(Sf){Lc.title=g.Qx(Sf);var Rb=Sf.accessibility;if(Rb){var Fi=Rb.accessibilityData;Fi&&Fi.label&&(Lc.ariaLabel=Fi.label)}}var yk=S.byline;yk&&(Lc.author=g.Qx(yk));var hc=S.publishedTimeText;hc&&(Lc.publishedTimeText=g.Qx(hc));var Pn=S.shortViewCountText; +Pn&&(Lc.shortViewCount=g.Qx(Pn));var Qn=S.thumbnailOverlays;if(Qn)for(var am=g.w(Qn),Rn=am.next();!Rn.done;Rn=am.next()){var Gi=Rn.value.thumbnailOverlayTimeStatusRenderer;if(Gi)if(Gi.style==="LIVE"){Lc.isLivePlayback=!0;break}else if(Gi.style==="UPCOMING"){Lc.isUpcoming=!0;break}else if(Gi.style==="DEFAULT"&&Gi.text){Lc.lengthText=g.Qx(Gi.text);var kg=Gi.text.accessibility;if(kg){var bm=kg.accessibilityData;bm&&bm.label&&(Lc.Mx=bm.label||"")}break}}Lc.Z=xP(S.background);var zk=S.nextButton;if(zk){var vh= +zk.buttonRenderer;if(vh){var Sn=vh.navigationEndpoint;if(Sn){var Tn=g.R(Sn,g.mQ);Tn&&(Lc.PE=Tn)}}}if(S.topBadges){var Un=S.topBadges[0];if(Un){var Qg=g.R(Un,oLa);Qg&&Qg.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Lc.GM=!0)}}var Ak=S.alternativeTitle;Ak&&(Lc.Ct=g.Qx(Ak));var Bk={autonav:"1",playnext:String(M)};Lc.playlistId&&(Bk.autoplay="1");if(Pg){var mq,nq,oq,Vn,pq=(mq=Pg.autoplay)==null?void 0:(nq=mq.autoplay)==null?void 0:(oq=nq.sets)==null?void 0:(Vn=oq[0])==null?void 0:Vn.autoplayVideo;if(pq){var jt= +pq.clickTrackingParams;jt&&(Bk.itct=jt);var vf=g.R(pq,g.mQ);vf&&(Lc.aX=vf)}}else if(S){var Ck,qq,rq,Wn=(Ck=S.nextButton)==null?void 0:(qq=Ck.buttonRenderer)==null?void 0:(rq=qq.navigationEndpoint)==null?void 0:rq.clickTrackingParams;Wn&&(Bk.itct=Wn)}Bk.itct||(Bk.feature="related-auto");Lc.OE=Bk;a.suggestions||(a.suggestions=[]);a.Uv=Lc}S.countDownSecs!=null&&(a.kZ=S.countDownSecs*1E3);S.countDownSecsForFullscreen!=null&&(a.DD=S.countDownSecsForFullscreen>=0?S.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var Hi; +a.xfa=(Hi=S.nextButton)==null?void 0:Hi.buttonRenderer}var by;a.wfa=(by=S.cancelButton)==null?void 0:by.buttonRenderer;a.L("web_autonav_color_transition")&&S.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.R(S.watchToWatchTransitionRenderer,pLa))}var Az=vKa(a);if(Az){var OG,PG,QG,RG=Az==null?void 0:(OG=Az[0])==null?void 0:(PG=OG.endScreenVideoRenderer)==null?void 0:(QG=PG.navigationEndpoint)==null?void 0:QG.clickTrackingParams,JR=g.nQ(a);RG&&JR&&(JR.sessionData={itct:RG})}a.Wa.currentVideoThumbnail&& +(a.Z=xP(a.Wa.currentVideoThumbnail));var SG,Bz,TG,UG,Qo,ne=(SG=a.Wa)==null?void 0:(Bz=SG.contents)==null?void 0:(TG=Bz.twoColumnWatchNextResults)==null?void 0:(UG=TG.results)==null?void 0:(Qo=UG.results)==null?void 0:Qo.contents;if(ne&&ne[1]){var Ro,Cz,Dz,Ez,lr=(Ro=ne[1].videoSecondaryInfoRenderer)==null?void 0:(Cz=Ro.owner)==null?void 0:(Dz=Cz.videoOwnerRenderer)==null?void 0:(Ez=Dz.thumbnail)==null?void 0:Ez.thumbnails;lr&&lr.length&&(a.profilePicture=lr[lr.length-1].url)}var KR=Ds(b),vm,VG=(vm= +a.getWatchNextResponse())==null?void 0:vm.onResponseReceivedEndpoints;if(VG)for(var WG=g.w(VG),Fz=WG.next();!Fz.done;Fz=WG.next()){var Vk=Fz.value;g.R(Vk,oQ)&&(a.PU=g.R(Vk,oQ));var Mu=g.R(Vk,qLa),XG=void 0;if((XG=Mu)==null?0:XG.entityKeys)a.Aw=Mu.entityKeys||[],Mu.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Mu.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var LR=g.pQ.getState().entities,Nu=g.EK("visibility_override","markersVisibilityOverrideEntity");var mr=GK(LR,"markersVisibilityOverrideEntity", +Nu);a.jf=(mr==null?void 0:mr.videoId)===(a.videoId||KR)&&(mr==null?0:mr.visibilityOverrideMarkersKey)?mr.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.x(a.jf))}}}; +lQ=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0}; +qQ=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)}; +uQ=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&rQ(a)&&(b=!1);var c=!!a.j&&a.j.Vb,d=a.Da,e=a.TQ(),f=sQ(a),h=a.aO,l=b,m=a.isOtf();b=a.RI();var n=a.yb,p=a.Uf,q=tQ(a),r=new IIa(d);if(d.Ac()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.Ma=h&&d.N;r.Uf=p;g.is("windows nt 5.1")&&!g.YN&&(r.So=!0);if(f=e)f=g.fP(d)?GJa(d):!1;f&&(r.Ba=!0);l&&(r.So=!0,r.wc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.So=!0);d.playerStyle==="picasaweb"&&(m&&(r.So=!1),r.Fa=!1);n&&(r.So=!0);GL(d.G,HL.CHANNELS)&& +(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Ka=!0));d.L("html5_block_8k_hfr")&&(r.Xa=!0);r.K=g.AC(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.AC(d.experiments,"html5_min_selectable_quality_ordinal");lO&&(r.Tb=480);if(c||e)r.Fa=!1;r.fb=!1;r.disableAv1=q;c=PN(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(vF()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+vF(),r.wj=c);c>=2160&& +(r.Ga=!0);cCa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.yc=!1);r.RI=b;r.Va=g.tu||ws()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Jb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");ls()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.Pv&&(r.qa=a.Pv),a.Ov&&(r.C=a.Ov));r.Ra=a.isLivePlayback&&a.dj()&&a.Da.L("html5_drm_live_audio_51");r.yb= +a.PD;return a.kf=r}; +tQ=function(a){return a.Da.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&rQ(a)?!0:!1}; +rLa=function(a){pA("drm_pb_s",void 0,a.Ya);a.fb||a.j&&BL(a.j);var b={};a.j&&(b=kDa(a.nw,uQ(a),a.Da.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set)); +b=new dO(b,a.Da,a.TX,a.useCobaltWidevine?ls()?vQ(a):!1:!1,function(c,d){a.oa(c,d)}); +g.P(a,b);a.wp=!1;a.loading=!0;SIa(b,function(c){pA("drm_pb_f",void 0,a.Ya);for(var d=g.w(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.fb=a.fb;e.ww=a.ww;e.uw=a.uw;break;case "widevine":e.pm=a.pm}a.Ap=c;if(a.Ap.length>0&&(a.G=a.Ap[0],a.Da.Ac())){c={};d=g.w(Object.entries(a.G.j));for(e=d.next();!e.done;e=d.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}YP(a)})}; +gLa=function(a,b){if(b.length===0||cQ(a))return null;dQ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(LN=!0);var c=a.me;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Wd,h=a.Da,l=lIa(b);if(e||f){h=new xN("",h.experiments,!0);h.B=!f;h.Vb=!0;h.isManifestless=!0;h.isLive=!f;h.Wd=f;b=g.w(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=AN(m,c);e=OL(m);e=CN(e.rE||m.url||"",e.PH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.qa=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400); +var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.df=h.df||n;h.xi=h.xi||p;var q=!hF(d.mimeType);e&&uN(h,new gN(e,d,{Uj:l,In:q,Br:m,df:n,xi:p,kB:300,Wd:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new xN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=AN(b,c,f.duration),e=OL(b),(e=CN(e.rE||b.url||"",e.PH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?uN(f,new hN(e,d,"sq/0")): +uN(f,new rN(e,d,OM(b.initRange),OM(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new xN("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=AN(l,c,f.duration),d=OM(l.initRange),e=OM(l.indexRange),m=OL(l),(l=CN(m.rE||l.url||"",m.PH,m.s))&&uN(f,new rN(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Wd&&!a.Ka&&!a.isPremiere;a.L("html5_live_head_playable")&&(!fQ(a)&&f&&a.oa("missingLiveHeadPlayable",{}),a.Da.qa==="yt"&&(c.fb=!0));c.Xa=gQ(a);return c}; +cQ=function(a){return ls()?!vQ(a):os()?!(!a.fb||!a.L("html5_enable_safari_fairplay")):!1}; +vQ=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.aQ=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.CD.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}}; +iQ=function(a){return!(!a.j||!a.j.isManifestless)}; +wQ=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&GN(a.j)>=5}; +eLa=function(a){return ls()&&vQ(a)?!1:cQ(a)&&g.MC(a.Da)&&!a.isLivePlayback||!mO()||a.ND?!0:!1}; +tLa=function(a){a.loading=!0;a.zj=!1;if(fLa(a))g.FKa(a.videoId).then(function(c){sLa(a,c)}).then(function(){YP(a)}); +else{mD(a.Wc)||g.fx(new g.pt("DASH MPD Origin invalid: ",a.Wc));var b=a.Wc;b=g.Ti(b,{mpd_version:g.AC(a.Da.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.Ti(b,{pacing:0}));tIa(b,a.Da.experiments,a.isLivePlayback).then(function(c){a.La()||(hQ(a,c,!0),pA("mrc",void 0,a.Ya),YP(a))},function(c){a.La()||(a.loading=!1,a.publish("dataloaderror",new FE("manifest.net.retryexhausted",{backend:"manifest", +rc:c.status},1)))}); +pA("mrs",void 0,a.Ya)}}; +sLa=function(a,b){var c=b.map(function(m){return m.itag}),d; +if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.w(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={aj:void 0},f=e.next())if(h.aj=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.w(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.aj.itag&&l.xtags===h.aj.xtags&&(h.aj=Object.assign({},h.aj),h.aj.url=b.find(function(m){return function(n){return n.itag===m.aj.itag}}(h)).url,h.aj.signatureCipher="",d.push(h.aj))}else c.includes(h.aj.itag)&& +(h.aj=Object.assign({},h.aj),h.aj.url=b.find(function(m){return function(n){return n.itag===m.aj.itag}}(h)).url,h.aj.signatureCipher="",d.push(h.aj)); +b=gLa(a,d);sQ(a)&&xIa(b,!1);hQ(a,b);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.rI?a.rI.cotn:"0",cpn:a.clientPlaybackNonce})}; +xQ=function(a){if(!a.isProximaLatencyEligible)return!1;var b=bL(),c;return((c=a.Da.getWebPlayerContextConfig())==null?0:c.enableProximaLowLatency)&&a.L("html5_wpcc_proxima")?!0:b!=null?b===1:a.L("html5_enable_proxima")}; +YP=function(a){a.La()||(a.loading=!1,a.publish("dataloaded"))}; +hQ=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.P(a,b);b.df=a.df;b.xi=a.xi;b.Ra=a.Ra;b.Tb=a.Tb;b.Rc=a.Rc;a.Zl&&(b.Y=new FM(a.Zl));(a.TQ()||g.yQ(a))&&a.Ga.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.bk=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.j0,a):b.subscribe("cuepointsadded",a.sX,a));BL(b)?a.wp=!0:fO=void 0;a.Ka&&(b.C=a.Ka,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere= +a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable}; +vLa=function(a,b){var c=b||eLa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.ND,mss:mO(),"3pp":a.isExternallyHostedPodcast}),$r();sQ(a)&&xIa(a.j,a.isLivePlayback);dQ(a,"html5_enable_cobalt_experimental_vp9_decoder")&&gJa(a.Da.G);return as().then(function(){return mDa(a.nw,uQ(a),a.Da.G,a.j,a.G,function(d){return a.publish("ctmp","fmtflt",d)},a.sI,gQ(a)&&a.L("html5_enable_server_format_filter")).then(function(d){uLa(a,d); +a.nw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.kf&&a.oa("av1",a.kf.j)})})}; +wLa=function(a,b){if(b&&a.hlsvp)return $r();if(a.hlsFormats){b=eQ(a.hlsFormats);var c;if(((c=a.kf)==null?0:c.B)&&b){c=[];for(var d=g.w(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.yw=UJa(a.Da,b);c=a.clientPlaybackNonce;var f,h,l,m;return ZJa(a.Da,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Zd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p= +0,q=[],r=g.w(n),t=r.next();!t.done;t=r.next()){t=t.value; +var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var y=u=void 0;((u=t.getInfo())==null?void 0:(y=u.audio)==null?void 0:y.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.oa("hlschl",{mn:p});var A;((A=a.kf)==null?0:A.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var D;if(a.L("html5_enable_vp9_fairplay")&&((D=a.G)==null?0:WN(D)))for(a.oa("drm",{sbdlfbk:1}),p=g.w(a.Ap),q=p.next();!q.done;q=p.next())if(q=q.value,VN(q)){a.G=q;break}zQ(a,n)})}return $r()}; +xLa=function(a){if(a.isExternallyHostedPodcast&&a.Tf){var b=eQ(a.Tf);if(!b[0])return $r();a.B4=b[0];return bKa(a.Da,b[0]).then(function(c){zQ(a,c)})}return a.nm&&a.NU?aKa(a.Da,a.isAd(),a.nm).then(function(c){zQ(a,c)}):$r()}; +zLa=function(a){if(a.isExternallyHostedPodcast)return $r();var b=eQ(a.Tf,a.XD);if(a.hlsvp){var c=PKa(a.hlsvp,a.clientPlaybackNonce,a.Zd);b.push(c)}return $Ja(a.Da,a.isAd(),b,yLa(a)).then(function(d){zQ(a,d)})}; +uLa=function(a,b){a.C=b;if(a.C){b=g.w(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.JD[d]=c.id)}}AQ(a);if(a.G&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=cF(a.C.videoInfos[0]),b!=(a.G.flavor=="fairplay")))for(c=g.w(a.Ap),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.G=d;break}}; +zQ=function(a,b){a.Fd=b;uLa(a,new wL(g.Al(a.Fd,function(c){return c.getInfo()})))}; +yLa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Da.j.c,cver:a.Da.j.cver};a.Bw&&(b.ptk=a.Bw,b.oid=a.hW,b.ptchn=a.fW,b.pltype=a.iW,a.pw&&(b.m=a.pw));return b}; +g.BQ=function(a){return cQ(a)&&a.fb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.me||null}; +ALa=function(a){var b=CQ(a);return b&&b.text?g.Qx(b.text):a.paidContentOverlayText}; +BLa=function(a){var b=CQ(a);return b&&b.durationMs?Wd(b.durationMs):a.paidContentOverlayDurationMs}; +CQ=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.R((b=a.Wa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,CLa)||null}; +DQ=function(a){var b="";if(a.dI)return a.dI;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ka?"window":"live");a.Wd&&(b="post");return b}; +g.EQ=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]}; +DLa=function(a){return!!a.Ej||!!a.YC||!!a.Xw||!!a.yA||a.o3||a.N.focEnabled||a.N.rmktEnabled}; +g.FQ=function(a){return!!(a.Wc||a.Tf||a.nm||a.hlsvp||a.sx())}; +XP=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Mb(a.Ga,"ypc");a.ypcPreview&&(b=!1);return a.qe()&&!a.loading&&(g.FQ(a)||g.Mb(a.Ga,"heartbeat")||b)}; +eQ=function(a,b){a=yr(a);var c={};if(b){b=g.w(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.w(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a}; +AQ=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.bl);for(var c=0;c0:b||a.adFormat!=="17_8"||a.isAutonav||g.dP(a.Da)||a.Lq?a.Ig?!1:a.Da.Fi||a.Da.Ui||!g.IO(a.Da)?!b&&QQ(a)=="adunit"&&a.Ej?!1:!0:!1:!1:(a.Ig?0:a.Ui)&&g.IO(a.Da)?!0:!1;a.L("html5_log_detailpage_autoplay")&&QQ(a)=="detailpage"&&a.oa("autoplay_info",{autoplay:a.Pk,autonav:a.isAutonav,result:b});return b}; +g.VQ=function(a){return a.oauthToken||a.Da.Fj}; +PLa=function(a){if(a.L("html5_stateful_audio_normalization")){var b=1,c=g.AC(a.Da.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.B)||a.n2){d=(0,g.Zt)();a.yp=2;var e=d-a.Da.fl<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&e?a.yp=4:e||(a.Da.bl=Infinity,a.Da.fl=NaN);e=(a.yp===4?g.Dd(a.Da.bl,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-c;if(a.yp!==4){var f,h,l,m,n=((f=a.playerResponse)==null?void 0:(h=f.playerConfig)== +null?void 0:(l=h.audioConfig)==null?void 0:(m=l.loudnessNormalizationConfig)==null?void 0:m.statelessLoudnessAdjustmentGain)||0;e+=n}e=Math.min(e,0);a.preserveStatefulLoudnessTarget&&(a.Da.bl=c+e,a.Da.fl=d);a=Math.min(1,Math.pow(10,e/20))||b}else a=b}else{f=1;(h=g.AC(a.Da.experiments,"html5_default_ad_gain"))&&a.isAd()&&(f=h);if(h=((b=a.D)==null?void 0:b.audio.C)||a.Hj)a.yp=1;a=Math.min(1,Math.pow(10,-h/20))||f}return a}; +sQ=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.hO(a.Da)==="TVHTML5_SIMPLY"&&a.Da.j.ctheme==="MUSIC";a.Mj||!g.hz(a.Da)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Mj=!0);if(b=g.ks())b=/Starboard\/([0-9]+)/.exec(g.wb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Da;c=(g.hO(c)==="TVHTML5_CAST"||g.hO(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Da.j.ctheme==="MUSIC";var d;if(d=!a.Mj)c||(c=a.Da,c= +g.hO(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Mj=!0);return a.Da.deviceIsAudioOnly||a.Mj&&a.Da.N}; +QLa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)}; +WQ=function(a){return!(!a.Bn||!a.Da.N)&&a.sx()}; +RLa=function(a){return a.enablePreroll&&a.enableServerStitchedDai}; +SLa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.SD&&!a.Zl}; +gQ=function(a){if(a.O2||a.cotn||!a.j||a.j.isOtf||a.GU&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.SD&&!!a.Zl;var b=!a.j.Vb&&!a.dj(),c=b&&iO&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!iO&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=XQ(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.dj()&&!a.j.Vb&&iO&&(a.fl==="1"?!1:!0);(c=c||b||d||e)&&!a.Zl&&a.oa("sabr",{loc:"m"},!0); +return c&&!!a.Zl}; +XQ=function(a){var b;if(!(b=a.Vb()&&a.dj()&&iO&&(a.fl==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Vb()&&!a.dj()&&iO;var c=a.Vb()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr"); +c=!a.enableServerStitchedDai&&c;a=a.Vb()&&!iO&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a}; +g.jQ=function(a){return a.Q1&&gQ(a)}; +fLa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.IP(b)===1;return b&&!a.Bn}; +g.YQ=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&LL(b[a.B.id].resource.j);b=!!b[a.D.id]&&LL(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b}; +ZQ=function(a){return a.Jw?["OK","LIVE_STREAM_OFFLINE"].includes(a.Jw.status):!0}; +ILa=function(a){return(a=a.Cn)&&a.showError?a.showError:!1}; +dQ=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")}; +ZKa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")}; +TLa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null}; +XKa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.yA=new xKa(b));if(b=b.video_masthead_ad_quartile_urls)a.YC=b.quartile_0_url,a.qW=b.quartile_25_url,a.rW=b.quartile_50_url,a.sW=b.quartile_75_url,a.pW=b.quartile_100_url,a.Xw=b.quartile_0_urls,a.dD=b.quartile_25_urls,a.fD=b.quartile_50_urls,a.hD=b.quartile_75_urls,a.bD=b.quartile_100_urls}; +WKa=function(a){var b={};a=g.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b}; +TKa=function(a){if(a){if(uva(a))return a;a=vva(a);if(uva(a,!0))return a}return""}; +g.ULa=function(a){return a.captionsLanguagePreference||a.Da.captionsLanguagePreference||g.EQ(a,"yt:cc_default_lang")||a.Da.zj}; +$Q=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())}; +g.nQ=function(a){var b;return a.Uv||((b=a.suggestions)==null?void 0:b[0])||null}; +VLa=function(a){var b={isSabr:gQ(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b}; +g.aR=function(a){return a.Ff&&a.Da.zp}; +g.bR=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; +g.dR=function(a){var b=a.U(),c=g.cR(b),d=a.Ma;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=QQ(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.yb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.xp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:WLa[e]}});if(b=a.JB)d.unpluggedAppInfo= +{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:XLa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ed&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=YLa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Jb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}]; +if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c}; +g.cR=function(a){var b=g.uz(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.w(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,{deviceYear:e})); +if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Rc)b.thirdParty={embedUrl:a};return b}; +dMa=function(a,b,c){var d=a.videoId,e=g.dR(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Wv()),referer:document.location.toString(),signatureTimestamp:19935};g.it();a.isAutonav&&(h.autonav=!0);g.kt(0,141)&&(h.autonavState=g.kt(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.kt(0,66);UQ(a)&&(h.autoplay=!0);f.N&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=l.split(","); +l=g.w(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.w(q);for(var r=q.next();!r.done;r=q.next()){var t=g.w(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=String(u)); +else if(p.adtype==="video_ad"){var y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=ZLa[p.breaktype])y.breakType=p;q&&(y.url=q);r&&(y.presetAd=r);t&&(y.viralAdResponseUrl=t);u&&(y.viralCampaignId=String(u));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.qI;if(m!=null){m={startWalltime:String(m)};if(n=a.bk)m.manifestDuration=String(n||14400);h.liveContext= +m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Ig?0:a.Ui)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Pw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Qj){n=a.jD;l=[];p=g.w(cDa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.qZ?"INACTIVE":"ACTIVE",clientFormFactor:$La[r]||"UNKNOWN_FORM_FACTOR",clientName:eDa[q.B2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:aMa[r]||"UNKNOWN_PLATFORM"};r= +{};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.fx(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p= +{},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.IO(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags= +f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);bMa&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.kt(g.it(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.bP(e)&& +(d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.H_&&(d.captionParams.deviceCaptionsLangPref=a.H_);a.ZN.length?d.captionParams.viewerSelectedCaptionLangs=a.ZN:g.bP(e)&&(h=g.eL(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Uf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Uf);e.L("fetch_att_independently")&& +(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=cMa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=cMa(a));return d}; +cMa=function(a){var b=!(a==null?0:a.RI())&&(a==null?void 0:a.Vb())&&ws();if(a==null?0:a.L("html5_report_supports_vp9_encoding")){if(a==null)var c=void 0;else{c=uQ(a);a=a.U().G;var d=lP("243");c=d?AL(c,d,a,!0)===!0:!1}b=c&&!b}else b=void 0;return{supportsVp9Encoding:b,supportXhr:iO}}; +fMa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1)return c={context:g.cR(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.yz(eMa),g.G(f,g.xA(b,c,d),2);e=f.B;return f.return(e)})}; +gMa=function(a,b,c){OBa(g.AC(b.experiments,"bg_vm_reinit_threshold"))&&fMa(a,c).then(function(d){d&&(d=d.botguardData)&&g.$K(d,b)},function(d){a.La()||(d=HE(d),a.oa("attf",d.details))})}; +eR=function(a,b){g.O.call(this);this.app=a;this.state=b}; +gR=function(a,b,c){a.state.j.hasOwnProperty(b)||fR(a,b,c);a.state.N[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))}; +a.state.K.add(b)}; +hR=function(a,b,c){a.state.j.hasOwnProperty(b)||fR(a,b,c);a.app.U().N&&(a.state.Z[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))},a.state.K.add(b))}; +fR=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ca.apply(0,arguments))}}; +g.iR=function(a,b,c){return a.state.j[b].apply(a.state.j,g.x(c))}; +jR=function(){g.Gp.call(this);this.G=new Map}; +kR=function(){g.O.apply(this,arguments);this.element=null;this.K=new Set;this.N={};this.Z={};this.j={};this.Y=new Set;this.C=new jR;this.B=new jR;this.D=new jR;this.G=new jR}; +hMa=function(a,b,c){typeof a==="string"&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return lR(a)}; +lR=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.w(iMa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b}; +jMa=function(a,b,c,d){if(g.Qa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c}; +rR=function(){mR.apply(this,arguments)}; +sR=function(a,b){var c={};if(a.app.U().ra){a=g.w(nMa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return oMa.includes(e)}).join(",")),c.qoe_cat=a; +pMa(c)}else for(a=g.w(qMa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c}; +pMa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;if(b){a.raw_player_response={streamingData:b.streamingData};var d;if((d=b.playbackTracking)==null?0:d.qoeUrl)a.raw_player_response=Object.assign({},a.raw_player_response,{playbackTracking:{qoeUrl:b.playbackTracking.qoeUrl}});var e;if((e=b.videoDetails)==null?0:e.videoId)a.raw_player_response=Object.assign({},a.raw_player_response,{videoDetails:{videoId:b.videoDetails.videoId}})}}; +tR=function(a,b,c){var d=a.app.bf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a}; +sMa=function(a){var b=b===void 0?5:b;return a?rMa[a]||b:b}; +g.uR=function(){rR.apply(this,arguments)}; +tMa=function(a){fR(a,"getInternalApiInterface",a.getInternalApiInterface);fR(a,"addEventListener",a.k7);fR(a,"removeEventListener",a.tda);fR(a,"cueVideoByPlayerVars",a.O7);fR(a,"loadVideoByPlayerVars",a.u$);fR(a,"preloadVideoByPlayerVars",a.dda);fR(a,"getAdState",a.getAdState);fR(a,"sendAbandonmentPing",a.sendAbandonmentPing);fR(a,"setLoopRange",a.setLoopRange);fR(a,"getLoopRange",a.getLoopRange);fR(a,"setAutonavState",a.setAutonavState);fR(a,"seekTo",a.Sda);fR(a,"seekBy",a.Qda);fR(a,"seekToLiveHead", +a.seekToLiveHead);fR(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);fR(a,"seekToStreamTime",a.seekToStreamTime);fR(a,"startSeekCsiAction",a.startSeekCsiAction);fR(a,"getStreamTimeOffset",a.getStreamTimeOffset);fR(a,"getVideoData",a.j9);fR(a,"setInlinePreview",a.setInlinePreview);fR(a,"getAppState",a.getAppState);fR(a,"updateLastActiveTime",a.updateLastActiveTime);fR(a,"setBlackout",a.setBlackout);fR(a,"setUserEngagement",a.setUserEngagement);fR(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings); +fR(a,"getPresentingPlayerType",a.fK);fR(a,"canPlayType",a.canPlayType);fR(a,"updatePlaylist",a.updatePlaylist);fR(a,"updateVideoData",a.updateVideoData);fR(a,"updateEnvironmentData",a.updateEnvironmentData);fR(a,"sendVideoStatsEngageEvent",a.Xda);fR(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);fR(a,"setSafetyMode",a.setSafetyMode);fR(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)}); +fR(a,"getVideoAspectRatio",a.getVideoAspectRatio);fR(a,"getPreferredQuality",a.getPreferredQuality);fR(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);fR(a,"setPlaybackQualityRange",a.eea);fR(a,"onAdUxClicked",a.onAdUxClicked);fR(a,"getFeedbackProductData",a.getFeedbackProductData);fR(a,"getStoryboardFrame",a.getStoryboardFrame);fR(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);fR(a,"getStoryboardLevel",a.getStoryboardLevel);fR(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels); +fR(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);fR(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);fR(a,"addCueRange",a.addCueRange);fR(a,"addUtcCueRange",a.addUtcCueRange);fR(a,"showAirplayPicker",a.showAirplayPicker);fR(a,"dispatchReduxAction",a.dispatchReduxAction);fR(a,"getPlayerResponse",a.a9);fR(a,"getWatchNextResponse",a.o9);fR(a,"getHeartbeatResponse",a.V8);fR(a,"changeMarkerVisibility",a.changeMarkerVisibility);fR(a,"getCurrentTime",a.O8);fR(a,"getDuration",a.oY); +fR(a,"getPlayerState",a.getPlayerState);fR(a,"getPlayerStateObject",a.b9);fR(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);fR(a,"getProgressState",a.getProgressState);fR(a,"getVolume",a.getVolume);fR(a,"setVolume",a.BM);fR(a,"isMuted",a.isMuted);fR(a,"mute",a.lL);fR(a,"unMute",a.ZM);fR(a,"loadModule",a.loadModule);fR(a,"unloadModule",a.unloadModule);fR(a,"getOption",a.BY);fR(a,"getOptions",a.getOptions);fR(a,"setOption",a.setOption);fR(a,"loadVideoById",a.i_);fR(a,"loadVideoByUrl",a.j_);fR(a, +"playVideo",a.IS);fR(a,"loadPlaylist",a.loadPlaylist);fR(a,"nextVideo",a.nextVideo);fR(a,"previousVideo",a.previousVideo);fR(a,"playVideoAt",a.playVideoAt);fR(a,"getDebugText",a.getDebugText);fR(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);fR(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);fR(a,"getVideoContentRect",a.getVideoContentRect);fR(a,"setSqueezeback",a.setSqueezeback);fR(a,"setAutonav",a.setAutonav);fR(a,"isNotServable",a.isNotServable);fR(a,"channelSubscribed",a.channelSubscribed); +fR(a,"channelUnsubscribed",a.channelUnsubscribed);fR(a,"togglePictureInPicture",a.togglePictureInPicture);fR(a,"supportsGaplessAudio",a.supportsGaplessAudio);fR(a,"supportsGaplessShorts",a.supportsGaplessShorts);fR(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)}); +fR(a,"clearQueue",a.clearQueue);fR(a,"getAudioTrack",a.H8);fR(a,"setAudioTrack",a.Yda);fR(a,"getAvailableAudioTracks",a.K8);fR(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);fR(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);fR(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);fR(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);fR(a,"setMinimized",a.setMinimized);fR(a,"setOverlayVisibility",a.setOverlayVisibility);fR(a,"confirmYpcRental",a.confirmYpcRental); +fR(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);fR(a,"isSubtitlesOn",a.isSubtitlesOn);fR(a,"queueNextVideo",a.queueNextVideo);fR(a,"handleExternalCall",a.handleExternalCall);fR(a,"logApiCall",a.logApiCall);fR(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);fR(a,"setScreenLayer",a.setScreenLayer);fR(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);fR(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);fR(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);fR(a, +"syncVolume",a.syncVolume);fR(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);fR(a,"openSettingsMenuItem",a.openSettingsMenuItem);fR(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);fR(a,"getVisibilityState",a.getVisibilityState);fR(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);fR(a,"setGlobalCrop",a.setGlobalCrop);fR(a,"setInternalSize",a.setInternalSize);fR(a,"setFauxFullscreen",a.setFauxFullscreen)}; +wR=function(a,b,c){a=g.vR(a.Re(),b);return c?(c.addOnDisposeCallback(a),null):a}; +g.xR=function(a,b,c){return a.app.U().jf?b:g.DD("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})}; +uMa=function(a){a.Re().element.setAttribute("aria-live","polite")}; +g.yR=function(a,b){g.uR.call(this,a,b);tMa(this);hR(this,"addEventListener",this.m7);hR(this,"removeEventListener",this.vda);hR(this,"cueVideoByPlayerVars",this.P7);hR(this,"loadVideoByPlayerVars",this.v$);hR(this,"preloadVideoByPlayerVars",this.eda);hR(this,"loadVideoById",this.i_);hR(this,"loadVideoByUrl",this.j_);hR(this,"playVideo",this.IS);hR(this,"loadPlaylist",this.loadPlaylist);hR(this,"nextVideo",this.nextVideo);hR(this,"previousVideo",this.previousVideo);hR(this,"playVideoAt",this.playVideoAt); +hR(this,"getVideoData",this.KY);hR(this,"seekBy",this.Rda);hR(this,"seekTo",this.Uda);hR(this,"showControls",this.showControls);hR(this,"hideControls",this.hideControls);hR(this,"cancelPlayback",this.cancelPlayback);hR(this,"getProgressState",this.getProgressState);hR(this,"isInline",this.isInline);hR(this,"setInline",this.setInline);hR(this,"setLoopVideo",this.setLoopVideo);hR(this,"getLoopVideo",this.getLoopVideo);hR(this,"getVideoContentRect",this.getVideoContentRect);hR(this,"getVideoStats",this.m9); +hR(this,"getCurrentTime",this.Q8);hR(this,"getDuration",this.oY);hR(this,"getPlayerState",this.d9);hR(this,"getVideoLoadedFraction",this.k9);hR(this,"mute",this.lL);hR(this,"unMute",this.ZM);hR(this,"setVolume",this.BM);hR(this,"loadModule",this.loadModule);hR(this,"unloadModule",this.unloadModule);hR(this,"getOption",this.BY);hR(this,"getOptions",this.getOptions);hR(this,"setOption",this.setOption);hR(this,"addCueRange",this.addCueRange);hR(this,"getDebugText",this.getDebugText);hR(this,"getStoryboardFormat", +this.getStoryboardFormat);hR(this,"toggleFullscreen",this.toggleFullscreen);hR(this,"isFullscreen",this.isFullscreen);hR(this,"getPlayerSize",this.getPlayerSize);hR(this,"toggleSubtitles",this.toggleSubtitles);hR(this,"setCenterCrop",this.setCenterCrop);hR(this,"setFauxFullscreen",this.setFauxFullscreen);hR(this,"setSizeStyle",this.setSizeStyle);hR(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);hR(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);lMa(this)}; +g.zR=function(a){a=a.Bb();var b=a.He.get("endscreen");return b&&b.wv()?!0:a.JH()}; +g.AR=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.ib("onAutonavCancelled",b)}; +g.CR=function(a){var b=BR(a.Bb());return a.app.Aj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Gl()&&b.Yp()||!!a.getPlaylist()}; +g.DR=function(a,b,c){g.iR(a,"addEmbedsConversionTrackingParams",[b]);a.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(b,c)}; +g.FR=function(a){return(a=g.ER(a.Bb()))?a.iK():{}}; +g.vMa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"}; +g.GR=function(a,b,c){a=a.qb().element;var d=Zb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1}); +d<0&&(d=-(d+1));oe(a,b,d);b.setAttribute("data-layer",String(c))}; +g.HR=function(a){var b=a.U();if(!b.ge)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!$Q(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Gl();var f=c.Wa&&c.Wa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Ff&&f;return!c.ypcPreview&&(!d||e)&&!g.Mb(c.Ga,"ypc")&& +!a&&(!g.IO(b)||f)}; +wMa=function(a){a=g.qR(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.EU)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.oa("iqss",{trigger:d},!0),!0):!1}; +IR=function(){gt.apply(this,arguments);this.requestHeaders={}}; +fS=function(){bS||(bS=new IR);return bS}; +gS=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization}; +g.hS=function(a,b,c,d){d=d===void 0?!1:d;g.Nx.call(this,b);var e=this;this.J=a;this.Fa=d;this.N=new g.OE(this);this.qa=new g.Dy(this,c,!0,void 0,void 0,function(){e.gY()}); +g.P(this,this.N);g.P(this,this.qa)}; +xMa=function(a){a.B&&(document.activeElement&&g.qe(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.Ys(a.N);a.Y=void 0}; +iS=function(a,b,c){a.Ck()?a.Nb():a.pd(b,c)}; +jS=function(a,b,c,d){d=new g.T({I:"div",Na:["ytp-linked-account-popup-button"],va:d,X:{role:"button",tabindex:"0"}});b=new g.T({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",va:b},{I:"div",S:"ytp-linked-account-popup-description",va:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.hS.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.P(this,this.dialog); +d.listen("click",function(){e.Nb()}); +g.P(this,d);g.GR(this.J,this.element,4);this.hide()}; +g.kS=function(a,b,c,d){g.Nx.call(this,a);this.priority=b;c&&this.Tj(c);d&&this.Dd(d)}; +g.lS=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Na:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",va:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",va:"{{label}}"},{I:"div",S:"ytp-menuitem-content",va:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",va:"{{secondaryIcon}}"});return a}; +mS=function(a){g.kS.call(this,g.lS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Fb=a.Lm();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Mc(c)}); +this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; +nS=function(a){return a?g.Qx(a):""}; +oS=function(a){g.O.call(this);this.api=a}; +pS=function(a){oS.call(this,a);var b=this;fR(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)}); +fR(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)}); +a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)}); +a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new mS(b.api);g.P(b,b.menuItem)})}; +yMa=function(a){this.api=a;this.j={}}; +qS=function(a,b,c,d){b in a.j||(c=new g.qD(c,d,{id:b,priority:2,namespace:"appad"}),a.api.lf([c],1),a.j[b]=c)}; +rS=function(a){oS.call(this,a);var b=this;this.events=new g.OE(this);g.P(this,this.events);this.j=new yMa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); +this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;qS(d,"part2viewed",1,0x8000000000000);qS(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,qS(d,"videoplaytime25",c*.25,c),qS(d,"videoplaytime50",c*.5,c),qS(d,"videoplaytime75",c*.75,c),qS(d,"videoplaytime100",c,0x8000000000000),qS(d,"conversionview",c,0x8000000000000),qS(d,"videoplaybackstart",1,c),qS(d,"videoplayback2s",2E3,c),qS(d,"videoplayback10s",1E4,c))}); +this.events.T(this.api,g.sD("appad"),this.B);this.events.T(this.api,g.tD("appad"),this.B)}; +CMa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.w(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.Ho(c,d);d=void 0;d=d===void 0?!1:d;(d=jD(kD(c,zMa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=jD(kD(c,AMa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=jD(kD(c,BMa),c,d,"Nielsen OCR URL"));g.nv(c,void 0,d)}return!0}; +sS=function(a,b){DMa(a,b).then(function(c){g.nv(b,void 0,void 0,c)})}; +tS=function(a,b){b.forEach(function(c){sS(a,c)})}; +DMa=function(a,b){return g.OC(a.api.U())&&Er(b)&&Dr(b)?g.kP(a.api.U(),g.VQ(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):as()}; +EMa=function(a){oS.call(this,a);this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})), +contentCpn:b.clientPlaybackNonce}};g.Ht("adsClientStateChange",e)}})}; +uS=function(a){g.T.call(this,{I:"button",Na:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.xD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&& +FMa(this);wR(a,this.element,this);this.xD()}; +FMa=function(a){a.B.push(a.T(a.J,"videodatachange",a.xD));a.B.push(a.T(a.J,"videoplayerreset",a.xD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.xD));a.B.push(a.T(a.J,"autonavchange",a.OV))}; +GMa=function(a){a.isChecked=a.isChecked;a.Ea("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Autoplay is on":"Autoplay is off";a.updateValue("title",b);a.updateValue("label",b);a.J.Vh()}; +HMa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&lQ(a.Od())}; +IMa=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new uS(a);g.P(b,c);a.Cz(c)})}; +vS=function(a,b){g.kS.call(this,g.lS({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +wS=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))}; +JMa=function(a){var b=!a.U().Vk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b}; +g.xS=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.$y(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.mz(a,d,!0);return!1}; +g.yS=function(a,b,c){if($O(b.U())&&b.getPresentingPlayerType()!==2){if(g.$y(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.$y(c);d&&b.pauseVideo();g.mz(a,void 0,!0);d&&(g.nz(a),c.preventDefault())}return!1}; +LMa=function(){var a=KMa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a}; +zS=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}}; +AS=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}}; +DS=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";vS.call(this,b,g.BS.o4);var c=this;this.J=a;this.j=!1;this.B=new g.fp(function(){g.pp(c.element,"ytp-menuitem-highlighted")},0); +this.Fb=a.Lm();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(CS,this.D);g.P(this,this.B)}; +ES=function(a){oS.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){MMa(b)}); +a.addEventListener("highlightSettingsMenu",function(c){MMa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.np(d.element,"ytp-menuitem-highlighted"),g.np(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())}); +fR(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})}; +MMa=function(a){a.menuItem||(a.menuItem=new DS(a.api),g.P(a,a.menuItem),a.menuItem.Ta(a.j))}; +FS=function(a,b,c,d){vS.call(this,"Stable Volume",g.BS.R6);g.np(this.element,"ytp-drc-menu-item");this.Fb=a.Lm();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", +fill:"white"}}]});this.subscribe("select",this.B,this);wS(this,a);this.Fb.Uc(this)}; +GS=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new FS(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.P(b,b.menuItem))}); +fR(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)}); +fR(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); +fR(this.api,"hasDrcAudioTrack",function(){return b.B()}); +var c;this.j=(c=g.ct("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; +HS=function(a){oS.call(this,a);var b=this;this.j={};this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}); +this.events.T(a,g.sD("embargo"),function(c){b.api.Uo(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.w(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Lf("auth",2,"This video isn't available in your current playback area",EE({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.ib("innertubeCommand",f)}})}; +NMa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)}; +OMa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}}; +IS=function(a){oS.call(this,a);var b=this;this.j=[];this.events=new g.OE(a);g.P(this,this.events);fR(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Bp&&b.addEmbedsConversionTrackingParams(c)}); +this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=Kg(c.visualElement.getAsJspb(),2),b.j.push(c))})}; +PMa=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){PK(OK(),16623);b.j=g.Ww();var d=a.U().Fi&&!c.Ig;if(TQ(c)&&d){PK(OK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&RK(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&RK(c)}}else PK(OK(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&RK(h)}); +this.events.T(a,"loadvideo",function(){PK(OK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.T(a,"cuevideo",function(){PK(OK(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.T(a,"largeplaybuttonclicked",function(c){PK(OK(),27240,c.visualElement)}); +this.events.T(a,"playlistnextbuttonclicked",function(c){PK(OK(),27240,c.visualElement)}); +this.events.T(a,"playlistprevbuttonclicked",function(c){PK(OK(),27240,c.visualElement)}); +this.events.T(a,"playlistautonextvideo",function(){PK(OK(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +JS=function(a){g.O.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)}; +RMa=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){QMa(b)})}; +QMa=function(a){a.j=new JS(a.api.getRootNode());g.P(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.aP();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})}; +SMa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null}; +KS=function(a){g.T.call(this,{I:"div",Na:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",va:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",va:"\u2022"},{I:"span",va:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +UMa=function(a,b){a.j||(a.B=b,a.C=(0,g.Zt)(),a.j=new g.ep(function(){TMa(a)},null),TMa(a))}; +TMa=function(a){var b=Math,c=b.round,d=Math.min((0,g.Zt)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",IK({seconds:b}));b<=0&&a.j?LS(a):a.j&&a.j.start()}; +LS=function(a){a.j&&(a.j.dispose(),a.j=null)}; +VMa=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new KS(a);g.P(b,b.j);g.GR(a,b.j.element,4);b.j.hide()})}; +MS=function(a){g.T.call(this,{I:"button",Na:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Na:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",Na:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.Dy(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.P(this, +this.j);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()}; +NS=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);fR(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)}); +fR(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)}); +var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&$O(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new MS(a);g.P(b,b.j);a.Cz(b.j)})}; +WMa=function(a){g.T.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Na:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.Vx()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-gated-actions-overlay-subtitle", +va:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ea("ytp-gated-actions-overlay-background");this.B=this.Ea("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ea("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ib("onCloseMiniplayer")}); +this.hide()}; +YMa=function(a,b){var c=0;c=0;for(var d={};c +e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;YMa(c,d.actionButtons||[]);c.show()}else c.hide()}); +g.GR(this.api,this.j.element,4)}; +$Ma=function(a){oS.call(this,a);var b=this;this.j=null;this.events=new g.OE(a);g.P(this,this.events);var c=a.U();c.Nj=!1;c.Ya=!1;c.tm=!1;hR(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()}); +hR(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()}); +hR(a,"updateSubtitlesUserSettings",function(f){a.updateSubtitlesUserSettings(f)}); +hR(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})}); +hR(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()}); +hR(a,"getPreferredQuality",function(){return a.getPreferredQuality()}); +hR(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()}); +hR(a,"setPlaybackQuality",function(f){a.setPlaybackQuality(f)}); +var d=this.api.bj(),e=d.subscribe("visibilitystatechange",function(){a.Hc("onPictureInPictureChange",d.Dj())}); +this.addOnDisposeCallback(function(){d.uh(e)}); +hR(a,"setRootNodeClickAction",function(f){b.j=f}); +this.events.T(a.getRootNode(),"click",function(){switch(b.j){case "togglePictureInPicture":a.togglePictureInPicture();break;case "play":a.playVideo()}})}; +aNa=function(a){oS.call(this,a);a=a.U();a.wh.push("flix");a.Ya=!1;a.Nj=!1}; +OS=function(a){oS.call(this,a);var b=this;hR(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); +hR(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.x(g.Ca.apply(0,arguments)))}); +gR(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()}); +gR(this.api,"setSphericalProperties",function(){var c=g.Ca.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.x(c))})}; +PS=function(a){oS.call(this,a);fR(a,"createClientVe",this.createClientVe.bind(this));fR(a,"createServerVe",this.createServerVe.bind(this));fR(a,"destroyVe",this.destroyVe.bind(this));fR(a,"hasVe",this.hasVe.bind(this));fR(a,"logClick",this.logClick.bind(this));fR(a,"logVisibility",this.logVisibility.bind(this));fR(a,"setTrackingParams",this.setTrackingParams.bind(this))}; +QS=function(a){oS.call(this,a);var b=this;this.events=new g.OE(a);g.P(this,this.events);fR(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}); +fR(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}); +fR(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})}; +RS=function(a,b,c){var d=a.api.getCurrentTime()*1E30&&e>0&&(c.width+=e,g.jm(b.element,"width",c.width+"px")));a.size=c}}; +g.hT=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),gT(a,c,b))}; +g.iT=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];gT(a,b,c,!0)}}; +gT=function(a,b,c,d){tNa(a);b&&(b.unsubscribe("size-change",a.HC,a),b.unsubscribe("back",a.hj,a));c.subscribe("size-change",a.HC,a);c.subscribe("back",a.hj,a);if(a.Hb){g.np(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;sNa(a);g.um(a.element,e);a.G=new g.fp(function(){uNa(a,b,c,d)},20,a); +a.G.start()}else c.Ja(a.element),b&&b.detach()}; +uNa=function(a,b,c,d){a.G.dispose();a.G=null;g.np(a.element,"ytp-popup-animating");d?(g.np(b.element,"ytp-panel-animate-forward"),g.pp(c.element,"ytp-panel-animate-back")):(g.np(b.element,"ytp-panel-animate-back"),g.pp(c.element,"ytp-panel-animate-forward"));g.um(a.element,a.size);a.K=new g.fp(function(){g.pp(a.element,"ytp-popup-animating");b.detach();g.qp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a); +a.K.start()}; +tNa=function(a){a.G&&g.hp(a.G);a.K&&g.hp(a.K)}; +jT=function(a){g.fT.call(this,a,"ytp-shopping-product-menu");this.Oe=new g.dT(this.J);g.P(this,this.Oe);this.hide();g.hT(this,this.Oe);g.GR(this.J,this.element,4)}; +wNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=vNa(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.ib("innertubeCommand",b.navigationEndpoint);a.hide()},a))}; +xNa=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&vNa(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.ib("innertubeCommand",b.serviceEndpoint);a.hide()},a)}; +vNa=function(a,b,c,d,e){b=new g.kS(g.lS({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",yNa(e));b.setIcon(yNa(d));g.P(a,b);a.Oe.Uc(b,!0);return b}; +yNa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return psa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return Zx()}}; +kT=function(a){bT.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.T({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.T({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.T({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.T({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",va:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",va:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text", +va:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.sD("suggested_action_view_model"),this.Maa);this.T(this.J,g.tD("suggested_action_view_model"),this.Naa);this.T(this.overflowButton.element,"click",this.I5);this.T(a,"featuredproductdismissed",this.Ru);this.J.createServerVe(this.banner.element,this.banner,!0)}; +lT=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,aT(a),a.Vl(),g.Mx(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.Mx(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.Mx(a.overflowButton,a.isVisible))}; +mT=function(){kT.apply(this,arguments)}; +zNa=function(a){oS.call(this,a);this.j=new mT(this.api);g.P(this,this.j);g.GR(this.api,this.j.element,4)}; +nT=function(a){oS.call(this,a);var b=this;this.j="";this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.w(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}}); +this.events.T(a,"videoplayerreset",function(){b.j&&ANa(b)}); +this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})}; +ANa=function(a){var b=a.api.Vc();b&&(b.getVideoData().pfa=a.j)}; +g.oT=function(a,b,c,d,e,f,h){g.kS.call(this,g.lS({"aria-haspopup":"true"}),b,a);this.Fb=d;this.K=!1;this.C=null;this.options={};this.B=new g.dT(c,void 0,a,e,f,h);g.P(this,this.B);this.listen("keydown",this.J5);this.listen("click",this.open)}; +BNa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}}; +g.pT=function(a,b){g.eT(a.B);for(var c={},d=!1,e=0;ef.start&&d>=5;A+=H}y=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else y="";m={video_id_and_cpn:String(c.videoId)+" / "+y,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none", +playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=PLa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Hj.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");m.volume=N;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(N=e.video)a=N.fps,a>1&&(m.resolution+="@"+a), +(a=g.JT(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=KNa(e),!c.D||e.audio&&e.video?e.M_&&(m.codecs+=" / "+e.M_+"A"):m.codecs+=" / "+KNa(c.D),N.B||N.primaries?(a=N.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(N.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.w(e.debugInfo),N=e.next();!N.done;N=e.next())N=N.value, +m.fmt_debug_info+=N.label+":"+N.text+" ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.Wd;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(iQ(c)?" Manifestless":"");else if(e){N=IT(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=iQ(c)?"Manifestless, ":"";c.Ka&&(e+="Windowed, ");a="Uncertain";if(N>=0&&N<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")switch(c.latencyClass){case "NORMAL":a= +"Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples= +HT(l,"bandwidth");m.network_activity_samples=HT(l,"networkactivity");m.live_latency_samples=HT(l,"livelatency");m.buffer_health_samples=HT(l,"bufferhealth");b=g.YQ(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?"":"display:none";dQ(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240730_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60? +m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m}; +KNa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag}; +KT=function(a,b,c,d,e){g.T.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"}; +LT=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.je("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c1?2:1,a.C.height=a.heightPx*c,a.C.style.height= +a.heightPx+"px",a.B.scale(1,c)));b=g.w(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+20&&(a.G=g.Lr(function(){QT(a)},b)),a.D=!0)}; +QT=function(a){var b,c,d,e;g.J(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.pr("EOM_VISITOR_DATA")||g.pr("VISITOR_DATA");d=b.gm?b.datasyncId:c;e=jO(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Uf=bOa(a,e);g.ua(f)})}; +bOa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Lb.wg(c?"pot_cms":"pot_csms");var d=a.j.lG({Ar:b,hk:{pE:b,v_:150,UI:!0,JM:!0}});a.Lb.wg(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.qR(a.api.app))==null?void 0:f.ya;h&&h.mB(!1)}}return d}catch(l){return g.fx(l),""}}; +XNa=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new FF),a.j.ready().then(function(){a.Lb.wg("pot_if");QT(a)}))}; +cOa=function(a){oS.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.OE(a);g.P(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}); +fR(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}); +fR(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})}; +RT=function(a){g.O.call(this);this.features=[];var b=this.j,c=new PS(a),d=new pS(a),e=new WS(a),f=new PT(a);var h=g.MC(a.U())?void 0:new HS(a);var l=new US(a),m=new ONa(a),n=new WNa(a),p=new OS(a);var q=g.MC(a.U())?new cOa(a):void 0;var r=a.L("html5_enable_ssap")?new CT(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new ES(a):void 0;var u=new NS(a);var y=a.L("enable_courses_player_overlay_purchase")?new ZMa(a):void 0; +var A=g.bP(a.U())?new VMa(a):void 0;var D=new IS(a);var F=a.U().D?new PMa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().ge?new IMa(a):void 0;var M=g.bP(a.U())?new QS(a):void 0;var N=a.L("web_enable_speedmaster")&&g.bP(a.U())?new zT(a):void 0;var Q=a.U().Xk?void 0:new VNa(a);var Z=a.L("report_pml_debug_signal")?new EMa(a):void 0;var fa=new VS(a),pa=new ZS(a);var Y=a.L("enable_web_player_player_in_bar_feature")&&g.hz(a.U())?new pNa(a):void 0;var S=a.U().playerStyle==="flix"?new aNa(a): +void 0;var W=navigator.mediaSession&&window.MediaMetadata&&a.U().Nj?new SS(a):void 0;var v=a.L("html5_enable_drc")&&!a.U().K?new GS(a):void 0;var V=new rS(a);var cb=a.U();var zb=cb.K&&((zb=cb.getWebPlayerContextConfig())==null?void 0:zb.houseBrandEnvironment)==="apps-elements"?new $Ma(a):void 0;cb=g.bP(a.U())?new zNa(a):void 0;var Ra=a.L("html5_enable_d6de4")?new XS(a):void 0;var db=g.bP(a.U())&&a.L("web_sleep_timer")?new rT(a):void 0;var ab=g.IO(a.U())?new RMa(a):void 0;a=a.L("html5_enable_audio_track_stickiness")? +new nT(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,Q,Z,fa,pa,Y,S,W,v,V,zb,cb,Ra,db,ab,void 0,a)}; +ST=function(){this.B=this.j=NaN}; +dOa=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new ST;this.j=b||null;this.C=!1}; +eOa=function(a,b,c){var d=g.OO(b.Da)&&!b.Da.K;if(b.Da.Yj&&(KO(b.Da)||b.Da.Ma==="shortspage"||hP(b.Da)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.pr("TIMING_ACTION")||or("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&or("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Wh();for(var e=g.w(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,pA(f,d[f],a.timerName);d=g.tr(Eta)(a.j.tJ);g.qA(d,a.timerName);d=a.j;d.B={};d.tJ={}}g.qA({playerInfo:{visibilityState:g.tr(Dta)()},playerType:"LATENCY_PLAYER_HTML5"}, +a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(sA("_start",a.timerName)?c=g.tr(kA)("_start",a.timerName)+a.B:g.fx(new g.pt("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!sA("pbs",a.timerName)&&a.tick("pbs",c)}}; +fOa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Ba){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.uJ;var l={};if(d==null?0:d.K)l.cttAuthInfo={token:d.K,videoId:d.videoId};e&&(l.startTime=e);rA(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce}; +c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.qA(d,a);pA("pbs",h!=null?h:(0,g.Zt)(),a)}}; +TT=function(a){Ota();Nta();a.timerName=""}; +gOa=function(a){if(a.j){var b=a.j;b.B={};b.tJ={}}a.C=!1;a.G=void 0;a.B=NaN}; +hOa=function(a,b){g.Fx.call(this);this.Da=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=vr(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= +b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new AP("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.BP(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.w(a);for(c=a.next();!c.done;c=a.next())(c= +c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=wP(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]}; +iOa=function(a){return!!(a.playlist||a.list||a.api)}; +jOa=function(a){var b=a.index+1;return b>=a.length?0:b}; +kOa=function(a){var b=a.index-1;return b<0?a.length-1:b}; +g.UT=function(a,b,c,d){b=b!==void 0?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.WP(a.Da,b),g.P(a,e),e.zn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e}; +lOa=function(a,b){a.index=g.Dd(b,0,a.length-1);a.startSeconds=0}; +mOa=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.UT(a);a.items=[];for(var d=g.w(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}}; +pOa=function(a,b){var c,d,e,f,h,l,m;return g.J(function(n){if(n.j==1){c=g.IA();var p=a.U(),q={context:g.dR(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r= +b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var u,y,A,D,F,H;r=((H=g.R((u=r)==null?void 0:(y=u.embedPreview)==null?void 0:(A=y.thumbnailPreviewRenderer)==null?void 0:(D=A.playButton)==null?void 0:(F=D.buttonRenderer)==null?void 0:F.navigationEndpoint,g.mQ))==null?void 0:H.videoId)||null}else r=null}u=(u=r)?u:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var M;A==="user_uploads"?M={username:y}:M={playlistId:y};nOa(p,u,b,M);q.playlistRequest= +M}else b.playlist?(M={templistVideoIds:b.playlist.toString().split(",")},nOa(p,u,b,M),q.playlistRequest=M):u&&(M={videoId:u},p&&(M.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=M);d=q;e=g.yz(oOa);g.va(n,2);return g.G(n,g.xA(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ga=Es(b,g.IO(h)),h.C=h.Ga==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&RK(l.trackingParams)),n.return(new g.WP(h,b));m=g.xa(n);m instanceof Error||(m=Error("b259802748"));g.ex(m);return n.return(a)})}; +nOa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)}; +g.WT=function(a,b){VT.get(a);VT.set(a,b)}; +g.XT=function(a){g.Fx.call(this);this.loaded=!1;this.player=a}; +qOa=function(){this.B=[];this.j=[]}; +g.ZT=function(a,b){return b?a.j.concat(a.B):a.j}; +g.$T=function(a,b){switch(b.kind){case "asr":rOa(b,a.B);break;default:rOa(b,a.j)}}; +rOa=function(a,b){g.Kb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)}; +g.aU=function(a){g.O.call(this);this.W=a;this.B=new qOa;this.G=[];this.Z=[];this.D=new g.oj}; +g.bU=function(a,b,c){g.aU.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.gw;this.Z=b.HD;this.C=g.RQ(b)}; +sOa=function(){this.sj=!1}; +tOa=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.BF===void 0?!1:b.BF;var c=new sOa;c.sj=a||b;return c}; +g.uOa=function(a){this.Da=a;this.N=new sOa;this.Nv=this.Mv=!1;this.hq=2;this.Va=20971520;this.Fa=8388608;this.Ga=120;this.yq=g.AC(this.Da.experiments,"html5_min_readbehind_secs");this.aE=g.AC(this.Da.experiments,"html5_min_readbehind_cap_secs");this.Xk=this.Da.L("html5_offline_reset_media_stream_on_unresumable_slices");this.ub=NaN;this.gw=this.fm=this.Xw=2;this.al=cU(this,"html5_request_size_min_kb",64)*1024;this.Wa=2097152;this.wB=cU(this,"html5_bypass_contention_secs");this.ew=1048576;this.qm=!1; +this.Zk=cU(this,"html5_repredict_interval_ms",1800);this.VD=cU(this,"html5_head_miss_secs",5);this.XE=cU(this,"html5_min_upgrade_health_secs",10);this.Kb=15;this.Ui=1;this.Z=1.15;this.Y=1.05;this.hm=1;this.bE=cU(this,"html5_min_seconds_between_format_selections",8);this.UD=cU(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Zs=iO;this.Mj=this.Fd=!1;this.Jq=6;this.C=!1;this.Vk=g.AC(this.Da.experiments,"html5_min_startup_buffered_media_duration_secs");this.Ov=g.AC(this.Da.experiments,"html5_post_interrupt_readahead"); +this.WA=this.Da.L("html5_allow_onesie_for_ssap");this.FC=this.Da.L("html5_disable_classic_alr");this.Qv=g.AC(this.Da.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.xw=100;this.Ej=10;this.TF=6;this.qw=cU(this,"html5_ssdai_failure_retry_limit",3);this.pm=this.Da.experiments.kb("html5_clone_original_for_fallback_location");this.qo=!1;this.Rc=g.AC(this.Da.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Zj=g.AC(this.Da.experiments,"html5_subsegment_readahead_timeout_secs"); +this.ID=g.AC(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Yj=g.AC(this.Da.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.KD=g.AC(this.Da.experiments,"html5_subsegment_readahead_min_load_speed");this.ww=g.AC(this.Da.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.MD=g.AC(this.Da.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Hj=cU(this,"html5_hopeless_secs",15);this.Cp=1;this.ge=!1;this.hD= +this.Da.L("html5_restrict_streaming_xhr_on_sqless_requests");this.XD=g.AC(this.Da.experiments,"html5_max_headm_for_streaming_xhr");this.cH=this.Da.L("html5_pipeline_manifestless_allow_nonstreaming");this.sI=this.Da.L("html5_prefer_server_bwe3");this.PD=this.Da.L("html5_last_slice_transition");this.ED=this.Da.L("html5_store_xhr_headers_readable");this.ow=this.Tf=this.vk=!1;this.Zp=g.AC(this.Da.experiments,"html5_max_drift_per_track_secs");this.Fq=this.Da.L("html5_no_placeholder_rollbacks");this.GD= +this.Da.L("html5_subsegment_readahead_enable_mffa");this.wh=this.Da.L("html5_allow_video_keyframe_without_audio");this.rG=this.Da.L("html5_enable_vp9_fairplay");this.Jb=!0;this.Qf=this.Xa=this.Zd=!1;this.Cn=!0;this.hw=!1;this.D="";this.QC=1048576;this.Pf=[];this.VC=this.Da.L("html5_woffle_resume");this.Yl=this.Da.L("html5_abs_buffer_health");this.LD=this.Da.L("html5_interruption_resets_seeked_time");this.YD=g.AC(this.Da.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ra=!1;this.Ap= +this.Da.L("html5_log_additional_source_buffer_updates");this.yp=this.Da.L("html5_explicitly_dispose_xhr");this.Rv=!1;this.gm=!this.Da.L("html5_encourage_array_coalescing");this.nm=!1;this.fD=this.Da.L("html5_restart_on_unexpected_detach");this.wj=0;this.Ob="";this.FD=this.Da.L("html5_filter_non_efficient_formats_for_safari");this.Da.L("html5_format_hybridization");this.yA=this.Da.L("html5_abort_before_separate_init");this.jD=ps();this.CD=this.Da.L("html5_serialize_server_stitched_ad_request");this.JB= +this.Da.L("html5_skip_buffer_check_seek_to_head");this.kf=!1;this.Zl=this.Da.L("html5_attach_po_token_to_bandaid");this.iq=g.AC(this.Da.experiments,"html5_max_redirect_response_length")||8192;this.fl=this.Da.L("html5_rewrite_timestamps_for_webm");this.Tb=this.Da.L("html5_only_media_duration_for_discontinuities");this.dD=g.AC(this.Da.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Da.L("html5_onesie_live");this.OD=this.Da.L("html5_onesie_premieres");this.jz=this.Da.L("html5_drop_onesie_for_live_mode_mismatch"); +this.ZF=g.AC(this.Da.experiments,"html5_onesie_live_ttl_secs")||8;this.Wq=g.AC(this.Da.experiments,"html5_attach_num_random_bytes_to_bandaid");this.jG=g.AC(this.Da.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.yw=this.Da.L("html5_update_container_type_on_codec_family_change");this.Rf=this.Da.L("html5_apply_ssap_slice_info_adjustment");this.gD=this.Da.L("html5_enable_sabr_host_fallback");this.qa=!1;this.OC=this.Da.L("html5_disable_ssap_append_pause");this.Bn=this.Da.L("html5_init_source_buffer_after_metadata"); +this.HD=this.Da.L("html5_gapless_fallback_on_append_error");this.Aw=!1;this.Ka=this.Da.L("html5_ssdai_use_post_for_media")&&this.Da.L("gab_return_sabr_ssdai_config");this.QD=this.Da.L("html5_use_post_for_media");this.Wc=this.Da.L("html5_use_live_ump_heartbeat");this.Jw=this.Da.L("html5_use_sps_ump_part");this.JD=this.Da.L("html5_handle_sps_status");this.Bj=this.Da.L("html5_enable_sps_non_fatal_logs");this.BD=this.Da.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Da.L("html5_use_ump");this.fb= +this.Ma=!1;this.rI=this.Da.Tf;this.bD=this.Da.L("html5_reset_primary_stats_on_redirector_failure");this.UC=this.Da.L("html5_remap_to_original_host_when_redirected");this.tm=this.zj=this.B=this.En=!1;this.Wi=this.Da.L("html5_enable_sabr_format_selection");this.Dn=this.Da.L("html5_sabr_support_quality_constraints");this.WC=this.Da.L("html5_sabr_remove_all_quality_constraints");this.WB=this.Da.L("html5_iterative_seeking_buffered_time");this.Xl=this.Da.L("html5_use_network_error_code_enums");this.NC= +this.Da.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation=this.Da.L("html5_enable_server_driven_request_cancellation");this.iD=this.Da.L("html5_enable_sabr_request_timing");this.wp=this.Da.L("html5_enable_server_format_filter");this.iz=this.Da.L("html5_drc_edit_sync_workaround");this.XC=this.Da.L("html5_enable_lawnmower");this.aD=this.Da.L("html5_enable_lawnmower_messaging");this.Fi=this.Da.Ac()?g.AC(this.Da.experiments,"html5_continuous_goodput_probe_interval_ms"): +0;this.ND=g.AC(this.Da.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Tq=g.AC(this.Da.experiments,"html5_normal_latency_mffa_ms")||NaN;this.SF=g.AC(this.Da.experiments,"html5_mffa_ms_proxima_override")||this.Tq;this.TD=this.Da.L("html5_live_defrag_only_h264_playbacks");this.RD=this.Da.L("html5_live_defrag_only_h264_formats");this.TC=this.Da.L("html5_record_now");this.Sf=!1;this.zn=g.AC(this.Da.experiments,"html5_drm_byterate_soft_cap");this.An=g.AC(this.Da.experiments,"html5_drm_live_byterate_soft_cap"); +this.Bp=this.Uv=!1;this.Ba=this.Da.L("html5_sabr_log_request_creation");this.wc=this.Da.L("html5_sabr_report_request_cancellation_info");this.Uf=this.fz=this.uw=!1;this.pw=this.Da.L("html5_spoof_4k");this.lq=cU(this,"html5_min_media_duration_for_cabr_slice");this.ZD=this.gm?0:cU(this,"html5_min_media_duration_for_append_prop");this.YC=this.Da.L("html5_remove_defrag_without_frame_level_streaming");this.Ie=!0;this.ZB=this.Da.L("html5_consume_all_buffered_bytes_one_poll");this.PC=this.Da.L("html5_disable_urgent_adaptation"); +this.nB=this.Da.L("html5_apply_constraints_in_client_for_sabr");this.mw=this.Da.L("html5_send_video_playback_ustreamer_config");this.Pp=cU(this,"html5_max_discontinuity_rewrite_count");this.zp=cU(this,"html5_fixed_media_duration_for_request");this.bk=this.Da.L("html5_use_init_selected_audio");this.Ya=!1;this.jf=cU(this,"html5_sabr_request_limit_per_period");this.Lv=this.xp=this.G=this.lw=!1;this.yc=this.Da.L("html5_sabr_live_partial_segment");this.ze=this.Da.L("html5_sabr_dispose_media_objects"); +this.yn=!1;this.Fj=this.Da.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Pv=this.Nj=!1;this.cD=this.Da.L("html5_enable_d6de4");this.VA=this.Da.L("html5_account_for_delayed_buffer_range_creation");this.SD=this.Da.L("html5_ssap_keep_only_ssap_eos_check");this.Da.L("html5_high_res_seek_logging");this.ob=this.Da.L("html5_update_buffer_timeline_until_update_end");this.Ig=this.yb=!1;this.DD=this.Da.L("html5_enable_ssap_multi_audio_format_filtering");this.eD=this.Da.L("html5_enable_po_token_live_caption"); +this.Bw=this.nw=this.ra=this.Ab=!1;this.jw=this.Da.L("html5_sabr_fail_request_after_handle_available_slices");this.Zq=g.AC(this.Da.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Tv=!1;this.Ed=this.Da.L("html5_append_pause_high_res_logging");this.zw=this.bl=this.Sv=!1}; +vOa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Mv&&(a.Va=36700160,a.Fa=5242880,a.Wa=Math.max(4194304,a.Wa),a.Mv=!0);b.video.j>2160&&!a.Nv&&(a.Va=104857600,a.ub=13107200,a.Nv=!0);g.AC(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.ks()&&g.is("samsung")&&(g.is("kant")||g.is("muse"))&&(a.ub=g.AC(a.Da.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.ks()&&g.is("kant")&&(a.ub=1310720);a.zn!==0&&b.isEncrypted()&&(a.ub=a.zn);a.An!==0&&b.isEncrypted()&& +c&&(a.ub=a.An);b.ub&&(a.ew=Math.max(a.al,Math.min(a.Wa,5*b.ub)))}; +wOa=function(a){cU(a,"html5_max_platform_audio_megabytes")<=0||!a.B||!g.OC(a.Da)||(a.Fa=Math.max(cU(a,"html5_max_platform_audio_megabytes")*1048576,a.Fa))}; +dU=function(a){return a.B&&a.Wi}; +eU=function(a){return a.B&&a.zj&&a.playbackStartPolicy}; +xOa=function(a,b,c,d){a.zj&&(a.playbackStartPolicy=b,a.qI=c,a.dI=d)}; +cU=function(a,b,c){return g.AC(a.Da.experiments,b)||(c===void 0?0:c)}; +g.yOa=function(a,b){return hF(a.info.mimeType)?b?a.info.itag===b:!0:!1}; +g.zOa=function(a,b){if(a.j!=null&&g.MC(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.Vb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.yOa(c,"386")}); +a=!!a.j&&!a.j.isManifestless&&aIa(a.j);return b||a}; +g.fU=function(a,b,c,d,e,f){g.aU.call(this,a);this.videoId=c;this.rZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.zr(b).hl||"";a=a.split("_").join("-");this.C=g.Ar(b,{hl:a})}; +iU=function(a,b){var c=this;this.currentState=0;this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){gU(c,d)},function(d){hU(c,d)})}; +jU=function(a){return new iU(1,{result:a})}; +kU=function(a){return new iU(0,{promise:a})}; +lU=function(a){return new iU(2,{error:a})}; +nU=function(a,b){var c=kU();a.onSuccess.push(function(d){gU(c,d)}); +a.onFailure.push(function(d){try{var e=b(d);gU(c,e)}catch(f){hU(c,f)}}); +mU(a);return c}; +gU=function(a,b){if(b&&typeof b==="object"){if("then"in b){b.then(function(c){gU(a,c)},function(c){hU(a,c)}); +return}if(b instanceof iU){b.mf(function(c){gU(a,c)}); +nU(b,function(c){hU(a,c)}); +return}}a.currentState=1;a.result=b;mU(a)}; +hU=function(a,b){a.currentState=2;a.error=b;mU(a)}; +mU=function(a){if(a.currentState===1){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState===2)for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)}; +AOa=function(a,b){this.B=a;this.j=b;this.onFailure=void 0}; +BOa=function(a,b){return{Ez:a.Ez&&b.Ez,wd:a.wd&&b.wd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}}; +oU=function(a,b){var c=COa,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={Ez:!!this.C,wd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new AOa([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming}, +bx:function(){return WebAssembly.compileStreaming(fetch(d.path))}, +onFailure:function(){return d.capabilities.streaming=!1}}, +{name:"sync",condition:function(e){return e.sync}, +bx:function(){return DOa(d).mf(function(e){return new WebAssembly.Module(e)})}, +onFailure:function(){return d.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +bx:function(){return DOa(d).mf(function(e){return WebAssembly.compile(e)})}, +onFailure:function(){return d.capabilities.wd=!1}}]); +this.K=new AOa([{name:"instantiateStreaming",condition:function(e){return e.wd&&e.streaming&&!d.B&&!d.j}, +bx:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=jU(h.module);return{instance:h.instance,Bo:!1}})}, +onFailure:function(){return d.capabilities.streaming=!1}}, +{name:"sync",condition:function(e){return e.wd&&e.sync}, +bx:function(e,f){return EOa(d,e).mf(function(h){return{instance:new WebAssembly.Instance(h,f),Bo:!1}})}, +onFailure:function(){return d.capabilities.sync=!1}}, +{name:"async",condition:function(e){return e.wd}, +bx:function(e,f){return EOa(d,e).mf(function(h){return WebAssembly.instantiate(h,f)}).mf(function(h){return{instance:h, +Bo:!1}})}, +onFailure:function(){return d.capabilities.wd=!1}}, +{name:"asmjs",condition:function(e){return e.Ez}, +bx:function(e,f){return kU(d.C(f).then(function(h){return{instance:{exports:h},Bo:!0}}))}, +onFailure:function(){return d.capabilities.Ez=!1}}],function(e,f,h){return d.D(h,e.instance.exports)})}; +HOa=function(a){var b=FOa;return b.instantiate(a?BOa(b.capabilities,a):b.capabilities,new GOa)}; +DOa=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=jU(c); +return c}).then(void 0,function(c){g.fx(Error("wasm module fetch failure: "+c.message,{cause:c})); +a.B=void 0;throw c;}); +a.B=kU(b);return a.B}; +EOa=function(a,b){if(!b.wd)return lU(Error("wasm unavailable"));if(a.j)return a.j;a.j=nU(a.compile(b).mf(function(c){a.j=jU(c);return c}),function(c){g.fx(Error("wasm module compile failure: "+c.message,{cause:c})); +a.j=void 0;throw c;}); +return a.j}; +IOa=function(){}; +JOa=function(){}; +GOa=function(){this.env=new IOa;this.wasi_snapshot_preview1=new JOa}; +COa=function(a,b){a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}}; +pU=function(a,b){this.instance=a;this.Bo=b;this.exports=this.instance.exports}; +LOa=function(a,b,c){c=c===void 0?!1:c;var d=qU.zC();return KOa(a,b,{Ez:c,wd:!0,sync:!0,streaming:!0}).mf(function(e){qU.fA(e.Bo?"winitjs":"winit",d);return e})}; +KOa=function(a,b,c){FOa||(FOa=new oU(a,b));return HOa(c).mf(function(d){return new pU(d.instance,d.Bo)})}; +MOa=function(a,b){g.O.call(this);var c=this;this.J=a;this.j=b;this.tJ={};this.B={};this.C=null;this.D=new Set;this.G=new g.OE(this);this.hd={hoa:function(){return c.j}}; +this.K=this.J.L("web_player_defer_modules");this.He=new Map;g.P(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)}; +g.rU=function(a){return a.He.get("captions")}; +SOa=function(a,b){switch(b){case "ad":return NOa(a);case "annotations_module":return a.J.jd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.IU||a.controlsType==="3"?!1:a.Ka.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Xa||!!g.OQ(b)||!!g.PQ(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return OOa(a);case "embed":return g.IO(a.J.U());case "endscreen":return g.POa(a);case "heartbeat":return a.HT();case "inline_preview":return a.J.U().showInlinePreviewUi; +case "kids":return VO(a.J.U());case "remote":return a.J.U().Mj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().Ej;case "captions":return QOa(a);case "unplugged":return g.PO(a.J.U());case "ux":return a.J.U().Ya;case "webgl":return ROa(a);case "ypc":return a.JH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Fi&&!a.SF;case "yto":return!!a.J.getVideoData().Ga.includes("yto");default:return g.ex(Error("Module descriptor "+b+" does not match")),!1}}; +sU=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.He.get(b);if(!h||d)if(e||(e=function(){sU(a,b,c,d)}),f||(f=function(){a.J.Dg(b)}),h=h||TOa(a,b,SOa(a,b),e,f))a.He.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Ai("onApiChange")}; +VOa=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.J(function(l){if(l.j==1)return(c=a.He.get("asmjs"))&&!b?l.return(c):(d=VT.get("asmjs"))!=null?(e=d,l.Ha(2)):g.G(l,new Promise(function(m,n){UOa(a,"asmjs",function(){var p=VT.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3); +l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.He.set("asmjs",h);h.create();return l.return(h)})}; +YOa=function(a){WOa(a)&&a.eP();XOa(a)&&(sU(a,"captions",!0),sU(a,"endscreen"),a.qJ(),sU(a,"creatorendscreen",!0))}; +XOa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c}; +WOa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Mb(a.Ga,"ad")||DLa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.w(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h= +e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d=11;a=a.api.U().Z&&zU;return!(!b&&!a)}; +JU=function(a,b){return!a.api.isInline()&&!tPa(a,Us(b))&&g.$y(b)}; +sPa=function(a){a.Jg.Gv();if(a.SM&&a.dP)a.dP=!1;else if(!a.api.U().Ra&&!a.Dr()){var b=a.api.getPlayerStateObject();g.U(b,2)&&g.zR(a.api)||a.KH(b);!a.api.U().Ab||b.isCued()||g.U(b,1024)?a.Us():a.PM.isActive()?(a.CQ(),a.PM.stop()):a.PM.start()}}; +vPa=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.$y(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.Us(),!0):!1}; +wPa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()}; +rPa=function(a){var b=js()&&kna()>=67&&!a.api.U().Z;a=a.api.U().disableOrganicUi;return!g.is("tizen")&&!lO&&!b&&!a}; +KU=function(a,b){b=b===void 0?2:b;g.Fx.call(this);this.api=a;this.j=null;this.Hd=new Ws(this);g.P(this,this.Hd);this.B=Zsa;this.Hd.T(this.api,"presentingplayerstatechange",this.P5);this.j=this.Hd.T(this.api,"progresssync",this.Tc);this.ip=b;this.ip===1&&this.Tc()}; +g.LU=function(a){g.T.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",va:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.fp(this.show,10,this);this.j=new g.fp(this.hide,500,this);g.P(this,this.B);g.P(this,this.j);this.hide()}; +NU=function(a,b,c){if(b<=0){c=ey();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";MU(a,c,b,d+"%")}; +xPa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:osa();var c=a.J.getPlaybackRate(),d=g.DD("Speed is $RATE",{RATE:String(c)});MU(a,b,d,c+"x")}; +yPa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";MU(a,LMa(),b)}; +MU=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.ip(a.j);a.B.start();a.updateValue("title",d);g.rp(a.element,"ytp-bezel-text-hide",!d)}; +zPa=function(a,b){g.T.call(this,{I:"button",Na:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?rsa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{I:"div",S:"ytp-cards-button-title",va:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div", +S:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.Dy(this,250,!0,100);g.P(this,this.B);g.rp(this.C,"ytp-show-cards-title",g.IO(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Taa);this.GH(!0)}; +APa=function(a,b){g.T.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[rsa()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.Vx()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.Yg= +b;this.D=new g.Dy(this,250,!1,250);this.j=null;this.N=new g.fp(this.jba,300,this);this.K=new g.fp(this.hba,2E3,this);this.G=[];this.B=null;this.Y=new g.fp(function(){c.element.style.margin="0"},250); +this.onClickCommand=this.C=null;g.P(this,this.D);g.P(this,this.N);g.P(this,this.K);g.P(this,this.Y);a.U().L("player_new_info_card_format")?(g.np(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ea("ytp-cards-teaser-close-button"),"click",this.Q5),this.T(this.Ea("ytp-cards-teaser-info-icon"),"click",this.eU),this.T(this.Ea("ytp-cards-teaser-label"),"click",this.eU)):this.listen("click",this.eU);this.T(b.element,"mouseover",this.VV);this.T(b.element,"mouseout",this.UV);this.T(a,"cardsteasershow", +this.vca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.v3);this.T(a,"presentingplayerstatechange",this.v3);this.T(a,"appresize",this.MN);this.T(a,"onShowControls",this.MN);this.T(a,"onHideControls",this.y7);this.listen("mouseenter",this.R5)}; +BPa=function(a){g.T.call(this,{I:"button",Na:[OU.BUTTON,OU.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:OU.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.Yx()]},{I:"div",S:OU.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +CPa=function(a,b){a.j=b;a.element.classList.toggle(OU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.OD:c.MD)?(a=a.api.Im())?wA(a,b):g.ex(Error("No innertube service available when updating notification preferences.")):g.ex(Error("No update preferences command available.")):g.ex(Error("No video data when updating notification preferences."))}; +EPa=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=DPa(a,b);if(a=g.Md(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))kqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)}; +DPa=function(a,b){var c=document.location.protocol;return Pfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")}; +g.PU=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.OO(r);g.T.call(this,{I:"div",Na:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.DD("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":iP(r),"data-tooltip-opaque":String(g.IO(r)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",va:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.DD("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":iP(r),"data-tooltip-opaque":String(g.IO(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},d?{I:"div",S:"ytp-sb-count", +va:d}:""]}],X:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var y=this.Ea("ytp-sb-subscribe"),A=this.Ea("ytp-sb-unsubscribe");f&&g.np(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var D=function(){if(r.Ba){var H=u.channelId;if(m||n){var M={c:H};var N;g.WK.isInitialized()&&(N=RBa(M));M=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var Q=p.Im();Q?(wA(Q,N,{botguardResponse:M,feature:m}),p.ib("SUBSCRIBE",H)):g.ex(Error("No innertube service available when updating subscriptions."))}else g.ex(Error("No subscribe command in videoData.")); +else g.ex(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else EPa(g.YO(u.J.U()),"sb_button",u.D)},F=function(){var H=u.channelId; +if(m||n){var M=p.getVideoData();wA(p.Im(),M.unsubscribeCommand,{feature:m});p.ib("UNSUBSCRIBE",H)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}; +this.T(y,"click",D);this.T(A,"click",F);this.T(y,"keypress",function(H){H.keyCode===13&&D(H)}); +this.T(A,"keypress",function(H){H.keyCode===13&&F(H)}); +this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(uMa(p),wR(p,y,this),wR(p,A,this))}else g.np(y,"ytp-sb-disabled"),g.np(A,"ytp-sb-disabled")}; +HPa=function(a){g.T.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ea("ytp-title-channel");this.B=this.Ea("ytp-title-channel-logo");this.channelName=this.Ea("ytp-title-expanded-title");this.G=this.Ea("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this, +37220);g.IO(this.api.U())&&FPa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Md(GPa(b));c.preventDefault()}); +this.T(this.B,"click",this.yaa);this.Ta()}; +IPa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.PU("Subscribe",null,"Subscribed",null,!0,!1,b.Wl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); +a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new BPa(a.api);a.j=e;g.P(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.hm&&(e.show(),a.api.logVisibility(e.element,!0))}); +a.T(a.api,"UNSUBSCRIBE",function(){b.hm&&(e.hide(),a.api.logVisibility(e.element,!1),CPa(e,!1))})}}; +FPa=function(a){var b=a.api.U();IPa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa||(a.T(a.channel,"mouseenter",a.yP),a.T(a.channel,"mouseleave",a.UO),a.T(a.channel,"focusin",a.yP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.UO()})); +a.C=new g.fp(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500); +g.P(a,a.C);a.T(a.channel,JPa,function(){KPa(a)}); +a.T(a.api,"onHideControls",a.iT);a.T(a.api,"appresize",a.iT);a.T(a.api,"fullscreentoggled",a.iT)}; +KPa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")}; +LPa=function(a){var b=a.api.getPlayerSize();return g.IO(a.api.U())&&b.width>=524}; +GPa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.jP(b)+c.Ab;g.bR(c)&&(d="https://music.youtube.com"+c.Ab);if(!g.IO(b))return d;b={};g.iR(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(b,"emb_ch_name_ex");return g.Ti(d,b)}; +QU=function(a){var b=g.lS({"aria-haspopup":"true"});g.kS.call(this,b,a);this.listen("keydown",this.j)}; +RU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))}; +MPa=function(a,b){g.T.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Ba&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},va:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon", +va:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Ua=a;this.j=b;a.U().Ba||a.U().Tb||(a=this.Ea("ytp-user-info-panel-login"),this.T(a,"click",this.T5));this.closeButton=new g.T({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.dy()]});this.closeButton.Ja(this.element); +g.P(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.S5);this.Ta()}; +OPa=function(a,b,c){g.dT.call(this,a);this.Fb=b;this.le=c;this.getVideoUrl=new QU(6);this.ao=new QU(5);this.Un=new QU(4);this.uc=new QU(3);this.mH=new g.kS(g.lS({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.kS(g.lS(),1,"Stats for nerds");this.Uz=new g.Nx({I:"div",Na:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.AX=new cT(this.J,this.Uz);this.jI=this.pu=null;g.IO(this.J.U())&&(this.closeButton= +new g.T({I:"button",Na:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.dy()]}),g.P(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.B7,this));g.IO(this.J.U())&&(this.Rl=new g.kS(g.lS(),8,"Account"),g.P(this,this.Rl),this.Uc(this.Rl,!0),this.Rl.listen("click",this.lca,this),a.createClientVe(this.Rl.element,this.Rl,137682));this.J.U().Bn&&(this.Ll=new vS("Loop",7),g.P(this,this.Ll),this.Uc(this.Ll,!0),this.Ll.listen("click",this.aba,this),a.createClientVe(this.Ll.element, +this.Ll,28661));g.P(this,this.getVideoUrl);this.Uc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Raa,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.ao);this.Uc(this.ao,!0);this.ao.listen("click",this.Saa,this);a.createClientVe(this.ao.element,this.ao,28660);g.P(this,this.Un);this.Uc(this.Un,!0);this.Un.listen("click",this.Qaa,this);a.createClientVe(this.Un.element,this.Un,28658);g.P(this,this.uc);this.Uc(this.uc,!0);this.uc.listen("click",this.Paa, +this);g.P(this,this.mH);this.Uc(this.mH,!0);this.mH.listen("click",this.Rba,this);g.P(this,this.showVideoInfo);this.Uc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.mca,this);g.P(this,this.Uz);this.Uz.listen("click",this.Daa,this);g.P(this,this.AX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Eaa("Chromium")>=43&&(b=!0);Eaa("Firefox")<=40&&(b=!1);b&&(this.pu=new g.T({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.P(this,this.pu), +this.pu.Ja(this.element));var d;(d=this.Rl)==null||d.setIcon(vsa());var e;(e=this.Ll)==null||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.uc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.mH.setIcon(psa());this.showVideoInfo.setIcon(qsa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);NPa(this);this.AM(this.J.getVideoData())}; +SU=function(a,b){var c=!1;if(a.pu){var d=a.pu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Fb.Nb():(a.Uz.Dd(b,"text"),g.hT(a.Fb,a.AX),AS(a.Uz.element),a.pu&&(a.pu=null,NPa(a)));return c}; +NPa=function(a){var b=!!a.pu;a.uc.Tj(b?"Copy debug info":"Get debug info");RU(a.uc,!b);a.Un.Tj(b?"Copy embed code":"Get embed code");RU(a.Un,!b);a.getVideoUrl.Tj(b?"Copy video URL":"Get video URL");RU(a.getVideoUrl,!b);a.ao.Tj(b?"Copy video URL at current time":"Get video URL at current time");RU(a.ao,!b);a.Un.setIcon(b?msa():null);a.getVideoUrl.setIcon(b?Wx():null);a.ao.setIcon(b?Wx():null)}; +PPa=function(a){return g.IO(a.J.U())?a.Rl:a.Ll}; +RPa=function(a,b){g.fT.call(this,a);this.le=b;this.D=new g.OE(this);this.ra=new g.fp(this.Aca,1E3,this);this.Ba=this.C=null;g.P(this,this.D);g.P(this,this.ra);a.createClientVe(this.element,this,28656);g.np(this.element,"ytp-contextmenu");QPa(this);this.hide()}; +QPa=function(a){g.Ys(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Wa||(b=a.J.qb(),a.D.T(b,"contextmenu",a.Baa),a.D.T(b,"touchstart",a.V5,null,!0),a.D.T(b,"touchmove",a.H0,null,!0),a.D.T(b,"touchend",a.H0,null,!0))}; +SPa=function(a){a.J.isFullscreen()?g.GR(a.J,a.element,10):a.Ja(document.body)}; +TU=function(a,b,c){c=c===void 0?240:c;g.T.call(this,{I:"button",Na:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Ne=b;this.j=c;this.visible=!1;this.tooltip=this.Ne.Re();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.rp(this.element,"ytp-show-copylink-title",g.IO(b));a.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.vR(this.tooltip,this.element))}; +TPa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.hq&&!g.aR(c)&&!a.api.jd()&&!b}; +UPa=function(a){a.updateValue("icon",Sx());if(a.api.U().B)a.tooltip.LH(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.Vh();a.tooltip.LH(a.element);var b=a.listen("mouseleave",function(){a.Oc(b);a.Ta();a.tooltip.Cm()})}}; +VPa=function(a,b){return g.J(function(c){if(c.j==1)return g.va(c,2),g.G(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.xa(c);var d=c.return,e=!1,f=g.je("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(ru){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f); +return d.call(c,e)})}; +UU=function(a){g.T.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div", +S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",va:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",va:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.fp(this.show,10,this);this.B=new g.fp(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ea("ytp-doubletap-static-circle");g.P(this,this.D);g.P(this,this.B);this.hide();this.N=this.Ea("ytp-doubletap-fast-forward-ve");this.Y=this.Ea("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y, +this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")}; +VU=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.ip(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.np(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";WPa(a,a.G?a.C:c)}; +XPa=function(a,b,c){g.ip(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.np(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")}; +WPa=function(a,b){b=g.DD("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)}; +YPa=function(a){bT.call(this,a,!1,!0);this.Fa=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ga=new g.T({I:"div",S:"ytp-featured-product-open-in-new"});g.P(this,this.Ga);this.countdownTimer=new g.T({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.B=new g.T({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text", +va:"{{trendingOffer}}"}]});this.B.hide();g.P(this,this.B);this.overflowButton=new g.T({I:"button",Na:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.T({I:"button",Na:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.N=new g.T({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}}); +this.N.hide();g.P(this,this.N);this.K=new g.T({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",va:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.P(this,this.K);this.banner=new g.T({I:"a",S:"ytp-featured-product-container", +V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ga]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",va:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text", +va:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div", +S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",va:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",va:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",va:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor", +va:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.sD("featured_product"),this.bea);this.T(this.J,g.tD("featured_product"),this.bC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Uaa);this.T(this.overflowButton.element,"click",this.W5);this.T(a,"featuredproductdismissed",this.Ru)}; +ZPa=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; +aQa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.w(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs), +!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(IK({seconds:b}))),a.N.Dd(b)):a.N.Dd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();WU(a);var u;(u=a.Tb)==null||u.start()}else $Pa(a)}; +$Pa=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();XU(a)}; +bQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; +cQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null}; +dQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null}; +eQa=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)== +null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price}; +fQa=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Hb?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Hb||a.K.Hb||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName}; +hQa=function(a,b){YU(a);if(b){var c=g.pQ.getState().entities;c=GK(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.w(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Fa.push(d);var f=void 0;e=g.w((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=gQa(h.startTimeSec);f!==void 0&&(h=gQa(h.endTimeSec),b.push(new g.qD(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier, +namespace:"featured_product"})))}}}a.J.lf(b)}}}; +XU=function(a){if(a.trendingOfferEntityKey){var b=g.pQ.getState().entities;if(b=GK(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?WU(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:fQa(a)}))}else WU(a)}else WU(a)}; +WU=function(a){a.B.hide();a.banner.update({vendor:fQa(a)})}; +YU=function(a){a.Fa=[];a.bC();a.J.rf("featured_product")}; +iQa=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Dd(IK({seconds:b}));if(b>0){var h;(h=a.Kb)==null||h.start()}}; +jQa=function(a){var b;(b=a.Kb)==null||b.stop();a.countdownTimer.hide()}; +gQa=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a}; +oQa=function(a,b,c){g.T.call(this,{I:"div",Na:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",va:"{{disclaimer}}"},{I:"a",Na:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ea("ytp-info-panel-action-item-disclaimer");this.button= +this.Ea("ytp-info-panel-action-item-button");this.qe=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.R(b==null?void 0:b.onTap,ix);var d=g.R(c,g.ky);this.qe=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.qe=!0,g.Kd(this.button,g.rd(a))):(d=g.R(c,kQa))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.qe=!0,g.Kd(this.button,g.rd(a,[lQa]))):(c=g.R(c,mQa))&&!this.j&&(a=c.phoneNumber? +"tel:"+c.phoneNumber:"",this.qe=!0,g.Kd(this.button,g.rd(a,[nQa])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:Zx(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:Zx()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.qe&&(this.B={externalLinkData:{url:a}})}; +pQa=function(a,b){var c=Ix();g.hS.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",va:"{{title}}"},{I:"button",Na:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.Vx()]}]},{I:"div",S:"ytp-info-panel-detail-body",va:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ea("ytp-info-panel-detail-items"); +this.C=new g.OE(this);this.itemData=[];this.D=c;b=this.Ea("ytp-info-panel-detail-close");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail-skrim");this.T(b,"click",this.Nb);b=this.Ea("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()}); +g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()}; +qQa=function(a,b){a=g.w(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)}; +tQa=function(a,b){g.T.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",va:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",va:"{{chevron}}"}]});var c=this;this.J=a;this.Ee=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Dr();iS(b)}); +this.C=new g.Dy(this,250,!1,100);g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Z5);this.T(this.J,"paidcontentoverlayvisibilitychange",this.g0);this.T(this.J,"infopaneldetailvisibilitychange",this.g0);var d=a.getVideoData()||{};rQa(d)&&sQa(this,d);this.T(a,"onShowControls",this.Y5);this.T(a,"onHideControls",this.X5)}; +sQa=function(a,b){if(!b.Fi||!a.J.oo()){var c=b.ZD||1E4,d=rQa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.ip(a.j),a.videoId=b.videoId,d?(uQa(a,c,b),a.pd()):(a.Nb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),uQa(a,c,b),a.pd())}}; +rQa=function(a){var b,c,d,e;return!!((b=a.Pf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Pf)==null?0:(e=d.bodyText)==null?0:e.content)}; +uQa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.fp(a.gea,b,a);g.P(a,a.j);var d;b=((d=c.Pf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Pf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Pf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Pf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Pf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.Ux()})}; +vQa=function(a,b){a.j&&(g.U(b,8)?(a.B=!0,a.pd(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))}; +ZU=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b}; +$U=function(a,b){var c=0;a=g.w(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1}; +wQa=function(a,b){for(var c=0,d=g.w(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b=e.timeRangeStartMillis&&b0?b[0]:null;var c=g.de("ytp-chrome-bottom"),d=g.de("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b}; +MQa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Bm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.Jx({I:"span",S:"ytp-promotooltip-details-icon", +V:[KQa[a.tooltipRenderer.targetId]]});g.P(a,h);for(var l=[],m=g.w(d),n=m.next();!n.done;n=m.next())n=new g.Jx({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.P(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if(typeof f!=="string")for(g.me(a.details),e=g.w(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value); +else a.update({details:f});e=!0}}g.Bm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.R(e,g.nI))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.R(e,g.nI).text.runs[0].text&&(a.update({acceptButtonText:g.R(e,g.nI).text.runs[0].text.toString()}),f=!0);g.Bm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,y;((t=g.R(p,g.nI))==null?0:(u=t.text)==null?0:(y=u.runs)==null?0:y.length)&&g.R(p,g.nI).text.runs[0].text&&(a.update({dismissButtonText:g.R(p,g.nI).text.runs[0].text.toString()}), +q=!0);g.Bm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=JQa(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.Mx(a,!0);LQa(a);a.Hb&&!a.Y&&(a.Y=!0,a.hd.zH(0));a.j&&a.J.logVisibility(a.element,a.Hb)}}; +fV=function(a){g.Mx(a,!1);a.j&&a.J.logVisibility(a.element,a.Hb)}; +NQa=function(a){var b,c,d,e=((b=g.R(a.acceptButton,g.nI))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.R(a.acceptButton,g.nI).text.runs[0].text,f,h,l;b=((f=g.R(a.dismissButton,g.nI))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.R(a.dismissButton,g.nI).text.runs[0].text;return e||b}; +LQa=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.Mx(a,!1);else if(b=g.Am(a.targetElement),b.width&&b.height){a.J.zy(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.Am(a.Ea("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Zn().height-c-b.height-12,a.element.style.top=d+"px"); +d=a.Ea("ytp-promotooltip-pointer");var e=g.tm(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.Mx(a,!1)}; +gV=function(a){g.T.call(this,{I:"button",Na:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.ay()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.zd(a.getPlayerStateObject());wR(this.J,this.element,this)}; +hV=function(a,b){b=b===void 0?240:b;g.T.call(this,{I:"button",Na:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"div",S:"ytp-search-icon",va:"{{icon}}"},{I:"div",S:"ytp-search-title",va:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);wR(a,this.element,this)}; +g.iV=function(a,b,c,d){d=d===void 0?240:d;g.T.call(this,{I:"button",Na:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Ne=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Ne.Re();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta); +this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.vR(this.tooltip,this.element))}; +OQa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.IO(b)&&g.CR(a.api)&&g.U(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.hq||d||g.aR(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b}; +PQa=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Ne.Dr(),iS(a.B,a.element,!1)):g.ex(b))}; +RQa=function(a,b){var c=Ix(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:Ix(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},va:"Share"},{I:"a",Na:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},va:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox", +checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[zS()]},{I:"div",S:"ytp-share-panel-service-buttons",va:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",va:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Na:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.Vx()]}]};g.hS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Re();this.C=[];this.G=this.Ea("ytp-share-panel-inner-content"); +this.closeButton=this.Ea("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.vR(this.tooltip,this.closeButton));this.D=this.Ea("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Ea("ytp-share-panel-link");this.addOnDisposeCallback(g.vR(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=QQa(e,h); +g.yS(h,e.api,f)&&e.api.ib("SHARE_CLICKED")}); +this.listen("click",this.e6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.B$);this.hide()}; +TQa=function(a,b){SQa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f'),(y=t.document)&&y.write&&(y.write(g.wd(u)),y.close()))):((t=Jba(y,t,r,H))&&u.noopener&&(t.opener=null),t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e)); +e.fn.addOnDisposeCallback(g.vR(a.tooltip,e.fn.element));l==="Facebook"?a.api.createClientVe(e.fn.element,e.fn,164504):l==="Twitter"&&a.api.createClientVe(e.fn.element,e.fn,164505);a.T(e.fn.element,"click",function(p){return function(){a.api.logClick(p.fn.element)}}(e)); +a.api.logVisibility(e.fn.element,!0);a.C.push(e.fn);d++}}var m=b.more||b.moreLink,n=new g.T({I:"a",Na:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=QQa(a,q);g.yS(q,a.api,p)&&a.api.ib("SHARE_CLICKED")}); +n.addOnDisposeCallback(g.vR(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)}); +a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)}; +QQa=function(a,b){var c={};g.IO(a.api.U())&&(g.iR(a.api,"addEmbedsConversionTrackingParams",[c]),a.api.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(c,"emb_share"),b=g.Ti(b,c));return b}; +SQa=function(a){for(var b=g.w(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.fb(c);a.C=[]}; +jV=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0}; +UQa=function(a,b){a.startSec+=b;a.endSec+=b}; +WQa=function(a){bT.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;VQa(this);this.T(this.J,"changeProductsInVideoVisibility",this.zba);this.T(this.J,"videodatachange",this.onVideoDataChange)}; +XQa=function(a){a.K&&a.Ma.element.removeChild(a.K.element);a.K=void 0}; +ZQa=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.R(c,YQa))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.T({I:"img", +S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.P(a,c);return c})}; +$Qa=function(a,b){a.isContentForward=b;g.rp(a.badge.element,"ytp-suggested-action-badge-content-forward",b)}; +kV=function(a){var b=a.isContentForward&&!a.DM();g.rp(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.rp(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)}; +lV=function(a,b,c){return new g.qD(a*1E3,b*1E3,{priority:9,namespace:c})}; +aRa=function(a){a.J.rf("shopping_overlay_visible");a.J.rf("shopping_overlay_preview_collapsed");a.J.rf("shopping_overlay_preview_expanded");a.J.rf("shopping_overlay_expanded")}; +VQa=function(a){a.T(a.J,g.sD("shopping_overlay_visible"),function(){a.If(!0)}); +a.T(a.J,g.tD("shopping_overlay_visible"),function(){a.If(!1)}); +a.T(a.J,g.sD("shopping_overlay_expanded"),function(){a.ra=!0;aT(a)}); +a.T(a.J,g.tD("shopping_overlay_expanded"),function(){a.ra=!1;aT(a)}); +a.T(a.J,g.sD("shopping_overlay_preview_collapsed"),function(){a.j=!0;kV(a)}); +a.T(a.J,g.tD("shopping_overlay_preview_collapsed"),function(){a.j=!1;kV(a)}); +a.T(a.J,g.sD("shopping_overlay_preview_expanded"),function(){a.B=!0;kV(a)}); +a.T(a.J,g.tD("shopping_overlay_preview_expanded"),function(){a.B=!1;kV(a)})}; +dRa=function(a){g.T.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ea("ytp-shorts-title-channel-logo");this.channelName=this.Ea("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Md(bRa(b));c.preventDefault()}); +a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Md(bRa(b));c.preventDefault()}); +cRa(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()}; +cRa=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.PU("Subscribe",null,"Subscribed",null,!0,!1,b.Wl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)}); +a.subscribeButton=c;g.P(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}}; +bRa=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.jP(b)+c.Ab;if(!g.IO(b))return c;b={};g.iR(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(b,"emb_ch_name_ex");return g.Ti(c,b)}; +mV=function(a){g.hS.call(this,a,{I:"button",Na:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",va:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.fp(function(){b.hide()},5E3); +this.Qf=this.Bj=NaN;g.P(this,this.j);this.K=function(){b.show()}; +this.G=function(){b.hide()}; +this.D=function(){var c=b.J.getCurrentTime();c>b.Bj/1E3&&c0?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.fp(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); +this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.DD(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);wR(a,this.element, +this)}; +lRa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Vh()}; +sV=function(a,b){oV.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.tD("timedMarkerCueRange"),this.Tc);this.T(a,"updatemarkervisibility",this.updateVideoData)}; +mRa=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.jf;if(c)for(a=a.D.Ka,c=g.w(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}}; +tV=function(a){g.T.call(this,{I:"button",Na:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[wsa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.xR(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});wR(a,this.element,this);a.createClientVe(this.element, +this,62946);this.Ta()}; +nRa=function(a,b,c){c=c===void 0?!1:c;g.T.call(this,{I:"button",Na:["ytp-mute-button","ytp-button"],X:a.U().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},va:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ba=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",ey());this.tooltip=b.Re();this.j=new g.Jx({I:"svg",X:{height:"100%", +version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]}, +{I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Fc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.P(this,this.j);this.K=this.j.Ea("ytp-svg-volume-animation-speaker"); +this.Ba=this.K.getAttribute("d");this.C=g.ce("ytp-svg-volume-animation-mover",this.j.element);this.B=g.ce("ytp-svg-volume-animation-hider",this.j.element);this.Fa=new NT;g.P(this,this.Fa);this.qa=new NT;g.P(this,this.qa);this.listen("click",this.kba);this.T(a,"appresize",this.WV);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.vR(b.Re(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/), +d=new g.hS(a,{I:"span",Na:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},va:b[2]},b[4]]},100,!0),g.P(this,d),d.hide(),d.subscribe("show",function(e){a.NE(d,e)}),g.GR(a,d.element,4)); +this.message=d;a.createClientVe(this.element,this,28662);this.WV(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())}; +qRa=function(a,b){a.ra=b;var c=a.Ba;b&&(c+=SNa(oRa,pRa,b));a.K.setAttribute("d",c)}; +rRa=function(a,b){a.Y=b;for(var c=20*b,d=0;d=3&&a.J.getPresentingPlayerType()!==2}; +wRa=function(a){var b=BR(a.J.Bb());return b?a.j?b.Gl():b.Yp():!1}; +tRa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.Gl();c=g.CR(a.J)&&(!a.j||c);var d=a.j&&g.HR(a.J),e=wRa(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.xR(a.J,"Next","SHIFT+n"),l=g.xR(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.UT(a.playlist,a.j?jOa(a.playlist):kOa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId; +b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.Zy(m.lengthSeconds):null;b.preview=m.gh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=(m=a.videoData)==null?void 0:g.nQ(m))b.url=l.El(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.Zy(l.lengthSeconds): +null,b.preview=l.gh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.vR(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Oc(a.G),a.G=null);a.tooltip.Vh()}; +yRa=function(a,b){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"}, +va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[$x()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.Vx()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Ea("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ea("ytp-fine-scrubbing-dismiss");this.Ba=this.Ea("ytp-fine-scrubbing-draggable");this.playButton=this.Ea("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Ka=this.j=0;this.Ma=void 0; +this.qa=NaN;this.Ra=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Ga=!1;xRa(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.vR(b,this.dismissButton));this.addOnDisposeCallback(g.vR(b,this.playButton));this.Fa=new g.tT(this.Ba,!0);this.Fa.subscribe("dragstart",this.RN,this);this.Fa.subscribe("dragmove",this.QN,this);this.Fa.subscribe("dragend",this.g6,this);this.T(a,"SEEK_COMPLETE",this.DB);a.L("web_fix_fine_scrubbing_false_play")&& +this.T(a,"rootnodemousedown",function(d){c.ra=d}); +this.G.addEventListener("keydown",function(){}); +g.P(this,this.Fa);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +xRa=function(a,b){var c=g.Zy(b),d=g.DD("Seek to $PROGRESS",{PROGRESS:g.Zy(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})}; +zRa=function(a){a.qa=NaN;a.Y=0;a.N=a.C}; +CRa=function(a){var b=a.api.zk();if(b){var c=90*a.scale,d=OP(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=PP(b,b.sz()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=ha.D.length;)d= +void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.lengthc.length;)d=void 0,(d=a.B.pop())==null||d.dispose(); +for(;a.B.length-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval}; +DRa=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)}; +ARa=function(){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})}; +BRa=function(){g.T.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})}; +FRa=function(a){g.T.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white", +"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ea("ytp-heat-map-svg");this.C=this.Ea("ytp-heat-map-path");this.G=this.Ea("ytp-heat-map-graph");this.D=this.Ea("ytp-heat-map-play");this.B=this.Ea("ytp-heat-map-hover");this.qe=!1;this.j=60;a=""+g.Ta(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path", +a);this.api.L("web_heat_map_v2")&&g.np(this.api.getRootNode(),"ytp-heat-map-v2")}; +GRa=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")}; +xV=function(){g.T.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",Na:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ea("ytp-progress-linear-live-buffer");this.C=this.Ea("ytp-ad-progress-list"); +this.G=this.Ea("ytp-load-progress");this.K=this.Ea("ytp-play-progress");this.B=this.Ea("ytp-hover-progress");this.j=this.Ea("ytp-chapter-hover-container")}; +yV=function(a,b){g.jm(a.j,"width",b)}; +HRa=function(a,b){g.jm(a.j,"margin-right",b+"px")}; +IRa=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN}; +JRa=function(){g.T.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.AV=function(a,b){g.Nx.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Na:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"}, +{I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",Na:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Na:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",va:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",va:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end", +X:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.kf=!1;this.Tf=this.Va=this.N=this.Sf=0;this.Ie=null;this.Ma={};this.Ob={};this.clipEnd=Infinity;this.Ab=this.Ea("ytp-clip-end");this.yc=new g.tT(this.Ab,!0);this.wc=this.Ea("ytp-clip-end-exclude");this.Rc=this.Ea("ytp-clip-start-exclude");this.clipStart=0;this.Kb=this.Ea("ytp-clip-start");this.Wc=new g.tT(this.Kb,!0);this.qa=this.fb=0;this.progressBar=this.Ea("ytp-progress-bar");this.yb={};this.Ka={};this.Tb=this.Ea("ytp-chapters-container"); +this.Rf=this.Ea("ytp-timed-markers-container");this.j=[];this.K=[];this.ze={};this.Pf=null;this.Wa=-1;this.ob=this.Ba=0;this.Y=null;this.Uf=this.Ea("ytp-scrubber-button");this.Ig=this.Ea("ytp-scrubber-container");this.Xa=new g.Gd;this.Qf=new IRa;this.C=new dz(0,0);this.Db=null;this.D=this.jf=!1;this.wh=null;this.ra=this.Ea("ytp-heat-map-container");this.Ed=this.Ea("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Ya=this.Ea("ytp-fine-scrubbing-container");this.Zd=this.Ea("ytp-fine-scrubbing-edu"); +this.B=void 0;this.Fa=this.Fd=this.Ga=!1;this.tooltip=b.Re();this.addOnDisposeCallback(g.vR(this.tooltip,this.Ab));g.P(this,this.yc);this.yc.subscribe("hoverstart",this.d0,this);this.yc.subscribe("hoverend",this.b0,this);this.T(this.Ab,"click",this.kM);this.addOnDisposeCallback(g.vR(this.tooltip,this.Kb));g.P(this,this.Wc);this.Wc.subscribe("hoverstart",this.d0,this);this.Wc.subscribe("hoverend",this.b0,this);this.T(this.Kb,"click",this.kM);KRa(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange", +this.C9);this.T(a,"videodatachange",this.ju);this.T(a,"videoplayerreset",this.B9);this.T(a,"cuerangesadded",this.gfa);this.T(a,"cuerangesremoved",this.wda);this.T(a,"onLoopRangeChange",this.XV);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.sD("timedMarkerCueRange"),this.yca);this.T(a,"updatemarkervisibility",this.x3);var c;((c=a.getVideoData())==null?0:c.oi())&&a.L("html5_lifa_ad_disable_progress_bar")&&this.T(a,"serverstitchedvideochange",this.ifa);this.updateVideoData(a.getVideoData(), +!0);this.XV(a.getLoopRange());zV(this)&&!this.B&&(this.B=new yRa(this.api,this.tooltip),a=g.sm(this.element).x||0,this.B.kc(a,this.N),this.B.Ja(this.Ya),g.P(this,this.B),this.T(this.B.dismissButton,"click",this.Zw),this.T(this.B.playButton,"click",this.BP),this.T(this.B.element,"dblclick",this.BP));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Ed,this,140127,!0);this.api.createClientVe(this.Zd,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden= +!0)}; +KRa=function(a){if(a.j.length===0){var b=new xV;a.j.push(b);g.P(a,b);b.Ja(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();yV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""}; +LRa=function(a){var b=b===void 0?NaN:b;var c=new FRa(a.api);a.G.push(c);g.P(a,c);c.Ja(a.ra);b>=0&&(c.element.style.width=b+"px")}; +MRa=function(a){for(;a.K.length;)a.K.pop().dispose()}; +ORa=function(a){var b,c,d,e,f;return(f=g.R((e=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,EP))==null?void 0:e.playerBar,NRa))==null?void 0:f.chapters}; +PRa=function(a){for(var b=a.j,c=[],d=0;d=h&&y<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;y=d===0;y=y===void 0?!1:y;GRa(h,u);q=p;t=h.j;y=y===void 0?!1:y;var A=1E3/q.length,D=[];D.push({x:0,y:100});for(var F=0;F0&&(c=f[f.length-1])}g.BV(a);l=[];b=g.w(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.R(e.value,WRa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n= +e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.Qx(m):""});a.heatMarkersDecorations=l}}; +SRa=function(a,b){a.K.push(b);g.P(a,b);b.Ja(a.Rf,a.Rf.children.length)}; +TRa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=CV(a,c.timeRangeStartMillis/(a.C.j*1E3),DV(a));g.jm(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}}; +QRa=function(a,b){var c=0,d=!1;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.R(e,YRa)){e=g.R(e,YRa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.Qx(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new xV,a.j.push(f),g.P(a,f),f.Ja(a.Tb,a.Tb.children.length));a.j[c].startTime= +e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c=0;d--)if(a.j[d].width>0){HRa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;yV(a.j[d],e+"px");break}a.j[c].width=0;yV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,yV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,yV(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b< +a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)}; +ZRa=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Ba,l=a.ob===0?3:h*a.ob,m=g.w(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c1);n=(f===0?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];r!==void 0&&r.width> +0?r.width+=n:qa.ob&&(a.ob=m/f),d=!0)}c++}}return d}; +EV=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=((d=a.api.getVideoData())==null?0:$Q(d))&&b.airingStart&&b.airingEnd?$Ra(a,b.airingStart,b.airingEnd):$Ra(a,b.seekableStart,b.seekableEnd);d=ez(c,b.loaded,0);b=ez(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;FV(a,b,d);e&&aSa(a);bSa(a)}}}; +$Ra=function(a,b,c){return cSa(a)?new dz(Math.max(b,a.Db.startTimeMs/1E3),Math.min(c,a.Db.endTimeMs/1E3)):new dz(b,c)}; +dSa=function(a,b){var c;if(((c=a.Db)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[$U(a.j,b.startTimeMs)],g.rp(b.j,"ytp-repeating-chapter",!1)),a.Db&&(b=a.j[$U(a.j,a.Db.startTimeMs)],g.rp(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.rp(d.j,"ytp-exp-chapter-hover-container",!a.Db)})}; +HV=function(a,b){var c=$sa(a.C,b.B);if(a.j.length>1){c=GV(a,b.C,!0);for(var d=0,e=0;e0&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c}; +eSa=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ba)<4}; +aSa=function(a){a.Uf.style.removeProperty("height");for(var b=g.w(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())fSa(a,c.value);IV(a);FV(a,a.qa,a.fb)}; +DV=function(a){var b=a.Xa.x;b=g.Dd(b,0,a.N);a.Qf.update(b,a.N);return a.Qf}; +KV=function(a){return(a.D?135:90)-JV(a)}; +JV=function(a){var b=48,c=a.api.U();a.D?b=54:g.IO(c)&&!c.B&&(b=40);return b}; +FV=function(a,b,c){a.qa=b;a.fb=c;var d=DV(a),e=a.C.j,f=$sa(a.C,a.qa),h=g.DD("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Zy(f,!0),DURATION:g.Zy(e,!0)}),l=$U(a.j,f*1E3);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Db&&a.api.getPresentingPlayerType()!==2&&(e=a.Db.startTimeMs/1E3,f=a.Db.endTimeMs/1E3);e=ez(a.C,e,0);l=ez(a.C,f,1);h=a.api.getVideoData();f=g.Dd(b,e,l);c=(h==null?0:g.YQ(h))?1:g.Dd(c, +e,l);b=CV(a,b,d);g.jm(a.Ig,"transform","translateX("+b+"px)");LV(a,d,e,f,"PLAY_PROGRESS");(h==null?0:$Q(h))?(b=a.api.getProgressState().seekableEnd)&&LV(a,d,f,ez(a.C,b),"LIVE_BUFFER"):LV(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}}; +LV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ba*(a.D?3:2),l=c*h;c=GV(a,l);var m=d*h;h=GV(a,m);e==="HOVER_PROGRESS"&&(h=GV(a,b.j*d,!0),m=b.j*d-gSa(a,b.j*d)*(a.D?3:2));d=Math.max(l-hSa(a,c),0);for(l=c;l=a.j.length)return a.N;for(var c=0,d=0;d0||a.wc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Rc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.jm(b,"background-size",f+"px"),g.jm(b,"background-position-x",a+"px"))}; +MV=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.jm(b,"transform","scalex("+(d?c/d:0)+")")}; +GV=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=gSa(a,b)*(a.D?3:2));c=g.w(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d}; +CV=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.w(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Ba)+(a.D?3:2)*(e<0?0:e)+c.D}; +gSa=function(a,b){for(var c=a.j.length,d=0,e=g.w(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d}; +g.kSa=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Sf=b;a.N=c;a.D=d;zV(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);aSa(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.BV(a);a.B&&f&&zV(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-JV(a),a.Ya.style.height=c+"px",g.jm(a.ra,"transform","translateY("+-d+"px)"),g.jm(a.progressBar,"transform","translateY("+-d+"px)")),CRa(a.B))}; +IV=function(a){var b=!!a.Db&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Db?(c=a.Db.startTimeMs/1E3,d=a.Db.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&da.qa);g.rp(a.Uf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}}; +fSa=function(a,b){var c=a.Ma[b];b=a.Ob[b];var d=DV(a),e=ez(a.C,c.start/1E3,0),f=yva(c,a.D)/d.width;var h=ez(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Dd(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.D,0)+"px";MV(a,b,g.Dd((h-c)*d.j+d.D,0,d.width),d.width,!0)}; +lSa=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.pe(a.Ob[c]),delete a.Ma[c],delete a.Ob[c])}; +zV=function(a){var b=g.bP(a.api.U())&&(a.api.L("web_enable_pip_on_miniplayer")||a.api.L("web_enable_auto_pip")),c;return!((c=a.api.getVideoData())==null?0:c.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.Dj()||!b)}; +NV=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Ya.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))}; +mSa=function(a,b){var c=b/KV(a)*JV(a);g.jm(a.progressBar,"transform","translateY("+-b+"px)");g.jm(a.ra,"transform","translateY("+-b+"px)");g.jm(a.Ya,"transform","translateY("+c+"px)");a.Ya.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=JV(a)-c+"px")}; +nSa=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.tT(a.progressBar,!0),a.Y.subscribe("hovermove",a.Cba,a),a.Y.subscribe("hoverend",a.Bba,a),a.Y.subscribe("dragstart",a.Aba,a),a.Y.subscribe("dragmove",a.Eba,a),a.Y.subscribe("dragend",a.Dba,a),a.wh=a.listen("keydown",a.j6)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Oc(a.wh),a.Y.cancel(),a.Y.dispose(),a.Y=null)}; +cSa=function(a){var b;return!((b=a.Db)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2}; +OV=function(a,b){g.T.call(this,{I:"button",Na:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Fb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);wR(a,this.element,this)}; +PV=function(a,b){g.T.call(this,{I:"button",Na:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ix(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.cy()]});this.J=a;this.Fb=b;this.B=!0;this.listen("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);wR(a,this.element,this);this.J.createClientVe(this.element, +this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())}; +oSa=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())}; +QV=function(a,b){vS.call(this,"Annotations",g.BS.Z3);this.J=a;this.Fb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()}; +RV=function(a,b){g.oT.call(this,"Audio track",g.BS.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.T({I:"div",V:[{I:"span",va:"Audio track"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.P(this,this.countLabel);this.Tj(this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()}; +SV=function(a,b){vS.call(this,"Autoplay",g.BS.f4);this.J=a;this.Fb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()}; +pSa=function(a,b){g.kS.call(this,g.lS({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Fb=b;this.T(this.element,"click",this.onClick);this.Fb.Uc(this)}; +qSa=function(a,b){var c;g.bP(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",va:"Adjust download quality from your "},{I:"a",S:"ytp-panel-footer-content-link",va:"Settings",X:{href:"/account_downloads"}}]});g.oT.call(this,"Quality",g.BS.N6,a,b,void 0,void 0,c);this.J=a;this.Ba={};this.Y={};this.D={};this.Fa=new Set;this.j=this.G=!1;this.N="unknown";this.qa="";this.ra=new g.vv;g.P(this,this.ra);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap"); +a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.np(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.yD);this.T(a,"videoplayerreset",this.yD);this.T(a,"onPlaybackQualityChange",this.YV);this.yD();a.createClientVe(this.element,this,137721)}; +sSa=function(a,b,c){var d=a.Ba[b],e=g.RE[b];return rSa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)}; +tSa=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=rSa(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",va:d});return a}; +rSa=function(a,b,c,d){b={I:"span",Na:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,va:e}));return b}; +TV=function(a,b,c,d){g.T.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",X:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.j=this.Ea("ytp-input-slider");this.B=d?d:a;this.init();this.T(this.j,"input",this.G)}; +uSa=function(a,b){a.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")}; +UV=function(a){TV.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.je("P");this.qa=mba(this.Y,this);g.np(this.j,"ytp-speedslider");g.np(this.C,"ytp-speedslider-text");a=this.C;var b=this.j;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.C.textContent=this.B+"x";this.T(this.j,"change",this.ra)}; +VV=function(a,b,c,d,e,f,h){g.T.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.N=a;this.Y=b;this.B=c;this.C=d;this.qa=e;this.Ga=f;this.range=this.C-this.B;this.Ma=this.Ea("ytp-slider-section");this.D=this.Ea("ytp-slider");this.ra=this.Ea("ytp-slider-handle");this.K=new g.tT(this.D, +!0);this.j=h?h:c;g.P(this,this.K);this.K.subscribe("dragmove",this.l6,this);this.T(this.element,"keydown",this.m6);this.T(this.element,"wheel",this.k6);this.init()}; +WV=function(a){VV.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.je("P");this.Fa=mba(this.Ba,this);g.np(this.D,"ytp-speedslider");g.np(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);vSa(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)}; +vSa=function(a){a.G.textContent=wSa(a,a.j)+"x"}; +wSa=function(a,b){a=Number(g.Dd(b,a.B,a.C).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))}; +xSa=function(a){g.Nx.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new UV(a):this.j=new WV(a);g.P(this,this.j);this.element.appendChild(this.j.element)}; +ySa=function(a){var b=new xSa(a);cT.call(this,a,b,"Custom");g.P(this,b)}; +zSa=function(a,b){var c=new ySa(a);g.oT.call(this,"Playback speed",g.BS.Q6,a,b,XV(a)?void 0:"Custom",XV(a)?void 0:function(){g.hT(b,c)}); +g.P(this,c);this.Y=new UV(a);g.P(this,this.Y);a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.J=a;this.N=null;XV(a)?(this.j=g.DD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);var d;this.J.L("html5_lifa_ui_disablement")&&((d=this.J.getVideoData())==null?0:d.oi())&&this.T(a,"serverstitchedvideochange",this.Ta);this.Ta()}; +BSa=function(a,b){var c=ASa(b);a.options[c]?a.Ti(c):b===a.D&&a.j&&(a.Ti(a.j),a.Dd(b.toString()))}; +DSa=function(a){g.pT(a,a.G.map(ASa));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||XV(a.J))CSa(a,b),g.oT.prototype.Hg.call(a,a.j)}; +CSa=function(a,b){a.D=b;a.j=g.DD("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(ASa);b.unshift(a.j);g.pT(a,b)}; +ASa=function(a){return a.toString()}; +XV=function(a){return a.L("web_settings_menu_surface_custom_playback")}; +ESa=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")}; +GSa=function(a,b,c,d){var e=new g.dT(b,void 0,"Video Override");g.oT.call(this,d.text||"",a,b,c,"Video Override",function(){g.hT(c,e)}); +var f=this;g.np(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.dc(a,this.ZV,this);this.G=e;g.P(this,this.G);b=new g.kS({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.P(this,b);this.G.Uc(b,!0);this.D=new g.kS({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.P(this,this.D);this.G.Uc(this.D,!0);this.T(this.D.element,"click", +function(){FSa(f,!0)}); +this.j=new g.kS({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.P(this,this.j);this.G.Uc(this.j,!0);this.T(this.j.element,"click",function(){FSa(f,!1)}); +g.pT(this,g.Al(a,this.ZV))}; +FSa=function(a,b){a.publish("settingChange",a.N+"Override",!b);a.Fb.hj()}; +YV=function(a,b){g.dT.call(this,a,void 0,"Options");var c=this;this.Nu={};for(var d=0;d=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ba*a.scale,d=KKa(a.B,a.D,b);gRa(a.bg,d,b,c,!0);a.Ga.start()}}; +cTa=function(a){var b=a.j;a.type===3&&a.Ma.stop();a.api.removeEventListener("appresize",a.Fa);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null}; +eTa=function(a){g.T.call(this,{I:"button",Na:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.IO(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",va:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",va:"Watch later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;uMa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize", +this.AD);this.T(a,"videodatachange",this.AD);this.T(a,"presentingplayerstatechange",this.AD);this.AD();a=this.J.U();var b=g.ct("yt-player-watch-later-pending");a.D&&b?(aCa(),dTa(this)):this.Ta(2);g.rp(this.element,"ytp-show-watch-later-title",g.IO(a));wR(this.J,this.element,this)}; +fTa=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.IO(c)&&g.CR(a.J)&&g.U(a.J.getPlayerStateObject(),128),f=c.C;return c.Ie&&b.width>=240&&!d.isAd()&&d.Ie&&!e&&!g.aR(d)&&!a.J.jd()&&!f}; +gTa=function(a,b){EPa(g.YO(a.J.U()),"wl_button",function(){aCa({videoId:b});window.location.reload()})}; +dTa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Im(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0; +a.isRequestPending=!1;a.Ta(1);a.J.U().B&&a.J.LH(a.element);a.J.U().N&&a.J.ib("WATCH_LATER_VIDEO_ADDED")}; +wA(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.ib("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +hTa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=zS();break;case 1:c=Sx();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path", +Fc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}}; +g.kW=function(){g.IU.apply(this,arguments);this.IK=(this.Wr=g.IO(this.api.U()))&&(this.api.U().B||vs()||ts());this.PO=48;this.QO=69;this.yE=this.Ii=null;this.Pu=[];this.QM=this.Di=this.RM=this.Uw=this.le=null;this.aI=[];this.contextMenu=this.Eg=this.overflowButton=this.zi=this.Yg=this.searchButton=this.copyLinkButton=this.shareButton=this.pp=this.Ug=this.title=this.channelAvatar=this.OB=this.tooltip=null;this.xO=!1;this.ZG=this.Kx=this.VE=this.WE=null;this.AS=this.tR=this.cP=!1}; +iTa=function(a){var b=a.api.U(),c=g.U(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()}; +jTa=function(a){if(a.Og()&&!a.api.jd()&&a.zi){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.pp||b&&!fTa(a.pp)||EQa(a.zi,a.pp);!a.shareButton||b&&!OQa(a.shareButton)||EQa(a.zi,a.shareButton);!a.copyLinkButton||b&&!TPa(a.copyLinkButton)||EQa(a.zi,a.copyLinkButton)}else{if(a.zi){b=a.zi;for(var c=g.w(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.qe(a.Ug.element,a.searchButton.element)&&a.searchButton.Ja(a.Ug.element);a.pp&&!g.qe(a.Ug.element, +a.pp.element)&&a.pp.Ja(a.Ug.element);a.shareButton&&!g.qe(a.Ug.element,a.shareButton.element)&&a.shareButton.Ja(a.Ug.element);a.copyLinkButton&&!g.qe(a.Ug.element,a.copyLinkButton.element)&&a.copyLinkButton.Ja(a.Ug.element)}}; +kTa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(nm(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=kTa(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndexd/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Ke())&&d.isView()&&(d=d.mediaElement);if(d&&d.mx().length>12&&g.BQ(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&rQ(f)&&(d=b.hA(),l= +c.hA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(ZE(d)||ZE(l)))return{msg:"av1"};b=a.B&&f.Bk()&&vF();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(g.BQ(f)&&g.BQ(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.KE)if(b)f.oa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels|| +2)?{msg:"channel-count"}:a.D&&f.Bk()&&d.video.fps!==l.video.fps?{msg:"fps"}:null}; +yTa=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Pk||e.Pk)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.Do())return{nq:"no-empty"};a=xTa(c,a,b,Infinity);return a!=null?{nq:a.msg}:null}; +sW=function(a){g.O.call(this);this.app=a;this.D=this.C=this.xb=this.j=null;this.B=1;this.events=new g.OE(this);this.events.T(this.app.Ua,g.tD("gaplessshortslooprange"),this.N);g.P(this,this.events)}; +zTa=function(){this.j=this.C=this.G=this.D=this.B=!1}; +ATa=function(a){var b=new zTa;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b}; +g.tW=function(a,b,c,d){d=d===void 0?!1:d;GF.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d}; +BTa=function(a,b,c,d,e,f){f=f===void 0?0:f;g.O.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.Ad=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Rq=new FF;this.un=d-b.Dc()*1E3;this.Rq.then(void 0,function(){}); +this.timeout=new g.fp(function(){h.Sg("timeout")},1E4); +g.P(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}}; +HTa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.J(function(q){if(q.j==1){if(a.La())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.uW.zC();return g.G(q,a.Rq,2)}g.uW.fA("gtfta",b);c=a.j.Ke();if(c.isEnded())return a.Sg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!yF(a.D))return a.Sg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Lr()!==a.D)return a.Sg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error|| +"")));d=CTa(a);e=d.Q_;f=d.GX;h=d.O_;a.j.Rj(!1,!0);l=DTa(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.oF();a.Ad.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.EH(m.SB,m.TB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{xx:!0,kU:3,Zc:"gapless_pseudo"}),l.play(),as());n=c.uc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();ETa(a.j,f,!1, +p,a.B.getVideoData().clientPlaybackNonce);ETa(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.G2=!0;a.Ad.U().L("html5_gapless_monitor_pbs")&&a.G===1&&FTa(a.B);g.De(function(){!a.B.getVideoData().Ba&&a.B.getPlayerState().isOrWillBePlaying()&>a(a.B)}); +vW(a,6);a.dispose();return q.return(Promise.resolve())})}; +MTa=function(a){if(a.B.getVideoData().C){var b=a.Ad.U().L("html5_gapless_suspend_next_loader")&&a.G===1;ITa(a.B,a.D,b,JTa(a));vW(a,3);KTa(a);var c=LTa(a);b=c.GT;c=c.o2;b.subscribe("updateend",a.wz,a);c.subscribe("updateend",a.wz,a);a.wz(b);a.wz(c)}}; +KTa=function(a){a.j.unsubscribe("internalvideodatachange",a.Jn,a);a.B.unsubscribe("internalvideodatachange",a.Jn,a);a.Ad.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Jn,a),a.B.unsubscribe("internalvideoformatchange",a.Jn,a));a.j.unsubscribe("mediasourceattached",a.Jn,a);a.B.unsubscribe("statechange",a.cW,a)}; +DTa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.tW(a,b,c,d)}; +vW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Rq.resolve())}; +JTa=function(a){return a.Ad.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&gQ(a.j.getVideoData())}; +CTa=function(a){var b=a.j.Ke();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:wW(a.j,!0);c=Math.min(a.un/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Wf()+d;return{R7:b,Q_:a,GX:c,O_:Infinity}}; +LTa=function(a){return{GT:a.C.j.Jd,o2:a.C.B.Jd}}; +OTa=function(a){g.O.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=ATa(this.app.U());this.K=function(){g.De(function(){NTa(b)})}}; +PTa=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.Do()||xW(a);a.D=new FF;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Vc(),m=l.getVideoData().isLivePlayback?Infinity:wW(l,!0)*1E3;f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.sD("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.qD(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0, +b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,wW(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,wW(b)+m)),h=wIa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Ed=!0;d.getVideoData().Y=!0;g.yW(d,!0);f={};a.B&&(f=g.XI(a.B.hc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{xx:!0,kU:3,Zc:"videoqueuer_queued"});a.C=new BTa(a.N,a.app.Vc(),a.j,c,a.app,e);c=a.C;c.status.status!== +Infinity&&(vW(c,1),c.j.subscribe("internalvideodatachange",c.Jn,c),c.B.subscribe("internalvideodatachange",c.Jn,c),c.Ad.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Jn,c),c.B.subscribe("internalvideoformatchange",c.Jn,c)),c.j.subscribe("mediasourceattached",c.Jn,c),c.B.subscribe("statechange",c.cW,c),c.j.subscribe("newelementrequired",c.n0,c),c.Jn());return a.D}; +NTa=function(a){var b,c,d,e,f,h,l,m,n;g.J(function(p){switch(p.j){case 1:if(a.La()||!a.D||!a.j)return p.return();a.Z&&zW(a.app.Vc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Vc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ha(2);break}g.va(p,3);return g.G(p,HTa(a.C),5);case 5:g.wa(p,2);break;case 3:d=e=g.xa(p);case 2:if(!a.j)return p.return();g.uW.ev("vqsp",function(){AW(a.app,a.j)}); +f=a.j.Ke();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.uW.ev("vqpv",function(){a.app.playVideo()}); +if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),QTa(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;xW(a);n&&n.resolve();return p.return(Promise.resolve())}})}; +xW=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.sD("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Sg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.qR(a.app,1)&&a.j!==a.app.Vc()&&a.j.dispose();a.j&&b&&BW(a.j);a.j=null;a.Z=!1}; +RTa=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1}; +STa=function(a,b,c){if(a.Do())return"qie";if(a.j==null||a.j.La()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.nf())return"vinm";if(RTa(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":xTa(d.policy,d.j,d.B,d.un)!=null?a="pge":(c=LTa(d),b=c.GT,a=g.AC(d.Ad.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=nF(c.o2.oe(),d),b=nF(b.oe(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null}; +TTa=function(){var a=Cna();return!(!a||a==="visible")}; +VTa=function(a){var b=UTa();b&&document.addEventListener(b,a,!1)}; +WTa=function(a){var b=UTa();b&&document.removeEventListener(b,a,!1)}; +UTa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Js+"VisibilityState"])return"";a=Js+"visibilitychange"}return a}; +XTa=function(){g.Fx.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.If()}; +VTa(this.G);this.K=this.getVisibilityState(this.ji(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Dj(),this.NA(),this.UA(),this.Dk())}; +BT=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.Dj()||a.NA()||a.UA()||a.Dk())}; +CW=function(a,b){g.O.call(this);var c=this;this.policy=a;this.gb=b;this.B=0;this.j=null;this.uf=[];this.C=null;this.hd={Yn:function(){return c.gb}}; +this.gb.length===1||g.Bl(this.gb,function(d){return!!d.range})}; +DW=function(a,b,c){a.j&&(WJ(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.w(a.gb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(QM(h)&&!c&&a.B+b.totalLength-e0){b=g.w(b.gb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.kG.length>0)for(c=g.w(b.kG),d=c.next();!d.done;d=c.next())a+=d.value.Is||0;return a+b.xZ}; +bUa=function(a,b){if(FW){var c=0;a=a.fd.get(b);if(a==null||!a.Gj)return 0;a=g.w(a.Gj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.fd.get(b))==null?void 0:c.uf.totalLength)||0}; +HW=function(a,b){a=a.fd.get(b);if(FW){if(a==null||!a.dE)return!1;b=a.Gj.size>0;return a.Sx.length>0||b}return!(a==null||!a.dE)&&!(a==null||!a.uf.totalLength)}; +cUa=function(a,b){var c=a.fd.get(b),d=aUa(a,b),e=!d&&!!c.bytesReceived;if(FW){var f;if((f=a.manifest)==null?0:f.Vb){a=g.w(c.Gj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Ex)return!1;return e}}else if(f=a.Bx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Hz+bUa(a,b)===c.bytesReceived}; +dUa=function(a,b,c){a.fd.set(b,{uf:new VJ,Hz:0,bytesReceived:0,xZ:0,QS:!1,Ng:!1,Bx:!1,Gh:c,sT:[],gb:[],kG:[],dE:!1,Gj:new Map,OH:new Map,Sx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})}; +eUa=function(a,b,c,d){c.gb.push.apply(c.gb,g.x(d));if(FW){c.OH.has(b)||c.OH.set(b,[]);var e;(e=c.OH.get(b)).push.apply(e,g.x(d))}else if(c.eg)for(a=g.w(d),b=a.next();!b.done;b=a.next())c.eg.gb.push(b.value);else{c.eg=new CW(a.Ge,[].concat(g.x(c.gb)));var f;((f=a.Ge)==null?0:f.ze)&&g.P(a,c.eg)}}; +fUa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.K.get(b);if(!e)return[];if(c.Co){var f;return((f=e.jx(0,c.clipId))==null?void 0:f.gb)||[]}if(e.Rm()){var h=c.startMs,l=c.durationMs,m=1E3,n;if(((n=a.Ge)==null?0:n.B)&&c.timeRange){var p;h=(p=c.timeRange.Tg)!=null?p:-1;var q;l=(q=c.timeRange.JE)!=null?q:-1;var r;m=(r=c.timeRange.Ts)!=null?r:-1}if(c.lC<0||c.Kq<0||l<0||h<0||c.Is<0||m<0)return GW(a,b),[];a=NM(c.lC,c.Is);b=c.rL||0;return[new PM(3,e,a,"makeSliceInfosMediaBytes",c.Kq-1,h/m,l/m,b, +a.length-b,void 0,c.Sj,c.clipId)]}if(c.Kq<0)return GW(a,b),[];var t;return((t=a.manifest)==null?0:t.Vb)?(b=e.Uj,n=b*e.info.ub,p=((h=a.Ge)==null?0:h.yc)?c.rL:void 0,((m=a.Ge)==null?0:m.zw)&&c.timeRange&&!p&&(l=c.timeRange.Tg/c.timeRange.Ts),[new PM(3,e,void 0,"makeSliceInfosMediaBytes",c.Kq,l,b,p,n,!0,c.Sj,c.clipId)]):[]}; +gUa=function(a,b,c){a.manifest=b;a.Ge=c;b=g.w(a.fd);for(c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;for(var e=g.w(d.sT),f=e.next();!f.done;f=e.next()){f=f.value;var h=fUa(a,c,f);eUa(a,f.bq,d,h)}}}; +hUa=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength}); +(a=a.fd.get(c))&&!a.Ng&&(FW?(a.Gj.has(b)||a.Gj.set(b,{data:new VJ,bJ:0,Ex:!1}),WJ(a.Gj.get(b).data,d)):WJ(a.uf,d),a.bytesReceived+=d.totalLength,a.QS=!0)}; +ZTa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b}); +var c=a.fd.get(b);c&&!c.Ng&&(c.Ng=!0,c.Cg&&c.Cg(),iUa(a)&&a.D.W_())}; +iUa=function(a){a=g.w(a.fd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Ng)return!1;return!0}; +IW=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)}; +jUa=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0)); +c&&(b=String.fromCharCode.apply(String,g.x(new Uint8Array(c))));a.close()}return b}; +oUa=function(a){var b=a.experiments,c=b.kb.bind(b);kUa=c("html5_use_async_stopVideo");lUa=c("html5_pause_for_async_stopVideo");mUa=c("html5_not_reset_media_source");Twa=c("html5_rebase_video_to_ad_timeline");zF=c("html5_not_reset_media_source");nUa=c("html5_not_reset_media_source");tF=c("html5_retain_source_buffer_appends_for_debugging");FNa=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(JW=!0);var d=g.AC(b,"html5_cobalt_override_quic"); +d&&IW("QUIC",+(d>0));(d=g.AC(b,"html5_cobalt_audio_write_ahead_ms"))&&IW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&IW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&IW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.AC(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f, +e)}}); +eJa(a.G);FW=c("html5_use_ump_request_slicer");nTa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(iO=!1);c("html5_pr_start_secs")&&(bMa=!0);g.AC(a.experiments,"html5_byterate_soft_cap_mweb")&&(pL=!0);c("html5_use_non_active_broadcast_for_post_live")&&(dN=!0)}; +pUa=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")}; +qUa=function(a){if(a.experiments.kb("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=pUa(b),d=g.AC(a.experiments,b);c&&d&&IW(c,d)}}; +KW=function(a,b,c,d,e){e=e===void 0?[]:e;g.O.call(this);this.W=a;this.pc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])}; +rUa=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.w(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.w(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.w(f.segments),l=h.next();!l.done;l=h.next())(l=LW(l.value))&&d.push(l);f.removeAll()}}}(c=LW(b))&&d.push(c);d=g.w(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}}; +MW=function(a,b,c,d){if(!a.j||b>c)return!1;b=new KW(a.W,b,c,a.j,d);d=g.w(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=LW(c);e&&e!==LW(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.Ze())?a.j.get(b.Ze()).push(b):a.j.set(b.Ze(),[b]);return!0}; +NW=function(a,b){return a.B.get(b)}; +sUa=function(a,b,c){a.B.set(b,c)}; +OW=function(a,b,c,d,e,f){return new tUa(c,c+(d||0),!d,b,a,e,f)}; +tUa=function(a,b,c,d,e,f,h){g.O.call(this);this.pc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.XK=h;this.j=new Map;AQ(f)}; +LW=function(a){return a.videoData.clientPlaybackNonce}; +uUa=function(a){if(a.j.size)for(var b=g.w(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()}; +vUa=function(a){this.end=this.start=a}; +g.PW=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.W=b;this.ea=c;this.Ga=new Map;this.Ya=new Map;this.Ma=new Map;this.B=new Map;this.D=[];this.G=[];this.C=new Map;this.wc=new Map;this.Y=new Map;this.Tb=NaN;this.Jb=this.Xa=this.Ob=null;this.Kb=new g.fp(function(){wUa(d,d.Tb,d.Ob||void 0)}); +this.events=new g.OE(this);this.Ab=15E3;this.Z=new g.fp(function(){d.Ba=!0;var e=d.ea,f=d.Ab;e.oa("sdai",{aftimeout:f});e.Id(new FE("ad.fetchtimeout",{timeout:f}));xUa(d);d.wF(!1)},this.Ab); +this.Ba=!1;this.K=new Map;this.yb=[];this.ra=null;this.ze=new Set;this.Fa=[];this.yc=[];this.Fd=[];this.Zd=[];this.j=void 0;this.Wa=0;this.Ra=!0;this.qa=!1;this.Ka=[];this.Ed=new Set;this.ge=new Set;this.Ie=new Set;this.wl=0;this.fb=new Set;this.Wc=0;this.On=this.Rc=!1;this.Sb=this.N="";this.ob=null;this.hd={mna:function(){return d.B}, +xna:function(){return d.D}, +nna:function(){return d.C}, +m8:function(e){d.onCueRangeEnter(d.B.get(e))}, +gna:function(e){d.onCueRangeExit(d.B.get(e))}, +rpa:function(e,f){d.B.set(e,f)}, +tpa:function(e){d.Sb=e}, +eF:function(){return d.eF()}}; +this.ea.getPlayerType();yUa(this.ea,this);this.Va=this.W.Ac();g.P(this,this.Kb);g.P(this,this.events);g.P(this,this.Z);this.events.T(this.api,g.sD("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.tD("serverstitchedcuerange"),this.onCueRangeExit)}; +CUa=function(a,b,c,d,e,f,h,l){var m=zUa(a,f,f+e);a.Ba&&a.ea.oa("sdai",{adaftto:1});a.On&&a.ea.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.oa("sdai",{attl0d:1});f>h&&QW(a,{reason:"enterTime_greater_than_return",pc:f,Xd:h});var p=n.Xc()*1E3;fn&&QW(a,{reason:"parent_return_greater_than_content_duration", +Xd:h,Xoa:n});n=null;p=g.Yb(a.G,{Xd:f},function(q,r){return q.Xd-r.Xd}); +p>=0&&(n=a.G[p],n.Xd>f&&AUa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p.5&&a.ea.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.Zy();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.C.get(b.adCpn);var m=a.C.get(c.adCpn)}e?a.ea.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):DUa(a,m,l,c.Vg,b.Vg,d,e)}else if(!b.isAd&&c.isAd){a.Sb=e.cpn;a.api.publish("serverstitchedvideochange"); +l=SW(a,"a2c");a.ea.oa("sdai",l);a.wl=0;if(l=c.je)a.Wa=l.end;var n;c.adCpn&&(n=a.C.get(c.adCpn));n&&TW(a.ea,n,e,c.Vg,b.Vg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.C.get(b.adCpn));p&&(a.Wa=0,a.Sb=p.cpn,a.api.publish("serverstitchedvideochange",p.rd,p.vr),n=SW(a,"c2a",p),a.ea.oa("sdai",n),a.wl=1,TW(a.ea,e,p,c.Vg,b.Vg,d,!!f))}}; +EUa=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Yb(a.G,{pc:c},function(e,f){return e.pc-f.pc}); +d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Xd>=c)?{Ln:a,Qu:b}:{Ln:void 0,Qu:b}}; +GUa=function(a,b){var c="";(b=FUa(a,b))&&(c=b.getId());return c?a.C.get(c):void 0}; +FUa=function(a,b){if(a.Sb){var c=a.B.get(a.Sb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.w(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c}; +wUa=function(a,b,c){var d=a.Jb||a.api.Vc().getPlayerState();VW(a,!0);a.ea.seekTo(b,c);a=a.api.Vc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()}; +VW=function(a,b){a.Tb=NaN;a.Ob=null;a.Kb.stop();a.Xa&&b&&HUa(a.Xa);a.Jb=null;a.Xa=null}; +IUa=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.w(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.pcc)&&d.push(f);a.G=d;d=g.w(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.oa("sdai",{rmAdCR:1}));d=EUa(a,b/1E3);b=d.Ln;d=d.Qu;if(b&&(d=d*1E3-b.pc,e=b.pc+d,b.durationMs=d,b.Xd=e,d=a.B.get(b.cpn))){e=g.w(a.D);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start= +b.pc+b.durationMs:f.end===d.start&&(f.end=b.pc);d.start=b.pc;d.end=b.pc+b.durationMs}if(b=EUa(a,c/1E3).Ln){var h;d="playback_timelinePlaybackId_"+b.rd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pc+"_parentReturnTimeMs_"+b.Xd;a.Kl("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +JUa=function(a){a.Ga.clear();a.Ya.clear();a.Ma.clear();a.B.clear();a.D=[];a.G=[];a.C.clear();a.wc.clear();a.Y.clear();a.K.clear();a.yb=[];a.ra=null;a.ze.clear();a.Fa=[];a.yc=[];a.Fd=[];a.Zd=[];a.Ka=[];a.Ed.clear();a.ge.clear();a.Ie.clear();a.fb.clear();a.Ba=!1;a.j=void 0;a.Wa=0;a.Ra=!0;a.qa=!1;a.wl=0;a.Wc=0;a.Rc=!1;a.On=!1;a.N="";a.Z.isActive()&&RW(a)}; +LUa=function(a,b,c,d,e,f){if(!a.On)if(!a.W.L("html5_ssdai_use_media_time")&&g.KUa(a,c))a.Va&&a.ea.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=WW(a,b,c,d,f),!(a.ea.getVideoData().oi()&&(b==null?0:b.SA)))return b}; +WW=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=XW(a,b))return f;var h=YW(a,c-1,d!=null?d:2);if(e)return a.ea.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.Az,prevrecord:a.K.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?XW(a,b-5):a.K.get(c-1);if((h==null?void 0:h.Az)===2&&(a.ea.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f}; +XW=function(a,b){b+=a.du();if(a.W.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.w(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.vr?e.vr*1E3:e.pc;if(d>=e.pc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Ln:e,Qu:b};break a}}b={Ln:void 0,Qu:b}}else b=EUa(a,b,1);return b.Ln}; +MUa=function(a){if(a.Ka.length)for(var b=g.w(a.Ka),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.w(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.w(a.D);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.D=[];a.Ga.clear();a.Ya.clear();a.Ma.clear();a.j||(a.Ra=!0)}; +DUa=function(a,b,c,d,e,f,h){if(b&&c){a.Sb=c.cpn;a.api.publish("serverstitchedvideochange",c.rd,c.vr);var l=SW(a,"a2a",c);a.ea.oa("sdai",l);a.wl++;TW(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})}; +YW=function(a,b,c){if(c===1){if(a.Ga.has(b))return a.Ga.get(b)}else{if(c===2&&a.Ya.has(b))return a.Ya.get(b);if(c===3&&a.Ma.has(b))return a.Ma.get(b)}}; +OUa=function(a,b,c,d){if(d)for(d=0;dc){var f=e.end;e.end=b;NUa(a,c,f)}else if(e.start>=b&&e.startc)e.start=c;else if(e.end>b&&e.end<=c&&e.start=b&&e.end<=c){a.ea.removeCueRange(e);if(a.Ka.includes(e))a.onCueRangeExit(e);a.D.splice(d,1);continue}d++}else NUa(a,b,c)}; +NUa=function(a,b,c){b=a.sJ(b,c);c=!0;g.bc(a.D,b,function(h,l){return h.start-l.start}); +for(var d=0;d0){var e=a.D[d],f=a.D[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.D.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.RE("serverstitchedcuerange",36E5),b=g.w(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())}; +ZW=function(a,b,c){if(c===void 0||!c){c=g.w(a.yb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.yb.push(new vUa(b))}}; +g.KUa=function(a,b){a=g.w(a.yb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1}; +AUa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Qoa:b,pc:c,Xd:d,ena:e.rd,fna:((f=e.videoData)==null?void 0:f.videoId)||"",bna:e.durationMs,cna:e.pc,dna:e.Xd};QW(a,b)}; +QW=function(a,b,c){a=a.ea;a.oa("timelineerror",b);b=new FE("dai.timelineerror",b);c?a.Lf("dai.timelineerror",1,"RETRYABLE_ERROR",EE(b.details)):a.Id(b)}; +PUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c}; +QUa=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.w(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1}; +RUa=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c}; +SUa=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Xd!==b.pc&&c++;return c}; +TUa=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.w(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Xd!==e.pc&&(e=e.cpn,b===e&&(d=!0),d&&!a.ge.has(e)&&(a.ea.oa("sdai",{decoratedAd:e}),a.ge.add(e)))}}; +xUa=function(a){a.Va&&a.ea.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Wc)+"_isTimeout_"+a.Ba})}; +zUa=function(a,b,c){if(a.Fa.length)for(var d=g.w(a.Fa),e=d.next(),f={};!e.done;f={Xz:void 0},e=d.next()){f.Xz=e.value;e=f.Xz.startSecs*1E3;var h=f.Xz.Dh*1E3+e;if(b>e&&be&&c0&&d>b*1E3+a.Vda)return!1;if(d=$Ua(a,c)){b=!1;c=void 0;d=g.w(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}LW(e)===a.Sb&&(b=!0)}d=void 0;if(c)d=LW(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:LW(f)}if(d)return a.finishSegmentByCpn(a.Sb,d,2,void 0),!0;var h;a.api.oa("ssap",{mfnc:1,mfncc:(h= +a.timeline.j)==null?void 0:LW(h)})}return!1}; +aX=function(a,b){a=NW(a.timeline,b);return(a==null?0:a.length)?a[0].Ze():0}; +cX=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Nl:0};var e=aVa(a,b,c);if(e)return{clipId:LW(e)||"",Nl:e.Ze()};a.api.oa("mci",{cs:LW(d),mt:b,tl:bX(a),invt:!!c});return{clipId:"",Nl:0}}; +dX=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Yh()-b.Ze())/1E3;b=b.j.values();b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Yh()-d.Ze())/1E3}return a}; +bVa=function(a,b){return(a=$W(a,b*1E3))?a.Ze():0}; +cVa=function(a,b){var c=NW(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.w(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Yh()-c.Ze())/1E3;else return dX(a);return b}; +$W=function(a,b){if(a=NW(a.timeline,a.Sb)){a=g.w(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ze()<=b&&c.Yh()>=b)return c}}; +dVa=function(a){var b=a.ea.getVideoData();a.Sb&&(a=a.Np.get(a.Sb))&&(b=a);return b}; +$Ua=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.$b(e);b=g.Yb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.w(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.Ze()!==b.Yh())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}}; +aVa=function(a,b,c){c=c===void 0?!1:c;var d=$Ua(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.w(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.Ze()<=b&&f.Yh()>b)return f;if(c&&d.Ze()===d.Yh())return a[0]}}else a.api.oa("ssap",{ctnf:1})}; +UUa=function(a,b){var c;if(a.Sy)for(c=a.TG.shift();c&&c!==a.Sy;)c=a.TG.shift();else c=a.TG.shift();if(c){if(a.Jk.has(c))eVa(a,c);else if(a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===4:b===3)a.nL.stop(),a.api.playVideo(1);a.bI.set(a.Sb,b);a.api.oa("ssap",{onvftn:1});fVa(a,c);return!1}a.api.oa("ssap",{onvftv:1});a.nL.stop();return!0}; +eVa=function(a,b){b=NW(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.nL.start(b[0].XK)}; +fVa=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Sb,f=!1;if(e===""){e=d;f=!0;var h=a.ea.bj().isBackground()||a.ea.getPlayerState().isSuspended();a.api.U().L("html5_ssap_tiny_seek_on_initial_transition")&&!h&&a.ea.seekTo(.001)}else e===void 0&&((h=a.ea.rA().Mg)&&a.timeline.B.has(h)&&(e=h),a.api.oa("ssap",{mcc:e+";"+b}),a.ea.Id(new FE("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b})));if(e===b)f&&c&&gVa(a,c,f);else{h=a.bI.get(e);if(!(f||h&&hVa(a,h))){var l=a.api.Zy(a.Sb); +a.api.oa("ssap",{nmec:l,cpc:a.Sb,ec:b})}a.Sb=b;iVa(a);b=NW(a.timeline,a.Sb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.TK=e,c=a.Np.get(e));h?a.bI.delete(e):h=f?1:2;a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostro:h,pcpn:e,ccpn:a.Sb});a:{var m=a.Sb;if(!a.pk.has(m))for(var n=g.w(a.pk),p=n.next();!p.done;p=n.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&& +p!==a.Sb;q=a.ea.rA();if(q.Mg!==p){var r=q.hc(q.Mg);m=q.hc(p);q.Mg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.Ac()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.XI(p.provider),jVa(p,n,"SU")),isNaN(p.K)||g.Nr(p.K)),m.resume())}m=Math.max(0,eX(a,e));n=a.ea.getCurrentTime();n=Math.max(0,n-aX(a,a.Sb)/1E3);p=b.getVideoData();q=a.ea.rA();r=e;var t=a.Sb,u=hVa(a,h),y=a.ea.getPlayerState();if(r!==t){var A=q.hc(r),D=q.hc(t),F,H=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce), +M;F=t===((M=D.getVideoData())==null?void 0:M.clientPlaybackNonce);var N;M=H?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var Q;N=F?((Q=D.getVideoData())==null?void 0:Q.videoId)||"":"nvd";H&&(Q=A.qoe)!=null&&(fX(Q,4,u?4:0,t,N,m),Q.reportStats());F&&(gX(D),(Q=D.qoe)!=null&&(fX(Q,4,u?5:1,r,M,n),Q.reportStats()),kVa(D,new g.Oy(y,D.Ee)),lVa(D));mVa(q,r)}a.api.L("html5_ssap_support_more_transition_reasons")&&a.api.oa("ssapt",{ostri:h,pcpn:e,ccpn:a.Sb});var Z;fOa(e,a.Sb,d,p,(Z=a.UM.get(e))!=null? +Z:(0,g.Zt)(),c);a.UM.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Sb,pvdmc:a.Sb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Sb,tpcc:d,tpv:(p==null?0:p.qe())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",p,l,c,h);b.C||a.ea.getVideoData().publish("dataupdated");a.Jk.delete(e);a.Sy="";p&&l===1?gVa(a,p):a.ea.oa("ssap",{nis:a.Sb});l===2?a.wl++:a.wl=0}}}; +gVa=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.t2){var d=b.startSeconds;b=NW(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].Ze()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.WP()||(a.ea.seekTo(d,{RT:!0}),a.t2=!1,a.ea.oa("ssap",{is:a.Sb,co:c?"1":"0",tse:d.toFixed()}))}}; +nVa=function(a,b,c){b=NW(a.timeline,b);if(b!=null&&b.length&&(b=$Ua(a,b[0].Ze()))){b=g.w(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(LW(d)===c)break;if(d=LW(d)){var e=a.pk.get(d);e&&a.api.L("html5_ssap_remove_cue_ranges_fix")&&a.ea.removeCueRange(e);a.pk.delete(d)}}}}; +oVa=function(a,b,c){aVa(a,b)||a.ea.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:bX(a)})}; +iVa=function(a){var b=a.Sb,c=a.Np.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-aX(a,b)/1E3,c.Vk=a>0?a:0)}; +eX=function(a,b){b=b||a.Sb;var c=a.Np.get(b);return c?c.Vk:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Vk}; +bX=function(a){var b=a.Sb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.w(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.Ze()+";";f+="et."+h.Yh()+";";var l=LW(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l: +"nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.Cl()}; +VUa=function(a){a.ea.jH(Array.from(a.pk.values()));a.pk.clear()}; +hVa=function(a,b){return a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===5||b===6||b===7:b===3}; +qVa=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.fp(function(){pVa(d,d.qa,d.Y||void 0)}); +this.ra=[];this.Ba=new g.fp(function(){var e=d.ra.pop();if(e){var f=e.rd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.gp(d.Ba,4500))}}); +this.events=new g.OE(this);c.getPlayerType();g.P(this,this.Z);g.P(this,this.Ba);g.P(this,this.events);this.events.T(this.api,g.sD("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Lk)}; +uVa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=f===void 0?e+d:f;if(e>f)return hX(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Xc()*1E3;if(en)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ +m.Dc(),hX(a,m,h,l),"";n=null;for(var p=g.w(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.pc&&eq.pc)return hX(a,"overlappingReturn",h,l),"";if(f===q.pc)return hX(a,"outOfOrder",h,l),"";e===q.Xd&&(n=q)}h="cs_childplayback_"+rVa++;l={je:iX(d,!0),un:Infinity,target:null};var r={rd:h,playerVars:b,playerType:c,durationMs:d,pc:e,Xd:f,Pt:l};a.B=a.B.concat(r).sort(function(y,A){return y.pc-A.pc}); +n?sVa(a,n,{je:iX(n.durationMs,!0),un:n.Pt.un,target:r}):(b={je:iX(e,!1),un:e,target:r},a.K.set(b.je,b),m.addCueRange(b.je));b=!0;if(a.j===a.api.Vc()&&(m=m.getCurrentTime()*1E3,m>=r.pc&&mb)break;if(f>b)return{Ln:d,Qu:b-e};c=f-d.Xd/1E3}return{Ln:null,Qu:b-c}}; +pVa=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Vc().getPlayerState();lX(a,!0);b=isFinite(b)?b:a.j.Wn();var e=yVa(a,b);b=e.Ln;e=e.Qu;var f=b&&!jX(a,b)||!b&&a.j!==a.api.Vc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||kX(a);b?tVa(a,b,e,c,d):zVa(a,e,c,d)}; +zVa=function(a,b,c,d){var e=a.j,f=a.api.Vc();e!==f&&a.api.Hy();e.seekTo(b,Object.assign({},{Zc:"application_timelinemanager"},c));AVa(a,d)}; +tVa=function(a,b,c,d,e){var f=jX(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.WP(a.W,b.playerVars);h.rd=b.rd;a.api.Iu(h,b.playerType)}h=a.api.Vc();f||h.addCueRange(b.Pt.je);h.seekTo(c,Object.assign({},{Zc:"application_timelinemanager"},d));AVa(a,e)}; +AVa=function(a,b){a=a.api.Vc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()}; +lX=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&HUa(a.D);a.G=null;a.D=null}; +jX=function(a,b){a=a.api.Vc();return!!a&&a.getVideoData().rd===b.rd}; +BVa=function(a){var b=a.B.find(function(e){return jX(a,e)}); +if(b){var c=a.api.Vc();kX(a);var d=new g.LF(8);b=xVa(a,b)/1E3;zVa(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}}; +DVa=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.w(a.K),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;l.un>=d&&l.target&&l.target.Xd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.w(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.pc>=d&&l.Xd<=e){var m=a;m.N===l&&kX(m);jX(m,l)&&m.api.Hy()}else f.push(l);a.B=f;d=yVa(a,b/1E3);b=d.Ln;d=d.Qu;b&&(d*=1E3,CVa(a,b,d,b.Xd===b.pc+b.durationMs?b.pc+d:b.Xd));(b=yVa(a,c/1E3).Ln)&& +hX(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.rd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.Xd+"}.Child playbacks can only have duration updated not their start."))}; +CVa=function(a,b,c,d){b.durationMs=c;b.Xd=d;d={je:iX(c,!0),un:c,target:null};sVa(a,b,d);jX(a,b)&&a.api.Vc().getCurrentTime()*1E3>c&&(b=xVa(a,b)/1E3,c=a.api.Vc().getPlayerState(),zVa(a,b,{},c))}; +hX=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})}; +FVa=function(a){a&&a!=="web"&&EVa.includes(a)}; +oX=function(a,b){g.O.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.fp(function(){mX(c);nX(c)}); +g.P(this,this.j)}; +GVa=function(a){mX(a);return a.data.map(function(b){return b.value})}; +mX=function(a){var b=(0,g.Zt)();a.data.forEach(function(c){c.expiref?{width:b.width,height:b.width/e,aspectRatio:e}:ee?a.width=a.height*c:cm;if(tX(a)){var n=NVa(a);var p=isNaN(n)||g.tu||uX&&g.Rt||m;ru&&!g.kc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.gm(p,0,b.width,b.height)):p=new g.gm(0, +0,b.width,b.height):(c=e.aspectRatio/n,p=new g.gm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.Rt&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.rp(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.s2)a.Cc.style.display="";a.bR=!0}else{p=-b.height;ru?p*=window.devicePixelRatio:g.eP&&(p-=window.screen.height);p=new g.gm(0,p,b.width,b.height);if(l||a.s2)a.Cc.style.display="none";a.bR=!1}hm(a.cM,p)||(a.cM=p,g.PO(f)?(a.Cc.style.setProperty("width", +p.width+"px","important"),a.Cc.style.setProperty("height",p.height+"px","important")):g.um(a.Cc,p.getSize()),d=new g.Gd(p.left,p.top),g.qm(a.Cc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.gm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);hm(a.RB,b)||(a.RB=b,d=!0);g.jm(a.Cc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.ZL&&(m&&(a.Cc.addEventListener(CS,a.GL),a.Cc.addEventListener("transitioncancel",a.GL),a.Cc.classList.add(g.rX.VIDEO_CONTAINER_TRANSITIONING)),a.ZL=m,a.app.Ua.publish("playerUnderlayVisibilityChange", +a.ZL?"transitioning":"hidden"));return d}; +RVa=function(){this.csn=g.Ww();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set}; +SVa=function(a){if(a.csn!==g.Ww())if(a.csn==="UNDEFINED_CSN")a.csn=g.Ww();else{var b=g.Ww(),c=g.Vw();if(b&&c){a.csn=b;for(var d=g.w(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.Pr("combine_ve_grafts")?QK(OK(),e,c):g.tr(g.sx)(void 0,b,c,e))}if(b)for(a=g.w(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.zx(b,c)}}; +TVa=function(a,b){this.Kc=a;this.policy=b;this.playbackRate=1}; +UVa=function(a,b){var c=Math.min(2.5,zO(a.Kc));a=vX(a);return b-c*a}; +WVa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.zp)return Math.ceil(a.policy.zp*b);a.policy.Yl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/CO(a.Kc);c=Math.max(.9*(d-3),zO(a.Kc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Hj>0&&e&&(c=Math.max(c,a.policy.Hj));return VVa(a,c,b)}; +VVa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.al,a.policy.gw*c),Math.min(Math.min(a.policy.Wa,31*c),Math.ceil(b*c))))||a.policy.al}; +XVa=function(a,b,c){c=WVa(a,b.j.info.ub,c.j.info.ub,0);var d=zO(a.Kc)+c/CO(a.Kc);return Math.max(d,d+a.policy.XE-c/b.j.info.ub)}; +vX=function(a){return CO(a.Kc,!a.policy.Mj,a.policy.ew)}; +wX=function(a){return vX(a)/a.playbackRate}; +YVa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.w(b&&d.length>0?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return a0&&(this.j=c.Zq)}; +cWa=function(a,b,c,d,e){if(!e.info.Se){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:kN(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:kN(h,e))||(c=e);if(a.policy.yc&&c.info.Ub)return a.logger&&a.logger({incompleteSegment:c.info.Sc()}),d;h=a.XP(c);d=h.formatId;e=h.Pa;f=h.clipId;c=h.b8;h=h.startTimeMs;!a.policy.Rf&&a.policy.j&&a.bd&&(f=aX(a.bd,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,pn:e,Yi:e,IB:h,HB:c};e=$Va(b,d.startTimeMs);(c=e>=0?b[e]:null)&&aWa(a, +c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f=n+h.j?h=!0:p+h.j=0?a:-a-2}; +dWa=function(a,b){if(a.Qb){var c=a.Qb.oe();if(c.length!==0){if(a.policy.VA&&a.D&&b){var d=a.D,e=d.info.We;!nF(c,e)&&d.info.D>0&&(0,g.Zt)()-a.G<5E3&&(a.logger&&a.logger({dend:d.info.Sc()}),c=Fwa(c,e,e+.01))}d=[];for(var f=e=0;e=h){var p=0;if(a.bd){var q=cX(a.bd,m*1E3);q&&(p=q.Nl/1E3)}q=Object.assign({},a.kd[f]);var r=a.manifest.K.get(hIa(a.kd[f].formatId)),t=Math.max(m, +h);h=r.index.Li(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.lw&&f===a.B&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.pn=h+a.C,q.startTimeMs=m*1E3):(q.pn=t,q.startTimeMs=u);q.IB=q.startTimeMs;h=void 0;m=((h=a.D)==null?void 0:h.info.duration)||11;f===a.B&&la.j/1E3);h=m+a.C;p=(r.index.UJ(m)+p)*1E3;q.Yi=h;q.durationMs=p-q.startTimeMs;q.HB=q.durationMs;q.pn<=q.Yi&&d.push(q)}na.j)return!1;if(bWa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.HB=b.durationMs,b.Yi=Math.max(b.Yi,c.Yi),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.pn,h=b.Yi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.pn=c.pn;b.HB=c.durationMs;b.Yi=c.Yi;c.formatId=a;c.startTimeMs=e;c.IB=e;c.durationMs=d-e;c.HB=c.durationMs; +c.pn=f;c.Yi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.HB=b.durationMs);return!1}; +bWa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Vb||b.lmt===c.lmt}; +fWa=function(a,b,c){if(a.logger){for(var d=[],e=0;e=b+a.C}),d=a.vy.some(function(e){return e.info.Pa===b}); +return c||d}; +xX=function(a,b,c,d,e){this.ya=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.Wd;this.D=null;this.C=0}; +iWa=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Pa;a.po(d)||c&&c.Pa===d?(b.G=!a.po(d),b.qa=!a.po(d)):(b.G=!0,b.qa=!0)}}; +kWa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);jWa(a.videoTrack);jWa(a.audioTrack);a.policy.K||zIa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.ya;c.policy.yb||(c.currentTime=b);a.G=!0;a.D=new FF;return a.D}; +mWa=function(a,b,c,d,e){var f=a.policy.yc?e:void 0;if(!b.j.jg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof yX))a:{if(b.C.length&&(f=b.C[0],f instanceof zX&&f.rh&&f.Ei)){f=!0;break a}f=!1}f||a.policy.B||AX(b);return c}var h=BX(b,c);if(!isNaN(h))return h;if(a.ya.XQ(c*1E3))return c;e.XA||(b.lk(),a.policy.bl?a.ya.qv(!1):a.ya.qv(!0));return d&&(a=oF(d.oe(),c),!isNaN(a))?(CX(b,a+lWa,f),c):CX(b,c,f)}; +pWa=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Jb||g.De(function(){DX(a)}); +else{if(a.isSeeking()&&a.j){var e=nWa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.De(function(){a.ya.oa("seekreason",{reason:"behindMinSq",tgt:e});oWa(a,e)}); +return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.JB||!a.B;BX(a.videoTrack,a.j)>=0&&BX(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.De(function(){if(a.B||!a.policy.Jb)DX(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j432E3&&AIa(a.manifest);a.C&&(e=a.C,a.C=0);g.De(function(){a.policy.K||oWa(a,e,102)}); +a.ya.oa("initManifestlessSync",{st:e,ost:e+a.ya.Dc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&oWa(a,e,102)}}}; +HX=function(a,b){var c=this;this.Cb=a;this.requestNumber=++qWa;this.j=this.now();this.qa=this.G=NaN;this.N=this.j;this.B=this.Ob=this.D=0;this.K=this.j;this.Ra=this.Ga=this.Va=this.yc=this.wc=this.Fa=this.ra=this.C=0;this.Z=void 0;this.Ya=0;this.Y=this.isActive=!1;this.Ab=this.ob=0;this.hd={zoa:function(){return c.Lp}}; +this.Kc=b.Kc;this.snapshot=pJa(this.Kc);this.policy=this.Kc.Ra;this.Qp=!!b.Qp;this.hv=b.hv;b.DJ&&(GX||(GX=jK("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.Z=new Uint8Array(2048));var d;this.Lp=(d=b.Lp)!=null?d:!1;mJa(this.Kc)}; +rWa=function(a){a.Va=Math.max(a.Va,a.D-a.wc);a.Ga=Math.max(a.Ga,a.N-a.yc);a.Fa=0}; +IX=function(a,b,c){nJa(a.Kc,b);if(a.Z){if(a.Ya+20>a.Z.length){var d=new Uint8Array(a.Z.length*2);d.set(a.Z);a.Z=d}sWa(a,Math.ceil(b)-Math.ceil(a.N));sWa(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.D/1024)))}d=b-a.N;var e=c-a.D;a.Ob=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3);a.N=b;a.D=c;a.Fa&&c>a.Fa&&rWa(a)}; +sWa=function(a,b){for(;b>31;)a.Z[a.Ya++]=GX[(b&31)+32],b>>=5;a.Z[a.Ya++]=GX[b]}; +tWa=function(a){return a.Z?g.gK(a.Z.subarray(0,a.Ya)):""}; +uWa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +JX=function(a,b){HX.call(this,a,b);this.yb=this.Kb=!1;this.Ma=this.Ba=Infinity;this.Ka=NaN;this.Jb=!1;this.Xa=NaN;this.Tb=0;this.dA=b.dA||1;this.zS=b.zS||this.dA;this.Ml=b.Ml;this.Pa=b.Pa;this.hh=b.hh;vWa(this);this.dT(this.j);this.Wa=(this.Xa-this.j)/1E3}; +wWa=function(a,b,c){a.Qp||(b=Math.max(b,.01),vO(a.Kc,b,c,b))}; +xWa=function(a,b){return b?a.LK()&&!a.policy.j?!0:b>=2048:!1}; +yWa=function(a){return(a.K-a.j)/1E3}; +vWa=function(a){a.Ka=a.j+a.snapshot.delay*1E3;a.Jb=!1}; +BWa=function(a,b){if(a.Ml&&a.Pa!==void 0&&a.hh!==void 0){var c=Math,d=c.min,e=a.Ba;var f=a.Ml;var h=a.j;if(zWa(f,a.Pa))f=b;else{var l=0;f.sj&&(l=.2);f=h+(f.Vj+l)*1E3}a.Ba=d.call(c,e,f);c=Math;d=c.min;e=a.Ma;f=a.Ml;h=a.j;l=AWa(f,a.Pa,a.hh);l!==2&&(b=l?b:h+f.Vj*1E3,f.sj&&(b+=f.Vj*1E3));a.Ma=d.call(c,e,b);a.Ba<=a.j?vWa(a):(a.Ka=a.Ba,a.Jb=!0)}}; +CWa=function(a){a.Ml&&BWa(a,a.now());return a.Jb}; +DWa=function(a,b){if(b+1<=a.totalLength){var c=bK(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=bK(a,b++);else if(c===2)c=bK(a,b++),a=bK(a,b++),a=(c&63)+64*a;else if(c===3){c=bK(a,b++);var d=bK(a,b++);a=bK(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=bK(a,b++);d=bK(a,b++);var e=bK(a,b++);a=bK(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),ZJ(a,c,4)?a=mBa(a).getUint32(c-a.C,!0):(d=bK(a,c+2)+256*bK(a,c+3),a=bK(a,c)+256*(bK(a,c+1)+ +256*d)),b+=5;return[a,b]}; +KX=function(a){this.Cb=a;this.j=new VJ}; +LX=function(a,b){this.info=a;this.callback=b;this.state=1;this.KB=this.zQ=!1;this.eg=null}; +EWa=function(a){return g.Bl(a.info.gb,function(b){return b.type===3})}; +FWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.status=0;this.j=new VJ;this.B=0;this.La=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.BB()}; +this.xhr.onload=function(){return e.onDone()}; +this.xhr.onerror=function(){return e.onError()}; +this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.Zt)();e.Cb.Bs(f,e.B)},function(){},d.body||null)}; +GWa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)}; +BKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=MX.zC();d=new g.PJ(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;MX.fA("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})}; +GKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=MX.zC();d=new g.PJ(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;MX.fA("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})}; +HWa=function(a,b){var c=this;this.j=a;this.Cb=b;this.loaded=this.status=0;this.error="";a=MM(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new VJ;this.Hs().then(function(){c.Cb.Oo()},function(d){c.error=""+d||"unknown_err"; +c.Cb.Oo()})}; +JWa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Cb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.La()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Cb.Wu(),IWa(e)); +else e.onDone();else e.onError(Error("null_response"))}; +this.Z=function(f){var h=(0,g.Zt)();e.La()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),IWa(e),e.Cb.Bs(h,e.B)))}; +this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()}; +this.j=new VJ;this.D=window.AbortController?new AbortController:void 0;this.start(a)}; +IWa=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Gt)}; +KWa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Cb=b;this.B=this.status=0;this.La=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.BB(f)}; +a=JK(function(f){d.onDone(f)}); +this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",JK(function(f){d.Cg(f)}),!1)}; +NX=function(a,b,c,d,e){if(LL(a.base))return new HWa(a,c);a=a.Ce();return d?VBa()?new FWa(a,b,c,e):new JWa(a,b,c,e):new KWa(a,c,e)}; +OX=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.O.call(this);this.Cb=a;this.policy=b;this.ke=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.uy=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.fp(this.zda,this.policy.Zk,this)}; +LWa=function(a){a.resource.Z=(0,g.Zt)();a=PX(a);a.B=(0,g.Zt)();a.started+=1}; +MWa=function(a,b,c){a.timing.HR((0,g.Zt)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;DM(PX(a));if((b=a.uy)!=null&&(a=a.ke.base,!((0,g.Zt)()=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)}; +PX=function(a){return EM(a.C,KL(a.ke.base))}; +NWa=function(a){var b=a.timing.qr();b.shost=KL(a.ke.base);return b}; +OWa=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)}; +PWa=function(a,b){for(var c=g.w(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.$b(d,function(l,m){return m.maxFramerate-l.maxFramerate}); +for(var e=[d[0]],f=0,h=1;ha.j||c.push(d)}return c}; +VWa=function(a,b,c){var d=SWa[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=TWa[a]||[]);b.push.apply(b,g.x(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.x(UWa[a]||[]))}; +aXa=function(a,b){var c=uQ(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Bk();if(d){if(!e.B){if(f&&SX)return SX;if(TX)return TX}}else if(TX&&!e.B)return TX;var h=[],l=[],m={},n=UX.concat(WWa);d&&(n=UX.concat(XWa));a.L("html5_early_media_for_drm")&&(n=n.concat(YWa),a.L("allow_vp9_1080p_mq_enc")&&n.push(ZWa));var p=[].concat(g.x($Wa));c.Z&&(p[0]=["141"]);n=g.w(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.w(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u= +lP(t,f&&d);if(u&&u.video&&!(ZE(u)&&!c.Ga&&u.video.j>c.wj)){var y=g.AC(a.U().experiments,"html5_drm_byterate_soft_cap");y>0&&Dwa(u)&&u.ub>y||(r?(h.push(t),VWa(t,h,a)):(u=AL(c,u,e),u===!0?(r=!0,h.push(t),VWa(t,h,a)):m[t]=u))}}}p=g.w(p);for(n=p.next();!n.done;n=p.next())for(n=g.w(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=NJa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!$E(q)&&!aF(q)))if(q=AL(c,q,e),q===!0){l.push(r);VWa(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B= +!1,SX=TX=void 0),f?SX={video:h,audio:l}:TX={video:h,audio:l};TX={video:h,audio:l};e.B=!1;return TX}; +eXa=function(a){var b={},c=a.ea,d=a.Da,e=c.getVideoData(),f=aL(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.n$=f,b.lastManualDirection=WBa(),f=Ona()||0,f>0&&(f=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.Zt)())-f,d.L("html5_use_date_now_for_local_storage")?f>0&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.wea=aL();f=d.L("html5_use_streamer_bandwidth_for_low_latency_live")&&e.isLowLatencyLiveStream;if(d.schedule.Z&&!f){var m;f=d.L("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((m=a.Ge)==null||!m.Mj):!1;b.q7=CO(d.schedule,!f)}m=g.aP();var n=g.RE.medium,p=Math.floor(n*16/9);f=e.Bk()?n:p;n=e.Bk()?p:n;b.A7=Math.max(h.width*m,f);b.z7=Math.max(h.height*m,n);b.visibility=l;b.Lea=Wv();b.d8=g.XI(c.hc().provider)*1E3;d.L("html5_sabr_support_quality_constraints")&&a.Oz&&(b.Oz=a.Oz);d.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(b.sabrLicenseConstraint=a.sabrLicenseConstraint);if(d.L("html5_enable_platform_backpressure_with_sabr")){if(b.Ww=3,a.nH||(b.Ww^=1),!a.qH|| +sQ(e))b.Ww^=2}else{if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.Ww=3;d.L("html5_onesie_audio_only_playback")&&sQ(e)&&(b.Ww=1)}h=e.kf?e.kf:uQ(e);if(d.L("html5_onesie_media_capabilities")){l=d.G;m=[];f=[];n=d.L("html5_shorts_onesie_mismatched_fix");e=e.Bk();var q=UX.concat(WWa);n&&(q=UX.concat(XWa));d.L("html5_early_media_for_drm")&&(q=q.concat(YWa),d.L("allow_vp9_1080p_mq_enc")&&q.push(ZWa));p=[].concat(g.x($Wa));h.Z&&(p[0]=["141"]);q=g.w(q);for(var r=q.next();!r.done;r= +q.next()){r=g.w(r.value);for(var t=r.next();!t.done;t=r.next()){t=t.value;var u=lP(t,e&&n);if(u&&u.video){var y=g.AC(d.experiments,"html5_drm_byterate_soft_cap");if(!(y>0&&Dwa(u)&&u.ub>y)&&AL(h,u,l)===!0){m.push({videoCodec:bXa[VE[t]],maxWidth:u.video.width,maxHeight:u.video.height,maxFramerate:u.video.fps});break}}}}e=g.w(p);for(n=e.next();!n.done;n=e.next())for(n=g.w(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=NJa(p))&&q.audio&&(d.L("html5_onesie_51_audio")||!$E(q)&&!aF(q))&&AL(h,q,l)=== +!0){f.push({audioCodec:cXa[VE[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={videoFormatCapabilities:m,audioFormatCapabilities:f}}var A;if((A=a.Ge)==null?0:A.B&&A.wp){A=d.G;l=[];m=[];f=new Map;if((e=A.j)&&e.size>0)for(e=g.w(e.values()),n=e.next();!n.done;n=e.next())p=n.value,p.Gh?m.push({audioCodec:cXa[p.rb],numChannels:p.numChannels,spatialCapabilityBitmask:dXa[p.rb]}):(q=bXa[p.rb],n={videoCodec:q,maxWidth:p.maxWidth||0,maxHeight:p.maxHeight||0,maxFramerate:p.maxFramerate||0,is10BitSupported:p.JF|| +!1},p.maxBitrateBps&&(n.maxBitrateBps=p.maxBitrateBps,r=lP(p.itag),t=void 0,((t=r)==null?0:t.video)&&AL(h,r,A)===!0&&(r=r.ub*8,r>n.maxBitrateBps&&(n.maxBitrateBps=r))),p=q+"_"+p.JF,q=f.get(p)||[],q.push(n),f.set(p,q));l=PWa(l,f);b.mediaCapabilities={videoFormatCapabilities:l,audioFormatCapabilities:m,hdrModeBitmask:3}}var D;if((D=a.Ge)==null?0:D.B){b.So=h.So;var F;b.wj=(F=a.Ge)==null?void 0:F.wj}d.Tf&&(b.a8=d.Tf);b.MS=a.AE;b.Ly=a.Ly;if(d.L("html5_fix_time_since_last_seek_reporting")?a.jq!==void 0: +a.jq)b.Mea=(0,g.Zt)()-a.jq;a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);iO||(b.R$=!0);D=zO(d.schedule)*1E3;D>0&&(b.F7=D);var H;((H=a.Ge)==null?0:H.Uv)&&a.Wx&&a.Wx0?a:d.schedule.interruptions[0]||0);return b}; +VX=function(a,b,c,d,e,f){var h={};b&&(h.MB=b);if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.SS=e);h.aN=[];h.tM=[];if(g.jQ(a)&&a.sabrContextUpdates.size>0)for(b=g.w(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())fXa(h,c.value,d);gQ(a)&&!g.jQ(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&fXa(h,f,d);a.WA&&(h.nea=a.WA);d=a.U().j;h.clientInfo={clientName:gXa[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel= +d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.mp&&(h.mp=a.mp);return h}; +fXa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.tM.push(b):a.aN.push(d)}; +zX=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.VG===void 0?[]:h.VG;var m=h.SH===void 0?!1:h.SH;var n=h.Kw===void 0?0:h.Kw;var p=h.poToken===void 0?"":h.poToken;var q=h.uy===void 0?void 0:h.uy;var r=h.dH===void 0?"":h.dH;var t=h.rh===void 0?0:h.rh;var u=h.Ei===void 0?new Uint8Array(0):h.Ei;var y=h.KM===void 0?!1:h.KM;f=h.qq===void 0?0:h.qq;h=h.MB===void 0?void 0:h.MB;LX.call(this,b,e);var A=this;this.policy=a;this.logger=new g.MN("dash/request");this.Pz=this.Ag=0;this.Y1=!1;this.Sr=this.aq= +null;this.hZ=!1;this.Ei=this.rh=null;this.YM=this.q3=!1;this.cJ=null;this.qq=this.Sp=0;this.Au=!1;this.hd={zd:function(F){A.zd(F)}, +foa:function(){return A.eg}, +Cpa:function(F){A.eg=F}, +Bpa:function(F){A.Ag=F}, +Apa:function(F){A.Cd.lastError=F}, +mQ:function(){return A.xhr}}; +this.timing=new JX(this,c);this.SH=m;this.rh=t;this.Ei=u;this.ke=g.ZM(this.info,this.policy,d);this.ke.set("rn",this.Vp().toString());this.ke.set("rbuf",(n*1E3).toFixed().toString());this.SH&&this.ke.set("smb","1");this.policy.Zl&&p&&this.ke.set("pot",p);r&&this.ke.set("bbs",r);this.policy.useUmp&&!LL(this.ke.base)&&(this.Tl=new KX(this),this.ke.set("ump","1"),this.ke.set("srfvp","1"));if(a=this.policy.Zs?this.policy.hD&&!isNaN(this.info.hh)&&this.info.hh>this.policy.XD?!1:!0:!1)b=null,this.policy.RD&& +this.policy.vk?b=[1]:y&&(b=[]),b!=null&&(this.policy.YC&&b.push(2),this.ke.set("defsel",b.join(",")));this.Cd=new OX(this,this.policy,this.ke,this.info.resource,this.timing,this.logger,d,q);this.VG=l||null;this.KB=hXa(this);LWa(this.Cd);d=void 0;if(this.policy.QD||this.Tl||this.policy.Ka)d={method:"POST"},l=(0,g.WX)([120,0]),q={},this.policy.cD&&h&&(h=VX(void 0,h),q.BC=h),this.policy.mw&&this.Ei&&(q.videoPlaybackUstreamerConfig=this.Ei),this.policy.Ka&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length> +0?d.body=g.CK(q,g.kL):d.body=l;if(this.rh&&this.Ei){this.ke.set("iwts","1");d={method:"POST"};h={Ly:this.rh*1E3};var D;l=(D=this.info.D)==null?void 0:D.dn;D=g.CK({zr:h,dn:l||void 0,videoPlaybackUstreamerConfig:this.Ei},g.kL);d.body=D}try{this.xhr=NX(this.ke,this.policy.N,this.timing,a,d),this.Cd.B.start(),f&&(this.Ou=new g.fp(this.A_,f,this),this.Ou.start(f+(this.timing.Kc.N.fh()||0)*1E3)),this.policy.TC&&uWa(this.timing,this.Ce()),this.logger.debug(function(){return"Sent, itag="+A.ke.get("itag")+ +" seg="+A.info.gb[0].Pa+" range="+A.ke.get("range")+" time="+Math.round(A.info.gb[0].We)+"-"+Math.round(g.Ib(A.info.gb).Mf)+" rtp="+(A.timing.gK()-Date.now()).toFixed(0)}),g.De(function(){})}catch(F){iXa(this,F,!0)}}; +hXa=function(a){if(!(YM(a.info)&&a.info.Lp()&&a.policy.ge&&a.VG)||a.info.resource.B>=2||aL()>0||!bCa())return!1;var b=a.ke.get("aitags");if(!b)return!1;b=Sd(b).split(",");for(var c=[],d=g.w(a.VG),e=d.next();!e.done;e=d.next())e=e.value,g.Mb(b,e)&&c.push(e);if(!c.length)return!1;a.ke.set("altitags",g.Rd(c.join(",")));return!0}; +iXa=function(a,b,c){c=c===void 0?!1:c;g.ex(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.De(function(){QX(a.Cd)}):QX(a.Cd)}; +jXa=function(a){if(a.policy.FC)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.dF();c=!c||c<=a.policy.iq;return(!a.xhr.CC()||!b||b.indexOf("text/plain")!==-1)&&c}; +kXa=function(a,b){var c=eK(b);return mD(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""}; +lXa=function(a,b){a.timing.Y=!0;a.timing.policy.j&&a.timing.fv();if(a.policy.Wc){var c;(c=a.Ou)==null||c.stop()}DW(a.eg,b,!1)}; +mXa=function(a,b){a.info=b;if(a.eg){var c=a.eg;b=b.gb;(b.length!==c.gb.length||b.length=h,l=a.manifest.isManifestless&&a.policy.Rv,f?(a.j={Zg:f,Pa:b.Pa, +AF:!!c},h?aY(a,f,b.Pa):l&&(d?e?aY(a,f,b.Pa):f.event==="continue"||f.event==="stop"?EXa(a,b):aY(a,f,b.Pa):aY(a,f,b.Pa))):(e&&EXa(a,b),a.B===4&&bY(a,5,"qend")))}; +aY=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.Ga.push(b);a.publish("cuepointsadded",c)}; +HXa=function(a,b,c){if(a.B!==0&&c&&b.gb[0].zg()){var d=b.gb[0].Pa,e=b.gb[0].We;b=b.eq();GXa(a,d,e,b,c)}}; +GXa=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Pa)||a.B===1||d||a.j.Zg.event==="predictStart"||a.oa("sdai",{undecevt:1,sq:b,mt:c,evt:a.j.Zg.event});b>a.G&&(a.G=NaN,a.N=NaN);if(a.j&&a.j.Pa===b)a:{d=a.j;if(a.policy.Ab){if(a.ra===b)break a;a.ra=b}f=d.Zg;var h=e.Su(f);a.oa("sdai",{onqevt:f.event,sq:b,mt:c,gab:h,cst:f.startSecs});if(h)f.event!=="predictStart"?d.AF?bY(a,4,"cue"):(a.G=b,a.N=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.N.toFixed(3)}),a.Y=Date.now(),bY(a,2,"join"),e.pK(d.Zg)):(a.policy.G? +(a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),bY(a,3,"predict"),e.pK(d.Zg));else if(a.B===1){var l;((l=a.K)==null?0:l.qP(c))?(IXa(a.ya,c,c,b),bY(a,4,"sk2had")):bY(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B=== +1&&bY(a,5,"noad")}; +LXa=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G){a=a.videoTrack;var d;return!((d=a.Z)==null||!hWa(d,c))||JXa(a.D,c)}d=KXa(a.videoTrack);if(c>(d?d.Pa:-1))return!1}return!0}; +cY=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.N)?a.N:b}; +EXa=function(a,b){if(a.j){var c=a.j.Zg.Dh-(b.startTime+a.Z-a.j.Zg.startSecs);c<=0||(c=new ZL(a.j.Zg.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Zg.context,a.j.Zg.identifier,"stop",a.j.Zg.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Pa}),aY(a,c,b.Pa))}}; +bY=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)}; +dY=function(a,b,c,d){(d===void 0?0:d)?bY(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&bY(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))}; +eY=function(a,b,c){this.audio=a;this.video=b;this.reason=c}; +fY=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0}; +gY=function(a,b,c){g.O.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1}; +hY=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.Zt)()+c;a.C.set(b.info.id,c)}; +iY=function(a){for(var b=g.w(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d<(0,g.Zt)()&&a.C.delete(c)}return a.C}; +MXa=function(a){return a.K&&iY(a).size>0}; +jY=function(a,b){a.j!==b&&(a.j=b,a.B=!0)}; +NXa=function(a,b){var c;b&&(c=g.Kb(a.D.j,function(e){return e.id===b})); +if(!c&&(c=g.Kb(a.D.j,function(e){var f;return!((f=e.dc)==null||!f.isDefault)}),a.policy.bk&&b)){var d; +a.oa("iaf",{id:b,sid:(d=c)==null?void 0:d.id})}return c}; +OXa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.ya=a;this.Ba=b;this.policy=c;this.manifest=d;this.K=e;this.fb=f;this.logger=new g.MN("dash/abr");this.j=VP;this.C=this.N=null;this.Y=-1;this.Ka=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.Ma={};this.Xa=new sO(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Fa=0;this.Ya=!1;this.Ga=new Set;this.Ra=!1;this.hd={U1:function(){kY(h)}}; +this.G=new gY(this.policy,e,function(l,m){h.ya.oa(l,m)})}; +TXa=function(a,b,c){lY(a,b);PXa(a,c);a.N=a.B;QXa(a);RXa(a);a.C=a.nextVideo;a.N=a.B;return SXa(a)}; +WXa=function(a,b){if(UXa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+vL(b)}),lY(a,b),a.Z=a.D.length-1,kY(a),mY(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new eY(a.B,a.C,b.reason); +b.reason==="r"&&(a.Y=-1);lY(a,b);mY(a);if(b.reason==="r"&&a.nextVideo===a.C)return new eY(a.B,a.nextVideo,b.reason);VXa(a);return null}; +XXa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new eY(a.N,a.C,c?"t":"m")}; +YXa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,SXa(a)}else a.Wa=a.N!==b,a.N=b;return null}; +ZXa=function(a,b){if(b.j.info.video&&b.Se){var c=(b.Ub+b.B)/b.duration,d=b.j.info.ub;c&&d&&(a.Xa.zm(1,c/d),a.policy.C&&c/d>1.5&&a.ya.oa("overshoot",{sq:b.Pa,br:c,max:d}))}}; +nY=function(a,b,c){hY(a.G,b,c===void 0?!1:c);a.Y=-1;lY(a,a.j)}; +oY=function(a,b){return new eY(a.N,a.C,b||a.j.reason)}; +VXa=function(a){if(a.C&&a.nextVideo&&pY(a,a.C.info)a.policy.wj,l=e<=a.policy.wj?ZE(d):XE(d);if(!f||h||l)c[e]=d}return c}; +lY=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.Zt)();c=g.kn(c,function(r){if(r.ub>this.policy.ub)return!1;var t=this.manifest.j[r.id];return iY(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+jF(r)+"; 4 load failures"}),!1):this.Ga.has(+r.itag)?!1:!0},a); +MXa(a.G)&&(c=g.kn(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos); +var e=g.kn(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Kb(c,function(r){return r.id===a.G.j}); +f?e=[f]:jY(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.FD&&uX&&g.Rt&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)})); +if(e.length>0)if(vF()){var h=$Xa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.rb===h[r.video.j].rb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j; +if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n}); +var p=$Xa(a,b)[n].rb;e=e.filter(function(r){return!!r&&!!r.video&&r.rb===p})}}e.length||(e=[c[0]]); +e.sort(function(r,t){return pY(a,r)-pY(a,t)}); +c={};for(b=1;bc.yO.video.width?(g.Nb(e,b),b--):pY(a,c.eO)*a.policy.Z>pY(a,c.yO)&&(g.Nb(e,b-1),b--);var q=e[e.length-1];a.Ya=!!a.C&&!!a.C.info&&a.C.info.rb!==q.rb;a.logger.debug(function(){return"Constraint: "+vL(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+jF(q)}); +a.D=e;a.Va.clear();c=!1;for(b=0;b=1080&&(c=!0);vOa(a.policy,q,a.manifest.Vb)}; +PXa=function(a,b){if(a.policy.bk){var c=NXa(a.G,b);b||c||(c=aYa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Kb(a.K.j,function(d){return!!d.dc&&d.dc.isDefault}))||(c=aYa(a)),c=c||a.K.j[0]; +a.B=a.manifest.j[c.id];kY(a)}; +bYa=function(a,b){for(var c=0;c+1d}; +kY=function(a){if(!a.B||!a.policy.D&&!a.B.info.dc){var b=a.K.j;a.B&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j)); +a.B=a.manifest.j[b[0].id];if(b.length>1){var c=!1;if(c=a.policy.Zd?!0:a.j.isLocked()?a.j.j<240:bYa(a,a.B))a.B=a.manifest.j[g.Ib(b).id]}}}; +mY=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.Ib(a.D).id],a.logger.debug(function(){return"Select max fmt: "+jF(a.nextVideo.info)}); +else{for(var b=Math.min(a.Z,a.D.length-1),c=wX(a.Ba),d=pY(a,a.B.info),e=c/a.policy.Y-d;b>0&&!(pY(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+jF(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+vL(a.j)}); +a.Z=b}}; +QXa=function(a){var b=a.policy.Y,c=wX(a.Ba),d=c/b-pY(a,a.B.info);b=g.Lb(a.D,function(e){return pY(this,e)1E3&&(b=c));return b}; +eYa=function(a){var b=a===void 0?{}:a;a=b.sj===void 0?!1:b.sj;var c=b.vk===void 0?!1:b.vk;b=b.Zs===void 0?!1:b.Zs;return a?b?3:2:c?-1:1}; +gYa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Fa=c;this.D=this.B=0;this.Gf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new FF;this.ra=this.Ba=!1;this.hd={Zna:function(){return d.C}, +vna:function(){return d.chunkSize}, +pna:function(){return d.N}, +ona:function(){return d.K}}; +(b=fYa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.QC,this.C=0,this.N=g.Sv(16),this.K=g.Sv(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new GWa(this.N,this.K))}; +fYa=function(a){if(a.policy.Pf&&a.policy.VC)for(var b=g.w(a.policy.Pf),c=b.next(),d={};!c.done;d={TO:void 0,iP:void 0},c=b.next())if(c=g.zr(c.value),d.TO=+c.clen,d.iP=+c.csz,d.TO>0&&d.iP>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.TO,a.csz=d.iP,a.ck=c.ck,a.civ=c.civ,a}; +qY=function(a){return!!a.Gf&&a.Gf.Mi()}; +lYa=function(a,b){if(!qY(a)&&!a.La()){if(!(a.Ba||(a.Ba=!0,a.C>0))){var c=hYa(a);c=MP(a.policy.D,a.j.info,rY(a),c,a.policy.fb);iYa(a,c)}if(b.info.type===1){if(a.Gf){sY(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=NM(0,b.j.totalLength)}else if(b.info.type===2)a.Gf&&a.Gf.type===1||sY(a,Error("Woffle: Index before init")),a.indexRange=NM(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Gf){sY(a,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(a.Gf.type===3&&!SM(a.Gf,b.info)&&(a.Y=[],b.info.Pa!==TM(a.Gf)||b.info.Ub!==0))return;if(b.info.Se){c=g.w(a.Y);for(var d=c.next();!d.done;d=c.next())jYa(a,d.value);a.Y=[]}else{a.Y.push(b);a.Gf=b.info;return}}else{sY(a,Error("Woffle: Unexpected slice type"));return}a.Gf=b.info;jYa(a,b);kYa(a)}}; +jYa=function(a,b){var c=0,d=$J(b.j);if(a.D=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=qYa(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=If(fg(n,7)),b==null||a.Le||(a.cryptoPeriodIndex=b),b=If(fg(n,10)),b!=null&&b>0&&!a.Le&&(a.j=b),n=Zda(n, +2,ag(n.sb)&34?$da:aea,void 0===fea?2:5),n=g.w(n),b=n.next();!b.done;b=n.next())a.C.push(g.Te(bf(b.value),4))}; +sYa=function(a){return isNaN(a.cryptoPeriodIndex)?g.Te(a.initData):""+a.cryptoPeriodIndex}; +vY=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.YG===void 0?void 0:d.YG;d=d.CK===void 0?!1:d.CK;this.videoId=a;this.status=b;this.videoDuration=c;this.YG=e;this.CK=d}; +tYa=function(a,b,c,d,e){this.videoId=a;this.DP=b;this.B=c;this.bytesDownloaded=d;this.j=e}; +wY=function(a){this.j=a;this.offset=0}; +uYa=function(a){if(a.offset>=a.j.totalLength)throw Error();return bK(a.j,a.offset++)}; +vYa=function(a,b){b=b===void 0?!1:b;var c=uYa(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=uYa(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+uYa(a),d*=128;return b?c:c-d}; +wYa=function(a){try{var b=vYa(a,!0),c=vYa(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}}; +xYa=function(a){for(var b=new wY(a),c=-1,d=0,e=0;!d||!e;){var f=wYa(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Km()}else if(h===186){if(f!==2)return;e=b.Km()}h===374648427?c=b.Km()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=aK(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new VJ([b]);WJ(d,a);return d}; +zYa=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.MN("dash");this.B=[];this.j=null;this.Ba=-1;this.Y=0;this.Ga=NaN;this.qa=0;this.C=NaN;this.Z=this.Ka=0;this.Wa=-1;this.Ma=this.G=this.D=this.Fa=null;this.Xa=this.Va=NaN;this.N=this.ra=this.Ya=this.fb=null;this.ob=!1;this.Ra=this.timestampOffset=0;this.hd={DY:function(){return d.B}}; +if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.fb&&a.oa("atv",{ap:this.policy.fb});this.N=new gYa(this.policy,e,function(h,l,m){xY(a,new vY(d.policy.D,2,{YG:new tYa(f,h,e.info,l,m)}))}); +this.N.Z.promise.then(function(h){d.N=null;h===1?xY(a,new vY(d.policy.D,h)):d.ya.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +h instanceof tY&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.oa("offlinenwerr",{em:l}),yYa(d),xY(a,new vY(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.oa("dldbwerr",{em:l}),yYa(d),xY(a,new vY(d.policy.D,4,{CK:!0})))})}}; +AYa=function(a){return a.B.length?a.B[0]:null}; +JXa=function(a,b){return a.B.some(function(c){return c.info.Pa===b})}; +HYa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Ub+a.G.B;if(c.info.Ub>0)if(c.info.Pa===a.G.Pa&&c.info.Ub=0&&a.G.Pa>=0&&!SM(a.G,c.info))throw new g.pt("improper_continuation",a.G.Sc(),c.info.Sc());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:SM(e,f)||(Math.abs(e.We-f.We)<=1E-6&&e.Pa===f.Pa?0:lEa(e,f)))||BYa(a,"d")}else if(c.info.Ub>0)throw new g.pt("continuation_of_null",c.info.Sc());a.G=c.info; +a.K=c.info.j;if(c.info.Ub===0){if(a.j)if(!a.ya.isOffline()||a.policy.Xk)a.ya.oa("slice_not_fully_processed",{buffered:a.j.info.Sc(),push:c.info.Sc()});else throw new g.pt("slice_not_fully_processed",a.j.info.Sc(),c.info.Sc());yY(a);a.Ka=d}else{if(a.Ka&&d&&a.Ka!==d)throw a=new g.pt("lmt_mismatch",c.info.Pa,a.Ka,d),a.level="WARNING",a;!c.info.j.Rm()&&a.D&&(d=c.info,e=a.D.mj,d.C="updateWithEmsg",d.Pa=e)}if(a.j){d=kN(a.j,c);if(!d)throw new g.pt("failed_to_merge",a.j.info.Sc(),c.info.Sc());a.j=d}else a.j= +c;a:{c=g.bF(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Se)break a;a.j.info.type===6?CYa(a,b,a.j):DYa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Ba<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+80))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Km()+p,m=!0);else{if(l&&(q=== +160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Km()+p);if(q===160){f<0&&(e=f=h.Km()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Ba=f;a.Y=e-f}if(a.Ba>d)break;a.Ba?(d=EYa(a,a.Ba),d.G&&FYa(a,d),CYa(a,b,d),GYa(a,d),a.Ba=0):a.Y&&(d=EYa(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,GYa(a,d))}}a.j&&a.j.info.Se&&(GYa(a,a.j),a.j=null)}; +DYa=function(a,b){!b.info.j.Rm()&&b.info.Ub===0&&(g.bF(b.info.j.info)||b.info.j.info.Le())&&QHa(b);if(b.info.type===1)try{FYa(a,b),IYa(a,b)}catch(e){g.ex(e);var c=UM(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.rQ(b);a.N&&lYa(a.N,b);if(c.jg()&&a.policy.B)a:{a=a.ya.manifest;b=b.info.clipId;c=dF(c.info,a.Vb);if(b){var d=gIa(a,c);if(a.Wa[d])break a;a.Wa[d]=b}a.Va.push(c)}}; +yYa=function(a){var b;(b=a.N)==null||b.dispose();a.N=null}; +JYa=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0); +a.j&&(b+=a.j.j.totalLength);return b}; +KYa=function(a){if(a.ra&&!a.policy.Fq){var b=a.ya;b.manifest.isManifestless&&HN(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.fb;a.C=a.G?a.C-a.qa:NaN;yY(a)}; +EYa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=LHa(c,b);a.j=c[1];return c[0]}; +FYa=function(a,b){var c=jN(b);if(YE(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new nM(c);pM(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;XE(d)&&!YE(d)&&(d=jN(b),(new nM(d)).Co(),tM([408125543,374648427,174,224],21936,d));b.info.j.info.zg()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.bF(d.info)?d.B=RDa(c):d.info.Le()&&(d.B=YDa(c))));b.info.j.info.Le()&& +b.info.zg()&&(c=jN(b),(new nM(c)).Co(),tM([408125543,374648427,174,224],30320,c)&&tM([408125543,374648427,174,224],21432,c));if(a.policy.jD&&b.info.j.info.Le()){c=jN(b);var e=new nM(c);if(pM(e,[408125543,374648427,174,29637])){d=sM(e,!0);e=e.start+e.pos;for(var f=0;f=zY(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&LYa(c)&&(b=a.Fa,JW?(l=OHa(c),h=1/l,l=zY(a,l),b=zY(b)+h-l):b=b.getDuration()- +a.getDuration(),b=1+b/c.info.duration,QDa(jN(c),b))}else{h=!1;a.D||(QHa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.mj,f.C="updateWithEmsg",f.Pa=d,f=c.B,f.Mi&&(d=a.K.index,d.B=!f.Mi,d.C="emsg"),f=c.info.j.info,d=jN(c),g.bF(f)?lM(d,1701671783):f.Le()&&tM([408125543],307544935,d)));a:if((f=nN(c,a.policy.Tb))&&PHa(c))l=MYa(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.fl?a.C+f:NaN;else{if(a.policy.ow){if(d=m=a.ya.Fp(lN(c),1),a.C>=0&&c.info.type!==6){if(a.policy.fl&&isNaN(a.Va)){g.fx(new g.pt("Missing duration while processing previous chunk", +c.info.Sc()));a.ya.isOffline()&&!a.policy.Xk||NYa(a,c,d);BYa(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ma?a.Ma.Pa:-1,t=a.Xa,u=a.Va,y=a.policy.Zp&&n>a.policy.Zp,A=Math.abs(p)>10,D=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Ra+=1;var F=(e=a.D)==null?void 0:bM(e);e={audio:""+ +a.Gh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(y||A)};if(F==null?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync", +e);a.Wa=q}y||A||D||(d=a.C);e=MYa(a,c,m);f-=e;a.Z=n+e;a.policy.C&&(p&&!D||e)&&(n=(l=a.D)==null?void 0:bM(l),a.ya.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;NYa(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Pp&&a.Ra>=a.policy.Pp&&(a.Ra=0,a.ya.Iq({resetForRewrites:"count"})))}a.Ma= +c.info;a.Va=mN(c);c.C>=0&&(a.Xa=c.C);if(h&&a.D){h=OYa(a,!0);VM(c.info,h);a.j&&VM(a.j.info,h);b=g.w(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Pa!==((e=a.D)==null?void 0:e.mj)||VM(l,h);(c.info.Se||a.j&&a.j.info.Se)&&c.info.type!==6||(a.ra=h,b=a.ya,b.manifest.isManifestless&&PYa(b,h,null,!!a.K.info.video),a.policy.kf||QYa(a))}}IYa(a,c);a.timestampOffset&&NHa(c,a.timestampOffset)}; +GYa=function(a,b){if(b.info.Se){a.fb=b.info;if(a.D){var c=a.D,d=OYa(a,!1),e=null;if(a.D.AF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=bM(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.w(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.w(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n= +m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.w(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new pYa(e,f,h,l,g.MDa(c),g.NDa(c))}a.ya.hS(a.K,d,e);a.ra||a.policy.kf||QYa(a);a.ra=null}yY(a)}a.N&&lYa(a.N,b);if(c=a.Ro())if(c=kN(c,b,a.policy.gm)){a.B.pop();a.B.push(c);return}a.B.push(b)}; +yY=function(a){a.j=null;a.Ba=-1;a.Y=0;a.D=null;a.Ga=NaN;a.qa=0;a.ra=null}; +BYa=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.Ma=null;a.Xa=NaN;a.Va=NaN;a.Ya=null;a.ya.oa("mdstm",b)}; +IYa=function(a,b){if(a.K.info.me){if(b.info.j.info.Le()){var c=new nM(jN(b));if(pM(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=sM(c,!0);c=d!==16?null:xM(c,d)}else c=null;d="webm"}else b.info.G=nYa(jN(b)),c=oYa(b.info.G),d="cenc";c&&c.length&&(c=new uY(c,d),a.policy.rG&&g.bF(b.info.j.info)&&(d=WDa(jN(b)))&&(c.B=d),c.Le=b.info.j.info.Le(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.py(c))}}; +QYa=function(a){var b=a.D,c=KDa(b);c&&(c.startSecs+=a.Ga,a.ya.gS(a.K,c,b.mj,b.AF()))}; +OYa=function(a,b){var c,d=a.D;if(c=KDa(d))c.startSecs+=a.Ga;return new PL(d.mj,a.Ga,b?d.Uj:a.qa,d.ingestionTime,"sq/"+d.mj,void 0,void 0,b,c)}; +NYa=function(a,b,c){if(!MHa(b,c))return b=UM(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0}; +MYa=function(a,b,c){var d=0;if(b.info.j.info.Le()&&!PHa(b))return 0;if(a.Fa&&!a.Gh()){var e=0;c&&g.bF(b.info.j.info)?e=c-a.C:b.info.j.info.Le()&&(e=a.Z);var f=b.info.Pa;c=nN(b,a.policy.Tb);var h=a.Fa;var l=h.Wa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.bF(b.info.j.info))QDa(jN(b),d);else if(b.info.j.info.Le()&&(f=e-h,!g.bF(b.info.j.info)&&(b.info.j.info.Le(),d=new nM(jN(b)),l=b.G?d:new nM(new DataView(b.info.j.j.buffer)),nN(b,!0)))){var n= +f*1E3,p=zM(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||AM(d))if(rM(d,160))if(sM(d,!0),rM(d,155)){if(f=d.pos,m=sM(d,!0),d.pos=f,n=n*1E9/p,p=uM(d),n=p+Math.max(-p*.7,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;f>=0;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=nN(b,a.policy.Tb);d=c-d}d&&b.info.j.info.Le()&&a.ya.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d}; +LYa=function(a){return a.info.j.Rm()&&a.info.Pa===a.info.j.index.qd()}; +zY=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()}; +RYa=function(a,b){b<0||(a.B.forEach(function(c){NHa(c,b)}),a.timestampOffset=b)}; +yX=function(a,b,c,d,e){LX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.ag=d;this.lastError=null;this.Cg=function(){f.La()||(f.ag.fd.has(f.formatId)?(f.isComplete()||f.j.start(),HW(f.ag,f.formatId)&&f.vB(2),f.ag.Ng(f.formatId)&&(cUa(f.ag,f.formatId)?f.zd(4):(f.lastError="net.closed",f.zd(5)))):(f.lastError="player.exception",f.zd(5)))}; +this.j=new g.fp(function(){f.isComplete()||(f.lastError="net.timeout",f.zd(5))},this.policy.jG); +this.j.start();YTa(this.ag,this.formatId,this.Cg);g.De(this.Cg)}; +AY=function(a,b,c,d){g.O.call(this);var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.MN("dash");this.C=[];this.ra=[];this.B=this.Qb=null;this.Ma=!1;this.Ka=this.Ra=0;this.K=-1;this.qa=!1;this.Fa=-1;this.Ba=this.Ga=null;this.Y=NaN;this.hd={YP:function(){return e.D}, +Xna:function(){return e.C}, +tna:function(){return e.Z}}; +this.D=new zYa(a,b,c);this.policy.B&&(this.Z=new ZVa(this.D,this.ya.getManifest(),this.policy,function(f){e.policy.Bp&&e.ya.oa("buftl",f)})); +this.ub=c.info.ub;this.N=this.policy.ra?!1:c.OA();this.isManifestless=c.OA();this.G=this.N;g.P(this,this.Ga)}; +BY=function(a,b,c){c=c===void 0?!1:c;b&&JW&&RYa(a.D,b.kQ());if(!c){var d;(d=a.Z)==null||gWa(d)}a.Qb=b;(b=a.Z)!=null&&(b.Qb=a.Qb)}; +CY=function(a){var b=a.Qb&&a.Qb.Jr();if(a.policy.Aw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.D)==null?void 0:c.info}return a||null}return b}; +SYa=function(a){for(var b={},c=0;c4&&a.ra.shift()}; +UYa=function(a,b){if(b.Ol()){var c=b.Uk();c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.C&&b instanceof yX&&a.ya.oa("omblss",{s:d.info.Sc()}),DY(a,b.info.gb,d,b.hQ())}}; +DY=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.ya.oa("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:VYa(a,c);break;case 4:var e=c.info.j,f=e.MV(c),h;((h=a.B)==null?0:h.type===4)&&sEa(c.info,a.B)&&(a.B=e.fC(a.B).pop());c=g.w(f);for(e=c.next();!e.done;e=c.next())DY(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Fa||(e.Fa=(0,g.Zt)(),gG("fvb_r",e.Fa,e.j))):(e=a.timing,e.K||(e.K=(0,g.Zt)(),gG("fab_r",e.K,e.j))); +HYa(a.D,b,c,d);a.policy.B&&WYa(a);break;case 6:HYa(a.D,b,c,d),a.B=c.info}}; +VYa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.Zt)(),gG("vis_r",c.Ma,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.Zt)(),gG("ais_r",c.Z,c.j));DYa(a.D,b);a=a.ya;a.videoTrack.j.jg()&&a.audioTrack.j.jg()&&a.policy.B&&!a.manifest.Vb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+dF(a.audioTrack.j.info,!1),vf:""+dF(a.videoTrack.j.info,!1),a:""+b,v:""+c}))}; +FX=function(a){return AYa(a.D)}; +WYa=function(a){a.C.length?a.B=g.Ib(g.Ib(a.C).info.gb):a.D.B.length?a.B=a.D.Ro().info:a.B=CY(a)}; +EY=function(a,b){var c={kd:[],Qo:[]},d;if((a=a.Z)==null)a=void 0;else{fWa(a,a.kd,"og");dWa(a,b);fWa(a,a.kd,"trim");var e=eWa(a);b=e.kd;e=e.vy;for(var f=[],h=0;h0){var r=mF(q,m);r>=0&&(p=(q.end(r)-m)*1E3)}f.push({formatId:dF(l.info.j.info,a.manifest.Vb),Sj:l.info.Sj, +sequenceNumber:l.info.Pa+a.C,OJ:n,c_:l.info.B,u8:p})}a={kd:b,Qo:f}}return(d=a)!=null?d:c}; +BX=function(a,b,c){c=c===void 0?!1:c;if(a.Qb){var d=a.Qb.oe(),e=oF(d,b),f=NaN,h=CY(a);h&&(f=oF(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&XYa(YYa(a),0))return b}a=ZYa(a,b,c);return a>=0?a:NaN}; +CX=function(a,b,c){a.j.jg();var d=ZYa(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.yc&&c!=null&&c.XA||(d.vy=[]);dWa(d,!0);d.B=$Va(d.kd,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Gf&&e.Gf.type===3)e=e.Gf.startTime;else if(e.C>0){var f=e.j.index;f=g.Yb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=(h=a.ya.Bf())==null?void 0:(l=cX(h,b))==null?void 0:l.clipId;a.B=a.j.Mr(b, +void 0,c).gb[0]}else a.B=a.policy.ra?null:a.j.Mr(b).gb[0];FY(a)&&a.Qb&&a.Qb.abort();a.Ka=0;return a.B?a.B.startTime:b}; +jWa=function(a){a.N=!0;a.G=!0;a.K=-1;CX(a,Infinity)}; +GY=function(a){for(var b=0,c=g.w(a.C),d=c.next();!d.done;d=c.next())b+=uEa(d.value.info);return b+=JYa(a.D)}; +IY=function(a,b){b=b===void 0?!1:b;var c=a.ya.getCurrentTime(),d=a.D.Ro(),e=(d==null?void 0:d.info.Mf)||0;a.policy.Nj&&(d==null?0:d.info.j.OA())&&!d.info.Se&&(e=d.info.We);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.ya.Bf())==null?void 0:aX(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Qb)return a.policy.B&&b&&!isNaN(c)&&d?e-c:0;if((f=CY(a))&&HY(a,f))return f.Mf;f=a.Qb.oe(!0);return b&&d?(b=0,a.policy.B&&(b=qF(f,e+.02)),b+e-c):qF(f,c)}; +$Ya=function(a,b){if(a.C.length){if(a.C[0].info.gb[0].startTime<=b)return;AX(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();WYa(a);a.B&&b=0;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=nN(l,e.policy.Tb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.Ya,e.B.length!==0||e.G||BYa(e,"r"));e.ya.oa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});a.policy.B?a.B=null:d>c?CX(a,d):a.B=a.j.vt(b-1,!1).gb[0]}; +KY=function(a,b){var c;for(c=0;c0?c||b.Pa>=a.Fa:c}; +LY=function(a){var b;return FY(a)||HY(a,(b=a.D.Ro())==null?void 0:b.info)}; +YYa=function(a){var b=[],c=CY(a);c&&b.push(c);b=g.Sb(b,a.D.Yn());c=g.w(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.w(d.info.gb),f=e.next(),h={};!f.done;h={pH:void 0},f=e.next())h.pH=f.value,d.zQ&&(b=g.kn(b,function(l){return function(m){return!sEa(m,l.pH)}}(h))),(RM(h.pH)||h.pH.type===4)&&b.push(h.pH)}a.B&&!kEa(a.B,g.Ib(b),a.B.j.Rm())&&b.push(a.B); +return b}; +XYa=function(a,b){if(!a.length)return!1;for(b+=1;b=b){b=f;break a}}b=e}return b<0?NaN:XYa(a,c?b:0)?a[b].startTime:NaN}; +MY=function(a){return!(!a.B||a.B.j===a.j)}; +bZa=function(a){return MY(a)&&a.j.jg()&&a.B.j.info.ubb&&d.Mf1)for(a=0;a0)return 2;if(b<0)return 1;c=a.qd();return b(0,g.Zt)()?0:1}; +QY=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.O.call(this);var u=this;this.ya=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.KM=r;this.Ei=t;this.qa=!1;this.dH="";this.Ml=null;this.hh=NaN;this.ra=!1;this.B=null;this.rh=this.Z=NaN;this.qq=this.K=0;this.logger=new g.MN("dash");this.hd={YQ:function(y,A){return u.YQ(y,A)}}; +this.policy.Wq>0&&(this.dH=g.Sv(this.policy.Wq));this.policy.Fi&&(this.N=new PY(this.ya,this.policy,this.schedule),g.P(this,this.N))}; +sZa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.UC)||(f=KL(d.j)===KL(d.C));f?d=!1:(e=EM(e,KL(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.Zt)()0&&h.Z===0&&a.ya.Yr),c=d,f=MY(b),d=c.j.rz(c,e),(e=d.C)&&d.gb.length>1&&(f||d.resource.B||d.gb[0].j!==c.j?d=c.j.rz(c,d.gb[0].B):(f=d.gb[d.gb.length-1],h=f.B/e,!f.Se&&h<.4&&(d=c.j.rz(c,e-f.B)))),c=d):(d.Pa<0&&(c=UM(d),c.pr=""+b.C.length,a.ya.isSeeking()&&(c.sk="1"),c.snss=d.C,a.ya.oa("nosq", +c)),c=f.vD(d));if(a.policy.Ma)for(d=g.w(c.gb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Rm()?(c=WVa(a.G,b.j.info.ub,c.j.info.ub,0),c=d.j.rz(d,c)):c=d.j.vD(d);if(a.B){var l=c.gb[0].j.info.id;d=a.j;e=c.gb[0].Pa;d=e<0&&!isNaN(d.G)?d.G:e;e=cY(a.j,c.gb[0].We,d);var m=b===a.audioTrack?1:2;h=c.gb[0].j.info.rb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Zg.event;if(n.j.Pa===d){n=p==="predictStart"?void 0:n.j.Zg.event;break a}if(n.j.Pa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n= +void 0}if(a.policy.Ka&&a.j.B!==0){var q=a.B.nK(e,d,l,m,h,n);d<0&&m===2&&dY(a.j,0,0,!0);if(q){var r;l=((r=q.dn)==null?void 0:r.Nt)||"";var t;r=((t=q.dn)==null?void 0:t.UT)||-1;a.ya.oa("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.iA(e,d,l,m,h,n),d<0&&m===2&&dY(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.CD&&b.isRequestPending(d-1)){a.ya.oa("sdai",{wt_daistate_on_sg:d-1});return}a.ya.oa("sdai",r);t&&(c.j=new g.IL(t));a.policy.C&&(t=c.resource.dK("id")|| +"",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.ya.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.ya.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.nm&&c.gb[0].Pa!==-1&&c.gb[0].Pa=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!JM(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!DO(a.schedule)||a.ya.zJ))return!1;if(a.policy.D&&LP>=5)return g.gp(a.ya.fG),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Pa===-1||b.C.length>=a.policy.Cp||!a.policy.cH&&b.C.length>0&&!a.policy.N.sj)return!1;if(b.N)return!a.manifest.isLive|| +!isNaN(a.hh)}if(gZa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.jg())return!1;CX(b,a.ya.getCurrentTime())}if(FX(b)&&(b.Ro()!==FX(b)||a.ya.isSuspended))return!1;e=(d=a.policy.wB)&&!b.C.length&&IY(b,!0)=a.policy.hq)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.jg()&&(b.B=g.Ib(d.j.fC(d)),d=b.B); +if(!d.Mi()&&!d.j.ut(d))return!1;f=a.manifest.Wd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.qd();var h=c.j.index.qd();f=Math.min(f,h);if(b.j.index.XJ()>0&&f>0&&d.Pa>=f)return b.Fa=f,c.Fa=f,!1}if(d.j.info.audio&&d.type===4||d.Mi())return!1;f=!b.G&&!c.G;if(e=!e)e=d.Mf,e=!!(c.B&&!HY(c,c.B)&&c.B.MftZa(a,b)?(tZa(a,b),!1):(a=b.Qb)&&a.isLocked()?!1:!0}; +tZa=function(a,b){var c=a.j;c=c.j?c.j.Zg:null;if(a.policy.Ma&&c)return c.startSecs+c.Dh+15;b=SY(a.ya,b);a.policy.Kb>0&&(c=((0,g.Zt)()-a.ya.jq)/1E3,b=Math.min(b,a.policy.Kb+a.policy.Ui*c));c=a.ya.getCurrentTime()+b;return a.policy.Ov&&(b=uZa(a.ya)+a.policy.Ov,b=0||b.resource.dK("defrag")==="1"||b.resource.dK("otf")==="1"){b=null;break a}e=NM(0,4096)}e=new WM([new PM(5,d.j,e,"createProbeRequestInfo"+d.C,d.Pa)],b.B);e.Xj=c;e.j=b.j;b=e}b&&rZa(a,b)}}; +rZa=function(a,b){a.ya.rK(b);var c=uEa(b),d=a.ya.eK();c={Kc:a.schedule,dA:c,zS:UVa(a.G,c),Lp:QM(b.gb[0]),Qp:LL(b.resource.j),DJ:a.policy.C,hv:function(e,f){a.ya.hH(e,f)}}; +a.Ml&&(c.Pa=b.gb[0].Pa,c.hh=b.hh,c.Ml=a.Ml);d={Kw:vEa(b,a.ya.getCurrentTime()),VG:a.policy.ge&&YM(b)&&b.gb[0].j.info.video?dYa(a.C):void 0,SH:a.policy.Ma,poToken:a.ya.Yt(),uy:a.ya.tA(),dH:a.dH,rh:isNaN(a.rh)?null:a.rh,Ei:a.Ei,KM:a.KM,qq:a.qq,MB:d};return new zX(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.kx()||!(!a.ya.Qa||a.ya.isSuspended||IY(l)>3)){var m=oZa(e,a.policy,a.D);m===1&&(a.ra=!0);vZa(a,e,m);if(e.isComplete()|| +e.La()&&f<3){if(a.policy.C){var n=e.timing.qr();n.rst=e.state;n.strm=e.xhr.CC();n.cncl=e.xhr&&e.Cd.D?1:0;a.ya.oa("rqs",n)}e.Y1&&a.ya.oa("sbwe3",{},!0)}if(!a.La()&&e.state>=2){BXa(a.timing,e,h);var p=a.ya;a.rh&&e.cJ&&p&&(a.rh=NaN,a.ya.DT(e.cJ),a.ya.sE(),a.ya.oa("cabrUtcSeek",{mediaTimeSeconds:e.cJ}));e.kC&&(e.Sp>0&&a.ya.oa("sError",{errorHttpResponseCode:e.Sp.toString()}),a.rh&&e.kC&&!e.kC.action&&(a.ya.Ku(a.rh),a.rh=NaN,a.ya.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.rh})));a.policy.Jw&&e.pj&& +a.ya.Vm(e.pj);a.policy.Wc&&(a.qq=e.qq);if(e.state===3){KY(l,e);YM(e.info)&&TY(a,l,h,!0);if(a.B){var q=e.info.iA();q&&a.B.Fl(e.info.gb[0].Pa,h.info.id,q,e.info.gb[0].startTime)}a.ya.Ue()}else if(e.isComplete()&&e.info.gb[0].type===5){if(e.state!==4)e.Qm()&&a.ya.handleError(e.Xh(),e.Hr());else{var r=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof zX&&r.kx()&&r.cI(!0)}e.dispose()}else{e.Qm()||wZa(a,e);var t;((t=e.bB)==null?0:t.itagDenylist)&&a.ya.yL(e.bB.itagDenylist); +if(e.state===4)xZa(a,e),a.j&&HXa(a.j,e.info,a.B);else if(a.policy.Zs&&e.Ol()&&!e.isComplete()&&!xZa(a,e)&&!e.Qm())break a;e.Qm()&&(yZa(a,e),isNaN(a.rh)||(a.ya.Ku(a.rh),a.rh=NaN));a.ya.Ue();var u=pZa(e,a.policy,a.D);vZa(a,e,u)}}}}}catch(y){f=a.qa?1:0,a.qa=!0,e=GE(f),f=HE(y,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.lk()}},d)}; +wZa=function(a,b){if(b.KB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c}); +var d=cYa(a.C,c),e=b.info.C;e&&(e-=d.ZP(),d.C=!0,b.info.gb[0].j.C=!1,mXa(b,d.jx(e)),UY(a.ya,a.videoTrack,d),hZa(a.videoTrack,d),a.ya.uS(d.info.video.quality),(e=b.hQ())&&d.info.lastModified&&d.info.lastModified!==+e&&KY(a.videoTrack,b))}else b.KB=!1}}; +yZa=function(a,b){var c=b.info.gb[0].j,d=b.Xh();if(LL(c.resource.j)){var e=g.Ue(b.Xf(),3);a.ya.oa("dldbrerr",{em:e||"none"})}e=b.info.gb[0].Pa;var f=cY(a.j,b.info.gb[0].We,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&zZa(a.ya)){if(!(b.info.resource.B>=a.policy.qw&&a.B&&b.info.eq()&&d==="net.badstatus"&&a.B.FE(f,e))){e=(c.info.video&&c.resource.B>1||b.Ag===410||b.Ag===500||b.Ag===503)&&!(iY(a.C.G).size>0)&&!LL(c.resource.j);f=b.Hr();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1"); +a.ya.handleError(d,f);a.La()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),nY(a.C,c)),KY(h,b),a.ya.Ue())}}else h=1,a.B&&b.info.eq()&&d==="net.badstatus"&&a.B.FE(f,e)&&(h=0),a.manifest.isLive&&b.Xh()==="net.badstatus"&&a.K<=a.policy.Ej*2?(zIa(a.manifest),a.manifest.Wd||a.manifest.isPremiere?EX(a.ya,0,{Zc:"badStatusWorkaround"}):a.manifest.C?EX(a.ya,a.manifest.Ra,{Zc:"badStatusWorkaround", +Fp:!0}):VY(a.ya)):a.ya.handleError(d,b.Hr(),h)}; +xZa=function(a,b){if(a.policy.useUmp&&b.La())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.La(),b.isComplete()||b.Ol(),d.N=!1);b.LP()&&a.ya.mJ.zm(1,b.LP());var e=b.XJ(),f=b.tY();IN(a.manifest,e,f)}if(b.info.Lp()&&!XM(b.info))for(var h=g.w(b.Uk()),l=h.next();!l.done;l=h.next())VYa(d,l.value);for(a.ya.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();UYa(d,m);d.Ra=m.mY()}d.C.length&&UYa(d,d.C[0]);var n=!!FX(d); +n&&b instanceof yX&&(c.info.Gh()?uXa(a.timing):tXa(a.timing));return n}catch(p){b=b.Hr();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.pt&&c.args)for(d=g.w(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.w(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.fx(c);if(c.level==="WARNING"){a.ea.Iq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}}; +AZa=function(a){var b=a.videoTrack.j.index;a.Ml=new lZa({vk:a.policy.vk,sj:a.policy.N.sj,Vj:b.Vj,qd:function(){return b.qd()}, +gx:function(){return b.gx()}})}; +TY=function(a,b,c,d){if(!(c.jg()||c.TA()||c.C||!JM(c.resource,a.policy,a.D)||c.info.rb==="f"||a.policy.B)){if(d){d=a.G;var e=c.info;d=VVa(d,e.video?d.policy.Xw:d.policy.fm,e.ub)}else d=0;d=c.jx(d);a=rZa(a,d);XM(d)&&TYa(b,a);c.C=!0}}; +WY=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.ya=a;this.Ge=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.Y=f;this.isAudioOnly=h;this.Fa=l;this.B=VP;this.Ba=!1;this.logger=new g.MN("sabr");this.Z=this.ra=this.qa=!1;this.videoInfos=this.G=this.Y.videoInfos;this.C=this.N=this.Y.j;this.j=new gY(b,f,function(n,p){m.ya.oa(n,p)}); +BZa(this)&&wOa(this.Ge);CZa(this);this.isAudioOnly&&DZa(this,this.manifest.j["0"])}; +BZa=function(a){a=g.w(a.N);for(var b=a.next();!b.done;b=a.next())if(aF(b.value))return!0;return!1}; +EZa=function(a,b){var c=[];b=g.w(b);for(var d=b.next();!d.done;d=b.next())c.push(dF(d.value,a.manifest.Vb));return c}; +DZa=function(a,b,c){b!==a.D&&(a.D&&(a.Ba=!0),a.D=b,a.xL(b,a.videoTrack,c))}; +IZa=function(a,b){a.logger.debug("setConstraint: "+vL(b));a.Ge.j&&(a.ra=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&FZa(a,b.j):GZa(a,b)?HZa(a,b.B,b.j):a.videoInfos=a.G;a.B=b}; +GZa=function(a,b){return a.Ge.Dn&&b.reason==="b"||a.Ge.WC?!1:a.Ge.nB?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"}; +JZa=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:qL(b,a.B)}; +KZa=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.Ba?!0:a.D?b!==d?!0:!a.j.B||a.Ge.Fj&&a.j.j===a.D.info.itag?!1:!0:!1}; +FZa=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Kb(a.videoInfos,function(e){return e.id===c}); +d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.oa("sabrpf",{pfid:""+c, +vfids:""+d.join(".")}),HZa(a,b,b),jY(a.j,""))}else HZa(a,b,b)}; +HZa=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.kn(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})}; +CZa=function(a){var b=null;if(b=a.Ge.bk?NXa(a.j,a.Fa):g.Kb(a.N,function(c){var d;return!((d=c.dc)==null||!d.isDefault)}))a.C=[b]}; +LZa=function(a,b){return a.map(function(c){return eF(c,b)})}; +MZa=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=iY(a.j);b=g.kn(a.videoInfos,function(d){return d.ub>a.Ge.ub?!1:!c.has(d.id)}); +MXa(a.j)&&(b=g.kn(b,function(d){return d.video.width<=854&&d.video.height<=480})); +return b}; +NZa=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.jQ(e),h=eXa({Da:e.U(),ea:a.ea,AE:a.AE,Ge:a.Ge,jq:a.jq,Wx:a.Wx,Lw:a.Lw,Vy:a.Vy,Gq:a.Gq,isPrefetch:a.isPrefetch,nH:a.nH,qH:a.qH,Oz:a.Oz,sabrLicenseConstraint:e.sabrLicenseConstraint,Ly:a.Ly}),l=VX(e,a.MB,a.nextRequestPolicy,a.Ak,a.SS,a.Ada),m=a.xH,n=a.yH;if(n===void 0&&m===void 0){var p;n=d.Vb;n=(m=(p=a.CO)==null?void 0:p.video)?[dF(m.info,n)]:[];var q;p=d.Vb;m=(m=(q=a.CO)==null?void 0:q.audio)?[dF(m.info,p)]:[]}if(e.Ei)var r=e.Ei;e={zr:h, +Qo:a.Qo,xH:m,yH:n,videoPlaybackUstreamerConfig:r,BC:l};a.dn&&(e.dn=a.dn);if(f&&b){f=new Map;var t=g.w(d.Va);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Wa[gIa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.w(a.kd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:cX(q,l),q=r.clipId,r=r.Nl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,kd:[],Ax:n})),r!==0&&(h.startTimeMs= +l-r),d.get(q).kd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:bX(b)}));e.QH=[];d=g.w(d.entries());for(f=d.next();!f.done;f=d.next())f=g.w(f.value),f.next(),f=f.next().value,e.QH.push(f);if(a.kd.length&&!e.QH.length){if(c){e="";a=g.w(a.kd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+ +(((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:bX(b)})}return}a.UK&&(e.UK=a.UK);a.RK&&(e.RK=a.RK)}else e.kd=a.kd,e.Ax=d.Va,f&&((t=a.kd)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e}; +XY=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Cb=c;this.B=null;this.hd={yoa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}}; +OZa=function(a,b,c){if(a.Xr())return!0;a.data=b;a.j=NZa(b,c,function(d,e){var f;(f=a.Cb)==null||f.Gk(d,e)}); +if(!a.j)return!1;a.B=g.CK(a.j,BCa);return!0}; +qXa=function(a,b,c){a.Xj===void 0&&(a.Xj=a.resource.Xj(b,c));return a.Xj}; +PZa=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.zr)==null?void 0:c.MS)||0}; +QZa=function(a){var b,c;return!!((b=a.j)==null?0:(c=b.zr)==null?0:c.Ly)}; +RZa=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,j_a(b,c,f));break;case 1:j_a(b,dZ,d_a);break;case 0:k_a(b, +b.j&7);c=hZ(b,16);e=hZ(b,16);(c^e)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(a.C*2),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output}; +j_a=function(a,b,c){b=h_a(b);c=h_a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=fZ[n];h+=hZ(a,eZ[n]);m=i_a(a,c);l=gZ[m];l+=hZ(a,e_a[m]);if(m_a&&hc.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<=0)return k_a(a,c&15),c>>4;for(k_a(a,7);c<0;)c=b[hZ(a,1)-c];return c>>4}; +hZ=function(a,b){for(;a.j=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<>=b;a.j-=b;return c}; +k_a=function(a,b){a.j-=b;a.register>>=b}; +h_a=function(a){for(var b=[],c=g.w(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h7&&(f+=b[h]);for(e=1;e>m&1;l=f<<4|h;if(h<=7)for(m=1<<7-h;m--;)d[m<>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d}; +n_a=function(a){var b,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.l_a(new g.f_a(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new VJ([]);case 2:return g.G(m,d.read(),5);case 5:f=m.B;h=f.value;if(l=f.done){m.Ha(4);break}e.append(h);m.Ha(2);break;case 4:return m.return($J(e))}})}; +iZ=function(a,b){this.j=a;this.wd=b}; +o_a=function(a){return nU(nU(nU(lU(),function(){return a.wd.mf(function(b){return a.wZ(a.j,b)})}),function(){return a.vZ(a.j)}),function(){return a.uZ(a.j)})}; +p_a=function(a){XX.call(this,"onesie");this.Jc=a;this.j={};this.C=!0;this.D=null;this.queue=new c_a(this);this.G={}}; +q_a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.w(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.bZ){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||cZ(e)}}}; +t_a=function(a,b){var c=b.totalLength,d=!1;switch(a.D){case 0:a.Jc.L("html5_future_ump_fetcher_inflate")?nU(r_a(a,b,a.C).mf(function(e){s_a(a.Jc,e)}),function(e){a.Jc.Zi(e)}):a.BL(b,a.C).then(function(e){s_a(a.Jc,e)},function(e){a.Jc.Zi(e)}); +break;case 2:a.Md("ormk");b=$J(b);a.queue.decrypt(b);break;default:d=!0}a.Jc.Om&&a.Jc.oa("ombup","id.11;pt."+a.D+";len."+c+(d?";ignored.1":""));a.D=null}; +r_a=function(a,b,c){a.Jc.BL();b=$J(b);b=jU(b);c&&(b=b.mf(function(d){return nU(u_a(a.Jc,d,a.iv),function(e){return lU({name:"DecryptError",message:e})})})); +a.Jc.enableCompression&&(b=b.mf(function(d){return nU(o_a(new iZ(d,a.Jc.U().bk)),function(e){return lU({name:"DecompressError",message:e})})})); +return nU(b.mf(function(d){return uK(d,vCa)}),function(d){var e,f,h,l={name:(f=d.name)!=null?f:"unknown", +message:(h=d.message)!=null?h:"unknown",wasm:a.Jc.U().wd?((e=a.Jc.U().wd)==null?0:e.Bo)?"1js":"1":"0",enc:a.C,gz:a.Jc.enableCompression};l.webcrypto=""+ +!!OJ();l.enc=""+ +a.C;return lU(new FE("onesie.response.parse",l))}).mf(function(d){if(d.KL!==1)throw d={st:d.KL, +webcrypto:""+ +!!OJ(),textencoder:""+ +!!g.Ja.TextEncoder},new FE("onesie.response.badproxystatus",d);if(d.BK!==200)throw new FE("onesie.response.badstatus",{st:d.BK});return g.gK(d.body)})}; +v_a=function(a){return new Promise(function(b){setTimeout(b,a)})}; +w_a=function(a,b){var c=a.U();c=a.Ed&&c.L("html5_onesie_preload_use_content_owner");var d=a.vS,e=jO(b.W.experiments,"debug_bandaid_hostname");if(e)b=oW(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=KL(new g.IL(d.url));b=oW(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=rO(a.videoId);a=[];if(f)for(f=g.w(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}}; +x_a=function(a,b,c){c=c===void 0?0:c;var d,e;return g.J(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(v_a(c)),g.G(f,Promise.race(d),2);e=w_a(a,b);return f.return(e)})}; +y_a=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");OJ()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&rQ(b)&&b.Ed,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),iO||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad", +"0"),a.set("oavd","0")))}; +z_a=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.Zk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.LQ&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.wb()});g.pr("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.pr("EOM_VISITOR_DATA")}):(c=c.visitorData||g.pr("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=jO(b.experiments, +"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=jK(JSON.stringify(a));return{url:h,EQ:f,postBody:a,kda:e,xC:e}}; +B_a=function(a,b,c,d,e,f){var h=g.CK(a,uCa,a.xC?void 0:c.wd),l={encryptedClientKey:b.j.encryptedClientKey,X1:!0,UX:!0,sP:A_a(c,!!a.xC),H3:c.experiments.kb("html5_use_jsonformatter_to_parse_player_response")};if(a.xC)l.afa=h;else{a=b.encrypt(h);var m;a=((m=c.wd)==null?void 0:m.CR(a))||a;m=l.VX=a;(0,g.Zt)();m=fBa(new eBa(b.j.C),m,b.iv);l.mZ=m;l.iv=b.iv}b=d.getVideoData();c=eXa({Da:c,ea:d,AE:b.startSeconds*1E3,nH:!0,qH:!0});return{MQ:l,zr:c,onesieUstreamerConfig:e,mp:f,BC:VX(b)}}; +C_a=function(a,b,c){var d,e,f;return g.J(function(h){if(h.j==1)return d=g.CK(b,uCa),g.G(h,$Za(c,d),2);if(h.j!=3)return e=h.B,g.G(h,a_a(c,e),3);f=h.B;return h.return({VX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,mZ:f,X1:!0,UX:!0,sP:A_a(a,!!b.xC),H3:a.experiments.kb("html5_use_jsonformatter_to_parse_player_response")})})}; +D_a=function(a,b,c,d,e,f){var h,l,m;return g.J(function(n){if(n.j==1)return g.G(n,C_a(c,a,b),2);h=n.B;l=d.getVideoData();m=eXa({Da:c,ea:d,AE:l.startSeconds*1E3,nH:!0,qH:!0});return n.return({MQ:h,zr:m,onesieUstreamerConfig:e,mp:f,BC:VX(l)})})}; +A_a=function(a,b){a=CO(a.schedule,!0);b=b||!!OJ()&&a>1572864;return"DecompressionStream"in window||!b}; +kZ=function(a,b){g.O.call(this);var c=this;this.ea=a;this.playerRequest=b;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.MN("onesie");this.Om=this.W.Ac();this.jP=this.W.al;this.NG=new ZZa(this.jP.j,this.W.bk);this.xhr=null;this.state=1;this.Rq=new FF;this.gZ=!1;this.playerResponse="";this.Tl=new KX(this);this.Wm=new p_a(this);this.iI=this.W.L("html5_onesie_check_timeout");this.NO=new g.fp(this.v7,500,this);this.OG=new g.fp(this.vQ,1E4,this);this.JL=new g.fp(function(){if(!c.isComplete()){var d= +jZ(c);c.Zi(new FE("net.timeout",d))}},g.AC(this.W.experiments,"html5_onesie_request_timeout_ms")); +this.K0=new g.fp(this.I$,2E3,this);this.Xu="";this.JK=this.HZ=!1;this.BA=this.ea.tA();this.wS="";this.rH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.sR=this.MA=!1;this.TH=[];this.uv=this.mj=-1;g.P(this.videoData,this);g.P(this,this.NO);g.P(this,this.OG);g.P(this,this.K0);a=mO();iO&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.cg=new Map);this.hY=new Map;this.P_=new Map;this.J1=new Map}; +bZ=function(a,b){var c;return(c=a.cg)==null?void 0:c.get(b)}; +F_a=function(a,b,c){var d;return g.J(function(e){if(e.j==1)return a.Md("oprd_s"),E_a(a)?g.G(e,b_a(a.NG,b,c),3):(d=a.NG.decrypt(b,c),e.Ha(2));e.j!=2&&(d=e.B);a.Md("oprd_c");return e.return(d)})}; +u_a=function(a,b,c){a.Md("oprd_s");var d=a.NG;d.B||(d.B=new UZa(d.j.j,d.wd));d=d.B;a:{if(b.length<=131072&&d.wd&&!d.wd.Bo){var e=VZa(d,b,c);if(e.currentState===1){b=e;break a}}b.length<=32768?b=WZa(d,b,c):(e=YZa(d,b,c),b=e.currentState===1?e:XZa(d,b,c))}a.Md("oprd_c");return b}; +G_a=function(a){return a.L("html5_onesie_host_probing")||a.Om?iO:!1}; +s_a=function(a,b){a.Md("oprr");a.playerResponse=b;a.sR||(a.rH=!1);lZ(a)}; +lZ=function(a){if(!a.playerResponse)return!1;if(a.MA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&sQ(a.videoData);if(a.cg&&a.rH){if(!a.cg.has(a.Xu))return!1;var c=a.cg.get(a.Xu),d;if(d=c){d=!1;for(var e=g.w(c.fd.keys()),f=e.next();!f.done;f=e.next())if(f=c.fd.get(f.value))for(var h=g.w(f.kG),l=h.next();!l.done;l=h.next())l.value.Is>0&&(f.Gh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Md("ofr");a.Rq.resolve(a.playerResponse);if(!a.iI){var m;(m=a.JL)==null||m.start();a.OG.start()}return a.MA= +!0}; +I_a=function(a){if(a.cg&&!a.L("html5_onesie_media_capabilities")){a.Md("ogsf_s");var b=aXa(a.ea.getVideoData(),function(d,e){a.oa(d,e)}),c=H_a(a.ea); +b.video=RWa(c,b.video);a.Md("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}}; +E_a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.xC)||g.dP(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!OJ()}; +jZ=function(a){if(!a.Pd)return{};var b=a.Pd.qr();b.d=tWa(a.Pd);b.shost=a.V1;b.ty="o";return b}; +J_a=function(a,b){var c,d;(d=(a=(c=a.cg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d}; +K_a=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);var q=this;this.ea=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Kc=h;this.ra=l;this.C=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.Ma=this.Ka=!1;this.Ak=new Set;this.D=this.Ga=this.Y=this.Gq=0;this.K=null;this.hd={eoa:function(){return q.j}, +Ana:function(){return q.G}, +Oma:function(){q.j.length=0}, +Ona:function(){return q.Ak}, +Kna:function(){return q.Y}, +ypa:function(r){q.Y=r}, +Dpa:function(r){q.D=r}}; +this.videoData=this.ea.getVideoData();this.policy.Fi&&(this.Fa=new PY(this.ya,this.policy,this.Kc),g.P(this,this.Fa))}; +N_a=function(a,b){b=b===void 0?!1:b;if(L_a(a,b)){a.policy.Ba&&a.ya.oa("sabrcrq",{create:1});var c=new XY(0,a.manifest.Y,a);a.policy.jf>0&&a.D++;b=M_a(a,c,b);a.j.push(b);var d;(d=a.Fa)==null||mZa(d,a.manifest.Y)}}; +Q_a=function(a,b){var c=EY(a.audioTrack,a.ya.isSeeking()),d=EY(a.videoTrack,a.ya.isSeeking()),e=[].concat(g.x(c.kd),g.x(d.kd)),f=[].concat(g.x(c.Qo),g.x(d.Qo)),h=!mZ(a,a.audioTrack),l=!mZ(a,a.videoTrack),m=rO(a.ya.Yt()),n=a.ya.eK(),p,q,r=a.ea,t=a.manifest,u;var y=a.policy.K&&((u=a.ya)==null?void 0:u.PF());u=a.ya.getCurrentTime()||0;u=O_a(a,u);var A=a.ya.Dc()||0;u+=A;A=JQ(a.videoData)||g.IQ(a.videoData);var D=0;y?(A&&(D=Number.MAX_SAFE_INTEGER),a.videoData.Ka&&(D=Math.ceil(a.videoData.Ra*1E3))):D= +Math.ceil(u*1E3);y=Math.min(Number.MAX_SAFE_INTEGER,D);u=a.B;A=a.Ak;D=a.policy;var F=a.ya.jq,H=uZa(a.ya)*1E3,M=(p=a.Ba)==null?void 0:p.Lw;p=(q=a.Ba)==null?void 0:q.Vy;var N;q=Number((N=a.C.D)==null?void 0:N.info.itag)||0;var Q;N=Number((Q=a.C.K)==null?void 0:Q.info.itag)||0;b={ea:r,manifest:t,kd:e,Qo:f,AE:y,nextRequestPolicy:u,Ak:A,Ge:D,jq:F,Wx:H,Lw:M,Vy:p,Gq:a.Gq,isPrefetch:b||a.ya.isSuspended,nH:h,qH:l,SS:m,UK:q,RK:N,MB:n};if(e=a.ea.lx())b.Ly=e*1E3;if(a.policy.Wi){e=a.C;f=e.qa;if(e.Ge.j&&!f&&e.Ge.DD)for(h= +g.w(e.C),l=h.next();!l.done;l=h.next())if(l.value.dc){f=!0;break}e=e.Ge.j&&!f?[]:EZa(e,e.C);b.xH=e;e=a.C;e.Ge.j&&!e.ra?e=[]:(f=MZa(e),f.length===0&&(f=e.G),e=EZa(e,f));b.yH=e}else a.rK(a.videoTrack.j),a.rK(a.audioTrack.j),b.CO=oY(a.ra);a.policy.Dn&&(e=a.ea.IP().T0,b.Oz=e.j);if(a.policy.G){c=P_a(a,c.kd,d.kd);var Z;if(d=(Z=a.K)==null?void 0:Z.iQ(c))b.dn=d}a.policy.qa&&a.j.length>0&&a.j[0].FO()&&(b.Ada=a.j[0].fQ());return b}; +O_a=function(a,b){if(a.ya.isSeeking())return b;var c=a.ea.Ke();if(!c)return b;c=c.Eh();if(c.length===0||nF(c,b))return b;for(var d=b,e=Infinity,f=0;fb)){var h=b-c.end(f);h0){var c=Math.floor((0,g.Zt)()/1E4);if(c===a.Ga){if(a.D>=a.policy.jf){if(a.D===a.policy.jf){var d={reason:"toomanyrequests"};d.limit=a.D;a.ya.handleError("player.exception",d);a.D+=1}return!1}}else a.Ga=c,a.D=0}b=!b&&!DO(a.Kc);if(a.ya.isSuspended&&(a.ya.zJ||b)||a.qa&&(0,g.Zt)()0&&(!a.policy.qa||a.j.length!==1||!a.j[0].FO())||(d=a.manifest.Y)==null||!JM(d,a.policy,a.G))return!1;d=a.policy.SD&&a.policy.j&&a.ya.Bf();if(LY(a.audioTrack)&&LY(a.videoTrack)&& +!d)return!1;if(a.policy.j&&a.N&&!a.ya.Bf())return a.Gk("ssap",{pauseontlm:1}),!1;if(a.policy.fz&&mZ(a,a.audioTrack)&&mZ(a,a.videoTrack))return a.policy.C&&a.ya.oa("sabrHeap",{a:""+GY(a.audioTrack),v:""+GY(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=P_a(a,EY(a.audioTrack,a.ya.isSeeking()).kd,EY(a.videoTrack,a.ya.isSeeking()).kd),c=a.Z,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Ba&&a.ya.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Ba&& +a.ya.oa("sabrcrq",{nopolicy:1}),!0;if(a.ea.lx())return a.policy.Ba&&a.ya.oa("sabrcrq",{utc:1}),!0;if(a.C.Z)return a.policy.Ba&&a.ya.oa("sabrcrq",{audio:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Ba&&a.ya.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.ya.PF())return a.policy.Ba&&a.ya.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(SY(a.ya,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(SY(a.ya,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d, +b);c=IY(a.audioTrack,!0)*1E3;var f=IY(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.C&&a.policy.Uf){var l=a.ya.uc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.oa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.ya,a.Qa&&a.Qa.j&&a.Qa.B&&a.wb&&!JN(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.oe(),b=a.Qa.B.oe(),c=c?oF(c,d):d,d=b?oF(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=dX(a.wb),d=d>=a-.01)):d=!1);return d?!1:!0}; +M_a=function(a,b,c){var d={Kc:a.Kc,hv:function(m,n){a.ea.hH(m,n)}, +Lp:a.policy.yn,DJ:a.policy.C},e=qXa(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,S_a(a));c=Q_a(a,c);if((a.policy.j||a.policy.qa)&&a.policy.C&&c.Ak){for(var f=e="",h=g.w(c.Ak),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.oa("sabrbldrqs",{ctxts:e,misctxts:f})}OZa(b,c,a.ya.Bf())||!a.policy.j&&!a.policy.qa||a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new ZX(a.policy,b,a.manifest,a.G,a,d,a.ya.tA(),a.policy.Rf?a.ya.Bf():void 0); +$X(a.timing);a.policy.Ba&&a.ya.oa("sabrcrq",{rn:d.Vp(),probe:b.Xr()});return d}; +V_a=function(a,b){if(b.La()||a.La())a.policy.K||a.ya.Ue();else{if(a.policy.C&&b.isComplete()&&b instanceof ZX){var c=a.ya,d=c.oa;var e=Object.assign(b.Pd.qr(),{rst:b.state,strm:b.xhr.CC(),d:tWa(b.Pd),cncl:b.xhr&&b.Cd.D?1:0,rqb:b.I1});e=Object.assign(RZa(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Xr())b.dispose();else{if(b.MZ())b instanceof ZX&&BXa(a.timing,b),S_a(a),T_a(a);else if(b.Qm())c=a.ea.lx(),b instanceof ZX&&QZa(b.info)&&c&&a.ya.Ku(c),b instanceof kZ?a.j.pop():(c=1,b.canRetry()&&zZa(a.ya)&& +(U_a(a,b),c=0),a.ya.handleError(b.Xh(),b.Hr(),c));else{if(a.ya.isSuspended&&!b.isComplete())return;T_a(a)}b.La()||b instanceof kZ||(b.isComplete()?c=pZa(b,a.policy,a.G):(c=oZa(b,a.policy,a.G),c===1&&(a.Ka=!0)),c!==0&&(b=new XY(1,b.info.resource),b.Xj=c===2,M_a(a,b)))}a.ya.Ue()}}; +T_a=function(a){for(;a.j.length&&a.j[0].yQ(a.nf());){var b=a.j.shift();W_a(a,b);a.policy.ze&&b instanceof ZX&&b.dispose();if(a.policy.G){var c=a;if(!c.policy.Ab&&b.yQ(c.nf())){var d=b.Vp();if(c.Ra!==d){var e=b.IY();b=e.mj;var f=e.uv;e=e.eq;!c.K||f<0||(c.Ra=d,d=cY(c.Z,f/1E3,b),f=c.ya.Dc()||0,GXa(c.Z,b,d-f,e,c.K))}}}}a.j.length&&W_a(a,a.j[0])}; +W_a=function(a,b){if(a.policy.Wi){var c=new Set(b.Gr(a.nf()));c=g.w(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof kZ))){var f=a.C,h=f.manifest.Vb;d=LZa(f.C,h);f=LZa(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Yn(e,a.nf()),b.Ol(e,a.nf()))){e=b.Uk(e,a.nf());if(a.policy.j&&(f=d[0].j.info,(h=a.ya.Bf())&&f)){var l=b.kY();if(h.api.L("html5_ssap_set_format_info_for_all")||l!==h.ea.getVideoData().clientPlaybackNonce)if(h=NW(h.timeline,l))if(h=h[0].getVideoData())f.Gh()? +h.D=f:h.B=f}e=g.w(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.C&&b instanceof kZ&&a.ya.oa("omblss",{s:f.info.Sc()});h=f.info.j.info.Gh();var m=f.info.j;if(h){l=void 0;var n=a.C,p=(l=b.dQ(a.nf()))==null?void 0:l.token;n.Z=!1;m!==n.K&&(n.K=m,n.xL(m,n.audioTrack,p))}else l=void 0,DZa(a.C,m,(l=b.dQ(a.nf()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof kZ&&(l.N=!1,b instanceof kZ&&(h?uXa(a.timing):tXa(a.timing)));DY(l,d,f)}}}}else for(d=b.jY()||oY(a.ra),c=new Set(b.Gr(a.nf())), +a.policy.j?e=c:e=[((f=d.video)==null?void 0:eF(f.info,a.manifest.Vb))||"",((h=d.audio)==null?void 0:eF(h.info,a.manifest.Vb))||""],d=g.w(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Ol(e,a.nf()))for(f=b.Uk(e,a.nf()),f=g.w(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.C&&b instanceof kZ&&a.ya.oa("omblss",{s:h.info.Sc()}),l=b.Yn(e,a.nf()),m=(n=h.info.j.info.Gh())?a.audioTrack:a.videoTrack,b instanceof kZ&&(m.N=!1,b instanceof kZ&&(n?uXa(a.timing):tXa(a.timing))),DY(m,l,h)}; +U_a=function(a,b){a.policy.qa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())}; +X_a=function(a,b){for(var c=[],d=0;d0)for(var b=g.w(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.Ak.add(c)}if(a.policy.qa&&a.j.length)for(b=g.w(a.j),c=b.next();!c.done;c=b.next())(c=c.value.fQ())&&c.type&&c.sendByDefault&&a.Ak.add(c.type)}; +Z_a=function(a){a.policy.wc&&(a.Ba=void 0,a.Gq=0)}; +$_a=function(a,b){if(b.Qm()||b.La()){var c=a.ya,d=c.oa,e=b.state;a=a.nf();var f,h;if((b=(f=b.cg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Gr();for(var l=0;l=a.policy.ww,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e=a.policy.Zj&&!a.C;if(!f&&!c&&e0a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.Zt)()/1E3-(a.Pz.fh()||0)-a.N.j-a.policy.Rc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){nZ(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Yj;d=f.We&&d<=f.Mf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Gh()}),!1;(a=a.ra)!=null&&(a.fd.get(c).dE=!0);return!0}; +l0a=function(a){if(!a.manifest.Vb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&qZ(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&qZ(a.ea)&&(b.Wd||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.jz&&!!((c=a.qa)==null?0:(d=c.f_)==null?0:d.Zca)!==a.manifest.Wd)return a.oa("ombplmm",{}),!1;c=b.Ob||b.liveUtcStartSeconds||b.ge;if(a.manifest.Wd&&c)return a.oa("ombplst",{}),!1;if(a.manifest.qa)return a.oa("ombab",{}),!1;c=Date.now();if(JN(a.manifest)&& +!isNaN(a.Ba)&&c-a.Ba>a.policy.ZF*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.df&&a.manifest.C||!a.policy.OD&&a.manifest.isPremiere||xQ(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; +m0a=function(a,b){var c=b.j,d=a.manifest.Vb;if(l0a(a))if(a.ra&&a.ra.fd.has(eF(c.info,d))){if(d=eF(c.info,d),k0a(a,b)){var e=new WM(a.ra.Yn(d)),f=function(h){try{if(h.Qm())a.handleError(h.Xh(),h.Hr()),KY(b,h),YM(h.info)&&TY(a.D,b,c,!0),a.Ue();else if(xZa(a.D,h)){var l;(l=a.C)==null||HXa(l,h.info,a.K);a.Ue()}}catch(m){h=HE(m),a.handleError(h.errorCode,h.details,h.severity),a.lk()}}; +c.C=!0;XM(e)&&(TYa(b,new yX(a.policy,d,e,a.ra,f)),$X(a.timing))}}else a.oa("ombfmt",{})}; +rZ=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=UY,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Li(b)||0;e.Fa!==b&&(e.Ma={},e.Fa=b,lY(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.Zt)()-e.Yb.j&&b.reason==="b";d||e||c?(a.ea.Iq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Fj||(a.B.j.B=!1)):(a.policy.Fj&&(a.B.j.B=!1),tZ(a))}}else if(!UXa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); +c=a.j.j;t0a(a,WXa(a.j,b));rZ(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Tf&&b.reason==="l"&&MY(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.Ya&&!vF();d||e||c||f?a.ea.Iq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):tZ(a)}}; +v0a=function(a,b,c){if((!a.Qa||yF(a.Qa)&&!a.policy.qm)&&!a.Lg.isSeeking()&&(dU(a.policy)||MY(b)&&b.j.jg()&&a.j.qa)){var d=a.getCurrentTime()+XVa(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); +$Ya(b,d)}}; +t0a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+jF(b.video.info)}),w0a(a.ea,new fY(b.video,b.reason))); +if(a.j.Wa){var c=oY(a.j,"a");a.ea.oy(new fY(c.audio,c.reason))}}; +tZ=function(a){g.gp(a.yb)}; +x0a=function(a,b){var c=(0,g.Zt)()-b,d=IY(a.audioTrack,!0)*1E3,e=IY(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c}); +if(a.policy.C&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),eU(a.policy))){var f=wX(a.Y);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:YVa(a.Y,a.Yr,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Yr,ps:(a.policy.qI||"").toString(),rn:(a.policy.dI||"").toString()})}}; +y0a=function(a){if(a.policy.j&&OY(a.videoTrack)&&OY(a.audioTrack))return"ssap";if(gZa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.ob&&iZa(a.videoTrack)&&iZa(a.audioTrack))return"updateEnd";if(LY(a.audioTrack)||LY(a.videoTrack)&&a.videoTrack.j.info.rb!=="f")return"";if(a.Lg.isSeeking()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.B){var e=b.policy.Vk;eU(b.policy)&&(e=YVa(b,!1,wX(b)));b=e;c=IY(d,!0)>=b&&IY(c,!0)>=b}else c.C.length|| +d.C.length?(e=c.j.info.ub+d.j.info.ub,e=10*(1-wX(b)/e),b=Math.max(e,b.policy.Vk),c=IY(d,!0)>=b&&IY(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&AYa(c.D).info.D360);d=eU(a.policy)&&a.policy.tm;if(!a.Yr||!d&&c)return"";c=a.policy.Jq;eU(a.policy)&&(c=YVa(a.Y,a.Yr,wX(a.Y)));c=cZa(a.videoTrack, +a.getCurrentTime(),c)||cZa(a.audioTrack,a.getCurrentTime(),c);return eU(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||qZa(a.D,a.videoTrack,a.audioTrack)||qZa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""}; +z0a=function(a){if(a.G){var b=a.G.Ue(a.audioTrack,pF(a.Qa.B.oe()));b&&a.ea.seekTo(b,{xx:!0,Zc:"pollSubsegmentReadahead",Fp:!0})}}; +F0a=function(a,b,c){if(a.policy.ob&&iZa(b))return!1;if(c.RQ())return!0;if(!c.gJ())return!1;var d=FX(b);if(!d||d.info.type===6)return!1;var e=a.policy.ZD;if(e&&!d.info.Se){var f=d.info.We-a.getCurrentTime();if(d.info.De)return a.policy.B&&C0a(a,b),!1;D0a(a,b);var l;a.policy.Ie&&c===((l=a.Qa)==null?void 0:l.j)&&a.Wa&&(c.oK()===0?(a.Wa=!1,a.policy.Ie=!1):a.Ya=c.oK());if(!E0a(a,c,d))return!1;a.policy.ob&&d.info.Mi()?d.isLocked=!0: +(b.Os(d),ZXa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.Sc()+", buffered: "+lF(c.oe())})); +return!0}; +C0a=function(a,b){a.policy.Ed&&(b===a.videoTrack?a.Ka=a.Ka||(0,g.Zt)():a.Ga=a.Ga||(0,g.Zt)())}; +D0a=function(a,b){a.policy.Ed&&(b===a.videoTrack?a.Ka=0:a.Ga=0)}; +E0a=function(a,b,c){var d=a.policy.Ra?(0,g.Zt)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=G0a(a,c,f)||f);var h=$J(f);f=a.policy.Ra?(0,g.Zt)():0;e=H0a(a,b,h,c.info,e);a.policy.Ra&&(!c.info.Ub||c.info.Se||c.info.We<10)&&(b=b.uc({as:c.info.Sc(),pdur:Math.round(f-d),adur:Math.round((0,g.Zt)()-f)}),b.omt=(a.getCurrentTime()+a.Dc()).toFixed(3),b.to=a.Dc(),a.oa("sba",b));if(e==="s")return a.Ra&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Ra=!1,a.ob=!1),a.fb=0,!0;if(e==="i"||e==="x")return I0a(a, +"checked",e,c.info),!1;if(e==="q"){if(!a.Ra)return a.logger.debug("QuotaExceeded, retrying."),a.Ra=!0,!1;if(!a.ob)return a.ob=!0,a.ea.seekTo(a.getCurrentTime(),{Zc:"quotaExceeded",Fp:!0}),!1;c.info.zg()?(b=a.policy,b.Va=Math.floor(b.Va*.8),b.Ga=Math.floor(b.Ga*.8)):(b=a.policy,b.Fa=Math.floor(b.Fa*.8),b.Ga=Math.floor(b.Ga*.8));dU(a.policy)?hY(a.B.j,c.info.j,!1):nY(a.j,c.info.j)}a.ea.Iq({reattachOnAppend:e});return!1}; +G0a=function(a,b,c){var d;if(d=a.policy.pw&&a.Qa&&!a.Qa.qa&&!a.ea.FJ())b=b.info.j.info,d=b.Le()&&XE(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,LE('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=xYa(c),a.policy.C&&a.oa("sp4k",{s:!!c}),c}; +I0a=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",dU(a.policy)?!d.j.info.video||iY(a.B.j).size>0||hY(a.B.j,d.j,!1):!d.j.info.video||iY(a.j.G).size>0||nY(a.j,d.j)):c==="i"&&(a.fb<15?(a.fb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=UM(d);var h;d.mrs=(h=a.Qa)==null?void 0:DF(h);d.origin=b;d.reason=c;a.handleError(e,d,f)}; +PYa=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=hF(f.j[p].info.mimeType)||f.j[p].info.zg();if(d===m)if(m=f.j[p].index,m.po(b.Pa)){if(!f.Xa){h=m;m=b;var n=h.Tn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.HN(m),h=!0):h=!1}h&&(l=b.Pa)}else m.HN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;pWa(a.Lg,b,d,f);a.C.hS(b,c,d,e);b.Pa===a.manifest.df&&f&&FN(a.manifest)&&b.startTime>FN(a.manifest)&&(a.manifest.Ra=b.startTime+(isNaN(a.timestampOffset)? +0:a.timestampOffset),a.Lg.isSeeking()&&a.Lg.j1)return"r";m.Ga=new g.fp(function(){if(!a.La()&&b.RF()){var p;a.oa("nue",{ls:(p=b.Jr())==null?void 0:p.Sc()});b.Jr()&&(b.Jr().qO+=1);b.kJ();a.Qa&&a.QB()}},2E4,a); +m.Ga.start()}if(a.policy.Ap&&(d==null?0:d.Mi())){var n;if((n=m.Ba)==null?0:n.isActive())g.hp(m.Ba),a.oa("sbac",{as:d.Sc()});m.Ba=new g.fp(function(){a.oa("sbum5s",{as:d.Sc()})},5E3,a); +m.Ba.start()}a.policy.Bw&&(d==null?void 0:d.j)instanceof $M&&d.Mi()&&a.oa("poseos",{itag:d.j.info.itag,seg:d.Pa,lseg:d.j.index.qd(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(p){if(p instanceof DOMException){if(p.code===11)return"i";if(p.code===12)return"x";if(p.code===22||p.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:lF(b.oe()).replace(/,/g,"_"),vheap:GY(a.videoTrack),aheap:GY(a.audioTrack),message:g.Ue(p.message,3),track:a.Qa?b===a.Qa.B? +"v":"a":"u"},h0a()),a.handleError("player.exception",c),"q";g.ex(p)}return"u"}return a.Qa.Ng()?"m":"s"}; +EX=function(a,b,c){a.ea.seekTo(b,c)}; +xY=function(a,b){a.ea.AL(b)}; +SY=function(a,b){if(a.Ra&&!a.Yr)return 3;if(a.isSuspended)return 1;var c;if((c=a.Qa)==null?0:c.Qa&&c.Qa.streaming===!1)return 4;c=(b.j.info.audio?a.policy.Fa:a.policy.Va)/(b.ub*a.policy.hm);if(a.policy.yq>0&&a.Qa&&yF(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.Ek()){b=b.oe();var d=mF(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.yq,a.policy.aE)))}a.policy.Ga>0&&(c=Math.min(c,a.policy.Ga));return c}; +L0a=function(a){a.Va&&!a.isSuspended&&DO(a.schedule)&&(K0a(a,a.Va),a.Va="")}; +K0a=function(a,b){mW(b,"cms",function(c){a.policy.C&&a.oa("pathprobe",c)},function(c){a.ea.handleError(c)})}; +M0a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Ng()&&(b.Kw=IY(a.videoTrack),b.B=IY(a.audioTrack),a.policy.C)){var c=GY(a.videoTrack),d=GY(a.audioTrack),e=lF(a.Qa.B.oe(),"_",5),f=lF(a.Qa.j.oe(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=vX(a.Y);a.logger.debug(function(){return EE(b.j)})}; +N0a=function(a,b){a.K=b;a.C&&(a.C.K=b);a.K.FT(a.videoTrack.j.info.Le());a.D.B=a.K;a.policy.G&&(a.Z.K=a.K)}; +O0a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Lg.isSeeking()&&a.Qa&&!a.Qa.Ng()){var c=a.getCurrentTime()<=b&&b=b&&i0a(a,d.startTime,!1)}); +return c&&c.startTimea.getCurrentTime())return c.start/1E3;return Infinity}; +U0a=function(a){var b=CY(a.videoTrack),c=CY(a.audioTrack);return b&&!kZa(a.videoTrack)?b.startTime:c&&!kZa(a.audioTrack)?c.startTime:NaN}; +J0a=function(a,b,c){a.policy.HD&&rQ(a.ea.getVideoData())?(a.ea.OF()||I0a(a,"sepInit",b,c.info),V0a(a.ea,"sie")):I0a(a,"sepInit",b,c.info)}; +zZa=function(a){return a.ea.vA()0){var e=d.j.shift();X0a(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.Zt)(),d.B.start(Math.max(0,e)))}},0); +g.P(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)}; +X0a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.w(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)}; +Y0a=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a}; +Z0a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; +$0a=function(a){var b=cK(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=cM(b.slice(d+2));if(b==null)return null;a=new Z0a(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.zwa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Y0a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])|| +60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a}; +a1a=function(a,b,c){c=c===void 0?"":c;g.O.call(this);this.message=a;this.requestNumber=b;this.Xe=c;this.onError=this.onSuccess=null;this.j=new g.gi(5E3,2E4,.2)}; +b1a=function(a,b,c){a.onSuccess=b;a.onError=c}; +d1a=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.La())if(e.status!==0&&e.response)if(pA("drm_net_r",void 0,a.Xe),e=new Uint8Array(e.response),e=$0a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else c1a(a,e)}, +onError:function(e){c1a(a,e)}}; +c&&(b=Tfa(b,"access_token",c));g.Ur(b,d)}; +c1a=function(a,b){if(!a.La())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)}; +f1a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.La()){pA("drm_net_r",void 0,a.Xe);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Ve(f.license)}catch(u){g.ex(u)}if(h!==0||l){l=new Z0a(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.w(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=e1a[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]|| +(m.push(r),h[r]=!0);var t=null;try{t=Ve(q.keyId)}catch(u){g.ex(u)}t&&(n[g.Te(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Ve(f.sabrLicenseConstraint));f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}}, +onError:function(f){if(!a.La())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}}; +d&&(e.XW="Bearer "+d);g.Bv(c,"player/get_drm_license",b,e)}; +g1a=function(a,b,c,d){g.Fx.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Fa=[];this.D=[];this.Z=!1;this.j={};this.Ba=NaN;this.status="";this.K=NaN;this.B=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ra&&(a.vvt=this.videoData.ra,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment)); +this.W.Ba&&(a.authuser=this.W.Ba);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.wb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(jO(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.XN(this.B)?WN(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+ +Rca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=Vi(this.baseUrl,"ek")||"";if(b=Vi(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Fa=c.Le?[g.Te(c.initData,4)]:c.C;yZ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; +k1a=function(a,b){yZ(a,{createkeysession:1});a.status="gr";pA("drm_gk_s",void 0,a.videoData.Ya);a.url=h1a(a);try{a.C=b.createSession(a.Y,function(c){yZ(a,{m:c})})}catch(c){b="t.g"; +c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(i1a(a.C,function(c,d){j1a(a,c,d)},function(c,d,e){if(!a.La()){d=void 0; +var f=1;g.XN(a.B)&&g.PO(a.W)&&a.W.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.La()||(yZ(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.tq(c)}),g.P(a,a.C))}; +h1a=function(a){var b=a.baseUrl;sva(b)||a.error("drm.net",2,"t.x");if(!Vi(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]}); +c.length>0&&(a.G.fexp=c.join())}c=g.w(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Tfa(b,d,a.G[d]);return b}; +j1a=function(a,b,c){if(!a.La())if(b){yZ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":l1a(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(pA("drm_gk_f",void 0,a.videoData.Ya),a.ra=!0,a.publish("newsession",a));if(TN(a.B)&&(b=m1a(b),!b))return;g.XN(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=pBa(g.Te(b)));b=new a1a(b,++a.requestNumber,a.videoData.Ya);b1a(b,function(d){n1a(a, +d)},function(d,e,f){if(!a.La()){var h=0,l; +(l=d.j.B>=3)||(l=a.Ga&&(0,g.Zt)()-a.Ba>36E4);l&&(h=1,e="drm.net.retryexhausted");yZ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(GE(h),d)&&o1a(a,d)}}); +g.P(a,b);p1a(a,b)}else a.error("drm.unavailable",1,"km.empty")}; +l1a=function(a,b){yZ(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.Ti("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:cK(b)}),responseType:"arraybuffer"}; +g.Yr(c,b,3,500).then(JK(function(d){d=d.xhr;if(!a.La()){d=new Uint8Array(d.response);var e=cK(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),JK(function(d){a.La()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}}; +zZ=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b}; +p1a=function(a,b){a.status="km";pA("drm_net_s",void 0,a.videoData.Ya);if(a.videoData.useInnertubeDrmService()){var c=new g.Av(a.W.Zk),d={context:g.Ku(c.config_||g.Ju())};d.drmSystem=q1a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Te(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null? +0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.ra&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ra, +scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Jb&&(d.context.user.kidsParent={oauthToken:a.videoData.Jb});g.XN(a.B)&&(d.fairplayKeyId=g.Te(Sca(a.fairplayKeyId)));g.kP(a.W,g.VQ(a.videoData)).then(function(l){f1a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.kP(a.W,g.VQ(a.videoData)).then(function(l){d1a(b,a.url,l); +a.status="rs"})}; +n1a=function(a,b){if(!a.La())if(yZ(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{pA("drm_kr_s",void 0,a.videoData.Ya);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&& +!a.videoData.VD&&a.publish("newlicense",new Y0a({})),a.videoData.VD=!0,a.Z=Em(a.D,function(d){return d.includes("HDR")})); +b.j&&(a.W.L("html5_enable_vp9_fairplay")&&WN(a.B)?(c=g.Te(Sca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=sc(b.j,function(d){return{type:d,status:"unknown"}})); +UN(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Ve(cK(b.message)):VN(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=pBa(g.Te(b.message)));a.C&&(yZ(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){pA("drm_kr_f",void 0,a.videoData.Ya);zZ(a)||(yZ(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Ue(d.message,3); +a.error("drm.keyerror",1,d)})); +a.N&&(a.Ba=(0,g.Zt)());g.XN(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&WN(a.B)&&a.publish("qualitychange",r1a(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}}; +o1a=function(a,b){var c=b.j.getValue();c=new g.fp(function(){p1a(a,b)},c); +g.P(a,c);c.start();g.hi(b.j);yZ(a,{rtyrq:1})}; +s1a=function(a,b){for(var c=[],d=g.w(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)}; +t1a=function(a){var b={};b[a.status]=zZ(a)?s1a(a,"."):a.D.join(".");return b}; +u1a=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a}; +v1a=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1}; +w1a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status}; +yZ=function(a,b){var c=c===void 0?!1:c;EE(b);(c||a.W.Ac())&&a.publish("ctmp","drmlog",b)}; +x1a=function(a){var b=a[0];a[0]=a[3];a[3]=b;b=a[1];a[1]=a[2];a[2]=b;b=a[4];a[4]=a[5];a[5]=b;b=a[6];a[6]=a[7];a[7]=b}; +r1a=function(a){return g.Mb(a,"UHD2")||g.Mb(a,"UHD2HDR")?"highres":g.Mb(a,"UHD1")||g.Mb(a,"UHD1HDR")?"hd2160":g.Mb(a,"HD")||g.Mb(a,"HDHDR")?"hd1080":g.Mb(a,"HD720")||g.Mb(a,"HD720HDR")?"hd720":"large"}; +m1a=function(a){for(var b="",c=0;c'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new AZ(null,null,null,null,a)}; +D1a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c}; +A1a=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e=0&&a.push(d);a=parseFloat(a.join("."))}else a=NaN;a>19.2999?(a=c.ww,c=c.uw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new wZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new xZ(b,this,a);break a;default:c=null}if(this.G=c)g.P(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.RW,this),this.G.subscribe("log_qoe",this.vj,this);ZN(this.W.experiments);this.vj({cks:this.j.getInfo()})}; +F1a=function(a){var b=a.D.tO();b?b.then(JK(function(){H1a(a)}),JK(function(c){if(!a.La()){g.ex(c); +var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.vj({mdkrdy:1}),a.Y=!0); +a.qa&&(b=a.qa.tO())}; +J1a=function(a,b,c){a.Ra=!0;c=new uY(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));I1a(a,c)}; +I1a=function(a,b){if(!a.La()){a.vj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.vj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Ga&&!a.videoData.isLivePlayback)DZ(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Le)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;rYa(b);b.Le||(d&&b.j!==d?a.publish("ctmp","cpsmm", +{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.RW(b)}}; +H1a=function(a){if(!a.La())if(a.W.L("html5_drm_set_server_cert")||WN(a.j)){var b=a.D.setServerCertificate();b?b.then(JK(function(c){a.W.Ac()&&a.publish("ctmp","ssc",{success:c})}),JK(function(c){a.publish("ctmp","ssce",{n:c.name, +m:c.message})})).then(JK(function(){K1a(a)})):K1a(a)}else K1a(a)}; +K1a=function(a){a.La()||(a.Y=!0,a.vj({onmdkrdy:1}),DZ(a))}; +L1a=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")}; +DZ=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Fa){for(;a.C.length;){var b=a.C[0],c=L1a(a)?sYa(b):g.Te(b.initData);if(WN(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||WN(a.j)){a.C.shift();continue}else a.B.delete(c);rYa(b);break}}a.C.length&&a.createSession(a.C[0])}}; +M1a=function(a){var b;if(b=g.ks()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.gK(b),a.publish("ctmp","drm",{metrics:b}))}; +N1a=function(a){g.O.call(this);var b=this;this.ea=a;this.Da=this.ea.U();this.videoData=this.ea.getVideoData();this.YF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.AC(this.Da.experiments,"html5_delayed_retry_count");this.j=new g.fp(function(){EZ(b.ea)},g.AC(this.Da.experiments,"html5_delayed_retry_delay_ms")); +g.P(this,this.j)}; +T1a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;rQ(a.ea.getVideoData())&&a.Da.L("html5_gapless_fallback_on_qoe_restart")&&V0a(a.ea,"pe");a.Da.L("html5_lifa_disable_ssdai_on_decode_error")&&a.videoData.oi()&&(b==="fmt.decode"||b==="fmt.unplayable")&&O1a(a.ea,c);if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Ok.G&&d&&d.itag==="22")return a.ea.Ok.G=!0,a.Id("qoe.restart",{reason:"fmt.unplayable.22"}),FZ(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f= +a.videoData.B4)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ea.Lf(b,1,"VIDEO_UNAVAILABLE",EE((new FE(b,c,1)).details));return!0}var h=a.YF+3E4<(0,g.Zt)()||a.j.isActive();if(a.Da.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Id("auth",c),!0;h||BT(a.ea.bj())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:$E(e)||aF(e))&&(hJa(a.Da.G,e.rb),c.acfallexp=e.rb,f=h=!0);!h&&a.C> +0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ya;!h&&((d==null?0:ZE(d))||(d==null?0:XE(d)))&&(hJa(a.Da.G,d.rb),f=h=!0,c.cfallexp=d.rb);if(a.Da.L("html5_ssap_ignore_decode_error_for_next_video")&&g.jQ(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&BT(a.ea.bj())){if(c.cid!==c.ccid)return c.ignerr="1",a.Id("ssap.transitionfailure",c),!0;a.Id("ssap.transitionfailure",c);if(P1a(a.ea))return!0}if(!h)return Q1a(a,c);if(a.Da.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.jQ(a.videoData)&& +b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&BT(a.ea.bj())&&(a.Id("ssap.transitionfailure",c),P1a(a.ea)))return!0;h=!1;a.G?a.YF=(0,g.Zt)():h=a.G=!0;var l=a.videoData;if(l.ob){l=l.ob.pY();var m=Date.now()/1E3+1800;l=l6048E5&&X1a(a,"signature");return!1}; +X1a=function(a,b){try{window.location.reload(),a.Id("qoe.restart",{detail:"pr."+b})}catch(c){}}; +Z1a=function(a,b){var c=a.Da.G;c.K=!1;c.B=!0;a.Id("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});EZ(a.ea,!0)}; +$1a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e}; +a2a=function(a,b,c){this.W=a;this.MH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.AC(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; +c2a=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.OC(a.W)&&(c=c.compose(b2a(a,b)));return c}; +e2a=function(a,b){var c,d=d2a(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=cJa(a.W.G,b.j.videoInfos,c),new oL(0,a,!0,"o")):new oL(0,0,!1,"o")}; +d2a=function(a,b){return b&&g.OC(a.W)?b.some(function(c){return c.video.fps>32}):!1}; +f2a=function(a,b){var c=a.ea.VJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.BU>0&&sL(b.videoData.ZB)&&(a=c.BU,b.videoData.ZB=new oL(0,a,!1,"u"));return b.videoData.ZB}; +b2a=function(a,b){if(g.OC(a.W)&&GL(a.W.G,HL.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.NO(a.W)&&(e=window.screen&&window.screen.width?new g.Id(window.screen.width,window.screen.height):null);e||(e=a.W.Dn?a.W.Dn.clone():a.MH.ai());(qs||uX||d)&&e.scale(g.aP());d=e;sQ(b.videoData)||WQ(b.videoData);b=b.j.videoInfos;if(b.length){e=g.AC(a.W.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!== +"EQUIRECTANGULAR_THREED_TOP_BOTTOM"||LO||(e=.45);a=g.AC(a.W.experiments,"html5_viewport_undersend_maximum");for(f=0;f6E4&&(a.B=0);a.B++;a.N=g.Xa();if(a.B!==4)return!1;h2a(a,b.videoData.B);return!0}; +k2a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.AC(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.Zt)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.Zt)()-a.D)/1E3;a.D=(0,g.Zt)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.W.Ac()&&a.ea.oa("ddf",{dr:c.droppedVideoFrames, +de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.OC(a.W))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;h2a(a,b.videoData.B);a.ea.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},j2a()));return!0}; +h2a=function(a,b){var c=a.W,d=b.rb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&DIa("VideoPlayer",321298775,b,f.toFixed(0)),c=ON(c,d,e,h),f>0&&(c=Math.min(c,f)),!GZ.has(b)&&dL().includes(b))YBa(b,c,!0);else if(GZ.has(b)||h==null){a:{var l=l===void 0?!0:l;d=dL().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.bt("yt-player-performance-cap-active-set",d,2592E3)}NN.set(b,c)}else GZ.add(b), +h==null||h.set(b,c);else YBa(b,f);a.ea.gp()}; +l2a=function(a,b){if(!b.j.j)return a.G?new oL(0,360,!1,"b"):VP;for(var c=!1,d=!1,e=g.w(b.j.videoInfos),f=e.next();!f.done;f=e.next())ZE(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.AC(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.w(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!ZE(h))if(f=ON(a.W,h.rb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new oL(0,d,!1,"b")}; +m2a=function(a,b){var c=a.ea.bj();return c.isInline()&&!b.QD?new oL(0,480,!1,"v"):c.isBackground()&&Wv()/1E3>60&&!g.OC(a.W)?new oL(0,360,!1,"v"):VP}; +o2a=function(a,b,c){if(a.W.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.OC(a.W)&&(aL(-1)>=1080||b.osid))return VP;var d=g.AC(a.W.experiments,"html5_autonav_quality_cap"),e=g.AC(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&Wv()/1E3>e?(c&&(d=n2a(a,c,d)),new oL(0,d,!1,"e")):VP}; +n2a=function(a,b,c){if(a.L("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.XI(a.provider),a.delay.start()))}; +r2a=function(a){if(!(a.B<0)){var b=g.XI(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}}; +s2a=function(a){var b;switch((b=a.W.playerCanaryStage)==null?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; +u2a=function(a,b){b?t2a.test(a):(a=g.zr(a),Object.keys(a).includes("cpn"))}; +w2a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Cr(a)&&Dr()){if(h){var n;((n=v2a.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=v2a.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.pr("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]= +d:g.pr("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.pr("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ba)&&!cP(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.gm&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&t2a.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null}; +x2a=function(a,b,c,d,e,f,h,l){Dr()&&c.token&&(a=g.Ar(a,{ctt:c.token,cttype:c.jU,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:u2a(a,d.L("html5_assert_cpn_with_regex")),h?yv().sendAndWrite(a,b):yv().sendThenWrite(a,b,l)):b?(u2a(a,d.L("html5_assert_cpn_with_regex")),g.Ur(a,b)):g.nv(a,e)}; +z2a=function(a){for(var b=[],c=0;c500&&c.oa("vmlock",{diff:f.toFixed()});c.Ga=e},250)); +a.ea.Bf()&&b&&(this.Ba=b-Math.round(g.XI(a)*1E3));this.provider.videoData.lj&&(this.remoteControlMode=A2a[this.provider.videoData.lj]||0);this.provider.videoData.Qj&&(a=fDa(this.provider.videoData.Qj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)}; +g.JZ=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))}; +B2a=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.JZ(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Wf(c);if(a.D&&d*1E3>a.D.R_+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.R_;a.Ma=b*1E3-e.Jda-d-e.rda;e=(0,g.Zt)()-d;b=a.Ma;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.K&&(h.cttAuthInfo={token:d.K,videoId:d.videoId});h.startTime=e-b;rA(f,h);g.qA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce}, +f);pA("pbs",e,f)}else e=a.provider.ea.Wh(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.Bk()||g.fx(new g.pt("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.Ma.toFixed(),prev_ad:+c});delete a.D}}; +LZ=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.XI(a.provider);var c=a.provider.ea.rF(),d=c.Vs-(a.Va||0);d>0&&g.JZ(a,b,"bwm",[d,(c.Fv-(a.Ob||0)).toFixed(3)]);isNaN(a.Va)&&c.Vs&&a.isOffline&&a.iM(!1);a.Va=c.Vs;a.Ob=c.Fv;isNaN(c.bandwidthEstimate)||g.JZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.Ac()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.W.Ac()||a.provider.W.L("html5_log_meminfo"))d=h0a(),Object.values(d).some(function(e){return e!==void 0})&&a.oa("meminfo",d); +a.qa&&g.JZ(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.yc!==d&&(g.JZ(a,b,"vis",[d]),a.yc=d);B2a(a,b);(d=C2a(a.provider))&&d!==a.Kb&&(g.JZ(a,b,"conn",[d]),a.Kb=d);D2a(a,b,c)}; +D2a=function(a,b,c){if(!isNaN(c.Kw)){var d=c.Kw;c.B96E3&&(new g.fp(a.reportStats,0,a)).start()}; +H2a=function(a){a.provider.videoData.Ed&&MZ(a,"prefetch");a.provider.videoData.yc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.yc});a.provider.videoData.yb&&MZ(a,"monitor");a.provider.videoData.isLivePlayback&&MZ(a,"live");iO&&MZ(a,"streaming");a.provider.videoData.lj&&a.oa("ctrl",{mode:a.provider.videoData.lj},!0);if(a.provider.videoData.Qj){var b=a.provider.videoData.Qj.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.TW&&(b=a.provider.videoData.TW.replace(/,/g, +"."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.yQ(c)||g.KQ(c)||g.LQ(c)||g.MQ(c);(b||c)&&(b=(0,g.NZ)())&&(a.j.gpu=[b]);WQ(a.provider.videoData)&&g.JZ(a,g.XI(a.provider),"dt",["1"]);a.provider.W.Ac()&&(b=(0,g.Zt)()-a.provider.W.Sf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.Lr(function(){a.reportStats()},1E4)}; +J2a=function(a,b,c){var d=g.XI(a.provider);I2a(a,d,b,0,c);LZ(a,d);G2a(a)}; +I2a=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;a.provider.W.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&K2a(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&K2a(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+KA());e&&c.push(L2a(e));g.JZ(a,b,"error",c);a.C=!0}; +M2a=function(a){a.B>=0||(a.provider.W.Qf||a.provider.ea.getVisibilityState()!==3?a.B=g.XI(a.provider):a.Wa=!0)}; +jVa=function(a,b,c,d){if(c!==a.Ee){b=10&&a.playTimeSecs<=180&&(a.provider.ea.xG(),a.j.qoealert=["1"],a.fb=!0)),c!=="B"||a.Ee!=="PL"&&a.Ee!=="PB"||(a.isBuffering=!0),a.G=b);a.Ee==="PL"&&(c==="B"||c==="S")||a.provider.W.Ac()?LZ(a,b):(a.ob||c!=="PL"||(a.ob=!0,D2a(a,b,a.provider.ea.rF())),B2a(a,b));c==="PL"&&g.gp(a.Rc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.JZ(a, +b,"vps",e);a.Ee=c;a.Jb=b;a.G=b;a.C=!0}}; +MZ=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c}; +fX=function(a,b,c,d,e,f){var h=g.XI(a.provider);c!==1&&c!==3&&c!==5||g.JZ(a,h,"vps",[a.Ee]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l}; +K2a=function(a,b){if(!a.Xa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Xa=!0}}; +L2a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a}; +N2a=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.kq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=OZ(this.provider)}; +PZ=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Ib(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=OZ(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j}; +P2a=function(a){O2a(a);a.K=g.Lr(function(){a.update()},100); +a.kq=g.XI(a.provider);a.B=OZ(a.provider)}; +O2a=function(a){g.Nr(a.K);a.K=NaN}; +Q2a=function(a,b,c){c-=a.kq;return b===a.j&&c>.5}; +R2a=function(a,b,c,d){this.W=b;this.yc=c;this.segments=[];this.experimentIds=[];this.Ya=this.Tb=this.isFinal=this.delayThresholdMet=this.Ab=this.Ed=this.autoplay=this.autonav=!1;this.Rc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Xa=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.ra=c==="atr";this.wh=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.En+"/api/stats/"+c;d&&(this.Tb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState= +d.state,d.rti>0&&(this.Z=d.rti)):(this.Rf=d.mos,this.Ig=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Zd=d.inview),d.size&&(this.Wc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.ze=g.Fc(b.j);this.N=jO(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Ob=g.Fc(b.Ob);this.Qf=b.Rc;this.experimentIds=$Ia(b.experiments);this.Wa=b.zj;this.Rc=b.qa;this.region= +b.region;this.userAge=b.userAge;this.ob=b.Bj;this.Ie=Wv();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ba=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Sf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Tf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Pf=b.D&&b.L("embeds_append_synth_ch_headers");g.IO(b)&&(this.Ka=b.Ga);g.Fs(g.RO(b))&&this.K.push(1);this.accessToken= +g.VQ(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.zp[this.yc]?this.Fa=a.zp[this.yc]:a.zp.playback&&(this.Fa=a.zp.playback):a.Fa&&(this.Fa=a.Fa);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=UQ(a);this.C&&(this.Ed=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Lq&&QQ(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=SQ(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ab=a.Ff; +a.K&&(this.Y=a.K,this.Jb=a.xn);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Vk;this.Kb=a.Kb;a.B&&(this.ge=a.B.itag,a.D&&a.D.itag!==this.ge&&(this.yb=a.D.itag));a.j&&yL(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=QQ(a);this.Ya=a.Ig?!1:a.Ui;this.jf=a.yn;if(b=DQ(a))this.Uf=b;this.kf=a.Nv;this.Va=a.Va;this.eventId=a.eventId;this.playlistId=a.lZ||a.playlistId;this.VA=a.VA;this.lj=a.lj;this.Qj=a.Qj;this.Zp=a.Zp;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata= +a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.UC=a.UC;this.referrer=a.referrer;this.Cp=a.IW||a.Cp;this.fb=a.aD;this.wB=a.wB;this.userGenderAge=a.userGenderAge;this.Qv=a.Qv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.IO(this.W)&&a.mutedAutoplay&&this.K.push(2);a.jd(new g.Id(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.bR(a)&&this.K.push(4);this.Ra=a.DW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)}; +S2a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.kP(a.W,a.accessToken).then(function(d){return w2a(a.uri,a.W,a.pageId,c,d,b,a.Pf)})}; +V2a=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ma,a.Fd=b(),a.Ie=0,a.send()):S2a(a).then(function(c){var d=T2a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Ti(a.uri,d);a.W.L("vss_through_gel_double")&&U2a(d);a.Ba?(c==null&&(c={}),a.Ga?yv().sendAndWrite(d,c):yv().sendThenWrite(d,c)):c?g.Ur(d,c):g.nv(d)})}}; +T2a=function(a){var b={ns:a.Rc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.ge,fs:a.Tb?"1":"0",rt:a.B(a.Fd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Qf,lact:a.Ie,live:a.Uf,cl:(657810031).toString(),mos:a.Rf,state:a.playerState,volume:a.Ig};a.subscribed&&(b.subscribed="1");Object.assign(b,a.ze);a.N==="all"?Object.assign(b,a.Ob):a.N==="once"&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.Ed&&(b.sautoplay="1");a.Ab&&(b.dni="1");!a.D&&a.Ka&&(b.epm=W2a[a.Ka]); +a.isFinal&&(b["final"]="1");a.Ya&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Wa&&(b.hl=a.Wa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.ob&&(b.uga=a.ob+a.userAge);a.Ma!==void 0&&(b.len=a.B(a.Ma));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.Cp&&(b.feature=a.Cp);a.lj&&(b.ctrl=a.lj);a.Qj&&(b.ytr=a.Qj);a.yb&&(b.afmt=a.yb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.wc&&(b.lio=a.B(a.wc)); +a.D?(b.idpj=a.jf,b.ldpj=a.kf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Qv&&(b.ald=a.Qv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Wc&&(a.C||a.D)&&(b.size=a.Wc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Zd!=null&&(a.C||a.D)&&(b.inview=a.B(a.Zd));a.D&&(b.volume=QZ(a,g.Al(a.segments,function(d){return d.volume})),b.st=QZ(a,g.Al(a.segments,function(d){return d.startTime})),b.et=QZ(a,g.Al(a.segments,function(d){return d.endTime})), +Em(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=QZ(a,g.Al(a.segments,function(d){return d.playbackRate}))),Em(a.segments,function(d){return d.j!=="-"})&&(b.als=g.Al(a.segments,function(d){return d.j}).join(",")),Em(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Al(a.segments,function(d){return""+ +d.previouslyEnded}).join(","))); +b.muted=QZ(a,g.Al(a.segments,function(d){return d.muted?1:0})); +Em(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=QZ(a,g.Al(a.segments,function(d){return d.visibilityState}))); +Em(a.segments,function(d){return d.connectionType!==0})&&(b.conn=QZ(a,g.Al(a.segments,function(d){return d.connectionType}))); +Em(a.segments,function(d){return d.B!==0})&&(b.blo=QZ(a,g.Al(a.segments,function(d){return d.B}))); +Em(a.segments,function(d){return!!d.C})&&(b.blo=g.Al(a.segments,function(d){return d.C}).join(",")); +Em(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Al(a.segments,function(d){return d.compositeLiveStatusToken}).join(",")); +Em(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.Al(a.segments,function(d){return d.G}).join(",")); +Em(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.Al(a.segments,function(d){return d.clipId}).join(",")); +if(Em(a.segments,function(d){return!!d.D})){var c="au"; +a.C&&(c="au_d");b[c]=g.Al(a.segments,function(d){return d.D}).join(",")}Dr()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Jb,b.mdx_environment=a.mdxEnvironment); +a.wh&&(b.etype=a.qa!==void 0?a.qa:0);a.fb&&(b.uoo=a.fb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=X2a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Fa?Y2a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.UC,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.Zp&&(b.ssrt="1"),a.wB&&(b.upt=a.wB));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn= +a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Ra&&(b.host_cpn=a.Ra);return b}; +Y2a=function(a,b){if(b&&a.Fa){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);a.Fa.ns==="3pp"&&(b.ns="3pp");for(var f=g.w(Object.keys(a.Fa)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Fa[h]||(b[h]=a.Fa[h])}}; +QZ=function(a,b){return g.Al(b,a.B).join(",")}; +U2a=function(a){a.indexOf("watchtime")!==-1&&g.Ht("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})}; +Z2a=function(a,b){a.attestationResponse&&S2a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ba?a.Ga?yv().sendAndWrite(b,c):yv().sendThenWrite(b,c):g.Ur(b,c)})}; +RZ=function(a){g.O.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.ra=this.Fa=this.Ba=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new N2a(a)}; +c3a=function(a){if(!a.C){a.provider.videoData.tH===16623&&g.fx(Error("Playback for EmbedPage"));var b=SZ(a,"playback");a:{if(a.provider.W.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.yn,h=a.provider.videoData.Nv,l=-f;e=g.w(e);for(var m=e.next();!m.done;m= +e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.yn,10,10,40+a.provider.videoData.Nv-a.provider.videoData.yn,40]}P2a(a.j);b.G=TZ(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.Bw&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Bw,oid:d.hW,ptchn:d.fW,pltype:d.iW,content_v:SQ(d)},d.pw&&Object.assign(c,{m:d.pw}),b=g.Ti(b.Fa+"ptracking",c),$2a(a,b));a.provider.videoData.Kb||(a3a(a), +b3a(a),a.Ys());a.C=!0;b=a.j;b.j=b.provider.ea.Wf();b.kq=g.XI(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssinit",{})}}; +TZ=function(a,b){b=b===void 0?NaN:b;var c=g.XI(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+11E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=TZ(a,e));h.send();a.Y++}},(e-c)*1E3); +return a.G=e}; +UZ=function(a){g.Mr(a.D);a.D=NaN}; +d3a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||PZ(a);var b=a.segments;a.segments=[];return b}; +SZ=function(a,b){var c=f3a(a.provider);Object.assign(c,{state:a.K});b=new R2a(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.ea.Wf();c=a.provider.videoData.clientPlaybackNonce;a.provider.W.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.RJ(c));a.provider.videoData.isLivePlayback||(b.Ma=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.bf(b.j))&&(b.wc=c-b.j);b.Fd=g.XI(a.provider);b.segments=[OZ(a.provider)];return b}; +e3a=function(a,b){var c=SZ(a,"watchtime");g3a(a)&&(c.delayThresholdMet=!0,a.Ba=!0);if(a.B>0){for(var d=g.w(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.WP();c.segments=b;return c}; +VZ=function(a,b){var c=h3a(a,!isNaN(a.G));b&&(a.G=NaN);return c}; +h3a=function(a,b){var c=e3a(a,d3a(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c}; +g3a=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.C&&!a.Ba)b=a.j,b=b.G+b.provider.ea.Wf()-b.C>=a.provider.videoData.Kb;return!!b}; +a3a=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Fa&&($2a(a,a.provider.videoData.youtubeRemarketingUrl),a.Fa=!0)}; +b3a=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&($2a(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)}; +i3a=function(a){a.provider.W.L("html5_log_vss_details")&&a.provider.ea.oa("vssfi",{});if(!a.La()&&a.C){a.K="paused";var b=VZ(a);b.isFinal=!0;b.send();a.dispose()}}; +j3a=function(a,b){if(!a.La())if(g.U(b.state,2)||g.U(b.state,512)){if(a.K="paused",g.Qy(b,2)||g.Qy(b,512))g.Qy(b,2)&&(a.j.previouslyEnded=!0),a.C&&(UZ(a),VZ(a).send(),a.G=NaN)}else if(g.U(b.state,8)){a.provider.W.L("html5_shorts_gapless_vss_pbs_fix")&&rQ(a.provider.videoData)&&!a.C&&c3a(a);a.K="playing";var c=a.C&&isNaN(a.D)?TZ(a):NaN;!isNaN(c)&&(Py(b,64)<0||Py(b,512)<0)&&(a=h3a(a,!1),a.G=c,a.send())}else a.K="paused"}; +k3a=function(a,b,c){if(!a.qa){c||(c=SZ(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}}; +$2a=function(a,b){var c=a.provider.W;g.kP(a.provider.W,g.VQ(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=w2a(b,c,e,f,d);x2a(b,d,{token:a.provider.videoData.K,jU:a.provider.videoData.xn,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})}; +l3a=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; +WZ=function(a,b,c){this.videoData=a;this.W=b;this.ea=c;this.j=void 0}; +g.XI=function(a){return m3a(a)()}; +m3a=function(a){if(!a.j){var b=g.Va(function(d){var e=(0,g.Zt)();d&&e<=631152E6&&(a.ea.oa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b(); +a.j=function(){return Math.round(b()-c)/1E3}; +a.ea.mS()}return a.j}; +f3a=function(a){var b=a.ea.Nr()||{};b.fs=a.ea.IF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.gA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.al&&(c.infringe=1);(a.Ig?0:a.Ui)&&(c.splay=1); +(d=DQ(a))&&(c.live=d);a.Lq&&(c.sautoplay=1);a.Pk&&(c.autoplay=1);a.VA&&(c.sdetail=a.VA);a.Va&&(c.partnerid=a.Va);a.osid&&(c.osid=a.osid);a.LD&&(c.cc=g.gKa(a.LD));return Object.assign(b,c)}; +C2a=function(a){var b,c;if(b=((c=navigator.connection)==null?void 0:c.type)||"")return n3a[b]||n3a.other;if(g.OC(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0}; +OZ=function(a){var b=new l3a,c;b.G=((c=f3a(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.W.ob&&(b.B=1);b.C=a.videoData.fz;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.dc&&c.dc.id&&c.dc.id!=="und"&&(b.D=c.dc.id);b.connectionType=C2a(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.gA()||"-";b.j=a.videoData.zW||"-";return b}; +g.XZ=function(a,b){g.O.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ee=new g.LF;this.hd={aoa:function(){return c.qoe}, +loa:function(){return c.j}, +Jna:function(){return c.B}}; +this.provider.videoData.qe()&&!this.provider.videoData.nm&&(this.j=new RZ(this.provider),this.provider.W.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Rf/1E3),g.P(this,this.j),this.qoe=new g.KZ(this.provider,b),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Mg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Mg,this.j));if(a.W.playerCanaryState==="canary"||a.W.playerCanaryState==="holdback")this.B=new HZ(this.provider),g.P(this,this.B)}; +o3a=function(a){return!!a.j&&!!a.qoe}; +gX=function(a){a.B&&q2a(a.B);a.qoe&&M2a(a.qoe)}; +p3a=function(a){if(a.qoe){a=a.qoe;for(var b=a.provider.videoData,c=a.provider.W,d=g.w(c.wh),e=d.next();!e.done;e=d.next())MZ(a,e.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(d=g.w(b.Bp),e=d.next();!e.done;e=d.next())MZ(a,e.value);else b.wh&&MZ(a,a.provider.videoData.wh);b.Vb()&&(d=b.j,iQ(b)&&MZ(a,"manifestless"),d&&GN(d)&&MZ(a,"live-segment-"+GN(d).toFixed(1)));gQ(b)&&MZ(a,"sabr");b.oi()&&MZ(a,"lifa");b.gatewayExperimentGroup&&(d=b.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"? +d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),MZ(a,d));c.qa!=="yt"&&(a.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!WQ(b)&&a.iM(!0);c.Ac()&&(d=jUa())&&a.oa("cblt",{m:d});if(xQ(b)){var f;((f=c.getWebPlayerContextConfig())==null?0:f.enableProximaLowLatency)&&c.L("html5_wpcc_proxima")?MZ(a,"proximawpcc"):a.provider.ea.getProximaLatencyPreference()?MZ(a,"proximaui"):MZ(a,"proximaexp")}}}; +lVa=function(a){if(a.provider.ea.Bf()){if(a.D)return;a.D=!0}a.j&&c3a(a.j);if(a.B){a=a.B;var b=g.XI(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}}; +kVa=function(a,b){if(g.Qy(b,1024)||g.Qy(b,512)||g.Qy(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var d;(d=a.C.get(a.Mg))==null||j3a(d,b)}else a.j&&j3a(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.XI(d.provider),f=d.getPlayerState(c);jVa(d,e,f,c.seekSource||void 0);f=c.eh;g.U(c,128)&&f&&(f.fM=f.fM||"",I2a(d,e,f.errorCode,f.cA,f.fM));(g.U(c,2)||g.U(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=0&& +(d.j.user_intent=[d.B.toString()]),d.N=!0);G2a(d)}a.B&&(d=a.B,r2a(d),d.playerState=b.state,d.B>=0&&g.Qy(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Bf()&&(a.Ee=b.state)}; +q3a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Mg){var b;(b=a.C.get(a.Mg))!=null&&PZ(b.j)}else a.j&&PZ(a.j.j)}; +r3a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ee==="PL"&&(b.Ee="N");var c=g.XI(b.provider);g.JZ(b,c,"vps",[b.Ee]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.Ac()&&b.oa("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.w(a.C.values()),c=b.next();!c.done;c=b.next())i3a(c.value);else a.j&&i3a(a.j);a.dispose()}; +s3a=function(a,b){a.j&&k3a(a.j,b)}; +t3a=function(a){if(!a.j)return null;var b=SZ(a.j,"atr");return function(c){a.j&&k3a(a.j,c,b)}}; +u3a=function(a,b,c,d){c.adFormat=c.wc;var e=b.ea;b=new RZ(new WZ(c,b.W,{getDuration:function(){return c.lengthSeconds}, +getCurrentTime:function(){return e.getCurrentTime()}, +Wf:function(){return e.Wf()}, +RJ:function(){return e.RJ()}, +Bf:function(){return e.Bf()}, +rF:function(){return e.rF()}, +getPlayerSize:function(){return e.getPlayerSize()}, +getAudioTrack:function(){return c.getAudioTrack()}, +getPlaybackRate:function(){return e.getPlaybackRate()}, +vF:function(){return e.vF()}, +getVisibilityState:function(){return e.getVisibilityState()}, +Wh:function(){return e.Wh()}, +Nr:function(){return e.Nr()}, +getVolume:function(){return e.getVolume()}, +isMuted:function(){return e.isMuted()}, +IF:function(){return e.IF()}, +gA:function(){return e.gA()}, +getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()}, +mS:function(){e.mS()}, +xG:function(){e.xG()}, +oa:function(f,h){e.oa(f,h)}})); +b.B=d;g.P(a,b);return b}; +v3a=function(){this.Kw=0;this.C=this.Fv=this.Vs=this.B=NaN;this.j={};this.bandwidthEstimate=NaN}; +YZ=function(a,b,c){g.O.call(this);var d=this;this.W=a;this.ea=b;this.B=c;this.j=new Map;this.Mg="";this.hd={Xn:function(){return Array.from(d.j.keys())}}}; +mVa=function(a,b){a.j.has(b)&&(r3a(a.j.get(b)),a.j.delete(b))}; +w3a=function(){this.j=g.rD;this.array=[]}; +y3a=function(a,b,c){var d=[];for(b=x3a(a,b);bc)break}return d}; +z3a=function(a,b){var c=[];a=g.w(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c}; +A3a=function(a){return a.array.slice(x3a(a,0x7ffffffffffff),a.array.length)}; +x3a=function(a,b){a=Zb(a.array,function(c){return b-c.start||1}); +return a<0?-(a+1):a}; +B3a=function(a,b){var c=NaN;a=g.w(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.endb&&(isNaN(c)||d.starta.mediaTime+a.C&&b1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1}; +H3a=function(a,b){this.videoData=a;this.j=b}; +I3a=function(a,b,c){return b.YI(c).then(function(){return as(new H3a(b,b.C))},function(d){d instanceof Error&&g.fx(d); +var e=JE('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=LE('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.nO(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.sx(),d:!!b.Wc,drm:b.dj(),f18:b.Tf.indexOf("itag=18")>=0,c18:e};b.j&&(b.dj()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=LE('video/mp4; codecs="avc1.42001E"'), +e.cVP9=LE('video/webm; codecs="vp9"'));b.G&&(e.drmsys=b.G.keySystem,f=0,b.G.j&&(f=Object.keys(b.G.j).length),e.drmst=f);return new FE(d,e,h)})}; +J3a=function(a){this.G=a;this.C=this.B=0;this.D=new FT(50)}; +b_=function(a,b,c){g.Fx.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new K3a;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.yb?c.B=3:g.IQ(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.AC(b,"html5_liveness_drift_proxima_override");if(xQ(a)&&d){c.j=d;var e;((e=a.j)==null?0:$Ha(e))&&c.j--}gQ(a)&&b.kb("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.N=!0);if(g.is("trident/")||g.is("edge/"))c.C=Math.max(c.C,g.AC(b,"html5_platform_minimum_readahead_seconds")|| +3);g.AC(b,"html5_minimum_readahead_seconds")&&(c.C=g.AC(b,"html5_minimum_readahead_seconds"));g.AC(b,"html5_maximum_readahead_seconds")&&(c.K=g.AC(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.AC(b,"html5_liveness_drift_chunk_override"))c.j=b;wQ(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=a_(this,L3a(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))}; +M3a=function(a,b){if(b)return b=a.videoData,b=L3a(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),a_(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return a_(a,a.j-1);if(a.policy.D)return a_(a,a.j+1)}return a.j}; +N3a=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=M3a(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b}; +c_=function(a,b){return b>=a.Wn()-O3a(a)}; +P3a=function(a,b,c){b=c_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C}; +Q3a=function(a,b){b=c_(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b}; +O3a=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*d_(a)}; +L3a=function(a,b,c){c.yb&&b--;wQ(c)&&(b=1);if(xQ(c)&&(a=g.AC(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:$Ha(d))&&b++}return b}; +d_=function(a){return a.videoData.j?GN(a.videoData.j)||5:5}; +a_=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/d_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/d_(a))),b)}; +K3a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.N=this.G=!1}; +g_=function(a){g.O.call(this);this.ea=a;this.W=this.ea.U();this.j=0;this.B=null;this.K=this.D=0;this.G=new g.fp(this.Ue,1E3,this);this.ob=new e_({delayMs:g.AC(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ga=new e_({delayMs:g.AC(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.yb=f_(this,"html5_seek_set_cmt");this.Va=f_(this,"html5_seek_jiggle_cmt");this.Ya=f_(this,"html5_seek_new_elem");this.Tb=f_(this,"html5_unreported_seek_reseek");this.Ba=f_(this,"html5_long_rebuffer_jiggle_cmt"); +this.Ma=f_(this,"html5_long_rebuffer_ssap_clip_not_match");this.Fa=new e_({delayMs:2E4});this.Wa=f_(this,"html5_seek_new_elem_shorts");this.fb=f_(this,"html5_seek_new_media_source_shorts_reuse");this.Xa=f_(this,"html5_seek_new_media_element_shorts_reuse");this.Ra=f_(this,"html5_reseek_after_time_jump");this.Z=f_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=f_(this,"html5_gapless_slow_seek");this.Y=f_(this,"html5_gapless_slice_append_stuck");this.ra=f_(this,"html5_gapless_slow_start"); +this.N=f_(this,"html5_ads_preroll_lock_timeout");this.Ob=f_(this,"html5_ssap_ad_longrebuffer_new_element");this.Jb=new e_({delayMs:g.AC(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Vz:!this.W.L("html5_report_slow_ads_as_error")});this.Ab=new e_({delayMs:g.AC(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Vz:!this.W.L("html5_skip_slow_buffering_ad")});this.Kb=new e_({delayMs:g.AC(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Ka=f_(this,"html5_slow_start_no_media_source"); +this.C={};g.P(this,this.G)}; +f_=function(a,b){var c=g.AC(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new e_({delayMs:c,Vz:a})}; +R3a=function(a,b){a.j=b}; +h_=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Id(e,b,h),b.Vz||f()):(b.nM&&b.B&&!b.D?(c=(0,g.Zt)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.nM,c=b.j&&c-b.j>b.bT||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.uc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.oa("workaroundReport",l),d&&(b.reset(),a.C[e]=!1)))}; +e_=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.bT===void 0?1E3:b.bT;var d=b.nM===void 0?3E4:b.nM;b=b.Vz===void 0?!1:b.Vz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.bT=c;this.nM=d;this.Vz=b}; +V3a=function(a){g.O.call(this);var b=this;this.ea=a;this.W=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new S3a;this.Fa=new g_(this.ea);this.K=this.j=this.ya=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.Ka=NaN;this.C=null;this.Ra=NaN;this.G=this.qa=null;this.ra=!1;this.ob=NaN;this.Jb=0;this.Z=!1;this.Ma=new g.fp(function(){T3a(b,!1)},2E3); +this.Ab=new g.fp(function(){i_(b)}); +this.Wa=new g.fp(function(){b.ra=!0;U3a(b,{})}); +this.timestampOffset=0;this.N=!0;this.Va=0;this.yb=NaN;this.Ga=new g.fp(function(){var c=b.W.Pf;c.j+=1E4/36E5;c.j-c.C>1/6&&(sJa(c),c.C=c.j);b.Ga.start()},1E4); +this.Ya=this.Kb=!1;this.Y=0;this.fb=!1;this.Ba=0;g.P(this,this.Fa);g.P(this,this.Ma);g.P(this,this.Wa);g.P(this,this.Ab);g.P(this,this.Ga)}; +Y3a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new J3a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(iQ(a.videoData)&&a.ya){var c=a.ya.mJ.fh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ma;break a}}c=0}return c}),a.j=new b_(a.videoData,a.W.experiments,function(){return a.Vd(!0)})); +j_(a.ea)?(b=W3a(a),b.eN?(gQ(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.dC(b.eN,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{Zc:"seektimeline_startPlayback",seekSource:15}),a.N=!1):X3a(a)||(a.D=a.D||(g.jQ(a.videoData)?0:a.videoData.startSeconds)||0)}; +$3a=function(a,b){(a.ya=b)?Z3a(a,!0):k_(a)}; +a4a=function(a,b){g.gp(a.Fa.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.gp(a.Ga):a.Ga.stop());if(a.mediaElement)if(b.xB.state===8&&SF(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Eh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?mF(c,Math.max(b-3.5,0)):mF(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+10?(l_(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Ya=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(l_(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Ya=!0))}; +c4a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c50&&e.B.shift())),e=a.j,P3a(e,c,b===void 0?!0:b),Q3a(e,c),b&&T3a(a,!0));d!==a.Kb&&(b=a.getCurrentTime()-a.ob<=500,c=a.Jb>=1E3,b||c||(b=a.ea.hc(),b.qoe&&(b=b.qoe,c=g.XI(b.provider), +g.JZ(b,c,"lh",[d?"1":"0"])),a.Kb=d,a.Jb++,a.ob=a.getCurrentTime()))}; +T3a=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!c_(c,d)&&c.gq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d0&&HF(a.mediaElement)>0&&(a.B=m_(a,a.B,!1)),!a.mediaElement||!h4a(a))a.Ab.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Ra-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime()); +else{if(a.videoData.RD)a.videoData.RD=!1;else if(!fQ(a.videoData)&&a.B>=a.Vd()-.1){a.B=a.Vd();a.C.resolve(a.Vd());zW(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Fa.j=c;a.Ra=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.Z=!1)}catch(d){}}}}; +h4a=function(a){if(!a.mediaElement||a.mediaElement.jl()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.dj())return b;if(a.B>=0){var c=a.mediaElement.uA();if(c.length||!b)return nF(c,a.B-a.timestampOffset)}return b}; +g4a=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.W.Ac()&&(b=a.uc(),b["native"]=""+ +a.Z,b.otgt=""+(a.B+a.timestampOffset),a.ea.oa("seekEnd",b)));k_(a)}; +k_=function(a){a.B=NaN;a.Ra=NaN;a.C=null;a.qa=null;a.G=null;a.ra=!1;a.Z=!1;a.Va=0;a.Ma.stop();a.Wa.stop()}; +j4a=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.Z&&f!==a.B){var h=!!a.C;a.C=new FF;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){g4a(a,m)},function(){k_(a)}); +if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Vsa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.DW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.tL()}a.Ra=f;R3a(a.Fa,d.getCurrentTime());a.seekTo(f,{seekSource:104,Zc:"seektimeline_mediaElementEvent"});c&&oVa(c,f*1E3,!!h);a.Z=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":j_(a.ea)||i4a(a);i_(a);break;case "progress":i_(a);break;case "pause":a.Y=a.getCurrentTime()}a.Y&& +((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Y>10&&a.seekTo(a.Y,{Zc:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Y=0))}; +k4a=function(a){return(JQ(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||X3a(a))&&!!a.videoData.j}; +X3a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9}; +W3a=function(a){var b=0,c=NaN,d="";if(!a.N)return{startSeconds:b,eN:c,source:d};a.videoData.Ka?b=a.videoData.Ra:fQ(a.videoData)&&(b=Infinity);if(g.IQ(a.videoData))return{startSeconds:b,eN:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.ge&&(d="stss",b=a.videoData.ge);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>a.Vd()||ba.Vd()||c +0?(d.onesie="0",a.handleError(new FE("html5.missingapi",d)),!1):!0}; +s4a=function(a){var b=fS();gS(b,a);return g.IA(b,HBa())}; +p4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,Q,Z,fa,pa,Y,S;return g.J(function(W){if(W.j==1)return b.fetchType="onesie",c=dMa(b,a.getPlayerSize(),a.getVisibilityState()),d=new kZ(a,c),g.G(W,d.fetch(),2);e=W.B;f={player_response:e};b.loading=!1;h=a.Ad.Mu;if(d.cg){l=g.w(d.cg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.w(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(y=u.Gr(),b.sI=y);h.Yw=d}A=g.w(d.hY.entries());for(D=A.next();!D.done;D= +A.next())F=D.value,H=g.w(F),M=H.next().value,N=H.next().value,Q=M,Z=N,h.B.set(Q,Z,180);g.$P(b,f,!0);if(b.loading||XP(b))return W.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.sI=[];fa={};pa="onesie.response";Y=0;b.errorCode?(pa="auth",fa.ec=b.errorCode,fa.ed=b.errorDetail,fa.es=b.Qn||"",Y=2):(fa.successButUnplayable="1",fa.disposed=""+ +b.La(),fa.afmts=""+ +/adaptiveFormats/.test(e),fa.cpn=b.clientPlaybackNonce);S=new FE(pa,fa,Y);return W.return(Promise.reject(S))})}; +n4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.J(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f0)){t.Ha(5);break}return g.G(t,Oe(5E3),6);case 6:h=new g.pt("Retrying OnePlatform request",{attempt:f}),g.fx(h);case 5:return g.va(t,7),g.G(t,t4a(a,b),9);case 9:return t.return();case 7:l=g.xa(t);m=HE(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n=== +"manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(GE(m.severity)){t.Ha(4);break}case 3:f++;t.Ha(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new FE(q,{backend:"op"},r)))}})}; +t4a=function(a,b){function c(pa){pa.readyState===2&&a.Md("ps_c")} +var d,e,f,h,l,m,n,p,q,r,t,u,y,A,D,F,H,M,N,Q,Z,fa;return g.J(function(pa){switch(pa.j){case 1:b.fetchType="gp";d=a.U();e=g.kP(d,g.VQ(b));if(!e.j){f=e.getValue();pa.Ha(2);break}return g.G(pa,e.j,3);case 3:f=pa.B;case 2:return h=f,l=s4a(h),m=dMa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.yz(u4a),p=g.VQ(b),q=(0,g.Zt)(),r=!1,t="empty",u=0,a.Md("psns"),y={BB:c},g.G(pa,g.xA(l,m,n,void 0,y),4);case 4:A=pa.B;a.Md("psnr");if(b.La())return pa.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message, +u=A.error.code):A.errorMetadata&&(r=!0,t="its",u=A.errorMetadata.status):r=!0;if(r)return D=0,F=((0,g.Zt)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.pr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.lj||"",token_eq:p===g.VQ(b)?"1":"0"}:{backend:"op", +rc:""+u,rt:F,reason:t,has_kpt:b.Jb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.pr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.lj||"",token_eq:p===g.VQ(b)?"1":"0"},M="manifest.net.connect",u===429?(M="auth",D=2):u>200&&(M="manifest.net.badstatus",u===400&&(D=2)),pa.return(Promise.reject(new FE(M,H,D)));b.loading=!1;g.$P(b,{raw_player_response:A},!0); +N=A;g.OO(b.U())&&N&&N.trackingParams&&RK(N.trackingParams);if(b.errorCode)return Q={ec:b.errorCode,ed:b.errorDetail,es:b.Qn||""},pa.return(Promise.reject(new FE("auth",Q,2)));if(!b.loading&&!XP(b))return Z=b.isAd()?"auth":"manifest.net.retryexhausted",fa=b.isAd()?2:1,pa.return(Promise.reject(new FE(Z,{successButUnplayable:"1",hasMedia:g.FQ(b)?"1":"0"},fa)));g.ua(pa)}})}; +m4a=function(a,b,c){function d(u){u=HE(u);if(GE(u.severity))return Promise.reject(u);a.handleError(u);return!1} +function e(){return!0} +var f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:var y=a.U(),A=a.getPlayerSize(),D=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.Va===38&&y.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.Ti("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.m4});else if(b.Va===30&&y.playerStyle==="docs")F=g.Ti("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.lda,authkey:b.vfa,eurl:y.Rc});else if(b.Va=== +33&&y.playerStyle==="google-live")F=g.Ti("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{y.qa!=="yt"&&g.ex(Error("getVideoInfoUrl for invalid namespace: "+y.qa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:y.Rc,ps:y.playerStyle,el:QQ(b),hl:y.zj,list:b.playlistId,agcid:b.fX,aqi:b.adQueryId,sts:19935,lact:Wv()};Object.assign(H,y.j);y.forcedExperiments&&(H.forced_experiments=y.forcedExperiments);b.ra?(H.vvt=b.ra,b.mdxEnvironment&&(H.mdx_environment=b.mdxEnvironment)): +g.VQ(b)&&(H.access_token=g.VQ(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.cD!==null&&(H.ad_id=b.cD);b.gD!==null&&(H.ad_sys=b.gD);b.UD!==null&&(H.encoded_ad_playback_context=b.UD);b.ID&&(H.tpra="1");y.captionsLanguagePreference&&(H.cc_lang_pref=y.captionsLanguagePreference);y.Jb&&y.Jb!==2&&(H.cc_load_policy=y.Jb);var M=g.kt(g.it(),65);g.bP(y)&&M!=null&&!M&&(H.device_captions_on="1");y.mute&&(H.mute=y.mute);b.annotationsLoadPolicy&& +y.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.qw&&(H.endscreen_ad_tracking=b.qw);(M=y.Ka.get(b.videoId))&&M.TM&&(H.ic_track=M.TM);b.Ma&&(H.itct=b.Ma);UQ(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.XE&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Qj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.Pw&&(H.ytrcc=b.Pw);b.jG&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1"); +b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(M=b.forceAdsUrl.split("|").length===3,H.force_ad_params=M?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Ed&&(H.preload=b.Ed);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Ig?0:b.Ui)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");SQ(b)&&(H.content_v=SQ(b));b.yb&&(H.livemonitor=1);y.Ba&&(H.authuser=y.Ba);y.pageId&&(H.pageid=y.pageId);y.fb&&(H.ei=y.fb);y.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");y.N&&b.qI&&(H.live_start_walltime= +b.qI);y.N&&b.bk&&(H.live_manifest_duration=b.bk);y.N&&b.playerParams&&(H.player_params=b.playerParams);y.N&&b.cycToken&&(H.cyc=b.cycToken);y.N&&b.KD&&(H.tkn=b.KD);D!==0&&(H.vis=D);y.enableSafetyMode&&(H.enable_safety_mode="1");b.Jb&&(H.kpt=b.Jb);b.xp&&(H.kids_age_up_mode=b.xp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.JB&&(H.upg_content_filter_mode="1");y.widgetReferrer&&(H.widget_referrer=y.widgetReferrer.substring(0,128));b.qa?(A=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+ +","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.En&&(H.internalipoverride=b.En);y.embedConfig&&(H.embed_config=y.embedConfig);y.yn&&(H.co_rel="1");y.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(y.ancestorOrigins).join(","));y.homeGroupInfo!==void 0&&(H.home_group_info=y.homeGroupInfo);y.livingRoomAppMode!==void 0&&(H.living_room_app_mode=y.livingRoomAppMode);y.enablePrivacyFilter&& +(H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.hw&&b.jw&&(H.clip=b.hw,H.clipt=b.jw);b.ow&&(H.disable_watch_next="1");b.Dn&&(H.forced_by_var="1");for(var N in H)!v4a.has(N)&&H[N]&&String(H[N]).length>512&&(g.fx(Error("GVI param too long: "+N)),H[N]="");N=y.Fa;g.PO(y)&&(N=lD(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||y.Fa);y=g.Ti(N+"get_video_info",H);F&&(y=Yma(y,F));F=y}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m0)){u.Ha(5);break}return g.G(u, +Oe(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Br(f,p);case 5:return g.G(u,w4a(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ha(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.fx(new g.pt("b/152131571",btoa(f)))}catch(Q){}return u.return(Promise.reject(new FE(r,{backend:"gvi"},t)))}})}; +w4a=function(a,b){function c(A){return d(A.xhr)} +function d(A){if(!a.La()){A=A?A.status:-1;var D=0,F=((0,g.Zt)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";A===429?(H="auth",D=2):A>200&&(H="manifest.net.badstatus",A===400&&(D=2));return Promise.reject(new FE(H,F,D))}} +var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var D={};a.jD&&(D.ytrext=a.jD);(l=g.Bc(D)?void 0:D)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Br(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=jO(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length> +0&&(f.headers=m);p=(0,g.Zt)();return g.G(A,tN(Xr,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=xr(q.responseText);g.$P(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Qn||""},A.return(Promise.reject(new FE("auth",t,2)));if(!a.loading&&!XP(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,A.return(Promise.reject(new FE(u,{successButUnplayable:"1"},y)));g.ua(A)})}; +o_=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.J(function(l){if(l.j==1){d=a.U();if(c&&(!g.dP(d)||QQ(b)!=="embedded")||b.ow||QQ(b)!=="adunit"&&(g.OC(d)||VO(d)||g.hz(d)||g.PO(d)||g.hO(d)==="WEB_CREATOR"))return l.return();e=g.kP(d,g.VQ(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ha(2))}l.j!=2&&(f=l.B);h=f;return l.return(x4a(a,b,h))})}; +x4a=function(a,b,c){var d,e,f,h,l;return g.J(function(m){if(m.j==1){g.va(m,2);d=s4a(c);var n=b.U();g.it();var p={context:g.dR(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};QQ(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.yn&&(p.showContentOwnerOnly=!0);b.MX&&(p.showShortsOnly=!0);g.kt(0,141)&&(p.autonavState=g.kt(0,140)?"STATE_OFF":"STATE_ON");if(g.bP(n)){var q=g.kt(0,65);q=q!=null? +!q:!1;var r=!!g.ct("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.yz(y4a);a.Md("wn_s");return g.G(m,g.xA(d,e,f),4)}if(m.j!=2)return h=m.B,a.Md("wn_r"),!h||"error"in h&&h.error||(l=h,g.OO(b.U())&&l.trackingParams&&RK(l.trackingParams),g.$P(b,{raw_watch_next_response:h},!1)),g.wa(m,0);g.xa(m);g.ua(m)})}; +z4a=function(a){a.Md("vir");a.Md("ps_s");uA("vir",void 0,"video_to_ad");var b=r4a(a);b.then(function(){a.Md("virc");uA("virc",void 0,"video_to_ad");a.Md("ps_r");uA("ps_r",void 0,"video_to_ad")},function(){a.Md("virc"); +uA("virc",void 0,"video_to_ad")}); +return b}; +g.r_=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.WP(a):m;n=n===void 0?!0:n;g.Fx.call(this);var p=this;this.W=a;this.playerType=b;this.Lb=c;this.MH=d;this.getVisibilityState=f;this.visibility=h;this.Ad=l;this.videoData=m;this.r7=n;this.logger=new g.MN("VideoPlayer");this.mE=new G3a(this.W);this.Ae=null;this.LB=new CZ;this.Cr=null;this.Ok=new a2a(this.W,this.MH,this);this.ZY=!0;this.Qa=this.ya=null;this.zq=[];this.Aq=new n_;this.Jf=this.QG=null;this.Es=new n_;this.UL=null;this.iZ=this.xu=!1;this.VL= +NaN;this.V0=!1;this.playerState=new g.LF;this.YL=[];this.KC=new g.OE;this.yl=new N1a(this);this.mediaElement=null;this.Px=new g.fp(this.Yaa,15E3,this);this.rT=this.oL=!1;this.Cy=NaN;this.VI=!1;this.uO=0;this.HF=!1;this.QK=NaN;this.bU=new GT(new Map([["bufferhealth",function(){return b4a(p.Qc)}], +["bandwidth",function(){return p.JP()}], +["networkactivity",function(){return p.W.schedule.qa}], +["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?A4a(p):NaN}], +["rawlivelatency",function(){return A4a(p)}]])); +this.YF=0;this.loop=!1;this.playbackRate=1;this.VZ=0;this.Qc=new V3a(this);this.bX=!1;this.XL=[];this.fR=this.W0=0;this.mT=this.y3=!1;this.Fv=this.Vs=0;this.hO=new g.fp(this.s9,0,this);this.G2=!1;this.wb=this.bd=null;this.Z$=[this.KC,this.hO,this.Px,this.bU];this.If=function(){var q=p.hc();q.provider.W.Qf||q.provider.ea.getVisibilityState()===3||(q.provider.W.Qf=!0);q3a(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&q2a(r)}q.qoe&&(q=q.qoe,q.Wa&&q.B<0&&q.provider.W.Qf&&M2a(q), +q.C&&LZ(q));p.ya&&p_(p);p.W.Pp&&!p.videoData.backgroundable&&p.mediaElement&&!p.ji()&&(p.isBackground()&&p.mediaElement.HI()?(p.oa("bgmobile",{suspend:1}),p.Vo(!0,!0)):p.isBackground()||q_(p)&&p.oa("bgmobile",{resume:1}))}; +this.hd={tq:function(q){p.tq(q)}, +xpa:function(q){p.Ae=q}, +Sna:function(){return p.gB}, +rA:function(){return p.hB}, +qna:function(){return p.vO}, +rna:function(){return p.wO}, +Roa:function(){}, +U:function(){return p.W}, +Ke:function(){return p.mediaElement}, +Uoa:function(q){p.HL(q)}}; +this.logger.debug(function(){return"creating, type "+b}); +this.Bh=new ZZ(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.sD("endcr")||g.U(p.playerState,32)||zW(p); +e(q,r,p.playerType)},function(q,r){g.jQ(p.videoData)&&p.oa(q,r)}); +g.P(this,this.Bh);g.P(this,this.Qc);B4a(this,m);this.videoData.subscribe("dataupdated",this.Gca,this);this.videoData.subscribe("dataloaded",this.OO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Fy,this);this.rJ();VTa(this.If);this.visibility.subscribe("visibilitystatechange",this.If);this.vO=new g.fp(this.vM,g.AC(this.W.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.wO= +new g.fp(this.vM,g.AC(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this)}; +BF=function(a){return a.L("html5_not_reset_media_source")&&!a.dj()&&!a.videoData.isLivePlayback&&g.RQ(a.videoData)&&!a.W.supportsGaplessShorts()}; +B4a=function(a,b){if(a.playerType===2||a.W.hq)b.NU=!0;var c=kKa(b.wc,b.FC,a.W.D,a.W.N);c&&(b.adFormat=c);a.playerType===2&&(b.Pk=!0);if(a.isFullscreen()||a.W.D)c=g.ct("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&l_(a,b.endSeconds)}; +D4a=function(a){if(a.videoData.Y){var b=a.Ad.Vc();a.videoData.Ov=a.videoData.Ov||(b==null?void 0:b.NP());a.videoData.Pv=a.videoData.Pv||(b==null?void 0:b.QP())}if(ILa(a.videoData)||!ZQ(a.videoData))b=a.videoData.errorDetail,a.Lf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Qn||void 0);a.videoData.Uf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&C4a(a);a.L("html5_enable_d6de4")&&a.gI()}; +E4a=function(a){r3a(a.gB);g.fb(a.gB);for(var b=a.hB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())r3a(d.value);b.j.clear();g.fb(a.hB)}; +F4a=function(a){return a.mediaElement&&a.mediaElement.cw()?a.mediaElement.Ib():null}; +s_=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;a.U().K&&a.U().houseBrandUserStatus&&a.oa("hbut",{status:a.U().houseBrandUserStatus});if(a.videoData.qe())return!0;a.Lf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.yW=function(a,b){(b=b===void 0?!1:b)||g.jQ(a.videoData)||gX(a.hc());a.xu=b;!s_(a)||a.Aq.Bu()?g.OC(a.W)&&a.videoData.isLivePlayback&&a.Aq.Bu()&&!a.Aq.j&&!a.xu&&a.OO():(a.Aq.start(),b=a.hc(),g.XI(b.provider),b.qoe&&H2a(b.qoe),a.OO())}; +G4a=function(a){var b=a.videoData;z4a(a).then(void 0,function(c){a.videoData!==b||b.La()||(c=HE(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Lf(c.errorCode,2,unescape(a.videoData.errorReason),EE(c.details),a.videoData.errorDetail,a.videoData.Qn||void 0):a.handleError(c))})}; +yUa=function(a,b){a.bd=b;a.ya&&N0a(a.ya,new g.uZ(b))}; +J4a=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.zq=g.Tb(a.videoData.Ga),g.FQ(a.videoData)){a.Lb.tick("bpd_s");t_(a).then(function(){a.Lb.tick("bpd_c");if(!a.La()){a.xu&&(a.Ec(OF(OF(a.playerState,512),1)),q_(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&l_(a,c.endSeconds);a.Aq.j=!0;u_(a,"dataloaded");a.Es.Bu()&&H4a(a);p2a(a.Ok,a.Jf)}}); +a.L("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.Hj.toFixed(3)},!0);var b=TLa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);I4a(a)}else u_(a,"dataloaded")}; +t_=function(a){v_(a);a.Jf=null;var b=I3a(a.W,a.videoData,a.ji());a.QG=b;a.QG.then(function(c){K4a(a,c)},function(c){a.La()||(c=HE(c),a.visibility.isBackground()?(w_(a,"vp_none_avail"),a.QG=null,a.Aq.reset()):(a.Aq.j=!0,a.Lf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",EE(c.details))))}); +return b}; +FZ=function(a){a.logger.debug("Updating for format change");t_(a).then(function(){return q_(a)}); +a.playerState.isOrWillBePlaying()&&a.playVideo()}; +K4a=function(a,b){if(!a.La()&&!b.videoData.La()){a.logger.debug("finished building playback data");a.Jf=b;Y3a(a.Qc,a.Jf);if(a.videoData.isLivePlayback){var c=HVa(a.Ad.Mu,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ba);c=a.L("html5_onesie_live")&&c;j_(a)||a.videoData.Ob>0&&!iQ(a.videoData)||c||a.seekTo(a.Vd(),{Zc:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&SLa(a.videoData)){a.handleError(new FE("fmt.missing",{missabrurl:"1"},2));return}a.ya? +g.fx(Error("Duplicated Loader")):(c=g.AC(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&qZ(a)&&HVa(a.Ad.Mu,a.videoData.r4)?g.Kr(function(){a.La()||a.ya||L4a(a)},c):L4a(a)}else!a.videoData.C.j&&WQ(a.videoData)&&a.AL(new vY(a.videoData.videoId||"",4)); +x_(a);g2a(b).then(function(){var d={};a.gp(d);a.W.Ac()&&a.L("html5_log_media_perf_info")&&a.oa("av1Info",d);p_(a)})}}; +M4a=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.yW(a);s_(a)&&!g.U(a.playerState,128)&&(a.Es.Bu()||(a.Es.start(),a.videoData.Xl?a.Ec(OF(a.playerState,4)):a.Ec(OF(OF(a.playerState,8),1))),H4a(a))}; +H4a=function(a){a.La();a.logger.debug("try finish readying playback");if(a.Es.j)a.logger.debug("already finished readying");else if(a.Aq.j)if(g.U(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.zq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.zq}); +else if(a.Bh.started||D3a(a.Bh),a.oo())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.iZ=CXa(a.ya.timing));a.Es.j||(a.Es.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ba);!a.videoData.isLivePlayback||a.videoData.Ob>0&&!iQ(a.videoData)||b||j_(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{Zc:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.rT=!0));p3a(a.hc());a.logger.debug("finished readying playback");a.publish("playbackready", +a);sA("pl_c",a.Lb.timerName)||(a.Lb.tick("pl_c"),uA("pl_c",void 0,"video_to_ad"));sA("pbr",a.Lb.timerName)||(a.Lb.tick("pbr"),uA("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")}; +zW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Ec(b?new g.LF(14):new g.LF)}; +l_=function(a,b){a.Cr&&N4a(a);a.Cr=new g.qD(b*1E3,0x7ffffffffffff);a.Cr.namespace="endcr";a.addCueRange(a.Cr)}; +N4a=function(a){a.removeCueRange(a.Cr);a.Cr=null}; +O4a=function(a,b,c,d,e){var f=a.hc(e);e=g.jQ(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.JT(a);f.MG(new $1a(e,c,b,h?h.itag:"",d));c=a.Ok;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")}; +g.JT=function(a){var b=y_(a);return sL(b)||!a.Jf?null:g.Kb(a.Jf.j.videoInfos,function(c){return b.D(c)})}; +y_=function(a){if(a.Jf){var b=a.Ok;var c=a.Jf;a=a.hx();if(b.ea.bj().isInline())var d=VP;else b.L("html5_exponential_memory_for_sticky")?d=EO(b.W.Pf,"sticky-lifetime")<.5?"auto":tL[aL()]:d=tL[aL()],d=g.rL("auto",d,!1,"s");if(sL(d)){d=b2a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.w(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;lna()&&!g.OC(b.W)&&XE(c.j.videoInfos[0])&& +(f=Math.min(f,g.RE.large));h=g.AC(b.W.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));if(l=g.AC(b.W.experiments,"html5_max_vertical_resolution")){h=4320;for(m=0;ml&&(h=Math.min(h,n.video.j))}if(h<4320){for(m=l=0;m32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.AC(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=n2a(b,c,f);d=e.call(d,g.AC(b.W.experiments,"html5_byterate_soft_cap_mweb")>0&&b.W.B&&!g.OO(b.W)?new oL(0,f===4320?0:f,!1,"d",g.AC(b.W.experiments,"html5_byterate_soft_cap_mweb")):new oL(0,f===4320?0:f,!1,"d")).compose(m2a(b,c.videoData)).compose(o2a(b,c.videoData,c)).compose(l2a(b, +c)).compose(e2a(b,c));if(sL(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(f2a(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(l2a(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(f2a(b,c)));d=d.compose(e2a(b,c));b=c.videoData.WB.compose(d).compose(c.videoData.RZ).compose(a)}else b=VP;return b}; +H_a=function(a){var b=a.Ok;a=a.videoData;var c=m2a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(o2a(b,a));return c}; +g.P4a=function(a,b,c,d){a.videoData.WB=b;if(a.Jf&&c){c=a.Ok;var e=a.Jf;if(e.j.j){var f=aL(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=d2a(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=cJa(c.W.G,e.j.videoInfos,l),b.j!==0&&l=480;if(c.L("html5_exponential_memory_for_sticky")){m= +c.W.Pf;n=1;var p=p===void 0?!1:p;uJa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Pr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Pr["sticky-lifetime"]=0);p&&EO(m,"sticky-lifetime")>.0625&&(n=m.Pr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Pr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n= +cL();b=g.w(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.bt("yt-player-performance-cap",n,m?2592E3:604800)}else g.dt("yt-player-performance-cap");$Ba(c);if(c){c=g.w(NN.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||NN.delete(m);c=g.w(GZ.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||GZ.delete(m);c=g.w(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else NN.clear(),GZ.clear(), +p.clear()}}}}a.ya&&(p=a.ya,d=d||"",dU(p.policy)?jY(p.B.j,d):jY(p.j.G,d));x_(a)}; +C4a=function(a){a.videoData.lw="";a.videoData.videoId?a.Ad.GP(a.videoData.videoId).then(function(b){a.videoData.lw=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.oa("pomvid",{})}; +x_=function(a){if(!a.La()&&!g.U(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)p_(a);else{var b=y_(a),c=a.videoData;a:{var d=a.videoData.Fd;if(b.j){for(var e=g.w(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.RE[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ob=d;O4a(a,b.reason,Q4a(a,a.videoData.ob))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Qc.N=!1,a.playVideo()}}; +p_=function(a){if(a.videoData.C&&a.videoData.C.j){var b=y_(a);a.ya&&u0a(a.ya,b)}}; +R4a=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.Rt&&((b=a.videoData.B)==null?0:cF(b)))}; +S4a=function(a){if(!R4a(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)}; +U4a=function(a){var b=T4a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.dc.getName()===b})}; +T4a=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b +0&&(b.Pf=d.Mv));b.Tf=d.Yj;b.wj=PN(c,{},d.C||void 0,tQ(d));b.fb=sQ(d)&&g.hz(c);gQ(d)&&(c.L("html5_sabr_report_partial_segment_estimated_duration")&&(b.Tv=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.lw=!0),b.B=!0,b.En=c.L("html5_sabr_enable_utc_seek_requests"),b.tm=c.L("html5_disable_client_resume_policy_for_sabr"),b.uw=c.L("html5_trigger_loader_when_idle_network"),b.Lv=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.fz=c.L("html5_enable_platform_backpressure_with_sabr"), +b.Uf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Uv=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.xp=c.L("html5_sabr_exclude_quality_ordinal_check"),b.Bp=c.L("html5_log_high_res_buffer_timeline"),b.Aw=c.L("html5_gapless_sabr_btl_last_slice")&&rQ(d),iQ(d)&&(b.yn=c.L("html5_disable_variability_tracker_for_live"),b.Ya=c.L("html5_sabr_use_accurate_slice_info_params")),b.Pv=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"), +b.qa=c.L("html5_enable_sabr_request_pipelining")&&!g.jQ(d),b.Nj=c.L("html5_ignore_partial_segment_from_live_readahead"),b.Bw=c.L("html5_use_non_active_broadcast_for_post_live"),b.yb=c.L("html5_use_centralized_player_time"),b.Ig=c.L("html5_consume_onesie_sabr_seek"),b.ra=c.L("html5_enable_sabr_seek_loader_refactor"),b.bl=c.L("html5_reset_onesie_request_on_start_time_mismatch"),b.zw=c.L("html5_update_segment_start_time_from_media_header"),b.G&&(b.nw=c.L("html5_reset_server_stitch_state_for_non_sabr_seek"), +b.Sv=c.L("html5_remove_ssdai_append_pause"),b.Ab=c.L("html5_consume_ssdai_info_with_streaming")));b.K=b.B&&c.L("html5_sabr_live");GL(c.G,HL.BITRATE)&&(b.ub=NaN);if(l=g.AC(c.experiments,"html5_request_size_max_kb"))b.Wa=l*1024;c.G.D?b.Ob="; "+HL.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Ob="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.zj=!0,xOa(b,l.playbackStartPolicy,2));l=V4a(a);a.LB.removeAll();a:{c=a.Ad.Mu; +if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);c=e;break a}c=void 0}a.ya=new g.pZ(a,a.W.schedule,b,a.videoData.j,a.videoData.C,y_(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Ya);b=a.xu&&g.OC(a.W)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(),y_(a),b);a.videoData.probeUrl&&(a.ya.Va=a.videoData.probeUrl);if(a.zq.length||a.xu)a.videoData.cotn||z_(a,!1);$3a(a.Qc,a.ya);a.bd&&N0a(a.ya,new g.uZ(a.bd));a.wb&&(a.ya.FH(a.wb),a.Qc.N=!1);g.YQ(a.videoData)&&(a=a.ya,a.policy.Ej= +a.policy.TF)}; +v_=function(a){a.ya&&(a.ya.dispose(),a.ya=null,$3a(a.Qc,null));BF(a)?W4a(a):BW(a)}; +W4a=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.Zz(),a.Qa.K)try{a.W.Ac()&&a.oa("rms",{l:"vprms",sr:BF(a),rs:DF(a.Qa)});a.Qa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.pt("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=HE(b),a.handleError(b),BW(a)}else BW(a)}; +BW=function(a){a.Qa&&(a.logger.debug("remove media source"),Nwa(a.Qa),a.Zz(),a.Qa.dispose(),a.Qa=null)}; +X4a=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.ks()&&a.videoData.TQ()&&Pwa(a.mediaElement);var b=a.mediaElement.Lr(a.hA(),a.OP())}catch(d){if(T1a(a.yl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Lf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}ITa(a,b)}var c;return((c=a.Lr())==null?void 0:c.C)||null}; +ITa=function(a,b,c,d){function e(f){try{Y4a(a,f,c,d)}catch(h){g.fx(h),a.handleError(new FE("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}} +c=c===void 0?!1:c;d=d===void 0?!1:d;Z4a(a);a.Qa=b;BF(a)&&DF(a.Qa)==="open"?e(a.Qa):Iwa(a.Qa,e)}; +Z4a=function(a){if(a.ya){var b=a.getCurrentTime()-a.Dc();a.ya.seek(b,{}).Wk(function(){})}else L4a(a)}; +Y4a=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&iQ(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e}); +f>a.Qa.getDuration()&&a.Qa.Xo(f)}else a.Qa.Xo(e);r0a(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}}; +w0a=function(a,b){O4a(a,b.reason,b.j.info,b.token,b.videoId)}; +EZ=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.J(function(h){if(h.j==1){a.ya&&a.ya.qx();a.ya&&a.ya.La()&&v_(a);if(a.L("html5_enable_vp9_fairplay")&&a.dj()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Ec(OF(a.playerState,2048));a.publish("newelementrequired");return b?g.G(h,t_(a),2):h.Ha(2)}a.videoData.Vb()&&((e=a.ya)==null?0:e.Ba)&&!j_(a)&&((f=a.isAtLiveHead())&&fQ(a.videoData)?a.seekTo(Infinity,{Zc:"videoPlayer_getNewElement"}): +a.videoData.Wd&&a.ya&&(l=a.ya,l.manifest.Vb&&(l.manifest.Wd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{Zc:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):JN(l.manifest)&&VY(l))));c&&a.seekTo(0,{seekSource:105});g.U(a.playerState,8)&&a.playVideo();g.ua(h)})}; +A_=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Y=!1;b&&EZ(a);a.ya&&o0a(a.ya)}; +QTa=function(a,b){a.oa("newelem",{r:b});EZ(a)}; +$4a=function(a,b){a.Lb.D.MR();g.U(a.playerState,32)||(a.Ec(OF(a.playerState,32,b==null?void 0:b.seekSource)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Tc()}; +HUa=function(a,b){b=b==null?void 0:b.seekSource;g.U(a.playerState,32)?(a.Ec(QF(a.playerState,16,32,b)),a.publish("endseeking",a)):g.U(a.playerState,2)||a.Ec(OF(a.playerState,16,b));a.Lb.D.RR(a.videoData,a.playerState.isPaused())}; +a5a=function(a,b){a.W.experiments.kb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.tL(),b&&a.Lf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +JNa=function(a){var b=0,c="";if(a.bd){if(a.bd.On)return"D,";b=a.bd.MP();c=a.bd.Cl().substring(0,4)}else a.wb&&(b=a.wb.MP(),c=a.wb.Cl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""}; +u_=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)}; +b5a=function(a){for(var b=g.w("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.KC.T(a.mediaElement,c.value,a.HL,a);a.W.qm&&a.mediaElement.cw()&&(a.KC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.eaa,a),a.KC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.faa,a))}; +FTa=function(a){g.Nr(a.VL);c5a(a)||(a.VL=g.Lr(function(){return c5a(a)},100))}; +c5a=function(a){var b=a.mediaElement;b&&a.oL&&!a.videoData.Ba&&!sA("vfp",a.Lb.timerName)&&b.jl()>=2&&!b.isEnded()&&pF(b.Eh())>0&&a.Lb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ba&&b.getDuration()>0&&(b.isPaused()&&b.jl()>=2&&pF(b.Eh())>0&&(sA("pbp",a.Lb.timerName)||a.Lb.tick("pbp"),!a.videoData.Xl||a.V0||b.isSeeking()||(a.V0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),$Z(a.mE,b))?(GTa(a),!0):!1}; +GTa=function(a){g.Nr(a.VL);a.Px.stop();a.videoData.Ba=!0;a.W.wp=!0;a.W.Kb=0;var b=a.yl;if(b.videoData.B){var c=b.Da.G,d=b.videoData.B.rb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();d5a(a);g.U(a.playerState,8)&&a.Ec(PF(a.playerState,65));a.xu=!1;lVa(a.hc());g.gp(a.vO);a.publish("playbackstarted");(a=g.La("yt.scheduler.instance.clearPriorityThreshold"))?a():At(0,0)}; +d5a=function(a){var b=a.Ad.Od(),c={},d={};!sA("pbs",a.Lb.timerName)&&eA.measure&&eA.getEntriesByName&&(eA.getEntriesByName("mark_nr")[0]?Qta("mark_nr"):Qta());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);a.mediaElement&&a.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=b.B?Number(b.B.itag):-1;b.Ed&&(d.preloadType=String(a.iZ?2:1));c.liveStreamMode=e5a[DQ(b)];c.playerInfo=d;a.Lb.infoGel(c);if(a.ya){b=a.ya.timing; +window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var e in b)b.hasOwnProperty(e)&&a.Lb.tick(e,b[e])}}; +f5a=function(a){a.hc().Cg();if(fQ(a.videoData)&&Date.now()>a.VZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&DN(a.videoData.j))){var b=a.hc();if(b.qoe){b=b.qoe;var c=b.provider.ea.rF(),d=g.XI(b.provider);D2a(b,d,c);c=c.C;isNaN(c)||g.JZ(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.MC(b.U())?!0:g.hO(b.U())==="TVHTML5"?b.fl==="6":!1):b=g.MC(a.W);b&&a.oa("rawlat",{l:IT(a.bU,"rawlivelatency").toFixed(3)});a.VZ=Date.now()}a.videoData.B&&cF(a.videoData.B)&&(b=F4a(a))&& +b.videoHeight!==a.fR&&(a.fR=b.videoHeight,O4a(a,"a",Q4a(a,a.videoData.ob)))}; +Q4a=function(a,b){if(b.j.video.quality==="auto"&&cF(b.getInfo())&&a.videoData.Fd)for(var c=g.w(a.videoData.Fd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.fR&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()}; +A4a=function(a){if(!fQ(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=iQ(a.videoData)?a.ya.mJ.fh()||0:a.videoData.j.Ma);return(0,g.Zt)()/1E3-a.bf()-b}; +h5a=function(a){a.mediaElement&&a.mediaElement.ji()&&(a.QK=(0,g.Zt)());a.W.Fq?g.Kr(function(){g5a(a)},0):g5a(a)}; +g5a=function(a){var b;if((b=a.Qa)==null||!b.Pm()){if(a.mediaElement)try{a.UL=a.mediaElement.playVideo()}catch(d){w_(a,"err."+d)}if(a.UL){var c=a.UL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d}); +if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.UL===c)if(d&&d.name==="AbortError"&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message}); +else{var e="promise";d&&d.name&&(e+=";m."+d.name);w_(a,e);a.bX=!0;a.videoData.Ig=!0}})}}}; +w_=function(a,b){g.U(a.playerState,128)||(a.Ec(QF(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))}; +q_=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=X4a(a);var d;(d=a.ya)==null||d.resume()}else v_(a),a.videoData.ob&&(c=a.videoData.ob.wD());b=c;d=a.mediaElement.HI();c=!1;d&&b!==null&&b.resource===d.resource||(i5a(a,b),c=!0);g.U(a.playerState,2)||(b=a.Qc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={Zc:"seektimeline_resumeTime"},b.videoData.Ba||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(gQ(a.videoData)){if(!a.videoData.dj())break a}else if(!g.BQ(a.videoData))break a; +if(a.mediaElement)if((d=a.videoData.G)&&a.mediaElement.cw()){var e=a.mediaElement.Ib();if(a.Ae)if(e!==a.Ae.element)B_(a);else if(b&&d.flavor==="fairplay"&&!ls())B_(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&ls()&&d.flavor==="widevine")a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ae=new G1a(e,a.videoData,a.W);a.Ae.subscribe("licenseerror",a.zL,a);a.Ae.subscribe("qualitychange",a.Waa,a);a.Ae.subscribe("heartbeatparams", +a.AG,a);a.Ae.subscribe("keystatuseschange",a.tq,a);a.Ae.subscribe("ctmp",a.oa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Ae.py(new uY(j5a,"cenc",!1));b=g.w(a.LB.keys);for(d=b.next();!d.done;d=b.next())d=a.LB.get(d.value),a.Ae.py(d);a.L("html5_eme_loader_sync")||a.LB.removeAll()}}else a.Lf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c}; +i5a=function(a,b){a.Lb.tick("vta");uA("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&d4a(a.Qc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&At(0,4);!a.videoData.Ba&&a.playerState.isOrWillBePlaying()&&a.Px.start();if(R4a(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}}; +B_=function(a){a.Ae&&(a.Ae.dispose(),a.Ae=null)}; +wW=function(a,b){b=b===void 0?!1:b;fQ(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.gq()||g.IQ(a.videoData))?a=a.getCurrentTime():g.jQ(a.videoData)&&a.wb?(b=a.wb,a=a.getCurrentTime(),a=(a=aVa(b,a*1E3))?(a.Yh()-a.Ze())/1E3:0):a=a.Vd(b);return a}; +k5a=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(B_(a),BW(a),X4a(a)):(a.videoData.ob&&a.videoData.ob.uT(),a.mediaElement.stopVideo()),a.playVideo())}; +l5a=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.oa("bufreason",{r:b,lact:Wv()})}; +TW=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.hc();if(n.qoe){var t=n.qoe,u=b.cpn,y=c.cpn,A=p.videoData.wc,D=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,H=y!==D&&r!==F;D=u!==D&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=D?u:"",t.Y=D?q:"",t.adFormat=D?A:void 0,fX(t,2,h?4:f?2:0,y,r,e),t.reportStats(),t.adCpn=H?y:"",t.Y=H?r:"",t.adFormat=H?A:void 0,fX(t, +2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),VZ(f,!0).send(),UZ(f),d!==n.provider.videoData.clientPlaybackNonce){i3a(f);var M;(M=n.j)==null||d3a(M);n.C.delete(d)}}else n.Mg=n.provider.videoData.clientPlaybackNonce,n.Mg&&n.j&&(n.C.set(n.Mg,n.j),VZ(n.j).send(),UZ(n.j));M=c.cpn;p=p.videoData;e-=a.du();if(n.C.has(M)){e=n.C.get(M);var N=e.C&&isNaN(e.D)?TZ(e):NaN;e=h3a(e,!1);isNaN(N)||(e.G=N);e.send()}else e=u3a(n,n.provider,p,e),n.C.set(M,e),j3a(e,new g.Oy(OF(new g.LF,8), +new g.LF)),c3a(e),(N=n.j)==null||UZ(N);n.Mg=M;a.L("html5_unify_csi_server_stitched_transition_logging")?fOa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.K&&(n.cttAuthInfo={token:a.K,videoId:a.videoId}),l&&(n.startTime=l),rA(b,n),g.qA({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),pA("pbs",m!=null?m:(0,g.Zt)(),b))}}}; +O1a=function(a,b){a.videoData.HU=!0;a.Id(new FE("qoe.restart",b));EZ(a,!0)}; +m5a=function(a,b){if(a.W.Ac()&&a.mediaElement){var c=a.mediaElement.uc();c.omt=(a.mediaElement.getCurrentTime()+a.Dc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.XI(a.hc().provider)*1E3).toFixed();c.e=b;a.XL[a.W0++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})}; +n5a=function(a){if(a.W.Ac()){a.XL.sort(function(d,e){return+d.rt-+e.rt}); +for(var b=g.w(a.XL),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.XL=[];a.W0=0}}; +o5a=function(a){if(g.is("cobalt")&&g.is("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}}; +ETa=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})}; +z_=function(a,b){var c;(c=a.ya)==null||sZ(c,b)}; +qZ=function(a){return g.Mb(a.zq,"ad")}; +P1a=function(a){return g.jQ(a.videoData)&&a.wb?ZUa(a.wb):!1}; +I4a=function(a){dQ(a.videoData,"html5_set_debugging_opt_in")&&(a=g.it(),g.kt(0,183)||(mt(183,!0),a.save()))}; +p5a=function(a){return g.jQ(a.videoData)&&a.wb?dX(a.wb):a.videoData.Vd()}; +V0a=function(a,b){a.Ad.Do()||(a.oa("sgap",{f:b}),a.Ad.clearQueue(!1,b==="pe"))}; +j_=function(a){return gQ(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")}; +g.C_=function(a,b,c,d){g.O.call(this);var e=this;this.logger=new g.MN("App");this.tB=this.Aj=!1;this.gt={};this.eM={};this.jC=[];this.zZ=!1;this.NQ=null;this.EZ=!1;this.Hx=!0;this.KT=!1;this.ZZ=this.hR=null;this.m_=!0;this.mediaElement=this.Db=null;this.DR=NaN;this.PG=!1;this.ye=this.MC=this.wb=this.ue=this.screenLayer=this.xb=this.playlist=null;this.hd={Bf:function(){return e.wb}, +FH:function(h){e.wb=h}, +nO:function(h,l){e.wb&&e.wb.nO(h,l)}}; +this.logger.debug("constructor begin");this.config=Nna(b||{});this.webPlayerContextConfig=c;$na();b=this.config.args||{};this.W=new WO(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.P(this,this.W);oUa(this.W);qUa(this.W);this.W.experiments.kb("jspb_serialize_with_worker")&&Hqa();this.W.experiments.kb("gzip_gel_with_worker")&&zpa();this.W.B&&!q5a&&(window.addEventListener(FO?"touchstart":"click",wTa,{capture:!0,passive:!0}),q5a=!0);this.L("html5_onesie")&&(this.uy=new nW(this.W), +g.P(this,this.uy));this.w2=ys(KO(this.W)&&!0,b.enablesizebutton);this.aR=ys(!1,b.player_wide);this.visibility=new XTa;g.P(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.vC(ys(!1,b.player_wide));this.Aj=ys(!1,b.external_list);this.events=new g.OE(this);g.P(this,this.events);this.L("start_client_gcf")&&(Zv(cw(),{aH:Hu,AU:Woa()}),this.E7=cw().resolve(Hu),Zoa(this.E7));this.jda=new jR;g.P(this,this.jda);this.Ur=new RVa;d=new kR;this.Ua=new g.yR(this,d);g.P(this,this.Ua);this.template= +new LVa(this);g.P(this,this.template);this.appState=1;this.Ri=r5a(this);g.P(this,d);d={};this.sO=(d.internalvideodatachange=this.jaa,d.playbackready=this.naa,d.playbackstarted=this.oaa,d.statechange=this.paa,d);this.z8=new RT(this.Ua);this.Rd=s5a(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&t5a||b)this.W.bk=dPa(this.Rd,b),nU(this.W.bk.mf(function(h){e.W.wd=h;var l;(l=g.qR(e))==null||l.oa("wasm",{a:h.Bo})}),function(h){g.fx(h); +h="message"in h&&h.message||h.toString()||"";var l;(l=g.qR(e))==null||l.oa("wasm",{e:h})}); +else if(d&&!t5a){var f;(f=g.qR(this))==null||f.oa("wasm",{e:"wasm unavailable"})}this.Lb=new dOa(this.W,this.Rd);this.Ua.publish("csiinitialized");this.tb=u5a(this);this.tb.setPlaybackRate(this.W.D?1:v5a(this,Number(g.ct("yt-player-playback-rate"))||1));g.Gx(this.tb,this.sO,this);D4a(this.tb);f={};this.e1=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.MR,f.contentPoTokenReady=this.yG,f.endseeking=this.RR,f.internalAbandon= +this.BG,f.internalaudioformatchange=this.sG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.MG,f.liveviewshift=this.Xaa,f.playbackstalledatstart=this.sca,f.progresssync=this.Gba,f.onAbnormalityDetected=this.tL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.DB,f.SEEK_TO=this.gca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.vba,f.playbackready=this.wba, +f.statechange=this.J0,f.connectionissue=this.xG,f.newelementrequired=this.o0,f.heartbeatparams=this.AG,f.videoelementevent=this.HL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.nca,f.nonfatalerror=this.nba,f);this.Lu=new g.OE(this);g.P(this,this.Lu);f=10;g.OC(this.W)&&(f=3);cP(this.W)&&(f=g.AC(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Mu=new qX;g.P(this,this.Mu);this.Ay=new oX(f,function(h){h!==g.qR(e,h.getPlayerType())&&h.dispose()}); +g.P(this,this.Ay);this.zP=this.NJ=-1;this.rM=new g.fp(this.template.resize,16,this.template);g.P(this,this.rM);this.bd=new qVa(this.Ua,this.W,this.tb);this.Bq=new KW(this.W);this.Yk=new OTa(this);g.P(this,this.Yk);this.hN=new sW(this);g.P(this,this.hN);FVa(this.W.j.c);this.events.T(this.Ua,g.sD("appapi"),this.haa);this.events.T(this.Ua,g.tD("appapi"),this.iaa);this.events.T(this.Ua,g.sD("appprogressboundary"),this.Fba);this.events.T(this.Ua,g.tD("applooprange"),this.uM);this.events.T(this.Ua,"presentingplayerstatechange", +this.Lk);this.events.T(this.Ua,"resize",this.Sba);this.template.Ja($d(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.pba);this.Rd.J.U().Ej&&sU(this.Rd,"offline");this.W.Ya&&g.WT("ux",g.lW);this.WW=new g.fp(this.oda,g.AC(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.P(this,this.WW);this.Od().qe()&&(g.et()&&this.Od().Ga.push("remote"),w5a(this));this.Lb.tick("fs");x5a(this);this.W.Ya&&sU(this.Rd,"ux",!0);g.IO(this.Rd.J.U())&&sU(this.Rd,"embed");this.L("web_player_sentinel_is_uniplayer")|| +g.fx(new g.pt("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.Pr("web_player_sentinel_yt_experiments_sync");a!==f&&g.fx(new g.pt("b/195699950",{yt:a,player:f}));c||g.fx(new g.pt("b/179532961"));this.r3=y5a(this);if(c=g.AC(this.W.experiments,"html5_block_pip_safari_delay"))this.FP=new g.fp(this.lX,c,this),g.P(this,this.FP);bs=this.W.yc;c=g.AC(this.W.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.R0= +new g.Me(c),g.P(this,this.R0),this.events.T(this.R0,"tick",function(){e.S0&&z5a.fA("apit",e.S0);e.S0=z5a.zC()})); +this.Ua.publish("applicationInitialized");this.logger.debug("constructor end")}; +y5a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.xb||a.tb).hc().Id("player.exception",EE(c)))} +gx.subscribe("handleError",b);rr.push(b);return function(){gx.unsubscribe("handleError",b);var c=rr.indexOf(b);c!==-1&&rr.splice(c,1)}}; +u5a=function(a){var b=new g.WP(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.Wz(1,b)}; +A5a=function(a,b){if(a.tb!==b){b.getVideoData().autonavState=a.tb.getVideoData().autonavState;Hx(a.tb,a.sO,a);var c=a.tb.getPlaybackRate();a.tb.dispose();a.tb=b;a.tb.setPlaybackRate(c);g.Gx(b,a.sO,a);w5a(a)}}; +s5a=function(a){var b="",c=JVa(a);c.indexOf("//")===0&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.fx(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new MOa(a.Ua,b);B5a(a,b);return b}; +B5a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c); +b.C=c}; +r5a=function(a){if(a.W.storeUserVolume){a=g.ct("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Dd(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a}; +D_=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.ET(g.je("AUDIO")):rW.pop()||new g.ET(g.je("VIDEO"));g.P(a,a.mediaElement);a.xb&&a.xb.setMediaElement(a.mediaElement);try{a.W.Wc?(a.MC&&a.events.Oc(a.MC),a.MC=a.events.T(a.mediaElement,"volumechange",a.fba)):(a.mediaElement.oC(a.Ri.muted),a.mediaElement.setVolume(a.Ri.volume/100))}catch(e){a.Sg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g, +"_")));return}g.Ys(a.Lu);C5a(a);var b=a.template,c=a.mediaElement.Ib();b.Cc=c;b.AK=!1;b.Cc.parentNode||oe(b.Tz,b.Cc,0);b.cM=new g.gm(0,0,0,0);QVa(b);sX(b);c=b.Cc;g.np(c,"video-stream");g.np(c,g.rX.MAIN_VIDEO);var d=b.app.U();d.Vk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in IE()&&(c.playsInline=!0):d.pm&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.yq&&b.Cc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Sg("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}}; +AW=function(a,b,c){if(a.xb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId}); +var d=null;if(a.xb){d=a.xb.getPlayerState();a.logger.debug("set presenting player, destroy modules");tU(a.Rd,3);E_(a,"cuerangesremoved",a.xb.Bl());a.Yk&&!b.isGapless()&&a.xb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=BF(b)&&BF(a.xb);a.L("html5_rebase_video_to_ad_timeline")&&a.Lb.Dv("iv_s");D5a(a,e)}b.getPlayerType()===1&&A5a(a,b);E5a(a,b);a.xb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.Gx(b,a.e1,a);if(b.NK())F5a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata", +b,b.getVideoData());d&&!g.RF(d,b.getPlayerState())&&a.J0(new g.Oy(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.Aq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Ai("onPlaybackQualityChange",c.quality);E_(a,"cuerangesadded",a.xb.Bl());c=b.getPlayerState();g.U(c,2)?G5a(a):g.U(c,8)?b.playVideo():b.MF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().DW=(f=g.qR(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!== +2||a.Ef()||(f=b.getVideoData(),a.tb.Ey(f.clientPlaybackNonce,f.wc||"",f.breakType||0,f.Hj,f.videoId||""));a.logger.debug("finish set presenting player")}}}; +G5a=function(a){if(!H5a(a)){var b=a.tb.Ke();b&&(b=b.QE(),b instanceof Promise&&b.catch(function(){})); +F_(a,TF(a.getPlayerStateObject()))}}; +C5a=function(a){var b=a.mediaElement;ME()?a.Lu.T(b,"webkitpresentationmodechanged",a.dca):window.document.pictureInPictureEnabled&&(a.Lu.T(b,"enterpictureinpicture",function(){a.My(!0)}),a.Lu.T(b,"leavepictureinpicture",function(){a.My(!1)})); +qs&&(a.Lu.T(b,"webkitbeginfullscreen",function(){a.hn(3)}),a.Lu.T(b,"webkitendfullscreen",function(){a.hn(0)}))}; +E5a=function(a,b){var c=b.getPlayerType();if(b!==a.tb&&b!==a.gt[c]){var d;(d=a.gt[c])==null||d.dispose();a.gt[c]=b}}; +D5a=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ye){c=a.ye;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Rj(),D_(a));a.xb&&(a.xb.Rj(!b),Hx(a.xb,a.e1,a),a.xb.getPlayerType()!==1&&a.xb.dispose());a.xb=null;a.logger.debug("finish clear presenting player")}; +g.qR=function(a,b){return b?b===1?a.tb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.gt[2]||a.xb:a.xb:g.jQ(a.getVideoData())&&b===2?a.gt[2]||a.xb:a.gt[b]||null:a.xb}; +I5a=function(a,b,c,d){a=a.Wz(b,c,d);D4a(a);return a}; +G_=function(a,b){return a.Ef(b)?a.tb:b}; +H_=function(a,b){var c=a.xb;return c&&b===a.tb&&a.Ef(b)&&a.Ef(c)?c:b}; +L5a=function(a){a.logger.debug("start application playback");if(a.tb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=I_(a);a.Od().isLoaded();b&&a.Mq(6);J5a(a);WOa(a.Rd)||K5a(a)}}; +K5a=function(a){if(!I_(a)){var b=uU(a.Rd);b&&!b.created&&NOa(a.Rd)&&(a.logger.debug("reload ad module"),b.create())}}; +J5a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Rd;WOa(c)||c.eP();!t5a&&c.J.L("html5_allow_asmjs")&&cPa(c);sU(c,"embed");sU(c,"inline_preview");sU(c,"kids");sU(c,"remote");sU(c,"miniplayer");sU(c,"offline");sU(c,"unplugged");sU(c,"ypc",!1,!0);sU(c,"ypc_clickwrap",!1,!0);sU(c,"yto",!1,!0);sU(c,"webgl",!1,!0);XOa(c)||(sU(c,"captions",!0),sU(c,"endscreen"),c.qJ(),sU(c,"creatorendscreen",!0));c.BX();a.Ua.publish("videoready",b)}; +J_=function(a){a=a.Od();a.qe();return TQ(a)}; +x5a=function(a){a.logger.debug("start prepare initial playback");a.lP();var b=a.config.args;D_(a);var c=a.Od();a.Ua.Ai("onVolumeChange",a.Ri);if(b&&iOa(b)){var d=$O(a.W);d&&!a.Aj&&(b.fetch=0);var e=g.IO(a.W);e&&!a.Aj&&(b.fetch=0);K_(a,b);g.IO(a.W)&&a.Lb.tick("ep_pr_s");if(!d||a.Aj)if(e&&!a.Aj)M5a(a);else if(!c.qe())a.playlist.onReady(function(){L_(a)})}AW(a,a.tb); +g.U(a.tb.getPlayerState(),128)||(b=Bwa(!a.W.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Sg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Sg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.qe()&&J_(a)&&(a.W.Fi||a.W.Ui)?M_(a):c.ED?a.Ua.mutedAutoplay():g.ct("yt-player-playback-on-reload")?(g.Ht("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Ba}),g.bt("yt-player-playback-on-reload",!1),M_(a)):hP(a.W)||N5a(a),g.bP(a.W)||g.hO(a.W)=== +"MWEB"?(g.vt(g.xt(),function(){N_(a)}),g.vt(g.xt(),function(){kua()})):(N_(a),kua()),a.logger.debug("finish prepare initial playback"))}; +N_=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.gp(a.WW);else{var b=a.getVideoData().botguardData;b&&g.$K(b,a.W,a.getVideoData().wr||"")}}; +N5a=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Mq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.dP(a.W)?g.vt(g.xt(),function(){sU(a.Rd,"remote")}):sU(a.Rd,"remote"); +sU(a.Rd,"miniplayer");a.logger.debug("initialized to CUED mode")}; +M_=function(a){a.logger.debug("start initialize application playback");if(g.U(a.tb.getPlayerState(),128))return!1;var b=a.tb.getVideoData();J_(a)&&a.W.Ui&&(rW.length&&a.tB?(O_(a,{muted:!1,volume:a.Ri.volume},!1),P_(a,!1)):rW.length||a.Ri.muted||(O_(a,{muted:!0,volume:a.Ri.volume},!1),P_(a,!0)));J_(a)&&g.IO(a.W)&&b.mutedAutoplay&&(O_(a,{muted:!0,volume:a.Ri.volume},!1),P_(a,!0));b.OY&&O_(a,{muted:!0,volume:a.Ri.volume},!1);O5a(a,1,b,!1);a.Ua.publish("initializingmode");AW(a,a.tb);a.Mq(3);var c;if(!(c= +!a.W.Cn)){if(c=a.ye){c=a.ye;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.zZ}c&&(a.Rj(),D_(a),a.tb.setMediaElement(a.mediaElement));M4a(a.tb);if(g.U(a.tb.getPlayerState(),128))return!1;b.Xl||F_(a,3);return a.zZ=!0}; +I_=function(a){a=BR(a.Rd);return!!a&&a.loaded}; +P5a=function(a,b){if(!a.Db)return!1;var c=a.Db.startTimeMs*.001-1,d=a.Db.endTimeMs*.001;a.Db.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d}; +S5a=function(a){var b,c=(b=g.qR(a))==null?void 0:b.ya;a.xb&&rQ(a.getVideoData())&&c&&c.policy.Xa&&(b=g.AC(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=Q5a(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.hN,R5a(a.app,"gaplessshortslooprange"),b=new g.qD(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Vc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; +T5a=function(a){if(!(g.U(a.tb.getPlayerState(),64)&&a.Od().isLivePlayback&&a.Db.startTimeMs<5E3)){if(a.Db.type==="repeatChapter"){var b,c=(b=mMa(a.Bb()))==null?void 0:b.Ji(),d;b=(d=a.getVideoData())==null?void 0:d.Xk;c instanceof g.IU&&b&&(d=b[$U(b,a.Db.startTimeMs)],c.kH(0,d.title));isNaN(Number(a.Db.loopCount))?a.Db.loopCount=0:a.Db.loopCount++;a.Db.loopCount===1&&a.Ua.ib("innertubeCommand",a.getVideoData().t4)}c={Zc:"application_loopRangeStart"};if(a.Db.type==="clips"||a.Db.type==="shortsLoop")c.seekSource= +58;a.tb.seekTo(a.Db.startTimeMs*.001,c)}}; +v5a=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b}; +Q5a=function(a,b){b=g.qR(a,b);if(!b)return 0;b=G_(a,b);return Q_(a,wW(b),b)}; +Q_=function(a,b,c){if(a.Ef(c)){c=c.getVideoData();if(R_(a))c=b;else{a=a.bd;for(var d=g.w(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.rd===e.rd){b+=e.pc/1E3;break}d=b;a=g.w(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.rd===e.rd)break;var f=e.pc/1E3;if(f1&&(e=!1);if(!a.PG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){}); +a.PG=!0}}else a.PG&&(a.PG=!1,c.unlock())}; +E_=function(a,b,c){a.Ua.publish(b,c);var d=g.OC(a.W)||g.PO(a.W)||g.hz(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.ib(e,c.map(function(f){return{getId:function(){return this.id}, +end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}}; +X_=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.qR(a,e);h&&(h.getPlayerType()===2&&!a.Ef(h)||g.IQ(h.getVideoData()))||(a.getPresentingPlayerType()===3?BR(a.Rd).zG("control_seek",b,c):(h===a.tb&&a.Db&&!P5a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))}; +F5a=function(a,b,c){c&&(a.Rj(),D_(a));c=g.qR(a);c.Id(new FE("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?iQ(d)&&g.MC(a.W)&&(e.live_utc_start=c.bf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.ra&&(e.vvt=d.ra);d.K&&(e.vss_credentials_token=d.K,e.vss_credentials_token_type=d.xn);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Dn&&(e.force_gvi=d.Dn);e.autoplay=1;e.reload_count=d.yc+1;e.reload_reason=b;d.aD&&(e.unplugged_partner_opt_out= +d.aD);d.Wi&&(e.ypc_is_premiere_trailer=d.Wi);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.ue&&K5a(a)}; +h6a=function(a,b){a.Od().autonavState=b;g.bt("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)}; +i6a=function(a){var b=a.getVideoData().al,c=a.W.ob,d=a.isInline()&&!a.getVideoData().z1,e=a.mediaElement;b||c||d?e.nP():(e.rP(),O_(a,a.Ri))}; +S_=function(a){var b=uU(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())}; +R_=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.ue}; +j6a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.w(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=nm(a,d);b.hidden=!!a.hidden}; +JVa=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Jq(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""}; +k6a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"}; +l6a=function(){var a=null;xna().then(function(b){return a=b},function(b){return a=k6a(b)}); +return a}; +m6a=function(){var a=Oe(1E3,"NO_BID");return Ke(kca([xna(),a]).Wk(k6a),function(){a.cancel()})}; +Y_=function(a){return a.ge?g.kt(g.it(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +Z_=function(a){this.player=a;this.C=this.j=1}; +p6a=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=Cr(c),h=g.Ni(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Ni(c)?!1:!0;if(f||h||d!==""){var l={};c=wr(Hr(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))}); +m.has("bid")&&(l.bid=m.get("bid"));l.params=[];n6a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))}); +o6a(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1}; +s6a=function(a,b){var c=!1;if(b==="")return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";d[0]==="!"&&(d=d.substring(1),h="INACTIVE");d=d.split("-");d.length<3||(d[0]in q6a&&(f.clientName=q6a[d[0]]),d[1]in r6a&&(f.platform=r6a[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)}); +return c}; +u6a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in t6a))return!1;a=a.split(RegExp("[:&]"));var b=t6a.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<=2?h[1]:"";var l=w6a.test(b),m=x6a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=y6a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=z6a.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=TO(a.player.U().Fa);p=a.player.getVideoData(1);var t=g.uz(p.Ma,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";p6a(a,t,b,u.toString(),a.player.U()); +var y={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19935,autonavState:Y_(a.player.U())};d&&(d={},s6a(d,c.YT_REMOTE)&&(y.mdxContext=d));if(d=A6a.includes(r)?void 0:g.es("PREF")){for(var A=d.split(RegExp("[:&]")),D=0,F=A.length;D1&&H[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0; +break}}y.autoCaptionsDefaultOn=u6a(d)}b=B6a.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:y};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:wr(Hr(u.toString())),overridePlaybackContext:b};e!==void 0&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams= +c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=VLa(p))&&(h.getAdBreakContext=a);return h}; +D6a=function(){Z_.apply(this,arguments)}; +E6a=function(a,b,c,d,e){var f=c.Sw;c=c.je;var h=a.player.U().Hj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Dh:0,AUTONAV_STATE:Y_(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Kr()*1E3,LACT:Wv(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().ai().height,P_W:a.player.qb().ai().width,YT_REMOTE:h?h.join(","): +""},m=Gr(Fr);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())}); +d!==""&&(l.BISCOTTI_ID=d);d={};Er(b)&&(d.sts="19935",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return Br(g.Ho(b,l),d)}; +F6a=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.kP(c,e).then(function(f){if(f&&Dr()){var h=fS();gS(h,f)}return g.xA(a.player.Im(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})}; +G6a=function(a){this.Oa=a}; +H6a=function(a){this.J=a}; +I6a=function(a){this.Oa=a}; +K6a=function(a){g.O.call(this);this.dh=a;this.x6=J6a(this)}; +J6a=function(a){var b=new Cua(a.dh.od);g.P(a,b);a=g.w([new G6a(a.dh.Oa),new H6a(a.dh.J),new I6a(a.dh.Oa),new SA(a.dh.Jl,a.dh.Ko),new UA,new XA(a.dh.Kf,a.dh.zl,a.dh.Oa),new TA,new RA]);for(var c=a.next();!c.done;c=a.next())Dua(b,c.value);a=g.w(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())VA(b,c.value,function(){}); +return b}; +$_=function(a){var b=a.Sa,c=a.Aa;a=a.Me;var d=new FAa,e={Nn:new xwa(b.get(),c),Aa:c};return{Rb:new CJ(c,a,b,e),context:e,Pg:d}}; +a0=function(a,b,c,d,e){g.O.call(this);this.J=a;this.B=b;this.Ia=c;this.Sa=d;this.xf=e;this.listeners=[];var f=new Ws(this);g.P(this,f);f.T(a,"internalAbandon",this.BG);this.addOnDisposeCallback(function(){g.Ys(f)})}; +b0=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.C=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +L6a=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.D="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.C=!1;a.B=!1}; +M6a=function(a,b){a=g.w(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){pA("ad_i");g.qA({isMonetized:!0});break}}; +c0=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||b!=null&&b.Ba)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),rA("video_to_ad",b)}; +zG=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});rA("ad_to_video",b);N6a(a)}; +N6a=function(a){if(a.C)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")mA("video_to_ad");else{var b={adBreakType:cG(a.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType};a.actionType==="ad_to_video"?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)); +a.adFormat&&(b.adType=a.adFormat);a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn);a.videoId&&(b.videoId=a.videoId);a.adCpn&&(b.adClientPlaybackNonce=a.adCpn);a.adVideoId&&(b.adVideoId=a.adVideoId);g.qA(b,a.actionType)}}; +d0=function(a){g.O.call(this);this.J=a;this.j=new Map;this.B=new Ws(this);g.P(this,this.B);this.B.T(this.J,g.sD("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.tD("ad"),this.onCueRangeExit,this)}; +O6a=function(a,b,c,d,e){g.qD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})}; +e0=function(a){this.J=a}; +f0=function(a){this.J=a}; +P6a=function(a){return g0(a)&&QI(a,"html5_ssap_play_cached_preroll")}; +cJ=function(a,b){return((b===void 0?!1:b)||a.J.U().Ac())&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")}; +g0=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.jQ(b))!=null?c:!1}; +QI=function(a,b){return a.J.U().L(b)}; +Q6a=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")}; +WI=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; +vAa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")}; +R6a=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")}; +zI=function(a){return a.J.U().experiments.kb("enable_desktop_player_underlay")}; +S6a=function(a){return a.J.U().experiments.kb("html5_load_empty_player_in_media_break_sub_lra")}; +nG=function(a){return a.J.U().experiments.kb("html5_load_ads_instead_of_cue")}; +oG=function(a){return a.J.U().experiments.kb("html5_preload_ads")}; +h0=function(a){return a.J.U().experiments.kb("html5_rebase_video_to_ad_timeline")}; +wJ=function(a){return a.J.U().experiments.kb("enable_ads_control_flow_deterministic_id_generation")}; +T6a=function(a){return a.J.U().experiments.kb("enable_desktop_discovery_video_abandon_pings")}; +U6a=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +V6a=function(){g.Fx.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.w(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})}; +i0=function(){if(W6a===null){W6a=new V6a;Dl(Go).B="b";var a=Dl(Go),b=zo(a)=="h"||zo(a)=="b",c=!(Il(),!1);b&&c&&(a.D=!0,a.G=new Pja)}return W6a}; +X6a=function(a,b,c){a.j[b]=c}; +Y6a=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +j0=function(a,b,c){this.Ia=a;this.J=b;this.Aa=c;this.B=new Set;this.j=new Map;i0().subscribe("adactiveviewmeasurable",this.gy,this);i0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ey,this);i0().subscribe("adviewableimpression",this.iy,this);i0().subscribe("adaudioaudible",this.Yx,this);i0().subscribe("adaudiomeasurable",this.Zx,this)}; +l0=function(a,b,c){var d=c.At,e=c.lI,f=c.listener,h=c.b7;c=c.Eo===void 0?!1:c.Eo;if(a.j.has(b))Ny("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);hl(Il().Lc,"fmd",1);Zka(Dl(Go),d);var l=c?b:void 0;X6a(i0(),b,{SP:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ia.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:k0(a.Ia.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}})}}; +m0=function(a,b){a.j.has(b)?(a.j.delete(b),delete i0().j[b]):Ny("Unexpected unregistration of layout in LidarApi")}; +a7a=function(a,b,c){var d={};Z6a(a,d,b,c);$6a(d);d.LACT=n0(function(){return Wv().toString()}); +d.VIS=n0(function(){return a.getVisibilityState().toString()}); +d.SDKV="h.3.0";d.VOL=n0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()}); +d.VED="";return d}; +b7a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.ex(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.ex(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=n0(Yc(Math.round(Wd(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=n0(Yc("0"));return c}; +n0=function(a){return{toString:function(){return a()}}}; +c7a=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)} +function e(l,m){(m=c[m])&&(f[l]=h(m))} +if(!c||g.Bc(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l}; +e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f}; +Z6a=function(a,b,c,d){b.CPN=n0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.fx(Error("Video data is null.")),e=null);return e}); +b.AD_MT=n0(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?d7a(a,h,f):0}else e=d7a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()}); +b.MT=n0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()}); +b.P_H=n0(function(){return a.qb().ai().height.toString()}); +b.P_W=n0(function(){return a.qb().ai().width.toString()}); +b.PV_H=n0(function(){return a.qb().getVideoContentRect().height.toString()}); +b.PV_W=n0(function(){return a.qb().getVideoContentRect().width.toString()})}; +$6a=function(a){a.CONN=n0(Yc("0"));a.WT=n0(function(){return Date.now().toString()})}; +d7a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)}; +e7a=function(){}; +f7a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,y,A,D;g.J(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.Ho(b.baseUrl,c7a(c,f,d));l={};if(!b.headers){F.Ha(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ha(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.w(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.pr("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.pr("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.pr("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]= +g.pr("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":y=a.j();!p&&y&&(l["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(A=void 0,(A=a.C())==null?0:A.kb("enable_datasync_id_header_in_web_vss_pings"))D=a.B(),Cr(h)&&g.pr("LOGGED_IN")&&D&&(l["X-Yt-DataSync-Id"]=D)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.nv(h,void 0,f,Object.keys(l).length!== +0?l:void 0,"",!0,e),g.ua(F)}})}; +g7a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e}; +h7a=function(a,b){this.j=a;this.Aa=b}; +o0=function(a,b,c,d,e,f,h){var l=l===void 0?new g7a(function(){var m=a.U(),n=a.getVideoData(1);return g.kP(m,n?g.VQ(n):"")},function(){return a.U().pageId},function(){return a.U().Ba},function(){var m; +return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l; +this.J=a;this.B=b;this.zb=c;this.Sa=d;this.Rb=e;this.Aa=f;this.Pg=h;this.D=l;this.WH=null;this.j=new Map;this.C=new h7a(l,this.Aa)}; +j7a=function(a,b,c,d,e){var f=fJ(a.B.get(),c);f?(c=OD(a,i7a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):Ny("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; +Hva=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=fJ(a.B.get(),b);if(h){var l=a.zb.get().Rh(b,c),m=OD(a,i7a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Rb.qs("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new hya(n,p),void 0,void 0,h.adLayoutLoggingData))})}else Ny("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b, +trackingType:c})}; +GG=function(a,b){g.Ht("adsClientStateChange",b)}; +k7a=function(a,b){a.j.has(b.oA())?Ny("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.oA(),b)}; +l7a=function(a,b){a.j.delete(b.oA())||Ny("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +JG=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Fy(b,c):a.J.getVideoData(1).oa(b,c)}; +i7a=function(a){var b=tC(a.Ca,"metadata_type_ad_placement_config");a=tC(a.Ca,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,C_:a}}; +OD=function(a,b,c,d,e,f){var h=c?m7a(a):{},l=c?n7a(a,c.layoutId):{},m=o7a(a),n,p=e!=null?e:(n=ZF(a.Sa.get(),2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=ZF(a.Sa.get(),1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Pg.j.get(c.layoutId))==null?0:q.Eo)e=c.layoutId}q={};a=Object.assign({},a7a(a.J,e,d),b7a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=n0(function(){return"1"}),q.AD_CPN=n0(function(){return p|| +""}),q)); +(c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=n0(function(){return(b.C_||0).toString()})); +c={};f=Object.assign({},a,f);a=g.w(Object.values(p7a));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c}; +m7a=function(a){var b={},c,d=(c=a.WH)==null?void 0:c.qj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=n0(function(){return Math.round(d*1E3).toString()})); +b.SURVEY_LOCAL_TIME_EPOCH_S=n0(function(){return Math.round(Date.now()/1E3).toString()}); +return b}; +n7a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.HP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.jN.toString(),b.ERRORCODE=a.kI.toString(),b.ERROR_MSG=a.errorMessage,b}; +o7a=function(a){var b={},c=a.J.getVideoData(1);b.ASR=n0(function(){var d;return(d=c==null?void 0:c.Sv)!=null?d:null}); +b.EI=n0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null}); +return b}; +p0=function(a,b,c){g.O.call(this);this.J=a;this.Ss=b;this.Aa=c;this.listeners=[];this.kR=null;this.mO=new Map;b=new g.OE(this);g.P(this,b);b.T(a,"videodatachange",this.Fca);b.T(a,"serverstitchedvideochange",this.hca);this.Tw=ZF(this)}; +ZF=function(a,b){var c=a.J.getVideoData(b);return c?a.YI(c,b||a.J.getPresentingPlayerType(!0)):null}; +q7a=function(a,b,c){var d=a.YI(b,c);a.Tw=d;a.listeners.forEach(function(e){e.CL(d)})}; +zE=function(a,b,c){a.J.getVideoData(1).oa(b,c)}; +r7a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +q0=function(a,b,c){g.O.call(this);this.J=a;this.Sa=b;this.Aa=c;this.listeners=[];this.wE=[];this.j=function(){Ny("Called 'doUnlockPreroll' before it's initialized.")}; +b=new Ws(this);c=new g.OE(this);g.P(this,c);g.P(this,b);b.T(a,"progresssync",this.Hba);b.T(a,"presentingplayerstatechange",this.yba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.oh);b.T(a,"overlayvisibilitychange",this.Jj);b.T(a,"shortsadswipe",this.Lj);b.T(a,"resize",this.kc);c.T(a,g.sD("appad"),this.Ij)}; +r0=function(a){g0(a.Aa.get())||a.j()}; +s7a=function(a,b){a.wE=a.wE.filter(function(c){return c!==b})}; +s0=function(a,b,c){return a.getCurrentTimeSec(b,c)}; +t7a=function(a,b){var c;b=(c=a.Sa.get().mO.get(b))!=null?c:null;if(b===null)return Ny("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)}); +d.map(function(h){return g.R(h,qI)}).forEach(function(h){var l; +(h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{Cw:e, +adSlots:d,DC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}}; +x0=function(a){g.O.call(this);this.J=a;this.listeners=[];this.j=new Ws(this);g.P(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.KR);this.j.T(this.J,"aduxmouseout",this.JR);this.j.T(this.J,"muteadaccepted",this.daa)}; +y7a=function(a,b,c){b=g.Al(b,function(d){return new Fsa(d,c,d.id)}); +a.J.ib("onAdUxUpdate",b)}; +y0=function(a,b){a=g.w(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)}; +z0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}}; +z7a=function(a,b){var c=a.startSecs+a.Dh;c=c<=0?null:c;if(c===null)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{L7:new Dp(b,c),c$:new ZL(b,c-b,a.context,a.identifier,a.event,a.j)}}; +A7a=function(){this.j=[]}; +zxa=function(a,b,c){var d=g.Yb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]}; +A0=function(a,b,c){g.O.call(this);this.J=a;this.Aa=b;this.Oa=c;this.listeners=[];this.D=!1;this.WM=[];this.B=null;this.G=new z0(this,R6a(b.get()));this.C=new A7a;this.j=null}; +B7a=function(a,b){a.WM.push(b);for(var c=!1,d=g.w(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.m0(b)||c;a.D=c}; +D7a=function(a,b){GG(a.Oa.get(),{cuepointTrigger:{event:C7a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Dh*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})}; +C7a=function(a){switch(a){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Ld(a,"Unexpected cuepoint event")}}; +B0=function(a){this.J=a}; +E7a=function(a,b){a.J.cueVideoByPlayerVars(b,2)}; +C0=function(a){this.J=a}; +D0=function(a){this.J=a}; +F7a=function(a){this.J=a}; +G7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=bD(function(){return new vJ(f.Aa)}); +g.P(this,h);var l=bD(function(){return new xJ(h,f.Aa)}); +g.P(this,l);var m=bD(function(){return new dJ}); +g.P(this,m);var n=bD(function(){return new aJ(a)}); +g.P(this,n);var p=bD(function(){return new yJ(h,l,f.Aa)}); +g.P(this,p);var q=bD(function(){return new DJ}); +g.P(this,q);this.Bc=bD(function(){return new x0(b)}); +g.P(this,this.Bc);this.Mb=bD(function(){return new dD(e)}); +g.P(this,this.Mb);this.zc=bD(function(){return new b0(b)}); +g.P(this,this.zc);this.Pc=bD(function(){return new d0(b)}); +g.P(this,this.Pc);this.md=bD(function(){return new B0(b)}); +g.P(this,this.md);this.od=bD(function(){return new e0(b)}); +g.P(this,this.od);this.Aa=bD(function(){return new f0(b)}); +g.P(this,this.Aa);var r=bD(function(){return new w0(d)}); +g.P(this,r);var t=bD(function(){return new BC(f.Aa)}); +g.P(this,t);this.Yf=bD(function(){return new C0(b)}); +g.P(this,this.Yf);this.Io=bD(function(){return new gD}); +g.P(this,this.Io);this.Sa=bD(function(){return new p0(b,q,f.Aa)}); +g.P(this,this.Sa);var u=$_({Sa:this.Sa,Aa:this.Aa,Me:t}),y=u.context,A=u.Pg;this.Rb=u.Rb;this.xf=bD(function(){return new A0(b,f.Aa,f.Oa)}); +g.P(this,this.xf);this.Gc=bD(function(){return new D0(b)}); +g.P(this,this.Gc);this.Ia=bD(function(){return new q0(b,f.Sa,f.Aa)}); +g.P(this,this.Ia);u=bD(function(){return new SI(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Ia,f.rk)}); +g.P(this,u);this.hf=bD(function(){return new hD}); +this.zb=bD(function(){return new j0(f.Ia,b,f.Aa)}); +g.P(this,this.zb);this.Oa=bD(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Aa,A)}); +g.P(this,this.Oa);this.Rk=new ZI(YI,E0,function(F,H,M,N){return yI(l.get(),F,H,M,N)},n,p,l,t,this.Aa,this.Sa); +g.P(this,this.Rk);this.Sd=new $I(n,u,c,this.Aa,a,this.Sa,this.Ia,this.zc);g.P(this,this.Sd);var D=new a0(b,this.Sd,this.Ia,this.Sa,this.xf);this.yh=bD(function(){return D}); +this.jy=D;this.rk=new VI(n,p,this.yh,this.xf,this.Ia,this.Aa,this.Oa,this.Gc);g.P(this,this.rk);this.Fg=new bJ(n,p,this.Pc,this.yh,y);g.P(this,this.Fg);this.Td=new pI(this.Aa,n,p,u,this.Sa,this.Fg,c);g.P(this,this.Td);this.fk=bD(function(){return new zD(r,l,t,f.Aa,f.Oa,f.Ia,f.Gc)}); +g.P(this,this.fk);this.Ye=bD(function(){return new AD}); +g.P(this,this.Ye);this.Xg=new kJ(a,this.Bc,this.Aa);g.P(this,this.Xg);this.Yb=new lJ(a);g.P(this,this.Yb);this.Ow=new mJ(a);g.P(this,this.Ow);this.Ah=new oJ(a,this.yh,y);g.P(this,this.Ah);this.yf=new pJ(a,this.Pc,this.Ia,this.Sa,y);g.P(this,this.yf);this.Ox=new qJ(a,this.Sa);g.P(this,this.Ox);this.gf=new rJ(a);g.P(this,this.gf);this.Yd=new uJ(a);g.P(this,this.Yd);this.Nk=new sJ(a);g.P(this,this.Nk);this.Wy=new tJ(a);g.P(this,this.Wy);this.Yd=new uJ(a);g.P(this,this.Yd);this.Qe=bD(function(){return new gJ}); +g.P(this,this.Qe);this.Sk=bD(function(){return new hJ(f.Ia)}); +g.P(this,this.Sk);this.LW=bD(function(){return new bwa(f.Bc,f.Oa,a,m,f.zb)}); +g.P(this,this.LW);this.ek=bD(function(){return new gE(f.Td,n,h)}); +g.P(this,this.ek);this.xk=bD(function(){return new lE(f.Aa,f.Oa,f.gf,f.zb)}); +g.P(this,this.xk);this.Qk=bD(function(){return new fH(a,f.Yd,f.gf,f.Sa,f.Gc,f.Ia,f.Oa,q,f.xf,f.zb,f.hf,f.md,f.Pc,f.zc,f.od,f.Mb,f.Yf,f.Aa,m,y,A)}); +g.P(this,this.Qk);this.JS=bD(function(){return new pwa(f.Ia,f.Oa,f.Aa,f.zb)}); +g.P(this,this.JS);this.uu=bD(function(){return new Xxa(f.Bc,f.Ia,f.Oa,m,f.zb,f.Ow,f.Wy,f.Mb,f.Aa,c)}); +g.P(this,this.uu);this.s3=bD(function(){return new cwa(f.Bc)}); +g.P(this,this.s3);this.iO=new v0(a,this.Io,h);g.P(this,this.iO);this.ph={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Fg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_ABOVE_FEED",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye], +["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.Ye],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ye],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ye],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ye]]),vn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ow],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.yf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.yf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.yf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ox],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ox],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.gf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Wy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Qe],["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Sk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qe],["SLOT_TYPE_PLAYBACK_TRACKING",this.Qe],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Qe]]),Fu:new Map([["SLOT_TYPE_ABOVE_FEED", +this.LW],["SLOT_TYPE_AD_BREAK_REQUEST",this.ek],["SLOT_TYPE_FORECASTING",this.xk],["SLOT_TYPE_PLAYER_BYTES",this.Qk],["SLOT_TYPE_PLAYBACK_TRACKING",this.JS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.JS],["SLOT_TYPE_IN_PLAYER",this.uu],["SLOT_TYPE_PLAYER_UNDERLAY",this.s3]])};this.listeners=[m.get()];this.cB={Td:this.Td,zl:this.Aa.get(),jb:this.Mb.get(),NB:this.Ia.get(),Sd:this.Sd,wx:h.get(),aG:this.Io.get(),Ko:this.Xg,Jl:m.get(),Kf:this.Sa.get()}}; +H7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=bD(function(){return new vJ(f.Aa)}); +g.P(this,h);var l=bD(function(){return new xJ(h,f.Aa)}); +g.P(this,l);var m=bD(function(){return new dJ}); +g.P(this,m);var n=bD(function(){return new aJ(a)}); +g.P(this,n);var p=bD(function(){return new yJ(h,l,f.Aa)}); +g.P(this,p);var q=bD(function(){return new DJ}); +g.P(this,q);this.Bc=bD(function(){return new x0(b)}); +g.P(this,this.Bc);this.Mb=bD(function(){return new dD(e)}); +g.P(this,this.Mb);this.zc=bD(function(){return new b0(b)}); +g.P(this,this.zc);this.Pc=bD(function(){return new d0(b)}); +g.P(this,this.Pc);this.md=bD(function(){return new B0(b)}); +g.P(this,this.md);this.od=bD(function(){return new e0(b)}); +g.P(this,this.od);this.Aa=bD(function(){return new f0(b)}); +g.P(this,this.Aa);var r=bD(function(){return new w0(d)}); +g.P(this,r);var t=bD(function(){return new BC(f.Aa)}); +g.P(this,t);var u=bD(function(){return new SI(h,p,l,f.Aa,t,null,null,f.rk)}); +g.P(this,u);this.Yf=bD(function(){return new C0(b)}); +g.P(this,this.Yf);this.Io=bD(function(){return new gD}); +g.P(this,this.Io);this.Sa=bD(function(){return new p0(b,q,f.Aa)}); +g.P(this,this.Sa);var y=$_({Sa:this.Sa,Aa:this.Aa,Me:t}),A=y.context,D=y.Pg;this.Rb=y.Rb;this.xf=bD(function(){return new A0(b,f.Aa,f.Oa)}); +this.Ia=bD(function(){return new q0(b,f.Sa,f.Aa)}); +g.P(this,this.Ia);this.zb=bD(function(){return new j0(f.Ia,b,f.Aa)}); +g.P(this,this.zb);this.Oa=bD(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Aa,D)}); +g.P(this,this.Oa);this.hf=bD(function(){return new hD}); +g.P(this,this.hf);this.Rk=new ZI(YI,E0,function(H,M,N,Q){return yI(l.get(),H,M,N,Q)},n,p,l,t,this.Aa,this.Sa); +g.P(this,this.Rk);this.Sd=new $I(n,u,c,this.Aa,a,this.Sa,this.Ia,this.zc);g.P(this,this.Sd);var F=new a0(b,this.Sd,this.Ia,this.Sa,this.xf);this.yh=bD(function(){return F}); +this.jy=F;this.rk=new VI(n,p,this.yh,this.xf,this.Ia,this.Aa,this.Oa);g.P(this,this.rk);this.Fg=new bJ(n,p,this.Pc,this.yh,A);g.P(this,this.Fg);this.Td=new pI(this.Aa,n,p,u,this.Sa,this.Fg,c);g.P(this,this.Td);this.fk=bD(function(){return new zD(r,l,t,f.Aa,f.Oa,f.Ia)}); +g.P(this,this.fk);this.Ye=bD(function(){return new AD}); +g.P(this,this.Ye);this.Xg=new kJ(a,this.Bc,this.Aa);g.P(this,this.Xg);this.Yb=new lJ(a);g.P(this,this.Yb);this.Ow=new mJ(a);g.P(this,this.Ow);this.Ah=new oJ(a,this.yh,A);g.P(this,this.Ah);this.yf=new pJ(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.yf);this.gf=new rJ(a);g.P(this,this.gf);this.Nk=new sJ(a);g.P(this,this.Nk);this.Wy=new tJ(a);g.P(this,this.Wy);this.Gc=bD(function(){return new D0(b)}); +g.P(this,this.Gc);this.Yd=new uJ(a);g.P(this,this.Yd);this.Qe=bD(function(){return new gJ}); +g.P(this,this.Qe);this.Sk=bD(function(){return new hJ(f.Ia)}); +g.P(this,this.Sk);this.ek=bD(function(){return new gE(f.Td,n,h)}); +g.P(this,this.ek);this.xk=bD(function(){return new lE(f.Aa,f.Oa,f.gf,f.zb)}); +g.P(this,this.xk);this.uu=bD(function(){return new Yxa(f.Bc,f.Ia,f.Oa,m,f.zb,f.Ow,f.Wy,f.Mb,f.Aa,c)}); +g.P(this,this.uu);this.Qk=bD(function(){return new gH(a,f.Yd,f.gf,f.Oa,f.zb,f.hf,f.md,f.Sa,f.Ia,f.Pc,f.zc,f.od,f.Mb,f.Yf,f.Aa,f.Gc,A,D)}); +g.P(this,this.Qk);this.iO=new v0(a,this.Io,h);g.P(this,this.iO);this.ph={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Fg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye], +["SLOT_TYPE_PLAYER_BYTES",this.Ye]]),vn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ow],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.gf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.Wy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Sk]]),Fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ek],["SLOT_TYPE_FORECASTING",this.xk],["SLOT_TYPE_IN_PLAYER",this.uu],["SLOT_TYPE_PLAYER_BYTES",this.Qk]])};this.listeners=[m.get()];this.cB={Td:this.Td,zl:this.Aa.get(),jb:this.Mb.get(),NB:this.Ia.get(),Sd:this.Sd,wx:h.get(),aG:this.Io.get(),Ko:this.Xg, +Jl:m.get(),Kf:this.Sa.get()}}; +I7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=bD(function(){return new vJ(f.Aa)}); +g.P(this,h);var l=bD(function(){return new xJ(h,f.Aa)}); +g.P(this,l);var m=bD(function(){return new dJ}); +g.P(this,m);var n=bD(function(){return new aJ(a)}); +g.P(this,n);var p=bD(function(){return new yJ(h,l,f.Aa)}); +g.P(this,p);var q=bD(function(){return new DJ}); +g.P(this,q);this.Bc=bD(function(){return new x0(b)}); +g.P(this,this.Bc);this.Mb=bD(function(){return new dD(e)}); +g.P(this,this.Mb);this.zc=bD(function(){return new b0(b)}); +g.P(this,this.zc);this.Pc=bD(function(){return new d0(b)}); +g.P(this,this.Pc);this.md=bD(function(){return new B0(b)}); +g.P(this,this.md);this.od=bD(function(){return new e0(b)}); +g.P(this,this.od);this.Aa=bD(function(){return new f0(b)}); +g.P(this,this.Aa);var r=bD(function(){return new w0(d)}); +g.P(this,r);var t=bD(function(){return new BC(f.Aa)}); +g.P(this,t);var u=bD(function(){return new SI(h,p,l,f.Aa,t,null,null,null)}); +g.P(this,u);this.Yf=bD(function(){return new C0(b)}); +g.P(this,this.Yf);this.Sa=bD(function(){return new p0(b,q,f.Aa)}); +g.P(this,this.Sa);var y=$_({Sa:this.Sa,Aa:this.Aa,Me:t}),A=y.context,D=y.Pg;this.Rb=y.Rb;this.Ia=bD(function(){return new q0(b,f.Sa,f.Aa)}); +g.P(this,this.Ia);this.zb=bD(function(){return new j0(f.Ia,b,f.Aa)}); +g.P(this,this.zb);this.Oa=bD(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Aa,D)}); +g.P(this,this.Oa);this.hf=bD(function(){return new hD}); +g.P(this,this.hf);this.Rk=new ZI(YI,E0,function(H,M,N,Q){return yI(l.get(),H,M,N,Q)},n,p,l,t,this.Aa,this.Sa); +g.P(this,this.Rk);this.Sd=new $I(n,u,c,this.Aa,a,this.Sa,this.Ia,this.zc);g.P(this,this.Sd);var F=new a0(b,this.Sd,this.Ia,this.Sa);this.yh=bD(function(){return F}); +this.jy=F;this.Fg=new bJ(n,p,this.Pc,this.yh,A);g.P(this,this.Fg);this.Td=new pI(this.Aa,n,p,u,this.Sa,this.Fg,c);g.P(this,this.Td);this.fk=bD(function(){return new zD(r,l,t,f.Aa,f.Oa,f.Ia)}); +g.P(this,this.fk);this.Ye=bD(function(){return new AD}); +g.P(this,this.Ye);this.Xg=new kJ(a,this.Bc,this.Aa);g.P(this,this.Xg);this.Yb=new lJ(a);g.P(this,this.Yb);this.Ah=new oJ(a,this.yh,A);g.P(this,this.Ah);this.yf=new pJ(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.yf);this.gf=new rJ(a);g.P(this,this.gf);this.Nk=new sJ(a);g.P(this,this.Nk);this.Gc=bD(function(){return new D0(b)}); +g.P(this,this.Gc);this.Yd=new uJ(a);g.P(this,this.Yd);this.Qe=bD(function(){return new gJ}); +g.P(this,this.Qe);this.Sk=bD(function(){return new hJ(f.Ia)}); +g.P(this,this.Sk);this.ek=bD(function(){return new gE(f.Td,n,h)}); +g.P(this,this.ek);this.xk=bD(function(){return new lE(f.Aa,f.Oa,f.gf,f.zb)}); +g.P(this,this.xk);this.O0=bD(function(){return new nwa(f.Bc,f.Ia,f.Oa,m,c,f.Aa)}); +g.P(this,this.O0);this.Qk=bD(function(){return new gH(a,f.Yd,f.gf,f.Oa,f.zb,f.hf,f.md,f.Sa,f.Ia,f.Pc,f.zc,f.od,f.Mb,f.Yf,f.Aa,f.Gc,A,D)}); +g.P(this,this.Qk);this.ph={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Fg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.Ye]]),vn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.gf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_ABOVE_FEED",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Sk]]),Fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ek],["SLOT_TYPE_FORECASTING",this.xk],["SLOT_TYPE_IN_PLAYER", +this.O0],["SLOT_TYPE_PLAYER_BYTES",this.Qk]])};this.listeners=[m.get()];this.cB={Td:this.Td,zl:this.Aa.get(),jb:this.Mb.get(),NB:this.Ia.get(),Sd:this.Sd,wx:h.get(),aG:null,Ko:this.Xg,Jl:m.get(),Kf:this.Sa.get()}}; +J7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=bD(function(){return new vJ(f.Aa)}); +g.P(this,h);var l=bD(function(){return new xJ(h,f.Aa)}); +g.P(this,l);var m=bD(function(){return new dJ}); +g.P(this,m);var n=bD(function(){return new aJ(a)}); +g.P(this,n);var p=bD(function(){return new yJ(h,l,f.Aa)}); +g.P(this,p);var q=bD(function(){return new DJ}); +g.P(this,q);this.Fn=bD(function(){return new F7a(b)}); +g.P(this,this.Fn);this.Bc=bD(function(){return new x0(b)}); +g.P(this,this.Bc);this.Mb=bD(function(){return new dD(e)}); +g.P(this,this.Mb);this.zc=bD(function(){return new b0(b)}); +g.P(this,this.zc);this.Pc=bD(function(){return new d0(b)}); +g.P(this,this.Pc);this.md=bD(function(){return new B0(b)}); +g.P(this,this.md);this.od=bD(function(){return new e0(b)}); +g.P(this,this.od);this.Aa=bD(function(){return new f0(b)}); +g.P(this,this.Aa);var r=bD(function(){return new w0(d)}); +g.P(this,r);var t=bD(function(){return new BC(f.Aa)}); +g.P(this,t);var u=bD(function(){return new SI(h,p,l,f.Aa,t,null,null,null)}); +g.P(this,u);this.Yf=bD(function(){return new C0(b)}); +g.P(this,this.Yf);this.Sa=bD(function(){return new p0(b,q,f.Aa)}); +g.P(this,this.Sa);var y=$_({Sa:this.Sa,Aa:this.Aa,Me:t}),A=y.context,D=y.Pg;this.Rb=y.Rb;this.Ia=bD(function(){return new q0(b,f.Sa,f.Aa)}); +g.P(this,this.Ia);this.zb=bD(function(){return new j0(f.Ia,b,f.Aa)}); +g.P(this,this.zb);this.Oa=bD(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Aa,D)}); +g.P(this,this.Oa);this.hf=bD(function(){return new hD}); +g.P(this,this.hf);this.Rk=new ZI(CAa,E0,function(H,M,N,Q){return TAa(l.get(),H,M,N,Q)},n,p,l,t,this.Aa,this.Sa); +g.P(this,this.Rk);this.Sd=new $I(n,u,c,this.Aa,a,this.Sa,this.Ia,this.zc);g.P(this,this.Sd);var F=new a0(b,this.Sd,this.Ia,this.Sa);this.yh=bD(function(){return F}); +this.jy=F;this.Fg=new bJ(n,p,this.Pc,this.yh,A);g.P(this,this.Fg);this.Td=new pI(this.Aa,n,p,u,this.Sa,this.Fg,c);g.P(this,this.Td);this.fk=bD(function(){return new zD(r,l,t,f.Aa,f.Oa,f.Ia)}); +g.P(this,this.fk);this.Ye=bD(function(){return new AD}); +g.P(this,this.Ye);this.Xg=new kJ(a,this.Bc,this.Aa);g.P(this,this.Xg);this.Yb=new lJ(a);g.P(this,this.Yb);this.Ah=new oJ(a,this.yh,A);g.P(this,this.Ah);this.yf=new pJ(a,this.Pc,this.Ia,this.Sa,A);g.P(this,this.yf);this.gf=new rJ(a);g.P(this,this.gf);this.Nk=new sJ(a);g.P(this,this.Nk);this.Gc=bD(function(){return new D0(b)}); +g.P(this,this.Gc);this.Yd=new uJ(a);g.P(this,this.Yd);this.Qe=bD(function(){return new gJ}); +g.P(this,this.Qe);this.Sk=bD(function(){return new hJ(f.Ia)}); +g.P(this,this.Sk);this.ek=bD(function(){return new gE(f.Td,n,h)}); +g.P(this,this.ek);this.xk=bD(function(){return new lE(f.Aa,f.Oa,f.gf,f.zb)}); +g.P(this,this.xk);this.Qk=bD(function(){return new gH(a,f.Yd,f.gf,f.Oa,f.zb,f.hf,f.md,f.Sa,f.Ia,f.Pc,f.zc,f.od,f.Mb,f.Yf,f.Aa,f.Gc,A,D)}); +g.P(this,this.Qk);this.P3=bD(function(){return new $xa(f.Bc,f.Ia,f.Oa,m,f.Fn,c,f.Sa)}); +g.P(this,this.P3);this.ph={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Fg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.Ye]]),vn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.yf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.gf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES",this.Sk]]),Fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ek],["SLOT_TYPE_FORECASTING",this.xk],["SLOT_TYPE_IN_PLAYER",this.P3],["SLOT_TYPE_PLAYER_BYTES", +this.Qk]])};this.listeners=[m.get()];this.cB={Td:this.Td,zl:this.Aa.get(),jb:this.Mb.get(),NB:this.Ia.get(),Sd:this.Sd,wx:h.get(),aG:null,Ko:this.Xg,Jl:m.get(),Kf:this.Sa.get()}}; +K7a=function(a,b,c,d,e){g.O.call(this);var f=this,h=bD(function(){return new vJ(f.Aa)}); +g.P(this,h);var l=bD(function(){return new xJ(h,f.Aa)}); +g.P(this,l);var m=bD(function(){return new dJ}); +g.P(this,m);var n=bD(function(){return new aJ(a)}); +g.P(this,n);var p=bD(function(){return new yJ(h,l,f.Aa)}); +g.P(this,p);var q=bD(function(){return new DJ}); +g.P(this,q);this.Fn=bD(function(){return new F7a(b)}); +g.P(this,this.Fn);this.Bc=bD(function(){return new x0(b)}); +g.P(this,this.Bc);this.Mb=bD(function(){return new dD(e)}); +g.P(this,this.Mb);this.zc=bD(function(){return new b0(b)}); +g.P(this,this.zc);this.Pc=bD(function(){return new d0(b)}); +g.P(this,this.Pc);this.md=bD(function(){return new B0(b)}); +g.P(this,this.md);this.od=bD(function(){return new e0(b)}); +g.P(this,this.od);this.Aa=bD(function(){return new f0(b)}); +g.P(this,this.Aa);var r=bD(function(){return new w0(d)}); +g.P(this,r);var t=bD(function(){return new BC(f.Aa)}); +g.P(this,t);this.Yf=bD(function(){return new C0(b)}); +g.P(this,this.Yf);this.Sa=bD(function(){return new p0(b,q,f.Aa)}); +g.P(this,this.Sa);var u=$_({Sa:this.Sa,Aa:this.Aa,Me:t}),y=u.context,A=u.Pg;this.Rb=u.Rb;this.xf=bD(function(){return new A0(b,f.Aa,f.Oa)}); +g.P(this,this.xf);this.Gc=bD(function(){return new D0(b)}); +g.P(this,this.Gc);this.Ia=bD(function(){return new q0(b,f.Sa,f.Aa)}); +g.P(this,this.Ia);u=bD(function(){return new SI(h,p,l,f.Aa,t,null,f.Ia,f.rk,3)}); +g.P(this,u);this.hf=bD(function(){return new hD}); +this.zb=bD(function(){return new j0(f.Ia,b,f.Aa)}); +g.P(this,this.zb);this.Oa=bD(function(){return new o0(b,m,f.zb,f.Sa,f.Rb,f.Aa,A)}); +g.P(this,this.Oa);this.Sd=new $I(n,u,c,this.Aa,a,this.Sa,this.Ia,this.zc);g.P(this,this.Sd);var D=new a0(b,this.Sd,this.Ia,this.Sa,this.xf);this.yh=bD(function(){return D}); +this.jy=D;this.Rk=new ZI(DAa,E0,function(F,H,M,N){return TAa(l.get(),F,H,M,N)},n,p,l,t,this.Aa,this.Sa); +g.P(this,this.Rk);this.rk=new VI(n,p,this.yh,this.xf,this.Ia,this.Aa,this.Oa,this.Gc);g.P(this,this.rk);this.Fg=new bJ(n,p,this.Pc,this.yh,y);g.P(this,this.Fg);this.Td=new pI(this.Aa,n,p,u,this.Sa,this.Fg,c);g.P(this,this.Td);this.fk=bD(function(){return new zD(r,l,t,f.Aa,f.Oa,f.Ia,f.Gc)}); +g.P(this,this.fk);this.Ye=bD(function(){return new AD}); +g.P(this,this.Ye);this.Xg=new kJ(a,this.Bc,this.Aa);g.P(this,this.Xg);this.Yb=new lJ(a);g.P(this,this.Yb);this.Ah=new oJ(a,this.yh,y);g.P(this,this.Ah);this.yf=new pJ(a,this.Pc,this.Ia,this.Sa,y);g.P(this,this.yf);this.Ox=new qJ(a,this.Sa);g.P(this,this.Ox);this.gf=new rJ(a);g.P(this,this.gf);this.Nk=new sJ(a);g.P(this,this.Nk);this.Yd=new uJ(a);g.P(this,this.Yd);this.Qe=bD(function(){return new gJ}); +g.P(this,this.Qe);this.Sk=bD(function(){return new hJ(f.Ia)}); +g.P(this,this.Sk);this.ek=bD(function(){return new gE(f.Td,n,h)}); +g.P(this,this.ek);this.xk=bD(function(){return new lE(f.Aa,f.Oa,f.gf,f.zb)}); +g.P(this,this.xk);this.Qk=bD(function(){return new fH(a,f.Yd,f.gf,f.Sa,f.Gc,f.Ia,f.Oa,q,f.xf,f.zb,f.hf,f.md,f.Pc,f.zc,f.od,f.Mb,f.Yf,f.Aa,m,y,A)}); +g.P(this,this.Qk);this.uu=bD(function(){return new aya(f.Bc,f.Ia,f.Oa,m,f.Fn,c,f.Aa,f.Sa)}); +g.P(this,this.uu);this.ph={GB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Rk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Fg]]),St:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.fk],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.Ye]]),vn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.Xg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ah],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.yf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ox],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ox],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.gf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ah],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Nk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Qe],["SLOT_TYPE_FORECASTING",this.Qe],["SLOT_TYPE_IN_PLAYER",this.Qe],["SLOT_TYPE_PLAYER_BYTES", +this.Sk]]),Fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ek],["SLOT_TYPE_FORECASTING",this.xk],["SLOT_TYPE_PLAYER_BYTES",this.Qk],["SLOT_TYPE_IN_PLAYER",this.uu]])};this.listeners=[m.get()];this.cB={Td:this.Td,zl:this.Aa.get(),jb:this.Mb.get(),NB:this.Ia.get(),Sd:this.Sd,wx:h.get(),aG:null,Ko:this.Xg,Jl:m.get(),Kf:this.Sa.get()}}; +M7a=function(a,b,c,d){g.O.call(this);var e=this;this.j=L7a(function(){return e.B},a,b,c,d); +g.P(this,this.j);this.B=(new cD(this.j)).C();g.P(this,this.B)}; +F0=function(a){return a.j.cB}; +L7a=function(a,b,c,d,e){try{var f=b.U();if(g.bP(f))var h=new G7a(a,b,c,d,e);else if(g.dP(f))h=new H7a(a,b,c,d,e);else if(VO(f))h=new I7a(a,b,c,d,e);else if(g.hz(f))h=new J7a(a,b,c,d,e);else if(g.PO(f))h=new K7a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),Ny("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,uoa:h.j.cver,toa:h.j.ctheme,soa:h.j.cplayer,cpa:h.playerStyle}),new w7a(a,b,c,d,e)}}; +N7a=function(a){ry.call(this,a)}; +O7a=function(a,b,c,d,e){Ay.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=this.Ea("ytp-ad-timed-pie-countdown");this.D=this.Ea("ytp-ad-timed-pie-countdown-container"); +this.B=this.Ea("ytp-ad-timed-pie-countdown-inner");this.G=this.Ea("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()}; +P7a=function(a,b,c,d,e,f){Ox.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div", +S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.OT=e;this.CM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ga=this.Ea("ytp-ad-action-interstitial-instream-info");this.ra=this.Ea("ytp-ad-action-interstitial-image-container");this.Y=new ny(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-image");g.P(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Ea("ytp-ad-action-interstitial-headline-container"); +this.G=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-headline");g.P(this,this.G);this.G.Ja(this.Wa);this.Va=this.Ea("ytp-ad-action-interstitial-description-container");this.C=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-description");g.P(this,this.C);this.C.Ja(this.Va);this.Xa=this.Ea("ytp-ad-action-interstitial-background-container");this.Ka=new ny(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Ka);this.Ka.Ja(this.Xa);this.fb=this.Ea("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ea("ytp-ad-action-interstitial-slot");this.wf=this.Ea("ytp-ad-action-interstitial-card");this.D=new Ws;g.P(this,this.D);this.hide()}; +Q7a=function(a){var b=g.de("html5-video-player");b&&g.rp(b,"ytp-ad-display-override",a)}; +U7a=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.fb=this.Ga=this.D=this.Xa=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Ea("ytp-ad-overlay-container");this.Ka=new Jy(a,45E3,6E3,.3,.4);g.P(this,this.Ka);this.C=R7a(this);g.P(this,this.C);this.C.Ja(a);this.B=S7a(this);g.P(this,this.B);this.B.Ja(a);this.j=T7a(this);g.P(this,this.j);this.j.Ja(a);this.hide()}; +R7a=function(a){var b=new g.Nx({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[fy(V7a)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){G0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){G0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.SN);b.hide();return b}; +S7a=function(a){var b=new g.Nx({I:"div",Na:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[fy(V7a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +va:"{{displayUrl}}"}]});a.T(b.Ea("ytp-ad-overlay-title"),"click",function(c){G0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-link"),"click",function(c){G0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.SN);a.T(b.Ea("ytp-ad-overlay-text-image"),"click",a.wca);b.hide();return b}; +T7a=function(a){var b=new g.Nx({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[fy(V7a)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ea("ytp-ad-overlay-image"),"click",function(c){G0(a,b.element,c)}); +a.T(b.Ea("ytp-ad-overlay-close-container"),"click",a.SN);b.hide();return b}; +W7a=function(a,b){if(b){var c=g.R(b,lI)||null;if(c==null)g.ex(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.de("video-ads ytp-ad-module")||null,b==null)g.ex(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.Nx({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(a,a.Ga),a.Ga.Ja(b),b=new wy(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.Ga.element,!1),g.P(a,b),b.init(Dx("ad-info-hover-text-button"), +c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.baa,a);b.subscribe("e",a.jS,a);a.T(a.G,"click",a.caa);var d=g.de("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.R((e=g.R(c.button,g.nI))==null?void 0:e.serviceEndpoint,Psa))a.Wa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}); +a.fb=b}else g.ex(Error("Ad info button container within overlay ad was not present."))}else g.fx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +Y7a=function(a,b){if(X7a(a,H0)||a.api.isMinimized())return!1;var c=Px(b.title),d=Px(b.description);if(g.pb(c)||g.pb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",Px(b.title));a.C.updateValue("description",Px(b.description));a.C.updateValue("displayUrl",Px(b.displayUrl));b.navigationEndpoint&&g.Ub(a.Y,b.navigationEndpoint);a.C.show();a.Ka.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++}); +return!0}; +Z7a=function(a,b){if(X7a(a,H0)||a.api.isMinimized())return!1;var c=Px(b.title),d=Px(b.description);if(g.pb(c)||g.pb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",Px(b.title));a.B.updateValue("description",Px(b.description));a.B.updateValue("displayUrl",Px(b.displayUrl));a.B.updateValue("imageUrl",gsa(b.image));b.navigationEndpoint&&g.Ub(a.Y,b.navigationEndpoint);a.Xa=b.imageNavigationEndpoint||null;a.B.show();a.Ka.start();a.logVisibility(a.B.element,!0); +a.T(a.B.element,"mouseover",function(){a.ra++}); +return!0}; +$7a=function(a,b){if(a.api.isMinimized())return!1;var c=hsa(b.image),d=c;c.width0?(b=new fz(a.api,a.j),b.Ja(a.playerOverlay), +g.P(a,b)):g.ex(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.ex(Error("addCommonComponents() needs to be called before starting countdown."))}; +k8a=function(a){function b(c){return{toString:function(){return c()}}} +a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()}); +a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Xa()-a.C).toString()})}; +l8a=function(a,b,c,d,e){L0.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; +m8a=function(a,b,c){a.noneOfTheAbove=new f8a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(Dx("survey-none-of-the-above"),b,c)}; +o8a=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)}); +n8a(a,!0)}; +n8a=function(a,b){var c=a.D;a=p8a(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof Ty&&!c.j.D&&Ysa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())}; +p8a=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()}; +M0=function(a,b,c,d,e){L0.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])}); +var f=this;this.hide()}; +N0=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ea("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ea("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ea("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +s8a=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.R(c,jI)?q8a(a,g.R(c,jI),a.macros):g.R(c,iI)&&r8a(a,g.R(c,iI),a.macros);a.j=b}; +q8a=function(a,b,c){var d=new M0(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Dx("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; +r8a=function(a,b,c){var d=new l8a(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(Dx("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)}; +O0=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ea("ytp-ad-survey-interstitial");this.B=this.Ea("ytp-ad-survey-interstitial-contents");this.text=this.Ea("ytp-ad-survey-interstitial-text"); +this.logoImage=this.Ea("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Dy(this,500,!1,300);g.P(this,this.transition)}; +u8a=function(a,b){b=b&&my(b)||"";if(g.pb(b))g.fx(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Jla(d.style);b=new g.td([c,Hba(t8a,b)].map(Fba).join(""),Cd);a.style.cssText=ud(b)}}; +v8a=function(a){var b=g.de("html5-video-player");b&&g.rp(b,"ytp-ad-display-override",a)}; +P0=function(a){this.content=a.content;if(a.commandRuns){a=g.w(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.R(b,w8a),b.onTap&&(this.interaction={onTap:b.onTap})}}; +Q0=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()}; +R0=function(a,b,c,d){Ox.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.adBadgeText.Ja(this.element);g.P(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +S0=function(a,b,c,d,e,f){f=f===void 0?0:f;Ay.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Ea("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Dy(this,400,!1,100,function(){h.hide()}); +g.P(this,this.transition);this.hide()}; +T0=function(a,b,c,d){Ox.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()}; +x8a=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +U0=function(a,b,c,d){Ox.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()}; +y8a=function(a,b,c,d,e){Ay.call(this,a,{I:"div",Na:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new T0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.adAvatar);oe(this.element,this.adAvatar.element,0);this.headline=new Q0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb);g.P(this,this.headline);this.headline.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.description);this.description.Ja(this.Ea("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new U0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb);g.P(this,this.adButton);this.adButton.Ja(this.element);this.hide()}; +z8a=function(a,b,c,d){Ox.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ea("ytp-skip-ad-button__text");this.transition=new g.Dy(this,500,!1,100,function(){e.hide()}); +g.P(this,this.transition);this.j=new Jy(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.j);this.hide()}; +A8a=function(a,b,c,d,e){Ay.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j);g.P(this,this.B);this.B.Ja(this.element);this.C=new z8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.P(this,this.C);this.C.Ja(this.element);this.hide()}; +V0=function(a,b,c,d){Ox.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()}; +W0=function(a,b,c,d,e){Ox.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.ra=this.Ea("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ea("ytp-ad-player-overlay-layout__ad-info-container"); +this.G=this.Ea("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Ea("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; +X0=function(a,b,c){ry.call(this,a);this.api=a;this.jb=b;this.B={};a=new g.T({I:"div",Na:["video-ads","ytp-ad-module"]});g.P(this,a);lO&&g.np(a.element,"ytp-ads-tiny-mode");this.G=new Pv(a.element);g.P(this,this.G);g.GR(this.api,a.element,4);zI(c)&&(c=new g.T({I:"div",Na:["ytp-ad-underlay"]}),g.P(this,c),this.C=new Pv(c.element),g.P(this,this.C),g.GR(this.api,c.element,0));g.P(this,Asa())}; +B8a=function(a,b){a=g.Cc(a.B,b.id,null);a==null&&g.fx(Error("Component not found for element id: "+b.id));return a||null}; +C8a=function(a){g.XT.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new D6a(this.player):new Z_(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new K6a({Ko:F0(b.j).Ko,Kf:F0(b.j).Kf,J:b.player,zl:F0(b.j).zl,Oa:b.j.j.Oa,Jl:F0(b.j).Jl,od:b.j.j.od});b.B=d.x6;return b.B}; +this.j=new M7a(this.player,this,this.C,this.D);g.P(this,this.j);var c=a.U();!NC(c)||g.PO(c)||VO(c)||(g.P(this,new X0(a,F0(this.j).jb,F0(this.j).zl)),g.P(this,new N7a(a)))}; +D8a=function(a){a.created!==a.loaded&&Ny("Created and loaded are out of sync")}; +G8a=function(a){g.XT.prototype.load.call(a);var b=F0(a.j).zl;try{a.player.getRootNode().classList.add("ad-created")}catch(l){Ny(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.kb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.R(l,qI)}); +e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Vb();b=E8a(f,h,b,F0(a.j).wx);f=c&&c.clientPlaybackNonce||"";c=c&&c.Hp||!1;h=1E3*a.player.getDuration(1);F8a(a);a.j.j.jy.Kk(f,h,c,b.QL,b.QW,b.QL,e,d)}; +F8a=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Hp)||g.pr("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=NC(b)&&!g.MC(b)&&b.playerStyle==="desktop-polymer";c&&(b=a.player.getInternalApi(),(a=a.player.getInternalApi())?(a.addEventListener("updateKevlarOrC3Companion",dta),a.addEventListener("updateEngagementPanelAction",eta),a.addEventListener("changeEngagementPanelVisibility",fta)):(b.addEventListener("updateKevlarOrC3Companion",dta),b.addEventListener("updateEngagementPanelAction", +eta),b.addEventListener("changeEngagementPanelVisibility",fta)),window.addEventListener("yt-navigate-start",hta))}; +Y0=function(a,b){b===a.zt&&(a.zt=void 0)}; +H8a=function(a){var b=F0(a.j).Sd,c=b.D().gQ("SLOT_TYPE_PLAYER_BYTES",1);b=ZF(b.Sa.get(),1).clientPlaybackNonce;var d=!1;c=g.w(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof uH?e.slotEntryTrigger.Hv:void 0;f&&f===b&&(d&&Ny("More than 1 preroll playerBytes slot detected",e),d=!0)}d||r0(F0(a.j).NB)}; +I8a=function(a){if(g0(F0(a.j).zl))return!0;var b="";a=g.w(F0(a.j).Jl.nj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.bb==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&Ny("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; +J8a=function(a){a=g.w(F0(a.j).Jl.nj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +Gya=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=F0(a.j).zl,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Vb();c=E8a(b,c,f,F0(a.j).wx);Kya(F0(a.j).Td,d,c.QL,c.QW,b,e)}; +E8a=function(a,b,c,d){b={QL:[],QW:b};a=g.w(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.R((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,RI)?(h=g.R((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,RI),h=PAa(h,p),g.lx(f.sandwichedLinearAdRenderer.adVideoStart,RI,h)):g.R((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,RI)&& +(m=g.R((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,RI),h=PAa(m,p),g.lx(f.linearAdSequenceRenderer.adStart,RI,h))}b.QL.push(e)}return b}; +g.Z0=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=Cma(a);return b.parseFromString(g.wd(a),"application/xml")}throw Error("Your browser does not support loading xml documents");}; +g.$0=function(a){g.O.call(this);this.callback=a;this.j=new Bp(0,0,.4,0,.2,1,1,1);this.delay=new g.ep(this.next,window,this);g.P(this,this.delay)}; +g.K8a=function(a){var b=a.U();return b.Ed&&!b.C&&g.IO(b)?a.jd()?(a=a.Zn(),Math.min(a.width,a.height)>=315):!a.Og():!1}; +g.a1=function(a){g.T.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.OE(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.T({I:"h2",S:"ytp-related-title",va:"{{title}}"});this.previous=new g.T({I:"button",Na:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.Tx()]});this.N=new g.$0(function(c){b.suggestions.element.scrollLeft=-c}); +this.next=new g.T({I:"button",Na:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.Ux()]});g.P(this,this.D);this.K=a.U().D;g.P(this,this.title);this.title.Ja(this.element);this.suggestions=new g.T({I:"div",S:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.Ja(this.element);g.P(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.z6,this);g.P(this,this.N);L8a(this);g.P(this,this.next);this.next.Ja(this.element);this.next.listen("click", +this.y6,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.ly);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.qb().getPlayerSize());this.onVideoDataChange()}; +L8a=function(a){for(var b={DA:0};b.DA<16;b={DA:b.DA},++b.DA){var c=new g.T({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration", +va:"{{duration}}"}]}]});g.P(a,c);var d=c.Ea("ytp-suggestion-link");g.jm(d,"transitionDelay",b.DA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.DA;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.El(),l={},g.DR(a.api,l,"emb_rel_pause"),h=g.Ti(h,l),g.yS(h,a.api,f)):g.xS(f,a.api,a.K,m||void 0)&&a.api.qp(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b)); +c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}}; +M8a=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)}; +g.b1=function(a){var b=a.api.Hh()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.rp(a.element,"ytp-scroll-min",b>=0);g.rp(a.element,"ytp-scroll-max",b<=c)}; +O8a=function(a){for(var b=a.suggestionData.length,c=0;c>>0)+"_",e=0;return b}); +ka("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}}); +ka("Set",function(a){function b(c){this.j=new Map;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size} +if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.w([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a; +b.prototype.add=function(c){c=c===0?0:c;this.j.set(c,c);this.size=this.j.size;return this}; +b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c}; +b.prototype.clear=function(){this.j.clear();this.size=0}; +b.prototype.has=function(c){return this.j.has(c)}; +b.prototype.entries=function(){return this.j.entries()}; +b.prototype.values=function(){return this.j.values()}; +b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})}; +return b}); +ka("Array.prototype.entries",function(a){return a?a:function(){return Da(this,function(b,c){return[b,c]})}}); +ka("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ea(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h=f}}); +ka("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}}); +ka("String.prototype.repeat",function(a){return a?a:function(b){var c=Ea(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}}); +ka("Array.prototype.values",function(a){return a?a:function(){return Da(this,function(b,c){return c})}}); +ka("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); +ka("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)na(b,d)&&c.push(b[d]);return c}}); +ka("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}}); +ka("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}}); +ka("globalThis",function(a){return a||g.da}); +ka("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}}); +ka("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}}); +ka("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}}); +ka("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}}); +ka("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}}); +ka("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); +ka("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.w(c);for(var d;!(d=c.next()).done;)this.add(d.value)}} +if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a; +b.prototype.add=function(c){this.j.set(c,!0);return this}; +b.prototype.has=function(c){return this.j.has(c)}; +b.prototype.delete=function(c){return this.j.delete(c)}; +return b}); +ka("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#d;)--e in this?this[--c]=this[e]:delete this[--c];return this}}); +ka("Int8Array.prototype.copyWithin",Ha);ka("Uint8Array.prototype.copyWithin",Ha);ka("Uint8ClampedArray.prototype.copyWithin",Ha);ka("Int16Array.prototype.copyWithin",Ha);ka("Uint16Array.prototype.copyWithin",Ha);ka("Int32Array.prototype.copyWithin",Ha);ka("Uint32Array.prototype.copyWithin",Ha);ka("Float32Array.prototype.copyWithin",Ha);ka("Float64Array.prototype.copyWithin",Ha);ka("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}}); +ka("Int8Array.prototype.findLastIndex",Ia);ka("Uint8Array.prototype.findLastIndex",Ia);ka("Uint8ClampedArray.prototype.findLastIndex",Ia);ka("Int16Array.prototype.findLastIndex",Ia);ka("Uint16Array.prototype.findLastIndex",Ia);ka("Int32Array.prototype.findLastIndex",Ia);ka("Uint32Array.prototype.findLastIndex",Ia);ka("Float32Array.prototype.findLastIndex",Ia);ka("Float64Array.prototype.findLastIndex",Ia);ka("Number.parseInt",function(a){return a||parseInt}); +ka("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h>>0);maa=0;g.k=$a.prototype;g.k.i7=function(a){var b=g.Ca.apply(1,arguments),c=this.KP(b);c?c.push(new paa(a)):this.b2(a,b)}; +g.k.b2=function(a){this.j.set(this.zV(g.Ca.apply(1,arguments)),[new paa(a)])}; +g.k.KP=function(){var a=this.zV(g.Ca.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0}; +g.k.M8=function(){var a=this.KP(g.Ca.apply(0,arguments));return a&&a.length?a[0]:void 0}; +g.k.clear=function(){this.j.clear()}; +g.k.zV=function(){var a=g.Ca.apply(0,arguments);return a?a.join(","):"key"};g.z(bb,$a);bb.prototype.B=function(a){var b=g.Ca.apply(1,arguments),c=0,d=this.M8(b);d&&(c=d.j);this.b2(c+a,b)};g.z(eb,$a);eb.prototype.Ph=function(a){this.i7(a,g.Ca.apply(1,arguments))};g.O.prototype.Jq=!1;g.O.prototype.La=function(){return this.Jq}; +g.O.prototype.dispose=function(){this.Jq||(this.Jq=!0,this.xa())}; +g.O.prototype[Symbol.dispose]=function(){this.dispose()}; +g.O.prototype.addOnDisposeCallback=function(a,b){this.Jq?b!==void 0?a.call(b):a():(this.qo||(this.qo=[]),this.qo.push(b!==void 0?(0,g.Ua)(a,b):a))}; +g.O.prototype.xa=function(){if(this.qo)for(;this.qo.length;)this.qo.shift()()};g.Ya(ib,Error);ib.prototype.name="CustomError";var Uba;g.Ya(jb,ib);jb.prototype.name="AssertionError";g.lb.prototype.stopPropagation=function(){this.B=!0}; +g.lb.prototype.preventDefault=function(){this.defaultPrevented=!0};var fba=function(){if(!g.Ja.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +try{var c=function(){}; +g.Ja.addEventListener("test",c,b);g.Ja.removeEventListener("test",c,b)}catch(d){}return a}();var c1=Ma(1,!0),xb=Ma(610401301,!1),Bea,Vda;Ma(899588437,!1);Bea=Ma(188588736,!0);g.V8a=Ma(641353869,c1);g.W8a=Ma(644029907,c1);g.X8a=Ma(1822726157,c1);Vda=Ma(645172343,c1);Ma(651175828,!1);Ma(653718497,c1);Ma(2147483644,!1);Ma(2147483645,!1);Ma(2147483646,c1);Ma(2147483647,!0);var yb=!!g.La("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var tb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},taa=/&/g,uaa=//g,waa=/"/g,xaa=/'/g,yaa=/\x00/g,saa=/[\x00&<>"']/;var Ab,Y8a=g.Ja.navigator;Ab=Y8a?Y8a.userAgentData||null:null;var Gaa,Cl,Em;Gaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0); +for(var c=0;c=0;c--)if(c in a&&a[c]===b)return c;return-1}; +g.cc=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;fparseFloat(d9a)){c9a=String(d1);break a}}c9a=d9a}var Uaa=c9a,Saa={};var JPa=Vaa("AnimationEnd"),CS=Vaa("TransitionEnd");g.Ya(mc,g.lb); +mc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY= +a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&mc.Of.preventDefault.call(this)}; +mc.prototype.stopPropagation=function(){mc.Of.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0}; +mc.prototype.preventDefault=function(){mc.Of.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Waa="closure_listenable_"+(Math.random()*1E6|0);var Xaa=0;var cba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=Ic.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=Kc(a,b,d,e);h>-1?(b=a[h],c||(b.eJ=!1)):(b=new Yaa(b,this.src,f,!!d,e),b.eJ=c,a.push(b));return b}; +g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Kc(e,b,c,d);return b>-1?(pc(e[b]),g.Nb(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1}; +g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e-1?a[e]:null}; +g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.tc(this.listeners,function(f){for(var h=0;h>>0);g.Ya(g.Vc,g.O);g.Vc.prototype[Waa]=!0;g.k=g.Vc.prototype;g.k.addEventListener=function(a,b,c,d){g.Nc(this,a,b,c,d)}; +g.k.removeEventListener=function(a,b,c,d){jba(this,a,b,c,d)}; +g.k.dispatchEvent=function(a){var b=this.CS;if(b){var c=[];for(var d=1;b;b=b.CS)c.push(b),++d}b=this.c7;d=a.type||a;if(typeof a==="string")a=new g.lb(a,b);else if(a instanceof g.lb)a.target=a.target||b;else{var e=a;a=new g.lb(d,b);g.Hc(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=Wc(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Wc(h,d,!0,a)&&e,a.B||(e=Wc(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var g9a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};bd.prototype.toString=function(){return this.j}; +var oba={},nba={};ed("");var fd;g.hd.prototype.toString=function(){return this.o1+""}; +var pba={};g.kd.prototype.toString=function(){return this.s1}; +g.qd=new g.kd("about:invalid#zClosurez");var nQa=pd("tel"),lQa=pd("sms"),qba=[pd("data"),pd("http"),pd("https"),pd("mailto"),pd("ftp"),new od(function(a){return/^[^:]*([/?#]|$)/.test(a)})],rba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Cd={};g.td.prototype.toString=function(){return this.n1.toString()}; +var Ela=new g.td("",Cd),uba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),tba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),sba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),vba=/\/\*/;var Cba={};g.vd.prototype.toString=function(){return this.m1.toString()}; +var h9a=/^[a-zA-Z0-9-]+$/,i9a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},j9a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},zba=new g.vd(g.Ja.trustedTypes&&g.Ja.trustedTypes.emptyHTML||"",Cba);yd.prototype.toString=function(){return this.j};zd.prototype.toString=function(){return this.q1.toString()};var k9a=$c(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.wd(zba);return!b.parentElement});g.k=g.Gd.prototype;g.k.clone=function(){return new g.Gd(this.x,this.y)}; +g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; +g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; +g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; +g.k.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};g.k=g.Id.prototype;g.k.clone=function(){return new g.Id(this.width,this.height)}; +g.k.area=function(){return this.width*this.height}; +g.k.aspectRatio=function(){return this.width/this.height}; +g.k.isEmpty=function(){return!this.area()}; +g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.k.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var Qd={};g.l9a=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Vba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Xd.prototype;g.k.Ib=function(a){return $d(this.j,a)}; +g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))}; +g.k.Ea=function(a){return g.de(a,this.j)}; +g.k.setProperties=ee;g.k.createElement=function(a){return ge(this.j,a)}; +g.k.appendChild=g.le;g.k.append=function(a,b){Zba(Yd(a),a,arguments,1)}; +g.k.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; +g.k.removeNode=g.pe;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})}; +g.k.contains=g.qe;var ue;xe.prototype.add=function(a,b){var c=fca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c}; +xe.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a}; +var fca=new Xc(function(){return new Ae},function(a){return a.reset()}); +Ae.prototype.set=function(a,b){this.Gm=a;this.scope=b;this.next=null}; +Ae.prototype.reset=function(){this.next=this.scope=this.Gm=null};var Be,Ce=!1,dca=new xe;gca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1}; +var hca=new Xc(function(){return new gca},function(a){a.reset()}); +g.Fe.prototype.then=function(a,b,c){return rca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)}; +g.Fe.prototype.$goog_Thenable=!0;g.k=g.Fe.prototype;g.k.Wk=function(a,b){return rca(this,null,a,b)}; +g.k.catch=g.Fe.prototype.Wk;g.k.cancel=function(a){if(this.j==0){var b=new Le(a);g.De(function(){nca(this,b)},this)}}; +g.k.Yea=function(a){this.j=0;Ee(this,2,a)}; +g.k.Zea=function(a){this.j=0;Ee(this,3,a)}; +g.k.v8=function(){for(var a;a=oca(this);)pca(this,a,this.j,this.N);this.K=!1}; +var vca=we;g.Ya(Le,ib);Le.prototype.name="cancel";g.Ya(g.Me,g.Vc);g.k=g.Me.prototype;g.k.enabled=!1;g.k.ud=null;g.k.setInterval=function(a){this.cj=a;this.ud&&this.enabled?(this.stop(),this.start()):this.ud&&this.stop()}; +g.k.Kea=function(){if(this.enabled){var a=g.Xa()-this.a_;a>0&&a=o9a&&a<=p9a:a[0]==="-"?pda(a,q9a):pda(a,r9a)}),q9a=Number.MIN_SAFE_INTEGER.toString(),o9a=Bf?BigInt(Number.MIN_SAFE_INTEGER):void 0,r9a=Number.MAX_SAFE_INTEGER.toString(),p9a=Bf?BigInt(Number.MAX_SAFE_INTEGER):void 0;var rda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Tf=void 0,Uf=void 0;var Vf,Xf,Kda;Xg.prototype.init=function(a,b,c,d){d=d===void 0?{}:d;this.QI=d.QI===void 0?!1:d.QI;a&&(a=Wg(a),this.B=a.buffer,this.G=a.Cx,this.D=b||0,this.C=c!==void 0?this.D+c:this.B.length,this.j=this.D)}; +Xg.prototype.free=function(){this.clear();eh.length<100&&eh.push(this)}; +Xg.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.QI=!1}; +Xg.prototype.reset=function(){this.j=this.D}; +var eh=[];fh.prototype.free=function(){this.j.clear();this.B=this.D=-1;f1.length<100&&f1.push(this)}; +fh.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1}; +var f1=[];var oh,nh;g.k=mh.prototype;g.k.toJSON=function(){return ph(this)}; +g.k.cn=function(a){try{return nh=!0,a&&(oh=a===lh||a!==rea&&a!==vea&&a!==yea?lh:a),JSON.stringify(ph(this),Mda)}finally{a&&(oh=void 0),nh=!1}}; +g.k.clone=function(){var a=this.sb;return Wf(this.constructor,bg(a,ag(a),!1))}; +g.k.Cx=function(){return!!(nf(this.sb)&2)}; +g.k.eL=Pf;g.k.toString=function(){try{return nh=!0,ph(this).toString()}finally{nh=!1}};var Dea,Gea;qh.prototype.length=function(){return this.j.length}; +qh.prototype.end=function(){var a=this.j;this.j=[];return a};var Oea=Symbol(),Bh,Ch,Fh=Symbol(),Wea=Symbol(),Ih=Symbol(),Jh=Symbol(),s9a=Kh(function(a,b,c){if(a.B!==1)return!1;Mh(b,c,ch(a.j));return!0},Nh),t9a=Kh(function(a,b,c){if(a.B!==1)return!1; +a=ch(a.j);Mh(b,c,a===0?void 0:a);return!0},Nh),u9a=Kh(function(a,b,c,d){if(a.B!==1)return!1; +yg(b,c,d,ch(a.j));return!0},Nh),v9a=Kh(function(a,b,c){if(a.B!==0)return!1; +Mh(b,c,Zg(a.j));return!0},Oh),w9a=Kh(function(a,b,c){if(a.B!==0)return!1; +a=Zg(a.j);Mh(b,c,a===0?void 0:a);return!0},Oh),x9a=Kh(function(a,b,c,d){if(a.B!==0)return!1; +yg(b,c,d,Zg(a.j));return!0},Oh),y9a=Kh(function(a,b,c){if(a.B!==0)return!1; +Mh(b,c,$g(a.j));return!0},Ph),z9a=Kh(function(a,b,c){if(a.B!==0)return!1; +a=$g(a.j);Mh(b,c,a===0?void 0:a);return!0},Ph),A9a=Kh(function(a,b,c,d){if(a.B!==0)return!1; +yg(b,c,d,$g(a.j));return!0},Ph),B9a=Kh(function(a,b,c){if(a.B!==1)return!1; +Mh(b,c,bh(a.j));return!0},function(a,b,c){Lea(a,c,Cda(b))}),C9a=Lh(function(a,b,c){if(a.B!==1&&a.B!==2)return!1; +b=ng(b,ag(b),c,2,!1);if(a.B==2)for(c=$g(a.j)>>>0,c=a.j.j+c;a.j.j>>0);return!0},function(a,b,c){b=If(b); +b!=null&&b!=null&&(wh(a,c,0),rh(a.j,b))}),J9a=Kh(function(a,b,c){if(a.B!==0)return!1; +Mh(b,c,$g(a.j));return!0},function(a,b,c){b=Hf(b); +b!=null&&(b=parseInt(b,10),wh(a,c,0),Jea(a.j,b))});g.z(ifa,mh);g.z(Sh,mh);var Yh=[1,2,3];var K9a=[0,Yh,G9a,A9a,E9a];var L9a=[0,h1,[0,s9a,v9a]];g.z(Th,mh);var Xh=[1,2,3];var M9a=[0,Xh,x9a,u9a,i1,L9a];g.z(Uh,mh);var N9a=[0,h1,K9a,M9a];var O9a=[0,[1,2,3],i1,[0,g1,-1,D9a],i1,[0,g1,-1,y9a,D9a],i1,[0,g1]];g.z(Wh,mh);Wh.prototype.Ir=function(){Zda(this,3,Nf,3,void 0,!0);throw Error();};Wh.prototype.j=hfa([0,g1,O9a,F9a,h1,N9a,B9a,C9a]);g.z(jfa,mh);var qfa={};g.k=Zh.prototype;g.k.isEnabled=function(){if(!g.Ja.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{iG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.Oda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.iG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+ +e:"")}; +g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e=0;b--)this.remove(a[b])}; +var cs=new Zh(typeof document=="undefined"?null:document);g.z(ci,mh);di.prototype.setInterval=function(a){this.intervalMs=a;this.Xe&&this.enabled?(this.stop(),this.start()):this.Xe&&this.stop()}; +di.prototype.start=function(){var a=this;this.enabled=!0;this.Xe||(this.Xe=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())}; +di.prototype.stop=function(){this.enabled=!1;this.Xe&&(clearTimeout(this.Xe),this.Xe=void 0)}; +di.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.EE||this.j.enabled||this.j.start()}}; +g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Ba>d&&this.Y0&&(c.Y=Date.now(),c.Ba=c.Y+m),n=k1.j?k1.B(n,k1.j,175237375,!0):k1.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=Kg(n,1,-1),n!==-1&&(c.D=new g.gi(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0}; +l=function(m,n){var p=gea(e,qi);var q=Ada(fg(e,14));g.hi(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.ra=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.EE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z}; +c.network&&c.network.send(d,h,l)}}}}; +g.k.AP=function(){Dfa(this.B,!0);this.flush();Dfa(this.B,!1)}; +g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0}; +si.prototype.DH=function(a){this.j.DH(a);return this}; +si.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(jg(wi(this),li,11)){var h=xi(this);ig(h,3,Gf(c))}jg(wi(this),li,11)&&(c=xi(this),ig(c,4,Gf(e)));jg(wi(this),li,11)&&(e=xi(this),ig(e,5,Gf(f)));f=this.j.clone();e=Date.now().toString();f=ig(f,4,Lf(e));a=Gg(f,qi,3,a.slice());d&&(f=new ei,d=ig(f,13,Gf(d)),f=new fi,d=Eg(f,ei,2,d),f=new pi,d=Eg(f,fi,1,d),d=Ug(d,2,9),Eg(a,pi,18,d));b&&Rg(a,14,b);return a};yi.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return f=(e=d.Z6?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.va(u,2,3),h=Object.assign({},{method:a.requestType, +headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.G(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ha(3);break}if((n=b)==null){u.Ha(7);break}return g.G(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.ya(u);clearTimeout(f);g.za(u,0);break;case 2:p=g.xa(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ha(3)}})}; +yi.prototype.lK=function(){return 4};g.z(zi,g.O);zi.prototype.OX=function(){this.D=!0;return this}; +zi.prototype.build=function(){this.network||(this.network=new yi);var a=new ui({logSource:this.logSource,ZE:this.ZE?this.ZE:tfa,sessionIndex:this.sessionIndex,kfa:this.B,Ix:this.C,EE:!1,OX:this.D,dX:this.dX,network:this.network});g.P(this,a);if(this.j){var b=this.j,c=vi(a.B);Sg(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.VB&&(a.VB=this.VB);this.pageId&&(a.pageId=this.pageId);this.Lz&&((c=this.Lz)?(a.experimentIds||(a.experimentIds=new ci),b=a.experimentIds,c=c.cn(),Sg(b,4,c)):a.experimentIds&& +ig(a.experimentIds,4));Efa(a.B);this.network.DH&&this.network.DH(this.logSource);this.network.hea&&this.network.hea(a);return a};g.z(Ai,g.O);Ai.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new jfa,c=[],d=0;d0&&(this.getStatus(),this.qa=g.Ne(this.z5,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a), +this.Z=!1}catch(h){this.getStatus(),Xfa(this,h)}}; +g.k.z5=function(){typeof Zi!="undefined"&&this.j&&(this.D="Timed out after "+this.ra+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Yi(this))}; +g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Yi(this,!0));g.Xi.Of.xa.call(this)}; +g.k.x0=function(){this.La()||(this.Ga||this.Z||this.G?Yfa(this):this.Jba())}; +g.k.Jba=function(){Yfa(this)}; +g.k.isActive=function(){return!!this.j}; +g.k.isComplete=function(){return g.$i(this)==4}; +g.k.getStatus=function(){try{return g.$i(this)>2?this.j.status:-1}catch(a){return-1}}; +g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a}; +g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};ej.prototype.send=function(a,b,c){b=b===void 0?function(){}:b; +c=c===void 0?function(){}:c; +Vfa(a.url,function(d){d=d.target;aj(d)?b(g.bj(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)}; +ej.prototype.lK=function(){return 1};gj.prototype.start=function(){this.startMillis=fj()}; +gj.prototype.done=function(){this.startMillis!=null&&this.logger.eG(this.event,fj()-this.startMillis)}; +g.z(hj,g.O);g.z(jj,hj);g.k=jj.prototype;g.k.o_=function(){}; +g.k.mR=function(){}; +g.k.eG=function(){}; +g.k.Kl=function(){}; +g.k.qt=function(){}; +g.k.nR=function(a,b,c){return c}; +g.k.q_=function(){}; +g.k.n_=function(){}; +g.k.p_=function(){}; +g.z(kj,hj);g.k=kj.prototype;g.k.o_=function(){this.qa.j.lm("/client_streamz/bg/fic",this.kh)}; +g.k.mR=function(){this.Fa.j.lm("/client_streamz/bg/fsc","",this.kh)}; +g.k.eG=function(a,b){if(a==="t")this.Ba.Ph(b,"",this.kh);else if(a==="n")this.Ga.Ph(b,"",this.kh);else if(a==="h"||a==="u"||a==="k"){if(a=this.D.get(a))this.N.j.lm("/client_streamz/bg/fcc",a,this.kh),this.Z.Ph(b,a,this.kh)}else this.Y.Ph(b,a,"",this.B,this.kh)}; +g.k.Kl=function(a){var b=this.C.get(a);b?this.ra.j.lm("/client_streamz/bg/fiec","",this.kh,b):this.errorCount.j.lm("/client_streamz/bg/cec",a,"",this.B,this.kh)}; +g.k.nR=function(a,b,c){function d(h){var l=fj()-f;e.Ma.Ph(l,a,b,h,e.B,e.kh)} +var e=this,f=fj();c.then(function(){d(0)},function(h){h instanceof Bi?d(h.code):d(-1)}); +return c}; +g.k.q_=function(a){this.Ra.j.lm("/client_streamz/bg/po/csc",a,this.B,this.kh)}; +g.k.n_=function(a){this.K.j.lm("/client_streamz/bg/po/ctav",a,this.B,this.kh)}; +g.k.p_=function(a){this.Ka.j.lm("/client_streamz/bg/po/cwsc",a,this.B,this.kh)}; +g.k.qt=function(){this.j.BN()};g.z(lj,mh);g.z(mj,mh);g.z(nj,mh);var S9a=Rh(nj),cga=function(a){return Af(function(b){return b instanceof a&&!(nf(b.sb)&2)})}(nj); +nj.messageId="bfkj";g.z(pj,g.O);pj.prototype.snapshot=function(a){var b=this;if(this.La())throw Error("Already disposed");this.Vf.mR();return this.B.then(function(c){var d=c.o7;return new Promise(function(e){var f=new gj(b.Vf,"n");d(function(h){f.done();b.Vf.qt();e(h)},[a.Ar, +a.oea,a.O3,a.sea])})})}; +pj.prototype.A2=function(a){var b=this;if(this.La())throw Error("Already disposed");this.Vf.mR();var c=ij(this.Vf,function(){return b.C([a.Ar,a.oea,a.O3,a.sea])},"n"); +this.Vf.qt();return c}; +g.z(qj,Error);g.z(uj,mh);g.z(vj,mh);g.z(wj,mh);xj.prototype.SE=function(a,b){var c=this,d,e,f,h,l;return g.J(function(m){if(m.j==1){var n=new uj;d=Tg(n,1,c.cC);a&&Tg(d,2,a);b&&Tg(d,3,b);e=c.j();return g.G(m,c.client.create(d,e),2)}f=m.B;h=bf(rg(f,2));if(h.length){n=m.return;var p=new Uint8Array(h.length);for(var q=0;q0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.z(Gj,g.O);Gj.prototype.lG=function(a,b){var c=this.j(a);b==null||b(c);return ij(this.logger,function(){return g.Te(c,2)},this.B)}; +g.z(Jj,Gj);Jj.prototype.j=function(a){var b=this;++this.K>=this.N&&this.D.resolve();var c=a();a=ij(this.logger,function(){return b.G(c)},"C"); +if(a===void 0)throw new qj(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new qj(18,"ODM:Invalid");return a}; +g.z(Kj,Gj);Kj.prototype.j=function(){return this.G}; +g.z(Lj,Gj);Lj.prototype.j=function(){var a=this;return ij(this.logger,function(){return Ve(a.G)},"d")}; +Lj.prototype.lG=function(){return this.G}; +g.z(Mj,Gj);Mj.prototype.j=function(){if(this.G)return this.G;this.G=Iga(this,function(a){return"_"+Gga(a)}); +return Iga(this,function(a){return a})}; +g.z(Oj,Gj);Oj.prototype.j=function(a){var b=a();if(b.length>118)throw new qj(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.G&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d=1&&this.j&&this.readyState!=4&&(this.j=!1,gk(this));this.readyState=0}; +g.k.H9=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,fk(this)),this.j&&(this.readyState=3,fk(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.F9.bind(this),this.uK.bind(this));else if(typeof g.Ja.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= +[]}else this.response=this.responseText="",this.N=new TextDecoder;Uga(this)}else a.text().then(this.G9.bind(this),this.uK.bind(this))}; +g.k.w9=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?gk(this):fk(this);this.readyState==3&&Uga(this)}}; +g.k.G9=function(a){this.j&&(this.response=this.responseText=a,gk(this))}; +g.k.F9=function(a){this.j&&(this.response=a,gk(this))}; +g.k.uK=function(){this.j&&gk(this)}; +g.k.setRequestHeader=function(a,b){this.Z.append(a,b)}; +g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""}; +g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")}; +g.k.setCredentialsMode=function(a){this.G=a}; +Object.defineProperty(ek.prototype,"withCredentials",{get:function(){return this.G==="include"}, +set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.hk.prototype.toString=function(){var a=[],b=this.G;b&&a.push(ok(b,X9a,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(ok(b,X9a,!0),"@"),a.push(g.Rd(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(ok(c,c.charAt(0)=="/"?Y9a:Z9a,!0));(c=this.D.toString())&&a.push("?",c);(c=this.K)&&a.push("#",ok(c,$9a));return a.join("")}; +g.hk.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.ik(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.jk(b,a.j):c=a.C!=null;var d=a.B;if(c)g.kk(b,a.C);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.rb(e,"./")||g.rb(e,"/.")){d=nb(e,"/");e=e.split("/");for(var f=[],h=0;h1||f.length==1&&f[0]!="")&&f.pop(), +d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.D.toString()!=="";c?lk(b,a.D.clone()):c=!!a.K;c&&(b.K=a.K);return b}; +g.hk.prototype.clone=function(){return new g.hk(this)}; +var X9a=/[#\/\?@]/g,Z9a=/[#\?:]/g,Y9a=/[#\?]/g,Wga=/[#\?@]/g,$9a=/#/g;g.k=nk.prototype;g.k.add=function(a,b){rk(this);this.C=null;a=sk(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this}; +g.k.remove=function(a){rk(this);a=sk(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1}; +g.k.clear=function(){this.j=this.C=null;this.B=0}; +g.k.isEmpty=function(){rk(this);return this.B==0}; +g.k.forEach=function(a,b){rk(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; +g.k.Xn=function(){rk(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d0?String(a[0]):b}; +g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c>>3;f.C!=1&&f.C!=2&&f.C!=15&&wk(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0} +function c(m){f.D++;f.D==5&&m&240&&wk(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())} +function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()} +function e(){if(f.C<15){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0} +for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l0?a:null};xk.prototype.isInputValid=function(){return this.j===null}; +xk.prototype.Xf=function(){return this.j}; +xk.prototype.LI=function(){return!1}; +xk.prototype.parse=function(a){this.j!==null&&dha(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||cha(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Xca(c.j.slice(0,d*4))}catch(h){cha(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){dha(this,a,h.message)}this.B+=a.length;return b};var b$a={INIT:0,WD:1,YN:2,xz:3,SC:4,RC:5,STRING:6,WN:7,gW:8,tW:9,uW:10,vW:11,JU:12,KU:13,LU:14,MU:15,kW:16,lW:17,mW:18,M6:19,XN:20};g.k=Ek.prototype;g.k.isInputValid=function(){return this.G!=3}; +g.k.Xf=function(){return this.Y}; +g.k.done=function(){return this.G===2}; +g.k.LI=function(){return!1}; +g.k.parse=function(a){function b(){for(;r0;)if(u=a[r++], +f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-y;continue;case m.tW:if(!u)continue;u==="r"?f.j=m.uW:Fk(f,a,r);continue;case m.uW:if(!u)continue;u==="u"?f.j=m.vW:Fk(f,a,r);continue;case m.vW:if(!u)continue;u==="e"?f.j=d():Fk(f,a,r);continue;case m.JU:if(!u)continue;u==="a"?f.j=m.KU: +Fk(f,a,r);continue;case m.KU:if(!u)continue;u==="l"?f.j=m.LU:Fk(f,a,r);continue;case m.LU:if(!u)continue;u==="s"?f.j=m.MU:Fk(f,a,r);continue;case m.MU:if(!u)continue;u==="e"?f.j=d():Fk(f,a,r);continue;case m.kW:if(!u)continue;u==="u"?f.j=m.lW:Fk(f,a,r);continue;case m.lW:if(!u)continue;u==="l"?f.j=m.mW:Fk(f,a,r);continue;case m.mW:if(!u)continue;u==="l"?f.j=d():Fk(f,a,r);continue;case m.M6:u==="."?f.j=m.XN:Fk(f,a,r);continue;case m.XN:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j= +d();continue;default:Fk(f,a,r)}}} +function d(){var u=h.pop();return u!=null?u:m.WD} +function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)} +for(var f=this,h=f.ra,l=f.Ba,m=b$a,n=a.length,p=0,q=-1,r=0;r0?(t=f.K,f.K=[],t):null}return null};Gk.prototype.isInputValid=function(){return this.G===null}; +Gk.prototype.Xf=function(){return this.G}; +Gk.prototype.LI=function(){return!1}; +Gk.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);} +function c(){f.C=new Ek({Fma:!0,U7:!0})} +function d(m){if(m)for(var n=0;n1)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}} +for(var f=this,h=0;h0?(a=f.D,f.D=[],a):null};Hk.prototype.mQ=function(){return this.j}; +Hk.prototype.getStatus=function(){return this.D}; +Hk.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.$i(this.j),c=this.j.B,d=this.j.getStatus(),e=g.bj(this.j);a=[];if(g.cj(this.j)instanceof Array){var f=g.cj(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?Ik(this,7):c==7?Ik(this,8):d||Ik(this,3)),this.B||(this.B=eha(this.j),this.B==null&&Ik(this,5)),this.D>2)Jk(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.LI())for(var l=0;lthis.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);n!=null&&this.G&&this.G(n)}catch(p){Ik(this,5);Jk(this);break a}}b==4?(e.length!= +0||this.Y?Ik(this,2):Ik(this,4),Jk(this)):Ik(this,1)}}}catch(p){Ik(this,6),Jk(this)}};g.k=fha.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this}; +g.k.addListener=function(a,b){this.on(a,b);return this}; +g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Pb(c,b);(a=this.j[a])&&g.Pb(a,b);return this}; +g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this}; +g.k.Eaa=function(a){var b=this.B.data;b&&gha(a,b);(b=this.j.data)&&gha(a,b);this.j.data=[]}; +g.k.tca=function(){switch(this.C.getStatus()){case 1:Kk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Kk(this,"error");break;case 8:Kk(this,"close");break;case 2:Kk(this,"end")}};hha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return iha(function(h){var l=h.j,m=h.getMetadata(),n=lha(e,!1);m=mha(e,m,n,f+l.getName());var p=nha(n,l.B,!0);h=l.j(h.B);n.send(m,"POST",h);return p},this.D).call(this,Oga(d,b,c))};Lk.prototype.create=function(a,b){return yj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},V9a)}; +Lk.prototype.ping=function(a,b){return yj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},W9a)};var c$a=1,Tk=new WeakMap;g.z(Mk,g.O);Mk.prototype.signal=function(){var a=new Ok(!1);this.signals.add(a);g.P(this,a);return a}; +Mk.prototype.YA=function(a){return Nk(this,a).YA()}; +g.z(Ok,g.O);g.k=Ok.prototype;g.k.tO=function(){var a=this,b=c$a++;Pk(function(){pha(a,b)}); +return b}; +g.k.detach=function(a){var b=this;Pk(function(){var c=b.slots.get(a);c&&c.KX()})}; +g.k.value=function(a){return this.promise(!0,a)}; +g.k.YA=function(){return this.YZ}; +g.k.next=function(a){return this.promise(!1,a)}; +g.k.promise=function(a,b){var c=this,d=mca();Pk(function(){if(c.La())d.reject(new Le("Signal initially disposed"));else if(b&&b.La())d.reject(new Le("Owner initially disposed"));else if(a&&c.iX&&c.dZ)d.resolve(c.YZ);else if(c.hC.add(d),Ke(d.promise,function(){c.hC.delete(d)}),b){var e=function(){d.reject(new Le("Owner asynchronously disposed"))}; +Ke(d.promise,function(){var f=Tk.get(b);f&&g.Pb(f,e)}); +sha(b,e)}}); +return d.promise}; +g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);Pk(function(){for(var b=g.w(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.KX,c();a.slots.clear();b=g.w(a.hC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Le("Signal asynchronously disposed"));a.hC.clear()})}; +var Rk=[],Sk=!1;g.z(Uk,g.O);Uk.prototype.start=function(){var a=this;if(this.La())throw new Yk("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Qk(Nk(d,a.C),a)}a.Cb.rS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3; +a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Qk(Nk(d,a.C),a)}a.Cb.rS(a)},this.milliseconds); +this.state=1}}; +Uk.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Xk);var b;(b=this.Cb.Z_)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&Qk(Nk(c,this.G))}}}; +Uk.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new Yk);this.state=4;g.O.prototype.xa.call(this)}; +Uk.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.da.Object.defineProperties(Uk.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, +isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, +isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, +tick:{configurable:!0,enumerable:!0,get:function(){return this.D}}, +Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.oj),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Xk("Timer has been cancelled."));case 4:return Promise.reject(new Yk("Timer has been disposed."));default:Ld(this.state)}}}, +rS:{configurable:!0,enumerable:!0,get:function(){if(this.La())throw new Yk("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new Mk(this)),this.C=this.j.signal());return this.C}}, +Z_:{configurable:!0,enumerable:!0,get:function(){if(this.La())throw new Yk("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new Mk(this)),this.G=this.j.signal());return this.G}}}); +g.z(Xk,ib);g.z(Yk,ib);g.z(Zk,Pj);g.k=Zk.prototype;g.k.isReady=function(){return!!this.j}; +g.k.ready=function(){var a=this;return g.J(function(b){return g.G(b,a.C.promise,0)})}; +g.k.SE=function(a){return vha(this,this.logger.nR("c",a===void 0?1:a,this.Yw.SE(sj().j,null)),new qj(10,"JVZ:Timeout"))}; +g.k.prefetch=function(){this.state===1&&(this.DF=this.SE())}; +g.k.start=function(){if(this.state===1){this.state=2;var a=new gj(this.logger,"r");this.ready().finally(function(){return void a.done()}); +xha(this)}}; +g.k.lG=function(a){if(a.hk&&!this.cache){var b=Math.min(a.hk.v_,150);if(!(b>150))try{this.cache=new Bga(b,this.logger)}catch(f){this.reportError(new qj(22,"GBJ:init",f))}}b={Ar:a.Ar,EJ:a.EJ,P$:!0,Q$:!0};a.hk&&(a=a.hk,b.hk={pE:a.pE,UI:a.UI,JM:a.JM});a:{try{if(this.La())throw new qj(21,"BNT:disposed");var c,d;var e=(d=(c=Jga(this,b))!=null?c:Kga(this,b))!=null?d:Lga(this,b);break a}catch(f){if(!b.Q$)throw f;e=Mga(this,f);break a}e=void 0}return e};var Bha={NONE:0,sha:1},hia={s4:0,vka:1,uka:2,wka:3},Jl={a4:"a",nha:"d",VIDEO:"v"};al.prototype.isVisible=function(){return this.Dx?this.Be>=.3:this.Be>=.5};var kl={Xga:0,Iha:1},fia={NONE:0,xia:1,Pha:2};bl.prototype.getValue=function(){return this.B}; +g.z(cl,bl);cl.prototype.C=function(a){this.B===null&&g.zc(this.D,a)&&(this.B=a)}; +g.z(dl,bl);dl.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)}; +g.z(el,bl);el.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};fl.prototype.disable=function(){this.B=!1}; +fl.prototype.enable=function(){this.B=!0}; +fl.prototype.isEnabled=function(){return this.B}; +fl.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Gm=document,ol=window;var jja=!g.lm&&!Hb();ll.prototype.now=function(){return 0}; +ll.prototype.B=function(){return 0}; +ll.prototype.C=function(){return 0}; +ll.prototype.j=function(){return 0};g.z(nl,ll);nl.prototype.now=function(){return ml()&&ol.performance.now?ol.performance.now():ll.prototype.now.call(this)}; +nl.prototype.B=function(){return ml()&&ol.performance.memory?ol.performance.memory.totalJSHeapSize||0:ll.prototype.B.call(this)}; +nl.prototype.C=function(){return ml()&&ol.performance.memory?ol.performance.memory.usedJSHeapSize||0:ll.prototype.C.call(this)}; +nl.prototype.j=function(){return ml()&&ol.performance.memory?ol.performance.memory.jsHeapSizeLimit||0:ll.prototype.j.call(this)};var Eha=$c(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +g.Ja.addEventListener("test",null,b)}catch(c){}return a});Fha.prototype.isVisible=function(){return rl(Gm)===1};ed("csi.gstatic.com");ed("googleads.g.doubleclick.net");ed("partner.googleadservices.com");ed("pubads.g.doubleclick.net");ed("securepubads.g.doubleclick.net");ed("tpc.googlesyndication.com");var Hha={Ifa:"allow-forms",Jfa:"allow-modals",Kfa:"allow-orientation-lock",Lfa:"allow-pointer-lock",Mfa:"allow-popups",Nfa:"allow-popups-to-escape-sandbox",Ofa:"allow-presentation",Pfa:"allow-same-origin",Qfa:"allow-scripts",Rfa:"allow-top-navigation",Sfa:"allow-top-navigation-by-user-activation"},Lha=$c(function(){return Iha()});var Pha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");wl.prototype.Ce=function(a,b,c){a=a+"//"+b+c;var d=Tha(this)-c.length;if(d<0)return"";this.j.sort(function(n,p){return n-p}); +c=null;b="";for(var e=0;e=m.length){d-=m.length;a+=m;b=this.C;break}c=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};El.prototype.setInterval=function(a,b){return ol.setInterval(a,b)}; +El.prototype.clearInterval=function(a){ol.clearInterval(a)}; +El.prototype.setTimeout=function(a,b){return ol.setTimeout(a,b)}; +El.prototype.clearTimeout=function(a){ol.clearTimeout(a)};g.z(Gl,mh);Gl.prototype.j=hfa([0,t9a,w9a,-2,z9a]);var gia={cka:1,Y6:2,vja:3};iia.prototype.PS=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Lc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var l1=null;var Ml=g.Ja.performance,d$a=!!(Ml&&Ml.mark&&Ml.measure&&Ml.clearMarks),Kl=$c(function(){var a;if(a=d$a){var b;if(l1===null){l1="";try{a="";try{a=g.Ja.top.location.hash}catch(c){a=g.Ja.location.hash}a&&(l1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=l1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a}); +Ll.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(Kl()&&g.cc(this.events,oia),this.events.length=0)}; +Ll.prototype.start=function(a,b){if(!this.j)return null;var c=mia()||lia();a=new nia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Ml&&Kl()&&Ml.mark(b);return a}; +Ll.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=mia()||lia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Ml&&Kl()&&Ml.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};pia.prototype.qR=function(a,b,c,d,e){e=e||this.XX;try{var f=new wl;f.j.push(1);f.B[1]=xl("context",a);b.error&&b.meta&&b.id||(b=new Ql(Rl(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=xl("msg",h)}var l=b.meta||{};if(this.oO)try{this.oO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Rha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=xl("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(Li);var r=Ji(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5); +f.B[5]=n;jia(this.j,e,f,c)}catch(t){try{jia(this.j,e,{context:"ecmserr",rctx:a,msg:Rl(t),url:m&&m.j.url},c)}catch(u){}}return this.QT}; +g.z(Ql,kia);var Ol,Pl,Nl=new Ll;Ol=new function(){var a="https:";ol&&ol.location&&ol.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01}; +Pl=new pia;ol&&ol.document&&(ol.document.readyState=="complete"?ria():Nl.j&&ql(ol,"load",function(){ria()}));var uia=Date.now(),Yl=-1,Wl=-1,Lja,Zl=-1,Xl=!1;g.k=$l.prototype;g.k.getHeight=function(){return this.bottom-this.top}; +g.k.clone=function(){return new $l(this.top,this.right,this.bottom,this.left)}; +g.k.contains=function(a){return this&&a?a instanceof $l?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1}; +g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; +g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; +g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; +g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};em.prototype.Ib=function(){return this.N};var e$a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Bn={S6:"start",x4:"firstquartile",J6:"midpoint",T6:"thirdquartile",COMPLETE:"complete",ERROR:"error",I6:"metric",PAUSE:"pause",O6:"resume",P6:"skip",X6:"viewable_impression",L6:"mute",V6:"unmute",y4:"fullscreen",v4:"exitfullscreen",l4:"bufferstart",j4:"bufferfinish",z4:"fully_viewable_audible_half_duration_impression",H6:"measurable_impression",Y3:"abandon",u4:"engagedview",D4:"impression",p4:"creativeview",G6:"loaded", +hka:"progress",CLOSE:"close",Tga:"collapse",Pja:"overlay_resize",Qja:"overlay_unmeasurable_impression",Rja:"overlay_unviewable_impression",Tja:"overlay_viewable_immediate_impression",Sja:"overlay_viewable_end_of_session_impression",q4:"custom_metric_viewable",b4:"audio_audible",e4:"audio_measurable",d4:"audio_impression"},Wka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Xka=["start","firstquartile","midpoint","thirdquartile"],Nja=["abandon"],co={UNKNOWN:-1,S6:0,x4:1,J6:2, +T6:3,COMPLETE:4,I6:5,PAUSE:6,O6:7,P6:8,X6:9,L6:10,V6:11,y4:12,v4:13,z4:14,H6:15,Y3:16,u4:17,D4:18,p4:19,G6:20,q4:21,l4:22,j4:23,d4:27,e4:28,b4:29};var xia={zfa:"addEventListener",Rha:"getMaxSize",Sha:"getScreenSize",Tha:"getState",Uha:"getVersion",qka:"removeEventListener",Tia:"isViewable"};g.k=g.gm.prototype;g.k.clone=function(){return new g.gm(this.left,this.top,this.width,this.height)}; +g.k.contains=function(a){return a instanceof g.Gd?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height}; +g.k.getSize=function(){return new g.Id(this.width,this.height)}; +g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.k.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var Bia={};Kia.prototype.update=function(a){a&&a.document&&(this.N=fm(!1,a,this.isMobileDevice),this.j=fm(!0,a,this.isMobileDevice),Mia(this,a),Lia(this,a))};Im.prototype.cancel=function(){Fl().clearTimeout(this.j);this.j=null}; +Im.prototype.schedule=function(){var a=this,b=Fl(),c=Il().j.j;this.j=b.setTimeout(Hl(c,Tl(143,function(){a.B++;a.C.sample()})),via())};g.k=Jm.prototype;g.k.sD=function(){return!1}; +g.k.initialize=function(){return this.isInitialized=!0}; +g.k.kA=function(){return this.j.Ga}; +g.k.yF=function(){return this.j.qa}; +g.k.Zi=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Ga=a,this.Z=0,this.j!=this||Lm(this)}; +g.k.getName=function(){return this.j.Ra}; +g.k.Vt=function(){return this.j.uY()}; +g.k.uY=function(){return{}}; +g.k.Or=function(){return this.j.Z}; +g.k.AV=function(){var a=Fm();a.j=fm(!0,this.C,a.isMobileDevice)}; +g.k.BV=function(){Lia(Fm(),this.C)}; +g.k.JY=function(){return this.D.j}; +g.k.sample=function(){}; +g.k.isActive=function(){return this.j.K}; +g.k.wA=function(a){var b=this.j;this.j=a.Or()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,Lm(this)):this.K!==this.j.K&&(this.K=this.j.K,Lm(this))}; +g.k.mu=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&Pia(this)}}; +g.k.Hq=function(){return this.Y}; +g.k.dispose=function(){this.Fa=!0}; +g.k.La=function(){return this.Fa};g.k=Mm.prototype;g.k.CN=function(){return!0}; +g.k.DI=function(){}; +g.k.dispose=function(){if(!this.La()){var a=this.B;g.Pb(a.G,this);a.Y&&this.Hq()&&Oia(a);this.DI();this.qa=!0}}; +g.k.La=function(){return this.qa}; +g.k.Vt=function(){return this.B.Vt()}; +g.k.Or=function(){return this.B.Or()}; +g.k.kA=function(){return this.B.kA()}; +g.k.yF=function(){return this.B.yF()}; +g.k.wA=function(){}; +g.k.mu=function(){this.Et()}; +g.k.Hq=function(){return this.ra};g.k=Nm.prototype;g.k.Or=function(){return this.j.Or()}; +g.k.kA=function(){return this.j.kA()}; +g.k.yF=function(){return this.j.yF()}; +g.k.create=function(a,b,c){var d=null;this.j&&(d=this.FI(a,b,c),Km(this.j,d));return d}; +g.k.CV=function(){return this.tD()}; +g.k.tD=function(){return!1}; +g.k.init=function(a){return this.j.initialize()?(Km(this.j,this),this.D=a,!0):!1}; +g.k.wA=function(a){a.Or()==0&&this.D(a.kA(),this)}; +g.k.mu=function(){}; +g.k.Hq=function(){return!1}; +g.k.dispose=function(){this.G=!0}; +g.k.La=function(){return this.G}; +g.k.Vt=function(){return{}};Om.prototype.add=function(a,b,c){++this.C;a=new Qia(a,b,c);this.j.push(new Qia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Via.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Qm(this.j);b.length>0&&(a+="?"+b);return a};Rm.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(c===void 0?!a:c)this.D=0};var $ia=[1,.75,.5,.3,0];Sm.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Ym.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.Be):b.Be;this.ra=Math.max(this.ra,b.Be);this.Ba=this.Ba!=-1?Math.min(this.Ba,b.Tk):b.Tk;this.Ga=Math.max(this.Ga,b.Tk);this.Xa.update(b.Tk,c.Tk,b.j,a,d);this.B.update(b.Be,c.Be,b.j,a,d);c=d||c.Dx!=b.Dx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)}; +Ym.prototype.hs=function(){return this.Ra.C>=this.Ya};if(Gm&&Gm.URL){var f$a=Gm.URL,g$a;if(g$a=!!f$a){var h$a;a:{if(f$a){var i$a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var m1=i$a.exec(decodeURIComponent(f$a));if(m1){h$a=m1[1]&&m1[1].length>1?m1[1].substring(1):"true";break a}}catch(a){}}h$a=""}g$a=h$a.length>0}Pl.QT=!g$a};var j$a=new $l(0,0,0,0);var hja=new $l(0,0,0,0);g.z(cn,g.O);g.k=cn.prototype; +g.k.xa=function(){if(this.qk.j){if(this.Rw.BR){var a=this.qk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Rw.BR,pl());this.Rw.BR=null}this.Rw.AR&&(a=this.qk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Rw.AR,pl()),this.Rw.AR=null)}this.RH&&this.RH.dispose();this.Zf&&this.Zf.dispose();delete this.bL;delete this.rR;delete this.u3;delete this.qk.Ju;delete this.qk.j;delete this.Rw;delete this.RH;delete this.Zf;delete this.Lc;g.O.prototype.xa.call(this)}; +g.k.Zt=function(){return this.Zf?this.Zf.j:this.position}; +g.k.PS=function(a){Il().PS(a)}; +g.k.Hq=function(){return!1}; +g.k.cK=function(){return new Ym}; +g.k.Cj=function(){return this.bL}; +g.k.yY=function(a){return lja(this,a,1E4)}; +g.k.Ta=function(a,b,c,d,e,f,h){this.vu||(this.KE&&(a=this.BO(a,c,e,h),d=d&&this.wi.Be>=(this.Dx()?.3:.5),this.vU(f,a,d),this.kq=b,a.Be>0&&-1===this.R2&&(this.R2=b),this.W2==-1&&this.hs()&&(this.W2=b),this.lR==-2&&(this.lR=an(this.Zt())?a.Be:-1),this.wi=a),this.rR(this))}; +g.k.vU=function(a,b,c){this.Cj().update(a,b,this.wi,c)}; +g.k.aQ=function(){return new al}; +g.k.BO=function(a,b,c,d){c=this.aQ();c.j=b;b=Fl().B;b=rl(Gm)===0?-1:b.isVisible()?0:1;c.B=b;c.Be=this.WO(a);c.Dx=this.Dx();c.Tk=d;return c}; +g.k.WO=function(a){return this.opacity===0&&il(this.Lc,"opac")===1?0:a}; +g.k.Dx=function(){return!1}; +g.k.EM=function(){return this.g$||this.j$}; +g.k.Ux=function(){Vl()}; +g.k.sB=function(){Vl()}; +g.k.Wp=function(){return 0}; +g.k.hs=function(){return this.bL.hs()}; +g.k.MY=function(){var a=this.KE;a=(this.hasCompleted||this.La())&&!a;var b=Il().B!==2||this.Rea;return this.vu||b&&a?2:this.hs()?4:3}; +g.k.QJ=function(){return 0};g.en.prototype.next=function(){return g.n1}; +g.n1={done:!0,value:void 0};g.en.prototype.wm=function(){return this};g.z(rja,al);var o1=tja([void 0,1,2,3,4,8,16]),p1=tja([void 0,4,8,16]),k$a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:jn("p0",p1),p1:jn("p1",p1),p2:jn("p2",p1),p3:jn("p3",p1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:hn("mtos1",[0,2,4],!1,p1),mtos2:hn("mtos2",[0,2,4],!1,p1),mtos3:hn("mtos3",[0,2,4],!1,p1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:jn("a0",p1),a1:jn("a1",p1),a2:jn("a2",p1),a3:jn("a3",p1),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:jn("c0",p1),c1:jn("c1",p1),c2:jn("c2",p1),c3:jn("c3",p1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:jn("qmtos",o1),qnc:jn("qnc",o1),qmv:jn("qmv",o1),qnv:jn("qnv",o1), +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:jn("ss0",p1),ss1:jn("ss1",p1),ss2:jn("ss2",p1),ss3:jn("ss3",p1),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},l$a=Object.assign({},k$a,{avid:Yc("audio"),avas:"avas",vs:"vs"}),m$a={atos:"atos",avt:hn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0), +t:"t"};nn.prototype.getValue=function(){return this.B}; +nn.prototype.update=function(a,b){a>=32||(this.j&1<=.5;Dm(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Fa+=a,this.Y+=e?a:0);this.j.update(b.Be,c.Be,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.fb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.Wa.update(a,b.Be>=1);this.Va.update(a, +gn(b))}};zja.prototype.B=function(a){this.C||(this.j(a)?(a=Kka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.z(qn,zja);qn.prototype.j=function(){return!0}; +qn.prototype.K=function(){return!1}; +qn.prototype.getId=function(){var a=this,b=Ac(Bn,function(c){return c==a.D}); +return co[b].toString()}; +qn.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.z(rn,qn);rn.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);qn.prototype.B.call(this,a)};g.z(sn,Aja);sn.prototype.B=function(){return null}; +sn.prototype.C=function(){return[]};g.z(tn,Mm);g.k=tn.prototype;g.k.EO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=Hia(a.getBoundingClientRect())}catch(n){c=new $l(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Eia(a,b),h=f.x,l=f.y;var m=new $l(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=j$a.clone()}this.j=m}}; +g.k.jX=function(){this.D=this.B.D.j}; +g.k.JZ=function(a){var b=il(this.Lc,"od")==1;return gja(a,this.D,this.element,b)}; +g.k.kX=function(){this.timestamp=Vl()}; +g.k.Et=function(){this.kX();this.EO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Id(a.videoWidth,a.videoHeight);a=this.j;var c=cm(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.jX(); +a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new $l(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new $l(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new $l(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.JZ(c)?c=new $l(0,0,0,0):(d=Fm().D,b=new $l(0,d.height,d.width,0),d=bn(c,this.j),e=bn(c,Fm().j),b=bn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new $l(0,0,0, +0):dm(c,-this.j.left,-this.j.top);Hm()||(e=d=0);this.N=new em(a,this.element,this.j,c,d,e,this.timestamp,b)}; +g.k.getName=function(){return this.B.getName()};var n$a=new $l(0,0,0,0);g.z(un,tn);g.k=un.prototype;g.k.CN=function(){this.C();return!0}; +g.k.mu=function(){tn.prototype.Et.call(this)}; +g.k.kX=function(){}; +g.k.EO=function(){}; +g.k.Et=function(){this.C();tn.prototype.Et.call(this)}; +g.k.wA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Fm().j=new $l(0,0,0,0),this.j=new $l(0,0,0,0),this.D=new $l(0,0,0,0),this.timestamp=-1));this.K=a};var q1={},Kja=(q1.firstquartile=0,q1.midpoint=1,q1.thirdquartile=2,q1.complete=3,q1);g.z(wn,cn);g.k=wn.prototype;g.k.Hq=function(){return!0}; +g.k.Fo=function(){return this.Hk==2}; +g.k.yY=function(a){return lja(this,a,Math.max(1E4,this.C/3))}; +g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.Hc(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;Fl();this.ob=!1;e=Cja(this,b);Bja(this)===1&&(f=e);cn.prototype.Ta.call(this,a,b,c,d,m,f,h);this.us&&this.us.C&&g.cc(this.K,function(n){n.B(l)})}; +g.k.vU=function(a,b,c){cn.prototype.vU.call(this,a,b,c);zn(this).update(a,b,this.wi,c);this.fb=gn(this.wi)&&gn(b);this.Ga==-1&&this.Xa&&(this.Ga=this.Cj().C.j);this.Kg.C=0;a=this.hs();b.isVisible()&&mn(this.Kg,"vs");a&&mn(this.Kg,"vw");Dm(b.volume)&&mn(this.Kg,"am");gn(b)?mn(this.Kg,"a"):mn(this.Kg,"mut");this.IA&&mn(this.Kg,"f");b.B!=-1&&(mn(this.Kg,"bm"),b.B==1&&(mn(this.Kg,"b"),gn(b)&&mn(this.Kg,"umutb")));gn(b)&&b.isVisible()&&mn(this.Kg,"avs");this.fb&&a&&mn(this.Kg,"avw");b.Be>0&&mn(this.Kg, +"pv");An(this,this.Cj().C.j,!0)&&mn(this.Kg,"gdr");Wm(this.Cj().B,1)>=2E3&&mn(this.Kg,"pmx");this.ob&&mn(this.Kg,"tvoff")}; +g.k.cK=function(){return new on}; +g.k.Cj=function(){return this.bL}; +g.k.aQ=function(){return new rja}; +g.k.BO=function(a,b,c,d){a=cn.prototype.BO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.IA;a.paused=this.Fo();a.volume=c.volume;Dm(a.volume)||(this.Jb++,b=this.wi,Dm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a}; +g.k.WO=function(a){return Fm(),this.IA?1:cn.prototype.WO.call(this,a)}; +g.k.Wp=function(){return 1}; +g.k.getDuration=function(){return this.C}; +g.k.MY=function(){return this.vu?2:Eja(this)?5:this.hs()?4:3}; +g.k.QJ=function(){return this.yb?this.Cj().G.C>=2E3?4:3:2};var o$a=g.Xa();Vja.prototype.reset=function(){this.j=[];this.B=[]}; +var Gn=Dl(Vja);g.z(Jn,Nm);g.k=Jn.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()}; +g.k.Vt=function(){return(this.B?this.B:this.j).Vt()}; +g.k.Or=function(){return(this.B?this.B:this.j).Or()}; +g.k.init=function(a){var b=!1;(0,g.cc)(this.C,function(c){c.initialize()&&(b=!0)}); +b&&(this.D=a,Km(this.j,this));return b}; +g.k.dispose=function(){(0,g.cc)(this.C,function(a){a.dispose()}); +Nm.prototype.dispose.call(this)}; +g.k.CV=function(){return Em(this.C,function(a){return a.sD()})}; +g.k.tD=function(){return Em(this.C,function(a){return a.sD()})}; +g.k.FI=function(a,b,c){return new tn(a,this.j,b,c)}; +g.k.mu=function(a){this.B=a.B};var dka={threshold:[0,.3,.5,.75,1]};g.z(Kn,tn);g.k=Kn.prototype;g.k.CN=function(){var a=this;this.Y||(this.Y=Vl());if(tia(298,function(){return eka(a)}))return!0; +this.B.Zi("msf");return!1}; +g.k.DI=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}}; +g.k.Et=function(){var a=Ln(this);a.length>0&&Mn(this,a);tn.prototype.Et.call(this)}; +g.k.EO=function(){}; +g.k.JZ=function(){return!1}; +g.k.jX=function(){}; +g.k.Vt=function(){var a={};return Object.assign(this.B.Vt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))}; +g.k.getName=function(){return"nio"};g.z(Nn,Nm);Nn.prototype.getName=function(){return"nio"}; +Nn.prototype.tD=function(){return!Fm().B&&this.j.j.C.IntersectionObserver!=null}; +Nn.prototype.FI=function(a,b,c){return new Kn(a,this.j,b,c)};g.z(On,Jm);On.prototype.JY=function(){return Fm().j}; +On.prototype.sD=function(){var a=gka();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,Lm(this)),this.Z=a);return a==2};Xn.prototype.sample=function(){$n(this,Hn(),!1)}; +Xn.prototype.D=function(){var a=Hm(),b=Vl();a?(Xl||(Yl=b,g.cc(Gn.j,function(c){var d=c.Cj();d.Ka=pn(d,b,c.Hk!=1)})),Xl=!0):(this.N=lka(this,b),Xl=!1,Lja=b,g.cc(Gn.j,function(c){c.KE&&(c.Cj().Z=b)})); +$n(this,Hn(),!a)}; +var Yn=Dl(Xn);var nka=null,xo="",wo=!1;var qka=pka().Kp,bo=pka().Op;var tka={Jha:"visible",pga:"audible",ela:"time",fla:"timetype"},uka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)}, +audible:function(a){return a=="0"||a=="1"}, +timetype:function(a){return a=="mtos"||a=="tos"}, +time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}}; +ska.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.z(go,qn);go.prototype.getId=function(){return this.N}; +go.prototype.K=function(){return!0}; +go.prototype.j=function(a){var b=a.Cj(),c=a.getDuration();return Em(this.Z,function(d){if(d.j!=void 0)var e=wka(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.z(ho,vja);ho.prototype.j=function(a){var b=new uja;b.j=ln(a,k$a);b.B=ln(a,m$a);return b};g.z(io,qn);io.prototype.j=function(a){return Eja(a)};g.z(jo,Aja);g.z(ko,qn);ko.prototype.j=function(a){return a.Cj().hs()};g.z(lo,rn);lo.prototype.j=function(a){var b=g.Mb(this.N,il(Il().Lc,"ovms"));return!a.vu&&(a.Hk!=0||b)};g.z(mo,jo);mo.prototype.B=function(){return new lo(this.j)}; +mo.prototype.C=function(){return[new ko("viewable_impression",this.j),new io(this.j)]};g.z(no,un);no.prototype.C=function(){var a=g.La("ima.admob.getViewability"),b=il(this.Lc,"queryid");typeof a==="function"&&b&&a(b)}; +no.prototype.getName=function(){return"gsv"};g.z(oo,Nm);oo.prototype.getName=function(){return"gsv"}; +oo.prototype.tD=function(){var a=Fm();Il();return a.B&&!1}; +oo.prototype.FI=function(a,b,c){return new no(this.j,b,c)};g.z(po,un);po.prototype.C=function(){var a=this,b=g.La("ima.bridge.getNativeViewability"),c=il(this.Lc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Bc(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Iia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?n$a.clone():Iia(e);a.timestamp=d.opt_nativeTime||-1;Fm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})}; +po.prototype.getName=function(){return"nis"};g.z(qo,Nm);qo.prototype.getName=function(){return"nis"}; +qo.prototype.tD=function(){var a=Fm();Il();return a.B&&!1}; +qo.prototype.FI=function(a,b,c){return new po(this.j,b,c)};g.z(ro,Jm);g.k=ro.prototype;g.k.sD=function(){return this.B.Jo!=null}; +g.k.uY=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ba&&(a.mlc=1);a.mtop=this.B.qea;this.N&&(a.mse=this.N);this.Ka&&(a.msc=1);a.mcp=this.B.compatibility;return a}; +g.k.tv=function(a){var b=g.Ca.apply(1,arguments);try{return this.B.Jo[a].apply(this.B.Jo,b)}catch(c){Ul(538,c,.01,function(d){d.method=a})}}; +g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.yF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.Zi("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.Zi("w"),!1;Fm().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?Aka(this):$m(this.C,"load",function(){Fl().setTimeout(Tl(292,function(){return Aka(a)}),100)},292); +return!0}; +g.k.AV=function(){var a=Fm(),b=Fka(this,"getMaxSize");a.j=new $l(0,b.width,b.height,0)}; +g.k.BV=function(){Fm().D=Fka(this,"getScreenSize")}; +g.k.dispose=function(){Cka(this);Jm.prototype.dispose.call(this)};var dia=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=to.prototype;g.k.xJ=function(a){dn(a,!1);Zja(a)}; +g.k.mK=function(){}; +g.k.iH=function(a,b,c,d){var e=this;a=new wn(ol,a,c?b:-1,7,this.gP(),this.CX());a.ij=d;zha(a.Lc);hl(a.Lc,"queryid",a.ij);a.PS("");oja(a,function(){return e.UY.apply(e,g.x(g.Ca.apply(0,arguments)))},function(){return e.J9.apply(e,g.x(g.Ca.apply(0,arguments)))}); +(d=Dl(In).j)&&kja(a,d);a.qk.Ju&&Dl(hka);return a}; +g.k.wA=function(a){switch(a.Or()){case 0:if(a=Dl(In).j)a=a.j,g.Pb(a.G,this),a.Y&&this.Hq()&&Oia(a);vo();break;case 2:Zn()}}; +g.k.mu=function(){}; +g.k.Hq=function(){return!1}; +g.k.J9=function(a,b){a.vu=!0;switch(a.Wp()){case 1:Lka(a,b);break;case 2:this.cT(a)}}; +g.k.S9=function(a){var b=a.N(a);b&&(b=b.volume,a.yb=Dm(b)&&b>0);Hja(a,0);return Cn(a,"start",Hm())}; +g.k.GC=function(a,b,c){$n(Yn,[a],!Hm());return this.Xp(a,b,c)}; +g.k.Xp=function(a,b,c){return Cn(a,c,Hm())}; +g.k.N9=function(a){return Bo(a,"firstquartile",1)}; +g.k.P9=function(a){a.Xa=!0;return Bo(a,"midpoint",2)}; +g.k.T9=function(a){return Bo(a,"thirdquartile",3)}; +g.k.K9=function(a){var b=Bo(a,"complete",4);xn(a);return b}; +g.k.L9=function(a){a.Hk=3;return Cn(a,"error",Hm())}; +g.k.M1=function(a,b,c){b=Hm();if(a.Fo()&&!b){var d=a.Cj(),e=Vl();d.Z=e}$n(Yn,[a],!b);a.Fo()&&(a.Hk=1);return Cn(a,c,b)}; +g.k.R9=function(a,b){b=this.GC(a,b||{},"skip");xn(a);return b}; +g.k.O9=function(a,b){dn(a,!0);return this.GC(a,b||{},"fullscreen")}; +g.k.M9=function(a,b){dn(a,!1);return this.GC(a,b||{},"exitfullscreen")}; +g.k.FS=function(a,b,c){b=a.Cj();var d=Vl();b.Ka=pn(b,d,a.Hk!=1);$n(Yn,[a],!Hm());a.Hk==1&&(a.Hk=2);return Cn(a,c,Hm())}; +g.k.Q9=function(a){$n(Yn,[a],!Hm());return a.B()}; +g.k.wQ=function(a){$n(Yn,[a],!Hm());this.G1(a);xn(a);return a.B()}; +g.k.UY=function(){}; +g.k.cT=function(){}; +g.k.G1=function(){}; +g.k.EV=function(){}; +g.k.hP=function(){}; +g.k.CX=function(){this.j||(this.j=this.hP());return this.j==null?new sn:new mo(this.j)}; +g.k.gP=function(){return new ho};g.z(Co,qn);Co.prototype.j=function(a){return a.QJ()==4};g.z(Do,rn);Do.prototype.j=function(a){a=a.QJ();return a==3||a==4};g.z(Eo,jo);Eo.prototype.B=function(){return new Do(this.j)}; +Eo.prototype.C=function(){return[new Co(this.j)]};g.z(Fo,vja);Fo.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new uja;b.j=ln(a,l$a);b.B=ln(a,m$a);return b};Pka.prototype.B=function(){return g.La(this.j)};g.z(Go,to);g.k=Go.prototype;g.k.mK=function(a,b){var c=this,d=Dl(In);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Tka(this,a,b);break;case "gsv":e=Ska(this,a,b);break;case "exc":e=Uka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Nka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Wp()==1&&(e.N==g.Zc&&(e.N=function(f){return c.EV(f)}),Rka(this,e,b)); +return e}; +g.k.EV=function(a){a.B=0;a.Fa=0;if(a.D=="h"||a.D=="n"){Il();a.Ya&&(Il(),zo(this)!="h"&&zo(this));var b=g.La("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.ij)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.La("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.ij)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.La("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.ij)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null? +a.B|=16:g.Bc(c)?a.B|=32:c.errorCode!=null&&(a.Fa=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in e$a)b[d]==null&&(a.Z|=e$a[d]);Oka(b,"currentTime");Oka(b,"duration");Dm(c.volume)&&Dm()&&(c.volume*=NaN);return c}; +g.k.hP=function(){Il();zo(this)!="h"&&zo(this);var a=Vka(this);return a!=null?new Pka(a):null}; +g.k.cT=function(a){!a.j&&a.vu&&Ao(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)}; +g.k.G1=function(a){a.v2&&(a.hs()?Ao(this,a,"overlay_viewable_end_of_session_impression"):Ao(this,a,"overlay_unviewable_impression"),a.v2=!1)}; +g.k.UY=function(){}; +g.k.iH=function(a,b,c,d){if(eia()){var e=il(Il().Lc,"mm"),f={};(e=(f[Jl.a4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Jl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Zka(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Ul(1044,Error())}a=to.prototype.iH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new pja),b.j[a.ij]=a.G,a.G.G=o$a);return a}; +g.k.xJ=function(a){a&&a.Wp()==1&&this.D&&delete this.G.j[a.ij];return to.prototype.xJ.call(this,a)}; +g.k.CX=function(){this.j||(this.j=this.hP());return this.j==null?new sn:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Eo(this.j):new mo(this.j)}; +g.k.gP=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Fo:new ho}; +var p$a=Sl(193,ala,void 0,Mka);g.Ka("Goog_AdSense_Lidar_sendVastEvent",p$a);var q$a=Tl(194,function(a,b){b=b===void 0?{}:b;a=Yka(Dl(Go),a,b);return $ka(a)}); +g.Ka("Goog_AdSense_Lidar_getViewability",q$a);var r$a=Sl(195,function(){return Zha()}); +g.Ka("Goog_AdSense_Lidar_getUrlSignalsArray",r$a);var s$a=Tl(196,function(){return JSON.stringify(Zha())}); +g.Ka("Goog_AdSense_Lidar_getUrlSignalsList",s$a);var gva=ma(["//tpc.googlesyndication.com/sodar/",""]);var Rma=(new Date).getTime();var dla="://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(" "),ela=/\bocr\b/;var gla=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var t$a=0,u$a=0,v$a=0;var Io;Io=null;g.Ko=!1;g.Uo=1;g.To=Symbol("SIGNAL");g.Wo={version:0,TZ:0,xl:!1,dg:void 0,By:void 0,Ym:void 0,mL:0,ej:void 0,Gu:void 0,Kt:!1,ZO:!1,t1:function(){return!1}, +v1:function(){}, +vE:function(){}, +Tma:function(){}};var w$a=Symbol("UNSET"),x$a=Symbol("COMPUTING"),y$a=Symbol("ERRORED");Object.assign({},g.Wo,{value:w$a,xl:!0,error:null,vP:hla,t1:function(a){return a.value===w$a||a.value===x$a}, +v1:function(a){if(a.value===x$a)throw Error("Detected cycle in computations.");var b=a.value;a.value=x$a;var c=g.Lo(a);try{var d=a.Rma()}catch(e){d=y$a,a.error=e}finally{g.Oo(a,c)}b!==w$a&&b!==y$a&&d!==y$a&&a.vP(b,d)?a.value=b:(a.value=d,a.version++)}});var nla;g.pla=null;nla=Object.assign({},g.Wo,{vP:hla,value:void 0});g.z$a=Object.assign({},g.Wo,{ZO:!0,Kt:!1,vE:function(a){a.schedule!==null&&a.schedule(a.aC)}, +zF:!1,Iz:g.Vo});g.A$a=rla(!1);g.B$a=rla(!0);var C$a=Symbol("updater");g.z(Yo,g.Vc);Yo.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Go.jk(this.G);delete Yo.instance}; +Yo.prototype.Ih=function(){return this.j}; +Yo.prototype.Ue=function(){var a=this;this.G=this.Go.Vi(function(){var b;return g.J(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ha(3):g.G(c,Xo(a),3):g.G(c,Xo(a),3);a.Ue();g.ua(c)})},3E4)};$o.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)}; +$o.prototype.get=function(a){return!!this.data[a]};var bp;g.Ya(g.ep,g.O);g.k=g.ep.prototype;g.k.start=function(){this.stop();this.D=!1;var a=ula(this),b=vla(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Nc(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(lba(this.C),20)}; +g.k.stop=function(){if(this.isActive()){var a=ula(this),b=vla(this);a&&!b&&this.B.mozRequestAnimationFrame?Sc(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null}; +g.k.isActive=function(){return this.j!=null}; +g.k.A5=function(){this.D&&this.j&&Sc(this.j);this.j=null;this.K.call(this.G,g.Xa())}; +g.k.xa=function(){this.stop();g.ep.Of.xa.call(this)};g.Ya(g.fp,g.O);g.k=g.fp.prototype;g.k.uD=0;g.k.xa=function(){g.fp.Of.xa.call(this);this.stop();delete this.j;delete this.B}; +g.k.start=function(a){this.stop();this.uD=g.Ne(this.C,a!==void 0?a:this.cj)}; +g.k.stop=function(){this.isActive()&&g.Ja.clearTimeout(this.uD);this.uD=0}; +g.k.isActive=function(){return this.uD!=0}; +g.k.FV=function(){this.uD=0;this.j&&this.j.call(this.B)};g.jp.prototype[Symbol.iterator]=function(){return this}; +g.jp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.Ya(g.sp,g.Vc);g.k=g.sp.prototype;g.k.isPlaying=function(){return this.j==1}; +g.k.isPaused=function(){return this.j==-1}; +g.k.uL=function(){this.Pn("begin")}; +g.k.zs=function(){this.Pn("end")}; +g.k.onFinish=function(){this.Pn("finish")}; +g.k.onStop=function(){this.Pn("stop")}; +g.k.Pn=function(a){this.dispatchEvent(a)};var D$a=$c(function(){var a=g.je("DIV"),b=g.lc?"-webkit":km?"-moz":g.lm?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!h9a.test("div"))throw Error("");if("DIV"in j9a)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!h9a.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof bd)e=dd(e);else if(h.toLowerCase()=="style"){if(!g.Qa(e))throw Error("");if(!(e instanceof +g.td)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];m!=null&&(m=Array.isArray(m)?m.map(yba).join(" "):yba(m),l+=f+":"+m+";")}e=l?new g.td(l,Cd):Ela}e=ud(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in i9a)if(e instanceof g.hd)e=g.id(e).toString();else if(e instanceof g.kd)e=g.ld(e);else if(typeof e==="string")e=g.rd(e).toString();else throw Error("");}f=h+'="'+qb(String(e))+ +'"';d+=" "+f}}var n="":(b=Bba(b),n+=">"+g.wd(b).toString()+"");n=xd(n);if(k9a())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.wd(n);return g.mm(a.firstChild,"transition")!=""});g.Ya(tp,g.sp);g.k=tp.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.uL();this.Pn("play");this.startTime=g.Xa();this.j=1;if(D$a())return g.jm(this.B,this.K),this.C=g.Ne(this.Uca,void 0,this),!0;this.DN(!1);return!1}; +g.k.Uca=function(){g.Am(this.B);yla(this.B,this.N);g.jm(this.B,this.D);this.C=g.Ne((0,g.Ua)(this.DN,this,!1),this.G*1E3)}; +g.k.stop=function(){this.isPlaying()&&this.DN(!0)}; +g.k.DN=function(a){g.jm(this.B,"transition","");g.Ja.clearTimeout(this.C);g.jm(this.B,this.D);this.endTime=g.Xa();this.j=0;if(a)this.onStop();else this.onFinish();this.zs()}; +g.k.xa=function(){this.stop();tp.Of.xa.call(this)}; +g.k.pause=function(){};var Ala={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};up("Element","attributes")||up("Node","attributes");up("Element","innerHTML")||up("HTMLElement","innerHTML");up("Node","nodeName");up("Node","nodeType");up("Node","parentNode");up("Node","childNodes");up("HTMLElement","style")||up("Element","style");up("HTMLStyleElement","sheet");var Hla=Cla("getPropertyValue"),Ila=Cla("setProperty");up("Element","namespaceURI")||up("Node","namespaceURI");var Gla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Mla,N8a,Lla,Kla,Nla;Mla=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");N8a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.E$a=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.vp=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Lla=/^http:\/\/.*/;g.F$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Kla=/\s+/;Nla=/[\d\u06f0-\u06f9]/;xp.prototype.wm=function(){return new yp(this.B())}; +xp.prototype[Symbol.iterator]=function(){return new zp(this.B())}; +xp.prototype.j=function(){return new zp(this.B())}; +g.z(yp,g.en);yp.prototype.next=function(){return this.B.next()}; +yp.prototype[Symbol.iterator]=function(){return new zp(this.B)}; +yp.prototype.j=function(){return new zp(this.B)}; +g.z(zp,xp);zp.prototype.next=function(){return this.C.next()};Bp.prototype.clone=function(){return new Bp(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Dp.prototype.clone=function(){return new Dp(this.start,this.end)};(function(){if(f6a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.wb()))?a[1]:"0"}return uX?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.wb()))?a[0].replace(/_/g,"."):"10"):g.us?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.wb()))?a[1]:""):$8a||a9a||b9a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.wb()))?a[1].replace(/_/g,"."):""):""})();var Pla=function(){if(g.YN)return Ep(/Firefox\/([0-9.]+)/);if(g.lm||g.tu||g.GO)return Uaa;if(g.KE){if(gc()||ic()){var a=Ep(/CriOS\/([0-9.]+)/);if(a)return a}return Ep(/Chrome\/([0-9.]+)/)}if(g.Rt&&!gc())return Ep(/Version\/([0-9.]+)/);if(qs||rs){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.wb()))return a[1]+"."+a[2]}else if(g.HO)return(a=Ep(/Android\s+([0-9.]+)/))?a:Ep(/Version\/([0-9.]+)/);return""}();g.Ya(g.Gp,g.O);g.k=g.Gp.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e}; +g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.uh(a)}return!1}; +g.k.uh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Pb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b}; +g.k.publish=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e0&&this.D==0)for(;c=this.C.pop();)this.uh(c)}}return e!=0}return!1}; +g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.uh,this),delete this.B[a])}else this.j.length=0,this.B={}}; +g.k.xa=function(){g.Gp.Of.xa.call(this);this.clear();this.C.length=0};g.Hp.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.Ci(b))}; +g.Hp.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}}; +g.Hp.prototype.remove=function(a){this.j.remove(a)};g.Ya(Ip,g.Hp);Ip.prototype.set=function(a,b){Ip.Of.set.call(this,a,Sla(b))}; +Ip.prototype.B=function(a){a=Ip.Of.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";}; +Ip.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ya(Jp,Ip);Jp.prototype.set=function(a,b,c){if(b=Sla(b)){if(c){if(c=c.length)return g.n1;var e=c.key(b++);if(a)return g.fn(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.fn(e)}; +return d}; +g.k.clear=function(){Np(this);this.j.clear()}; +g.k.key=function(a){Np(this);return this.j.key(a)};g.Ya(Op,Mp);g.Ya(Vla,Mp);g.Ya(Pp,Lp);Pp.prototype.set=function(a,b){this.B.set(this.j+a,b)}; +Pp.prototype.get=function(a){return this.B.get(this.j+a)}; +Pp.prototype.remove=function(a){this.B.remove(this.j+a)}; +Pp.prototype.wm=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.en;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.fn(a?e.slice(c.j.length):c.B.get(e))}; +return d};Rp.prototype.getValue=function(){return this.B}; +Rp.prototype.clone=function(){return new Rp(this.j,this.B)};g.k=Sp.prototype;g.k.Fh=function(a,b){var c=this.j;c.push(new Rp(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c}; +g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a>1;){var f=a*2+1,h=a*2+2;f=he.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}}; +g.k.Mm=function(){for(var a=this.j,b=[],c=a.length,d=0;d>>16&65535|0;for(var f;c!==0;){f=c>2E3?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Aq={},r1,K$a=[],s1=0;s1<256;s1++){r1=s1;for(var L$a=0;L$a<8;L$a++)r1=r1&1?3988292384^r1>>>1:r1>>>1;K$a[s1]=r1}Aq=function(a,b,c,d){c=d+c;for(a^=-1;d>>8^K$a[(a^b[d])&255];return a^-1};var kq={};kq={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var dq=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],gq=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],rma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gma=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],uq=Array(576);Wp(uq);var vq=Array(60);Wp(vq);var fq=Array(512);Wp(fq);var cq=Array(256);Wp(cq);var eq=Array(29);Wp(eq);var hq=Array(30);Wp(hq);var oma,pma,qma,nma=!1;var Fq;Fq=[new Eq(0,0,0,0,function(a,b){var c=65535;for(c>a.Xm-5&&(c=a.Xm-5);;){if(a.jc<=1){Bq(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Gb+=a.jc;a.jc=0;var d=a.vl+c;if(a.Gb===0||a.Gb>=d)if(a.jc=a.Gb-d,a.Gb=d,wq(a,!1),a.xe.Je===0)return 1;if(a.Gb-a.vl>=a.tj-262&&(wq(a,!1),a.xe.Je===0))return 1}a.Fh=0;if(b===4)return wq(a,!0),a.xe.Je===0?3:4;a.Gb>a.vl&&wq(a,!1);return 1}), +new Eq(4,4,8,4,Cq),new Eq(4,5,16,8,Cq),new Eq(4,6,32,32,Cq),new Eq(4,4,16,16,Dq),new Eq(8,16,32,32,Dq),new Eq(8,16,128,128,Dq),new Eq(8,32,128,256,Dq),new Eq(32,128,258,1024,Dq),new Eq(32,258,258,4096,Dq)];var mma={};mma=function(){this.input=null;this.Yy=this.xj=this.Xx=0;this.output=null;this.lU=this.Je=this.uB=0;this.msg="";this.state=null;this.kP=2;this.Ud=0};var sma=Object.prototype.toString; +Gq.prototype.push=function(a,b){var c=this.xe,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Wla(a):sma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Xx=0;c.xj=c.input.length;do{c.Je===0&&(c.output=new Vp.kz(d),c.uB=0,c.Je=d);a=lma(c,e);if(a!==1&&a!==0)return this.zs(a),this.ended=!0,!1;if(c.Je===0||c.xj===0&&(e===4||e===2))if(this.options.to==="string"){var f=Vp.PT(c.output,c.uB);b=f;f=f.length;if(f<65537&&(b.subarray&& +J$a||!b.subarray))b=String.fromCharCode.apply(null,Vp.PT(b,f));else{for(var h="",l=0;l0||c.Je===0)&&a!==1);if(e===4)return(c=this.xe)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=lq(c,-2):(c.state=null,a=d===113?lq(c,-3):0)):a=-2,this.zs(a),this.ended=!0,a===0;e===2&&(this.zs(0),c.Je=0);return!0}; +Gq.prototype.zs=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Vp.eY(this.chunks));this.chunks=[];this.err=a;this.msg=this.xe.msg};var Iq="@@redux/INIT"+Hq(),yma="@@redux/REPLACE"+Hq();var zma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var M$a=[0,H9a,-3,j1];g.z(Lq,mh);Lq.prototype.getType=function(){return Ng(this,11)};var qYa=function(){var a=[0,J9a,I9a,g1,H9a,g1,-1,j1,H9a,j1,-1,J9a,j1,I9a,h1,M$a,g1,-1,j1];return function(b,c){if(f1.length){var d=f1.pop();nea(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new fh(b,c);try{var e=new Lq,f=e.sb;Dh(a)(f,b);var h=e}finally{b.free()}return h}}();var Psa=new g.Mq("adInfoDialogEndpoint");var Fua=new g.Mq("adPingingEndpoint");var Ywa=new g.Mq("crossDeviceProgressCommand");var SH=new g.Mq("actionCompanionAdRenderer");var sE=new g.Mq("adActionInterstitialRenderer");var N$a=new g.Mq("adDurationRemainingRenderer");var lI=new g.Mq("adHoverTextButtonRenderer");var Nsa=new g.Mq("adInfoDialogRenderer");var RI=new g.Mq("adMessageRenderer");var mI=new g.Mq("adPreviewRenderer");var UH=new g.Mq("adsEngagementPanelRenderer");var tya=new g.Mq("dismissablePanelTextPortraitImageRenderer");var O$a=new g.Mq("flyoutCtaRenderer");var TH=new g.Mq("imageCompanionAdRenderer");var qE=new g.Mq("instreamAdPlayerOverlayRenderer");var P$a=new g.Mq("instreamAdPlayerUnderlayRenderer");var i8a=new g.Mq("instreamSurveyAdBackgroundImageRenderer");var kI=new g.Mq("instreamSurveyAdPlayerOverlayRenderer");var cI=new g.Mq("instreamSurveyAdRenderer"),jI=new g.Mq("instreamSurveyAdSingleSelectQuestionRenderer"),iI=new g.Mq("instreamSurveyAdMultiSelectQuestionRenderer"),t1=new g.Mq("instreamSurveyAdAnswerRenderer"),Q$a=new g.Mq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var aI=new g.Mq("instreamVideoAdRenderer");var R$a=new g.Mq("textOverlayAdContentRenderer"),S$a=new g.Mq("enhancedTextOverlayAdContentRenderer"),T$a=new g.Mq("imageOverlayAdContentRenderer");var rE=new g.Mq("playerOverlayLayoutRenderer");var xya=new g.Mq("aboveFeedAdLayoutRenderer");var yya=new g.Mq("belowPlayerAdLayoutRenderer");var wya=new g.Mq("inPlayerAdLayoutRenderer");var fI=new g.Mq("playerBytesAdLayoutRenderer");var hI=new g.Mq("playerUnderlayAdLayoutRenderer");var bI=new g.Mq("adIntroRenderer");var pya=new g.Mq("playerBytesSequentialLayoutRenderer");var Eza=new g.Mq("slidingTextPlayerOverlayRenderer");var dI=new g.Mq("surveyTextInterstitialRenderer");var U$a=new g.Mq("simpleAdBadgeRenderer");var NG=new g.Mq("skipAdRenderer"),V$a=new g.Mq("skipButtonRenderer");var qI=new g.Mq("adSlotRenderer");var gI=new g.Mq("squeezebackPlayerSidePanelRenderer");var W$a=new g.Mq("timedPieCountdownRenderer");var X$a=new g.Mq("adAvatarViewModel");var Y$a=new g.Mq("adBadgeViewModel");var Z$a=new g.Mq("adButtonViewModel");var $$a=new g.Mq("adDisclosureBannerViewModel");var aab=new g.Mq("adPreviewViewModel");var bab=new g.Mq("playerAdAvatarLockupCardButtonedViewModel");var cab=new g.Mq("skipAdButtonViewModel");var dab=new g.Mq("skipAdViewModel");var eab=new g.Mq("visitAdvertiserLinkViewModel");var VH=new g.Mq("bannerImageLayoutViewModel");var WH=new g.Mq("topBannerImageTextIconButtonedLayoutViewModel");var XH=new g.Mq("adsEngagementPanelLayoutViewModel");g.GQ=new g.Mq("browseEndpoint");var fab=new g.Mq("confirmDialogEndpoint");var fra=new g.Mq("rawColdConfigGroup");var era=new g.Mq("rawHotConfigGroup");g.Sy=new g.Mq("commandExecutorCommand");g.z(Ema,mh);var BJa={Dla:0,Ola:1,Zla:32,ema:61,lma:67,gma:86,Yla:42,ama:60,Qla:62,dma:73,cma:76,hma:88,jma:90,mma:99,Wla:98,kma:100,nma:41,oma:69,pma:70,qma:71,Dja:2,Eja:27,ANDROID:3,Vfa:54,Wfa:14,gga:91,Xfa:55,Yfa:24,Zfa:20,aga:18,dga:21,iga:30,lga:29,nga:28,Jla:101,oga:34,hga:36,cga:38,IOS:5,zia:15,Jia:92,Aia:40,Cia:25,Dia:17,Eia:19,Fia:64,Gia:66,Hia:26,Lia:22,Mia:33,Nia:68,Oia:35,Iia:53,Kia:37,Bia:39,ola:7,qla:57,rla:43,tla:59,sla:93,kga:74,ula:75,wla:85,xla:65,zla:80,Ala:8,mla:10,Cla:58,Bla:63,yla:72,jga:23, +uma:11,vma:13,Qga:12,nla:16,Xla:56,fma:31,Aja:77,Vha:84,bma:87,Xha:89,Wha:94,nja:95};g.z(Nq,mh);Nq.prototype.N8=function(){return Mg(this,3)}; +Nq.prototype.W8=function(){return Mg(this,5)}; +Nq.prototype.Js=function(a){return Sg(this,5,a)};g.z(Oq,mh);g.z(Fma,mh);g.z(Pq,mh);Pq.prototype.getDeviceId=function(){return Mg(this,6)}; +Pq.prototype.getPlayerType=function(){return Ng(this,36)}; +Pq.prototype.setHomeGroupInfo=function(a){return Eg(this,Fma,81,a)}; +Pq.prototype.clearLocationPlayabilityToken=function(){return ig(this,89)};g.z(Qq,mh);Qq.prototype.getValue=function(){return Mg(this,zg(this,bra)===2?2:-1)}; +var bra=[2,3,4,5,6];g.z(Rq,mh);g.z(Sq,mh);g.z(Tq,mh);Tq.prototype.getToken=function(){return Jg(this,2)}; +Tq.prototype.setToken=function(a){return Sg(this,2,a)};g.z(Uq,mh);Uq.prototype.setSafetyMode=function(a){return Ug(this,5,a)};g.z(Vq,mh);Vq.prototype.BH=function(a){return Eg(this,Pq,1,a)};var oI=new g.Mq("thumbnailLandscapePortraitRenderer");g.gab=new g.Mq("changeEngagementPanelVisibilityAction");var lta=new g.Mq("continuationCommand");g.hab=new g.Mq("openPopupAction");g.u1=new g.Mq("webCommandMetadata");var oLa=new g.Mq("metadataBadgeRenderer");var vz=new g.Mq("signalServiceEndpoint");var ix=new g.Mq("innertubeCommand");var w8a=new g.Mq("loggingDirectives");var qna={xha:"EMBEDDED_PLAYER_MODE_UNKNOWN",uha:"EMBEDDED_PLAYER_MODE_DEFAULT",wha:"EMBEDDED_PLAYER_MODE_PFP",vha:"EMBEDDED_PLAYER_MODE_PFL"};var KLa=new g.Mq("channelThumbnailEndpoint");var JLa=new g.Mq("embeddedPlayerErrorMessageRenderer");var FLa=new g.Mq("embeddedPlayerOverlayVideoDetailsRenderer"),LLa=new g.Mq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),MLa=new g.Mq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var lLa=new g.Mq("embedsInfoPanelRenderer");var iab=new g.Mq("feedbackEndpoint");var jab=new g.Mq("callToActionButtonViewModel");var kab=new g.Mq("interactionLoggingCommandMetadata");var mpa={Vla:"WEB_DISPLAY_MODE_UNKNOWN",Rla:"WEB_DISPLAY_MODE_BROWSER",Tla:"WEB_DISPLAY_MODE_MINIMAL_UI",Ula:"WEB_DISPLAY_MODE_STANDALONE",Sla:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(Wq,mh);Wq.prototype.getValue=function(){return Mg(this,2)};g.z(Xq,mh);g.z(Yq,mh);g.z(Zq,mh);var Pra=[2,3,4,5];g.z($q,mh);$q.prototype.getMessage=function(){return Mg(this,1)};g.z(ar,mh);g.z(br,mh);g.z(cr,mh);g.z(dr,mh);g.z(er,mh);er.prototype.setTrackingParams=function(a){return ig(this,1,mf(a,!1,!1))};g.z(fr,mh);fr.prototype.getPlayerType=function(){return Ng(this,7)}; +fr.prototype.nf=function(){return Mg(this,19)}; +fr.prototype.setVideoId=function(a){return Sg(this,19,a)};g.z(gr,mh);g.z(hr,mh);g.z(ir,mh); +var hx=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354, +355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];g.z(jr,mh);g.z(kr,mh);kr.prototype.nf=function(){return Jg(this,zg(this,Hw)===1?1:-1)}; +kr.prototype.setVideoId=function(a){return xg(this,1,Hw,Mf(a))}; +kr.prototype.getPlaylistId=function(){return Jg(this,zg(this,Hw)===2?2:-1)}; +var Hw=[1,2];g.z(Gma,mh);var oQ=new g.Mq("changeKeyedMarkersVisibilityCommand");var lab=new g.Mq("changeMarkersVisibilityCommand");var qLa=new g.Mq("loadMarkersCommand");var mab=new g.Mq("suggestedActionDataViewModel");var YQa=new g.Mq("productListItemRenderer");var nab=new g.Mq("shoppingOverlayRenderer");var GLa=new g.Mq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var oab=new g.Mq("adFeedbackEndpoint");var pab=new g.Mq("menuEndpoint");var mQa=new g.Mq("phoneDialerEndpoint");var kQa=new g.Mq("sendSmsEndpoint");var ELa=new g.Mq("copyTextEndpoint");var qab=new g.Mq("shareEndpoint"),rab=new g.Mq("shareEntityEndpoint"),sab=new g.Mq("shareEntityServiceEndpoint"),tab=new g.Mq("webPlayerShareEntityServiceEndpoint");g.ky=new g.Mq("urlEndpoint");g.mQ=new g.Mq("watchEndpoint");var uab=new g.Mq("watchPlaylistEndpoint");var fNa=new g.Mq("compositeVideoOverlayRenderer");var vab=new g.Mq("miniplayerRenderer");var CLa=new g.Mq("paidContentOverlayRenderer");var $Ka=new g.Mq("playerMutedAutoplayOverlayRenderer"),aLa=new g.Mq("playerMutedAutoplayEndScreenRenderer");var pKa=new g.Mq("unserializedPlayerResponse"),bLa=new g.Mq("unserializedPlayerResponse");var wab=new g.Mq("playlistEditEndpoint");var v1;g.nI=new g.Mq("buttonRenderer");v1=new g.Mq("toggleButtonRenderer");var rya=new g.Mq("counterfactualRenderer");var xab=new g.Mq("resolveUrlCommandMetadata");var yab=new g.Mq("modifyChannelNotificationPreferenceEndpoint");var Eua=new g.Mq("pingingEndpoint");var zab=new g.Mq("unsubscribeEndpoint");g.HQ=new g.Mq("subscribeButtonRenderer");var Aab=new g.Mq("subscribeEndpoint");var XMa=new g.Mq("buttonViewModel");var sya=new g.Mq("qrCodeRenderer");var DJa={gja:"LIVING_ROOM_APP_MODE_UNSPECIFIED",dja:"LIVING_ROOM_APP_MODE_MAIN",cja:"LIVING_ROOM_APP_MODE_KIDS",eja:"LIVING_ROOM_APP_MODE_MUSIC",fja:"LIVING_ROOM_APP_MODE_UNPLUGGED",bja:"LIVING_ROOM_APP_MODE_GAMING"};var iLa=new g.Mq("autoplaySwitchButtonRenderer");var EP,NRa,wKa,YRa;EP=new g.Mq("decoratedPlayerBarRenderer");NRa=new g.Mq("chapteredPlayerBarRenderer");wKa=new g.Mq("multiMarkersPlayerBarRenderer");YRa=new g.Mq("chapterRenderer");g.RRa=new g.Mq("markerRenderer");var mLa=new g.Mq("desktopOverlayConfigRenderer");var kLa=new g.Mq("gatedActionsOverlayViewModel");var VRa=new g.Mq("heatMarkerRenderer");var URa=new g.Mq("heatmapRenderer");var pLa=new g.Mq("watchToWatchTransitionRenderer");var HLa=new g.Mq("playlistPanelRenderer");var Bab=new g.Mq("productUpsellSuggestedActionViewModel");var Cab=new g.Mq("suggestedActionTimeRangeTrigger"),Dab=new g.Mq("suggestedActionsRenderer"),Eab=new g.Mq("suggestedActionRenderer");var WRa=new g.Mq("timedMarkerDecorationRenderer");var FDa=new g.Mq("cipher");var qKa=new g.Mq("playerVars");var cLa=new g.Mq("playerVars");var w1=g.Ja.window,Fab,Gab,nr=(w1==null?void 0:(Fab=w1.yt)==null?void 0:Fab.config_)||(w1==null?void 0:(Gab=w1.ytcfg)==null?void 0:Gab.data_)||{};g.Ka("yt.config_",nr);var rr=[];var Qma=/^[\w.]*$/,Mma={q:!0,search_query:!0},Lma=String(vr);var Fr=new function(){var a=window.document;this.j=window;this.B=a}; +g.Ka("yt.ads_.signals_.getAdSignalsString",function(a){return wr(Hr(a))});g.Xa();var Sma="XMLHttpRequest"in g.Ja?function(){return new XMLHttpRequest}:null;var Hab="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(Hab);var Wma={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", +"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Xma="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.x(Hab)),dna=!1,Uma=Yma,ana=Tr;g.z(Wr,ib);Zr.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:as(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:$r(a):this}; +Zr.prototype.getValue=function(){return this.B}; +Zr.prototype.$goog_Thenable=!0;var bs=!1;var ru=qs||rs;var ona=/^([0-9\.]+):([0-9\.]+)$/;g.z(Hs,ib);Hs.prototype.name="BiscottiError";g.z(Gs,ib);Gs.prototype.name="BiscottiMissingError";var sna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Is=null;var Dba=ma(["data-"]),Bna={};var Iab=0,Js=g.lc?"webkit":km?"moz":g.lm?"ms":g.GO?"o":"",Jab=g.La("ytDomDomGetNextId")||function(){return++Iab}; +g.Ka("ytDomDomGetNextId",Jab);var Fna={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Ps.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +Ps.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +Ps.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Qs=g.Ja.ytEventsEventsListeners||{};g.Ka("ytEventsEventsListeners",Qs);var Ina=g.Ja.ytEventsEventsCounter||{count:0};g.Ka("ytEventsEventsCounter",Ina);var Mna=$c(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}}); +window.addEventListener("test",null,b)}catch(c){}return a}),Jna=$c(function(){var a=!1; +try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}}); +window.addEventListener("test",null,b)}catch(c){}return a});var x1;x1=window;g.Zt=x1.ytcsi&&x1.ytcsi.now?x1.ytcsi.now:x1.performance&&x1.performance.timing&&x1.performance.now&&x1.performance.timing.navigationStart?function(){return x1.performance.timing.navigationStart+x1.performance.now()}:function(){return(new Date).getTime()};g.Ya(Vs,g.O);Vs.prototype.Y=function(a){a.j===void 0&&Gna(a);var b=a.j;a.B===void 0&&Gna(a);this.j=new g.Gd(b,a.B)}; +Vs.prototype.Zt=function(){return this.j||new g.Gd}; +Vs.prototype.qa=function(){if(this.j){var a=(0,g.Zt)();if(this.D!=0){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}}; +Vs.prototype.xa=function(){g.Nr(this.Z);g.Ss(this.ra)};g.z(Ws,g.O);Ws.prototype.T=function(a,b,c,d,e){c=g.tr((0,g.Ua)(c,d||this.ob));c={target:a,name:b,callback:c};var f;e&&Mna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c}; +Ws.prototype.Oc=function(a){for(var b=0;b=N.Hn)||A.j.version>=Q||A.j.objectStoreNames.contains(M)||F.push(M)}m=F;if(m.length===0){y.Ha(5);break}n=Object.keys(c.options.ys); +p=l.objectStoreNames();if(c.Gc.options.version+1)throw r.close(),c.C=!1,Aoa(c,t);return y.return(r);case 8:throw b(), +q instanceof Error&&!g.Pr("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),St(q,c.name,"",(u=c.options.version)!=null?u:-1);}})} +function b(){c.j===d&&(c.j=void 0)} +var c=this;if(!this.C)throw Aoa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()}, +closed:b,Hea:b,upgrade:this.options.upgrade};return this.j=d=a()};var pu=new nu("YtIdbMeta",{ys:{databases:{Hn:1}},upgrade:function(a,b){b(1)&&g.au(a,"databases",{keyPath:"actualName"})}});var vu,uu=new function(){}(new function(){});new g.oj;g.z(yu,nu);yu.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?Joa:Ioa)(a,b,Object.assign({},c))}; +yu.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Noa:Koa)(this.name,a)};var Rab={},Poa=g.zu("ytGcfConfig",{ys:(Rab.coldConfigStore={Hn:1},Rab.hotConfigStore={Hn:1},Rab),shared:!1,upgrade:function(a,b){b(1)&&(g.gu(g.au(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.gu(g.au(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.z(Bu,g.O);Bu.prototype.xa=function(){for(var a=g.w(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.O.prototype.xa.call(this)};Hu.prototype.Js=function(a){this.hotHashData=a;g.Ka("yt.gcf.config.hotHashData",this.hotHashData||null)};var Sab=typeof TextEncoder!=="undefined"?new TextEncoder:null,Epa=Sab?function(a){return Sab.encode(a)}:function(a){a=g.Se(a); +for(var b=new Uint8Array(a.length),c=0;c=b?!1:!0}; +g.k.sM=function(){var a=this;if(!iv(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Kh.zY("QUEUED",this.zf).then(function(b){b&&!a.pM(b,a.B1)?a.Go.Vi(function(){return g.J(function(c){if(c.j==1)return b.id===void 0?c.Ha(2):g.G(c,a.Kh.jT(b.id,a.zf),2);a.sM();g.ua(c)})}):a.lh.Ih()&&a.EC()})};var lv;var ira={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, +mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, +kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, +transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, +ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, +ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, +accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, +musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, +yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, +notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, +tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, +iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, +mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, +mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, +clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, +mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, +mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, +cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471, +webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494, +miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503};var Vab={},Wpa=g.zu("ServiceWorkerLogsDatabase",{ys:(Vab.SWHealthLog={Hn:1},Vab),shared:!0,upgrade:function(a,b){b(1)&&g.gu(g.au(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var ov={},bqa=0;var pv;rv.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)}; +rv.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null}; +rv.prototype.removeParams=function(a){return a.split("?")[0]}; +rv.prototype.removeParams=rv.prototype.removeParams;rv.prototype.isEndpointCFR=rv.prototype.isEndpointCFR;rv.prototype.requestComplete=rv.prototype.requestComplete;rv.getInstance=tv;g.z(uv,g.Vc);g.k=uv.prototype;g.k.Ih=function(){return this.j.Ih()}; +g.k.Vx=function(a){this.j.j=a}; +g.k.p9=function(){var a=window.navigator.onLine;return a===void 0?!0:a}; +g.k.i8=function(){this.B=!0}; +g.k.listen=function(a,b){return this.j.listen(a,b)}; +g.k.wM=function(a){a=Xo(this.j,a);a.then(function(b){g.Pr("use_cfr_monitor")&&tv().requestComplete("generate_204",b)}); +return a}; +uv.prototype.sendNetworkCheckRequest=uv.prototype.wM;uv.prototype.listen=uv.prototype.listen;uv.prototype.enableErrorFlushing=uv.prototype.i8;uv.prototype.getWindowStatus=uv.prototype.p9;uv.prototype.networkStatusHint=uv.prototype.Vx;uv.prototype.isNetworkAvailable=uv.prototype.Ih;uv.getInstance=eqa;g.z(g.vv,g.Vc);g.vv.prototype.Ih=function(){var a=g.La("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0}; +g.vv.prototype.Vx=function(a){var b=g.La("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)}; +g.vv.prototype.wM=function(a){var b=this,c;return g.J(function(d){c=g.La("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.Pr("skip_network_check_if_cfr")&&tv().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Vx(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Ih())})):c?d.return(c(a)):d.return(!0)})};var wv;g.z(xv,jv);xv.prototype.writeThenSend=function(a,b){b||(b={});b=zv(a,b);g.rt()||(this.j=!1);jv.prototype.writeThenSend.call(this,a,b)}; +xv.prototype.sendThenWrite=function(a,b,c){b||(b={});b=zv(a,b);g.rt()||(this.j=!1);jv.prototype.sendThenWrite.call(this,a,b,c)}; +xv.prototype.sendAndWrite=function(a,b){b||(b={});b=zv(a,b);g.rt()||(this.j=!1);jv.prototype.sendAndWrite.call(this,a,b)}; +xv.prototype.awaitInitialization=function(){return this.C.promise};var jqa=g.Ja.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ka("ytNetworklessLoggingInitializationOptions",jqa);g.Av.prototype.isReady=function(){!this.config_&&fpa()&&(this.config_=g.Ju());return!!this.config_};var Wab,Dv,Fv;Wab=g.Ja.ytPubsubPubsubInstance||new g.Gp;Dv=g.Ja.ytPubsubPubsubSubscribedKeys||{};Fv=g.Ja.ytPubsubPubsubTopicToKeys||{};g.Ev=g.Ja.ytPubsubPubsubIsSynchronous||{};g.Gp.prototype.subscribe=g.Gp.prototype.subscribe;g.Gp.prototype.unsubscribeByKey=g.Gp.prototype.uh;g.Gp.prototype.publish=g.Gp.prototype.publish;g.Gp.prototype.clear=g.Gp.prototype.clear;g.Ka("ytPubsubPubsubInstance",Wab);g.Ka("ytPubsubPubsubTopicToKeys",Fv);g.Ka("ytPubsubPubsubIsSynchronous",g.Ev); +g.Ka("ytPubsubPubsubSubscribedKeys",Dv);var pqa={};g.z(Ov,g.O);Ov.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)}; +g.z(Pv,Ov);Pv.prototype.Ib=function(){return this.j};g.z(sqa,g.O);var Qv=Date.now().toString();var Vv={};var $v=Symbol("injectionDeps");Xv.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +wqa.prototype.resolve=function(a){return a instanceof Yv?aw(this,a.key,[],!0):aw(this,a,[])};var bw;var dw=window;var hw=g.Pr("web_enable_lifecycle_monitoring")&&ew()!==0,Cqa=g.Pr("web_enable_lifecycle_monitoring");zqa.prototype.cancel=function(){for(var a=g.w(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.dM||this.scheduler.jk(b.jobId),b.dM=!0;this.B.resolve()};g.k=iw.prototype;g.k.install=function(a){this.plugins.push(a);return this}; +g.k.uninstall=function(){var a=this;g.Ca.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})}; +g.k.transition=function(a,b){var c=this;hw&&yqa(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a}); +if(d){this.B&&(Aqa(this.B),this.B=void 0);Dqa(this,a,b);this.state=a;hw&&fw(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]}); +d(Bqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);}; +g.k.Ida=function(a){var b=g.Ca.apply(1,arguments);g.xt();for(var c=g.w(a),d=c.next(),e={};!d.done;e={bG:void 0},d=c.next())e.bG=d.value,Zna(function(f){return function(){kw(f.bG.name);f.bG.callback.apply(f.bG,g.x(b));lw(f.bG.name)}}(e))}; +g.k.Hda=function(a){var b=g.Ca.apply(1,arguments),c,d,e,f;return g.J(function(h){h.j==1&&(g.xt(),c=g.w(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ha(0);e.dB=d.value;e.TI=void 0;f=function(l){return function(){kw(l.dB.name);var m=l.dB.callback.apply(l.dB,g.x(b));typeof(m==null?void 0:m.then)==="function"?l.TI=m.then(function(){lw(l.dB.name)}):lw(l.dB.name)}}(e); +Zna(f);return e.TI?g.G(h,e.TI,3):h.Ha(3)}e={dB:void 0,TI:void 0};d=c.next();return h.Ha(2)})}; +g.k.j2=function(a){var b=g.Ca.apply(1,arguments),c=this,d=a.map(function(e){return{cR:function(){kw(e.name);e.callback.apply(e,g.x(b));lw(e.name)}, +priority:jw(c,e)}}); +d.length&&(this.B=new zqa(d))}; +g.da.Object.defineProperties(iw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var nw;g.z(mw,iw);mw.prototype.G=function(a,b){var c=this;this.j=g.vt(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); +a(b==null?void 0:b.event)}; +mw.prototype.K=function(a,b){this.j&&(g.Zo.jk(this.j),this.j=null);a(b==null?void 0:b.event)};var Pw=[];g.Ka("yt.logging.transport.getScrapedGelPayloads",function(){return Pw});ow.prototype.storePayload=function(a,b){a=pw(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a}; +ow.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=rw(this,a.keys.splice(0,1)[0]),c=[],d=0;d=0){d=!1;break a}}d=!0}d&&(b=kx(b))&&this.uH(b)}}; +g.k.w1=function(a){return a}; +g.k.D5=function(a){var b=this.Ba;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=tqa(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0}; +g.k.B5=function(a){if(this.Ba){var b=this.Ba,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&tqa(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}}; +g.k.uH=function(a){this.layoutId?this.jb.executeCommand(a,this.layoutId):g.ex(new g.pt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)}; +g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)}; +g.k.xa=function(){this.clear(null);this.Oc(this.ob);for(var a=g.w(this.Fa),b=a.next();!b.done;b=a.next())this.Oc(b.value);g.Nx.prototype.xa.call(this)};g.z(gy,Ox); +gy.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.fx(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}a!=null&&g.np(this.element,a);b.text!=null&&(a=g.Qx(b.text),g.pb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.Nx({I:"span",S:"ytp-ad-button-text",va:a}),g.P(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&& +b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.pb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=fy(b.icon),b!=null&&(this.B=new g.Nx({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.P(this,this.B)),this.D?oe(this.element,this.B.element,0):this.B.Ja(this.element))}}; +gy.prototype.clear=function(){this.hide()}; +gy.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);a=g.w(zsa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(hy,g.O);hy.prototype.xa=function(){this.B&&g.Ss(this.B);this.j.clear();iy=null;g.O.prototype.xa.call(this)}; +hy.prototype.register=function(a,b){b&&this.j.set(a,b)}; +var iy=null;g.z(ly,Ox); +ly.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.R(b.button,g.nI)||null;b==null?g.ex(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.button),this.button.init(Dx("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Qx(a)),this.button.Ja(this.element),this.G&&!g.mp(this.button.element,"ytp-ad-clickable")&&g.np(this.button.element, +"ytp-ad-clickable"),a&&(this.B=new g.Nx({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.Nx({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.P(this,b)),g.P(this,this.B),this.B.Ja(this.element),b=jy(a),oe(this.B.element,b,0)),this.show())}; +ly.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();Ox.prototype.hide.call(this)}; +ly.prototype.show=function(){this.button&&this.button.show();Ox.prototype.show.call(this)};g.z(ny,Ox); +ny.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&my(a)||"";g.pb(c)?Math.random()<.01&&g.fx(Error("Found AdImage without valid image URL")):(this.j?g.jm(this.element,"backgroundImage","url("+c+")"):ee(this.element,{src:c}),ee(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +ny.prototype.clear=function(){this.hide()};g.z(oy,Ox);g.k=oy.prototype;g.k.hide=function(){Ox.prototype.hide.call(this);this.C&&this.C.focus()}; +g.k.show=function(){this.C=document.activeElement;Ox.prototype.show.call(this);this.D.focus()}; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.ex(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.ex(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Dsa(this,b):g.ex(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.k.clear=function(){g.Ys(this.j);this.hide()}; +g.k.NR=function(){this.hide()}; +g.k.EN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.k.OR=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(py,Ox);g.k=py.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.ex(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.ex(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}a!=null&&g.np(this.D,a)}a={};b.defaultText? +(c=g.Qx(b.defaultText),g.pb(c)||(a.buttonText=c,this.api.U().experiments.kb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.kb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Bm(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=fy(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra= +!0,c=fy(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Bm(this.Y,!0),g.Bm(this.G,!1)),g.Bm(this.j,!1)):g.Bm(this.B,!1);g.Bc(a)||this.update(a);b.isToggled&&(g.np(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));qy(this);this.T(this.element,"change",this.GV);this.show()}}; +g.k.onClick=function(a){this.Fa.length>0&&(this.toggleButton(!this.isToggled()),this.GV());Ox.prototype.onClick.call(this,a)}; +g.k.GV=function(){g.rp(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.w(Esa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);qy(this)}; +g.k.clear=function(){this.hide()}; +g.k.toggleButton=function(a){g.rp(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;qy(this)}; +g.k.isToggled=function(){return this.j.checked};g.z(ry,Ws);ry.prototype.K=function(a){if(Array.isArray(a)){a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Fsa&&this.D(b)}};g.z(sy,Ox);g.k=sy.prototype;g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.ex(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.fx(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.fx(Error("AdFeedbackRenderer.title was not set.")),Jsa(this,b)):g.ex(Error("AdFeedbackRenderer.reasons were not set."))}; +g.k.clear=function(){Ts(this.G);Ts(this.Y);this.D.length=0;this.hide()}; +g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();Ox.prototype.hide.call(this);this.C&&this.C.focus()}; +g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;Ox.prototype.show.call(this);this.G.focus()}; +g.k.e0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.k.Dca=function(){this.hide()}; +ty.prototype.Ib=function(){return this.j.element}; +ty.prototype.getCommand=function(){return this.B}; +ty.prototype.isChecked=function(){return this.C.checked};g.z(uy,oy);uy.prototype.NR=function(a){oy.prototype.NR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +uy.prototype.EN=function(a){oy.prototype.EN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +uy.prototype.OR=function(a){oy.prototype.OR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(vy,Ox);g.k=vy.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.ex(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.fx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.R(b.closeOverlayRenderer,g.nI)||null)this.j=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.P(this,this.j),this.j.init(Dx("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.Qx(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c=this.Ka?(this.Ga.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ka-a)/1E3)),a!=this.Xa&&(zy(this.C,{TIME_REMAINING:String(a)}),this.Xa=a)))}};g.z(Hy,Ay);g.k=Hy.prototype; +g.k.init=function(a,b,c){Ay.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.R(b.actionButton,g.nI))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.pb(g.Ud(e[0].url))&&(e[0].url=d.profilePicture)}else g.fx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(Dx("ad-image"),b.image,c);this.G.init(Dx("ad-text"), +b.headline,c);this.D.init(Dx("ad-text"),b.description,c);this.B.init(Dx("button"),a,c);c=dp(this.B.element);cp(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.NF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ea("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ea("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ea("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.Ea("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ea("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ea("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ea("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.IV.bind(this));this.Ga=b.startMs||0;By(this)}else g.ex(Error("FlyoutCtaRenderer has no valid action button."));else g.ex(Error("FlyoutCtaRenderer has no description AdText."));else g.ex(Error("FlyoutCtaRenderer has no headline AdText."));else g.fx(Error("FlyoutCtaRenderer has no image."))}; +g.k.onClick=function(a){Ay.prototype.onClick.call(this,a);this.api.pauseVideo();!g.qe(this.B.element,a.target)&&this.ra&&(this.layoutId?this.jb.executeCommand(this.ra,this.layoutId):g.ex(Error("Missing layoutId for flyout cta.")))}; +g.k.To=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Ka)&&1E3*a.current>=this.Ga&&(Cy(this),g.pp(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; +g.k.Dq=function(){this.clear()}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.IV.bind(this))}; +g.k.show=function(){this.B&&this.B.show();Ay.prototype.show.call(this)}; +g.k.hide=function(){this.B&&this.B.hide();Ay.prototype.hide.call(this)}; +g.k.IV=function(a){a=="hidden"?this.show():this.hide()};g.z(Iy,Ox);g.k=Iy.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.R(this.j.likeButton,v1),b=this.j.dislikeButton&&g.R(this.j.dislikeButton,v1),this.C.init(Dx("toggle-button"),a,c),this.B.init(Dx("toggle-button"),b,c),this.T(this.element,"change",this.JV),this.D.show(100),this.show(),c=g.w(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.jb.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for instream user sentiment."))}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){this.C.hide();this.B.hide();Ox.prototype.hide.call(this)}; +g.k.show=function(){this.C.show();this.B.show();Ox.prototype.show.call(this)}; +g.k.JV=function(){xla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ib("onYtShowToast",this.j.postMessageAction);this.D.hide()}; +g.k.onClick=function(a){this.Fa.length>0&&this.JV();Ox.prototype.onClick.call(this,a)};g.z(Jy,g.O);g.k=Jy.prototype;g.k.xa=function(){this.reset();g.O.prototype.xa.call(this)}; +g.k.reset=function(){g.Ys(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())}; +g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.LV,this);this.D.T(this.B,"mouseout",this.KV,this);this.qa&&(this.D.T(this.B,"focusin",this.LV,this),this.D.T(this.B,"focusout",this.KV,this));this.j?this.j.start():(this.K=this.C=!0,g.jm(this.B,{opacity:this.Y}))}; +g.k.LV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()}; +g.k.KV=function(){this.K?this.G.start():this.j&&this.j.start()}; +g.k.YW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.z(Ry,Ay);g.k=Ry.prototype; +g.k.init=function(a,b,c){Ay.prototype.init.call(this,a,b,c);this.ra=b;(this.Ga=Xsa(this))&&g.fx(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Bc(b))g.ex(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Bc(b.message))g.ex(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=fy(a);b==null?g.ex(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")): +(this.C=new g.Nx({I:"button",Na:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.P(this,this.C),this.C.Ja(this.D.element),this.B=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(Dx("ad-text"),this.ra.message,c),g.P(this,this.B),oe(this.C.element,this.B.element, +0));var d=d===void 0?null:d;c=this.api.U();!(this.Fa.length>0)&&c.B&&(lO?0:"ontouchstart"in document.documentElement&&(Gha()||sl()))&&(this.Oc(this.ob),d&&this.Oc(d),this.Fa=[this.T(this.element,"touchstart",this.D5,this),this.T(this.element,"touchmove",this.C5,this),this.T(this.element,"touchend",this.B5,this)])}}; +g.k.clear=function(){this.Ka.reset();this.hide()}; +g.k.hide=function(){this.D.hide();this.B&&this.B.hide();Cy(this);Ay.prototype.hide.call(this)}; +g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(Usa(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;Ay.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");if(this.Wa||!this.Ga)this.api.onAdUxClicked(this.componentType, +this.layoutId)}}; +g.k.w1=function(a){if(!this.Wa)return this.Ga&&Ny("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.R(a,g.Sy))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b=this.G&&Ysa(this,!0)};g.z(Uy,gy);Uy.prototype.init=function(a,b,c){gy.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.Qx(b.text),a=!g.pb(a));a?b.navigationEndpoint==null?g.fx(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.fx(Error("Button style was not a link-style type in renderer,")):this.show():g.fx(Error("No visit advertiser text was present in the renderer."))};g.z(Vy,Ox); +Vy.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);a=b.text;g.pb(Px(a))?g.fx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),a.init(Dx("simple-ad-badge"),b,c),a.Ja(this.element),g.P(this,a)),this.api.U().experiments.kb("enable_unified_ad_badge_style_fix")&&this.C&& +this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())}; +Vy.prototype.clear=function(){this.hide()};g.z(Wy,Ex);g.z(Xy,g.Fx);g.k=Xy.prototype;g.k.SJ=function(){return this.durationMs}; +g.k.stop=function(){this.j&&this.Hd.Oc(this.j)}; +g.k.Tc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")}; +g.k.getProgressState=function(){return this.B}; +g.k.E5=function(a){g.Qy(a,2)&&this.publish("g")};g.z(Yy,g.Fx);g.k=Yy.prototype;g.k.SJ=function(){return this.durationMs}; +g.k.start=function(){this.j||(this.j=!0,this.Xe.start())}; +g.k.stop=function(){this.j&&(this.j=!1,this.Xe.stop())}; +g.k.Tc=function(){this.qj+=100;var a=!1;this.qj>this.durationMs&&(this.qj=this.durationMs,this.Xe.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.qj/1E3};this.publish("h");a&&this.publish("g")}; +g.k.getProgressState=function(){return this.B};g.z(az,Ay);g.k=az.prototype;g.k.init=function(a,b,c){Ay.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.fx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.B.init(Dx("ad-text"),a,{});this.B.Ja(this.element);g.P(this,this.B)}this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Cy(this);Ay.prototype.hide.call(this)}; +g.k.Dq=function(){this.hide()}; +g.k.To=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof Xy?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof Yy?a.seekableEnd:this.api.getDuration(2,!1))-a.current,zy(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.Zy(a)),TIME_REMAINING:String(Math.ceil(a))}))}}; +g.k.show=function(){By(this);Ay.prototype.show.call(this)};g.z(bz,yy);bz.prototype.onClick=function(a){yy.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.z(cz,Ox); +cz.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.pb(b.text.content)){this.j=new g.Nx({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.P(this,this.j);this.j.Ja(this.element);var d,e;a=((d=b.interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label)||b.text.content;this.element.setAttribute("aria-label",a);var f;if((f=b.interaction)==null?0:f.onTap)this.B=new g.Nx({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.Ux()]}), +g.P(this,this.B),this.B.Ja(this.element);this.show()}}else g.ex(Error("No banner text found in AdDisclosureBanner."))}; +cz.prototype.clear=function(){this.hide()};g.z(fz,g.Nx);fz.prototype.Tc=function(){var a=this.B.getProgressState();this.progressBar.style.width=ez(new dz(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"}; +fz.prototype.onStateChange=function(){g.PO(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Tc,this),this.Tc()):this.j!==-1&&(this.hide(),this.B.uh(this.j),this.j=-1))};g.z(gz,Ox); +gz.prototype.init=function(a,b,c,d){Ox.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.R(c,NG),c=g.R(c,mI),a?(c=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,this.Y),c.Ja(this.G),c.init(Dx("skip-button"),a,this.macros),g.P(this,c)):c&&(a=new Fy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!1),a.Ja(this.G),a.init(Dx("ad-preview"),c,this.macros),Gy(a),g.P(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer, +c=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.Ga),c.init(Dx("instream-user-sentiment"),a,this.macros),g.P(this,c));if(a=g.R(b,O$a))if(a=g.R(a,O$a))c=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!!b.showWithoutLinkedMediaLayout),g.P(this,c),c.Ja(this.C),c.init(Dx("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"Ad",isTemplated:!1}}), +c=new Vy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,c),c.Ja(this.j),c.init(Dx("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d),g.P(this,d),d.Ja(this.j),d.init(Dx("ad-duration-remaining"), +a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,lI))&&(a=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.j),a.init(Dx("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.R(b.visitAdvertiserRenderer,g.nI))&&(c=ata(this)&&this.D?this.D:this.j)&&(d=new Uy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,d),d.Ja(c),d.init(Dx("visit-advertiser"),a,this.macros),ap(d.element),a=dp(d.element), +cp(d.element,a+" This link opens in new tab"));!(d=this.api.U())||g.NO(d)||d.controlsType!="3"&&!d.disableOrganicUi||(d=new fz(this.api,this.B),d.Ja(this.Ka),g.P(this,d));b.adDisclosureBannerRenderer&&(b=g.R(b.adDisclosureBannerRenderer,$$a))&&(d=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),d.Ja(this.ra),d.init(Dx("ad-disclosure-banner"),b),g.P(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.np(this.element,"ytp-ad-player-overlay-updated-focus-style"); +this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()}; +gz.prototype.clear=function(){this.hide()};kz.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)}; +kz.prototype.get=function(a){return this.j.get(a)}; +kz.prototype.remove=function(a){this.j.remove(a)};var oz=null,pz=null,qz=null,gta=null;g.Ka("yt.www.ads.eventcache.getLastCompanionData",function(){return oz}); +g.Ka("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.Ka("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return pz}); +g.Ka("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return qz}); +g.Ka("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return gta});var ita=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rz.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.cq.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)}; +rz.prototype.replace=function(a,b){a=g.w(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];kta(this,b)};var abb=window.location.hostname.split(".").slice(-2).join("."),C1;tz.getInstance=function(){C1=g.La("yt.clientLocationService.instance");C1||(C1=new tz,g.Ka("yt.clientLocationService.instance",C1));return C1}; +g.k=tz.prototype; +g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C|| +this.locationPlayabilityToken}; +g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.pr("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=sz(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.ds("YT_CL",JSON.stringify({loctok:a}),15552E3,abb,!0))}; +g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=sz(this))&&this.localStorage.remove("yt-location-playability-token"):g.fs("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; +g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;g.pr("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b, +maximumAge:0,timeout:c})})}; +g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b}; +g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=ota.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)}; +g.k.get=function(a){if(this.contains(a))return this.j[a]}; +g.k.set=function(a,b){this.j[a]=b}; +g.k.Xn=function(){return Object.keys(this.j)}; +g.k.remove=function(a){delete this.j[a]};wz.prototype.getModuleId=function(a){return a.serviceId.getModuleId()}; +wz.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Ld(b)}}return a}; +wz.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a}; +new wz;var D1={},pta=(D1.WEB_UNPLUGGED="^unplugged/",D1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",D1.WEB_UNPLUGGED_OPS="^unplugged/",D1.WEB_UNPLUGGED_PUBLIC="^unplugged/",D1.WEB_CREATOR="^creator/",D1.WEB_KIDS="^kids/",D1.WEB_EXPERIMENTS="^experiments/",D1.WEB_MUSIC="^music/",D1.WEB_REMIX="^music/",D1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",D1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",D1);zz.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?Lu:c;var d={context:g.uz(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.yz(this.C());(e=(f=g.R(a.commandMetadata,g.u1))==null?void 0:f.apiUrl)&&(b=e);f=jna(gs(b));a=Object.assign({},{command:a},void 0);d={input:f,ov:hs(f),cq:d,config:a};d.config.Gw?d.config.Gw.identity=c:d.config.Gw={identity:c};return d}g.ex(new g.pt("Error: Failed to create Request from Command.",a))}; +g.da.Object.defineProperties(zz.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.z(Qz,zz);g.z(Rz,Qz);Rz.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",ov:hs("/getDatasyncIdsEndpoint","GET"),cq:{}}}; +Rz.prototype.C=function(){return[]}; +Rz.prototype.B=function(){}; +Rz.prototype.j=function(){};var bbb={},Wta=(bbb.GET_DATASYNC_IDS=xz(Rz),bbb);var E1={},wta=(E1.auto_search="LATENCY_ACTION_AUTO_SEARCH",E1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",E1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",E1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",E1.app_startup="LATENCY_ACTION_APP_STARTUP",E1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",E1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",E1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",E1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS", +E1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",E1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",E1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",E1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",E1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",E1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",E1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",E1["asset.metadata"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",E1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",E1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",E1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",E1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",E1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",E1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",E1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS", +E1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",E1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",E1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",E1.browse="LATENCY_ACTION_BROWSE",E1.cast_splash="LATENCY_ACTION_CAST_SPLASH",E1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",E1.channels="LATENCY_ACTION_CHANNELS",E1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",E1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS", +E1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",E1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",E1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",E1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",E1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",E1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",E1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",E1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT", +E1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",E1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",E1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",E1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",E1.chips="LATENCY_ACTION_CHIPS",E1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",E1["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",E1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT", +E1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",E1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",E1.embed="LATENCY_ACTION_EMBED",E1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",E1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",E1.explore="LATENCY_ACTION_EXPLORE",E1.favorites="LATENCY_ACTION_FAVORITES",E1.home="LATENCY_ACTION_HOME",E1.inboarding="LATENCY_ACTION_INBOARDING",E1.library="LATENCY_ACTION_LIBRARY",E1.live= +"LATENCY_ACTION_LIVE",E1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",E1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",E1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",E1.onboarding="LATENCY_ACTION_ONBOARDING",E1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",E1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",E1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",E1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",E1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS", +E1["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",E1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",E1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",E1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",E1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",E1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",E1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",E1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING", +E1["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",E1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",E1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",E1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",E1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",E1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",E1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",E1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",E1["owner.videos"]= +"LATENCY_ACTION_CREATOR_CMS_VIDEOS",E1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",E1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",E1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",E1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",E1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",E1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",E1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",E1.prebuffer="LATENCY_ACTION_PREBUFFER", +E1.prefetch="LATENCY_ACTION_PREFETCH",E1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",E1.profile_switcher="LATENCY_ACTION_LOGIN",E1.reel_watch="LATENCY_ACTION_REEL_WATCH",E1.results="LATENCY_ACTION_RESULTS",E1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",E1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",E1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",E1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",E1.search_ui= +"LATENCY_ACTION_SEARCH_UI",E1.search_suggest="LATENCY_ACTION_SUGGEST",E1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",E1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",E1.seek="LATENCY_ACTION_PLAYER_SEEK",E1.settings="LATENCY_ACTION_SETTINGS",E1.store="LATENCY_ACTION_STORE",E1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",E1.tenx="LATENCY_ACTION_TENX",E1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",E1.watch="LATENCY_ACTION_WATCH",E1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN", +E1["watch,watch7"]="LATENCY_ACTION_WATCH",E1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",E1["watch,watch7ad"]="LATENCY_ACTION_WATCH",E1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",E1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",E1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",E1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",E1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",E1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",E1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT", +E1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",E1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",E1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",E1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",E1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",E1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",E1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",E1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT", +E1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",E1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",E1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",E1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",E1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",E1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",E1);g.z($z,Pu);var Kta=new Tu("aft-recorded",$z);var cA=g.Ja.ytLoggingLatencyUsageStats_||{};g.Ka("ytLoggingLatencyUsageStats_",cA);aA.prototype.tick=function(a,b,c,d){dA(this,"tick_"+a+"_"+b)||g.Ht("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})}; +aA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");dA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Ht("latencyActionInfo",a,{cttAuthInfo:c}))}; +aA.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e=this.start&&(a=2&&c.ssdaiAdsConfig&&Ny("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||zva(a)})}; +uD.prototype.HO=function(){lva(this.j)};vD.prototype.TE=function(){var a=this;kva(this.j,function(){var b=tC(a.slot.Ca,"metadata_type_ad_break_request_data");return a.B.get().fetch({E3:b.getAdBreakUrl,FX:new g.qD(b.WS,b.VS)})})}; +vD.prototype.HO=function(){lva(this.j)};wD.prototype.TE=function(){var a=this.slot.Ca,b,c=(b=this.slot.fulfilledLayout)!=null?b:tC(a,"metadata_type_fulfilled_layout");Qua(this.callback,this.slot,c)}; +wD.prototype.HO=function(){GC(this.callback,this.slot,new rC("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};yD.prototype.build=function(a,b){return b.fulfilledLayout||xD(b,{Nd:["metadata_type_fulfilled_layout"]})?new wD(a,b):this.C(a,b)};g.z(zD,yD); +zD.prototype.C=function(a,b){if(xD(b,{Nd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new uD(a,b,this.j,this.B,this.Me,this.Aa,this.Oa,this.Ia,this.Gc);if(xD(b,{Nd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new vD(a,b,this.j,this.B,this.Me,this.Aa);throw new rC("Unsupported slot with type: "+b.slotType+" and client metadata: "+uC(b.Ca)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(AD,yD);AD.prototype.C=function(a,b){throw new rC("Unsupported slot with type: "+b.slotType+" and client metadata: "+uC(b.Ca)+" in DefaultFulfillmentAdapterFactory.");};g.k=Ava.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Hf(this.slot,a,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=tC(a.Ca,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.vc(this.slot,a),Iya(this.B,this.slot, +b)):Ny("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}}; +g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new qC("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.Nc(this.slot,a,b),Cva(this))};g.z(FD,g.Fx);g.k=FD.prototype;g.k.Zb=function(){return this.B.slot}; +g.k.Za=function(){return this.B.layout}; +g.k.init=function(){this.C.get().addListener(this)}; +g.k.release=function(){this.C.get().removeListener(this);this.dispose()}; +g.k.sQ=function(){}; +g.k.qQ=function(){}; +g.k.pQ=function(){}; +g.k.qK=function(){}; +g.k.startRendering=function(a){var b=this;ED(this.B,a,function(){return void b.FM()})}; +g.k.FM=function(){this.C.get().FM(this.j)}; +g.k.Kd=function(a,b){var c=this;ED(this.B,a,function(){var d=c.C.get();y7a(d,c.j,3);c.j=[];c.callback.Nc(c.slot,a,b)})}; +g.k.xa=function(){this.C.La()||this.C.get().removeListener(this);g.Fx.prototype.xa.call(this)}; +g.da.Object.defineProperties(FD.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});MD.prototype.Rh=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&Fva(a)){var d=this.C.get(b);d&&c.push.apply(c,g.x(d))}PD(this,a,c);this.j.add(a);b&&this.j.add(b)}; +MD.prototype.Xb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&Fva(a);c&&(b=!this.j.has(c));this.Rh(a,b)}};g.z(Iva,Ex);g.z(UD,FD);g.k=UD.prototype;g.k.hg=function(a,b){ID("ads-engagement-panel-layout",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,XH),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new Iva(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z(Kva,Ex);g.z(VD,FD);g.k=VD.prototype;g.k.hg=function(a,b){ID("banner-image",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,VH),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new Kva(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z(WD,Ex);g.z(XD,FD);g.k=XD.prototype;g.k.hg=function(a,b){ID("action-companion",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,SH),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new WD(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z(Nva,Ex);g.z(YD,FD);g.k=YD.prototype;g.k.hg=function(a,b){ID("image-companion",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,TH),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Nva(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z(Pva,Ex);g.z(ZD,FD);g.k=ZD.prototype;g.k.hg=function(a,b){ID("shopping-companion",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Pva(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z($D,FD);g.k=$D.prototype;g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new WD(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(){}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)}; +g.k.hg=function(){};g.k=Wva.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().wE.push(this);var a=tC(this.layout.Ca,"metadata_type_video_length_seconds"),b=tC(this.layout.Ca,"metadata_type_active_view_traffic_type");JD(this.layout.Eb)&&l0(this.zb.get(),this.layout.layoutId,{At:b,lI:a,listener:this})}; +g.k.release=function(){this.Ia.get().removeListener(this);s7a(this.Ia.get(),this);JD(this.layout.Eb)&&m0(this.zb.get(),this.layout.layoutId)}; +g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; +g.k.Kd=function(a,b){T6a(this.Aa.get())&&!this.j&&(this.eb.Xb("abandon"),this.j=!0);this.callback.Nc(this.slot,a,b)}; +g.k.Ij=function(a){switch(a.id){case "part2viewed":this.eb.Xb("start");this.eb.Xb("impression");break;case "videoplaytime25":this.eb.Xb("first_quartile");break;case "videoplaytime50":this.eb.Xb("midpoint");break;case "videoplaytime75":this.eb.Xb("third_quartile");break;case "videoplaytime100":T6a(this.Aa.get())?this.j||(this.eb.Xb("complete"),this.j=!0):this.eb.Xb("complete");TD(this.eb)&&RD(this.eb,Infinity,!0);break;case "engagedview":TD(this.eb)||this.eb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:Ny("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.gj=function(){}; +g.k.oh=function(){}; +g.k.Jj=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.Bg=function(){}; +g.k.Ni=function(){}; +g.k.PR=function(a){TD(this.eb)&&RD(this.eb,a*1E3,!1)}; +g.k.Lj=function(){}; +g.k.gy=function(){this.eb.Xb("active_view_measurable")}; +g.k.iy=function(){this.eb.Xb("active_view_viewable")}; +g.k.ey=function(){this.eb.Xb("active_view_fully_viewable_audible_half_duration")}; +g.k.Zx=function(){this.eb.Xb("audio_measurable")}; +g.k.Yx=function(){this.eb.Xb("audio_audible")};g.z(aE,FD);g.k=aE.prototype;g.k.init=function(){FD.prototype.init.call(this);var a=tC(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac};this.j.push(new Wy(a,this.layout.layoutId,tC(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))}; +g.k.rq=function(){this.D||this.Ia.get().resumeVideo(1)}; +g.k.startRendering=function(a){FD.prototype.startRendering.call(this,a);t0(this.Ia.get(),"ad-showing");this.callback.vc(this.slot,a);this.G.zt=this}; +g.k.Kd=function(a,b){FD.prototype.Kd.call(this,a,b);u0(this.Ia.get(),"ad-showing");Y0(this.G,this)}; +g.k.hg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ia.get().Fo(1))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo()}}; +g.k.xa=function(){FD.prototype.xa.call(this)};g.z(bE,Ex);g.z(cE,FD);g.k=cE.prototype;g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new bE(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(){}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)}; +g.k.hg=function(){};g.z(dE,Ex);g.z(eE,FD);eE.prototype.init=function(){FD.prototype.init.call(this);var a=g.R(this.layout.renderingContent,sE)||tC(this.layout.Ca,"metadata_type_ad_action_interstitial_renderer"),b=GD(this.eb);this.j.push(new dE(a,b,this.layout.layoutId,{adsClientData:this.layout.ac},!0,!0))}; +eE.prototype.startRendering=function(a){FD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; +eE.prototype.hg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=tC(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.EL(this.Zb(),this.layout)}}; +eE.prototype.xa=function(){FD.prototype.xa.call(this)};gE.prototype.build=function(a,b,c,d){if(fE(d,{Nd:["metadata_type_ad_break_response_data"],Fe:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Ava(a,c,d,this.B,this.C,this.j);throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+uC(d.Ca)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(Zva,Ex);g.z(hE,FD);g.k=hE.prototype;g.k.hg=function(a,b){ID("ads-engagement-panel",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,UH),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Zva(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.eb.Xb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};g.z(iE,FD);g.k=iE.prototype;g.k.hg=function(a,b){ID("top-banner-image-text-icon-buttoned",a,this.K.get().nj,this.Oa.get(),this.D,this.G,this.Zb(),this.Za(),b)}; +g.k.startRendering=function(a){HD(this.eb,this.Zb(),this.Za(),g.R(this.Za().renderingContent,WH),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new bE(b,c,d,e,f)},this.j); +FD.prototype.startRendering.call(this,a)}; +g.k.vc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Oa.get().Ki():Ny("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.xa=function(){EC(this.qc(),this);FD.prototype.xa.call(this)};bwa.prototype.build=function(a,b,c,d){if(fE(d,$va())||g.R(d.renderingContent,UH)!==void 0)return new hE(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Mva())||g.R(d.renderingContent,SH)!==void 0)return new XD(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Ova())||g.R(d.renderingContent,TH)!==void 0)return new YD(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Qva()))return new ZD(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Vva()))return new $D(a,c,d,this.Bc,this.Oa,this.qc, +this.zb,this.j);if(fE(d,Lva())||g.R(d.renderingContent,VH)!==void 0)return new VD(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,awa())||g.R(d.renderingContent,WH)!==void 0)return new iE(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Xva()))return new cE(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);if(fE(d,Jva())||g.R(d.renderingContent,XH)!==void 0)return new UD(a,c,d,this.Bc,this.Oa,this.qc,this.zb,this.j);throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ +uC(d.Ca)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.z(jE,Ex);g.z(kE,FD);kE.prototype.init=function(){FD.prototype.init.call(this);var a=tC(this.layout.Ca,"metadata_type_player_underlay_renderer");this.j.push(new jE(g.R(a,P$a),this.layout.layoutId,{adsClientData:this.layout.ac}))}; +kE.prototype.hg=function(){}; +kE.prototype.startRendering=function(a){FD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)}; +kE.prototype.xa=function(){FD.prototype.xa.call(this)};cwa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.w(ND()),f=e.next();!f.done;f=e.next())b.push(f.value);if(fE(d,{Nd:b,Fe:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new kE(a,c,d,this.Bc);throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+uC(d.Ca)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=dwa.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.eb.Xb("impression"),AG(this.Oi,a,"normal"))}; +g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new qC("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Nc(this.slot,a,b)};g.k=fwa.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.vc(this.slot,a),this.eb.Xb("impression"),AG(this.Oi,a,"normal"))}; +g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Hf(this.slot,a,new qC("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.Nc(this.slot,a,b)};lE.prototype.build=function(a,b,c,d){if(!this.Aa.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(fE(d,ewa()))return new dwa(a,c,d,this.Oa,this.Oi)}else if(fE(d,{Nd:[],Fe:["LAYOUT_TYPE_FORECASTING"]}))return new fwa(a,c,d,this.Oa,this.Oi);throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+uC(d.Ca)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(iwa,Ex);g.z(mE,FD);g.k=mE.prototype;g.k.init=function(){FD.prototype.init.call(this);var a=g.R(this.layout.renderingContent,rE)||tC(this.layout.Ca,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.ac};this.j.push(new iwa(a,tC(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))}; +g.k.rq=function(){this.D||this.Ia.get().resumeVideo(2)}; +g.k.startRendering=function(a){FD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.zt=this}; +g.k.Kd=function(a,b){FD.prototype.Kd.call(this,a,b);Y0(this.G,this)}; +g.k.hg=function(a){if(eJ(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Fo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser-link":this.Ia.get().pauseVideo();jwa(this).mM();break; +case "skip-button":if(a=jwa(this),!this.layout.renderingContent&&a.KK)Ny("Requesting to skip by LegacyPlayerBytes when components enabled"),a.qy(this.Zb(),this.layout);else{var b;(a=(b=tC(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.EL(this.Zb(),this.layout)}}}; +g.k.xa=function(){FD.prototype.xa.call(this)};g.z(nE,FD);g.k=nE.prototype;g.k.init=function(){FD.prototype.init.call(this);var a=g.R(this.layout.renderingContent,qE)||tC(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac},c;(c=!!this.layout.renderingContent)||(c=!oE(this).KK);this.j.push(new Wy(a,this.layout.layoutId,tC(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))}; +g.k.rq=function(){this.D||this.Ia.get().resumeVideo(2)}; +g.k.startRendering=function(a){FD.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.zt=this}; +g.k.Kd=function(a,b){FD.prototype.Kd.call(this,a,b);Y0(this.G,this)}; +g.k.hg=function(a){if(eJ(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Fo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();oE(this).mM();break;case "skip-button":if(a= +oE(this),!this.layout.renderingContent&&a.KK)Ny("Requesting to skip by LegacyPlayerBytes"),a.qy(this.Zb(),this.layout);else{var b;(a=(b=tC(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.EL(this.Zb(),this.layout)}}}; +g.k.xa=function(){FD.prototype.xa.call(this)};g.z(lwa,Ex);g.z(pE,FD);g.k=pE.prototype;g.k.startRendering=function(a){var b=this;ED(this.B,a,function(){b.j.push(new lwa(tC(b.layout.Ca,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.ac));b.FM();b.callback.vc(b.slot,a);g.U(k0(b.Ia.get(),1),512)&&b.callback.Hf(b.Zb(),b.Za(),new qC("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.k.Ni=function(){}; +g.k.Bg=function(a){if(a.state.isError()){var b;this.callback.Hf(this.Zb(),this.Za(),new qC("A player error happened during adNotify",{playerErrorCode:(b=a.state.eh)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.k.onFullscreenToggled=function(){}; +g.k.oh=function(){}; +g.k.Jj=function(){}; +g.k.gj=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Ij=function(){}; +g.k.Lj=function(){}; +g.k.hg=function(){};nwa.prototype.build=function(a,b,c,d){if(a=tE(a,c,d,this.Bc,this.Ia,this.Oa,this.B,this.j,this.Aa))return a;throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+uC(d.Ca)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=owa.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().wE.push(this);var a=tC(this.layout.Ca,"metadata_type_video_length_seconds"),b=tC(this.layout.Ca,"metadata_type_active_view_traffic_type"),c=tC(this.layout.Ca,"metadata_type_active_view_identifier");JD(this.layout.Eb)&&l0(this.zb.get(),this.layout.layoutId,{At:b,lI:a,listener:this,b7:c})}; +g.k.release=function(){this.Ia.get().removeListener(this);s7a(this.Ia.get(),this);JD(this.layout.Eb)&&m0(this.zb.get(),this.layout.layoutId)}; +g.k.startRendering=function(a){this.callback.vc(this.slot,a)}; +g.k.Kd=function(a,b){wE(this,"abandon");this.callback.Nc(this.slot,a,b)}; +g.k.Ij=function(a){switch(a.id){case "part2viewed":this.eb.Xb("start");this.eb.Xb("impression");break;case "videoplaytime25":this.eb.Xb("first_quartile");break;case "videoplaytime50":this.eb.Xb("midpoint");break;case "videoplaytime75":this.eb.Xb("third_quartile");break;case "videoplaytime100":wE(this,"complete");TD(this.eb)&&RD(this.eb,Infinity,!0);break;case "engagedview":TD(this.eb)||this.eb.Xb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:Ny("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.gj=function(){}; +g.k.oh=function(){}; +g.k.Jj=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.Bg=function(a){this.j||(g.Qy(a,4)&&!g.Qy(a,2)?QD(this.eb,"pause"):Py(a,4)<0&&!(Py(a,2)<0)&&QD(this.eb,"resume"))}; +g.k.Ni=function(){}; +g.k.PR=function(a){TD(this.eb)&&RD(this.eb,a*1E3,!1)}; +g.k.Lj=function(){wE(this,"swipe")}; +g.k.gy=function(){this.eb.Xb("active_view_measurable")}; +g.k.iy=function(){this.eb.Xb("active_view_viewable")}; +g.k.ey=function(){this.eb.Xb("active_view_fully_viewable_audible_half_duration")}; +g.k.Zx=function(){this.eb.Xb("audio_measurable")}; +g.k.Yx=function(){this.eb.Xb("audio_audible")};pwa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.w(ND()),f=e.next();!f.done;f=e.next())b.push(f.value);if(fE(d,{Nd:b,Fe:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new owa(a,c,d,this.Ia,this.Oa,this.Aa,this.zb):new Wva(a,c,d,this.Ia,this.Oa,this.Aa,this.zb);throw new qC("Unsupported layout with type: "+d.layoutType+" and client metadata: "+uC(d.Ca)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); +};var AE={contentCpn:"",Gt:new Map};xwa.prototype.Gk=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Kf.Hm(),c));zE(this.Kf,a,b)};var gbb,H1,ywa; +gbb={Tfa:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",qga:"AUTHENTICATION_MALFORMED",rga:"AUTHENTICATION_MISSING",vga:"BAD_REQUEST",Cga:"CAST_SESSION_DEVICE_MISMATCHED",Dga:"CAST_SESSION_VIDEO_MISMATCHED",Ega:"CAST_TOKEN_EXPIRED",Fga:"CAST_TOKEN_FAILED",Gga:"CAST_TOKEN_MALFORMED",Hga:"CGI_PARAMS_MALFORMED",Iga:"CGI_PARAMS_MISSING",gha:"DEVICE_FALLBACK",Bha:"GENERIC_WITH_LINK_AND_CPN",Cha:"ERROR_HDCP",Dha:"LICENSE",Fha:"VIDEO_UNAVAILABLE",Lha:"FORMAT_UNAVAILABLE",Qha:"GEO_FAILURE", +iia:"HTML5_AUDIO_RENDERER_ERROR",jia:"GENERIC_WITHOUT_LINK",kia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",lia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",mia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",oia:"HTML5_SPS_UMP_STATUS_REJECTED",yia:"INVALID_DRM_MESSAGE",jka:"PURCHASE_NOT_FOUND",kka:"PURCHASE_REFUNDED",rka:"RENTAL_EXPIRED",xka:"RETRYABLE_ERROR",Fka:"SERVER_ERROR",Nka:"SIGNATURE_EXPIRED",Uka:"STOPPED_BY_ANOTHER_PLAYBACK",Vka:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Wka:"STREAMING_NOT_ALLOWED", +Xka:"STREAM_LICENSE_NOT_FOUND",hla:"TOO_MANY_REQUESTS",ila:"TOO_MANY_REQUESTS_WITH_LINK",jla:"TOO_MANY_STREAMS_PER_ENTITLEMENT",kla:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Gla:"VIDEO_FORBIDDEN",Hla:"VIDEO_NOT_FOUND",yga:"BROWSER_OR_EXTENSION_ERROR"};H1={}; +g.EU=(H1.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",H1.DEVICE_FALLBACK="Sorry, this video is not available on this device.",H1.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",H1.LICENSE="Sorry, there was an error licensing this video.",H1.VIDEO_UNAVAILABLE= +"Video unavailable",H1.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",H1.GEO_FAILURE="This video isn't available in your country.",H1.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",H1.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +H1.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",H1.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",H1.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",H1.PURCHASE_NOT_FOUND="This video requires payment.",H1.PURCHASE_REFUNDED="This video's purchase has been refunded.",H1.RENTAL_EXPIRED="This video's rental has expired.",H1.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",H1.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",H1.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",H1.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",H1.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",H1.SERVER_ERROR="There was an internal server error. Please try again later.",H1.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",H1.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",H1.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",H1.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",H1.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",H1.TOO_MANY_REQUESTS="Please log in to watch this video.", +H1.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",H1.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",H1.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",H1.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",H1.VIDEO_FORBIDDEN="Access to this video is forbidden.",H1.VIDEO_NOT_FOUND="This video can not be found.",H1.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",H1); +ywa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED", +5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var hbb;var ibb=g.wb(),jbb=ibb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!jbb||jbb.length<2)hbb=void 0;else{var kbb=ibb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);hbb=kbb&&kbb.length===6?Number(kbb[5].replace("_",".")):0}var bQ=hbb,zU=bQ>=0;g.z(g.OE,Ws);g.OE.prototype.T=function(a,b,c,d,e){return Ws.prototype.T.call(this,a,b,c,d,e)};var I1={},zN=(I1.FAIRPLAY="fairplay",I1.PLAYREADY="playready",I1.WIDEVINE="widevine",I1.CLEARKEY=null,I1.FLASHACCESS=null,I1.UNKNOWN=null,I1.WIDEVINE_CLASSIC=null,I1);PE.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var J1={},HL=(J1.WIDTH={name:"width",video:!0,valid:640,zo:99999},J1.HEIGHT={name:"height",video:!0,valid:360,zo:99999},J1.FRAMERATE={name:"framerate",video:!0,valid:30,zo:9999},J1.BITRATE={name:"bitrate",video:!0,valid:3E5,zo:2E9},J1.EOTF={name:"eotf",video:!0,valid:"bt709",zo:"catavision"},J1.CHANNELS={name:"channels",video:!1,valid:2,zo:99},J1.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",zo:"invalidformat"},J1.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +zo:"nope"},J1.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",zo:"av99.0.05M.08"},J1.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",zo:"invalid"},J1);var lbb=["h","H"],mbb=["9","("],nbb=["9h","(h"],obb=["8","*"],pbb=["a","A"],qbb=["o","O"],rbb=["m","M"],sbb=["mac3","MAC3"],tbb=["meac3","MEAC3"],K1={},JIa=(K1.h=lbb,K1.H=lbb,K1["9"]=mbb,K1["("]=mbb,K1["9h"]=nbb,K1["(h"]=nbb,K1["8"]=obb,K1["*"]=obb,K1.a=pbb,K1.A=pbb,K1.o=qbb,K1.O=qbb,K1.m=rbb,K1.M=rbb,K1.mac3=sbb,K1.MAC3=sbb,K1.meac3=tbb,K1.MEAC3=tbb,K1),ubb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),rDa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L1={},VE=(L1["0"]="f",L1["160"]="h",L1["133"]="h",L1["134"]="h",L1["135"]="h",L1["136"]="h",L1["137"]="h",L1["264"]="h",L1["266"]="h",L1["138"]="h",L1["298"]="h",L1["299"]="h",L1["304"]="h",L1["305"]="h",L1["214"]="h",L1["216"]="h",L1["374"]="h",L1["375"]="h",L1["140"]="a",L1["141"]="ah",L1["327"]="sa",L1["258"]="m",L1["380"]="mac3",L1["328"]="meac3",L1["161"]="H",L1["142"]="H",L1["143"]="H",L1["144"]="H",L1["222"]="H",L1["223"]="H",L1["145"]="H",L1["224"]="H",L1["225"]="H",L1["146"]="H",L1["226"]= +"H",L1["227"]="H",L1["147"]="H",L1["384"]="H",L1["376"]="H",L1["385"]="H",L1["377"]="H",L1["149"]="A",L1["261"]="M",L1["381"]="MAC3",L1["329"]="MEAC3",L1["598"]="9",L1["278"]="9",L1["242"]="9",L1["243"]="9",L1["244"]="9",L1["775"]="9",L1["776"]="9",L1["777"]="9",L1["778"]="9",L1["779"]="9",L1["780"]="9",L1["781"]="9",L1["782"]="9",L1["783"]="9",L1["247"]="9",L1["248"]="9",L1["353"]="9",L1["355"]="9",L1["356"]="9",L1["271"]="9",L1["577"]="9",L1["313"]="9",L1["579"]="9",L1["272"]="9",L1["302"]="9", +L1["303"]="9",L1["407"]="9",L1["408"]="9",L1["308"]="9",L1["315"]="9",L1["330"]="9h",L1["331"]="9h",L1["332"]="9h",L1["333"]="9h",L1["334"]="9h",L1["335"]="9h",L1["336"]="9h",L1["337"]="9h",L1["338"]="so",L1["600"]="o",L1["250"]="o",L1["251"]="o",L1["194"]="*",L1["195"]="*",L1["220"]="*",L1["221"]="*",L1["196"]="*",L1["197"]="*",L1["279"]="(",L1["280"]="(",L1["317"]="(",L1["318"]="(",L1["273"]="(",L1["274"]="(",L1["357"]="(",L1["358"]="(",L1["275"]="(",L1["359"]="(",L1["360"]="(",L1["276"]="(",L1["583"]= +"(",L1["584"]="(",L1["314"]="(",L1["585"]="(",L1["561"]="(",L1["277"]="(",L1["361"]="(h",L1["362"]="(h",L1["363"]="(h",L1["364"]="(h",L1["365"]="(h",L1["366"]="(h",L1["591"]="(h",L1["592"]="(h",L1["367"]="(h",L1["586"]="(h",L1["587"]="(h",L1["368"]="(h",L1["588"]="(h",L1["562"]="(h",L1["409"]="(",L1["410"]="(",L1["411"]="(",L1["412"]="(",L1["557"]="(",L1["558"]="(",L1["394"]="1",L1["395"]="1",L1["396"]="1",L1["397"]="1",L1["787"]="1",L1["788"]="1",L1["398"]="1",L1["399"]="1",L1["400"]="1",L1["401"]= +"1",L1["571"]="1",L1["402"]="1",L1["694"]="1h",L1["695"]="1h",L1["696"]="1h",L1["697"]="1h",L1["698"]="1h",L1["699"]="1h",L1["700"]="1h",L1["701"]="1h",L1["702"]="1h",L1["703"]="1h",L1["386"]="3",L1["387"]="w",L1["406"]="6",L1["645"]="(",L1["646"]="(",L1["647"]="(",L1["648"]="(",L1["649"]="(",L1["650"]="(",L1["651"]="(",L1["652"]="(",L1["653"]="(",L1["654"]="(",L1["655"]="(",L1["656"]="(",L1["657"]="(",L1["658"]="(",L1["659"]="(",L1["660"]="(",L1["661"]="(",L1["662"]="(",L1["663"]="(",L1["664"]="(", +L1["665"]="(",L1["666"]="(",L1["667"]="(",L1["668"]="(",L1["669"]="(",L1["670"]="(",L1["671"]="(",L1["672"]="(",L1["673"]="(",L1["674"]="(h",L1["675"]="(h",L1["676"]="(h",L1["677"]="(h",L1["678"]="(h",L1["679"]="(h",L1["680"]="(h",L1["681"]="(h",L1["682"]="(h",L1["683"]="(h",L1["684"]="(h",L1["685"]="(h",L1["686"]="(h",L1["687"]="(h",L1["688"]="A",L1["689"]="A",L1["690"]="A",L1["691"]="MEAC3",L1["773"]="i",L1);var M1={},iIa=(M1.STEREO_LAYOUT_UNKNOWN=0,M1.STEREO_LAYOUT_LEFT_RIGHT=1,M1.STEREO_LAYOUT_TOP_BOTTOM=2,M1);var N1,tL;N1={};g.RE=(N1.auto=0,N1.tiny=144,N1.light=144,N1.small=240,N1.medium=360,N1.large=480,N1.hd720=720,N1.hd1080=1080,N1.hd1440=1440,N1.hd2160=2160,N1.hd2880=2880,N1.highres=4320,N1);tL={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var TE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");SE.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};WE.prototype.Le=function(){return this.containerType===2}; +WE.prototype.isEncrypted=function(){return!!this.me}; +WE.prototype.Gh=function(){return!!this.audio}; +WE.prototype.zg=function(){return!!this.video};g.z(sF,g.Fx);g.k=sF.prototype;g.k.appendBuffer=function(a,b,c){if(this.Jd.YE()!==this.appendWindowStart+this.start||this.Jd.PJ()!==this.appendWindowEnd+this.start||this.Jd.Dc()!==this.timestampOffset+this.start)this.Jd.supports(1),this.Jd.vT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Jd.Nq(this.timestampOffset+this.start);this.Jd.appendBuffer(a,b,c)}; +g.k.abort=function(){this.Jd.abort()}; +g.k.remove=function(a,b){this.Jd.remove(a+this.start,b+this.start)}; +g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.k.clear=function(){this.Jd.clear()}; +g.k.vT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b}; +g.k.kQ=function(){return this.timestampOffset+this.start}; +g.k.YE=function(){return this.appendWindowStart}; +g.k.PJ=function(){return this.appendWindowEnd}; +g.k.Nq=function(a){this.timestampOffset=a}; +g.k.Dc=function(){return this.timestampOffset}; +g.k.oe=function(a){a=this.Jd.oe(a===void 0?!1:a);return rF(a,this.start,this.end)}; +g.k.Ek=function(){return this.Jd.Ek()}; +g.k.oK=function(){return this.Jd.oK()}; +g.k.Pm=function(){return this.Jd.Pm()}; +g.k.RQ=function(){return this.Jd.RQ()}; +g.k.Kz=function(){this.Jd.Kz()}; +g.k.Jx=function(a){return this.Jd.Jx(a)}; +g.k.ex=function(){return this.Jd.ex()}; +g.k.YJ=function(){return this.Jd.YJ()}; +g.k.tU=function(a,b){this.Jd.tU(a,b)}; +g.k.supports=function(a){return this.Jd.supports(a)}; +g.k.Jr=function(){return this.Jd.Jr()}; +g.k.isView=function(){return!0}; +g.k.gJ=function(){return this.Jd.gJ()?this.isActive:!1}; +g.k.isLocked=function(){return this.pI&&!this.isActive}; +g.k.uc=function(a){a=this.Jd.uc(a);a.vw=this.start+"-"+this.end;return a}; +g.k.ZJ=function(){return this.Jd.ZJ()}; +g.k.iF=function(){return this.Jd.iF()}; +g.k.eQ=function(){return this.Jd.eQ()}; +g.k.xa=function(){Hx(this.Jd,this.YY);g.Fx.prototype.xa.call(this)}; +g.k.RF=function(){return this.Jd.RF()}; +g.k.kJ=function(){this.Jd.kJ()};var JW=!1;g.z(uF,g.Fx);g.k=uF.prototype;g.k.appendBuffer=function(a,b,c){this.qE=!1;c&&(this.WF=c);if(a.length){var d;((d=this.Qb)==null?0:d.appendBuffer)?this.Qb.appendBuffer(a):this.Qb?this.Qb.append(a):this.vg&&this.vg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.gR=this.WF),b.type===3&&(this.Gf=b,b.Mi()&&(this.oI=!0)),this.VF.push(b.Sc()),this.VF.length>4&&this.VF.shift());this.iC&&(this.iC.length>=2||a.length>1048576?delete this.iC:this.iC.push(a))}; +g.k.abort=function(){try{this.Qb?this.Qb.abort():this.vg&&this.vg.webkitSourceAbort(this.id)}catch(a){nUa&&g.ex(new g.pt("Error while abort the source buffer: "+a.name+", "+a.message))}this.WF=this.Gf=null;this.oI=!1}; +g.k.remove=function(a,b,c){this.qE=!1;var d;if((d=this.Qb)==null?0:d.remove)c&&c({b:lF(this.oe()),s:a,e:b}),this.Qb.remove(a,b)}; +g.k.removeAll=function(){this.remove(this.YE(),this.PJ())}; +g.k.clear=function(){this.Pm()||(this.abort(),this.removeAll(),this.gR=this.WF=this.Gf=null,this.appendWindowStart=this.timestampOffset=0,this.DO=kF([],[]),this.qE=!1,this.iC=tF?[]:void 0,this.lJ=!0,this.oI=!1)}; +g.k.YE=function(){if(JW&&this.zg)return this.appendWindowStart;var a;return((a=this.Qb)==null?void 0:a.appendWindowStart)||0}; +g.k.PJ=function(){var a;return((a=this.Qb)==null?void 0:a.appendWindowEnd)||0}; +g.k.vT=function(a,b){this.Qb&&(JW&&this.zg?(this.appendWindowStart=a,this.Qb.appendWindowEnd=b):a>this.YE()?(this.Qb.appendWindowEnd=b,this.Qb.appendWindowStart=a):(this.Qb.appendWindowStart=a,this.Qb.appendWindowEnd=b))}; +g.k.kQ=function(){return this.timestampOffset}; +g.k.Nq=function(a){JW?this.timestampOffset=a:this.supports(1)&&(this.Qb.timestampOffset=a)}; +g.k.Dc=function(){return JW?this.timestampOffset:this.supports(1)?this.Qb.timestampOffset:0}; +g.k.oe=function(a){if(a===void 0?0:a)return this.qE||this.Ek()||(this.DO=this.oe(!1),this.qE=!0),this.DO;try{return this.Qb?this.Qb.buffered:this.vg?this.vg.webkitSourceBuffered(this.id):kF([0],[Infinity])}catch(b){return kF([],[])}}; +g.k.Ek=function(){var a;return((a=this.Qb)==null?void 0:a.updating)||!1}; +g.k.Pm=function(){return this.lJ}; +g.k.RQ=function(){return!this.lJ&&this.Ek()}; +g.k.Kz=function(){this.lJ=!1}; +g.k.Jx=function(a){var b=a==null?void 0:a.rb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.rb&&a===this.containerType}; +g.k.ex=function(){return this.WF}; +g.k.YJ=function(){return this.gR}; +g.k.tU=function(a,b,c){if(this.containerType!==a||c)this.supports(4),vF()&&this.Qb.changeType(b);this.containerType=a}; +g.k.Jr=function(){return this.Gf}; +g.k.isView=function(){return!1}; +g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Qb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Qb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Qb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Qb)==null?0:e.addEventListener)&&((f=this.Qb)==null?0:f.removeEventListener));case 4:return!(!this.Qb||!this.Qb.changeType);default:return!1}}; +g.k.gJ=function(){return!this.Ek()}; +g.k.isLocked=function(){return!1}; +g.k.uc=function(a){a.to=this.Dc();a.up=this.Ek();var b,c=((b=this.Qb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Qb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=lF(this.oe())}catch(e){}return a}; +g.k.oK=function(){var a;return((a=this.Qb)==null?void 0:a.writeHead)||0}; +g.k.ZJ=function(){for(var a={},b=0;b=7&&Awa(this,function(){g.Kr(function(){Qwa(a,a.getCurrentTime(),0)},500)}); +return b}; +g.k.seekTo=function(a){this.jl()>0&&(zU&&bQ<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))}; +g.k.Vo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;AF(this,{l:"mer",sr:(a=this.ea)==null?void 0:BF(a),rs:DF(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.pt("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.ex(a),this.stopVideo()}else this.stopVideo()}; +g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Qa)==null||Nwa(b);if(kUa){if(!this.C){var c=new FF;c.then(void 0,function(){}); +this.C=c;lUa&&this.pause();g.Kr(function(){a.C===c&&(JF(a),c.resolve())},200)}}else JF(this)}}; +g.k.pA=function(){var a=this.Eh();return pF(a)>0&&this.getDuration()?oF(a,this.getCurrentTime()):0}; +g.k.ix=function(){var a=this.getDuration();return a===Infinity?1:a?this.pA()/a:0}; +g.k.uc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:lF(this.mx(),",",3),vbu:lF(this.Eh()),vbs:lF(this.uA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.jl(),vns:""+this.bK(),vec:""+this.Xh(),vemsg:this.Xf(),vvol:""+this.getVolume(),vdom:""+ +this.SQ(),vsrc:""+ +!!this.Zh(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}}; +g.k.hasError=function(){return this.Xh()>0}; +g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.uP(a)}; +g.k.removeEventListener=function(a,b){this.D.Oc(a,b,!1,this)}; +g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(mUa){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((c==null?0:c.Pm())||b<=((c==null?void 0:c.N)||0)){var d;AF(this,{l:"mede",sr:(d=this.ea)==null?void 0:BF(d),et:a.type});return!1}if(this.DK)return AF(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.DK=!1),!1}return this.D.dispatchEvent(a)}; +g.k.rP=function(){this.K=!1}; +g.k.nP=function(){this.K=!0;this.oC(!0)}; +g.k.uX=function(){this.K&&!this.aK()&&this.oC(!0)}; +g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.uX);kUa&&JF(this);g.O.prototype.xa.call(this)}; +var kUa=!1,lUa=!1,mUa=!1,Twa=!1;g.k=g.LF.prototype;g.k.isPaused=function(){return g.U(this,4)}; +g.k.isPlaying=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)}; +g.k.isOrWillBePlaying=function(){return g.U(this,8)&&!g.U(this,2)&&!g.U(this,1024)}; +g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)}; +g.k.isBuffering=function(){return g.U(this,1)&&!g.U(this,2)}; +g.k.isError=function(){return g.U(this,128)}; +g.k.isSuspended=function(){return g.U(this,512)}; +g.k.MF=function(){return g.U(this,64)&&g.U(this,4)}; +g.k.toString=function(){return"PSt."+this.state.toString(16)}; +var O1={},P1=(O1.BUFFERING="buffering-mode",O1.CUED="cued-mode",O1.ENDED="ended-mode",O1.PAUSED="paused-mode",O1.PLAYING="playing-mode",O1.SEEKING="seeking-mode",O1.UNSTARTED="unstarted-mode",O1);g.z(VF,g.O);g.k=VF.prototype;g.k.jA=function(){return this.B}; +g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){var a=tC(this.layout.Ca,"metadata_type_video_length_seconds"),b=tC(this.layout.Ca,"metadata_type_active_view_traffic_type");JD(this.layout.Eb)&&l0(this.zb.get(),this.layout.layoutId,{At:b,lI:a,listener:this,Eo:this.Ve()});k7a(this.Oa.get(),this);a=this.Pg;b=this.layout.layoutId;var c={Eo:this.Ve()};a.j.set(b,c);this.zx()}; +g.k.release=function(){JD(this.layout.Eb)&&m0(this.zb.get(),this.layout.layoutId);l7a(this.Oa.get(),this);this.Pg.j.delete(this.layout.layoutId);this.Gy()}; +g.k.Ds=function(){}; +g.k.Fs=function(){}; +g.k.startRendering=function(a){DE(WF(this));XF(this,a)&&(YF(this),this.Rs(a),this.Ve()||this.XI(!1))}; +g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.j=this.Ia.get().isMuted()||this.Ia.get().getVolume()===0;this.Xb("impression");this.Xb("start");if(this.Ia.get().isMuted()){dG(this,"mute");var c;a=((c=UF(this))==null?void 0:c.muteCommands)||[];eD(this.Mb.get(),a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.Rh("fullscreen");var d;c=((d=UF(this))==null?void 0:d.fullscreenCommands)||[];eD(this.Mb.get(),c,this.layout.layoutId)}this.Ve()||(d=this.zc.get(), +d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(d.J.L("html5_no_video_to_ad_on_preroll")?uA("pbs",void 0,d.actionType):pA("pbs",void 0,d.actionType),g.Pr("finalize_all_timelines")&&Pta(d.actionType))));this.Eq(1);this.bS(b);var e;b=((e=UF(this))==null?void 0:e.impressionCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.pL=function(a,b,c){this.N={jN:3,kI:a==="load_timeout"?402:400,errorMessage:b.message};this.Xb("error");var d;a=((d=UF(this))==null?void 0:d.errorCommands)||[];eD(this.Mb.get(),a,this.layout.layoutId);this.Ve()||this.Zo.Hf(this.slot,this.layout,b,c)}; +g.k.f3=function(){if(this.lc==="rendering"){dG(this,"pause");var a,b=((a=UF(this))==null?void 0:a.pauseCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId);this.Eq(2)}}; +g.k.g3=function(){if(this.lc==="rendering"){dG(this,"resume");var a,b=((a=UF(this))==null?void 0:a.resumeCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.bz=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){var c=b,d=this.Za().layoutId;if(!this.C){this.C=!0;var e=this.context.Nn;if(cJ(e.Aa.get(),!0)){var f={};e.Gk("p_ip",(f.cts=a,f.f=c,f.p_ac=d,f))}}RD(this.eb,a*1E3,b);this.j||RD(this.eb,a*1E3,b===void 0?!1:b);if(c=this.nA())c/=1E3,(a>=c*.25||b)&&this.Xb("first_quartile"),(a>=c*.5||b)&&this.Xb("midpoint"),(a>=c*.75||b)&&this.Xb("third_quartile"),this.Aa.get().J.U().experiments.kb("enable_progress_command_flush_on_kabuki")?Uva(this.D,a* +1E3,b):Uva(this.D,a*1E3,Zwa(this)?b:!1)}}; +g.k.Hm=function(){var a;return((a=ZF(this.Sa.get(),1))==null?void 0:a.clientPlaybackNonce)||""}; +g.k.cz=function(a,b){a.layoutId!==this.layout.layoutId?this.Zo.Hf(this.slot,a,new qC("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; +g.k.Nc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.Ve()||(a=c!=="normal"||this.position+1===this.K)&&this.XI(a),this.e3(c),this.Eq(0),c){case "abandoned":if(SD(this.eb,"impression")){var d,e=((d=UF(this))==null?void 0:d.abandonCommands)||[];eD(this.Mb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=UF(this))==null?void 0:e.completeCommands)||[];eD(this.Mb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f= +UF(this))==null?void 0:f.skipCommands)||[];eD(this.Mb.get(),d,this.layout.layoutId)}}; +g.k.oA=function(){return this.layout.layoutId}; +g.k.HP=function(){return this.N}; +g.k.gy=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_measurable");var a,b=((a=UF(this))==null?void 0:a.activeViewMeasurableCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.ey=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_fully_viewable_audible_half_duration");var a,b=((a=UF(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.iy=function(){if(this.lc==="rendering"){this.eb.Xb("active_view_viewable");var a,b=((a=UF(this))==null?void 0:a.activeViewViewableCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.Yx=function(){if(this.lc==="rendering"){this.eb.Xb("audio_audible");var a,b=((a=UF(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.Zx=function(){if(this.lc==="rendering"){this.eb.Xb("audio_measurable");var a,b=((a=UF(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}}; +g.k.XI=function(a){this.zc.get().XI(tC(this.layout.Ca,"metadata_type_ad_placement_config").kind,a,this.position,this.K,!1)}; +g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Rh("fullscreen");var b,c=((b=UF(this))==null?void 0:b.fullscreenCommands)||[];eD(this.Mb.get(),c,this.layout.layoutId)}else this.Rh("end_fullscreen"),b=((c=UF(this))==null?void 0:c.endFullscreenCommands)||[],eD(this.Mb.get(),b,this.layout.layoutId)}; +g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ia.get().isMuted()){dG(this,"mute");var a,b=((a=UF(this))==null?void 0:a.muteCommands)||[];eD(this.Mb.get(),b,this.layout.layoutId)}else dG(this,"unmute"),a=((b=UF(this))==null?void 0:b.unmuteCommands)||[],eD(this.Mb.get(),a,this.layout.layoutId)}; +g.k.oh=function(){}; +g.k.Jj=function(){}; +g.k.gj=function(){}; +g.k.Ij=function(){}; +g.k.Lj=function(){}; +g.k.Rh=function(a){this.eb.Rh(a,!this.j)}; +g.k.Xb=function(a){this.eb.Xb(a,!this.j)}; +g.k.Ve=function(){var a=tC(this.slot.Ca,"metadata_type_eligible_for_ssap");return a===void 0?(Ny("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().Ve(a)};g.z(hG,VF);g.k=hG.prototype;g.k.XO=function(){this.layoutExitReason?this.Zo.Nc(this.slot,this.layout,this.layoutExitReason):Vwa(this)}; +g.k.zx=function(){}; +g.k.Gy=function(){var a=this.Oa.get();a.WH===this&&(a.WH=null);this.Xe.stop()}; +g.k.Ds=function(){this.Xe.stop();VF.prototype.f3.call(this)}; +g.k.Fs=function(){jG(this);VF.prototype.g3.call(this)}; +g.k.nA=function(){return tC(this.Za().Ca,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.k.Kd=function(a,b){var c=this;this.cz(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,$F(c,b),c.Xe.stop())})}; +g.k.Tc=function(){var a=Date.now(),b=a-this.jR;this.jR=a;this.qj+=b;this.qj>=this.nA()?this.RY():(this.bz(this.qj/1E3),iG(this,this.qj))}; +g.k.e3=function(){}; +g.k.Ni=function(){}; +g.z(kG,hG);g.k=kG.prototype;g.k.Bg=function(a){if(this.lc!=="not_rendering"){a=aG(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&uE(a)&&this.pJ():b?g.Qy(a,2)?Ny("Receive player ended event during MediaBreak",this.Zb(),this.Za()):bG(this,a):this.ox()}}; +g.k.Rs=function(){Xwa(this);v7a(this.Ia.get());this.Oa.get().WH=this;sA("pbp")||sA("pbs")||uA("pbp");sA("pbp","watch")||sA("pbs","watch")||uA("pbp",void 0,"watch");this.pJ()}; +g.k.bS=function(a){this.zc.get();var b=tC(a.Ca,"metadata_type_ad_placement_config").kind,c=this.position===0;a=tC(a.Ca,"metadata_type_linked_in_player_layout_type");a={adBreakType:cG(b),adType:hxa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";pA("ad_mbs",void 0,d);g.qA(a,d);jG(this)}; +g.k.ox=function(){this.uE()}; +g.k.RY=function(){$wa(this);this.uE()}; +g.z(lG,hG);g.k=lG.prototype;g.k.Bg=function(a){this.lc!=="not_rendering"&&(a=aG(this,a),bG(this,a))}; +g.k.Rs=function(){Ny("startRenderingHelper in SSAP")}; +g.k.bS=function(){jG(this)}; +g.k.ox=function(){Ny("handleAdPlayerNoLongerPresenting in SSAP")}; +g.k.RY=function(){$wa(this);this.Zo.eC(this.Zb(),this.Za(),"normal")}; +g.z(mG,lG);mG.prototype.Kd=function(a,b){var c=this;this.cz(a,function(){yE(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,$F(c,b),c.Xe.stop())})}; +mG.prototype.startRendering=function(a){DE(WF(this));XF(this,a)&&(YF(this),this.Oa.get().WH=this)};g.z(pG,VF);g.k=pG.prototype;g.k.XO=function(){this.layoutExitReason?this.Zo.Nc(this.slot,this.layout,this.layoutExitReason):Vwa(this)}; +g.k.ox=function(){this.Ve()&&Ny("Unexpected ad player in SSAP",this.slot,this.layout);this.uE()}; +g.k.Bg=function(a){if(this.lc!=="not_rendering"){a=aG(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&uE(a)&&this.pJ():b?g.Qy(a,2)?this.uE():bG(this,a):this.ox()}}; +g.k.zx=function(){tC(this.Za().Ca,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=tC(this.Za().Ca,"metadata_type_shrunken_player_bytes_config")}; +g.k.Gy=function(){tC(this.Za().Ca,"metadata_type_player_bytes_callback_ref").current=null;this.It&&this.Pc.get().removeCueRange(this.It);this.It=void 0;var a;(a=this.dL)==null||a.dispose();this.oB&&this.oB.dispose()}; +g.k.Rs=function(a){var b=nG(this.Aa.get()),c=oG(this.Aa.get());if(b&&c&&!this.Ve()){c=tC(a.Ca,"metadata_type_preload_player_vars");var d=g.AC(this.Aa.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.oB&&this.oB.start(d*1E3)}cxa(this,a);Xwa(this);b?(c=this.md.get(),a=tC(a.Ca,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):E7a(this.md.get(),tC(a.Ca,"metadata_type_player_vars"));var e;(e=this.dL)==null||e.start();b||this.md.get().J.playVideo(2)}; +g.k.bS=function(){var a;(a=this.dL)==null||a.stop();this.It="adcompletioncuerange:"+this.Za().layoutId;this.Pc.get().addCueRange(this.It,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Nn;var b=this.It,c=this.Za().layoutId;if(cJ(a.Aa.get(),!0)){var d={};a.Gk("mccr",(d.cid=b,d.p_ac=c,d))}(this.adCpn=Wwa(this))||Ny("Media layout confirmed started, but ad CPN not set.");this.od.get().Yu("onAdStart",this.adCpn);this.PW=Date.now()}; +g.k.nA=function(){var a;return(a=ZF(this.Sa.get(),2))==null?void 0:a.Vca}; +g.k.mM=function(){this.eb.Rh("clickthrough")}; +g.k.Kd=function(a,b){var c=this;this.cz(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;$F(c,b);var d;(d=c.dL)==null||d.stop();c.oB&&c.oB.stop();dxa(c)}})}; +g.k.onCueRangeEnter=function(a){if(a!==this.It)Ny("Received CueRangeEnter signal for unknown layout.",this.Zb(),this.Za(),{cueRangeId:a});else{var b=this.context.Nn,c=this.Za().layoutId;if(cJ(b.Aa.get(),!0)){var d={};b.Gk("mccre",(d.cid=a,d.p_ac=c,d))}this.Pc.get().removeCueRange(this.It);this.It=void 0;QI(this.context.Aa.get(),"html5_ssap_flush_at_stop_rendering")&&this.Ve()||(a=tC(this.Za().Ca,"metadata_type_video_length_seconds"),this.bz(a,!0),this.Xb("complete"))}}; +g.k.e3=function(a){a!=="abandoned"&&this.od.get().Yu("onAdComplete");this.od.get().Yu("onAdEnd",this.adCpn)}; +g.k.onCueRangeExit=function(){}; +g.k.Ni=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().sC(!0),this.bz(a))}; +g.k.bz=function(a,b){VF.prototype.bz.call(this,a,b===void 0?!1:b);if(a>=5&&!this.cZ){b=Date.now()-this.PW;a*=1E3;var c={contentCpn:this.Hm(),adCpn:Wwa(this)},d=b<1E3?0:1;Ky(d,"i.k_",{metadata:c,f7:b,g7:Math.floor(a/1E3)});or("IKDSTAT",d);d===0&&this.NT()&&this.od.get().Yu("onAbnormalityDetected");this.cZ=!0}}; +g.k.NT=function(){if(!this.Aa.get().NT())return!1;var a=tC(this.Zb().Ca,"metadata_type_player_bytes_slot_metadata");a===void 0&&Ny("PlayerBytesSlotMetadata is not filled",this.Zb(),this.Za());return(a==null?void 0:a.yu)===!0};g.z(qG,pG);qG.prototype.Bg=function(a){this.lc!=="not_rendering"&&(a=aG(this,a),bG(this,a))}; +qG.prototype.Rs=function(){Ny("startRenderingHelper in SSAP")}; +g.z(rG,qG);rG.prototype.Kd=function(a,b){var c=this;this.cz(a,function(){if(yE(c.B,b)){c.lc="rendering_stop_requested";c.layoutExitReason=b;$F(c,b);if(QI(c.context.Aa.get(),"html5_ssap_flush_at_stop_rendering")&&b==="normal"){var d=tC(c.Za().Ca,"metadata_type_video_length_seconds");c.bz(d,!0)}dxa(c)}})}; +rG.prototype.startRendering=function(a){DE(WF(this));XF(this,a)&&(YF(this),cxa(this,a))};g.z(uG,g.O);g.k=uG.prototype;g.k.init=function(){var a=tC(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sa.get().addListener(this);this.Ld.init();qwa([this.layout],this.Sa.get());this.pO()}; +g.k.pO=function(){var a=tC(this.Ld.Za().Ca,"metadata_type_player_vars");a?this.md.get().addPlayerResponseForAssociation({playerVars:a}):(a=ixa(this.Ld.Za()),this.md.get().addPlayerResponseForAssociation({uJ:a}))}; +g.k.CL=function(){}; +g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.Ds=function(){this.Ld.Ds()}; +g.k.Fs=function(){this.Ld.Fs()}; +g.k.qy=function(){Ny("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}; +g.k.vc=function(a,b){this.Ld.vc(a,b)}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.Ni=function(a){this.Ld.Ni(a)}; +g.k.onFullscreenToggled=function(a){this.Ld.onFullscreenToggled(a)}; +g.k.oh=function(a){this.Ld.oh(a)}; +g.k.gj=function(a){this.Ld.gj(a)}; +g.k.onVolumeChange=function(){this.Ld.onVolumeChange()}; +g.k.Ij=function(){}; +g.k.Lj=function(){}; +g.k.Jj=function(){}; +g.z(tG,uG);g.k=tG.prototype;g.k.QQ=function(){return this.Ia.get().getPresentingPlayerType()===2}; +g.k.vG=function(a){vwa({cpn:a,Kf:this.Sa.get(),Zr:!0});this.layout.layoutId===a&&(OAa(this.Yd,this.slot.slotId),this.Ev.vc(this.slot,this.layout))}; +g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void Ny("wrong layout");this.Ia.get().addListener(this);DC(this.qc(),this);this.Ld.startRendering(this.layout)}; +g.k.Bg=function(a){this.Ld.Bg(a)}; +g.k.Nc=function(a,b,c){this.Ld.Nc(a,b,c)}; +g.k.release=function(){this.Sa.get().removeListener(this);this.Ld.release();rwa();EC(this.qc(),this)}; +g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?Ny("wrong layout"):(this.Ld.Kd(this.layout,b),this.QQ()&&this.Gc.get().finishSegmentByCpn(this.layout.layoutId,ZF(this.Sa.get(),1).clientPlaybackNonce),this.Ia.get().removeListener(this))}; +g.k.wG=function(a,b,c){wwa({cpn:a,Kf:this.Sa.get(),Zr:!0});this.Za().layoutId===a&&(this.Ld.jA().currentState<2&&(a=fG(c),QI(this.params.context.Aa.get(),"html5_fix_non_video_expiration")&&a==="error"?this.Ev.Hf(this.slot,this.layout,new qC("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):AG(this.gf,this.layout,a)),this.Ev.Nc(this.slot,this.layout,this.Ld.jA().j))};g.z(vG,g.O);g.k=vG.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.CL=function(){}; +g.k.Af=function(){return this.Qh[this.eE]}; +g.k.Al=function(){return this.eE}; +g.k.Ds=function(a,b){var c=this.Af();b.layoutId!==xG(c,a,b)?Ny("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Ds()}; +g.k.Fs=function(a,b){var c=this.Af();b.layoutId!==xG(c,a,b)?Ny("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Fs()}; +g.k.qy=function(a,b){var c=this.Af();mxa(this,a,b);nxa(c,a,b)&&this.MJ(c.Zb(),c.Za(),"skipped")}; +g.k.EL=function(a,b){var c=this.Af();oxa(this);pxa(c,a,b)&&(a=qxa(this,c,a,b),a!==void 0&&(this.Ve()?this.yX():sxa(this,c.Zb(),c.Za(),a)))}; +g.k.E0=function(a,b){var c=Object.assign({},wG(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Zr;if(c.Eo){var f={};CE(c.Kf,"wrse",(f.ec=d,f.is=e,f.ctp=BE(d),f))}PC(this.Pq,a,b)}; +g.k.vc=function(a,b){var c;(c=this.Af())==null||c.vc(a,b)}; +g.k.Nc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.yx=!1,EC(this.qc(),this));var d;(d=this.Af())==null||d.Nc(a,b,c)}; +g.k.Ni=function(a){var b;(b=this.Af())==null||b.Ni(a)}; +g.k.sK=function(a,b,c){this.Al()===-1&&(this.callback.vc(this.slot,this.layout),this.eE++);var d=this.Af();d?(d.pL(a,b,c),this.Ve()&&this.callback.Hf(this.slot,this.layout,b,c)):Ny("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Al()),layoutId:this.Za().layoutId})}; +g.k.onFullscreenToggled=function(a){var b;(b=this.Af())==null||b.onFullscreenToggled(a)}; +g.k.oh=function(a){var b;(b=this.Af())==null||b.oh(a)}; +g.k.gj=function(a){var b;(b=this.Af())==null||b.gj(a)}; +g.k.onVolumeChange=function(){var a;(a=this.Af())==null||a.onVolumeChange()}; +g.k.YO=function(a,b,c){QC(this.Pq,a,b,c)}; +g.k.ZT=function(a){a.startRendering(a.Za())}; +g.k.init=function(){var a=tC(this.Za().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Qh.length<1)throw new rC("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Qh.length)});if(a=tC(this.Za().Ca,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.w(this.Qh);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Rua(this.Pq,this.slot,b.Za()),Sua(this.Pq,this.slot,b.Za());if(this.Ve())for(this.Sa.get().addListener(this), +qwa(lxa(this),this.Sa.get()),a=lxa(this),a=g.w(a),b=a.next();!b.done;b=a.next())this.pO(b.value)}; +g.k.pO=function(a){var b=tC(a.Ca,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&Ny("Non-video ad contains playerVars",this.slot,a),this.md.get().addPlayerResponseForAssociation({playerVars:b})):(a=ixa(a),this.md.get().addPlayerResponseForAssociation({uJ:a}))}; +g.k.release=function(){var a=tC(this.Za().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=tC(this.Za().Ca,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.w(this.Qh);for(var b=a.next();!b.done;b=a.next())b=b.value,Tua(this.Pq,this.slot,b.Za()),b.release();this.Ve()&&(this.Sa.get().removeListener(this),rwa())}; +g.k.cz=function(a){return a.layoutId!==this.Za().layoutId?(this.callback.Hf(this.Zb(),a,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.k.OI=function(){this.Ia.get().addListener(this);DC(this.qc(),this)}; +g.k.Bg=function(a){if(a.state.isError()){var b,c;this.sK((b=a.state.eh)==null?void 0:b.errorCode,new qC("There was a player error during this media layout.",{playerErrorCode:(c=a.state.eh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Af())&&b.Bg(a)}; +g.k.Ve=function(){var a=tC(this.Zb().Ca,"metadata_type_eligible_for_ssap");return a===void 0?(Ny("Expected SSAP eligibility in PlayerBytes slots",this.Zb(),this.Za()),!1):this.Aa.get().Ve(a)}; +g.k.Jj=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.Ij=function(){}; +g.k.Lj=function(){}; +g.z(BG,vG);g.k=BG.prototype;g.k.oR=function(){var a=this.Af();a&&a.ox()}; +g.k.G0=function(a,b,c){this.MJ(a,b,c)}; +g.k.F0=function(a,b){this.MJ(a,b,"error")}; +g.k.MJ=function(a,b,c){var d=this;rxa(this,a,b,c,function(){yG(d,d.Al()+1)})}; +g.k.startRendering=function(a){this.cz(a)&&(this.OI(),h0(this.Aa.get())&&c0(this.zc.get()),S6a(this.Aa.get())||v7a(this.Ia.get()),h0(this.Aa.get())||c0(this.zc.get()),this.Al()===-1&&yG(this,this.Al()+1))}; +g.k.Kd=function(a,b){var c=this;this.yx=!0;this.Al()===this.Qh.length?this.callback.Nc(this.slot,this.layout,b):(a=this.Af(),a.Kd(a.Za(),b),this.pZ=function(){c.callback.Nc(c.slot,c.layout,b)}); +this.Ia.get().J.Hy();E7a(this.md.get(),{});a=k0(this.Ia.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.yx&&this.oR()}; +g.k.wG=function(){}; +g.k.vG=function(){}; +g.k.eC=function(){}; +g.k.yX=function(){}; +g.z(CG,vG);CG.prototype.G0=function(a,b,c){a=Object.assign({},wG(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};CE(a.Kf,"prse",(d.xc=b,d.ler=c,d.ctp=BE(b),d))}; +CG.prototype.F0=function(){Ny("onSubLayoutError in SSAP")}; +CG.prototype.MJ=function(){Ny("exitSubLayoutAndPlayNext in SSAP")}; +CG.prototype.yX=function(){Ny("confirmExitSubLayoutAndPlayTarget in SSAP")}; +g.z(DG,CG);g.k=DG.prototype;g.k.Af=function(){return this.Ch}; +g.k.Al=function(){var a=this;return this.Qh.findIndex(function(b){var c;return b.Za().layoutId===((c=a.Ch)==null?void 0:c.Za().layoutId)})}; +g.k.ZT=function(a){My(this.Ch===void 0,"replacing another adapter");this.Ch=a;a.startRendering(a.Za())}; +g.k.YO=function(a,b,c){QC(this.Pq,a,b,c);var d;My(b.layoutId===((d=this.Ch)==null?void 0:d.Za().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot: "+a.slotType:"",subLayout:Ly(b)})&&(this.Ch=void 0)}; +g.k.release=function(){CG.prototype.release.call(this);My(this.Ch===void 0,"currentAdapter is still active during release");this.Ch=void 0}; +g.k.QQ=function(){return this.Ia.get().getPresentingPlayerType()===2}; +g.k.Kd=function(a,b){My(a.layoutId===this.Za().layoutId,"StopRendering for wrong layout")&&yE(this.Qw.B,b)&&this.Ch&&(a=this.Ch,a.jA().currentState<2&&a.Kd(a.Za(),b),this.QQ()&&this.Gc.get().finishSegmentByCpn(this.Ch.Za().layoutId,ZF(this.Sa.get(),1).clientPlaybackNonce))}; +g.k.Nc=function(a,b,c){CG.prototype.Nc.call(this,a,b,c);b.layoutId===this.Za().layoutId&&this.Ia.get().removeListener(this)}; +g.k.Hm=function(){return ZF(this.Sa.get(),1).clientPlaybackNonce}; +g.k.wG=function(a,b,c){wwa(Object.assign({},wG(this),{cpn:a}));if(this.Ch&&this.Ch.Za().layoutId===a)txa(this,this.Ch,c);else{var d,e;Ny("Exiting cpn does not match active cpn",this.slot,(d=this.Ch)==null?void 0:d.Za(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Ch)==null?void 0:e.Za().layoutId})}b===this.Hm()&&(this.Ch!==void 0&&(Ny("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Ly(this.Ch.Za())}),txa(this,this.Ch,c)),this.Qw.B.currentState<2&&(a=fG(c),QI(this.Aa.get(), +"html5_fix_non_video_expiration")&&a==="error"?this.callback.Hf(this.slot,this.layout,new qC("Non video ad expired into content during SSAP composite layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):AG(this.Oi,this.layout,a)),this.callback.Nc(this.slot,this.layout,this.Qw.B.j))}; +g.k.startRendering=function(a){this.cz(a)&&(a=this.Qw,My(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.OI())}; +g.k.vG=function(a){vwa(Object.assign({},wG(this),{cpn:a}));var b=this.Qh.find(function(c){return c.Za().layoutId===a}); +b?(this.Qw.j!==2&&(OAa(this.Yd,this.slot.slotId),My(this.Qw.j===2,"Expect started"),this.callback.vc(this.slot,this.layout)),this.ZT(b),PC(this.Pq,this.slot,b.Za())):uxa(this,a)}; +g.k.qy=function(a,b){mxa(this,a,b);var c=this.Af();c?nxa(c,a,b)&&vxa(this,"skipped"):wxa(this,"onSkipRequested")}; +g.k.EL=function(a,b){var c;a:{if(c=this.Af()){if(oxa(this),pxa(c,a,b)&&(a=qxa(this,c,a,b),a!==void 0)){c={a7:c,Fea:this.Qh[a]};break a}}else wxa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.a7,a=a.Fea,c.Kd(c.Za(),"skipped"),a=a.Za().layoutId,this.Gc.get().finishSegmentByCpn(c.Za().layoutId,a)}; +g.k.E0=function(){Ny("Not used in html5_ssap_fix_layout_exit")}; +g.k.Bg=function(a){var b;(b=this.Af())==null||b.Bg(a)}; +g.k.sK=function(){Ny("Not used in html5_ssap_fix_layout_exit")}; +g.k.eC=function(a,b,c){var d;if(((d=this.Af())==null?void 0:d.Za().layoutId)!==b.layoutId)return void Ny("requestToExitSubLayout: wrong layout");vxa(this,c)};g.z(EG,g.O);g.k=EG.prototype;g.k.Zb=function(){return this.Ld.Zb()}; +g.k.Za=function(){return this.Ld.Za()}; +g.k.init=function(){var a=tC(this.Za().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.zx()}; +g.k.zx=function(){this.Ld.init()}; +g.k.release=function(){var a=tC(this.Za().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Gy()}; +g.k.Gy=function(){this.Ld.release()}; +g.k.Ds=function(){this.Ld.Ds()}; +g.k.Fs=function(){this.Ld.Fs()}; +g.k.qy=function(a,b){Ny("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Zb(),this.Za(),{requestingSlot:a,requestingLayout:b})}; +g.k.startRendering=function(a){a.layoutId!==this.Za().layoutId?this.callback.Hf(this.Zb(),a,new qC("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ia.get().addListener(this),DC(this.qc(),this),h0(this.Aa.get())&&c0(this.zc.get()),S6a(this.Aa.get())||v7a(this.Ia.get()),h0(this.Aa.get())||c0(this.zc.get()),this.Rs(a))}; +g.k.Rs=function(a){this.Ld.startRendering(a)}; +g.k.Kd=function(a,b){this.yx=!0;this.IM(a,b);this.Ia.get().J.Hy();E7a(this.md.get(),{});a=k0(this.Ia.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.yx&&this.oR()}; +g.k.IM=function(a,b){this.Ld.Kd(a,b)}; +g.k.vc=function(a,b){this.Ld.vc(a,b)}; +g.k.Nc=function(a,b,c){b.layoutId===this.Za().layoutId&&(this.yx=!1,EC(this.qc(),this));this.Ld.Nc(a,b,c);b.layoutId===this.Za().layoutId&&zG(this.zc.get())}; +g.k.oR=function(){this.Ld.ox()}; +g.k.Ni=function(a){this.Ld.Ni(a)}; +g.k.Bg=function(a){if(a.state.isError()){var b,c;this.sK((b=a.state.eh)==null?void 0:b.errorCode,new qC("There was a player error during this media layout.",{playerErrorCode:(c=a.state.eh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Ld.Bg(a)}; +g.k.sK=function(a,b,c){this.Ld.pL(a,b,c)}; +g.k.onFullscreenToggled=function(a){this.Ld.onFullscreenToggled(a)}; +g.k.oh=function(a){this.Ld.oh(a)}; +g.k.gj=function(a){this.Ld.gj(a)}; +g.k.onVolumeChange=function(){this.Ld.onVolumeChange()}; +g.k.Jj=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.Ij=function(){}; +g.k.Lj=function(){};g.k=FG.prototype;g.k.Zb=function(){return this.slot}; +g.k.Za=function(){return this.layout}; +g.k.init=function(){this.xf.get().addListener(this);this.Ia.get().addListener(this);this.zx();var a=tC(this.layout.Ca,"metadata_type_layout_enter_ms"),b=tC(this.layout.Ca,"metadata_type_layout_exit_ms"),c,d=(c=this.Sa.get().Tw)==null?void 0:c.clientPlaybackNonce;c=this.layout.ac.adClientDataEntry;GG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.xf.get();e=zxa(e.C,a,b);e!==null&&(GG(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d, +cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Gc.get().Jz(e,b))}; +g.k.release=function(){this.Gy();this.xf.get().removeListener(this);this.Ia.get().removeListener(this)}; +g.k.startRendering=function(){this.Rs();this.callback.vc(this.slot,this.layout)}; +g.k.Kd=function(a,b){this.IM(b);this.driftRecoveryMs!==null&&(HG(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Axa(this)-tC(this.layout.Ca,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ia.get().J.Kr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Nc(this.slot,this.layout,b)}; +g.k.m0=function(){return!1}; +g.k.h0=function(a){var b=tC(this.layout.Ca,"metadata_type_layout_enter_ms"),c=tC(this.layout.Ca,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a0&&RC(this.j(),b)}; +g.k.Oh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof NH&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&RC(this.j(),b)}; +g.k.Lh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof EH&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&RC(this.j(),b)}; +g.k.sf=function(a){this.C.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof IH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&RC(this.j(),b)}; +g.k.tf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof JH)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof xH){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&RC(this.j(),b)}; +g.k.Mh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof KH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&RC(this.j(),b)}; +g.k.Nh=function(a){for(var b=[],c=g.w(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof LH&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&RC(this.j(),b)}; +g.k.nh=function(a,b){this.K.add(b.layoutId)}; +g.k.pg=function(a,b){this.K.delete(b.layoutId)}; +g.k.vc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof yH)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof DH){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof xH&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&RC(this.j(),c)}; +g.k.Nc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof AH&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof zH){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&RC(this.j(),a)}; +g.k.Qg=function(){}; +g.k.Kk=function(){this.D.clear()}; +g.k.Lo=function(){};g.z(mJ,g.O);mJ.prototype.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof vH))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new QH(a,b,c,d))}; +mJ.prototype.Ul=function(a){this.Wb.delete(a.triggerId)};g.z(oJ,g.O);oJ.prototype.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof uH||b instanceof GH))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new QH(a,b,c,d))}; +oJ.prototype.Ul=function(a){this.Wb.delete(a.triggerId)}; +oJ.prototype.Kk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.w(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof uH&&l.trigger.Hv===a&&f.push(l);e.call(d,b,g.x(f));if(!P6a(this.context.Aa.get())){d=b.push;e=d.apply;f=[];h=g.w(this.Wb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof GH){var m=l.trigger.j===a;m?c&&m&&(Ny("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}), +f.push(l)):f.push(l)}e.call(d,b,g.x(f))}b.length&&RC(this.j(),b)}; +oJ.prototype.Lo=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.w(this.Wb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof GH&&l.j===a&&e.push(h)}d.call(c,b,g.x(e));b.length&&RC(this.j(),b)};g.z(pJ,g.O);g.k=pJ.prototype;g.k.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof CH)KAa(this,a,b,c,d,e,b.j.start,b.j.end,b.Hv,b.visible);else if(b instanceof wH)KAa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Hv,b.visible);else throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");}; +g.k.Ul=function(a){var b=this.Wb.get(a.triggerId);b&&this.Pc.get().removeCueRange(b.vJ);this.Wb.delete(a.triggerId)}; +g.k.onCueRangeEnter=function(a){var b=LAa(this,a);if(b&&(b=this.Wb.get(b)))if(g.U(k0(this.Ia.get()),32))this.j.add(b.vJ);else{var c=b==null?void 0:b.nE.trigger;if(c instanceof CH||c instanceof wH){if(cJ(this.context.Aa.get())){var d=b.nE.slot,e=b.nE.layout,f={};this.context.Nn.Gk("cre",(f.ca=b.nE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}RC(this.B(),[b.nE])}}}; +g.k.onCueRangeExit=function(a){(a=LAa(this,a))&&(a=this.Wb.get(a))&&this.j.delete(a.vJ)}; +g.k.Bg=function(a){if(Py(a,16)<0){a=g.w(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.vc=function(){}; +g.k.Nc=function(){}; +g.k.Qg=function(){}; +g.k.Ni=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.oh=function(){}; +g.k.Jj=function(){}; +g.k.gj=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Ij=function(){}; +g.k.Lj=function(){};g.z(qJ,g.O);g.k=qJ.prototype; +g.k.Ql=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new rC("Tried to re-register the trigger.");a=new QH(a,b,c,d);if(a.trigger instanceof dya)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof BH)this.C.set(a.trigger.triggerId,a);else throw new rC("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&RC(this.D(),[a])}; +g.k.Ul=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)}; +g.k.CL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.x(MAa(this.C,this.j)));a!=null&&b.push.apply(b,g.x(MAa(this.B,a)));this.j=a;b.length&&RC(this.D(),b)}}; +g.k.wG=function(){}; +g.k.vG=function(){};g.z(rJ,g.O);g.k=rJ.prototype;g.k.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof FH))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new QH(a,b,c,d))}; +g.k.Ul=function(a){this.Wb.delete(a.triggerId)}; +g.k.vc=function(){}; +g.k.Nc=function(){}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){};g.z(sJ,g.O);g.k=sJ.prototype;g.k.Qg=function(a,b){for(var c=[],d=g.w(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&RC(this.j(),c)}; +g.k.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof jva))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new QH(a,b,c,d))}; +g.k.Ul=function(a){this.Wb.delete(a.triggerId)}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.vc=function(){}; +g.k.Nc=function(){};g.z(tJ,g.O);g.k=tJ.prototype;g.k.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof PH))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new QH(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)}; +g.k.Ul=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof PH))throw new rC("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),b.size===0&&this.j.delete(a.triggeringLayoutId)}; +g.k.Rg=function(){}; +g.k.Oh=function(){}; +g.k.Lh=function(){}; +g.k.sf=function(){}; +g.k.tf=function(){}; +g.k.Mh=function(){}; +g.k.Nh=function(){}; +g.k.nh=function(){}; +g.k.pg=function(){}; +g.k.Qg=function(){}; +g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.w(a);var d=a.next();for(b={};!d.done;b={VM:void 0},d=a.next())b.VM=d.value,d=new g.fp(function(e){return function(){var f=c.Wb.get(e.VM.triggerId);RC(c.C(),[f])}}(b),b.VM.durationMs),d.start(),this.B.set(b.VM.triggerId,d)}}; +g.k.Nc=function(){};g.z(uJ,g.O);uJ.prototype.Ql=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new rC("Tried to register duplicate trigger for slot.");if(!(b instanceof sH))throw new rC("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new QH(a,b,c,d))}; +uJ.prototype.Ul=function(a){this.Wb.delete(a.triggerId)};yJ.prototype.yu=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.z(BJ,g.O);g.k=BJ.prototype;g.k.logEvent=function(a){this.qs(a)}; +g.k.dk=function(a,b,c){this.qs(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)}; +g.k.Th=function(a,b,c,d){this.qs(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)}; +g.k.GN=function(a,b,c,d){QI(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);yC(this.j.get())&&this.qs(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; +g.k.JI=function(a,b,c,d,e){this.qs(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)}; +g.k.mm=function(a,b,c,d){this.qs("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})}; +g.k.qs=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;QI(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Lpa:d,Qpa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.JT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||Ny("Empty PACF event type",e,f);var u=yC(r.j.get()), +y={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=xC(u,e));f&&(A.layoutData=Mua(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=wC(l.trigger,l.category));b&&(A.opportunityData=Nua(u,b,c,d));u={organicPlaybackContext:{contentCpn:ZF(r.Sa.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=ZF(r.Sa.get(),1).Vb;var D;u.organicPlaybackContext.isMdxPlayback= +(D=ZF(r.Sa.get(),1))==null?void 0:D.isMdxPlayback;var F;if((F=ZF(r.Sa.get(),1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(D=(H=ZF(r.Sa.get(),2))==null?void 0:H.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:D};u&&(A.externalContext=u);y.adClientData=A;m&&(y.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(y.serializedAdServingData=n.serializedAdServingDataEntry);p&&(y.errorInfo=p);g.Ht("adsClientStateChange",{adsClientEvent:y})}}; +q&&q>0?g.vt(g.xt(),function(){return t()},q):t()}catch(u){QI(this.Aa.get(),"html5_log_pacf_logging_errors")&&g.vt(g.xt(),function(){Ny(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}}; +g.k.JT=function(){return this.Aa.get().JT()};var wbb=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(CJ,BJ);g.k=CJ.prototype; +g.k.dk=function(a,b,c){BJ.prototype.dk.call(this,a,b,c);cJ(this.Aa.get())&&(c={},this.context.Nn.Gk("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))}; +g.k.Th=function(a,b,c,d){var e=wbb.has(a);BJ.prototype.Th.call(this,a,b,c,d);cJ(this.Aa.get(),e)&&(d={},this.context.Nn.Gk("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d.p_ac=c==null?void 0:c.layoutId,d)))}; +g.k.JI=function(a,b,c,d,e){BJ.prototype.JI.call(this,a,b,c,d,e);cJ(this.Aa.get())&&(c={},this.context.Nn.Gk("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))}; +g.k.GN=function(a,b,c,d){BJ.prototype.GN.call(this,a,b,c,d);if(cJ(this.Aa.get())){var e={};this.context.Nn.Gk("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; +g.k.mm=function(a,b,c,d){BJ.prototype.mm.call(this,a,b,c,d);if(cJ(this.Aa.get(),!0)){var e={};this.context.Nn.Gk("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e.p_ac=d==null?void 0:d.layoutId,e))}}; +g.k.qs=function(a,b,c,d,e,f,h,l,m,n,p){if(g.OC(this.Aa.get().J.U())){var q=this.Aa.get();q=g.AC(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;BJ.prototype.qs.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};DJ.prototype.clear=function(){this.j.clear()};var $Aa=!1,FJ,GJ,HJ,IJ,JJ;g.z(KJ,g.O); +KJ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,bBa(this,this.K,0));for(;b+64<=c;b+=64)bBa(this,a,b);b=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{zK:b,qn:c}}; +VJ.prototype.isFocused=function(a){return a>=this.C&&a=0;var v2a=window;var MBa=$c(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var VK;g.WK=new QA;VK=0;var XK={kK:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}, +PN:function(a){a.reverse()}, +Ew:function(a,b){a.splice(0,b)}};var v4a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var iO=VBa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.tu?!0:!1;var yJa={Gfa:"adunit",fha:"detailpage",rha:"editpage",tha:"embedded",Yia:"leanback",dka:"previewpage",gka:"profilepage",W6:"unplugged",aka:"playlistoverview",Tka:"sponsorshipsoffer",Jka:"shortspage",Zha:"handlesclaiming",qia:"immersivelivepage",bha:"creatormusic",ria:"immersivelivepreviewpage",Afa:"admintoolyurt"};var dDa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},eDa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},A2a={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var UKa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.nL.prototype.getLanguageInfo=function(){return this.dc}; +g.nL.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags}; +g.nL.prototype.toString=function(){return this.dc.name}; +g.nL.prototype.getLanguageInfo=g.nL.prototype.getLanguageInfo;oL.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j}; +oL.prototype.compose=function(a){if(a.C&&sL(a))return VP;if(a.C||sL(this))return a;if(this.C||sL(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);var d=0;pL&&(d=this.ub!==0&&a.ub!==0?Math.min(this.ub,a.ub):this.ub===0?a.ub:this.ub);return pL&&b===this.B&&c===this.j&&d===this.ub||!pL&&b===this.B&&c===this.j?this:pL?new oL(b,c,!1,c===this.j&&d===this.ub?this.reason:a.reason,d):new oL(b,c,!1,c===this.j?this.reason:a.reason)}; +oL.prototype.D=function(a){return!a.video||pL&&this.ub!==0&&this.ub=0}; +g.k.Xt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN}; +g.k.Xc=function(){return this.segments[0].startTime}; +g.k.sA=function(){return this.segments.length}; +g.k.Km=function(){return 0}; +g.k.Li=function(a){return(a=this.eA(a))?a.Pa:-1}; +g.k.hK=function(a){return(a=this.Tn(a))?a.sourceURL:""}; +g.k.getStartTime=function(a){return(a=this.Tn(a))?a.startTime:0}; +g.k.UJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; +g.k.jK=aa(1);g.k.isLoaded=function(){return this.segments.length>0}; +g.k.Tn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Yb(this.segments,new PL(a,0,0,0,""),function(b,c){return b.Pa-c.Pa}); +return this.j=a>=0?this.segments[a]:null}; +g.k.eA=function(a){if(this.j&&this.j.startTime<=a&&a=0?this.segments[a]:this.segments[Math.max(0,-a-2)]}; +g.k.append=function(a){if(a.length)if(a=g.Tb(a),this.segments.length){var b=this.segments.length?g.Ib(this.segments).endTime:0,c=a[0].Pa-this.qd();c>1&&Haa(this.segments);for(c=c>0?0:-c+1;ca.Pa&&this.index.Vn()<=a.Pa+1}; +g.k.update=function(a,b,c){this.index.append(a);GDa(this.index,c);a=this.index;a.B=b;a.C="update"}; +g.k.jg=function(){return this.TA()?!0:KM.prototype.jg.call(this)}; +g.k.vt=function(a,b){var c=this.index.hK(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.ub>0?this.info.ub*e:1E3;return new WM([new PM(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)}; +g.k.ZP=function(){return this.TA()?0:this.initRange.length}; +g.k.HS=function(){return!1};cN.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new cN,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+aN(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+aN(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Dh:0,m=Date.parse(yEa(aN(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=aN(a,"media"));a=b?h-b.Pa:1;c.K=a>0?0:-a+1;a=g.w(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")|| +0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new wEa(h,l,n,m+p,f);c.j.push(t);var u=d;var y=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var D=u.getAttribute("yt:cuepointDuration");if(t&&D){t=Number(t);A=-t/y+A;y=Number(D)/y;D=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new ZL(A,y,D,F,Mbb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&& +(c.B=g.Ib(c.j))}this.K=c.K;this.B=c.B||this.B;g.Ub(this.j,c.j);g.Ub(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())}; +cN.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.z(eN,g.QL);g.k=eN.prototype;g.k.po=function(a,b){a=fN(this,a);return a>=0&&(b||!this.segments[a].pending)}; +g.k.Vn=function(){return this.In?this.segments.length?this.eA(this.Xc()).Pa:-1:g.QL.prototype.Vn.call(this)}; +g.k.Xc=function(){if(this.Wd)return 0;if(!this.In)return g.QL.prototype.Xc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Ib(this.segments).endTime-this.Br,0);return this.df>0&&this.eA(a).Pa0&&this.Sr0&&this.aq>0&&!b&&(b=this.eA(this.Br))&&(a=Math.min(b.Pa-1,a));return a}; +g.k.gx=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.k.HN=function(a){var b=fN(this,a.Pa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.kB&&a.Pa%(300/this.Vj)===0){var c=this.segments[0].Pa,d=Math.floor(this.kB/this.Vj);a=a.Pa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}}; +g.k.XJ=function(){return this.aq}; +g.k.QF=function(a){return dN?!this.B&&a>=0&&this.qd()<=a:g.QL.prototype.QF.call(this,a)}; +g.k.eA=function(a){if(!this.In)return g.QL.prototype.eA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Vj+1);else{b=Zb(this.segments,function(d){return a=d.endTime?1:0}); +if(b>=0)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Pa-b.Pa-1))+1)+b.Pa}return this.Tn(b)}; +g.k.Tn=function(a){if(!this.In)return g.QL.prototype.Tn.call(this,a);if(!this.segments.length)return null;var b=fN(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Vj;if(c===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new PL(a,d,b,0,"sq/"+a,void 0,void 0, +!0)}; +var dN=!1;g.z(gN,$M);g.k=gN.prototype;g.k.OA=function(){return!0}; +g.k.jg=function(){return!0}; +g.k.ut=function(a){return this.Fx()&&a.B&&!a.Se||!a.j.index.QF(a.Pa)}; +g.k.jx=function(){}; +g.k.Mr=function(a,b){return typeof a!=="number"||isFinite(a)?$M.prototype.Mr.call(this,a,b===void 0?!1:b):new WM([new PM(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Uj,void 0,this.Uj*this.info.ub)],"")}; +g.k.vt=function(a,b){var c=c===void 0?!1:c;if(this.index.po(a))return $M.prototype.vt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Uj*this.info.ub),f=this.Uj;b&&(f=e=0);return new WM([new PM(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.z(hN,KM);g.k=hN.prototype;g.k.Rm=function(){return!1}; +g.k.Fx=function(){return!1}; +g.k.OA=function(){return!1}; +g.k.jx=function(){return new WM([new PM(1,this,void 0,"otfInit")],this.G)}; +g.k.rz=function(){return null}; +g.k.vD=function(a){this.ut(a);return JHa(this,TM(a),!1)}; +g.k.Mr=function(a,b){b=b===void 0?!1:b;a=this.index.Li(a);b&&(a=Math.min(this.index.qd(),a+1));return JHa(this,a,!0)}; +g.k.rQ=function(a){a.info.type===1&&(this.j||(this.j=aK(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&KHa(this,a.B))}; +g.k.ut=function(a){return a.B===0?!0:this.index.qd()>a.Pa&&this.index.Vn()<=a.Pa+1}; +g.k.ZP=function(){return 0}; +g.k.HS=function(){return!1};g.k=g.pN.prototype;g.k.po=function(a){return a<=this.qd()}; +g.k.Km=function(a){return this.offsets[a]}; +g.k.getStartTime=function(a){return this.Tg[a]/this.j}; +g.k.UJ=function(a){return this.getStartTime(a)+this.getDuration(a)}; +g.k.jK=aa(0);g.k.bf=function(){return NaN}; +g.k.getDuration=function(a){a=this.nY(a);return a>=0?a/this.j:-1}; +g.k.nY=function(a){return a+1=0}; +g.k.Xt=function(){return this.B?this.Tg[this.count]/this.j:NaN}; +g.k.Xc=function(){return 0}; +g.k.sA=function(){return this.count}; +g.k.hK=function(){return""}; +g.k.Li=function(a){a=g.Yb(this.Tg.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)}; +g.k.isLoaded=function(){return this.qd()>=0}; +g.k.wY=function(a,b){if(a>=this.qd())return 0;var c=0;for(b=this.getStartTime(a)+b;athis.getStartTime(a);a++)c=Math.max(c,SHa(this,a)/this.getDuration(a));return c}; +g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.Tg;this.Tg=new Float64Array(a+1);for(a=0;a0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new PM(4,this,NM(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new WM(d)}; +g.k.rQ=function(a){if(a.info.type===1){if(this.j)return;this.j=aK(a.j)}else if(a.info.type===2){if(this.G||this.index.qd()>=0)return;if(g.bF(this.info)){var b=this.index,c=jN(a);a=a.info.range.start;var d=g.dM(c,0,1936286840);c=SDa(d);b.j=c.Ts;var e=c.c8;b.offsets[0]=c.B8+a+d.size;b.Tg[0]=e;b.B=!0;a=c.dU.length;for(d=0;d0&&a===f[0].oJ)for(a=0;a=b+c)break}e.length||g.ex(new g.pt("b189619593",""+a,""+b,""+c));return new WM(e)}; +g.k.MV=function(a){for(var b=this.fC(a.info),c=a.info.range.start+a.info.Ub,d=[],e=0;e=this.index.Km(c+1);)c++;return this.qF(c,b,a.B).gb}; +g.k.ut=function(a){a.Mi();return this.jg()?!0:a.range.end+1this.info.contentLength&&(b=new LM(b.start,this.info.contentLength-1)),new WM([new PM(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.fC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ub+a.B;a.type===3&&(a.Mi(),c=a.Pa,d===a.range.end+1&&(c+=1));return this.qF(c,d,b)}; +g.k.vD=function(){return null}; +g.k.Mr=function(a,b,c){b=b===void 0?!1:b;a=this.index.Li(a);b&&(a=Math.min(this.index.qd(),a+1));return this.qF(a,this.index.Km(a),0,c)}; +g.k.Rm=function(){return!0}; +g.k.Fx=function(){return!0}; +g.k.OA=function(){return!1}; +g.k.ZP=function(){return this.indexRange.length+this.initRange.length}; +g.k.HS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var V1={},jIa=(V1.COLOR_PRIMARIES_BT709="bt709",V1.COLOR_PRIMARIES_BT2020="bt2020",V1.COLOR_PRIMARIES_UNKNOWN=null,V1.COLOR_PRIMARIES_UNSPECIFIED=null,V1),W1={},UHa=(W1.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",W1.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",W1.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",W1.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",W1.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,W1.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,W1);g.sN.prototype.getName=function(){return this.name}; +g.sN.prototype.getId=function(){return this.id}; +g.sN.prototype.getIsDefault=function(){return this.isDefault}; +g.sN.prototype.toString=function(){return this.name}; +g.sN.prototype.getName=g.sN.prototype.getName;g.sN.prototype.getId=g.sN.prototype.getId;g.sN.prototype.getIsDefault=g.sN.prototype.getIsDefault;var YHa=/action_display_post/;var ZHa,vN,wN;g.z(xN,g.Fx);g.k=xN.prototype;g.k.isLoading=function(){return this.state===1}; +g.k.Qm=function(){return this.state===3}; +g.k.Mca=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Vb=this.B=!0;this.timeline||(this.timeline=new AEa);kHa(this.timeline,a);this.publish("refresh");for(a=0;a=0?p=MM(r):q=q+"?range="+r}m.call(l,new PL(n.Pa,n.startSecs,n.Dh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.ob)}IHa(this.timeline);return!0}this.duration=xEa(aN(a,"mediaPresentationDuration")); +a:{for(a=0;a0))return this.Vd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!hF(a[b].info.mimeType))return c.Xc()}return 0}; +g.k.getStreamTimeOffset=function(){return this.N}; +g.k.bf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Li(a),e=c.bf(d);if(e)return e+a-c.getStartTime(d)}}return NaN}; +var KN=null,Nbb,LN=!((Nbb=navigator.mediaCapabilities)==null||!Nbb.decodingInfo),pIa={commentary:1,alternate:2,dub:3,main:4};g.MN.prototype.info=function(){}; +g.MN.prototype.debug=function(){}; +var EIa=new Map,HIa=new Map,FIa=new function(){var a=this;this.j=new Map;this.hd={sna:function(){return a.j}}};var GZ=new Set,NN=new Map;QN.prototype.clone=function(a){return new QN(this.flavor,a,this.B,this.experiments)}; +QN.prototype.uc=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +QN.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var Obb={},$N=(Obb.playready=["com.youtube.playready","com.microsoft.playready"],Obb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Obb),X1={},q1a=(X1.widevine="DRM_SYSTEM_WIDEVINE",X1.fairplay="DRM_SYSTEM_FAIRPLAY",X1.playready="DRM_SYSTEM_PLAYREADY",X1),Y1={},Pbb=(Y1.widevine=1,Y1.fairplay=2,Y1.playready=3,Y1);bO.prototype.Ph=function(a,b){b=b===void 0?1:b;this.Kn+=b;this.B+=a;a/=b;for(var c=0;c0)d+="."+aO[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new LIa;return a}; +g.k.toString=function(){return""};g.k=QIa.prototype;g.k.isActive=function(){return!1}; +g.k.HK=function(){}; +g.k.KA=function(){}; +g.k.zC=function(){}; +g.k.fA=function(){}; +g.k.ev=function(a,b){return b()}; +g.k.fY=function(){return{}}; +g.k.toString=function(){return""};var Z1,Qbb,Rbb,Sbb,Tbb,Ubb,$1,qU,MX,z5a,gO;Z1=new QIa;Qbb=!!+qr("html5_enable_profiler");Rbb=!!+qr("html5_onesie_enable_profiler");Sbb=!!+qr("html5_offline_encryption_enable_profiler");Tbb=!!+qr("html5_performance_impact_profiling_timer_ms");Ubb=!!+qr("html5_drm_enable_profiler");$1=Qbb||Rbb||Sbb||Tbb||Ubb?new NIa:Z1;g.uW=Qbb?$1:Z1;qU=Rbb?$1:Z1;MX=Sbb?$1:Z1;z5a=Tbb?$1:Z1;gO=Ubb?$1:Z1;var fO;g.z(dO,g.O); +dO.prototype.initialize=function(a,b){for(var c=this,d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.me)for(var h=g.w(Object.keys(f.me)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=$N[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.w(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new QN(l,n,f.me[l],this.Da.experiments),this.j[l]=this.j[l]|| +{},this.j[l][f.mimeType]=!0}}}ls()&&(this.C["com.youtube.fairplay"]=new QN("fairplay","com.youtube.fairplay","",this.Da.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=KIa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})}; +dO.prototype.L=function(a){return this.Da.experiments.kb(a)};var e5a={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};XIa.prototype.L=function(a){return this.experiments.kb(a)};var AJa={RED:"red",rma:"white"};YIa.prototype.kb=function(a){return this.flags[a]==="true"};var aJa=Promise.resolve(),dJa=window.queueMicrotask?window.queueMicrotask.bind(window):bJa;kO.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;ru?a=a||Vbb[b]:MO===2.2?a=a||Wbb[b]:js()&&(a=a||Xbb[b]);return!!a}; +kO.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):LE(a)}; +var Wbb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Xbb={"application/x-mpegURL":"maybe"},Vbb={"application/x-mpegURL":"maybe"};g.z(oO,g.Fx);oO.prototype.add=function(a,b){if(!this.items[a]&&(b.iJ||b.LO||b.TM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}}; +oO.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b}; +oO.prototype.get=function(a){return this.items[a]||null}; +oO.prototype.isEmpty=function(){return g.Bc(this.items)};g.z(pO,g.PJ);pO.prototype.j=function(a,b){return g.PJ.prototype.j.call(this,a,b)}; +pO.prototype.B=function(a,b,c){var d=this;return g.J(function(e){return e.j==1?g.G(e,g.PJ.prototype.B.call(d,a,b,c),2):e.return(e.B)})}; +g.z(qO,g.QJ);qO.prototype.encrypt=function(a,b){return g.QJ.prototype.encrypt.call(this,a,b)};sO.prototype.zm=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a}; +sO.prototype.fh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};tO.prototype.zm=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.xl=!0}; +tO.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.xl&&(g.$b(this.G,function(c,d){return b.values[c]-b.values[d]}),this.xl=!1); +return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0}; +tO.prototype.fh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.z(uO,g.O);uO.prototype.Va=function(){var a;(a=this.Ga)==null||a.start();if(DO(this)&&this.policy.Y){var b;(b=this.Ad)==null||b.pG()}};g.z(tJa,g.O);var zJa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),FJa={ega:"caoe",fga:"capsv",wga:"cbrand",xga:"cbr",zga:"cbrver",Kga:"cchip",Rga:"ccappver",Sga:"ccrv",Kha:"cfrmver",tia:"c",wia:"cver",via:"ctheme",uia:"cplayer",uja:"cmodel",Gja:"cnetwork",Nja:"cos",Oja:"cosver",Vja:"cplatform",tka:"crqyear"};g.z(WO,g.O);g.k=WO.prototype;g.k.L=function(a){return this.experiments.kb(a)}; +g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.YO(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.PO(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),ru&&(a=Hma())&&(b.ebc=a));return g.Ti(f,b)}; +g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.YO(this)+"/embed/"+b;d&&(b=g.Ti(b,{list:d}));d=c.width;c=c.height;b=Td(b);a=Td(a!=null?a:"YouTube video player");return'')}; +g.k.supportsGaplessAudio=function(){return g.KE&&!ru&&kna()>=74||g.YN&&g.kc(68)?!0:!1}; +g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.Rt?!1:!0}; +g.k.getPlayerType=function(){return this.j.cplayer}; +g.k.Ac=function(){return this.Rf}; +g.k.Uu=function(){this.L("html5_enable_lawnmower_messaging")}; +var JJa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],EJa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],HJa=[19];var a2={},MJa=(a2["140"]={numChannels:2},a2["141"]={numChannels:2},a2["251"]={audioSampleRate:48E3,numChannels:2},a2["380"]={numChannels:6},a2["328"]={numChannels:6},a2),b2={},KJa=(b2["1"]='video/mp4; codecs="av01.0.08M.08"',b2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',b2["9"]='video/webm; codecs="vp9"',b2["("]='video/webm; codecs="vp9"',b2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',b2.h='video/mp4; codecs="avc1.64001e"',b2.H='video/mp4; codecs="avc1.64001e"',b2.o= +'audio/webm; codecs="opus"',b2.a='audio/mp4; codecs="mp4a.40.2"',b2.ah='audio/mp4; codecs="mp4a.40.2"',b2.mac3='audio/mp4; codecs="ac-3"; channels=6',b2.meac3='audio/mp4; codecs="ec-3"; channels=6',b2),c2={},LJa=(c2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},c2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},c2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},c2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},c2["701"]={width:3840,height:2160,bitrate:2E7,fps:60},c2["700"]={width:2560, +height:1440,bitrate:1E7,fps:60},c2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},c2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},c2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},c2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},c2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},c2["360"]={width:1920,height:1080,bitrate:5331E3, +fps:30,cryptoblockformat:"subsample"},c2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},c2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},c2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},c2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},c2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},c2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},c2["302"]={width:1280,height:720,bitrate:25E5, +fps:60},c2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},c2["298"]={width:1280,height:720,bitrate:35E5,fps:60},c2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},c2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},c2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},c2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},c2["398"]={width:1280,height:720,bitrate:1E6,fps:60},c2["397"]={width:854,height:480,bitrate:4E5,fps:30},c2["396"]={width:640,height:360,bitrate:25E4,fps:30},c2["313"]= +{width:3840,height:2160,bitrate:8E6,fps:30},c2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},c2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},c2["247"]={width:1280,height:720,bitrate:15E5,fps:30},c2["244"]={width:854,height:480,bitrate:52E4,fps:30},c2["243"]={width:640,height:360,bitrate:28E4,fps:30},c2["137"]={width:1920,height:1080,bitrate:4E6,fps:30},c2["136"]={width:1280,height:720,bitrate:3E6,fps:30},c2["135"]={width:854,height:480,bitrate:1E6,fps:30},c2["385"]={width:1920,height:1080, +bitrate:6503313,fps:60},c2["376"]={width:1280,height:720,bitrate:5706960,fps:60},c2["384"]={width:1280,height:720,bitrate:3660979,fps:60},c2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},c2["224"]={width:1280,height:720,bitrate:453E4,fps:30},c2["145"]={width:1280,height:720,bitrate:2682052,fps:30},c2);g.k=mP.prototype;g.k.getInfo=function(){return this.j}; +g.k.wD=function(){return null}; +g.k.pY=function(){var a=this.wD();return a?(a=g.zr(a.resource),Number(a.expire)):NaN}; +g.k.uT=function(){}; +g.k.getHeight=function(){return this.j.video.height};OJa.prototype.build=function(){RJa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.w(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.dc){if(e.dc.getIsDefault()){c=e.dc.getId();break a}c||(c=e.dc.getId())}}d=g.w(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.dc||e.dc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.w(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.w(e);for(var f=e.next();!f.done;f= +e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.dc){p=f.dc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=oP(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(QJa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.w(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Ybb,d=(h=d.dc)?'#EXT-X-MEDIA:URI="'+oP(this,d.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=this.G.length>0?Ybb:void 0;d=g.w(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(QJa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+= +",FRAME-RATE="+h.fps),h.LC&&(l+=",VIDEO-RANGE="+h.LC),a.push(l),a.push(oP(this,e.url,"")));return a.join("\n")}; +var Ybb="text";g.z(pP,mP);pP.prototype.pY=function(){return this.expiration}; +pP.prototype.wD=function(){if(!this.resource||this.resource.La()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new wF(a)}return this.resource};g.z(qP,mP);qP.prototype.wD=function(){return new wF(this.B.Ce())}; +qP.prototype.uT=function(){this.B=NL(this.B)};g.z(rP,mP);rP.prototype.wD=function(){return new wF(this.B)};var d2={},cKa=(d2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",d2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",d2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",d2);g.k=g.sP.prototype;g.k.getId=function(){return this.id}; +g.k.getName=function(){return this.name}; +g.k.isServable=function(){return this.j}; +g.k.Ce=function(){return this.url}; +g.k.getXtags=function(){return this.xtags}; +g.k.toString=function(){return this.languageCode+": "+g.tP(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.k.qe=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var hKa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},iKa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},jKa=/^(\d*)_((\d*)_?(\d*))$/;var lKa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},mKa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var e2={},YKa=(e2.ALWAYS=1,e2.BY_REQUEST=3,e2.UNKNOWN=void 0,e2),f2={},dLa=(f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",f2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",f2);var kBa; +kBa=function(a){for(var b=Object.keys(a),c={},d=0;dd-b?-1:a}; +g.k.sz=function(){return this.B.qd()}; +g.k.IN=function(){return this.B.Vn()}; +g.k.NV=function(a){this.B=a};g.z(UP,SP);UP.prototype.B=function(a,b){return SP.prototype.B.call(this,"$N|"+a,b)}; +UP.prototype.G=function(a,b,c){return new TP(a,b,c,this.isLive)};var hLa=[],kQ=new Set;g.z(g.WP,g.Fx);g.k=g.WP.prototype;g.k.U=function(){return this.Da}; +g.k.L=function(a){return this.Da.L(a)}; +g.k.Jh=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.kf)==null||!a.ob)}; +g.k.j0=function(){this.La()||(this.j.B||this.j.unsubscribe("refresh",this.j0,this),this.sX(-1))}; +g.k.sX=function(a){if(!this.isLivePlayback||!this.G||this.G.flavor!="fairplay"){var b=mIa(this.j,this.cH);if(b.length>0){for(var c=g.w(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Xc());this.publish("cuepointupdated",b,a);this.cH+=b.length;if(iQ(this)&&this.Da.Ac())for(b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.eD.start=this.Vk, +this.eD.end=c+3)}}}; +g.k.dj=function(){return this.me?!0:!!this.j&&BL(this.j)}; +g.k.YI=function(a){var b=this;if(this.La())return $r();this.Fd=this.ob=this.C=null;dQ(this,"html5_high_res_logging_always")&&(this.Da.Rf=!0);return vLa(this,a).then(void 0,function(){return wLa(b,a)}).then(void 0,function(){return xLa(b)}).then(void 0,function(){return zLa(b)})}; +g.k.zk=function(){if(this.cotn)return null;var a=g.MC(this.Da)||this.L("web_l3_storyboard");if(!this.Zk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Zk=new SP(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=$aa(this.j.j).index)&&(this.Zk=new UP(b.spec,this.j.isLive,c,a))}else this.nB?this.Zk=new SP(this.nB,this.lengthSeconds,void 0,!1,a):this.zw&&this.j&& +(b=$aa(this.j.j).index)&&(this.Zk=new UP(this.zw,this.j.isLive,b,a));return this.Zk}; +g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.nB||this.zw}; +g.k.Vd=function(){return this.j&&!isNaN(this.j.Vd())?this.j.Vd():iQ(this)?0:this.lengthSeconds}; +g.k.Xc=function(){return this.j&&!isNaN(this.j.Xc())?this.j.Xc():0}; +g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Li(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null}; +g.k.qe=function(){return!this.La()&&!(!this.videoId&&!this.nm)}; +g.k.sx=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)}; +g.k.isLoaded=function(){return XP(this)&&!this.zj&&!this.wp}; +g.k.gh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Da.ra||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:ZO(this.Da,this.videoId,a)}; +g.k.Vb=function(){return this.isLivePlayback||this.Wd||this.Ka||!(!this.liveUtcStartSeconds||!this.bk)}; +g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Wd&&!this.isLivePlayback&&this.j.B)}; +g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.yw||[]:[]}; +g.k.getAudioTrack=function(){var a=this;if(this.D&&!cF(this.D))return g.Kb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.bl; +if(this.yw){if(!this.Pp)for(var b=g.w(this.yw),c=b.next();!c.done;c=b.next())if(c=c.value,c.dc.getIsDefault()){this.Pp=c;break}return this.Pp||this.bl}return this.bl}; +g.k.getPlayerResponse=function(){return this.playerResponse}; +g.k.getWatchNextResponse=function(){return this.Wa}; +g.k.getHeartbeatResponse=function(){return this.YD}; +g.k.El=function(){return this.watchUrl?this.watchUrl:this.Da.getVideoUrl(this.videoId)}; +g.k.TQ=function(){return!!this.j&&(bIa(this.j)||cIa(this.j)||dIa(this.j))}; +g.k.getEmbeddedPlayerResponse=function(){return this.Ii}; +g.k.Bk=function(){return(this.eventLabel||this.Da.Ma)==="shortspage"}; +g.k.isAd=function(){return this.ZF||!!this.adFormat}; +g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.k.oi=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)}; +g.k.HT=function(){return ZKa(this)?this.Q3:this.Tq||this.Wi}; +g.k.JH=function(){return this.Nj||this.Wi}; +g.k.RI=function(){return dQ(this,"html5_samsung_vp9_live")}; +g.k.useInnertubeDrmService=function(){return!0}; +g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)}; +g.k.Fy=function(a,b,c){this.publish("ctmpstr",a,b,c)}; +g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.k.jd=function(a,b){if(!g.IO(this.Da))return!1;var c;if(((c=this.Da.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.Da.Ga||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var d;return!!(((d=this.embeddedPlayerConfig)==null?0:d.isShortsExperienceEligible)&&a.width<=a.height)}; +g.k.xa=function(){g.Fx.prototype.xa.call(this);this.Rv=null;delete this.sfa;delete this.accountLinkingConfig;delete this.j;this.C=this.YD=this.playerResponse=this.Wa=null;this.Tf=this.adaptiveFormats="";delete this.botguardData;this.jf=this.suggestions=this.Uv=null};var $La={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},aMa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ZLa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},bMa=!1,WLa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},YLa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},XLa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE", +2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.z(eR,g.O);g.k=eR.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.N[a],e=this.state.Z[a],f=d;if(e)if(c&&kD(c,fbb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.w(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.fx(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');}; +g.k.logApiCall=function(a,b,c){var d=this.app.U();d.xp&&!this.state.Y.has(a)&&(this.state.Y.add(a),g.Ht("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ga,errorCode:c}))}; +g.k.publish=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.B.publish.apply(this.state.B,[a].concat(g.x(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; +g.k.ib=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)))}; +g.k.Hc=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))}; +g.k.Ai=function(a){var b=g.Ca.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)));this.state.G.publish.apply(this.state.G,[a].concat(g.x(b)))}; +g.k.L=function(a){return this.app.U().L(a)}; +g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.O.prototype.xa.call(this)};g.z(jR,g.Gp);jR.prototype.publish=function(a){var b=g.Ca.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.Gp.prototype.publish.call.apply(g.Gp.prototype.publish,[this,a].concat(g.x(b.shift())))}finally{this.G.delete(a)}return c};g.z(kR,g.O);kR.prototype.xa=function(){this.G.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.Y=this.j=this.Z=this.N=this.K=void 0};var iMa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.z(mR,eR);g.k=mR.prototype;g.k.getApiInterface=function(){return Array.from(this.state.K)}; +g.k.l7=function(a,b){this.state.G.subscribe(a,b)}; +g.k.uda=function(a,b){this.state.G.unsubscribe(a,b)}; +g.k.getPlayerState=function(a){return U5a(this.app,a)}; +g.k.c9=function(){return U5a(this.app)}; +g.k.Tda=function(a,b,c){pR(this)&&(V_(this.app,!0,1),X_(this.app,a,b,c,1))}; +g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?Q5a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)}; +g.k.P8=function(){return this.app.getCurrentTime(1)}; +g.k.X8=function(){var a=this.app.bf(1);return isNaN(a)?this.getCurrentTime(1):a}; +g.k.U8=function(){return this.app.getDuration(1)}; +g.k.BM=function(a,b){a=g.Dd(Math.floor(a),0,100);isFinite(a)&&O_(this.app,{volume:a,muted:this.isMuted()},b)}; +g.k.jea=function(a){this.BM(a,!1)}; +g.k.lL=function(a){O_(this.app,{muted:!0,volume:this.getVolume()},a)}; +g.k.V$=function(){this.lL(!1)}; +g.k.ZM=function(a){g.oR(this.app)||O_(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)}; +g.k.Xea=function(){this.ZM(!1)}; +g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Ff&&(a.pfp={enableIma:g.aR(this.app.getVideoData())&&this.app.Od().allowImaMonetization,autoplay:TQ(this.app.Od()),mutedAutoplay:this.app.Od().mutedAutoplay});return a}; +g.k.IS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.Ef()){var b=uU(this.app.Bb());if(!I8a(b)||J8a(b))return}a===3?BR(this.app.Bb()).zG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.jQ(this.app.Od())&&a===2||this.app.playVideo(a)}; +g.k.Tca=function(){V_(this.app,!0,1);this.IS()}; +g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.Ef()||I8a(uU(this.app.Bb())))b===3?BR(this.app.Bb()).zG("control_pause"):this.app.pauseVideo(b,a)}; +g.k.yea=function(){var a=this.app,b=!1;a.W.wc&&(a.Ua.publish("pageTransition"),b=!0);a.stopVideo(b)}; +g.k.clearVideo=function(){}; +g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.yp?Zab:Yab:[1]}; +g.k.getPlaybackQuality=function(a){return(a=g.qR(this.app,a))?a.getPlaybackQuality():"unknown"}; +g.k.dea=function(){}; +g.k.getAvailableQualityLevels=function(a){return(a=g.qR(this.app,a))?(a=g.Al(a.Ut(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]}; +g.k.L8=function(){return this.getAvailableQualityLevels(1)}; +g.k.h9=function(){return this.LY()}; +g.k.i9=function(){return 1}; +g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)}; +g.k.LY=function(){return this.getVideoLoadedFraction()}; +g.k.l9=function(){return 0}; +g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; +g.k.setSize=function(){this.app.qb().resize()}; +g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=lR(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; +g.k.t$=function(a,b,c){a=this.loadVideoById(a,b,c,1);V_(this.app,a,1)}; +g.k.cueVideoById=function(a,b,c,d){a=lR(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; +g.k.N7=function(a,b,c){this.cueVideoById(a,b,c,1)}; +g.k.loadVideoByUrl=function(a,b,c,d){a=hMa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)}; +g.k.w$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);V_(this.app,a,1)}; +g.k.cueVideoByUrl=function(a,b,c,d){a=hMa(a,b,c);this.app.cueVideoByPlayerVars(a,d)}; +g.k.Q7=function(a,b,c){this.cueVideoByUrl(a,b,c,1)}; +g.k.n9=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)}; +g.k.S8=function(){return this.app.getDebugText()}; +g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ra)return"";var b=this.app.Od();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Od().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.k.j7=function(a,b,c){return $5a(this.app,a,b,c)}; +g.k.removeCueRange=function(a){return b6a(this.app,a)}; +g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)}; +g.k.r$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);V_(this.app,!0,1)}; +g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)}; +g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)}; +g.k.W$=function(){this.nextVideo();V_(this.app,!0,1)}; +g.k.previousVideo=function(a){this.app.previousVideo(a)}; +g.k.gda=function(){this.previousVideo();V_(this.app,!0,1)}; +g.k.playVideoAt=function(a){this.app.playVideoAt(a)}; +g.k.Sca=function(a){this.playVideoAt(a);V_(this.app,!0,1)}; +g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)}; +g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)}; +g.k.e9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;cd?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Jh(),clipEnd:b.clipEnd, +clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}}; +g.k.isInline=function(){return this.app.isInline()}; +g.k.setInline=function(a){this.app.setInline(a)}; +g.k.m9=function(){return g.qR(this.app,1).uc(!0)}; +g.k.toggleSubtitles=function(){var a=g.rU(this.app.Bb());a&&a.Nea()}; +g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}}; +g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)}; +g.k.getLoopVideo=function(){return this.app.getLoopVideo()}; +g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)}; +var nMa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "), +qMa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var g2={},rMa=(g2["api.invalidparam"]=2,g2.auth=150,g2["drm.auth"]=150,g2["heartbeat.net"]=150,g2["heartbeat.servererror"]=150,g2["heartbeat.stop"]=150,g2["html5.unsupportedads"]=5,g2["fmt.noneavailable"]=5,g2["fmt.decode"]=5,g2["fmt.unplayable"]=5,g2["html5.missingapi"]=5,g2["html5.unsupportedlive"]=5,g2["drm.unavailable"]=5,g2["mrm.blocked"]=151,g2["embedder.identity.denied"]=152,g2);g.z(g.uR,rR);g.k=g.uR.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.N[a]?!0:!!(this.state.Z[a]&&b&&kD(b,fbb))}; +g.k.getBandwidthEstimate=function(){return CO(this.app.U().schedule)}; +g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.qR(this.app);b&&(a={gpu:(0,g.NZ)(),d:a},b.handleError(new FE("feedback",a)))}; +g.k.getInternalApi=function(){return Object.assign({},this.state.j)}; +g.k.getInternalApiInterface=function(){return g.xc(this.state.j)}; +g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)}; +g.k.b9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.U(a,1),isCued:a.isCued(),isDomPaused:g.U(a,1024),isEnded:g.U(a,2),isError:g.U(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.U(a,16),isUiSeeking:g.U(a,32),isUnstarted:g.U(a,64)}}; +g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()}; +g.k.startSeekCsiAction=function(){this.app.Wh().D.j=(0,g.Zt)()}; +g.k.O8=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)}; +g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.qR(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Dc()&&(h=f.getStreamTimeOffset());X_(e,a-h,b,c,1,d)}; +g.k.getStreamTimeOffset=function(){var a=g.qR(this.app,1);return a?a.getStreamTimeOffset():0}; +g.k.seekToLiveHead=function(a,b){var c=g.qR(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&X_(this.app,Infinity,a,b,1)}; +g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.qR(this.app,1);c&&c.dC(a,b)}; +g.k.Sda=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)}; +g.k.Qda=function(a,b,c,d){this.seekBy(a,b,c,d,1)}; +g.k.setVolume=function(a,b){this.BM(a,b===void 0?!0:b)}; +g.k.mute=function(a){this.lL(a===void 0?!0:a)}; +g.k.unMute=function(a){this.ZM(a===void 0?!0:a)}; +g.k.syncVolume=function(){var a=r5a(this.app);O_(this.app,{volume:a.volume,muted:a.muted},!1)}; +g.k.getAvailableQualityLabels=function(){var a=g.qR(this.app,1);return a?g.Al(a.Ut(),function(b){return b.qualityLabel}):[]}; +g.k.channelSubscribed=function(){this.ib("SUBSCRIBE",this.app.Od().Wl)}; +g.k.channelUnsubscribed=function(){this.ib("UNSUBSCRIBE",this.app.Od().Wl)}; +g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)}; +g.k.getCurrentPlaylistSequence=function(){return g.qR(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())}; +g.k.getPlaylistSequenceForTime=function(a){return g.qR(this.app).getPlaylistSequenceForTime(a)}; +g.k.shouldSendVisibilityState=function(){return!0}; +g.k.confirmYpcRental=function(){var a=g.qR(this.app,1);a&&a.Dg("ypc_clickwrap")}; +g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a}; +g.k.setConnectedRemoteApps=function(a){this.app.U().Hj=a}; +g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=zs("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,DJa)}; +g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a}; +g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()}; +g.k.addUtcCueRange=function(a,b,c,d,e){return a6a(this.app,a,b,c,d,e)}; +g.k.j9=function(a){a=a===void 0?1:a;var b=this.KY(a);if(a=g.qR(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ma;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?Wd(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)? +Wd(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.C4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=ALa(a);b.paidContentOverlayDurationMs=BLa(a);a.j&&yL(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b}; +g.k.getAdState=function(){return this.app.getAdState()}; +g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.qR(this.app,1))?a.getPlayerState():null)?a.eh:null;return!!(a&&b&&g.U(a,128)&&sMa(b.errorCode)===5)}; +g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()}; +g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()}; +g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)}; +g.k.clearQueue=function(){this.app.clearQueue()}; +g.k.Ji=function(){return g.nR(this)}; +g.k.sendAbandonmentPing=function(){var a=g.qR(this.app);a&&a.sendAbandonmentPing()}; +g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Od(),b==null?0:lQ(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.BD=b.autonavState);else if(b.BD!==void 0)a=b.BD,b.BD=void 0;else return}h6a(this.app,a)}; +g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!1:b)}; +g.k.setLoopRange=function(a){this.app.setLoopRange(a)}; +g.k.getLoopRange=function(){return this.app.getLoopRange()}; +g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=g.qR(this.app,1))==null||!a.hasSupportedAudio51Tracks())}; +g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.qR(this.app,1);c&&c.setUserAudio51Preference(a,b)}; +g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.qR(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1}; +g.k.setProximaLatencyPreference=function(a){var b=g.qR(this.app,1);b&&b.setProximaLatencyPreference(a)}; +g.k.getProximaLatencyPreference=function(){var a=g.qR(this.app,1);return a?a.getProximaLatencyPreference():0}; +g.k.isProximaLatencyEligible=function(){var a=g.qR(this.app,1);return a?a.isProximaLatencyEligible():!1}; +g.k.getAppState=function(){return this.app.getAppState()}; +g.k.updateLastActiveTime=function(){Tv()}; +g.k.setBlackout=function(a){this.app.setBlackout(a)}; +g.k.setUserEngagement=function(a){this.app.U().hm!==a&&(this.app.U().hm=a,(a=g.qR(this.app,1))&&x_(a))}; +g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.rU(this.app.Bb()).B3(a,b)}; +g.k.getCaptionWindowContainerId=function(){var a=g.rU(this.app.Bb());return a?a.getCaptionWindowContainerId():""}; +g.k.toggleSubtitlesOn=function(){var a=g.rU(this.app.Bb());a&&a.X2()}; +g.k.isSubtitlesOn=function(){var a=g.rU(this.app.Bb());return a?a.isSubtitlesOn():!1}; +g.k.getPlayerResponse=function(a){return(a=g.qR(this.app,a))?a.getVideoData().getPlayerResponse():null}; +g.k.a9=function(){return this.getPlayerResponse(1)}; +g.k.getEmbeddedPlayerResponse=function(){var a=g.qR(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null}; +g.k.getWatchNextResponse=function(a){return(a=g.qR(this.app,a))?a.getVideoData().getWatchNextResponse():null}; +g.k.o9=function(){return this.getWatchNextResponse(1)}; +g.k.getHeartbeatResponse=function(a){return(a=g.qR(this.app,a))?a.getVideoData().getHeartbeatResponse():null}; +g.k.V8=function(){return this.getHeartbeatResponse(1)}; +g.k.getStoryboardFrame=function(a,b){var c=this.app.zk();if(!c)return null;b=c.levels[b];return b?(a=g.QP(b,a))?{column:a.column,columns:a.columns,height:a.Tx,row:a.row,rows:a.rows,url:a.url,width:a.mG}:null:null}; +g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.zk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Dc();return b.KI(a)}; +g.k.getStoryboardLevel=function(a){var b=this.app.zk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.sz(),minFrameIndex:b.IN()}:null:null}; +g.k.getNumberOfStoryboardLevels=function(){var a=this.app.zk();return a?a.levels.length:0}; +g.k.H8=function(){return this.getAudioTrack(1)}; +g.k.getAudioTrack=function(a){return(a=g.qR(this.app,a))?a.getAudioTrack():this.app.getVideoData().bl}; +g.k.setAudioTrack=function(a,b,c){this.fK()===3&&BR(this.app.Bb()).zG("control_set_audio_track",a);if(c=g.qR(this.app,c))if(c.La()||g.U(c.playerState,128))a=!1;else{var d;if((d=c.videoData.C)==null?0:d.j){d=b?c.getCurrentTime()-c.Dc():NaN;if(b){var e=b4a(c.Qc);c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(S4a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d=400)if(a=this.Od(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.Mx(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||FMa(this), +b=this.Od(),this.OV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.Mx(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.w(this.B),c=b.next();!c.done;c=b.next())this.Oc(c.value)}; +g.k.OV=function(a){HMa(this)?this.isChecked=a!==1:((a=a!==1)||(g.it(),a=g.Pr("web_autonav_allow_off_by_default")&&!g.kt(0,141)&&g.pr("AUTONAV_OFF_BY_DEFAULT")?!1:!g.kt(0,140)),this.isChecked=a);GMa(this)}; +g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.oM(this.isChecked?2:1);GMa(this);if(HMa(this)){var a=this.Od().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.ib("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.ib("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)}; +g.k.getValue=function(){return this.isChecked}; +g.k.Od=function(){return this.J.getVideoData(1)};g.z(IMa,oS);g.z(vS,g.kS);vS.prototype.onClick=function(){this.enabled&&(wS(this,!this.checked),this.publish("select",this.checked))}; +vS.prototype.getValue=function(){return this.checked}; +vS.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var KMa=["en-CA","en","es-MX","fr-CA"];g.z(DS,vS);DS.prototype.Ta=function(a){a?this.j||(this.Fb.Uc(this),this.j=!0):this.j&&(this.Fb.qh(this),this.j=!1);this.j&&wS(this,NBa())}; +DS.prototype.D=function(){g.pp(this.element,"ytp-menuitem-highlight-transition-enabled")}; +DS.prototype.C=function(a){var b=NBa();a!==b&&(b=g.it(),mt(190,a),mt(192,!0),b.save(),this.J.ib("cinematicSettingsToggleChange",a))}; +DS.prototype.xa=function(){this.j&&this.Fb.qh(this);vS.prototype.xa.call(this)};g.z(ES,oS);ES.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.z(FS,vS);FS.prototype.B=function(a){this.C(a?1:0)}; +FS.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;wS(this,b);this.setEnabled(a)}; +FS.prototype.xa=function(){this.Fb.qh(this);vS.prototype.xa.call(this)};g.z(GS,oS);GS.prototype.getDrcUserPreference=function(){return this.j}; +GS.prototype.setDrcUserPreference=function(a){g.bt("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Vc())&&this.B()&&FZ(a))}; +GS.prototype.updateEnvironmentData=function(){this.api.U().Tf=this.j===1}; +GS.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?Em(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.z(HS,oS);HS.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.rf("embargo",1);var c=b==null?void 0:b.CD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?OMa(this,c.filter(function(d){return NMa(a,d)})):(b==null?0:b.cueRanges)&&OMa(this,b.cueRanges.filter(function(d){return NMa(a,d)}))}; +HS.prototype.B=function(a){return a.embargo!==void 0}; +HS.prototype.xa=function(){oS.prototype.xa.call(this);this.j={}};g.z(IS,oS); +IS.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Rc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.Fs(g.RO(b))&&e.unshift(159628),b=e.join(","),b=g.ks()?b:g.Ue(b,4),a.source_ve_path=b);this.j.length= +0};g.z(PMa,oS);g.z(JS,g.O);JS.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.z(RMa,oS);g.z(KS,g.T);KS.prototype.show=function(){g.T.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +KS.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=SMa(d),g.U(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,LS(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",ABa(b.label)),UMa(this,a))))}; +KS.prototype.xa=function(){LS(this);g.T.prototype.xa.call(this)};g.z(VMa,oS);g.z(MS,g.T);MS.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.ib("onFullerscreenEduClicked")}; +MS.prototype.Ta=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.z(NS,oS);NS.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.rp(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),wR(b.Ua,b.element,b),b.C=!0))}; +NS.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.z(WMa,g.T);g.z(ZMa,oS);g.z($Ma,oS);g.z(aNa,oS);g.z(OS,oS);OS.prototype.getSphericalProperties=function(){var a=g.ER(this.api.Bb());return a?a.getSphericalProperties():{}}; +OS.prototype.setSphericalProperties=function(a){if(a){var b=g.ER(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.z(PS,oS);g.k=PS.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)}; +g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!1:c)}; +g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)}; +g.k.logClick=function(a,b){this.api.logClick(a,b)}; +g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)}; +g.k.hasVe=function(a){return this.api.hasVe(a)}; +g.k.destroyVe=function(a){this.api.destroyVe(a)};g.z(QS,oS);QS.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.nR(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Xk;if(d&&a=0)return;b=~b;g.Wb(this.items,b,0,a);oe(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.iS,this);this.menuItems.publish("size-change")}; +g.k.qh=function(a){a.unsubscribe("size-change",this.iS,this);this.La()||(g.Pb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))}; +g.k.iS=function(){this.menuItems.publish("size-change")}; +g.k.focus=function(){for(var a=0,b=0;b1&&g.iT(this)}; +g.k.HC=function(){tNa(this);this.Hb&&(sNa(this),g.um(this.element,this.size))}; +g.k.hj=function(){var a=this.j.pop();gT(this,a,this.j[this.j.length-1],!0)}; +g.k.H5=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Nb();a.preventDefault();break;case 37:this.j.length>1&&this.hj();a.preventDefault();break;case 39:a.preventDefault()}}; +g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; +g.k.xa=function(){g.hS.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.z(jT,g.fT);jT.prototype.open=function(a,b){this.initialize(a.items)&&this.pd(b,!!b)}; +jT.prototype.initialize=function(a){g.eT(this.Oe);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.w(a);for(var c=a.next();!c.done;c=a.next())this.Uc(c.value,b--);return!0}; +jT.prototype.Uc=function(a,b){a.menuNavigationItemRenderer?wNa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&xNa(this,a.menuServiceItemRenderer,b)};g.z(kT,bT);g.k=kT.prototype;g.k.tG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Rx(),this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand))}; +g.k.Ru=function(){this.enabled=!1;this.qa.hide()}; +g.k.Qy=function(){return!!this.j&&this.enabled}; +g.k.onVideoDataChange=function(a,b){this.Z1(b);if(this.j){this.d2();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.R((f=this.j)==null?void 0:f.onTap,ix);var h;if(a=g.R((h=this.j)==null?void 0:h.onOverflow,ix))this.N=g.R(a,pab);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)== +null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var y; +this.Va=(y=this.j)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;lT(this)}}; +g.k.Maa=function(){this.isVisible=!0;lT(this)}; +g.k.Naa=function(){this.isVisible=!1;lT(this)}; +g.k.aL=function(){bT.prototype.aL.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)}; +g.k.Rx=function(){bT.prototype.Rx.call(this,!1);this.B&&this.J.logClick(this.banner.element)}; +g.k.I5=function(a){this.K||(this.K=new jT(this.J),g.P(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()}; +g.k.Z1=function(){}; +g.k.d2=function(){}; +g.k.xa=function(){this.J.rf("suggested_action_view_model");bT.prototype.xa.call(this)};g.z(mT,kT); +mT.prototype.Z1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.R((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Bab);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.R((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,mab)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null? +0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)}; +mT.prototype.d2=function(){var a=[],b,c=g.w(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.qD(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.lf(a)};g.z(zNa,oS);g.z(nT,oS);nT.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&ANa(this)};g.z(g.oT,g.kS);g.k=g.oT.prototype;g.k.open=function(){g.hT(this.Fb,this.B)}; +g.k.Ti=function(a){BNa(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Dd(this.ll(a)),this.C=a)}; +g.k.Gz=function(a,b,c,d){var e=this;c={I:"div",Na:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Na:["ytp-menuitem-label"],va:"{{label}}"}]};d&&(d={I:"div",S:"ytp-menuitem-footer",V:[d]},c.V?c.V.push(d):c.V=[d]);b=new g.kS(c,b,this.ll(a,!0));b.listen("click",function(){e.JN(a)}); +return b}; +g.k.enable=function(a){this.K?a||(this.K=!1,this.vz(!1)):a&&(this.K=!0,this.vz(!0))}; +g.k.vz=function(a){a?this.Fb.Uc(this):this.Fb.qh(this)}; +g.k.Hg=function(a){this.publish("select",a)}; +g.k.JN=function(a){this.Hg(a)}; +g.k.ll=function(a){return a.toString()}; +g.k.J5=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())}; +g.k.xa=function(){this.K&&this.Fb.qh(this);g.kS.prototype.xa.call(this);for(var a=g.w(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.z(qT,g.oT);g.k=qT.prototype;g.k.Ta=function(){var a=this.mA("Off");this.J.getPresentingPlayerType()!==2?(CNa(this),this.Ti(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.N&&this.setVideoTimeLeft(this.N),this.enable(!0)):(g.pT(this,[]),this.enable(!1))}; +g.k.Hg=function(a){DNa(this,a);this.Fb.hj()}; +g.k.mA=function(a){switch(a){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(a.toString()+" Minutes").toLowerCase()}}; +g.k.onVideoDataChange=function(a){a==="dataloaded"&&CNa(this)}; +g.k.kca=function(a){this.J.logVisibility(this.element,a)}; +g.k.onClick=function(){this.J.logClick(this.element)}; +g.k.resetSleepTimerMenuSettings=function(){DNa(this,this.mA("Off"))}; +g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Dd(a)}; +g.k.setVideoTimeLeft=function(a){this.N=a;this.D.Dd(a)};g.z(rT,oS);rT.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}; +rT.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)}; +rT.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.z(g.tT,g.Fx);g.k=g.tT.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)}; +g.k.cancel=function(){this.C&&(this.C=!1,this.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),uT(this),sT(this))}; +g.k.Ux=function(a){uT(this);this.T(vT("move"),this.QV);this.T(vT("out"),this.sB);this.T("touchstart",this.LN);this.j&&this.T(vT("down"),this.KN);var b=a.target;a=new g.Gd(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)}; +g.k.QV=function(a){var b=a.target;a=new g.Gd(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Hd(new g.Gd(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)}; +g.k.sB=function(a){var b=new g.Gd(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.qe(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}uT(this);sT(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)}; +g.k.T$=function(a){this.Ux(a);this.KN(a)}; +g.k.KN=function(a){if(typeof a.button!=="number"||a.button===0){uT(this);this.D.T(wT(a.target),vT("move"),this.S$);this.D.T(wT(a.target),vT("up"),this.K5);var b=a.target;if(g.lc)this.T("dragstart",this.Y7);else if(a.preventDefault(),(g.eP||km)&&b)a:{for(var c=b;c;){if(aca(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}wT(b).activeElement.blur()}this.C=!0;a=new g.Gd(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}}; +g.k.Y7=function(a){a.preventDefault()}; +g.k.S$=function(a){var b=a.target;b===wT(a.target)&&(b=null);a=new g.Gd(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}; +g.k.K5=function(a){uT(this);this.C=!1;var b=Us(a),c=a.target;a=new g.Gd(a.pageX,a.pageY);b&&g.qe(this.target,b)?(this.T(vT("move"),this.QV),this.T(vT("out"),this.sB),this.T(vT("down"),this.KN),this.T("touchstart",this.LN),this.publish("dragend",a.x,a.y,c)):(sT(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))}; +g.k.LN=function(a){var b=a.changedTouches[0];b&&(uT(this),this.Y||(this.T("touchmove",this.Oea),this.T("touchend",this.RV),this.T("touchcancel",this.RV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))}; +g.k.Oea=function(a){var b=ENa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))}; +g.k.RV=function(a){var b=ENa(this,a);if(b){uT(this);sT(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}}; +g.k.xa=function(){this.j&&(g.lc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");uT(this);g.Fx.prototype.xa.call(this)}; +var FNa=!1;g.z(xT,g.T);xT.prototype.gi=function(){g.jm(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.z(zT,oS);zT.prototype.ra=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.gp(this.delay)}; +zT.prototype.Ga=function(){if(this.D){this.C=!0;this.Fa=this.api.getPlaybackRate();this.Ma=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.jm(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Ka);this.api.hideControls();this.api.playVideo();this.N&&(this.N.HA=!0);this.qa&&(this.qa.EK=!0)}}; +zT.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&c.length===2&&a.length===2?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b=0?this.j.playbackRate:1}catch(a){return 1}}; +g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a}; +g.k.Wt=function(){return this.j.loop}; +g.k.setLoop=function(a){this.j.loop=a}; +g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)}; +g.k.isPaused=function(){return this.j.paused}; +g.k.isSeeking=function(){return this.j.seeking}; +g.k.isEnded=function(){return this.j.ended}; +g.k.aK=function(){return this.j.muted}; +g.k.oC=function(a){NE();this.j.muted=a}; +g.k.mx=function(){return this.j.played||kF([],[])}; +g.k.Eh=function(){try{var a=this.j.buffered}catch(b){}return a||kF([],[])}; +g.k.uA=function(){return this.j.seekable||kF([],[])}; +g.k.II=function(){var a=this.j;return a.getStartDate?a.getStartDate():null}; +g.k.getCurrentTime=function(){return this.j.currentTime}; +g.k.setCurrentTime=function(a){this.j.currentTime=a}; +g.k.getDuration=function(){return this.j.duration}; +g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a}; +g.k.pause=function(){this.j.pause()}; +g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){}); +return a}; +g.k.jl=function(){return this.j.readyState}; +g.k.bK=function(){return this.j.networkState}; +g.k.Xh=function(){return this.j.error?this.j.error.code:null}; +g.k.Xf=function(){return this.j.error?this.j.error.message:""}; +g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}}; +g.k.ji=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; +g.k.xv=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; +g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():ME()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.k.Zt=function(){var a=this.j;return new g.Gd(a.offsetLeft,a.offsetTop)}; +g.k.getSize=function(){return g.Am(this.j)}; +g.k.setSize=function(a){g.um(this.j,a)}; +g.k.getVolume=function(){return this.j.volume}; +g.k.setVolume=function(a){NE();this.j.volume=a}; +g.k.uP=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)}; +g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)}; +g.k.removeAttribute=function(a){this.j.removeAttribute(a)}; +g.k.hasAttribute=function(a){return this.j.hasAttribute(a)}; +g.k.hE=aa(37);g.k.UH=aa(39);g.k.VH=aa(41);g.k.Mz=aa(43);g.k.QE=function(){return Os(this.j)}; +g.k.Bt=function(a){g.np(this.j,a)}; +g.k.sF=function(a){return g.mm(this.j,a)}; +g.k.SQ=function(){return g.qe(document.body,this.j)}; +g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks}; +g.k.xa=function(){for(var a=g.w(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);GF.prototype.xa.call(this)}; +g.k.xT=function(a){this.j.disableRemotePlayback=a};FT.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a}; +FT.prototype.forEach=function(a){for(var b=this.j+1;b25?5E3:500;this.delay.start(a)}; +MT.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.z(ONa,oS);g.z(NT,g.O);NT.prototype.j=function(){var a=(0,g.Zt)()-this.startTime;a=a=0;a--)this.features[a].dispose();this.features.length=0;g.O.prototype.xa.call(this)};ST.prototype.MR=function(){this.B=(0,g.Zt)()}; +ST.prototype.reset=function(){this.j=this.B=NaN}; +ST.prototype.RR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});rA("seek",c);g.qA({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||pA("pl_ss",this.B,"seek");pA(b,(0,g.Zt)(),"seek")}this.reset()}};g.k=dOa.prototype;g.k.reset=function(){mA(this.timerName)}; +g.k.tick=function(a,b){pA(a,b,this.timerName)}; +g.k.wg=function(a){return tA(a,this.timerName)}; +g.k.Dv=function(a){gG(a,void 0,this.timerName)}; +g.k.infoGel=function(a){g.qA(a,this.timerName)};g.z(hOa,g.Fx);g.k=hOa.prototype;g.k.Gl=function(a){return this.loop||!!a||this.index+1=0}; +g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b0)||yU(this,1,!0)}; +g.k.SV=function(){this.K=!0;this.j.Oc(this.G);this.G=this.j.T(document,"mouseup",this.M5)}; +g.k.M5=function(){this.K=!1;yU(this,8,!1);this.j.Oc(this.G);this.G=this.j.T(this.target,"mousedown",this.SV)}; +g.k.TV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ba=a.identifier,this.j.Oc(this.Z),this.Z=this.j.T(this.target,"touchend",this.N5,void 0,!0),yU(this,1024,!0)}; +g.k.N5=function(a){if(a=a.changedTouches)for(var b=0;b1280||f>720)if(e=c.gh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.gh("maxresdefault.jpg"))break; +if(d>320||f>180)if(e=c.gh("sddefault.jpg")||c.gh("hqdefault.jpg")||c.gh("mqdefault.jpg"))break;if(e=c.gh("default.jpg"))break}g.dP(b)&&(b=new Image,b.addEventListener("load",function(){Vta()}),b.src=e?e:"",this.api.Wh().tick("ftr")); +this.G.style.backgroundImage=e?"url("+e+")":""};g.z(g.CU,g.T);g.CU.prototype.resize=function(){}; +g.CU.prototype.B=function(a){var b=this;this.C=!1;lPa(this);var c=a.wP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Dd(FU(this,"TOO_MANY_REQUESTS_WITH_LINK",d.El(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube?p=videoError",d&&(a=g.Ti(a,{hl:d})),this.Dd(FU(this,"HTML5_SPS_UMP_STATUS_REJECTED", +a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.Ti(a,{hl:d})),this.Dd(FU(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Dd(g.DU(a.errorMessage)):this.Dd(FU(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Ti(c, +{hl:a})),this.Dd(FU(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.wc&&!d.D&&kPa(this,function(f){if(g.xS(f,b.api,!$O(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Hc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}})); +if(this.C){var e=this.Ea("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),kPa(this,function(){b.api.logClick(e)}))}}; +var jPa=/([^<>]+)<\/a>/;g.z(mPa,g.T);g.k=mPa.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.ib("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.xS(a,this.J,!0);this.J.logClick(this.element)}; +g.k.onVideoDataChange=function(a,b){oPa(this,b);this.Ee&&pPa(this,this.Ee)}; +g.k.O5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&oPa(this,b);this.j&&pPa(this,a.state);this.Ee=a.state}; +g.k.pd=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)}; +g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.z(GU,g.T);GU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.T.prototype.hide.call(this)}; +GU.prototype.onStateChange=function(a){this.zd(a.state)}; +GU.prototype.zd=function(a){if(g.U(a,128))var b=!1;else{var c;b=((c=this.api.Vc())==null?0:c.xu)?!1:g.U(a,16)||g.U(a,1)?!0:!1}b?this.j.start():this.hide()}; +GU.prototype.B=function(){this.message.style.display="block"};g.z(HU,g.hS);HU.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(qPa(this),this.pd()):(this.j&&this.logClick(),this.Nb()))}; +HU.prototype.Lk=function(a){this.api.isMutedByMutedAutoplay()&&g.Qy(a,2)&&this.Nb()}; +HU.prototype.onClick=function(){this.api.unMute();this.logClick()}; +HU.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.IU,g.OE);g.k=g.IU.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.FK=a.getPlayerSize();this.Ec(b);this.Vq();this.kc();this.api.publish("basechromeinitialized",this);this.jQ()&&this.api.publish("standardControlsInitialized")}; +g.k.onVideoDataChange=function(a,b){var c=this.XF!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.FK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.jQ(d))&&this.Uq()}c&&(this.XF=b.videoId,c=this.Jg,c.Fa=3E3,yU(c,512,!0),this.Vq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.z2=572)}; +g.k.xba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.k.wC=function(){var a=this.api.rl()&&this.api.Gp(),b=this.api.PA();return this.cP||a||this.BQ||b}; +g.k.Uq=function(){var a=!this.wC();g.rp(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.jQ(b))&&g.rp(this.api.getRootNode(),"ytp-hide-controls",!a)}; +g.k.hJ=function(a){try{if(!g.qe(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!aca(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a}; +g.k.yB=function(a){var b=this.api.getRootNode();g.rp(b,"ytp-autohide",a);g.rp(b,"ytp-autohide-active",!0);this.ZW.start(a?250:100);a&&(this.SM=!1,g.pp(b,"ytp-touch-mode"));this.dP=!a;this.api.xM(!a)}; +g.k.LR=function(){var a=this.api.getRootNode();g.rp(a,"ytp-autohide-active",!1)}; +g.k.bca=function(){this.mU=!0}; +g.k.aca=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.mU=!1,this.nU&&this.Oc(this.nU),this.qG===0&&JU(this,a)?(this.CQ(),this.AJ.start(),this.nU=this.T(this.api.qb(),"touchmove",this.bca,void 0,!0)):this.AJ.stop();uPa(this)&&JU(this,a)&&!this.api.U().Z&&sPa(this);var b=this.rU.Ck();if(!g.IO(this.api.U())&&FO&&vPa(this,a))b&&a.preventDefault();else if(this.SM=!0,g.np(this.api.getRootNode(),"ytp-touch-mode"),this.Jg.Gv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b= +this.api.getPlayerStateObject(),!(!this.api.Jh()||g.U(b,2)&&g.zR(this.api)||g.U(b,64))){b=Date.now()-this.XZ;this.qG+=1;if(b<=350){this.IE=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=(this.qG-1)*10;d>0&&db*2&&d=650;this.Jg.resize();g.rp(b,"ytp-fullscreen",this.api.isFullscreen());g.rp(b,"ytp-large-width-mode",c);g.rp(b,"ytp-small-mode",this.Og());g.rp(b,"ytp-tiny-mode",this.MK());g.rp(b,"ytp-big-mode",this.Hh());this.xg&&this.xg.resize(a)}; +g.k.Lk=function(a){this.Ec(a.state);this.Vq()}; +g.k.qC=aa(5);g.k.UP=function(){var a=!!this.XF&&!this.api.Df()&&!this.BS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(a9a&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=uU(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.MC(b.player.U()):!1);return a}return a&&(c.zn||this.api.isFullscreen()||c.Xk)}; +g.k.Vq=function(){var a=this.UP();this.Ao!==a&&(this.Ao=a,g.rp(this.api.getRootNode(),"ytp-hide-info-bar",!a))}; +g.k.Ec=function(a){var b=a.isCued()||this.api.oo()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.oU&&this.Oc(this.oU),this.oU=this.T(this.api.qb(),"touchstart",this.aca,void 0,b));var c=this.Jg,d=a.isPlaying()&&!g.U(a,32)||this.api.LF();yU(c,128,!d);c=this.Jg;d=this.api.getPresentingPlayerType()===3;yU(c,256,d);c=this.api.getRootNode();g.U(a,2)?d=[P1.ENDED]:(d=[],g.U(a,8)?d.push(P1.PLAYING):g.U(a,4)&&d.push(P1.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(P1.BUFFERING),g.U(a, +32)&&d.push(P1.SEEKING),g.U(a,64)&&d.push(P1.UNSTARTED));g.ac(this.gO,d)||(g.qp(c,this.gO),this.gO=d,g.op(c,d));d=this.api.U();var e=g.U(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.U(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:J8a(uU(this.api.Bb())))||this.api.PA()||g.IO(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.rp(c,"ytp-hide-controls",!f);g.rp(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.BQ);g.U(a, +128)&&!g.IO(d)?(this.xg||(this.xg=new g.CU(this.api),g.P(this,this.xg),g.GR(this.api,this.xg.element,4)),this.xg.B(a.eh),this.xg.show()):this.xg&&(this.xg.dispose(),this.xg=null)}; +g.k.Dr=function(){return this.api.rl()&&this.api.Gp()?(this.api.nC(!1,!1),!0):this.api.Df()?(g.AR(this.api,!0),!0):!1}; +g.k.onMutedAutoplayChange=function(a){this.BQ=a;this.Uq()}; +g.k.Hh=function(){return!1}; +g.k.Og=function(){return!this.Hh()&&(this.api.getPlayerSize().width=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x=d.right)&&(e&=-2),(e&132)==132&&(a.y=d.bottom)&&(e&= +-5),a.xd.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.yd.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.gm(0,0,0,0);d.left= +a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.qm(this.element,new g.Gd(d.left,d.top));g.Ys(this.D);this.D.T(document,"contextmenu",this.Iaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.U5)}; +g.k.Iaa=function(a){if(!a.defaultPrevented){var b=Us(a);g.qe(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}}; +g.k.onFullscreenToggled=function(){this.Nb();SPa(this)}; +g.k.U5=function(){this.Nb()};g.z(TU,g.T);TU.prototype.onClick=function(){var a=this,b,c,d,e;return g.J(function(f){if(f.j==1)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.G(f,VPa(a,e),2);f.B&&UPa(a);a.api.logClick(a.element);g.ua(f)})}; +TU.prototype.Ta=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=TPa(this);g.rp(this.element,"ytp-copylink-button-visible",this.visible); +g.Mx(this,this.visible);this.tooltip.Vh();this.api.logVisibility(this.element,this.visible&&this.Z)}; +TU.prototype.Mc=function(a){g.T.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; +TU.prototype.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-copylink-button-visible")};g.z(UU,g.T);UU.prototype.show=function(){g.T.prototype.show.call(this);g.gp(this.B)}; +UU.prototype.hide=function(){this.D.stop();this.C=0;g.pp(this.element,"ytp-chapter-seek");g.pp(this.element,"ytp-time-seeking");g.T.prototype.hide.call(this)}; +UU.prototype.lH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.ip(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.qb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f* +2.5;f=h/2;var l=this.Ea("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.qb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ea("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");WPa(this,this.G?this.C:d)};g.z(YPa,bT);g.k=YPa.prototype;g.k.W5=function(a){this.Ka||(this.Ka=new jT(this.J),g.P(this,this.Ka));var b,c;if((b=this.yb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.Ka.open(this.yb.menu.menuRenderer,a.target),a.preventDefault()}; +g.k.Uaa=function(){this.J.ib("innertubeCommand",this.Wc);this.J.logClick(this.infoButton.element)}; +g.k.Qy=function(){return!!this.j}; +g.k.DM=function(){return!!this.j}; +g.k.tG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.yc&&this.J.ib("innertubeCommand",this.yc),this.Rx(!1))}; +g.k.Ru=function(){this.Rx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.bC()}; +g.k.PV=function(){this.bC();YU(this)}; +g.k.bea=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.bC();c=g.w(this.Fa);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element, +d.trackingParams));this.qa.show();aT(this);g.Mx(this.Ga,!d.stayInApp);jQa(this);$Pa(this);XU(this);this.yc=g.R(d.onTapCommand,ix);if(e=g.R(d.menuOnTap,ix))this.yb=g.R(e,pab);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:cQa(this),priceDropReferencePrice:dQa(this),promotionText:bQa(this),priceA11yText:eQa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:fQa(this)}); +l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Kb=new g.fp(function(){iQa(b)},1E3),this.Ga.hide(),this.countdownTimer.show(),iQa(this)); +this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ZPa(this)&&(this.Tb=new g.fp(function(){aQa(b)},1E3),aQa(this))}}}}; +g.k.bC=function(){this.j&&(this.j=void 0,this.Vl())}; +g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&YU(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.R((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,nab);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&& +a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)== +null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.Qx(p));this.Wc=b==null?void 0:b.onClickCommand;this.Fa.length||(hQa(this,n),XU(this));var r;(r=this.Rc)==null||r.call(this);this.Rc=g.pQ.subscribe(function(){hQa(c,n);XU(c)})}else{var t; +(t=this.Rc)==null||t.call(this);this.bC()}}; +g.k.xa=function(){YU(this);jQa(this);$Pa(this);bT.prototype.xa.call(this)};g.z(oQa,g.T);oQa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.z(pQa,g.hS);g.k=pQa.prototype;g.k.show=function(){g.hS.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);qQa(this,!0)}; +g.k.hide=function(){g.hS.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);qQa(this,!1)}; +g.k.getId=function(){return this.D}; +g.k.Up=function(){return this.itemData.length}; +g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.Zj)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.Zj)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.Zj)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.w(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.Zj)==null?0:l.ctaButtons)for(b=g.w(b.Zj.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.R(l.value, +jab))l=new oQa(this.J,l,this.j),l.qe&&(this.itemData.push(l),l.Ja(this.items))}}; +g.k.xa=function(){this.hide();g.hS.prototype.xa.call(this)};g.z(tQa,g.T);g.k=tQa.prototype;g.k.onVideoDataChange=function(a,b){sQa(this,b);this.Ee&&vQa(this,this.Ee)}; +g.k.Z5=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&sQa(this,b);vQa(this,a.state);this.Ee=a.state}; +g.k.g0=function(a){(this.D=a)?this.hide():this.j&&this.show()}; +g.k.Y5=function(){this.B||this.pd();this.showControls=!0}; +g.k.X5=function(){this.B||this.Nb();this.showControls=!1}; +g.k.pd=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.jd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.U(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))}; +g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))}; +g.k.gea=function(){this.B=!1;this.showControls||this.Nb()};var ccb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ccb).reduce(function(a,b){a[ccb[b]]=b;return a},{}); +var dcb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(dcb).reduce(function(a,b){a[dcb[b]]=b;return a},{}); +var ecb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ecb).reduce(function(a,b){a[ecb[b]]=b;return a},{});var fcb,gcb;fcb=[{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"}];gcb=[{option:0,text:ZU(0)},{option:.25,text:ZU(.25)},{option:.5,text:ZU(.5)},{option:.75,text:ZU(.75)},{option:1,text:ZU(1)}]; +g.bV=[{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:fcb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:ZU(.5)},{option:-1,text:ZU(.75)},{option:0,text:ZU(1)},{option:1,text:ZU(1.5)},{option:2, +text:ZU(2)},{option:3,text:ZU(3)},{option:4,text:ZU(4)}]},{option:"background",text:"Background color",options:fcb},{option:"backgroundOpacity",text:"Background opacity",options:gcb},{option:"windowColor",text:"Window color",options:fcb},{option:"windowOpacity",text:"Window opacity",options:gcb},{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:ZU(.25)},{option:.5,text:ZU(.5)},{option:.75,text:ZU(.75)},{option:1,text:ZU(1)}]}];var hcb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.z(BQa,g.OE);g.k=BQa.prototype; +g.k.VY=function(a){a.repeat||(this.C.EK=!1);var b=!1,c=a.keyCode,d=Us(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.oR(this.api.app)||hcb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.jf&&!g.oR(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b= +d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?b=!0:e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);NU(this.le,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0); +NU(this.le,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Jh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Jh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&aV(this,!0);(b||h)&&this.Jg.Gv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey, +shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Hc("onKeyPress",a))}; +g.k.WY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()}; +g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.EK)return b;(c=g.ER(this.api.Bb()))&&(c=c.Av)&&c.Hb&&(c.TY(a),b=!0);switch(a){case 9:aV(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().jf){var l,m;a=(l=this.progressBar)== +null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Us(a)}}return b}; +g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.EK=!1);var m=!1,n=this.api.U();if(n.jf&&!g.oR(this.api.app))return m;var p=g.ER(this.api.Bb());if(p&&(p=p.Av)&&p.Hb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.SY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&xla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.oR(this.api.app)|| +hcb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Xk:[];t=uX?d:c;switch(a){case 80:b&&!n.Ra&&(MU(this.le,xsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ra&&(MU(this.le,Xx(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Jh()&&(this.api.startSeekCsiAction(),this.j?VU(this.j,-1,10):MU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill", +X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Jh()&&(this.api.startSeekCsiAction(),this.j?VU(this.j,1,10):MU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Jh()&&(this.api.startSeekCsiAction(),t?(t=yQa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(XPa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?VU(this.j,-1,5):MU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Jh()&&(this.api.startSeekCsiAction(),t?(t=xQa(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(XPa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?VU(this.j,1,5):MU(this.le,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),NU(this.le,this.api.getVolume(),!1)):(this.api.mute(),NU(this.le,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Ra:this.Us(p);break;case 75:m=this.Us(p);break;case 190:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!CQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),xPa(this.le,!1),m=!0):this.api.Jh()&& +(this.step(1),m=!0);break;case 188:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!CQa(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),xPa(this.le,!0),m=!0):this.api.Jh()&&(this.step(-1),m=!0);break;case 70:JMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0); +break;case 27:p?(this.progressBar.Zw(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.rU(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),yPa(this.le,!n||n&&!n.displayName),m=!0);break;case 79:cV(this,"textOpacity");break;case 87:cV(this,"windowOpacity");break;case 187:case 61:cV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:cV(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.Jh()&& +(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Jg.Gv()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m}; +g.k.step=function(a){this.api.Jh();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,a>0?77:78)}}; +g.k.Us=function(a){if(!this.api.U().Ra){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.R(d.miniplayer,vab))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.ib("onExpandMiniplayer");a?this.progressBar.BP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.le.KH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.k.xa=function(){g.ip(this.G);g.OE.prototype.xa.call(this)};g.z(g.dV,g.T);g.dV.prototype.Ls=aa(11);g.dV.prototype.Ta=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.zi.isEmpty();a=g.IO(a)&&g.CR(this.J)&&g.U(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Og()&&!a&&c.width>=240&&!g.aR(this.J.getVideoData())&&!b&&!this.j&&!this.J.jd();g.rp(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Vh();this.J.logVisibility(this.element,this.visible&&this.Z)}; +g.dV.prototype.Mc=function(a){g.T.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; +g.dV.prototype.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-overflow-button-visible")};g.z(DQa,g.hS);g.k=DQa.prototype;g.k.a6=function(a){a=Us(a);g.qe(this.element,a)&&(g.qe(this.j,a)||g.qe(this.closeButton,a)||iS(this))}; +g.k.Nb=function(){g.hS.prototype.Nb.call(this);this.J.Cm(this.element)}; +g.k.show=function(){this.Hb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.hS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");FQa(this,!0)}; +g.k.hide=function(){g.hS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");FQa(this,!1)}; +g.k.onFullscreenToggled=function(a){!a&&this.Ck()&&iS(this)}; +g.k.isEmpty=function(){return this.actionButtons.length===0}; +g.k.focus=function(){for(var a=g.w(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Hb){b.focus();break}};g.z(GQa,g.T);GQa.prototype.onClick=function(a){g.xS(a,this.api)&&this.api.playVideoAt(this.index)};g.z(HQa,g.hS);g.k=HQa.prototype;g.k.show=function(){g.hS.prototype.show.call(this);this.j.T(this.api,"videodatachange",this.NN);this.j.T(this.api,"onPlaylistUpdate",this.NN);this.NN()}; +g.k.hide=function(){g.hS.prototype.hide.call(this);g.Ys(this.j);this.updatePlaylist(null)}; +g.k.NN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ea("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Oc(this.C),this.C=null))}; +g.k.qM=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.DD(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[a.index];else{c=g.w(this.playlistData);for(d=c.next();!d.done;d=c.next())d.value.dispose(); +c=a.length;this.playlistData=[];for(d=0;d=this.B&&!a.C&&!b.isAd()&&!this.api.jd()}else a=!1;this.visible=a;g.Mx(this,this.visible);g.rp(this.element,"ytp-search-button-visible",this.visible);g.rp(this.element,"ytp-show-search-title",!this.api.Og());this.api.logVisibility(this.element,this.visible&&this.Z)}; +hV.prototype.Mc=function(a){g.T.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(g.iV,g.T);g.k=g.iV.prototype;g.k.Ms=aa(8);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){PQa(a,f)})}catch(f){f instanceof Error&&PQa(this,f)}else this.Ne.Dr(),iS(this.B,this.element,!1); +this.api.logClick(this.element)}; +g.k.Ta=function(){var a=this.api.U(),b=this.api.jd();g.rp(this.element,"ytp-show-share-title",g.IO(a)&&!b);this.Ne.Hh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.jm(this.element,"right",a+"px")):b&&g.jm(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=OQa(this);g.rp(this.element,"ytp-share-button-visible",this.visible);g.Mx(this,this.visible);this.tooltip.Vh();this.api.logVisibility(this.element,OQa(this)&&this.Z)}; +g.k.Mc=function(a){g.T.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)}; +g.k.xa=function(){g.T.prototype.xa.call(this);g.pp(this.element,"ytp-share-button-visible")};g.z(RQa,g.hS);g.k=RQa.prototype;g.k.e6=function(a){a=Us(a);g.qe(this.G,a)||g.qe(this.closeButton,a)||iS(this)}; +g.k.Nb=function(){g.hS.prototype.Nb.call(this);this.tooltip.Cm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.w(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; +g.k.show=function(){var a=this.Hb;g.hS.prototype.show.call(this);this.Ta();a||this.api.ib("onSharePanelOpened")}; +g.k.B$=function(){this.Hb&&this.Ta()}; +g.k.Ta=function(){var a=this;g.np(this.element,"ytp-share-panel-loading");g.pp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&wA(this.api.Im(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.La()||(g.pp(a.element,"ytp-share-panel-loading"),TQa(a,d))}); +b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.DD("Share link $URL",{URL:b}));AS(this.j);this.api.logVisibility(this.j,!0)}; +g.k.onFullscreenToggled=function(a){!a&&this.Ck()&&iS(this)}; +g.k.focus=function(){this.j.focus()}; +g.k.xa=function(){g.hS.prototype.xa.call(this);SQa(this)};g.z(WQa,bT);g.k=WQa.prototype;g.k.xa=function(){aRa(this);bT.prototype.xa.call(this)}; +g.k.tG=function(a){a.target!==this.dismissButton.element&&(this.Rx(!1),this.J.ib("innertubeCommand",this.onClickCommand))}; +g.k.Ru=function(){this.Wa=!0;this.Rx(!0);this.Vl()}; +g.k.zba=function(a){this.N=a;this.Vl()}; +g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Wa=!1,this.Ba=!0,this.Y=this.ra=!1,aRa(this),$Qa(this,!1),this.B=this.j=!1,kV(this),XQa(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.If(!1);else{var e,f,h;b=g.R((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer, +nab);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.pQ.getState().entities;var l;if((l=GK(f,"featuredProductsEntity",e))==null?0:l.productsData){this.If(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p; +this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,$Qa(this,!0),XQa(this),m=ZQa(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.T({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.P(this,p),n.push(p),n.push.apply(n,g.x(m.slice(1)))),this.K=new g.T({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.P(this,this.K),this.Ma.element.append(this.K.element));this.text=g.Qx(b.text); +var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=g.Qx(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.lf()}qNa(this);aT(this);this.Vl()}}; +g.k.Qy=function(){return!this.N&&this.enabled&&!this.Wa&&!this.J.Og()&&!this.Ab&&(this.Y||this.Ba)}; +g.k.wL=function(a){bT.prototype.wL.call(this,a);if(this.j||this.B)this.timing&&jV(this.timing.preview)&&(this.j=!1,kV(this),this.B=!1,kV(this),this.J.rf("shopping_overlay_preview_collapsed"),this.J.rf("shopping_overlay_preview_expanded"),a=lV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),jV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.rf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.lf([a])), +this.ra=!0,aT(this);kV(this)}; +g.k.If=function(a){(this.Y=a)?($S(this),aT(this,!1)):(aRa(this),this.Ra.start());this.Vl()}; +g.k.lf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;jV(d)&&(UQa(d,a),c.push(lV(d.startSec,d.endSec,"shopping_overlay_visible")));jV(e)&&(UQa(e,a),d=e.startSec+1,c.push(lV(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(lV(d,e.endSec,"shopping_overlay_preview_expanded")));jV(b)&&(UQa(b,a),c.push(lV(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.lf(c)};g.z(dRa,g.T); +dRa.prototype.Ta=function(){var a=this.api.U();g.Mx(this,g.IO(a)&&this.api.jd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Hb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Ab&&!!b.profilePicture:g.IO(a)&&(c=!!b.videoId&&!!b.Ab&&!!b.profilePicture&&!g.aR(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.IO(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a=== +void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.DD("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.np(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.pp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Wl);this.updateValue("expandedTitle",b.expandedTitle)};g.z(mV,g.hS);mV.prototype.show=function(){g.hS.prototype.show.call(this);this.j.start()}; +mV.prototype.hide=function(){g.hS.prototype.hide.call(this);this.j.stop()}; +mV.prototype.ju=function(a,b){a==="dataloaded"&&((this.Bj=b.Bj,this.Qf=b.Qf,isNaN(this.Bj)||isNaN(this.Qf))?this.C&&(this.J.rf("intro"),this.J.removeEventListener(g.sD("intro"),this.K),this.J.removeEventListener(g.tD("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.sD("intro"),this.K),this.J.addEventListener(g.tD("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.qD(this.Bj,this.Qf,{priority:9,namespace:"intro"}), +this.J.lf([a]),this.C=!0))};g.z(nV,g.T);nV.prototype.onClick=function(){this.J.xv()}; +nV.prototype.Ta=function(){var a=!0;g.IO(this.J.U())&&(a=a&&this.J.qb().getPlayerSize().width>=480);g.Mx(this,a);this.updateValue("icon",this.J.ji()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.z(fRa,g.T);fRa.prototype.xa=function(){this.j=null;g.T.prototype.xa.call(this)};g.z(oV,g.T);oV.prototype.onClick=function(){this.J.ib("innertubeCommand",this.B)}; +oV.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()}; +oV.prototype.K=function(){this.j.disabled=this.B==null;g.rp(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Tc()};g.z(pV,oV);pV.prototype.onClickCommand=function(a){g.R(a,oQ)&&this.Tc()}; +pV.prototype.updateVideoData=function(a,b){var c,d,e;a=g.R((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,EP);var f;this.B=(f=g.R(a==null?void 0:a.playerBarActionButton,g.nI))==null?void 0:f.command;oV.prototype.K.call(this)}; +pV.prototype.Tc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=$U(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.ib("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;oV.prototype.N.call(this,a)};g.z(qV,g.T);qV.prototype.G=function(a){g.U(a.state,32)?iRa(this,this.api.zk()):this.Hb&&(g.U(a.state,16)||g.U(a.state,1))||this.j.hide()}; +qV.prototype.Cg=function(){var a=this.api.getPlayerStateObject();(g.U(a,32)||g.U(a,16))&&jRa(this)}; +qV.prototype.K=function(){this.C=NaN;jRa(this)}; +qV.prototype.hide=function(){this.B&&iRa(this,null);g.T.prototype.hide.call(this)};g.z(kRa,g.T);g.k=kRa.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ab||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.xF(b)})}catch(b){this.xF(b)}}else iS(this.message,this.element,!0)}; +g.k.xF=function(a){String(a).includes("fullscreen error")?g.fx(a):g.ex(a);this.XR()}; +g.k.XR=function(){this.disable();this.message.pd(this.element,!0)}; +g.k.ly=function(){Ns()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; +g.k.u7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.XR()}}; +g.k.disable=function(){var a=this;if(!this.message){var b=(Ks(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.hS(this.J,{I:"div",Na:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924", +target:this.J.U().Y},va:b[2]},b[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(c){a.Ne.NE(a.message,c)}); +g.GR(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; +g.k.Ta=function(){var a=JMa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.Mx(this,a&&!b);this.J.logVisibility(this.element,this.Hb)}; +g.k.hn=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g", +S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.xR(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.fx(c)})}else b={I:"svg", +X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3", +V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.xR(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Ne.Re().Vh()}; +g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.T.prototype.xa.call(this)};g.z(rV,g.T);rV.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Ji().Uw;c&&VU(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x(a)),g.gp(this.B))};g.z(sV,oV);sV.prototype.onClickCommand=function(a){g.R(a,lab)&&this.Tc()}; +sV.prototype.updateVideoData=function(){var a,b;this.B=(a=mRa(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;oV.prototype.K.call(this)}; +sV.prototype.Tc=function(){var a="",b=this.D.K,c,d=(c=mRa(this))==null?void 0:c.headerTitle;c=d?g.Qx(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=wQa(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.ib("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));oV.prototype.N.call(this,a)};g.z(tV,g.T);tV.prototype.onClick=function(){this.J.ib("onCollapseMiniplayer");this.J.logClick(this.element)}; +tV.prototype.Ta=function(){this.visible=!this.J.isFullscreen();g.Mx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; +tV.prototype.Mc=function(a){g.T.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(nRa,g.T);g.k=nRa.prototype;g.k.WV=function(a){this.visible=a.width>=300||this.Ga;g.Mx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)}; +g.k.kba=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():iS(this.message,this.element,!0);this.J.logClick(this.element)}; +g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)}; +g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?qRa(this,a):RNa(this.Fa,function(l){qRa(c,f+(c.G-f)*l)},250); +this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?rRa(this,d):RNa(this.qa,function(l){rRa(c,h+(c.D-h)*l)},250); +this.D=d}e.Va&&(e=g.xR(this.J,"Mute","m"),d=g.xR(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.Vh())}; +g.k.Mc=function(a){g.T.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)}; +var oRa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],pRa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.z(g.uV,g.T);g.uV.prototype.onStateChange=function(a){this.zd(a.state)}; +g.uV.prototype.zd=function(a){var b=g.IQ(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.U(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.xR(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.xR(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}a=== +3?this.update({title:b,icon:sRa(a)}):(this.update({title:b}),(b=sRa(a))&&this.j&&this.j!==3?TNa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Vh();this.j=a}}; +g.uV.prototype.onVideoDataChange=function(){g.rp(this.element,"ytp-play-button-playlist",g.CR(this.J))}; +g.uV.prototype.Us=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.K)b.cttAuthInfo={token:this.J.getVideoData().K,videoId:this.J.getVideoData().videoId};rA("direct_playback",b);this.J.Wh().timerName="direct_playback"}else this.j===3&&TT(this.J.Wh());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)=== +"click"&&this.element.blur()};g.z(g.vV,g.T);g.k=g.vV.prototype;g.k.onVideoDataChange=function(){uRa(this);this.D&&(this.Oc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.f6);this.C=vRa(this);tRa(this);this.ON(this.J.qb().getPlayerSize())}; +g.k.ON=function(a){a=a===void 0?this.J.qb().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.CR(this.J)||this.j&&g.HR(this.J)&&!this.J.L("web_hide_next_button")||wRa(this))&&!c&&(this.j||a.width>=400);g.Mx(this,a);this.J.logVisibility(this.element,a)}; +g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.xS(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(TT(this.J.Wh()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(TT(this.J.Wh()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))}; +g.k.f6=function(){var a=vRa(this);a!==this.C&&(this.C=a,tRa(this))}; +g.k.xa=function(){this.B&&(this.B(),this.B=null);uRa(this);g.T.prototype.xa.call(this)};g.z(yRa,g.T);g.k=yRa.prototype;g.k.i6=function(a){this.RN(a.pageX);this.QN(a.pageX+a.deltaX);zRa(this)}; +g.k.RN=function(a){this.qa=a-this.Ka}; +g.k.QN=function(a){a-=this.Ka;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Y=a-this.qa,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=ERa(this,this.C),this.C<=this.j/2&&this.C>=DRa(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.jm(this.Ba,"transform","translateX("+(this.C-this.j/2)+"px)"),xRa(this,a)):this.C=this.N))}; +g.k.g6=function(){this.ra&&(this.ra.HA=!0);var a=(0,g.Zt)()-this.Va<300;if(Math.abs(this.Y)<5&&!a){this.Va=(0,g.Zt)();a=this.qa+this.Y;var b=this.j/2-a;this.RN(a);this.QN(a+b);zRa(this);this.api.logClick(this.G)}zRa(this)}; +g.k.DB=function(){wV(this,this.api.getCurrentTime())}; +g.k.play=function(a){this.api.seekTo(ERa(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)}; +g.k.onExit=function(a){this.api.seekTo(this.Ra,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)}; +g.k.kc=function(a,b){this.Ka=a;this.j=b;wV(this,this.api.getCurrentTime())}; +g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),xRa(this,this.Ra),g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.i6),this.logVisibility(this.isEnabled))}; +g.k.disable=function(){this.isEnabled=!1;this.hide();g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Oc(this.Ma);this.logVisibility(this.isEnabled)}; +g.k.reset=function(){this.disable();this.D=[];this.Ga=!1}; +g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)}; +g.k.xa=function(){for(;this.B.length;){var a=void 0;(a=this.B.pop())==null||a.dispose()}g.T.prototype.xa.call(this)}; +g.z(ARa,g.T);g.z(BRa,g.T);g.z(FRa,g.T);g.z(xV,g.T);xV.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};IRa.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.Dd(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.z(JRa,g.T);g.z(g.AV,g.Nx);g.k=g.AV.prototype; +g.k.x3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.rf("timedMarkerCueRange");MRa(this);for(var c=g.w(b.jf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Ka[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Ka[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.w(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new JRa;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j= +Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;SRa(this,f)}TRa(this,this.K);a=this.K;f=this.ze;e=[];h=null;for(l=0;lm&&(h.end=m);m=zQa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.lf(e);this.Pf=this.Ka[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Ka[d];p=n=e=m=l=h=void 0;if(d&& +d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?h:60;h=this.j.length;l=null;for(m=0;m=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height= +e+"px");p=this.G[m];q=n;t=f;var y=e,A=m===0;A=A===void 0?!1:A;GRa(p,y);r=q;u=p.j;A=A===void 0?!1:A;var D=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H0&&(l=n[n.length-1])}g.BV(this)}e= +void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.w(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.Qx(e.label):""});d=f;this.heatMarkersDecorations=d}}b.HW=this.K;g.rp(this.element,"ytp-timed-markers-enabled",a);return a}; +g.k.kc=function(){g.BV(this);EV(this);TRa(this,this.K);if(this.B){var a=g.sm(this.element).x||0;this.B.kc(a,this.N)}}; +g.k.onClickCommand=function(a){if(a=g.R(a,oQ)){var b=a.key;a.isVisible&&b&&XRa(this,b)}}; +g.k.yca=function(a){this.api.ib("innertubeCommand",this.ze[a.id])}; +g.k.Tc=function(){EV(this);var a=this.api.getCurrentTime();(athis.clipEnd)&&this.kM()}; +g.k.j6=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}}; +g.k.ju=function(a,b){this.updateVideoData(b,a==="newdata")}; +g.k.B9=function(){this.ju("newdata",this.api.getVideoData())}; +g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.qe();c&&($Q(a)||cSa(this)?this.jf=!1:this.jf=a.allowLiveDvr,g.rp(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!$Q(a))));nSa(this,this.api.Jh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;IV(this);for(FV(this,this.qa,this.fb);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.yb={};var d;(d=this.B)==null||d.reset();NV(this);g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-exp", +zV(this))}else this.kM();this.gi()}if(a){var e;d=((e=this.Db)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.FP(e);c=ORa(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.Aw)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.FP(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.mw=((h=d.visibleOnLoad)==null?void 0:h.key)||e.mw;h=g.w(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.yb[d.key]=d.value, +d.value.onChapterRepeat&&(e.t4=d.value.onChapterRepeat));e.mw!=null&&XRa(this,e.mw);e=!0}var l;if(((l=f.Aw)==null?void 0:l.length)>0){l=g.pQ.getState().entities;h=g.w(f.Aw);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=GK(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.Ka[d]=b}e=this.x3()||e}!e&&(l=ORa(f))&&(QRa(this,l),f.Xk=this.j,PRa(this)); +dSa(this,null);a.PU&&this.G.length===0&&(a=a.PU,l=a.key,a.isVisible&&l&&XRa(this,l))}else KRa(this),MRa(this)}EV(this)}; +g.k.C9=function(a){this.Y&&!g.U(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.U(a.state,8)&&this.api.pauseVideo()}; +g.k.XV=function(a){var b=!!this.Db!==!!a,c=this.Db;this.Db=a;dSa(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",tsa()),this.updateValue("clipendicon",tsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",lsa()),this.updateValue("clipendicon",ksa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(), +!0),g.BV(this)),IV(this));FV(this,this.qa,this.fb)}; +g.k.Cba=function(a,b,c){var d=g.sm(this.element),e=DV(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=ez(this.C,Number(c.getAttribute("data-position")),0)*e+g.sm(this.progressBar).x);this.Xa.x=a-d.x;this.Xa.y=b-d.y;a=DV(this);c=HV(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:$Q(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=ez(this.C,m)*DV(this).j),b=this.C.B; +cSa(this)&&(b=this.C.B);m=f||g.Zy(this.jf?c-this.C.j:c-b);b=a.position+this.Sf;c-=this.api.Dc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.zk()){if(this.j.length>1){n=GV(this,this.Xa.x,!0);if(!this.Db)for(d=0;d1)for(d=0;d0)for(n=this.Xa.x,d=g.w(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=CV(this,e.timeRangeStartMillis/ +(this.C.j*1E3),DV(this)),g.rp(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.Pf?(n=wQa(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=$U(this.j,c*1E3),n=this.j[n].title):(n=$U(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16):l=n?110:126);d=$U(this.j,c*1E3);this.Wa=eSa(this,c,d)?d:eSa(this, +c,d+1)?d+1:-1;g.rp(this.api.getRootNode(),"ytp-progress-bar-snap",this.Wa!==-1&&this.j.length>1);d=!1;e=g.w(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.Zy(h.decorationTimeMillis/1E3),d=!0)}this.Fd!==d&&(this.Fd=d,this.api.logVisibility(this.Ed,this.Fd));g.rp(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;e=n.length*(this.D?8.55:5.7);e=e<=d?e: +d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&(l-=10);this.G.length&&this.G[0].qe&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.ra,this.Ga)));var q;if(zV(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Va>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?KV(this):this.Va}q=void 0;zV(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.Zd,this.Fa)));this.tooltip.HM(b,c,m,!!f,l,n,d,q)}else this.tooltip.HM(b, +c,m,!!f,l);g.np(this.api.getRootNode(),"ytp-progress-bar-hover");bSa(this)}; +g.k.Bba=function(){this.gi();g.pp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.ra,this.Ga));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.Zd,this.Fa))}; +g.k.Aba=function(a,b){zV(this)&&this.B&&(this.B.Ga?wV(this.B,this.api.getCurrentTime()):CRa(this.B),this.B.show(),g.rp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Ie&&(this.Ie.dispose(),this.Ie=null);this.Tf=b;this.j.length>1&&this.Wa!==-1?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(HV(this,DV(this)),!1,void 0,void 0,7);g.np(this.element,"ytp-drag");(this.kf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; +g.k.Dba=function(){if(zV(this)&&this.B){var a=KV(this);this.Va>=a*.5?(this.B.enable(),wV(this.B,this.api.getCurrentTime()),mSa(this,a)):NV(this)}if(g.U(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Wa!==-1)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=HV(this,DV(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.w(this.heatMarkersDecorations); +for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Ed)}g.pp(this.element,"ytp-drag");this.kf&&!g.U(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.k.Eba=function(a,b){a=DV(this);a=HV(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;zV(this)&&((c=this.B)==null?0:c.Ga)&&(wV(this.B,a),this.B.isEnabled||(this.Va=g.Dd(this.Tf-b-10,0,KV(this)),mSa(this,this.Va)))}; +g.k.gi=function(){this.tooltip.DQ()}; +g.k.d0=function(){this.Db||(this.updateValue("clipstarticon",jsa()),this.updateValue("clipendicon",jsa()),g.np(this.element,"ytp-clip-hover"))}; +g.k.b0=function(){this.Db||(this.updateValue("clipstarticon",lsa()),this.updateValue("clipendicon",ksa()),g.pp(this.element,"ytp-clip-hover"))}; +g.k.kM=function(){this.clipStart=0;this.clipEnd=Infinity;IV(this);FV(this,this.qa,this.fb)}; +g.k.gfa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ma[c]){var d=g.je("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Ob[c]=d;g.lp(d,b.style);fSa(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else lSa(this,b)}; +g.k.wda=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())lSa(this,b.value)}; +g.k.Zw=function(a){this.B&&(this.B.onExit(a!=null),NV(this))}; +g.k.BP=function(a){this.B&&(this.B.play(a!=null),NV(this))}; +g.k.ifa=function(){nSa(this,this.api.Jh())}; +g.k.xa=function(){nSa(this,!1);g.Nx.prototype.xa.call(this)};g.z(OV,g.T);OV.prototype.isActive=function(){return!!this.J.getOption("remote","casting")}; +OV.prototype.Ta=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.Mx(this,a&&this.J.qb().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Hb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.isa())}g.rp(this.element,"ytp-remote-button-active",this.isActive())}}; +OV.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Fb,b=this.element;if(a.Ck())a.Nb();else{a.initialize();a:{var c=g.w(a.Oe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.pd(b));a.pd(b)}}this.J.logClick(this.element)};g.z(PV,g.T);PV.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.Mx(this,a);this.J.logVisibility(this.element,a)}; +PV.prototype.C=function(){if(this.Fb.Hb)this.Fb.Nb();else{var a=g.rU(this.J.Bb());a&&!a.loaded&&(a.Uh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Fb.pd(this.element)}}; +PV.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.FR(this.J),e=c&&!!g.ER(this.J.Bb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.rp(this.element,"ytp-hdr-quality-badge",a);g.rp(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.rp(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.rp(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.rp(this.element,"ytp-8k-quality-badge", +!a&&c==="highres");g.rp(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.rp(this.element,"ytp-3d-badge",!a&&e&&d)};g.z(QV,vS);QV.prototype.isLoaded=function(){var a=g.xU(this.J.Bb());return a!==void 0&&a.loaded}; +QV.prototype.Ta=function(){g.xU(this.J.Bb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Fb.Uc(this),this.j=!0):this.j&&(this.Fb.qh(this),this.j=!1);wS(this,this.isLoaded())}; +QV.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)}; +QV.prototype.xa=function(){this.j&&this.Fb.qh(this);vS.prototype.xa.call(this)};g.z(RV,g.oT);RV.prototype.Ta=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(g.pT(this,g.Al(a,this.j)),this.tracks=g.dc(a,this.j,this),this.countLabel.Dd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ti(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +RV.prototype.Hg=function(a){g.oT.prototype.Hg.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Fb.hj()}; +RV.prototype.j=function(a){return a.toString()};g.z(SV,vS); +SV.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.HR(this.J))this.j||(this.Fb.Uc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Fb.qh(this);this.j=!1;a=g.w(this.C);for(var b=a.next();!b.done;b= +a.next())this.Oc(b.value)}}; +SV.prototype.D=function(a){wS(this,a!==1)}; +SV.prototype.onSelect=function(a){this.J.oM(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))}; +SV.prototype.xa=function(){this.j&&this.Fb.qh(this);vS.prototype.xa.call(this)};g.z(pSa,g.kS);pSa.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.nR(this.J))==null||(c=b.Lm())==null||c.Nb();var d,e;(d=g.nR(this.J))==null||(e=d.lY())==null||e.pd(a.target)};g.z(qSa,g.oT);g.k=qSa.prototype; +g.k.yD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Ba=this.J.Ut();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.iR(this.J,"getAvailableQualityData",[]);b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Fa=new Set(a)}else if(this.G){c=g.iR(this.J,"getAvailableQualityData",[]);b=[];c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]= +d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.vMa(this.J)&&this.J.sx()&&b.unshift("missing-qualities");wMa(this.J)&&b.unshift("inline-survey");g.pT(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Ih();c=!g.bP(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.eZ&&(a=a.Ea("ytp-panel-footer"),g.rp(a,"ytp-panel-hide-footer",c));if(b.length){this.YV();this.enable(!0);return}}this.enable(!1)}; +g.k.YV=function(){if(this.j){var a=this.J.getPreferredQuality();this.Fa.has(a)&&(this.N=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ti(a),this.Dd(this.ll(a))):this.Ti(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Ti(a),a==="auto"&&this.Dd(this.ll(a)))}; +g.k.Hg=function(a){if(a!=="missing-qualities"){g.oT.prototype.Hg.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.R(b,g.hab))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c, +d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.R(b,g.hab))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.ib("innertubeCommand",b);else if(b){this.J.ib("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Fb.Nb();this.yD()}}; +g.k.open=function(){for(var a=g.w(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.oT.prototype.open.call(this);this.J.logClick(this.element)}; +g.k.Gz=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.kS({I:"a",Na:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Na:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.ll(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.oT.prototype.Gz.call(this,a,b,c);f?(this.J.createServerVe(b.element, +this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",va:"Looks good?"}];c=g.w([!0,!1]);f=c.next();for(e={};!f.done;e={FQ:void 0},f=c.next())e.FQ=f.value,f=new g.T({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.FQ?ssa():nsa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.FQ,m=g.qR(d.J.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().EU=!0);d.Fb.Nb();d.yD()}}(e)),a.push(f); +return new g.kS({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Na:["ytp-menuitem-label"],V:a}]},b)}; +g.k.ll=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",va:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[tSa(this,a,b,!1)]:[sSa(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(tSa(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(tSa(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(sSa(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.z(TV,g.T);TV.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.B);uSa(this,this.B)}; +TV.prototype.G=function(){var a=Number(this.j.value);this.B=a;this.updateValue("slidervalue",this.B);this.j.valueAsNumber=this.B;uSa(this,a);this.j.focus()};g.z(UV,TV);UV.prototype.G=function(){TV.prototype.G.call(this);this.C&&(this.C.textContent=this.B+"x")}; +UV.prototype.ra=function(){this.qa()}; +UV.prototype.Y=function(){this.J.setPlaybackRate(this.B,!0)};g.z(VV,g.T);g.k=VV.prototype;g.k.init=function(){this.Oy(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)}; +g.k.m6=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.Oy(this.j+b);a.preventDefault()}}; +g.k.k6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.Oy(b);a.preventDefault()}; +g.k.l6=function(a){a=(a-g.sm(this.D).x)/this.qa*this.range+this.B;this.Oy(a)}; +g.k.Oy=function(a,b){b=b===void 0?"":b;a=g.Dd(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a}; +g.k.focus=function(){this.Ma.focus()};g.z(WV,VV);WV.prototype.Ba=function(){this.J.setPlaybackRate(this.j,!0)}; +WV.prototype.Oy=function(a){VV.prototype.Oy.call(this,a,wSa(this,a).toString());this.G&&(vSa(this),this.Fa())}; +WV.prototype.updateValues=function(){var a=this.J.getPlaybackRate();wSa(this,this.j)!==a&&(this.Oy(a),vSa(this))};g.z(xSa,g.Nx);xSa.prototype.focus=function(){this.j.focus()};g.z(ySa,cT);g.z(zSa,g.oT);g.k=zSa.prototype;g.k.ll=function(a){return a==="1"?"Normal":a.toLocaleString()}; +g.k.Ta=function(){var a,b=(a=this.J.getVideoData())==null?void 0:a.oi();a=this.J.getPresentingPlayerType(b);this.enable(a!==2&&a!==3);DSa(this)}; +g.k.vz=function(a){g.oT.prototype.vz.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),DSa(this),BSa(this,this.J.getPlaybackRate())):(this.Oc(this.N),this.N=null)}; +g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||CSa(this,b);BSa(this,a)}; +g.k.Gz=function(a,b,c){return a===this.j&&ESa(this.J)?g.oT.prototype.Gz.call(this,a,b,c,{I:"div",S:"ytp-speed-slider-menu-footer",V:[this.Y]}):g.oT.prototype.Gz.call(this,a,b,c)}; +g.k.Hg=function(a){g.oT.prototype.Hg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);ESa(this.J)||this.Fb.hj()}; +g.k.JN=function(a){a===this.j&&XV(this.J)&&!ESa(this.J)?(a=new ySa(this.J),g.hT(this.Fb,a)):g.oT.prototype.JN.call(this,a)};g.z(GSa,g.oT);g.k=GSa.prototype;g.k.Ti=function(a){g.oT.prototype.Ti.call(this,a)}; +g.k.ZV=function(a){return a.option.toString()}; +g.k.getOption=function(a){return this.settings[a]}; +g.k.ll=function(a){return this.getOption(a).text||""}; +g.k.Hg=function(a){g.oT.prototype.Hg.call(this,a);this.publish("settingChange",this.N,this.settings[a].option)};g.z(YV,g.dT);YV.prototype.Ci=function(a){for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Nu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ti(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}}; +YV.prototype.Mk=function(a,b){this.publish("settingChange",a,b)};g.z(ZV,g.oT);ZV.prototype.j=function(a){return a.languageCode}; +ZV.prototype.ll=function(a){return this.languages[a].languageName||""}; +ZV.prototype.Hg=function(a){this.publish("select",a);this.J.logClick(this.element);g.iT(this.Fb)};g.z(JSa,g.oT);g.k=JSa.prototype;g.k.zD=function(a){return g.Bc(a)?"__off__":a.displayName}; +g.k.ll=function(a){return a==="__off__"?"Off":a==="__translate__"?"Auto-translate":a==="__contribute__"?"Add subtitles/CC":a==="__correction__"?"Suggest caption corrections":(a==="__off__"?{}:this.tracks[a]).displayName}; +g.k.Hg=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.YK(this.J.U(),this.J.getVideoData());g.nz(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=KSa(this);$V(this,c);g.oT.prototype.Hg.call(this,this.zD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)== +null?void 0:e.openTranscriptCommand;this.J.ib("innertubeCommand",c);this.Fb.hj();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=KSa(this);$V(this,b);g.oT.prototype.Hg.call(this,this.zD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.ib("innertubeCommand",b)}else this.J.logClick(this.element), +$V(this,a==="__off__"?{}:this.tracks[a]),g.oT.prototype.Hg.call(this,a);this.Fb.hj()}}; +g.k.Ta=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.ew,d,e=!((d=this.J.getVideoData())==null||!g.YQ(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.dc(d,this.zD,this);e=g.Al(d,this.zD);var m,n;KSa(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)== +null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.Bc(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p}); +Oaa(l,f)}HSa(this.j,l);e.push("__translate__")}f=this.zD(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.pT(this,e);this.Ti(f);h&&h.translationLanguage?this.j.Ti(this.j.j(h.translationLanguage)):BNa(this.j);a&&this.G.Ci(this.J.getSubtitlesUserSettings());this.countLabel.Dd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.k.n6=function(a){var b=this.J.getOption("captions","track");b=g.Fc(b);b.translationLanguage=this.j.languages[a];$V(this,b)}; +g.k.Mk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}ISa(this,!0);this.N.start();this.G.Ci(this.J.getSubtitlesUserSettings())}; +g.k.jca=function(a){a||g.ip(this.N)}; +g.k.xa=function(){g.ip(this.N);g.oT.prototype.xa.call(this)}; +g.k.open=function(){g.oT.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.z(LSa,g.fT);g.k=LSa.prototype; +g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.US=new qSa(this.J,this)}catch(c){g.fx(Error("QualityMenuItem creation failed"))}g.P(this,this.US);var b=new JSa(this.J,this);g.P(this,b);a.C||(b=new QV(this.J,this),g.P(this,b));a.enableSpeedOptions&&(b=new zSa(this.J,this),g.P(this,b));(g.IO(a)||a.K)&&(a.B||a.Wa)&&(b=new pSa(this.J,this),g.P(this,b));a.ge&&!a.L("web_player_move_autonav_toggle")&&(a=new SV(this.J,this),g.P(this,a));a=new RV(this.J,this); +g.P(this,a);this.J.publish("settingsMenuInitialized");oSa(this.settingsButton,this.Oe.Up())}}; +g.k.Uc=function(a){this.initialize();this.Oe.Uc(a);oSa(this.settingsButton,this.Oe.Up())}; +g.k.qh=function(a){this.Hb&&this.Oe.Up()<=1&&this.hide();this.Oe.qh(a);oSa(this.settingsButton,this.Oe.Up())}; +g.k.pd=function(a){this.initialize();this.Oe.Up()>0&&g.fT.prototype.pd.call(this,a)}; +g.k.Nb=function(){this.PL?this.PL=!1:g.fT.prototype.Nb.call(this)}; +g.k.show=function(){g.fT.prototype.show.call(this);g.np(this.J.getRootNode(),"ytp-settings-shown")}; +g.k.hide=function(){g.fT.prototype.hide.call(this);g.pp(this.J.getRootNode(),"ytp-settings-shown")}; +g.k.If=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.z(aW,g.T);aW.prototype.onClick=function(){if(NSa(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.kt(g.it(),65);g.bP(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}}; +aW.prototype.j=function(a){var b,c;(b=g.nR(this.J))==null||(c=b.Lm())==null||c.pd(a)}; +aW.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName}; +aW.prototype.Ta=function(){var a=NSa(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.xR(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Ea("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.xR(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Ea("ytp-subtitles-button-icon"))== +null||d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}this.tooltip.Vh();c=c&&this.J.qb().getPlayerSize().width>=b;g.Mx(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.z(g.cW,g.T);g.k=g.cW.prototype; +g.k.Tc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!eW(this)||!g.U(this.api.getPlayerStateObject(),64));g.Mx(this,b);g.rp(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);dW(this)&&(c-=this.Db.startTimeMs/1E3);c=g.Zy(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=dW(this)?g.Zy((this.Db.endTimeMs- +this.Db.startTimeMs)/1E3):g.Zy(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!eW(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Tc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Dd(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.vR(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Db!== +a;this.Db=a;b&&bW(this)}; +g.k.onLoopRangeChange=function(a){var b=this.Db!==a;this.Db=a;b&&(this.Tc(),bW(this))}; +g.k.Hca=function(){this.api.setLoopRange(null)}; +g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):b);this.Tc();bW(this)}; +g.k.updateVideoData=function(a){this.KF=a.isLivePlayback&&!a.yb;this.B=$Q(a);this.isPremiere=a.isPremiere;g.rp(this.element,"ytp-live",eW(this))}; +g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.k.xa=function(){this.j&&this.j();g.T.prototype.xa.call(this)};g.z(PSa,g.T);g.k=PSa.prototype;g.k.ly=function(){var a=this.api.Hh();this.C!==a&&(this.C=a,OSa(this,this.api.getVolume(),this.api.isMuted()))}; +g.k.aW=function(a){g.Mx(this,a.width>=350)}; +g.k.q6=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.Dd(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}}; +g.k.o6=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.Dd(b/10,-10,10));a.preventDefault()}; +g.k.pca=function(){fW(this,this.j,!0,this.B,this.api.Sm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.k.p6=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.sm(this.N).x;this.api.setVolume(g.Dd((a-c/2)/(b-c),0,1)*100)}; +g.k.oca=function(){fW(this,this.j,!1,this.B,this.api.Sm());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))}; +g.k.onVolumeChange=function(a){OSa(this,a.volume,a.muted)}; +g.k.tX=function(){fW(this,this.j,this.isDragging,this.B,this.api.Sm())}; +g.k.xa=function(){g.T.prototype.xa.call(this);g.pp(this.K,"ytp-volume-slider-active")};g.z(gW,g.T); +gW.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.aR(this.api.getVideoData(1));g.Mx(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Oc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.np(this.element,"no-link")); +b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.YO(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.bR(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.DD("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)}; +gW.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.$y(a),!1,!0,!0);if(g.IO(b)){var d={};g.IO(b)&&g.iR(this.api,"addEmbedsConversionTrackingParams",[d]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(d,"emb_logo");c=g.Ti(c,d)}g.yS(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +gW.prototype.kc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +b=28666,c=this.api.getVideoData();this.api.jd()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.bR(c)&&(a={I:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",X:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",X:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{I:"path",X:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",X:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{I:"path",X:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",X:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{I:"path",X:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",X:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{I:"path",X:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{I:"path",X:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",X:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},b=216163);g.bR(c)?g.np(this.element,"ytp-youtube-music-button"):g.pp(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; +gW.prototype.Mc=function(a){g.T.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(RSa,g.OE);g.k=RSa.prototype;g.k.Cg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.U(this.J.getPlayerStateObject(),2))this.progressBar.Tc(),this.Ba.Tc()}; +g.k.yB=function(){this.xU();this.Jg.B?this.Cg():this.progressBar.gi()}; +g.k.r6=function(){this.Cg();this.Z.start()}; +g.k.xU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.aP(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Jg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Cg)):this.ra&&(this.Oc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()}; +g.k.kc=function(){var a=this.J.Hh(),b=this.J.qb().getPlayerSize(),c=TSa(this),d=Math.max(b.width-c*2,100);if(this.fb!==b.width||this.Xa!==a){this.fb=b.width;this.Xa=a;var e=USa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.kSa(this.progressBar,c,e,a);this.J.Re().bW=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-VSa(this))*.82));c.maxWidth=d;c.maxHeight=a;c.HC();this.xU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&eRa(this.Wa, +b.height)}; +g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ka.style.background=a.Ff?a.Rp:"";this.qa&&lRa(this.qa,a.showSeekingControls);this.Y&&lRa(this.Y,a.showSeekingControls)}; +g.k.Ib=function(){return this.C.element};g.z(WSa,bT);g.k=WSa.prototype;g.k.tG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ib("innertubeCommand",this.onClickCommand),this.Ru())}; +g.k.Ru=function(){this.enabled=!1;this.qa.hide()}; +g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&XSa(this);a=[];var c,d,e,f;if(b=(f=g.R((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,Dab))==null?void 0:f.suggestedActions)for(c=g.w(b),d=c.next();!d.done;d=c.next())(d=g.R(d.value,Eab))&&g.R(d.trigger,Cab)&&a.push(d);if(a.length!==0){c=[];a=g.w(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.R(d.trigger,Cab))f=(f=d.title)?g.Qx(f):"View Chapters", +b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.qD(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.lf(c)}}; +g.k.Qy=function(){return this.enabled}; +g.k.If=function(){this.enabled?this.Ra.start():$S(this);this.Vl()}; +g.k.xa=function(){XSa(this);bT.prototype.xa.call(this)};var l2={},hW=(l2.CHANNEL_NAME="ytp-title-channel-name",l2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",l2.LINK="ytp-title-link",l2.SESSIONLINK="yt-uix-sessionlink",l2.SUBTEXT="ytp-title-subtext",l2.TEXT="ytp-title-text",l2.TITLE="ytp-title",l2);g.z(iW,g.T); +iW.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.$y(a),!1,!0);g.IO(b)&&(b={},g.iR(this.api,"addEmbedsConversionTrackingParams",[b]),this.api.L("embeds_web_enable_referring_feature_deprecation")||g.ZK(b,"emb_title"),c=g.Ti(c,b));g.yS(c,this.api,a)}; +iW.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:hW.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:hW.CHANNEL_NAME,va:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);YSa(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ab&&c.profilePicture?(this.updateValue("channelLink", +c.Ab),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):YSa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Xk;g.rp(this.link,hW.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.aR(a)||b.C?this.j&&(this.updateValue("url",null),this.Oc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.IO(b)?a.expandedTitle: +a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.jW,g.T);g.k=g.jW.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:$Sa(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a}; +g.k.HM=function(a,b,c,d,e,f,h,l){if(!this.Ka||this.env.Z){this.type===3&&this.gi();this.type!==1&&(g.lp(this.element,"ytp-tooltip ytp-bottom"),(hRa(this.api)||this.api.isInline())&&g.np(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.zk())&&this.B.subscribe("l",this.l0,this));if(l){var m=g.Am(this.bg).height||this.Ba;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.rp(this.text,"ytp-tooltip-text-no-title", +this.type===1&&!f);this.api.isInline()&&g.np(this.text,"ytp-modern-tooltip-text");g.rp(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=OP(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=OKa(this.B,c,b));bTa(this,c);if(h)switch(b=g.Am(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right= +b/2+"px",this.title.style.textAlign="center"}aTa(this,!!d,a,e)}}; +g.k.DQ=function(){this.type===1&&this.gi()}; +g.k.LH=function(a,b){if(this.type)if(this.type===3)this.gi();else return;ZSa(this,a,3,b)}; +g.k.Vh=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&$Sa(this))}; +g.k.l0=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,bTa(this,a))}; +g.k.q$=function(){MKa(this.B,this.D,this.N*this.scale)}; +g.k.gi=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);cTa(this);break;case 3:cTa(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.l0,this),this.B=null),this.api.removeEventListener("videoready",this.Fa),this.Ga.stop()}this.type=null;this.Y&&this.K.hide()}; +g.k.Cm=function(){if(this.j)for(var a=0;a=0;b--)if(this.Pu[b]===a){this.Pu.splice(b,1);break}yU(this.Jg,64,this.Pu.length>0)}; +g.k.wC=function(){this.api.rl()&&this.api.Gp();return!!this.yE||iTa(this)||g.IU.prototype.wC.call(this)}; +g.k.pC=aa(3);g.k.Ms=aa(7);g.k.Ls=aa(10);g.k.Uq=function(){var a=!this.wC(),b=a&&this.api.rl()&&!g.U(this.api.getPlayerStateObject(),2)&&!g.aR(this.api.getVideoData())&&!this.api.U().C&&!this.api.jd(),c=this.Wr&&g.CR(this.api)&&g.U(this.api.getPlayerStateObject(),128);a||c?(this.QM.show(),this.RM.show()):(this.QM.hide(),this.RM.hide(),this.api.Cm(this.Di.element));b?this.Yg.pd():this.Yg.Nb();this.Eg&&SSa(this.Eg,this.AS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&jTa(this);g.IU.prototype.Uq.call(this)}; +g.k.zy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Am(a),h=d||this.Eg&&g.qe(this.Eg.Ib(),b),l=d=null;c!=null&&h||(d=g.Am(b),l=g.tm(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Eg,d=TSa(b),l=USa(b),h=this.api.qb().getPlayerSize().height,c=g.Dd(c,d,d+l-f.width),f=h-VSa(b)-f.height):g.qe(this.Di.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.Dd(c,12,b-f.width-12),f=this.Hh()?this.QO:this.PO,this.api.U().playerStyle==="gvn"&&(f+= +20),this.Wr&&(f-=this.Hh()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.Dd(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"}; +g.k.yB=function(a){a&&(this.api.Cm(this.Di.element),this.Eg&&this.api.Cm(this.Eg.Ib()));this.IK&&(g.rp(this.contextMenu.element,"ytp-autohide",a),g.rp(this.contextMenu.element,"ytp-autohide-active",!0));g.IU.prototype.yB.call(this,a)}; +g.k.LR=function(){g.IU.prototype.LR.call(this);this.IK&&(g.rp(this.contextMenu.element,"ytp-autohide-active",!1),this.IK&&(this.contextMenu.hide(),this.zi&&this.zi.hide()))}; +g.k.Zn=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.gm(0,0,c.width,c.height);if(a||this.Jg.B&&!this.wC()){if(this.api.U().zn||b)a=this.Hh()?this.QO:this.PO,c.top+=a,c.height-=a;this.Eg&&(c.height-=VSa(this.Eg))}return c}; +g.k.ly=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.WE.element,b),b.parentElement.insertBefore(this.VE.element,b.nextSibling))):g.ex(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.WE.detach(),this.VE.detach());this.kc();this.Vq()}; +g.k.Hh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1}; +g.k.showControls=function(a){this.cP=!a;this.Uq()}; +g.k.kc=function(){var a=this.Hh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.rp(this.contextMenu.element,"ytp-big-mode",a);this.Uq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||jTa(this);this.Vq();var b=this.api.jd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.jm(this.Di.element,"padding-left",a+"px"),g.jm(this.Di.element,"padding-right",a+"px")):b&&(g.jm(this.Di.element,"padding-left",""),g.jm(this.Di.element,"padding-right",""));g.IU.prototype.kc.call(this)}; +g.k.UP=function(){if(iTa(this)&&!g.CR(this.api))return!1;var a=this.api.getVideoData();return!g.IO(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Ii||((a=this.Ii||a.Ii)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.R(a.videoDetails,FLa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.IU.prototype.UP.call(this):!1}; +g.k.Vq=function(){g.IU.prototype.Vq.call(this);this.api.logVisibility(this.title.element,!!this.Ao);this.OB&&this.OB.Mc(!!this.Ao);this.channelAvatar.Mc(!!this.Ao);this.overflowButton&&this.overflowButton.Mc(this.Og()&&!!this.Ao);this.shareButton&&this.shareButton.Mc(!this.Og()&&!!this.Ao);this.pp&&this.pp.Mc(!this.Og()&&!!this.Ao);this.searchButton&&this.searchButton.Mc(!this.Og()&&!!this.Ao);this.copyLinkButton&&this.copyLinkButton.Mc(!this.Og()&&!!this.Ao);if(!this.Ao){this.api.Cm(this.Di.element); +for(var a=0;a=b)return d.return();(c=a.j.get(0))&&rTa(a,c);g.ua(d)})}; +var oTa={fka:0,Dka:1,nka:2,Eka:3,eha:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var rW=[],q5a=!1;g.NZ=$c(function(){var a="";try{var b=g.je("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.z(sW,g.O);sW.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&XP(this.j)&&W5a(this.app,this.j,void 0,void 0,this.B)}; +sW.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.xb!=null&&this.C!=null&&this.D!=null&&XP(this.j)){var a=yTa(this.xb,this.C,this.D);a==null?W5a(this.app,this.j,void 0,void 0,this.B):(this.xb.oa("sgap",a),this.xb.getVideoData().Y&&A_(this.xb,!1))}}; +sW.prototype.N=function(a){var b=this.app.Vc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}}; +sW.prototype.xa=function(){this.j=null;g.O.prototype.xa.call(this)};g.z(g.tW,GF);g.k=g.tW.prototype;g.k.isView=function(){return!0}; +g.k.hT=function(){var a=this.mediaElement.getCurrentTime();if(a=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Id(new FE("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.un,msg:a})));A_(this.j,c)}this.Rq.reject(a);this.dispose()}}; +g.k.wu=function(){return this.status.status>=4&&this.status.status<6}; +g.k.xa=function(){KTa(this);this.j.unsubscribe("newelementrequired",this.n0,this);if(this.C){var a=this.C.B;this.C.j.Jd.unsubscribe("updateend",this.wz,this);a.Jd.unsubscribe("updateend",this.wz,this)}g.O.prototype.xa.call(this)}; +g.k.cW=function(a){g.Qy(a,128)&&this.Sg("player-error-event")};g.z(OTa,g.O);g.k=OTa.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&A_(this.B,!1);xW(this,a)}; +g.k.Do=function(){return!this.j}; +g.k.OF=function(a){return this.j===a}; +g.k.wu=function(){var a;return((a=this.C)==null?void 0:a.wu())||!1}; +g.k.xa=function(){xW(this);g.O.prototype.xa.call(this)};g.z(XTa,g.Fx);g.k=XTa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:TTa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0}; +g.k.hn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.If())}; +g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.If())}; +g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.If())}; +g.k.My=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.If())}; +g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.If())}; +g.k.vC=function(a){this.D!==a&&(this.D=a,this.If())}; +g.k.ji=function(){return this.j}; +g.k.isFullscreen=function(){return this.fullscreen!==0}; +g.k.lA=function(){return this.fullscreen}; +g.k.isMinimized=function(){return this.B}; +g.k.isInline=function(){return this.inline}; +g.k.isBackground=function(){return TTa()}; +g.k.Dj=function(){return this.pictureInPicture}; +g.k.NA=function(){return!1}; +g.k.UA=function(){return this.C}; +g.k.Dk=function(){return this.D}; +g.k.If=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.ji(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Dj(),this.NA(),this.UA(),this.Dk());a!==this.K&&this.publish("visibilitystatechange");this.K=a}; +g.k.xa=function(){WTa(this.G);g.Fx.prototype.xa.call(this)};g.z(CW,g.O);CW.prototype.Uk=function(){if(!this.uf.length)return[];var a=this.uf;this.uf=[];this.C=g.Ib(a).info;return a}; +CW.prototype.SG=function(){return this.uf}; +CW.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.uf.length=0;this.gb.length=0;this.C=null};g.z(EW,g.O);g.k=EW.prototype;g.k.Gr=function(){return Array.from(this.fd.keys())}; +g.k.Os=function(a){a=this.fd.get(a);var b=a.uf;a.Hz+=b.totalLength;a.uf=new VJ;return b}; +g.k.Ng=function(a){return this.fd.get(a).Ng}; +g.k.Bx=function(a){return this.fd.get(a).Bx}; +g.k.EB=function(a,b,c,d){this.fd.get(a)||dUa(this,a,b);b=this.fd.get(a);if(this.manifest){a=fUa(this,a,c);if(d)for(var e=g.w(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.K=h;f.startTime+=h;f.We+=h;f.Mf+=h}eUa(this,c.bq,b,a)}else c.Co?b.xZ=c.Is:b.kG.push(c),b.sT.push(c)}; +g.k.Yn=function(a){var b;return((b=this.fd.get(a))==null?void 0:b.gb)||[]}; +g.k.vB=function(){for(var a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.QS&&(b.Cg&&b.Cg(),b.QS=!1)}; +g.k.uq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); +var c=this.fd.get(b);if(FW){if(c&&!c.Ng){if(c.Gj.get(a))c.Gj.get(a).Ex=!0;else{var d;((d=this.Ge)==null?0:d.yc)&&c.Gj.set(a,{data:new VJ,bJ:0,Ex:!0})}c.Bx=!0}}else c&&!c.Bx&&(c.Bx=!0)}; +g.k.Uk=function(a){if(FW){var b=this.fd.get(a);if(b)for(var c=g.w(b.Gj),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;var f=b.OH.get(d);if(QM(f[0])){if(!e.Ex)continue;var h=e.data,l=0,m=[];f=g.w(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=XJ(h,l,p);l+=p;m.push(new iN(n,q))}b.Sx.push.apply(b.Sx,g.x(m))}else if(e.data.totalLength>0||!f[0].range&&e.Ex)h=void 0,l=f[0],m=e.bJ,f=e.data,l.range||(h=e.Ex),h=new iN(rEa(l,l.Ub+m,f.totalLength,h),f), +e.bJ+=h.info.B,b.Sx.push(h);b.Gj.get(d).data=new VJ;e.Ex&&b.Gj.delete(d)}a=this.fd.get(a);if(!a)return[];b=a.Sx;a.Sx=[];c=g.w(b);for(d=c.next();!d.done;d=c.next())a.Hz+=d.value.info.B;return b||[]}c=(b=this.fd.get(a))==null?void 0:b.eg;if(!c)return[];this.Nm(a,c);return c.Uk()}; +g.k.Ol=function(a){if(FW)return HW(this,a);var b,c,d;return!!((c=(b=this.fd.get(a))==null?void 0:b.eg)==null?0:(d=c.SG())==null?0:d.length)||HW(this,a)}; +g.k.Nm=function(a,b){for(;HW(this,a);){var c=this.Os(a);var d=a;d=this.fd.get(d).Ng&&!bUa(this,d);DW(b,c,d&&cUa(this,a))}}; +g.k.xa=function(){g.O.prototype.xa.call(this);for(var a=g.w(this.fd.keys()),b=a.next();!b.done;b=a.next())ZTa(this,b.value);var c;if((c=this.Ge)==null?0:c.ze)for(a=g.w(this.fd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Gj.clear(),b.OH.clear(),b.Sx.length=0,b.gb.length=0,b.sT.length=0,b.kG.length=0;this.fd.clear()}; +var FW=!1;g.z(KW,g.O);g.k=KW.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0}; +g.k.Ze=function(){return this.pc||0}; +g.k.Yh=function(){return this.C||0}; +g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()}; +g.k.xa=function(){this.removeAll();g.O.prototype.xa.call(this)}; +g.z(tUa,g.O);g.k=tUa.prototype;g.k.Ze=function(){return this.pc}; +g.k.Yh=function(){return this.B}; +g.k.getType=function(){return this.type}; +g.k.getVideoData=function(){return this.videoData}; +g.k.AM=function(a){AQ(a);this.videoData=a}; +g.k.xa=function(){uUa(this);g.O.prototype.xa.call(this)};g.z(g.PW,g.O);g.k=g.PW.prototype;g.k.sJ=function(a,b,c){return new g.qD(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})}; +g.k.onCueRangeEnter=function(a){this.Ka.push(a);var b=a.getId();this.ea.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Wf()||0).toFixed(3)});var c=b==="";this.fb.add(a.B);var d=this.C.get(b);if(c){var e;if(this.ea.getVideoData().oi()&&((e=this.j)==null?0:e.OW)&&this.N){var f;a=((f=this.j)==null?void 0:f.Vg)||this.ea.getCurrentTime();var h,l;TW(this.ea,(h=this.j)==null?void 0:h.OW,this.eF(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)== +null?void 0:l.tea,(0,g.Zt)());this.wl=0;this.j=void 0;this.ob&&(this.events.Oc(this.ob),this.ob=null);this.N="";this.Ra=!0;return}}else if(this.ea.oa("sdai",{enterAdCueRange:1}),this.ea.getVideoData().oi()&&(d==null?0:d.SA))return;if(this.Ra&&!this.j)this.Ra=!1,!c&&d&&(c=this.ea.getCurrentTime(),UW(this,{je:a,isAd:!0,fq:!0,Vg:c,adCpn:b},{isAd:!1,fq:!1,Vg:c}),this.Sb=d.cpn,this.api.publish("serverstitchedvideochange",d.rd,d.vr),a=SW(this,"midab",d),this.ea.oa("sdai",a),this.wl=1),this.qa=!1;else if(this.j){if(this.j.fq)this.ea.oa("sdai", +{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={je:a,isAd:!c,fq:!0,Vg:d,adCpn:b},b={je:this.j.je,isAd:this.j.isAd,fq:!1,Vg:d,adCpn:this.j.adCpn},this.j.je&&this.fb.delete(this.j.je.B),UW(this,a,b);else{if(this.j.je===a){this.ea.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end}); +this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}a={je:a,isAd:!c,fq:!0,Vg:this.ea.getCurrentTime(),adCpn:b};UW(this,a,this.j)}this.j=void 0;this.qa=!1}else this.j={je:a,isAd:!c,fq:!0,Vg:this.ea.getCurrentTime(),adCpn:b}}; +g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Wf()||0).toFixed(3)});var c=b==="",d=this.C.get(b);if(this.ea.getVideoData().oi()&&!c&&d){if(d.SA)return;d.SA=!0;this.K.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.GO()){var e=d.pc;this.ea.aT(e/1E3,(e+d.durationMs)/1E3)}else this.ea.oa("lifa",{remove:0})}if(this.fb.has(a.B))if(this.fb.delete(a.B),this.Ka=this.Ka.filter(function(f){return f!== +a}),this.Ra&&(this.qa=this.Ra=!1,this.ea.oa("sdai",{cref:1})),this.j){if(this.j.fq){if(this.j.je===a){this.ea.oa("sdai",{same_cue_range_pair_exit:1, +acpn:this.j.adCpn,transitionTime:this.j.Vg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}b={je:a,isAd:!c,fq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};UW(this,this.j,b)}else this.ea.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Vg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()}); +this.j=void 0;this.qa=!1}else this.j={je:a,isAd:!c,fq:!1,Vg:this.ea.getCurrentTime(),adCpn:b};else this.ea.oa("sdai",{ignore_single_exit:1})}; +g.k.eF=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,pc:0,playerType:1,Xd:0,videoData:this.ea.getVideoData(),errorCount:0}}; +g.k.Hl=function(){if(this.On)return!1;var a=void 0;this.Sb&&(a=this.C.get(this.Sb));return this.ea.getVideoData().oi()?!!a&&!a.SA:!!a}; +g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().oi()&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Wa/1E3)this.ea.pauseVideo(),this.Wa=0,this.qa=!0,EZ(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.qa=!0,c)wUa(this,a,b);else{c=this.api.Vc();var e=c===this.Xa?this.Jb:null;VW(this,!1);this.Tb=a;this.Ob=b;d!=null&&this.Kb.start(d);c&&(this.Jb=e||c.getPlayerState(),$4a(c),this.Xa=c)}}; +g.k.xa=function(){VW(this,!1);IUa(this);JUa(this);g.O.prototype.xa.call(this)}; +g.k.FT=function(a){this.Rc=a;this.ea.oa("sdai",{swebm:a})}; +g.k.Fl=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=XW(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.IL(c),this.Va&&this.ea.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:KL(c)}),e.locations.set(d,c))}}; +g.k.nK=function(a,b,c,d,e,f){var h=d===3;e=LUa(this,a,b,d,c,f);if(!e)return ZW(this,b,h),e=g.KUa(this,b)?"undec":"ncp",this.ea.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.xm;var l;d=((l=YW(this,b-1,d))==null?void 0:l.Nt)||"";d===""&&this.ea.oa("sdai",{eds:1});l=rO(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.JD[f];b=e.Qs&&b>=e.Qs?e.Qs:void 0;return{dn:{MI:a?PUa(this,a):[],SW:l,Nt:d,UT:b,K3:Wd(m.split(";")[0]), +L3:m.split(";")[1]||""}}}; +g.k.iQ=function(a){a:{if(!this.On){var b=XW(this,a);if(!(this.ea.getVideoData().oi()&&(b==null?0:b.SA)))break a}b=void 0}var c=b;if(!c)return this.ea.oa("sdai",{gvprp:"ncp",mt:a}),null;b=c.xm;var d=rO(c.ssdaiAdsConfig||"")||void 0;a=c.Qs&&c.TT&&a>=c.TT?c.Qs:void 0;c=this.ea.getVideoData();var e,f=((e=c.B)==null?void 0:e.containerType)||0;e=c.JD[f];return{MI:b?PUa(this,b):[],SW:d,UT:a,K3:Wd(e.split(";")[0]),L3:e.split(";")[1]||""}}; +g.k.iA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=LUa(this,a,b,d,c,f);this.Va&&this.ea.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return ZW(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),ZW(this,b,e),null;l=f.find(function(u){return u.itag===h}); +if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.w(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});ZW(this,b,e);return null}a.locations.set(h,new g.IL(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.oa("sdai",{gdu:"nourl",seg:b,itag:h}),ZW(this,b,e),null;l=new BM(l);this.Rc&&(l.get("dvc")?this.ea.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=YW(this,b-1,d))==null?void 0:q.Nt)&& +l.set("daistate",m);a.Qs&&b>=a.Qs&&l.set("skipsq",""+a.Qs);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.xm&&(q=PUa(this,a.xm),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.xm){var t;this.ea.oa("sdai",{acpns_aids_nm:1,ids:RUa(this,a.xm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.oa("sdai", +{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ce();(d==null?void 0:d.length)>2048&&this.ea.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.xm,TUa(this,r,p),p&&!this.Ie.has(p)&&(r=QUa(this,r,p),t=SUa(this,p),this.ea.oa("sdai",{iofa:r}),this.ea.oa("sdai",{noawnzd:t-r}),this.ea.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.Ie.add(p))),this.ea.oa("sdai",{gdu:"v",seg:b,itag:c,ast:a.pc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId})); +return d}; +g.k.vH=function(a,b,c){var d=WW(this,a,c);return(d=d?(d.pc+d.durationMs)/1E3:0)&&b>d?(this.yv(a,c,!0),this.ea.seekTo(d),!0):!1}; +g.k.yv=function(a,b,c){c=c===void 0?!1:c;var d=WW(this,a,b);if(d){var e=void 0,f=d.xm;if(f){this.ea.oa("sdai",{skipadonsq:b,sts:c,abid:f,acpn:d.cpn,avid:d.videoData.videoId});c=this.Y.get(f);if(!c)return;c=g.w(c);for(f=c.next();!f.done;f=c.next())f=f.value,f.Qs=b,f.TT=a,f.pc>d.pc&&(e=f)}this.N=d.cpn;MUa(this);a=this.ea.getCurrentTime();DUa(this,d,e,a,a,!1,!0)}}; +g.k.kT=function(){for(var a=g.w(this.G),b=a.next();!b.done;b=a.next())b=b.value,b.Qs=NaN,b.TT=NaN;MUa(this);this.ea.oa("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""}; +g.k.fI=aa(49); +g.k.oS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.Ya.set(a,{Nt:m,Az:l}):this.Ga.set(a,{Nt:m,Az:l}));l=gQ(this.ea.getVideoData())&&this.W.L("html5_consume_ssdai_info_with_streaming");if(h||l){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.oa("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.du(),h=0;h0&&(this.wl=0,this.Sb="",this.api.publish("serverstitchedvideochange"));O1a(this.ea,c);return!0}; +g.k.qx=function(){this.ea.oa("sdai",{rstdaist:1});this.Ga.clear();this.Ya.clear();this.Ma.clear()}; +g.k.Vu=function(a){this.ze.add(a);var b;((b=this.ra)==null?void 0:b.identifier)===a&&RW(this)}; +g.k.MP=function(){return this.wl}; +g.k.Cl=function(){return this.Sb}; +g.k.Su=function(a){var b=uU(this.api.Bb());return b?b.Su(a):!1}; +g.k.qP=function(a){return this.On?!1:!!XW(this,a)}; +g.k.ST=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.C.get(this.Sb),e=this.B.get(this.Sb);if(d){this.N=this.Sb;this.qa=!1;d.SA=!0;var f=this.ea.getCurrentTime();this.j={je:e,isAd:!0,fq:!1,Vg:f,adCpn:this.Sb,OW:d,tea:a};if(e==null?0:e.start)this.Wa=f*1E3-e.start;this.K.clear();EZ(this.ea);this.Sb=this.eF().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.ob||(this.ob=this.events.T(this.api,"progresssync",function(){var h= +d.vr?d.vr*1E3:d.pc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.C.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.w(b.D),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.D=l;NUa(b,0,h+d.durationMs)})); +return!0}this.ea.oa("sdai",{skipFail:c});return!1}; +var BUa=0;g.z(WUa,g.O);g.k=WUa.prototype; +g.k.nO=function(a,b){b=b===void 0?"":b;if(this.OM===b)return!0;var c=this.timeline.j,d=c==null?void 0:c.getVideoData();if(!c||!d)return this.api.oa("ssap",{htsm:c?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||uUa(f);e.B.clear()}e=LW(c);var h=!1;f=[];var l=new Map;c=[];var m=[],n=0,p=0,q=0,r=[];a=g.w(a);for(var t=a.next();!t.done;t=a.next())a:{var u=void 0,y=void 0,A=t.value,D=A.clipId;if(D){if(A.Yq){q=A.Yq.k_||0;t=A.Yq.l_||1;var F=Number(((A.Yq.Y0|| +0)/(A.Yq.Z0||1)*1E3).toFixed(0));q=t=F+Number((q/t*1E3).toFixed(0))}else t=F=q,this.NH.has(D)||this.Jk.add(D);var H=(y=l.get(D))!=null?y:0;y=!1;if(this.OM&&this.api.L("html5_ssap_clear_timeline_before_update")){var M=this.pk.get(D);M&&(M.start=F,M.end=t,y=!0)}else{if(M=this.OM){var N=D;M=F;var Q=t,Z=H,fa=NW(this.timeline,N);if(fa!=null&&fa.length){Z=l){this.bI.set(a,c);nVa(this,a,b);this.UM.set(a,(0,g.Zt)());if(c=this.pk.get(b))for(c=c.getId().split(","),c=g.w(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Jk.has(h)&&(this.Jk.delete(h),this.NH.add(h));d&&EZ(this.ea);iVa(this);b=f.Ze()/1E3;d=void 0;f=(d=g.AC(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]}; +g.k.WP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Yh();a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Yh()>b&&(b=d.Yh())}return b/1E3}; +g.k.Xc=function(){var a=this.ea.getCurrentTime()*1E3;var b=$W(this,a);if(!b){var c=NW(this.timeline,this.Sb);if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ze()>a&&(b=d)}}return b&&b.getType()===1?b.Ze()/1E3:0}; +g.k.getVideoData=function(a){if(a===2&&!this.Hl()){if(this.TK&&this.Np.has(this.TK))return this.Np.get(this.TK);this.api.oa("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return dVa(this)}; +g.k.Hl=function(){var a=NW(this.timeline,this.Sb);return(a==null?0:a.length)?a[0].getType()===2:!1}; +g.k.PA=function(){var a=NW(this.timeline,this.Sb);return(a==null?0:a.length)?a[0].C:!1}; +g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=bVa(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)}; +g.k.sJ=function(a,b,c){return new g.qD(a,b,{id:c,namespace:"ssap",priority:9})}; +g.k.onCueRangeEnter=function(a){if(!this.WL.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Wf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;cc+1)for(d=c+1;dthis.C;)(c=this.data.shift())&&pX(this,c,!0);nX(this)}; +g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a}); +c&&(pX(this,c,b),g.Qb(this.data,function(d){return d.key===a}),nX(this))}; +g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.w(this.data),c=b.next();!c.done;c=b.next())pX(this,c.value,a);this.data=[];nX(this)}; +g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);this.data.forEach(function(b){pX(a,b,!0)}); +this.data=[]};g.z(qX,g.O);qX.prototype.VJ=function(a){if(a)return this.B.get(a)}; +qX.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.O.prototype.xa.call(this)};g.icb=$c(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var m2;m2={};g.rX=(m2.STOP_EVENT_PROPAGATION="html5-stop-propagation",m2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",m2.IV_DRAWER_OPEN="ytp-iv-drawer-open",m2.MAIN_VIDEO="html5-main-video",m2.VIDEO_CONTAINER="html5-video-container",m2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",m2.HOUSE_BRAND="house-brand",m2);g.z(LVa,g.T);g.k=LVa.prototype;g.k.Bt=function(){g.op(this.element,g.Ca.apply(0,arguments))}; +g.k.Rj=function(){this.Cc&&(this.Cc.removeEventListener("focus",this.VR),g.pe(this.Cc),this.Cc=null)}; +g.k.lP=function(){this.La();var a=this.app.U();a.Cn||this.Bt("tag-pool-enabled");a.K&&this.Bt(g.rX.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Bt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.wc&&(this.aP=g.Gv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)}; +g.k.xM=function(a){g.NO(this.app.U());this.AK=!a;sX(this)}; +g.k.resize=function(){if(this.Cc){var a=this.ai();if(!a.isEmpty()){var b=!g.Jd(a,this.RB.getSize()),c=QVa(this);b&&(this.RB.width=a.width,this.RB.height=a.height);a=this.app.U();(c||b||a.wc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}}; +g.k.ju=function(a,b){this.updateVideoData(b)}; +g.k.updateVideoData=function(a){if(this.Cc){var b=this.app.U();ru&&(this.Cc.setAttribute("x-webkit-airplay","allow"),a.title?this.Cc.setAttribute("title",a.title):this.Cc.removeAttribute("title"));this.Cc.setAttribute("controlslist","nodownload");b.Zq&&a.videoId&&(this.Cc.poster=a.gh("default.jpg"))}b=g.EQ(a,"yt:bgcolor");this.Tz.style.backgroundColor=b?b:"";this.vR=Cs(g.EQ(a,"yt:stretch"));this.wR=Cs(g.EQ(a,"yt:crop"),!0);g.rp(this.element,"ytp-dni",a.Ff);this.resize()}; +g.k.setGlobalCrop=function(a){this.nQ=Cs(a,!0);this.resize()}; +g.k.setCenterCrop=function(a){this.pX=a;this.resize()}; +g.k.hn=function(){}; +g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.IO(a);if(b&&js()&&!c)return new g.Id(window.outerWidth,window.outerHeight);c=!isNaN(this.UE.width)&&!isNaN(this.UE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Id(this.element.clientWidth,this.element.clientHeight);if(b||a.Cp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.hG&&this.hG.media=== +a||(this.hG=window.matchMedia(a));var e=this.hG&&this.hG.matches}if(e)return new g.Id(window.innerWidth,window.innerHeight)}else if(c)return this.UE.clone();return new g.Id(this.element.clientWidth,this.element.clientHeight)}; +g.k.ai=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.AC(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.NS&&b.width>c?new g.Id(b.width*g.AC(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b}; +g.k.getVideoAspectRatio=function(){return isNaN(this.vR)?NVa(this):this.vR}; +g.k.getVideoContentRect=function(a){var b=this.ai();a=OVa(this,b,this.getVideoAspectRatio(),a);return new g.gm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)}; +g.k.sC=function(a){this.NS=a;this.resize()}; +g.k.NF=function(){return this.ZL}; +g.k.onMutedAutoplayChange=function(){sX(this)}; +g.k.setInternalSize=function(a){g.Jd(this.UE,a)||(this.UE=a,this.resize())}; +g.k.xa=function(){this.aP&&g.Hv(this.aP);this.Rj();g.T.prototype.xa.call(this)};g.k=RVa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Ww();c&&a.visualElement&&g.Cx(c,a.visualElement,b)}; +g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=mra(c);a.visualElement=c;var f=g.Ww(),h=g.Vw();f&&h&&(g.Pr("combine_ve_grafts")?QK(OK(),c,h):g.tr(g.sx)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)}); +d&&this.B.add(a)}; +g.k.createServerVe=function(a,b,c){var d=this;c=c===void 0?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)}); +c&&this.B.add(a)}; +g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)}; +g.k.DX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,PK(OK(),a),SVa(this))}; +g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Tw(b))}; +g.k.hasVe=function(a){return this.elements.has(a)};TVa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)}; +TVa.prototype.getPlaybackRate=function(){return this.playbackRate};ZVa.prototype.XP=function(a){var b=dF(a.info.j.info,this.manifest.Vb),c=a.info.Pa+this.C,d=a.info.startTime*1E3;if(this.policy.Ya)try{d=this.policy.Ya?lN(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=aK(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Sc(),encodedDataView:g.Te(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ya){if(a.info.j.Rm())var f=a.info.duration;else a.D===-1&&(a.D=mN(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration* +1E3;this.policy.Ya&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Sc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,b8:f}}; +ZVa.prototype.Nq=function(a){this.timestampOffset=a};xX.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Qb,f=mWa(this,this.videoTrack,a,this.videoTrack.Qb,b);b=mWa(this,this.audioTrack,this.policy.wh?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(iWa(this,this.videoTrack,c),iWa(this,this.audioTrack,d));return a}; +xX.prototype.isSeeking=function(){return this.G}; +xX.prototype.DT=function(a){this.C=a}; +var lWa=2/24;var qWa=0;g.k=HX.prototype;g.k.Wu=function(){this.G=this.now();nJa(this.Kc,this.G);this.Cb.Wu()}; +g.k.Bs=function(a,b){var c=this.policy.B?(0,g.Zt)():0;IX(this,a,b);a-this.K<10&&this.ri()||this.dw(a,b);this.Cb.Bs(a,b);this.policy.B&&(a=(0,g.Zt)()-c,this.Ab+=a,this.ob=Math.max(a,this.ob))}; +g.k.dw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.Qp||(AO(this.Kc,c,d),this.hv(c,d));this.K=a;this.B=b}; +g.k.Oo=function(){this.Fa&&rWa(this);this.Cb.Oo()}; +g.k.As=function(a){this.Fa||(this.Fa=this.D-this.Ob+a,this.wc=this.D,this.yc=this.N)}; +g.k.fv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(this.qa=a,this.ra=b,this.isActive=!0,this.policy.j&&(this.Y=!0))}; +g.k.ri=function(){return this.ra>0}; +g.k.C1=function(){}; +g.k.qr=function(){var a={rn:this.requestNumber,rt:(this.N-this.j).toFixed(),lb:this.D,stall:(1E3*this.C).toFixed(),ht:(this.G-this.j).toFixed(),elt:(this.qa-this.j).toFixed(),elb:this.ra,d:tWa(this)};this.url&&mTa(a,this.url);this.policy.B&&(a.mph=this.ob.toFixed(),a.tph=this.Ab.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Ra;return a}; +g.k.now=function(){return(0,g.Zt)()}; +g.k.deactivate=function(){this.isActive&&(this.isActive=!1)}; +var GX;g.z(JX,HX);g.k=JX.prototype;g.k.qr=function(){var a=HX.prototype.qr.call(this);a.pb=this.dA;a.pt=(1E3*this.Wa).toFixed();a.se=this.Tb;return a}; +g.k.Tp=function(){var a=this.Cb;this.fb||(this.fb=a.Tp?a.Tp():1);return this.fb}; +g.k.LK=function(){return this.Ml?this.Tp()!==1:!1}; +g.k.HR=function(a,b,c){if(!this.Kb){this.Kb=!0;if(!this.Qp){IX(this,a,b);this.dw(a,b);var d=this.Tp();this.Tb=c;d===2?this.Qp||(this.Ga?vO(this.Kc,this.Ga/1E3,this.Va,.25):vO(this.Kc,b/(c||this.Ra),b,.01),yO(this.Kc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.yb||this.policy.K||!this.ri()||wWa(this,c,b),this.ri()&&yO(this.Kc,b,this.C));a=(a-this.j)/1E3||.01;this.policy.G&&!this.ri()||xO(this.Kc,a,this.B,this.Wa,this.Lp)}this.deactivate()}}; +g.k.dw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B,e=this.Tp();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&wWa(this,.05,d),this.yb=!0):d>0&&(wWa(this,c,d),this.yb=!0)):xWa(this,b)&&(this.policy.j?this.fv(a,b):(e===1&&(c=(this.G-this.j)/1E3,d=(a-this.G)/1E3,CWa(this)||this.Qp||wO(this.Kc,c,d)),this.qa=a,this.ra=b,this.isActive=!0));HX.prototype.dw.call(this,a,b)}; +g.k.qL=function(a){if(!this.Qp){IX(this,a,this.D);var b=(a-this.j)/1E3;this.Tp()!==2&&this.ri()&&(this.C+=(a-this.K)/1E3,yO(this.Kc,this.B,this.C));xO(this.Kc,b,this.B,this.Wa,this.Lp,!0);a=(a-this.K)/1E3;AO(this.Kc,a,0);this.hv(a,0)}}; +g.k.fv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(HX.prototype.fv.call(this,a,b),this.Tp()===1&&(b=(this.G-this.j)/1E3,a=(a-this.G)/1E3,CWa(this)||this.Qp||wO(this.Kc,b,a)))}; +g.k.EY=function(){this.Ml&&BWa(this,this.now());return this.Ka}; +g.k.Gx=function(){return this.B>this.zS&&xWa(this,this.B)}; +g.k.gK=function(){return this.Xa}; +g.k.dT=function(a){a=a===void 0?this.now():a;if(this.Ml){BWa(this,a);if(this.fb?this.LK():this.Ba!==this.Ma){var b=this.Ma;if(a=1}; +g.k.isComplete=function(){return this.state>=3}; +g.k.Qm=function(){return this.state===5}; +g.k.onStateChange=function(){}; +g.k.zd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)}; +g.k.vB=function(a){a&&this.state=this.xhr.HEADERS_RECEIVED}; +g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}}; +g.k.dF=function(){return+this.getResponseHeader("content-length")}; +g.k.Jm=function(){return this.B}; +g.k.Zu=function(){return this.status>=200&&this.status<300&&!!this.B}; +g.k.Vr=function(){return this.j.totalLength>0}; +g.k.Py=function(){var a=this.j;this.j=new VJ;return a}; +g.k.TL=function(){return this.j}; +g.k.abort=function(){this.La=!0;this.xhr.abort()}; +g.k.CC=function(){return!0}; +g.k.gM=function(){return this.C}; +g.k.Xf=function(){return""};g.k=HWa.prototype; +g.k.Hs=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=Sd(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new GWa(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(A.j!=5)return n<=m?g.G(A,HKa(b,c,d,n,f),5):A.Ha(0);p=A.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e; +r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);y=new Uint8Array(p.buffer,t,u);a.B.append(y);a.loaded+=u;a.loaded=200&&this.status<300&&!!this.B}; +g.k.Vr=function(){return!!this.j.totalLength}; +g.k.Py=function(){var a=this.j;this.j=new VJ;return a}; +g.k.TL=function(){return this.j}; +g.k.La=function(){return this.G}; +g.k.abort=function(){this.C&&this.C.cancel().catch(function(){}); +this.D&&this.D.abort();this.G=!0}; +g.k.CC=function(){return!0}; +g.k.gM=function(){return this.K}; +g.k.Xf=function(){return this.errorMessage};g.k=KWa.prototype;g.k.onDone=function(){if(!this.La){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Cb.Oo()}}; +g.k.BB=function(){this.xhr.readyState===2&&this.Cb.Wu()}; +g.k.Cg=function(a){this.La||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Cb.Bs((0,g.Zt)(),a.loaded))}; +g.k.nu=function(){return this.xhr.readyState>=2}; +g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.fx(Error("Could not read XHR header "+a)),""}}; +g.k.dF=function(){return+this.getResponseHeader("content-length")}; +g.k.Jm=function(){return this.B}; +g.k.Zu=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B}; +g.k.Vr=function(){return this.j&&!!this.response&&!!this.response.byteLength}; +g.k.Py=function(){var a=this.response;this.response=void 0;return new VJ([new Uint8Array(a)])}; +g.k.TL=function(){return new VJ([new Uint8Array(this.response)])}; +g.k.abort=function(){this.La=!0;this.xhr.abort()}; +g.k.CC=function(){return!1}; +g.k.gM=function(){return!1}; +g.k.Xf=function(){return""};g.z(OX,g.O);g.k=OX.prototype;g.k.zda=function(){if(!this.La()){var a=(0,g.Zt)(),b=!1;if(this.timing.ri()){if(this.G)return;var c=this.timing.gK();this.timing.dT();var d=this.timing.gK();d-c>=this.policy.Zk*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.EY(); +e>0&&(this.j+=1);a=fEa(PX(this),!1)*this.policy.VD;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Cb.tQ(); +b?this.cI(!1):this.B.start()}}; +g.k.cI=function(a){this.D=!0;a&&(a=PX(this),a.C+=1);this.Cb.zz();this.lastError="net.timeout";QX(this)}; +g.k.canRetry=function(a){var b=PX(this);a=a?this.policy.qw:this.policy.Ej;return b.timedOut0&&(b=bK(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Ag&&(a.rc=this.policy.Xl?this.Ag:this.Ag.toString());this.policy.Wc&&this.V2&&(a.tr=this.V2);a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.jg();a.sq=""+this.info.gb[0].Pa;this.ke&&(a.ifi=""+ +ML(this.info.resource.C));this.Ag!==410&&this.Ag!==500&&this.Ag!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null? +void 0:d.Xf()))&&(a.msg=c);this.SH&&(a.smb="1");this.info.eq()&&(a.sdai="1");return a}; +g.k.mY=function(){return yWa(this.timing)}; +g.k.Xf=function(){return this.xhr.Xf()||""}; +g.k.Gx=function(){return this.isComplete()||this.timing.Gx()}; +g.k.Bs=function(){!this.La()&&this.xhr&&(this.Ag=this.xhr.status,this.policy.lq&&this.eg&&this.Nm(!1),this.Ol()?this.vB(2):!this.hZ&&this.Gx()&&(this.vB(),this.hZ=!0))}; +g.k.Wu=function(){if(!this.La()&&this.xhr){if(!this.Pz&&this.xhr.nu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Pz=((0,g.Zt)()-a)/1E3}this.xhr.nu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.ED&&!bCa()&&g.bt("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Ou)==null||c.stop();this.aq=a||this.aq; +this.Sr=b||this.Sr}}; +g.k.Oo=function(){var a=this.xhr;if(!this.La()&&a){this.Ag=a.status;a=this.xQ(a);if(this.policy.Wc){var b;(b=this.Ou)==null||b.stop()}a===5?QX(this.Cd):this.zd(a);this.Cd.B.stop()}}; +g.k.xQ=function(a){var b=this;nXa(this);if(RX(this.Cd,this.xhr.status,this.Sp?this.timing.Y||this.YM:this.xhr.Zu(),!1,this.Au))return 5;var c="";if(jXa(this)){var d=a.TL();d.totalLength<=this.policy.iq&&(c=kXa(this,$J(d)))}if(c)return DM(PX(this.Cd)),this.info.Fl(this.ke,c),3;c=a.Jm();if(this.Tl){this.Nm(!0);nXa(this);if(RX(this.Cd,this.xhr.status,this.timing.Y||this.YM,!1,this.Au))return 5;if(!this.q3){if(this.YM)return DM(PX(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if(RX(this.Cd, +this.xhr.status,this.xhr.Zu(),!1,this.Au))return 5;if((d=this.info.C)&&d!==c||a.gM())return this.Cd.lastError="net.closed",5;this.Nm(!0)}d=EWa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=EWa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.Y1=!0,this.policy.sI&&(d=a);MWa(this.Cd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Wa*1E3+e.j-Date.now()).toFixed(0)}); +return 4}; +g.k.canRetry=function(){this.La();var a=this.info.eq();return this.Cd.canRetry(a)}; +g.k.onStateChange=function(){this.isComplete()&&(this.policy.yp?this.zz():this.timing.deactivate())}; +g.k.cI=function(a){this.Cd.cI(a)}; +g.k.tQ=function(){this.callback&&this.callback(this,this.state)}; +g.k.kx=function(){return this.Cd.kx()}; +g.k.dispose=function(){LX.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.Ou)==null||a.dispose();this.policy.yp||this.zz()}; +g.k.zz=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.k.Uk=function(){if(!this.SG().length)return[];this.zQ=!0;return this.eg.Uk()}; +g.k.Ol=function(){if(this.state<1)return!1;if(this.eg&&this.eg.uf.length)return!0;var a;return((a=this.xhr)==null?0:a.Vr())?!0:!1}; +g.k.SG=function(){this.Nm(!1);return this.eg?this.eg.SG():[]}; +g.k.Nm=function(a){try{if(a||this.xhr.nu()&&this.xhr.Vr()&&!jXa(this)&&!this.KB)this.eg||(this.eg=new CW(this.policy,this.info.gb)),this.xhr.Vr()&&(this.Tl?this.Tl.feed(this.xhr.Py()):DW(this.eg,this.xhr.Py(),a&&!this.xhr.Vr()))}catch(b){this.Tl?iXa(this,b):g.fx(b)}}; +g.k.FB=function(a,b){switch(a){case 21:a=b.split(1).qn;lXa(this,a);break;case 22:this.q3=!0;DW(this.eg,new VJ([]),!0);break;case 43:if(a=qK(new kK(b),1))this.info.Fl(this.ke,a),this.YM=!0;break;case 45:b=mL(new kK(b));a=b.pT;b=b.qT;a&&b&&(this.cJ=a/b);break;case 44:this.kC=XCa(new kK(b));var c,d,e;!this.timing.Y&&((c=this.kC)==null?void 0:c.action)===4&&((d=this.kC)==null?0:(e=d.R1)==null?0:e.Sp)&&(this.Sp=this.kC.R1.Sp);break;case 53:this.policy.Wc&&(a=UCa(new kK(b)).qq)&&(this.Ou||(this.qq=a,this.Ou= +new g.fp(this.A_,a,this)),this.Ou.start());break;case 60:this.bB=lL(new kK(b));break;case 64:this.policy.aD&&(a=HCa(new kK(b)),this.policy.Uu(a));break;case 58:this.policy.Jw&&(a=xCa(new kK(b)))&&(this.pj=a,this.policy.Bj&&a.pj===3&&(this.Au=!0))}}; +g.k.As=function(a,b,c,d){c||this.timing.As(d);if(a!==21)return!1;if(a=this.policy.lq)if(a*=this.info.gb[0].j.info.ub,b.totalLength+c!==d&&b.totalLength0)return!1;if(!this.xhr.nu())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Tl)var a=!this.info.C;else this.xhr.dF()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.hh))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)> +this.info.gb[0].Pa)return!1;return!0}; +g.k.hQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.k.XJ=function(){this.xhr&&(this.aq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.aq}; +g.k.tY=function(){this.xhr&&(this.Sr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Sr}; +g.k.Xh=function(){return this.Cd.Xh()}; +g.k.A_=function(){if(!this.La()&&this.xhr){this.V2="heartbeat";var a=this.Cd;a.j+=2;this.tQ()}};XX.prototype.FB=function(a,b){switch(a){case 20:a=new kK(b);a={bq:nK(a,1),videoId:qK(a,2),itag:nK(a,3),lmt:nK(a,4),xtags:qK(a,5),lC:nK(a,6),Co:oK(a,8),Kq:nK(a,9),Vma:nK(a,10),startMs:nK(a,11),durationMs:nK(a,12),Is:nK(a,14),timeRange:rK(a,15,jCa),Sj:nK(a,16),rL:nK(a,17),clipId:qK(a,1E3)};this.fS(a);break;case 21:this.dS(b,!1);break;case 22:this.uq(b);break;case 31:a=uK(b,MCa);this.AB(a);break;case 52:a=uK(b,VCa);this.CB(a);break;default:this.TR(a,b)}}; +XX.prototype.fS=function(){}; +XX.prototype.TR=function(){};g.z(YX,HX);g.k=YX.prototype;g.k.dw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.ri()?d>0&&(this.Ba&&(c>.2||d<1024?(this.C+=c,c>.2&&vO(this.Kc,.05,d,.05)):vO(this.Kc,c,d,c)),this.Ma&&(this.Ka+=d,this.Wa+=c)):this.policy.j?b>2048&&this.fv(a,b):(wO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3),this.qa=a,this.ra=b);HX.prototype.dw.call(this,a,b)}; +g.k.HR=function(a,b){IX(this,a,b);this.dw(a,b);this.Ba&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.ri()&&yO(this.Kc,this.Ka,this.C),a=(a-this.j)/1E3||.01,this.policy.G&&!this.ri()||xO(this.Kc,a,this.B,b,!1))}; +g.k.qL=function(a){IX(this,a,this.D);var b=(a-this.K)/1E3;AO(this.Kc,b,0);this.hv(b,0);if(this.Ba||!this.ri())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.ri()&&(this.C+=(a-this.K)/1E3,yO(this.Kc,this.Ka,this.C)),xO(this.Kc,(a-this.j)/1E3||.01,this.B,b,!1,!0)}; +g.k.LG=function(a){a=a.zO||2147483647;(a&2)!==2&&(this.Ma=!1);(a&1)===1&&(this.Ba=!0)}; +g.k.CG=function(a){a=a.zO||2147483647;(a&2)===2&&(this.Ma=!1);(a&1)===1&&(this.Ba=!1)}; +g.k.FY=function(){return this.qa}; +g.k.TJ=function(){var a=this.Ma?this.now()-this.K:0;return Math.max(this.Wa*1E3+a,1)}; +g.k.cQ=function(){return this.Ka*1E3/this.TJ()}; +g.k.ri=function(){return this.policy.j?HX.prototype.ri.call(this):this.B>2048}; +g.k.fv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.ri()||(HX.prototype.fv.call(this,a,b),wO(this.Kc,(this.G-this.j)/1E3,(a-this.G)/1E3))}; +g.k.C1=function(a){this.Xa=a}; +g.k.qr=function(){var a=HX.prototype.qr.call(this);a.rbw=this.cQ();a.rbe=+this.Ma;a.gbe=+this.Ba;a.ackt=(this.Xa-this.j).toFixed();return a}; +g.k.dT=function(){}; +g.k.gK=function(){return NaN}; +g.k.EY=function(){return this.j+this.snapshot.delay*1E3};g.z(pXa,XX);g.k=pXa.prototype; +g.k.TR=function(a,b){switch(a){case 35:this.wq(b);break;case 44:this.IG(b);break;case 43:this.nS(b);break;case 53:this.lS(b);break;case 55:a=new kK(b);(a={timeline:rK(a,1,ZCa),Kda:rK(a,2,bDa)},a.timeline)&&a.timeline.U2&&this.Cb.sS(a.timeline.U2,a.timeline.pea,a.Kda);break;case 56:this.FG();break;case 57:this.HG(b);break;case 42:this.WR(b);break;case 45:this.xq(b);break;case 59:this.GG(b);break;case 51:this.KG(b);break;case 49:this.LG(b);break;case 50:this.CG(b);break;case 47:this.JG(b);break;case 58:this.Vm(b); +break;case 61:this.Cb.Pd.C1((0,g.Zt)());break;case 66:this.DG(b)}}; +g.k.KG=function(a){a=new kK(a);a={ppa:tK(a,1,jL),opa:tK(a,2,jL)};this.Cb.KG(a)}; +g.k.GG=function(a){var b=new kK(a);a=sK(b,1);var c=sK(b,2);b=sK(b,3);this.Cb.GG(a,c,b)}; +g.k.xq=function(a){a=mL(new kK(a));this.Cb.xq(a)}; +g.k.JG=function(a){a=uK(a,PCa);this.Cb.JG(a)}; +g.k.WR=function(a){a=new kK(a);a={videoId:qK(a,1),formatId:rK(a,2,jL),endTimeMs:nK(a,3),Zma:nK(a,4),mimeType:qK(a,5),yZ:rK(a,6,FCa),indexRange:rK(a,7,FCa),DP:rK(a,8,wCa)};this.Cb.WR(a)}; +g.k.HG=function(a){a=bDa(new kK(a));this.Cb.HG(a)}; +g.k.FG=function(){this.Cb.FG()}; +g.k.wq=function(a){a=NCa(new kK(a));this.Cb.wq(a)}; +g.k.lS=function(a){a=UCa(new kK(a));this.Cb.lS(a)}; +g.k.IG=function(a){a=XCa(new kK(a));this.Cb.IG(a)}; +g.k.nS=function(a){a={redirectUrl:qK(new kK(a),1)};this.Cb.nS(a)}; +g.k.dS=function(a){var b=bK(a,0);if(a.totalLength!==1){a=a.split(1).qn;var c=this.B[b]||null;c&&hUa(this.Cb.ag,b,c,a)}}; +g.k.uq=function(a){a=bK(a,0);var b=this.B[a]||null;b&&this.Cb.uq(a,b)}; +g.k.CB=function(a){this.Cb.CB(a)}; +g.k.fS=function(a){var b=a.bq,c=a.Co,d=a.lC,e=a.rL,f=a.Sj,h=a.Kq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Is,q=a.clipId,r=oXa(a);a=ubb.has(VE[""+a.itag]);this.B[b]=r;this.Cb.EB(r,a,{bq:b,Co:!!c,lC:d!=null?d:-1,Kq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Is:p,rL:e,Sj:f,clipId:q,timeRange:n})}; +g.k.LG=function(a){a={zO:nK(new kK(a),1)};this.Cb.LG(a)}; +g.k.CG=function(a){a={zO:nK(new kK(a),1)};this.Cb.CG(a)}; +g.k.AB=function(a){this.Cb.AB(a)}; +g.k.Vm=function(a){a=xCa(new kK(a));this.Cb.Vm(a)}; +g.k.DG=function(a){a={FZ:rK(new kK(a),1,SCa)};this.Cb.DG(a)};g.z(ZX,g.O);g.k=ZX.prototype;g.k.Bs=function(){!this.La()&&this.xhr&&(this.Nm(),V_a(this.Cb,this))}; +g.k.Wu=function(){}; +g.k.Oo=function(){if(!this.La()&&this.xhr){var a=this.xQ();a===5?QX(this.Cd):this.zd(a);this.Cd.B.stop();var b;(b=this.oH)==null||b.stop()}}; +g.k.xQ=function(){if(!this.policy.jw&&RX(this.Cd,this.xhr.status,this.xhr.Zu(),this.info.Xr(),this.Au))return 5;this.Nm();if(this.policy.jw&&RX(this.Cd,this.xhr.status,this.xhr.Zu(),this.info.Xr(),this.Au))return 5;if(this.S1)return 3;MWa(this.Cd,this.xhr.Jm(),0);this.policy.wc&&Z_a(this.Cb);return 4}; +g.k.Nm=function(){var a=this.xhr;if(a.Vr()){a=a.Py();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b}); +this.Tl.feed(a)}}; +g.k.FB=function(a,b){this.Pd.policy.j&&a===21&&this.Pd.fv();this.Mda.FB(a,b)}; +g.k.As=function(a,b,c,d){this.Pd.policy.j&&a===21&&(this.Pd.Y=!0);c||this.Pd.As(d);return!1}; +g.k.wq=function(a){this.Cb.wq(a)}; +g.k.lS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.oH)==null||b.dispose();this.eT=a;a.b1&&(this.oH=new g.fp(this.z_,a.b1,this));this.z_()}}; +g.k.z_=function(){var a;if((a=this.eT)!=null&&a.items){var b;(b=this.oH)==null||b.start();if(this.Pd.ri()){a=this.Pd.TJ();b=this.Pd.cQ();var c=rXa(this,a);if(!(b>c.hL||c.yR>0&&this.info.PP()>c.yR)){this.fT=(0,g.Zt)();var d;(d=this.oH)==null||d.stop();this.policy.wc&&(d=this.Cb,a={Lw:Math.round(b*a/1E3),Vy:a},d.policy.wc&&(d.Ba=a,d.Gq++));this.Cd.cI(!1)}}}}; +g.k.IG=function(a){this.Cb.IG(a)}; +g.k.nS=function(a){this.S1=!0;this.info.resource.Fl(this.ke,a.redirectUrl)}; +g.k.LG=function(a){this.Pd instanceof YX&&this.Pd.LG(a)}; +g.k.CG=function(a){this.Pd instanceof YX&&this.Pd.CG(a)}; +g.k.sS=function(a,b,c){this.Cb.sS(a,b,c,this.Vp())}; +g.k.WR=function(a){if(dU(this.policy)){var b=a.formatId,c=oXa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new LM(((d=a.yZ)==null?void 0:d.first)||0,((e=a.yZ)==null?void 0:e.SZ)||0),h,l;d=new LM(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.SZ)||0);this.manifest.K.get(c)||(c=a.DP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=CN(""),c=AN(c,null),uN(a,new rN(b,c,f,d)))}}; +g.k.xq=function(a){this.Cb.xq(a)}; +g.k.AB=function(a){this.Cb.AB(a)}; +g.k.GG=function(a,b,c){this.Cb.GG(a,b,c)}; +g.k.HG=function(a){a.scope===2&&(this.Lda=a);this.Cb.HG(a)}; +g.k.FG=function(){this.VW=!0;this.Cb.FG()}; +g.k.KG=function(a){this.policy.wp&&this.Cb.KG(a)}; +g.k.JG=function(a){this.Cb.JG(a,this.Vp())}; +g.k.Vm=function(a){this.policy.Bj&&a.pj===3&&(this.Au=!0);this.Cb.Vm(a)}; +g.k.DG=function(a){this.Cb.DG(a)}; +g.k.canRetry=function(){this.La();return this.Cd.canRetry(!1)}; +g.k.dispose=function(){if(!this.La()){g.O.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.oH)==null||a.dispose();this.zd(-1);this.zz()}}; +g.k.zd=function(a){this.state=a;V_a(this.Cb,this)}; +g.k.Xr=function(){return this.info.Xr()}; +g.k.FO=function(){return this.VW}; +g.k.fQ=function(){return this.Lda}; +g.k.EB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.mj=c.Kq,this.uv=c.startMs);var d=0;this.policy.Rf&&this.B_&&this.clipId&&(d=aX(this.B_,this.clipId)/1E3);this.ag.EB(a,b,c,d);this.ag.fd.get(a).dE=!0}; +g.k.uq=function(a,b){this.ag.uq(a,b)}; +g.k.CB=function(a){this.requestIdentifier=a}; +g.k.Uk=function(a){return this.ag.Uk(a)}; +g.k.Yn=function(a){return this.ag.Yn(a)}; +g.k.Ol=function(a){return this.ag.Ol(a)}; +g.k.Gr=function(){return this.ag.Gr()}; +g.k.Tp=function(){return 1}; +g.k.Vp=function(){return this.Pd.requestNumber}; +g.k.dQ=function(){return this.requestIdentifier}; +g.k.kY=function(){return this.clipId}; +g.k.Ce=function(){return this.ke.Ce()}; +g.k.W_=function(){this.zz()}; +g.k.zz=function(){this.Pd.deactivate();var a;(a=this.xhr)==null||a.abort()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.MZ=function(){return this.state===3}; +g.k.Qm=function(){return this.state===5}; +g.k.yQ=function(){return this.isComplete()}; +g.k.Bu=function(){return this.state>=1}; +g.k.kx=function(){return 0}; +g.k.jY=function(){var a;return(a=this.info.data)==null?void 0:a.CO}; +g.k.tQ=function(){}; +g.k.GY=function(){return PZa(this.info)}; +g.k.Xh=function(){return this.Cd.Xh()}; +g.k.Hr=function(){var a=NWa(this.Cd);Object.assign(a,RZa(this.info));a.req="sabr";a.rn=this.Vp();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Xl?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.Xf())&&(a.msg=b);this.fT&&(c=rXa(this,this.fT-this.Pd.FY()),a.letm=c.m$,a.mrbps=c.hL,a.mram=c.yR);return a}; +g.k.IY=function(){return{mj:this.mj,uv:this.uv,eq:this.info.eq()}};sXa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Zt)()};g.z(DXa,g.Fx);g.k=DXa.prototype;g.k.hS=function(a,b,c,d){if(this.K&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Az);this.K.oS(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}this.policy.Ab?(this.B===1&&bY(this,5,"noad"),FXa(this,a,b),isNaN(a.startTime)||GXa(this,a.Pa,cY(this,a.startTime,a.Pa),!!b,this.K)):c&&FXa(this,a,b)}; +g.k.gS=function(a,b,c){var d=this.videoTrack.j.index.qd()<=b;this.j={Zg:a,Pa:b,AF:c};d&&aY(this,a,b)}; +g.k.qx=function(){this.K&&this.K.qx()}; +g.k.oa=function(a,b){this.ya.oa(a,b)}; +g.k.Ps=function(a,b){var c=this.videoTrack.j.index.Li(a);if(c>=0){var d;var e=((d=YW(b.bd,c,2))==null?void 0:d.Nt)||"";if(this.policy.G||e)return b.yv(a,c),IXa(this.ya,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0}this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.z(gY,g.O);gY.prototype.gp=function(a,b,c){c=c===void 0?{}:c;this.policy.wj=PN(a,c,this.D,b===void 0?!1:b)};OXa.prototype.yL=function(a){var b=this;if(this.policy.XC){var c=new Set(a);c.size===this.Ga.size&&[].concat(g.x(c)).every(function(d){return b.Ga.has(d)})||(this.ya.oa("lwnmow",{itagDenylist:[].concat(g.x(a)).join(",")}),this.ya.Jy(!!c.size),this.Y=-1,this.Ga=c,lY(this,this.j),this.Ra=!0)}}; +OXa.prototype.gp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.wj;this.G.gp(a,b===void 0?!1:b,c);if(d!==this.policy.wj){lY(this,this.j);mY(this);var e,f;d>this.policy.wj&&((e=this.C)==null?0:ZE(e.info))&&((f=this.nextVideo)==null||!ZE(f.info))&&(this.qa=!0)}};gYa.prototype.dispose=function(){this.ra=!0}; +gYa.prototype.La=function(){return this.ra}; +g.z(tY,Error);var j5a=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);wY.prototype.skip=function(a){this.offset+=a}; +wY.prototype.Km=function(){return this.offset};g.k=zYa.prototype;g.k.DY=function(){return this.B}; +g.k.Ro=function(){return this.B.length?this.B[this.B.length-1]:null}; +g.k.lk=function(){this.B=[];yY(this);yYa(this)}; +g.k.Os=function(){this.Ya=this.B.shift().info}; +g.k.Yn=function(){return g.Al(this.B,function(a){return a.info})}; +g.k.Gh=function(){return!!this.K.info.audio}; +g.k.getDuration=function(){return this.K.index.Xt()};g.z(yX,LX);g.k=yX.prototype;g.k.onStateChange=function(){this.La()&&(GW(this.ag,this.formatId),this.j.dispose())}; +g.k.Hr=function(){var a=aUa(this.ag,this.formatId),b;var c=((b=this.ag.fd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.ag.fd.get(this.formatId))==null?void 0:d.Hz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:bUa(this.ag,this.formatId),isAnyMediaEndReceived:this.ag.Bx(this.formatId)}}; +g.k.mY=function(){return 0}; +g.k.Gx=function(){return!0}; +g.k.Uk=function(){return this.ag.Uk(this.formatId)}; +g.k.SG=function(){return[]}; +g.k.Ol=function(){return this.ag.Ol(this.formatId)}; +g.k.Xh=function(){return this.lastError}; +g.k.kx=function(){return 0};g.z(AY,g.O);g.k=AY.prototype;g.k.Ro=function(){return this.D.Ro()}; +g.k.Os=function(a){this.D.Os(a);var b;(b=this.Z)!=null&&(b.B=cWa(b,b.kd,b.vy,b.B,a),b.D=a,b.G=(0,g.Zt)());this.ub=Math.max(this.ub,a.info.j.info.ub||0)}; +g.k.getDuration=function(){if(this.policy.j){var a=this.ya.Bf();if(a)return dX(a)}return this.j.index.Xt()}; +g.k.lk=function(){AX(this);this.D.lk()}; +g.k.YP=function(){return this.D}; +g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.gb[0].Pa:!1}; +g.k.Nq=function(a){var b;(b=this.Z)==null||b.Nq(a)};g.z(PY,g.O);PY.prototype.C=function(){this.B++>15||(this.j=!this.j,new nZa(this.ya,this.policy,this.Kc,this.resource,this.j),this.delay.start())}; +g.k=nZa.prototype;g.k.Wu=function(){}; +g.k.Bs=function(){}; +g.k.Oo=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Jm()===this.size)this.ya.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.nu()&&(a="net.closed");this.onError(a)}}; +g.k.onError=function(a){var b=this;this.ya.handleError(a,this.getInfo());mW("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ya.oa("pathprobe",c)},function(c){b.ya.handleError(c.errorCode,c.details)})}; +g.k.getInfo=function(){var a=this.timing.qr();a.shost=KL(this.location.base);a.pb=this.size;return a};g.z(QY,g.O);QY.prototype.YQ=function(a,b){if(!MY(a)||!a.j.jg())return!1;var c=this.C.Ra||bZa(a)||b<=this.policy.UD||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+bZa(a)+", health: "+b}); +return c}; +QY.prototype.xa=function(){g.O.prototype.xa.call(this)}; +var RY=2/24;g.z(WY,g.O);WY.prototype.xL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&GZa(this,this.B)?this.B.reason:"a";this.ya.xL(new fY(a,e,c));UY(this.ya,b,a,!0)}; +WY.prototype.U1=function(a){for(var b=g.w(this.N),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.Ge.j&&(this.qa=!0),new fY(this.K,"m");this.C=[];return null}; +WY.prototype.gp=function(a,b,c){c=c===void 0?{}:c;this.j.gp(a,b===void 0?!1:b,c)};XY.prototype.Xr=function(){return this.requestType===1}; +XY.prototype.PP=function(){var a;return((a=this.Cb)==null?void 0:a.PP())||0}; +XY.prototype.eq=function(){var a;return!((a=this.data)==null||!a.dn)};YY.prototype.encrypt=function(a){this.wd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a}; +YY.prototype.La=function(){return this.cipher===0}; +YY.prototype.dispose=function(){this.wd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};ZY.prototype.encrypt=function(a,b){return kU(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:b},this.key,a).catch(function(c){return Promise.reject(c.name+": "+c.message)}).then(function(c){return new Uint8Array(c)}))}; +ZY.prototype.La=function(){return this.j}; +ZY.prototype.dispose=function(){this.j=!0}; +qU.KA(ZY,{encrypt:SZa("oan2")});$Y.prototype.encrypt=function(a,b){LJ(this.B,b);return jU(this.B.encrypt(a))}; +$Y.prototype.La=function(){return this.j}; +$Y.prototype.dispose=function(){this.j=!0}; +qU.KA($Y,{encrypt:SZa("oap")});aZ.prototype.encrypt=function(a,b){var c=this.wd.xE(b),d=this.j;d.wd.exports.AES128CTRCipher_setCounter(d.cipher,(c!=null?c:b).byteOffset);b=this.wd.xE(a);this.j.encrypt(b!=null?b:a);c&&this.wd.exports.free(c.byteOffset);return b?jU(this.wd.CR(b)):jU(a)}; +aZ.prototype.La=function(){return this.j.La()}; +aZ.prototype.dispose=function(){this.j.dispose()}; +qU.KA(aZ,{encrypt:SZa("oalw")});ZZa.prototype.encrypt=function(a){(0,g.Zt)();return(new qO(this.j.j)).encrypt(a,this.iv)}; +ZZa.prototype.decrypt=function(a,b){(0,g.Zt)();return(new qO(this.j.j)).decrypt(a,b)};c_a.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.Wm.Md("omd_s");c=new Uint8Array(16);OJ()?d=new pO(a):e=new qO(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ha(4);break}f=b.j.shift();if(!d){h=e.decrypt($J(f.buffer),c);m.Ha(5);break}return g.G(m,d.decrypt($J(f.buffer),c),6);case 6:h=m.B;case 5:l=h;for(var n=0;n=4)){var b=jZ(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.Xf()){var d="onesie.net";b.msg=c.Xf()}else c.status>=400?d="onesie.net.badstatus":c.Zu()?this.gZ||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.Zi(new FE(d,b)):(this.Md("or_fs"),this.Pd.HR((0,g.Zt)(),c.Jm(),0),this.zd(4),this.Om&&this.oa("rqs",b));this.Om&&this.oa("ombre", +"ok."+ +!d);this.rH=!1;lZ(this);q_a(this.Wm);if(!this.iI){this.OG.stop();var e;(e=this.JL)==null||e.stop()}var f;if(a=(f=this.BA)==null?void 0:uTa(f))for(f=0;f1E3){var a;(a=this.Pd)==null||a.qL((0,g.Zt)());a=jZ(this);if(this.W.Ac()&&this.xhr instanceof FWa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.Zi(new FE("net.timeout",a))}}else(0,g.Zt)()-this.Pd.j>1E4&&((b=this.Pd)==null||b.qL((0,g.Zt)()),this.vQ());this.isComplete()||this.NO.start()}}; +g.k.vQ=function(){this.logger.info("Onesie request timed out");this.rH=!1;if(!lZ(this)){var a=jZ(this);a.timeout="1";this.Zi(new FE("onesie.request",a))}}; +g.k.Zi=function(a){var b=this;a=HE(a);this.MA?this.ea.Id(a):(this.Rq.reject(a),this.MA=!0);q_a(this.Wm);this.iI||this.OG.stop();this.Md("or_fe");var c,d;(c=this.BA)==null||(d=uTa(c))==null||d.forEach(function(e){b.oa("pathprobe",e)}); +this.zd(5);this.dispose()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.yQ=function(a){var b,c;return this.isComplete()||!!((b=this.cg)==null?0:(c=b.get(a))==null?0:c.j)}; +g.k.MZ=function(){return!1}; +g.k.Qm=function(){return this.state===5}; +g.k.notifySubscribers=function(a){for(var b=0;b102400&&!this.HZ&&(this.Md("or100k"),this.HZ=!0);if(a.Vr()){var b=a.Py(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); +this.Om&&this.oa("ombrss","len."+c);this.Tl.feed(b)}if(this.cg)for(var d=g.w(this.cg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.cg.get(f))==null||a.vB();this.notifySubscribers(f)}}catch(h){this.Zi(h)}}; +g.k.Vp=function(){return this.Pd.requestNumber}; +g.k.dQ=function(a){return this.J1.get(a)}; +g.k.IY=function(){return{mj:this.mj,uv:this.uv,eq:!1}};g.z(K_a,g.O);g.k=K_a.prototype;g.k.qv=function(a){this.qa=void 0;Z_a(this);X_a(this,a)}; +g.k.XQ=function(a){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof kZ&&this.policy.bl?a===this.ya.getCurrentTime()*1E3:!(b instanceof ZX&&QZa(b.info))&&Math.abs(b.GY()-a)<50}; +g.k.wq=function(a){this.B=a;this.qa=(0,g.Zt)()+(a.backoffTimeMs||0)}; +g.k.IG=function(a){if(a.action===void 0){var b=this.ea.lx();b!==void 0&&this.ya.Ku(b)}else if(a.action!==0||!this.Ma)switch(b={},b.reason=a.mda,b.action=a.action,a.action){case 1:this.policy.G&&this.K&&this.K.FE(void 0,void 0,b);break;case 0:this.Ma=!0;this.ya.oP(b);break;case 2:this.ya.handleError("sabr.config",b,1);break;case 5:a5a(this.ea,!0);break;case 6:a5a(this.ea,!1);break;case 3:this.policy.gD&&((a=this.manifest.Y)!=null&&(a.N=!0),this.ya.handleError("sabr.hostfallback",b))}}; +g.k.sS=function(a,b,c,d){if(this.policy.j){this.ya.oa("ssap",{rn:d,v:b,tl:a0a(a)});var e=this.ya.Bf();a={Gt:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.Ak.add(c.type));e?Y_a(this,e,a):(this.ya.oa("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}}; +g.k.HG=function(a){this.policy.qa&&a&&a.type&&a.sendByDefault&&this.Ak.add(a.type)}; +g.k.FG=function(){}; +g.k.xq=function(a){if(a.pT!==void 0&&a.qT){var b=a.pT/a.qT;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.ra||this.policy.Ig)this.ya.Lg.B=!1;this.ya.Fp(b,1);if(this.ea.getCurrentTime()!==b){var c={Zc:"sabr_seek",XA:!0,RT:!0};a.seekSource&&(c.seekSource=a.seekSource);EX(this.ya,b,c)}}}; +g.k.AB=function(a){a.xK&&a.yK&&IN(this.manifest,a.xK,a.yK);this.policy.Lv&&(a.J_&&a.K_&&(this.manifest.Fa=a.J_/a.K_),a.w_&&a.x_&&(this.manifest.Z=a.w_/a.x_))}; +g.k.Vm=function(a){this.ya.Vm(a)}; +g.k.GG=function(a,b,c){this.policy.C&&this.ya.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.w(a);for(var d=a.next();!d.done;d=a.next())this.Ak.add(d.value)}if(b)for(b=g.w(b),a=b.next();!a.done;a=b.next())a=a.value,this.Ak.has(a)&&this.Ak.delete(a);if(c)for(c=g.w(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.WA=""))}; +g.k.KG=function(){}; +g.k.JG=function(a,b){xOa(this.policy,a,4,b)}; +g.k.DG=function(a){if(a==null?0:a.FZ)if(a=a.FZ.G8){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.K.get(hIa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}}; +g.k.nf=function(){return this.ea.nf()||""}; +g.k.PP=function(){var a=IY(this.audioTrack,!0)*1E3,b=IY(this.videoTrack,!0)*1E3;return Math.min(a,b)}; +g.k.Gk=function(a,b){this.ya.oa(a,b)}; +g.k.rK=function(a){t0a(this.ya,YXa(this.ra,a))}; +g.k.xa=function(){g.O.prototype.xa.call(this);this.B=void 0;X_a(this,!0);this.j=[]};b0a.prototype.Ue=function(a,b){if(this.D)return g0a(this,b);if(b=FX(a)){var c=b.B;c&&c.C&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Qm()&&a.info.hh===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN}; +b0a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.z(g.pZ,g.O);g.k=g.pZ.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a}); +a=a||0;dU(this.policy)||(b=oY(this.j),w0a(this.ea,new fY(b.video,b.reason)),this.ea.oy(new fY(b.audio,b.reason)));this.manifest.isManifestless&&AZa(this.D);this.G&&d0a(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Pv&&(d=d||this.manifest.Wd);this.policy.yb||(this.currentTime=d?a:b);this.policy.ra&&this.seek(this.getCurrentTime(),{}).Wk(function(){}); +if(this.policy.B){var e;((e=this.qa)==null?0:J_a(e,this.nf()||""))&&l0a(this)&&k0a(this,this.videoTrack)&&k0a(this,this.audioTrack)&&($_a(this.Z,this.qa),this.policy.K&&j0a(this))}else this.ra&&(m0a(this,this.videoTrack),m0a(this,this.audioTrack),$Ta(this.ra),delete this.ra);c?(this.policy.Qf?(this.Jb=c,sZ(this,c)):sZ(this,!1),g.gp(this.fG)):(c=this.getCurrentTime()===0,TY(this.D,this.videoTrack,this.videoTrack.j,c),TY(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.B&&N_a(this.Z,!0),this.policy.ra|| +this.seek(this.getCurrentTime(),{}).Wk(function(){}),this.timing.tick("gv")); +(this.manifest.df||this.manifest.xi||this.manifest.Ra||this.manifest.Tb||this.manifest.Rc)&&this.ea.fH(this.manifest)}; +g.k.resume=function(){if(this.isSuspended||this.Yr){this.logger.debug("Resumed.");this.zJ=this.Yr=this.isSuspended=!1;try{this.Ue()}catch(a){g.ex(a)}}}; +g.k.Zz=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");p0a(this);BF(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ka&&this.oa("loader",{setsmb:1}),this.policy.Ma=!0):this.policy.Qf?sZ(this,this.Jb):sZ(this,!1);this.lk()}; +g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.La()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Ie&&(this.Wa=!0));if(dU(this.policy)){var e=this.B.U1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id}); +this.ea.oy(e)}else{var f=XXa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id}); +this.ea.oy(new fY(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Li(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){this.policy.B&&(this.B.Z=!0,this.qv(!0));aZa(this.audioTrack,c,NaN,NaN);HN(this.manifest,c,!1);return}this.ea.Iq()}}; +g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)}; +g.k.xL=function(a){var b=a.j.info.Gh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+jF(a.j.info)}); +b?this.ea.oy(a):w0a(this.ea,a)}; +g.k.rK=function(a){RM(a.gb[a.gb.length-1])&&t0a(this,YXa(this.j,a.gb[0].j))}; +g.k.Yt=function(){return this.ea.Yt()}; +g.k.eK=function(){return this.ea.eK()}; +g.k.Vm=function(a){if(this.policy.Bj)if(a.pj===1)this.ea.tC(0);else{if(a.pj===2||a.pj===3){var b=!1;if(a.pj===3){b=this.ea.vA();var c;this.Ob=(c=a.F1)!=null?c:Infinity;this.ea.tC(b+1);(b=zZa(this))&&this.mB(!0)}this.ea.pS(!0,b)}}else this.ea.Vm(a)}; +g.k.tA=function(){return this.ea.tA()}; +g.k.Bl=function(){return this.ea.Bl()}; +g.k.uS=function(a){this.ea.uS(a)}; +g.k.Yca=function(){var a,b=(a=this.ea.Ke())==null?void 0:a.getCurrentTime();b?this.ea.oa("rms",{cta:b}):g.gp(this.Kb)}; +g.k.Ue=function(){s0a(this);if(this.Qa&&yF(this.Qa)&&!this.Qa.Ek()){var a=CY(this.videoTrack);a=this.policy.PD&&a&&a.Mi();this.manifest.isManifestless&&this.manifest.C&&EN(this.manifest)?(this.N=EN(this.manifest),this.Qa.Xo(this.N)):JN(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Qa.Xo(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Qa.Xo(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()), +(!isFinite(this.N)||this.N!==a)&&a>0&&(this.Qa.Xo(a),this.N=a))}if(!this.La())if(DN(this.manifest)&&this.manifest.Qm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.yb?{rc:b.Ag}:{rc:b.Ag.toString()},1)}else if(this.policy.B)a:{try{T_a(this.Z);this.manifest.isManifestless&&this.policy.K&&DX(this.Lg);if(dU(this.policy)&&!vF()&&this.policy.Bn&&this.Qa&&!CF(this.Qa)&&this.videoTrack.Ma&&this.audioTrack.Ma){this.oa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.rb, +a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.rb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!CF(c)&&e&&d&&(Kwa(c,d.info,e.info,this.policy.Ob),q0a(this,c))}var f;((f=this.Qa)==null?0:CF(f))&&this.QB();dU(this.policy)||rZ(this);N_a(this.Z)}catch(l){g.fx(l);b=l;if(b.message.includes("changeType")){this.oa("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}L0a(this);g.gp(this.Xa)}else if(!this.manifest.B|| +!eZa(this.videoTrack)&&!eZa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Jb?c=!1:(this.lk(),this.ea.seekTo(Infinity,{Zc:"checkLoaderTracksSync",Fp:!0}),c=!0),!c){s0a(this);this.manifest.isManifestless&&(fZa(this.videoTrack),fZa(this.audioTrack),DX(this.Lg),(c=FX(this.videoTrack))&&c.B&&(c=c.B.C&&!this.policy.vk,this.oa(c===this.policy.N.sj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.sj,dfs:this.policy.vk},!0)));if(this.Qa)this.QB();else if(this.policy.D){var h;c=!1;if(this.policy.ZB)for(d= +g.w([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=FX(f);e&&f.Ro()!==CY(f);e=FX(f))f.Os(e);c=c||!!e}else(b=FX(this.videoTrack))&&this.videoTrack.Os(b),(h=FX(this.audioTrack))&&this.audioTrack.Os(h);FY(this.videoTrack)&&FY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&tZ(this)}rZ(this);TY(this.D,this.videoTrack,this.videoTrack.j,!1);TY(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.PC||v0a(this,this.videoTrack, +this.audioTrack);sZa(this.D,this.videoTrack,this.audioTrack);sZa(this.D,this.audioTrack,this.videoTrack);L0a(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.ww,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Zj)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.gp(this.Tb,b));g.gp(this.Xa)}}; +g.k.oP=function(a){this.ea.oP(a)}; +g.k.QB=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B;S0a(this,this.audioTrack);S0a(this,this.videoTrack);var d=y0a(this);if(d){if(this.policy.Zs){if(!b.ex()){var e=FX(this.audioTrack);if(e){if(!oZ(this,this.audioTrack,b,e.info))return;B0a(this,b,e)}}if(!c.ex()&&(e=FX(this.videoTrack))){if(!oZ(this,this.videoTrack,c,e.info))return;B0a(this,c,e)}}this.Ep||(this.Ep=(0,g.Zt)(),this.logger.debug(function(){return"Appends pause start "+a.Ep+" reason "+d}),this.policy.C&&this.oa("apdps", +{r:d}))}else if(this.Ep&&(x0a(this,this.Ep),this.Ep=0),z0a(this),e=!1,this.policy.j&&OY(this.videoTrack)||!F0a(this,this.videoTrack,c)||(e=!0,vXa(this.timing),zXa(this.timing)),this.Qa&&!this.Qa.Ng()&&(this.policy.j&&OY(this.audioTrack)||!F0a(this,this.audioTrack,b)||(e=!0,wXa(this.timing),AXa(this.timing)),!this.La()&&this.Qa)){if(!this.policy.Xa&&FY(this.videoTrack)&&FY(this.audioTrack)&&yF(this.Qa)&&!this.Qa.Ek()){c=!1; +c=CY(this.audioTrack);if(this.policy.j){var f;b=(f=this.wb)==null?void 0:cX(f,c.We*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),Lwa(this.Qa),oJa(this.schedule))}e&&!this.Qa.isAsync()&&tZ(this)}}}; +g.k.s6=function(a){var b=this,c,d;(d=(a===((c=this.Qa)==null?void 0:c.j)?this.audioTrack:this.videoTrack).Ba)==null||d.stop();var e;R0a(this,a===((e=this.Qa)==null?void 0:e.j));var f;if(this.policy.Ie&&a===((f=this.Qa)==null?void 0:f.j)&&this.Ya){c=this.Ya-this.getCurrentTime();var h;this.ea.oa("asl",{l:c,xtag:(h=CY(this.audioTrack))==null?void 0:h.j.info.j});this.Wa=!1;this.Ya=0}a.Pm()&&a.oe().length===0&&(a.Kz(),this.Qa&&!this.Qa.Pm()&&(this.ea.U().Ac()&&this.ea.oa("rms",{ld:"seek"}),this.Qa.N= +performance.now(),this.ea.CP(),this.ea.U().Ac()&&g.gp(this.Kb)));if(this.policy.Ra&&this.Qa){h=a===this.Qa.j;var l=a.Jr();if(l){if(!l.Ub||l.Se)h=a.uc({a:h}),h.omt=(this.getCurrentTime()+this.Dc()).toFixed(3),h.to=this.Dc(),this.oa("sbu",h),this.policy.Ap&&l.Mi()&&!nF(a.oe(),Math.min(l.We+RY,l.Mf))&&this.oa("sbunb",{st:l.We,et:l.Mf});l.Se&&!a.Ek()&&setTimeout(function(){var m=a.oe(),n=mF(m,l.startTime+RY),p=mF(m,b.getCurrentTime());(n<0||n!==p)&&b.oa("sbu_mismatch",{b:lF(m),c:b.getCurrentTime(),s:l.Sc()})}, +0)}}this.Ue()}; +g.k.maa=function(a){if(this.Qa){var b=CY(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.eQ())for(var c=0;cthis.C&&(this.C=c,g.Bc(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.gp(this.B))}}; +wZ.prototype.G=function(){for(var a=g.w(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(Li),f=[],h=g.w(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Rd(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e0)for(var c=g.w(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.Zt)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.w(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length, +ignore:this.D});c<=0?X0a(this,a):this.D||(this.j.push({time:b+c,info:a}),g.gp(this.B,c))}}; +xZ.prototype.xa=function(){this.j=[];vZ.prototype.xa.call(this)};var u2={},e1a=(u2.DRM_TRACK_TYPE_AUDIO="AUDIO",u2.DRM_TRACK_TYPE_SD="SD",u2.DRM_TRACK_TYPE_HD="HD",u2.DRM_TRACK_TYPE_UHD1="UHD1",u2);g.z(a1a,g.O);g.z(g1a,g.Fx);g.k=g1a.prototype;g.k.tq=function(a){var b=this;this.La()||a.size<=0||(a.forEach(function(c,d){var e=TN(b.B)?d:c;d=new Uint8Array(TN(b.B)?c:d);TN(b.B)&&x1a(d);c=g.Te(d,4);x1a(d);d=g.Te(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),s1a(this,","),yZ(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.k.error=function(a,b,c,d){this.La()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));GE(b)&&this.dispose()}; +g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber}; +g.k.xa=function(){this.j={};g.Fx.prototype.xa.call(this)}; +g.k.uc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Fa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a}; +g.k.getInfo=function(){var a=this.D.join();if(zZ(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex}; +g.k.Ce=function(){return this.url};g.z(AZ,g.O);g.k=AZ.prototype;g.k.t6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}}; +g.k.tq=function(){this.N&&this.N(this.j.keyStatuses)}; +g.k.onClosed=function(){this.La()||g.is("xboxone")&&this.C&&this.C("closed")}; +g.k.v0=function(a){this.G&&this.G(a.message,"license-request")}; +g.k.u0=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}}; +g.k.t0=function(){this.K&&this.K()}; +g.k.update=function(a){var b=this;if(this.j)return(gO.isActive()?gO.ev("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,JK(function(c){z1a(b,"t.update",c)})); +this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return as()}; +g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.fx):this.j.close());this.element=null;g.O.prototype.xa.call(this)};g.z(BZ,g.O);g.k=BZ.prototype;g.k.tO=function(){var a=this;if(this.j.keySystemAccess)return(gO.isActive()?gO.ev("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.La())if(a.B=c,gO.isActive())gO.ev("emeset",function(){return a.element.setMediaKeys(c)}); +else{var d;(d=a.element)==null||d.setMediaKeys(c)}}); +if(SN(this.j))this.C=new (RN())(this.j.keySystem);else if(UN(this.j)){this.C=new (RN())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else gO.isActive()&&this.oa("emev",{v:"01b"}),Xs(this.G,this.element,["keymessage","webkitkeymessage"],this.w6),Xs(this.G,this.element,["keyerror","webkitkeyerror"],this.v6),Xs(this.G,this.element,["keyadded","webkitkeyadded"],this.u6);return null}; +g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.pm?this.B.setServerCertificate(this.j.pm):WN(this.j)&&this.j.fb?this.B.setServerCertificate(this.j.fb):null:null}; +g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();VN(this.j)?c=A1a(c,this.j.fb):WN(this.j)&&(c=W0a(c)||new Uint8Array(0));b&&b("genreq");var e=gO.isActive()?gO.ev("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c); +var f=new AZ(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},JK(function(l){z1a(f,"t.generateRequest",l)})); +return f}if(SN(this.j))return C1a(this,c);if(UN(this.j))return B1a(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new AZ(this.element,this.j,c,null,null,this.N)}; +g.k.w6=function(a){var b=D1a(this,a);b&&b.v0(a)}; +g.k.v6=function(a){var b=D1a(this,a);b&&b.u0(a)}; +g.k.u6=function(a){var b=D1a(this,a);b&&b.t0(a)}; +g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a}; +g.k.xa=function(){this.C=this.B=null;var a;(a=this.D)==null||a.dispose();a=g.w(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.O.prototype.xa.call(this);delete this.element};g.k=CZ.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null}; +g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))}; +g.k.removeAll=function(){this.keys=[];this.values=[]}; +g.k.set=function(a,b){var c=this.findIndex(a);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))}; +g.k.findIndex=function(a){return g.Lb(this.keys,function(b){return g.ac(a,b)})};g.z(G1a,g.Fx);g.k=G1a.prototype;g.k.Laa=function(a){this.vj({onecpt:1});a.initData&&J1a(this,new Uint8Array(a.initData),a.initDataType)}; +g.k.mba=function(a){this.vj({onndky:1});J1a(this,a.initData,a.contentType)}; +g.k.py=function(a){this.vj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));I1a(this,a)}; +g.k.RW=function(a){this.C.push(a);DZ(this)}; +g.k.createSession=function(a){var b=L1a(this)?sYa(a):g.Te(a.initData);this.B.get(b);this.Fa=!0;a=new g1a(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.vL,this);a.subscribe("keystatuseschange",this.tq,this);a.subscribe("licenseerror",this.zL,this);a.subscribe("newlicense",this.q0,this);a.subscribe("newsession",this.r0,this);a.subscribe("sessionready",this.C0,this);a.subscribe("fairplay_next_need_key_info",this.k0,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange", +this.yU,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.cca,this);k1a(a,this.D)}; +g.k.q0=function(a){this.La()||(this.vj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))}; +g.k.r0=function(){this.La()||(this.vj({newlcssn:1}),this.C.shift(),this.Fa=!1,DZ(this))}; +g.k.C0=function(){if(SN(this.j)&&(this.vj({onsnrdy:1}),this.Ka--,this.Ka===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}}; +g.k.tq=function(a){if(!this.La()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(M1a(this),this.Ma=!0);this.vj({onksch:1});var b=this.yU;if(!zZ(a)&&g.tu&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(zZ(a))for(var e=g.w(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!zZ(a)||d)c=a.D;c=r1a(c)}b.call(this,c);this.publish("keystatuseschange", +a)}}; +g.k.vL=function(a,b){this.La()||this.publish("ctmp",a,b)}; +g.k.k0=function(a,b){this.La()||this.publish("fairplay_next_need_key_info",a,b)}; +g.k.zL=function(a,b,c,d){this.La()||(this.videoData.L("html5_log_drm_metrics_on_error")&&M1a(this),this.publish("licenseerror",a,b,c,d))}; +g.k.hx=function(){return this.Z}; +g.k.yU=function(a){var b=g.rL("auto",a,!1,"l");if(this.videoData.Yj){if(qL(this.Z,b))return}else if(gDa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.vj({updtlq:a})}; +g.k.cca=function(a){this.videoData.sabrLicenseConstraint=a}; +g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ba?this.element.setMediaKeys(null).catch(g.fx):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.w(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.vL,this),b.unsubscribe("keystatuseschange",this.tq,this),b.unsubscribe("licenseerror",this.zL,this),b.unsubscribe("newlicense",this.q0,this),b.unsubscribe("newsession",this.r0,this),b.unsubscribe("sessionready",this.C0,this),b.unsubscribe("fairplay_next_need_key_info", +this.k0,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.yU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.Fx.prototype.xa.call(this)}; +g.k.uc=function(){for(var a={systemInfo:this.j.uc(),sessions:[]},b=g.w(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.uc());return a}; +g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")}; +g.k.vj=function(a,b){b=b===void 0?!1:b;this.La()||(EE(a),(this.W.Ac()||b)&&this.publish("ctmp","drmlog",a))};g.z(N1a,g.O);g.k=N1a.prototype;g.k.FJ=function(){return!!this.YF}; +g.k.NK=function(){return this.B}; +g.k.handleError=function(a){var b=this;U1a(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!T1a(this,a.errorCode,a.details))&&!Y1a(this,a)){if(this.Da.qa!=="yt"&&W1a(this,a)&&this.videoData.iq&&(0,g.Zt)()/1E3>this.videoData.iq&&this.Da.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.iq;c.init=this.videoData.jW/1E3;c.now=(0,g.Zt)()/1E3;c.systelapsed=((0,g.Zt)()-this.videoData.jW)/1E3; +a=new FE(a.errorCode,c,2);this.ea.Lf(a.errorCode,2,"SIGNATURE_EXPIRED",EE(a.details))}if(GE(a.severity)){var d;c=(d=this.ea.ya)==null?void 0:d.j.j;if(this.Da.L("html5_use_network_error_code_enums"))if(V1a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Da.K||a.errorCode!=="auth"||a.details.rc!==429)a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var f="6"}else V1a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Da.K||a.errorCode!=="auth"|| +a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",f="6");this.ea.Lf(a.errorCode,a.severity,e,EE(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Id(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Zt)(),mW(a,"manifest",function(h){b.K=!0;b.oa("pathprobe",h)},function(h){b.Id(h.errorCode, +h.details)}))}}; +g.k.oa=function(a,b){this.ea.hc().oa(a,b)}; +g.k.Id=function(a,b){b=EE(b);this.ea.hc().Id(a,b)};a2a.prototype.IP=function(a){return a?{T0:l2a(this,a)}:{T0:VP}}; +a2a.prototype.L=function(a){return this.W.L(a)};g.z(HZ,g.O);HZ.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(jcb)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +HZ.prototype.send=function(){if(!(this.C||this.j<0)){r2a(this);var a=g.XI(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.eh;this.playerState.isError()?b=c&&c.errorCode==="auth"?"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");c=e5a[DQ(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=s2a(this.provider), +f=this.B<0?a:this.B-this.j;a=this.provider.W.Sf+36E5<(0,g.Zt)();b={started:this.B>=0,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.BQ(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:gQ(this.provider.videoData)};a||g.Ht("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}}; +HZ.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.zB);window.removeEventListener("unhandledrejection",this.zB);g.O.prototype.xa.call(this)}; +var jcb=/\bnet\b/;var t2a=/[?&]cpn=/;var y2a=Math.pow(10,8);g.z(g.KZ,g.O);g.k=g.KZ.prototype;g.k.E9=function(){var a=g.XI(this.provider);B2a(this,a)}; +g.k.jF=function(){return this.Ma}; +g.k.oF=function(){return{SB:this.SB,TB:this.TB}}; +g.k.EH=function(a,b){this.SB=a;this.TB=b}; +g.k.fH=function(a){this.j.lwc=[[a.df?a.df.toFixed():"",a.xi?a.xi.toFixed():"",a.Ra?(a.Ra*1E3).toFixed():"",a.Tb?(a.Tb*1E3).toFixed():"",a.Rc?(a.Rc*1E3).toFixed():""].join(":")]}; +g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.La()&&(a=a>=0?a:g.XI(this.provider),["PL","B","S"].indexOf(this.Ee)>-1&&(!g.Bc(this.j)||a>=this.G+30)&&(g.JZ(this,a,"vps",[this.Ee]),this.G=a),!g.Bc(this.j))){this.sequenceNumber===7E3&&g.fx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){LZ(this,a);var b=a,c=this.provider.ea.vF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.SB,h=e&&!this.TB;d>c.totalVideoFrames||f>5E3?J2a(this,"html5.badframedropcount","df."+d+";tf."+ +c.totalVideoFrames):(f>0||h)&&g.JZ(this,b,"df",[f]);this.SB=d;this.TB=e;this.Z>0&&(g.JZ(this,a,"glf",[this.Z]),this.Z=0);$1.isActive()&&(a=$1.fY(),Object.keys(a).length>0&&this.oa("profile",a));this.yb&&MZ(this,"lwnmow");this.provider.W.Ac()&&this.provider.L("html5_record_now")&&this.oa("now",{wt:(0,g.Zt)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&& +(a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=QQ(this.provider.videoData);a.content_v=SQ(this.provider.videoData);a.ns=this.provider.W.qa;a.fexp=$Ia(this.provider.W.experiments).toString();a.cl=(657810031).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=DQ(this.provider.videoData))&&(a.live=b);this.provider.videoData.dj()&& +(a.drm=1,this.provider.videoData.G&&(a.drm_system=Pbb[this.provider.videoData.G.flavor]||0),this.provider.videoData.fl&&(a.drm_product=this.provider.videoData.fl));Dr()&&this.provider.videoData.K&&(a.ctt=this.provider.videoData.K,a.cttype=this.provider.videoData.xn,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.HU&&(a.dai_fallback= +"1")):this.provider.videoData.rd?a.dai="cs":this.provider.videoData.bE&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.PZ){if(b=this.provider.videoData.PZ,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Ed.has(b.ns)&&MZ(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Zd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId; +this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")||(a.qclc=E2a(this,a.seq));this.isEmbargoed&&(a.embargoed="1");g.Hc(a,this.provider.W.j);this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")&&(b=a.seq)&&(b=E2a(this,+b),this.j.qclc=[b]);a=g.Ti("//"+this.provider.W.En+"/api/stats/qoe",a);c=b="";d=g.w(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.fx(new g.pt("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100? +c+=e:b+=e);F2a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}}; +g.k.Jy=function(a){this.yb=a}; +g.k.e2=function(){if(this.provider.videoData.G){var a=this.provider.videoData.G;MZ(this,"eme-"+(a.keySystemAccess?"final":SN(a)?"ms":VN(a)?"ytfp":UN(a)?"safarifp":"nonfinal"))}}; +g.k.MG=function(a){var b=g.XI(this.provider),c=[a.j.id,a.B,this.wc,a.reason];a.token&&c.push(a.token);g.JZ(this,b,"vfs",c);this.wc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.aP();d>1&&c.push(d);g.JZ(this,b,"view",c)}this.Ya||(this.provider.W.Ac()&&MZ(this,"rqs2"),this.provider.videoData.j&&yL(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Ya=!0;a.reason==="m"&&++this.Fd===100&&K2a(this,2);g.JZ(this,b,"vps", +[this.Ee]);this.reportStats(b)}; +g.k.sG=function(a){var b=g.XI(this.provider);if(a.j.id!==this.Ka){var c=[a.j.id,this.Ka,a.reason];a.token&&c.push(a.token);g.JZ(this,b,"afs",c);this.Ka=a.j.id}}; +g.k.Tu=aa(54);g.k.Uo=function(a){this.isEmbargoed=a}; +g.k.Oj=aa(29);g.k.jj=aa(33);g.k.onPlaybackRateChange=function(a){var b=g.XI(this.provider);a&&a!==this.Tb&&(g.JZ(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)}; +g.k.Mo=aa(25);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,2048))return"B";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(a.isOrWillBePlaying()&&g.U(a,64))return"B";var b=kcb[TF(a)];g.OC(this.provider.W)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.U(a,4)&&(b="PB");return b}; +g.k.xa=function(){g.O.prototype.xa.call(this);g.Nr(this.K);g.Nr(this.Ab)}; +g.k.iM=function(a){this.isOffline=a;g.JZ(this,g.XI(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.Wc.indexOf(a)!==-1;e||this.Wc.push(a);if(!c||!e){var f=typeof b!=="string"?EE(b):b;f=L2a(f);if(!c&&!/^t[.]/.test(f)){var h=g.XI(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f}); +this.j.ctmp=d;G2a(this);return h}}; +g.k.eH=function(a,b,c){this.D={Jda:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),R_:a,rda:b,isAd:c}}; +g.k.Ey=function(a,b,c){g.JZ(this,g.XI(this.provider),"ad_playback",[a,b,c])}; +g.k.resume=function(){var a=this;this.provider.W.Ac()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?H2a(this):this.K=g.Lr(function(){a.reportStats()},1E4)}; +var v2={},kcb=(v2[5]="N",v2[-1]="N",v2[3]="B",v2[0]="EN",v2[2]="PA",v2[1]="PL",v2[-1E3]="ER",v2[1E3]="N",v2),IZ=[];N2a.prototype.WP=function(){return this.j}; +N2a.prototype.update=function(){if(this.N){var a=this.provider.ea.Wf()||0;this.provider.W.L("html5_ssap_vss_fix")&&(a=this.provider.ea.RJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.XI(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Q2a(this,a,b)){var c;if(!(c=ab-this.kq+2||Q2a(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.Y=c, +this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(PZ(this),this.C=a);this.kq=b;this.j=a}}};R2a.prototype.send=function(a){var b=this;if(!this.Xa){var c=T2a(this),d=g.Ti(this.uri,c);this.W.L("vss_through_gel_double")&&U2a(d);this.ra&&!this.W.L("html5_simplify_pings")?Z2a(this,d):S2a(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});x2a(d,e,{token:b.Y,jU:b.Jb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Ba,b.isFinal&&b.Sf||b.Ga||b.C&&b.Tf)}); +this.Xa=!0}}; +R2a.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()}; +var w2={},X2a=(w2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,w2.LIVING_ROOM_APP_MODE_MAIN=1,w2.LIVING_ROOM_APP_MODE_KIDS=2,w2.LIVING_ROOM_APP_MODE_MUSIC=3,w2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,w2.LIVING_ROOM_APP_MODE_GAMING=5,w2),x2={},W2a=(x2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,x2.EMBEDDED_PLAYER_MODE_DEFAULT=1,x2.EMBEDDED_PLAYER_MODE_PFP=2,x2.EMBEDDED_PLAYER_MODE_PFL=3,x2);g.z(RZ,g.O);g.k=RZ.prototype;g.k.Cg=function(){this.j.update();g3a(this)&&(a3a(this),b3a(this),this.Ys())}; +g.k.xa=function(){g.O.prototype.xa.call(this);UZ(this);O2a(this.j)}; +g.k.uc=function(){return T2a(SZ(this,"playback"))}; +g.k.Ys=function(){this.provider.videoData.N.eventLabel=QQ(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.Ej&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.Ej;a.isAd=b}; +g.k.Ki=function(a){var b=SZ(this,"engage");b.qa=a;return V2a(b,m3a(this.provider))};l3a.prototype.isEmpty=function(){return this.endTime===this.startTime};WZ.prototype.L=function(a){return this.W.L(a)}; +WZ.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Bf();if(b&&(a=a||b.Cl()))return eX(b,a)}else if(g.jQ(this.videoData)){var c=this.ea.Bf();if(c)return a=this.ea.getCurrentTime(),c=(((b=cX(c,a*1E3))==null?void 0:b.Nl)||0)/1E3,a-c}return this.ea.getCurrentTime()}; +WZ.prototype.Wf=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Bf();if(b&&(a=a||b.Cl()))return eX(b,a)}else if(g.jQ(this.videoData)){var c=this.ea.Bf();if(c)return a=this.ea.Wf(),c=(((b=cX(c,a*1E3))==null?void 0:b.Nl)||0)/1E3,a-c}return this.ea.Wf()}; +var n3a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.XZ,g.O);g.k=g.XZ.prototype;g.k.Cg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a;(a=this.C.get(this.Mg))==null||a.Cg()}else this.j&&this.j.Cg()}; +g.k.Uo=function(a){this.qoe&&this.qoe.Uo(a)}; +g.k.Oj=aa(28);g.k.jj=aa(32);g.k.Id=function(a,b){this.qoe&&J2a(this.qoe,a,b);if(this.B)this.B.onError(a)}; +g.k.MG=function(a){this.qoe&&this.qoe.MG(a)}; +g.k.sG=function(a){this.qoe&&this.qoe.sG(a)}; +g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&PZ(this.j.j)}; +g.k.Tu=aa(53);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)}; +g.k.eH=function(a,b,c){this.qoe&&this.qoe.eH(a,b,c)}; +g.k.fH=function(a){var b;(b=this.qoe)==null||b.fH(a)}; +g.k.Jy=function(a){this.qoe&&this.qoe.Jy(a)}; +g.k.Ey=function(a,b,c){this.qoe&&this.qoe.Ey(a,b,c)}; +g.k.Mo=aa(24);g.k.jF=function(){if(this.qoe)return this.qoe.jF()}; +g.k.uc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Mg){var a,b;return(b=(a=this.C.get(this.Mg))==null?void 0:a.uc())!=null?b:{}}return this.j?this.j.uc():{}}; +g.k.oF=function(){var a;return(a=this.qoe)==null?void 0:a.oF()}; +g.k.EH=function(a,b){var c;(c=this.qoe)==null||c.EH(a,b)}; +g.k.Ki=function(a){return this.j?this.j.Ki(a):function(){}}; +g.k.Ys=function(){this.j&&this.j.Ys()}; +g.k.getVideoData=function(){return this.provider.videoData}; +g.k.resume=function(){this.qoe&&this.qoe.resume()};g.z(YZ,g.O); +YZ.prototype.rJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!o3a(d))this.B.oa("ssap",{rlc:a}),mVa(this,a);else return}if(!this.j.has(a)){d=new WZ(b,this.W,this.ea);var e=Math.round(g.XI(this.B.provider)*1E3);d=new g.XZ(d,e);o3a(d)||this.B.oa("nqv",{vv:b.videoId});e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.ra=h}p3a(d);c===2&&(this.W.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.wc||"",e= +b.breakType||0,b=b.videoId||"",f=this.W.qa||"yt",g.JZ(c,g.XI(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.Ey(a,b.wc||"",b.breakType||0))}}; +YZ.prototype.hc=function(a){a=a||this.Mg;return this.j.get(a)||this.B};g.z(ZZ,g.O);g.k=ZZ.prototype; +g.k.lf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.RE("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.w(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.bc(b.array,d,b.j);a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()}; +g.k.Wo=function(a){a.length>1E4&&g.fx(new g.pt("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.La()){for(var b=g.w(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)}); +C3a(this.j,d);this.sync()}}; +g.k.RE=function(a,b){var c=(isNaN(this.C)?g.U(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.Bl().filter(function(d){return d.namespace===a&&d.endthis.j,f=g.U(c,8)&&g.U(c,16),h=this.ea.bj().isBackground()||c.isSuspended();h_(this,this.ob,f&&!h,e,"qoe.slowseek",function(){},"timeout"); +var l=isFinite(this.j);l=f&&l&&Swa(b,this.j);var m=!d||Math.abs(d-this.j)>10,n=this.W.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=d===0&&this.B&&[11,10].includes(this.B);h_(this,this.yb,l&&m&&!h&&(!n||!p),e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt"); +m=l&&nF(b.Eh(),this.j);var q=this.ea.ya;l=!q||!q.policy.Xa;var r=function(){b.seekTo(a.j+.001)}; +h_(this,this.Va,m&&l&&!h,e,"qoe.slowseek",r,"jiggle_cmt");l=function(){return EZ(a.ea)}; +h_(this,this.Ya,m&&!h,e,"qoe.slowseek",l,"new_elem");m=SF(c);n=c.isBuffering();var t=b.Eh(),u=mF(t,d),y=u>=0&&t.end(u)>d+5,A=m&&n&&y;p=this.ea.getVideoData();h_(this,this.Wa,d<.002&&this.j<.002&&f&&g.OC(this.W)&&g.RQ(p)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");h_(this,this.qa,p.Bk()&&f&&!h&&!p.Ba,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");h_(this,this.Ba,A&&!h,m&&!n,"qoe.longrebuffer",r,"jiggle_cmt");h_(this,this.Fa,A&&!h,m&&!n,"qoe.longrebuffer",l,"new_elem_nnr");if(q){var D=q.getCurrentTime(); +f=b.mx();f=Gwa(f,D);f=!q.isSeeking()&&d===f;h_(this,this.Tb,m&&n&&f&&!h,m&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={}; +r=mF(t,Math.max(d-3.5,0));A=r>=0&&d>t.end(r)-1.1;var F=r>=0&&r+1=0&&A&&F<11;f.close2edge=A;f.gapsize=F;f.buflen=t.length;this.B&&(f.seekSour=this.B);if(r=this.ea.Bf()){A=r.Cl();F=A!==cX(r,d*1E3).clipId;var H=g.AC(this.W.experiments,"html5_ssap_skip_seeking_offset_ms"),M=(aX(r,A)+H)/1E3;h_(this,this.Ma,F&&m&&n&&!h,m&&!n,"qoe.longrebuffer",function(){b.seekTo(M)},"ssap_clip_not_match")}h_(this,this.Ga,m&&n&&!h,m&&!n,"qoe.longrebuffer", +function(){},"timeout",f); +f=c.isSuspended();f=qZ(this.ea)&&!f;h_(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Dg("ad")},"ads_preroll_timeout"); +r=d-this.D<.5;var N;f=!((N=this.ea.Bf())==null||!N.Hl());F=(A=p.isAd()||f&&this.W.experiments.kb("html5_ssap_skip_slow_ad"))&&m&&!n&&r;N=function(){var Q=a.ea,Z=g.jQ(Q.videoData)&&Q.wb,fa=Q.Ad.Vc();(fa&&Q.videoData.isAd()&&fa.getVideoData().rd===Q.getVideoData().rd||!Q.videoData.Ef)&&!Z?Q.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+Q.videoData.videoId):dQ(Q.videoData,"html5_ssap_skip_slow_ad")&&Z&&Q.wb.Hl()&&(Q.Id(new FE("ssap.transitionfailure",{cpn:cX(Q.wb,Q.Wf()).clipId,pcpn:Q.wb.Cl(), +cmt:Q.Wf()})),ZUa(Q.wb))}; +h_(this,this.Jb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");r=A&&n&&nF(b.Eh(),d+5)&&r;h_(this,this.Ab,r&&!h,!r,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.U(c,64)&&!h;h_(this,this.Kb,N,e,"qoe.start15s",function(){},"timeout"); +N=!!q&&!q.Qa&&c.isOrWillBePlaying();h_(this,this.Ka,N,e,"qoe.start15s",l,"newElemMse");N=qF(t,0);r=g.U(c,16)||g.U(c,32);r=!h&&c.isOrWillBePlaying()&&n&&!r&&(g.U(c,64)||d===0)&&N>5;h_(this,this.fb,g.RQ(p)&&r,m&&!n,"qoe.longrebuffer",function(){a.ea.Iq()},"reset_media_source"); +h_(this,this.Xa,g.RQ(p)&&r,m&&!n,"qoe.longrebuffer",l,"reset_media_element");this.D===0&&(this.K=d);r=n&&this.j===0&&d>1&&d===this.K;h_(this,this.Ra,g.RQ(p)&&r,m&&!n,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump"); +h=c.isOrWillBePlaying()&&!h;y=wW(this.ea)-d<6&&!y&&this.ea.wu();h_(this,this.Z,p.Bk()&&h&&n&&y,m&&!n,"qoe.longrebuffer",function(){EZ(a.ea,!1,!0)},"handoff_end_long_buffer_reload"); +q=(q==null?void 0:U0a(q))||NaN;q=t.length>1||!isNaN(q)&&q-.1<=d;h_(this,this.Y,rQ(p)&&h&&n&&q,m&&!n,"qoe.longrebuffer",l,"gapless_slice_append_stuck");q=u>=0&&t.end(u)>=2;h=rQ(p)&&this.ea.G2&&q&&!p.Ba&&h&&(n||g.U(c,8)&&g.U(c,16));h_(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);h_(this,this.Ob,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.D=d;this.G.start()}}; +g_.prototype.Id=function(a,b,c){b=this.uc(b);b.wn=c;b.wdup=this.C[a]?"1":"0";this.ea.Id(new FE(a,b));this.C[a]=!0}; +g_.prototype.uc=function(a){a=Object.assign(this.ea.uc(!0),a.uc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Dc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a}; +e_.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1}; +e_.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.Zt)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1}; +e_.prototype.uc=function(){var a={},b=(0,g.Zt)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.z(V3a,g.O);g.k=V3a.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.hT()||this.seekTo(.01,{Zc:"seektimeline_setupMediaElement"})),i_(this)):k_(this)}; +g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&h4a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; +g.k.lx=function(){return this.Xa}; +g.k.Wf=function(){return this.getCurrentTime()-this.Dc()}; +g.k.Wn=function(){return this.j?this.j.Wn():Infinity}; +g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return c_(this.j,a)}; +g.k.gq=function(){return!!this.j&&this.j.gq()}; +g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.eI===void 0?!1:c.eI;var d=c.qU===void 0?0:c.qU;var e=c.xx===void 0?!1:c.xx;var f=c.kU===void 0?0:c.kU;var h=c.Zc===void 0?"":c.Zc;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.Fp===void 0?!1:c.Fp;var n=c.XA===void 0?!1:c.XA;c=c.RT===void 0?!1:c.RT;m&&(a+=this.Dc());gQ(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Xa=void 0);m=a=this.Vd())||!g.IQ(this.videoData); +y||(p={st:p,mst:this.Vd()},this.j&&this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Wn(),p.adft=O3a(this.j)),this.ea.oa("seeknotallowed",p));if(!y)return this.C&&(this.C=null,f4a(this)),He(this.getCurrentTime());y=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(a-this.B)<=y&&this.ra)return this.G;h&&(y=a,(this.W.Ac()||this.L("html5_log_seek_reasons"))&&this.ea.oa("seekreason",{reason:h,tgt:y}));l&&(this.Fa.B=l);this.ra&&k_(this);this.G||(this.G=new FF);a&&!isFinite(a)&& +Z3a(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.jl()>0&&HF(this.mediaElement)>0)||iQ(this.videoData)&&this.Xc()===this.Vd(!1)?0:isFinite(h)||!iQ(this.videoData)));h||(a=m_(this,a,e));a&&!isFinite(a)&&Z3a(this,!1);this.D=a;this.Va=f;this.B=a;this.Y=0;this.j&&(e=this.j,f=a,P3a(e,f,!1),Q3a(e,f));e=this.ea;f=a;h={eI:b,seekSource:l};e.Qc.D=f;c=e.mE;c.mediaTime=f;c.j=!0;h.eI&&$4a(e,h);h=f>e.videoData.endSeconds&& +f>e.videoData.limitedPlaybackDurationInSeconds;e.Cr&&h&&isFinite(f)&&N4a(e);fb.start&&N4a(this.ea);return this.G}; +g.k.Vd=function(a){if(!this.videoData.isLivePlayback)return p5a(this.ea);var b;return $Q(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),QLa(this.bf(a)*1E3)+a):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData)&&this.videoData.j?a?this.videoData.j.Ba:this.videoData.j.Z:iQ(this.videoData)&&this.videoData.Ka&&this.videoData.j?this.videoData.j.Vd()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j? +this.j.Wn():p5a(this.ea)+this.timestampOffset:this.mediaElement?ls()?QLa(this.mediaElement.II().getTime()):HF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.k.Xc=function(){if(g.jQ(this.videoData)){var a=this.ea;g.jQ(a.videoData);var b,c;return(c=(b=a.wb)==null?void 0:b.Xc())!=null?c:a.videoData.Xc()}if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData))return this.videoData.j?this.videoData.j.Fa:NaN;b=this.videoData?this.videoData.Xc()+this.timestampOffset:this.timestampOffset;return $Q(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(), +a=this.bf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b}; +g.k.CP=function(){this.G||this.seekTo(this.D,{Zc:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.k.PF=function(){return this.ra&&!isFinite(this.B)}; +g.k.xa=function(){$3a(this,null);this.Fa.dispose();g.O.prototype.xa.call(this)}; +g.k.uc=function(){var a={};this.ya&&Object.assign(a,this.ya.uc());this.mediaElement&&Object.assign(a,this.mediaElement.uc());return a}; +g.k.tS=function(a){this.timestampOffset=a}; +g.k.getStreamTimeOffset=function(){return iQ(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; +g.k.Dc=function(){return this.timestampOffset}; +g.k.bf=function(a){return this.L("html5_check_manifest_before_ingestion_time")?this.videoData&&this.videoData.j?this.videoData.j.bf(a-this.timestampOffset):NaN:this.videoData.j.bf(a-this.timestampOffset)}; +g.k.ix=function(){if(!this.mediaElement)return 0;if(JQ(this.videoData)){var a=this.mediaElement,b=a.Eh();a=(pF(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Xc();b=this.Vd()-this.Xc();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.ix()}; +g.k.oy=function(a){this.K&&(this.K.j=a)}; +g.k.dC=function(a,b){this.ea.oa("requestUtcSeek",{time:a});gQ(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=a);var c;(c=this.ya)==null||c.dC(a);b&&(this.Ba=b)}; +g.k.Ku=function(a){gQ(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Xa=void 0);if(this.Ba)this.ea.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Ba}),this.ea.seekTo(this.Ba,{Zc:"utcSeekingFallback_streamTime"}),this.Ba=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.bf(b)-a,b-=a,this.ea.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{Zc:"utcSeekingFallback_estimate"}))}}; +g.k.sE=function(){this.Ba=0}; +g.k.L=function(a){return this.W&&this.W.L(a)};n_.prototype.Bu=function(){return this.started}; +n_.prototype.start=function(){this.started=!0}; +n_.prototype.reset=function(){this.j=this.started=!1};var q4a=!1;g.z(g.r_,g.Fx);g.k=g.r_.prototype;g.k.xa=function(){this.logger.debug("dispose");g.Nr(this.VL);WTa(this.If);this.visibility.unsubscribe("visibilitystatechange",this.If);E4a(this);v_(this);g.Zo.jk(this.Cy);this.Rj();this.Jf=null;g.fb(this.videoData);g.fb(this.yl);g.fb(this.vO);g.fb(this.wO);g.gb(this.Z$);this.Cr=null;g.Fx.prototype.xa.call(this)}; +g.k.Ey=function(a,b,c,d,e){if(this.W.L("html5_log_ad_playback_docid")){var f=this.hc();if(f.qoe){f=f.qoe;var h=this.W.qa||"yt";g.JZ(f,g.XI(f.provider),"ad_playback",[a,b,c,e,h])}}else this.hc().Ey(a,b,c);this.L("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})}; +g.k.NP=function(){var a;return(a=this.ya)==null?void 0:a.NP()}; +g.k.QP=function(){var a;return(a=this.ya)==null?void 0:a.QP()}; +g.k.hA=function(){var a;return(a=this.ya)==null?void 0:a.hA()}; +g.k.OP=function(){var a;return(a=this.ya)==null?void 0:a.OP()}; +g.k.dj=function(){return this.videoData.dj()}; +g.k.rA=function(){return this.hB}; +g.k.rJ=function(){!this.gB||this.gB.La();this.gB=new g.XZ(new WZ(this.videoData,this.W,this));this.hB=new YZ(this.W,this,this.gB)}; +g.k.getVideoData=function(){return this.videoData}; +g.k.U=function(){return this.W}; +g.k.IP=function(){return this.Ok.IP(this.Jf)}; +g.k.hc=function(a){if(a)a:{for(var b=this.hB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.hB.hc();return a}; +g.k.bj=function(){return this.visibility}; +g.k.Ke=function(){return this.mediaElement}; +g.k.OO=function(){if(this.videoData.isLoaded()){var a=this.yl;g.AC(a.Da.experiments,"html5_player_min_build_cl")>0&&g.AC(a.Da.experiments,"html5_player_min_build_cl")>657810031&&X1a(a,"oldplayer");J4a(this)}else this.videoData.zj||this.videoData.wp?this.xu&&g.OC(this.W)&&this.videoData.isLivePlayback||(this.videoData.zj?tLa(this.videoData):(a=this.hc(),a.qoe&&(a=a.qoe,MZ(a,"protected"),a.provider.videoData.G?a.e2():a.provider.videoData.subscribe("dataloaded",a.e2,a)),rLa(this.videoData))):!this.videoData.loading&& +this.r7&&G4a(this)}; +g.k.FH=function(a){this.wb=a;this.ya&&this.ya.FH(a)}; +g.k.qA=aa(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.isBackground=function(){return this.visibility.isBackground()}; +g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.vM(!0),E4a(this),g.Zo.jk(this.Cy))}; +g.k.kp=function(){q3a(this.hc())}; +g.k.Lf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e}); +var h,l;g.zc(gbb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+KA());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.EU[h]||"",wP:h,Qn:f||"",fM:d,cA:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;u_(this,"dataloaderror");this.Ec(NF(this.playerState,128,b));g.Zo.jk(this.Cy);v_(this);this.Vo()}; +g.k.Dg=function(a){this.zq=this.zq.filter(function(b){return a!==b}); +this.logger.debug(function(){return"set preroll ready for "+a}); +g.jQ(this.videoData)&&!this.oo()&&this.Lb.wg("pl_pr");this.Es.Bu()&&H4a(this)}; +g.k.oo=function(){var a;(a=!!this.zq.length)||(a=this.Bh.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a}; +g.k.gq=function(){return this.Qc.gq()}; +g.k.isPlaying=function(){return this.playerState.isPlaying()}; +g.k.MF=function(){return this.playerState.MF()&&this.videoData.Xl}; +g.k.getPlayerState=function(){return this.playerState}; +g.k.getPlayerType=function(){return this.playerType}; +g.k.getPreferredQuality=function(){if(this.Jf){var a=this.Jf;a=a.videoData.WB.compose(a.videoData.RZ);a=uL(a)}else a="auto";return a}; +g.k.lF=aa(19);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Ys(this.KC),this.mediaElement=a,this.mediaElement.ea=this,b5a(this),this.Qc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Rj();if(!this.playerState.isError()){var b=PF(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=OF(b,1));a.isView()&&(b=PF(b,64));this.Ec(b)}this.mediaElement= +a;this.mediaElement.ea=this;gP(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);b5a(this);this.Qc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.yl.FJ()&&Owa(this.mediaElement)}}; +g.k.Rj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Qc.D=c);this.Qc.setMediaElement(null);!a&&BF(this)?W4a(this):BW(this);this.ya&&(tZ(this.ya),z_(this,b));this.Px.stop();if(this.mediaElement&&(!this.Es.Bu()||this.playerState.isError()||g.U(this.playerState,2)||this.Ec(OF(this.playerState,512)),this.mediaElement)){g.Ys(this.KC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&& +this.Lb.Dv("mesv_s"),this.mediaElement.stopVideo(),B_(this);this.mediaElement=this.mediaElement.ea=null}}}; +g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.J(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.U(b.playerState,128))return m.return();if(b.yl.NK())return b.publish("signatureexpired"),m.return();b.mediaElement&&gX(b.hc());M4a(b);(g.U(b.playerState,64)||a)&&b.Ec(OF(b.playerState,8));return b.Es.j&&b.mediaElement?b.Jf||!b.QG?m.Ha(2):g.G(m,b.QG,3):m.return()}if(m.j!= +2&&g.U(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.nO(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.dj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.fx(Error("selectableFormats")),b.Lf(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.ji()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(t_(b));if(j_(b))n=b.Qc,fQ(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.gq()&&n.ea.seekTo(Infinity, +{Zc:"seektimeline_peggedToLive",seekSource:34}):g.jQ(n.videoData)&&n.getCurrentTime()=0?a:this.getCurrentTime()}; +g.k.bf=function(){var a;return((a=this.videoData.j)==null?0:a.bf)?this.videoData.j.bf(this.getCurrentTime()-this.Dc()):this.mediaElement&&(a=this.mediaElement.II())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN}; +g.k.getDuration=function(a){return g.jQ(this.videoData)&&this.wb?this.L("html5_ssap_enable_duration_by_cpn")&&a?cVa(this.wb,a):dX(this.wb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Dc():this.Vd()?this.Vd():0}; +g.k.rF=function(){var a=new v3a;this.ya?(qJa(this.W.schedule,a),M0a(this.ya,a)):this.mediaElement&&(a.Kw=IF(this.mediaElement));a.Vs=this.Vs;a.Fv=this.Fv;a.C=this.isAtLiveHead()&&this.isPlaying()?A4a(this):NaN;return a}; +g.k.hH=function(a,b){this.Fv+=a;this.Vs+=b}; +g.k.ix=function(){return this.mediaElement?g.IQ(this.videoData)?1:JQ(this.videoData)?this.isAtLiveHead()||this.gq()?1:this.Qc.ix():this.mediaElement.ix():0}; +g.k.uc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.hc().uc());this.mediaElement&&(Object.assign(b,this.mediaElement.uc()),Object.assign(b,this.vF()));this.ya&&Object.assign(b,this.ya.uc());this.Ae&&(b.drm=JSON.stringify(this.Ae.uc()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.eh));this.oo()&&(b.prerolls=this.zq.join(","));this.videoData.Zd&&(b.ismb=this.videoData.Zd);this.videoData.latencyClass!=="UNKNOWN"&& +(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.Ad.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& +GN(this.videoData.j)&&(b.segduration=GN(this.videoData.j)),a=this.Qc,b.lat=a.K?HNa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Hj.toFixed(3);if(a=g.JT(this))b.optimal_format=a.video.qualityLabel;b.user_qual=aL();b.release_version="youtube.player.web_20240730_01_RC00";g.jQ(this.videoData)&&this.wb&&(b.ssap=bX(this.wb))}b.debug_videoId=this.videoData.videoId;return b}; +g.k.addCueRange=function(a){this.Bz([a])}; +g.k.removeCueRange=function(a){this.Bh.Wo([a])}; +g.k.RE=function(a,b){return this.Bh.RE(a,b)}; +g.k.Bz=function(a,b){this.Bh.lf(a,b)}; +g.k.jH=function(a){this.Bh.Wo(a)}; +g.k.Bl=function(){return this.Bh.Bl()||[]}; +g.k.ji=function(){return this.visibility.ji()}; +g.k.xv=function(){this.mediaElement&&this.mediaElement.xv()}; +g.k.Gca=function(){u_(this)}; +g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.k.HL=function(a){var b=a.target.Zh();if(this.mediaElement&&this.mediaElement.Zh()&&this.mediaElement.Zh()===b){m5a(this,a.type);switch(a.type){case "error":var c=KF(this.mediaElement)||"",d=this.mediaElement.Xf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),EZ(this,!0)):t_(this);return}if(this.mediaElement.hasError()&&(T1a(this.yl,c,{msg:d})||g.jQ(this.videoData)&&this.wb&&(d=this.playerState.eh,this.wb.handleError(c,d==null?void 0:d.cA))))return; +if(this.isBackground()&&this.mediaElement.Xh()===4){this.Vo();w_(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||c>0)&&c!==1&&this.Xo(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());D3a(this.Bh);this.hc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":o5a(this);this.publish("onLoadedMetadata");FTa(this);c=this.bf();this.videoData.NC&&(this.videoData.NC=c);break; +case "loadstart":FTa(this);break;case "progress":case "suspend":this.Tc();this.publish("onLoadProgress",this,this.ix());break;case "playing":this.Lb.Dv("plev");this.rT&&!j_(this)&&(this.rT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Zc:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.jl()===0;if(c&&(!this.oL||d))return;this.oL=this.oL||!!this.mediaElement.getCurrentTime(); +c5a(this);this.Tc();if(!this.mediaElement||this.mediaElement.Zh()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.mx().length>0&&this.mediaElement.Eh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.ya)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.jl()>2||!this.mediaElement.isSeeking()&&nF(this.mediaElement.Eh(),this.mediaElement.getCurrentTime()))&& +(c=this.mediaElement.uc(),c.bh=IF(this.mediaElement).toFixed(3),this.oa("uwe",c));g.jQ(this.videoData)&&this.wb&&YUa(this.wb,this.mediaElement.getCurrentTime());break;case "resize":o5a(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.bX&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&this.getCurrentTime()===0&&g.Rt){w_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Zh()=== +b){j4a(this.Qc,a,this.wb||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.mE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.jQ(this.videoData)&&this.wb?dX(this.wb):void 0;if(!g.U(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.U(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.U(b, +4)&&!$Z(d,l);if(m||f&&l)e.bK()>0&&e.Zh()&&(h=14);else switch(a.type){case "error":KF(e)&&(h|=128);break;case "pause":g.U(b,256)?(h^=256)||(h=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(h=4,g.U(b,1)&&g.U(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,MF(d,e)):$Z(d,e.getCurrentTime())&&(h&=-2);g.U(b,1)&&MF(d,e)&&(h|=1);break;case "seeking":h|=16;g.U(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;MF(d,e);break;case "waiting":g.U(b,2)||(h|=1);MF(d,e);break;case "timeupdate":l=g.U(b,16),f=g.U(b, +4),(g.U(b,8)||l)&&!f&&$Z(d,e.getCurrentTime())&&(h=8),MF(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=KF(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.uc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.Xf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.EU[f]||"",wP:f,fM:EE(m),cA:l,cpn:b.eh?b.eh.cpn:""}):h=null,h&&(h.cpn=c));b=NF(b,d,h)}!g.U(this.playerState,1)&&g.U(b,1)&&l5a(this,"evt"+a.type);this.Ec(b)}}}; +g.k.eaa=function(a){a=a.j.availability==="available";a!==this.HF&&(this.HF=a,this.publish("airplayavailabilitychange"))}; +g.k.faa=function(){var a=(0,g.Zt)(),b=this.mediaElement.ji();this.oa("airplay",{ia:b});!b&&!isNaN(this.QK)&&a-this.QK<2E3||(this.QK=a,b!==this.ji()&&(a=this.visibility,a.j!==b&&(a.j=b,a.If()),this.oa("airplay",{rbld:b}),FZ(this)),this.publish("airplayactivechange"))}; +g.k.wF=function(a){if(this.ya){var b=this.ya,c=b.C,d=b.getCurrentTime(),e=Date.now()-c.Y;c.Y=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.N)&&c.B!==3&&IXa(c.ya,d,c.N,c.G);c.policy.G?c.C=NaN:c.D=NaN;bY(c,4,c.B===3?"adfps":"adf");tZ(b)}}; +g.k.Tc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){c4a(this.Qc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.U(this.playerState,4)&&g.IQ(this.videoData)||gQ(this.videoData)&&g.U(this.playerState,32)||O0a(this.ya,c);c>5&&(this.Qc.D=c);var d=g.zt();d?g.Zo.jk(this.Cy):g.Mr(this.Cy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||$Q(this.videoData))&&!g.U(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.U(b.playerState, +128)){b.W.Ac()&&m5a(b,"pfx");var l=b.getCurrentTime(),m=IF(b.mediaElement),n=g.U(b.playerState,8),p=$Z(b.mE,l),q=Uwa(b.mE,l,(0,g.Zt)(),m);n&&p?b.Ec(PF(b.playerState,1)):n&&q?(n=b.getDuration(),p=fQ(b.videoData),n&&Math.abs(n-l)<1.1?(b.oa("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Wt()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Zc:"videoplayer_loop",seekSource:37})):zW(b)):(b.playerState.isBuffering()||l5a(b,"progress_fix"),b.Ec(OF(b.playerState,1)))):(n&&!p&&!q&&l>0&&(n= +(Date.now()-b.YF)/1E3,p=b.getDuration(),l>p-1&&b.oa("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&IF(b.mediaElement)>5&&b.Ec(PF(b.playerState,1)));b.Tc()}}; +this.mediaElement.mx().length===0?this.Cy=d?g.Zo.Vi(f,100):g.Kr(f,100):this.Cy=d?g.Zo.Vi(f,500):g.Kr(f,500)}this.videoData.Vk=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.wb)==null||iVa(h)}!a&&this.isPlaying()&&f5a(this);k2a(this.Ok,this.Jf,this.Ke(),this.isBackground())&&p_(this);this.publish("progresssync",this,a);e&&$Q(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; +g.k.s9=function(){this.Lf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.k.jF=function(){return this.hc().jF()}; +g.k.JP=function(){return this.ya?this.ya.JP():CO(this.W.schedule,!0)}; +g.k.Ec=function(a){if(g.RF(this.playerState,a))this.W.Ac()&&a.seekSource!==this.playerState.seekSource&&this.oa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()}); +var b=new g.Oy(a,this.playerState);this.playerState=a;n5a(this);var c=!this.YL.length;this.YL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.xB.state===8&&!d;g.Qy(b,1)&&d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.ya&&(n0a(this.ya),this.mediaElement&&IF(this.mediaElement)>=5&&i2a(this.Ok,this.Jf)&&p_(this));(d=g.AC(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.hO.start(d):this.hO.stop();(Py(b,8)<0||g.Qy(b, +1024))&&this.Px.stop();!g.Qy(b,8)||this.videoData.Ba||g.U(b.state,1024)||this.Px.start();g.U(b.state,8)&&Py(b,16)<0&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&JQ(this.videoData)&&(this.Xo(this.getCurrentTime()),this.Tc(!0));g.Qy(b,2)&&(this.vM(!0),this.W.Ac()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gQ(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Fa,cminst:""+(this.videoData.j.Xc()+this.Dc()),maxst:""+this.videoData.j.Z,hts:""+this.videoData.j.Ba, +cmaxst:""+(this.videoData.j.Vd()+this.Dc())},this.oa("sabrSeekableBoundaries",d)));g.Qy(b,128)&&this.Vo();this.videoData.j&&this.videoData.isLivePlayback&&!this.y3&&(Py(b,8)<0?uIa(this.videoData.j):g.Qy(b,8)&&this.videoData.j.resume());a4a(this.Qc,b);kVa(this.hc(),b);if(c&&!this.La())try{for(var e=g.w(this.YL),f=e.next();!f.done;f=e.next()){var h=f.value;E3a(this.Bh,h);this.publish("statechange",h)}}finally{this.YL.length=0}}}; +g.k.xG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")}; +g.k.mS=function(){this.Lb.tick("qoes")}; +g.k.CP=function(){this.Qc.CP()}; +g.k.zL=function(a,b,c,d){a:{var e=this.yl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=GE(b);a==="drm.keyerror"&&this.Ae&&this.Ae.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())Z1a(e,a);else{if(e.ea.Lf(a,b,d,c),Q1a(e,{detail:c}))break a}else e.Id(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,k5a(e.ea))}}; +g.k.Waa=function(){var a=this,b=g.AC(this.W.experiments,"html5_license_constraint_delay"),c=ws();b&&c?(b=new g.fp(function(){x_(a);u_(a)},b),g.P(this,b),b.start()):(x_(this),u_(this))}; +g.k.AG=function(a){this.publish("heartbeatparams",a)}; +g.k.tq=function(a){this.oa("keystatuses",t1a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=u1a(b,c);d=zZ(a)?v1a(a,d):a.D.includes(d)}else{a:{b=u1a(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if((f=this.Ae)==null?0:WN(f.j))if((c=this.Ae)== +null)c=0;else{b=f=void 0;e=g.w(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=w1a(h,"SD")),b||(b=w1a(h,"AUDIO"));c.vj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});Z1a(this.yl);return}}else{this.videoData.PD||(this.videoData.PD=!0,this.oa("drm",{dphdr:1}),EZ(this,!0));return}var l;if((l=this.Ae)==null?0:WN(l.j))return}else if(l=a.Z&&d,c&&!l){Z1a(this.yl);return}d||v1a(a,"AUDIO")&&v1a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +a=t1a(a),this.mT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Lf("drm.keyerror",2,void 0,"info."+a)):(this.mT=!0,this.Id(new FE("qoe.restart",Object.assign({},{retrydrm:1},a))),p_(this),k5a(this)))}; +g.k.Yaa=function(){if(!this.videoData.Ba&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.jl()>0&&IF(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Ec(OF(this.playerState,1)),l5a(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");n5a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!qQ(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].me)||this.Ae),mfmtinfo:!this.videoData.B,prerolls:this.oo()?this.zq.join(","): +"0"};if(this.Ae){b=this.Ae;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=t1a(b.B.values().next().value),b=EE(b);a.drmp=b}var d;Object.assign(a,((d=this.ya)==null?void 0:d.uc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.uc())||{});this.hc().Id("qoe.start15s",EE(a));this.publish("loadsofttimeout")}}; +g.k.Xo=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,u_(this))}; +g.k.vM=function(a){var b=this;a=a===void 0?!1:a;if(!this.VI)if(sA("att_s","player_att")||uA("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(!(d=a)){l.Ha(2);break}return g.G(l,g.qua(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.va(l,4);e=t3a(b.hc());if(!e)throw Error();f={};return g.G(l,g.pua((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.VI)throw Error(); +if(!h.challenge)throw g.fx(Error("Not sending attestation ping; no attestation challenge string")),Error();b.VI=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));uA("att_f", +void 0,"player_att");g.wa(l,0);break;case 4:g.xa(l),uA("att_e",void 0,"player_att"),g.ua(l)}})})().then(function(){}); +else{var c=new g.TBa(this.videoData);if("c1a"in c.yr&&!g.WK.isInitialized()){uA("att_wb",void 0,"player_att");this.uO===2&&Math.random()<.01&&g.fx(Error("Botguard not available after 2 attempts"));if(a)return;if(this.uO<5){g.gp(this.wO);this.uO++;return}}(c=g.UBa(c))?(uA("att_f",void 0,"player_att"),s3a(this.hc(),c),this.VI=!0):uA("att_e",void 0,"player_att")}}; +g.k.Vd=function(a){return this.Qc.Vd(a===void 0?!1:a)}; +g.k.Xc=function(){return this.Qc.Xc()}; +g.k.Dc=function(){return this.Qc?this.Qc.Dc():0}; +g.k.getStreamTimeOffset=function(){return this.Qc?this.Qc.getStreamTimeOffset():0}; +g.k.du=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Dc():this.getStreamTimeOffset());return a}; +g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&d2a(this.Ok,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,p_(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)}; +g.k.getPlaybackRate=function(){return this.playbackRate}; +g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,a==="auto"&&this.mediaElement)){var b=F4a(this);b&&b.videoHeight>0&&(a=QE(b.videoWidth,b.videoHeight))}return a}; +g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())}; +g.k.Ys=function(){this.hc().Ys()}; +g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.hc();c.j?(c=SZ(c.j,"engage"),c.qa=a,c.send(b)):b&&b()}; +g.k.Ki=function(a){return this.hc().Ki(a)}; +g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return fQ(this.videoData)&&(this.ZY||b)?this.Qc.isAtLiveHead(a):!1}; +g.k.Kr=function(){var a=this.Vd(),b=this.getCurrentTime(),c;(c=!fQ(this.videoData))||(c=this.Qc,c=!(c.j&&c.j.C));return c||this.gq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)}; +g.k.Mo=aa(23);g.k.Tu=aa(52);g.k.Uo=function(a){this.hc().Uo(a)}; +g.k.Jy=function(a){this.hc().Jy(a)}; +g.k.Oj=aa(27);g.k.jj=aa(31);g.k.fH=function(a){this.hc().fH(a)}; +g.k.vF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.k.setLoop=function(a){this.loop=a;this.mediaElement&&gP(this.W)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Xa=!0:o0a(this.ya))}; +g.k.Wt=function(){return this.mediaElement&&gP(this.W)?this.mediaElement.Wt():this.loop}; +g.k.tS=function(a){this.oa("timestamp",{o:a.toString()});this.Qc.tS(a)}; +g.k.Md=function(a){this.Lb.tick(a)}; +g.k.wg=function(a){return this.Lb.wg(a)}; +g.k.Dv=function(a){this.Lb.Dv(a)}; +g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.hc().oa(a,b,c)}; +g.k.Fy=function(a,b,c){c=c===void 0?!1:c;this.hc().oa(a,b,c)}; +g.k.Id=function(a){this.hc().Id(a.errorCode,EE(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.ya?SYa(this.ya.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.ya?SYa(this.ya.audioTrack):{},(b=this.Qa)==null?void 0:(c=b.j)==null?void 0:c.ZJ()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Qa)==null?void 0:(e=d.B)==null?void 0:e.ZJ()))}}; +g.k.eH=function(a,b,c){this.hc().eH(a,b,c)}; +g.k.oP=function(a){this.videoData.O2=!0;this.Id(new FE("sabr.fallback",a));EZ(this,!0)}; +g.k.getPlayerSize=function(){return this.MH.getPlayerSize()}; +g.k.ai=function(){return this.MH.ai()}; +g.k.Wh=function(){return this.Lb}; +g.k.Nr=function(){return this.Ad.Nr()}; +g.k.getVolume=function(){return this.Ad.getVolume()}; +g.k.IF=function(){return this.Ad.IF()}; +g.k.isMuted=function(){return this.Ad.isMuted()}; +g.k.gA=function(){return this.Ad.gA()}; +g.k.L=function(a){return this.W.L(a)}; +g.k.Ps=function(){var a=this.getCurrentTime(),b=a-this.Dc();var c=this.mediaElement?pF(this.mediaElement.Eh()):0;c=Math.floor(Math.max(c-b,0))+100;var d=!this.L("html5_ssdai_disable_seek_to_skip"),e=this.L("html5_enable_sabr_ssdai"),f;if(d&&((f=this.ya)==null?0:f.vH(b,this.Vd())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var h;return((h=this.ya)==null?0:h.Ps(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),e&&this.ya.seek(b+c,{seekSource:89,Zc:"videoplayer_skipServerStitchedAd"}), +l4a(this.Qc,a),!0):!1}; +g.k.Ac=function(){return this.W.Ac()}; +g.k.Yt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.lw||this.Ad.zR(this.videoData.videoId);this.Ad.wU();return this.W.Uf||""}; +g.k.eK=function(){if(this.videoData.videoId)return this.videoData.g4}; +g.k.nf=function(){return this.videoData.videoId}; +g.k.tA=function(){return this.Ad.uy}; +g.k.wu=function(){return this.Ad.wu()}; +g.k.dC=function(a,b){this.Qc.dC(a,b)}; +g.k.sE=function(){this.Qc.sE()}; +g.k.Vm=function(a){this.Ad.Vm(a)}; +g.k.pS=function(a,b){this.Ad.pS(a,b)}; +g.k.aT=function(a,b){var c;(c=this.ya)==null||c.aT(a,b)}; +g.k.GO=function(){var a=this.Lr();return!!a&&a.GO()}; +g.k.Bf=function(){return this.wb}; +g.k.EH=function(a,b){this.hc().EH(a,b)}; +g.k.oF=function(){return this.hc().oF()}; +g.k.vA=function(){return this.videoData.PY}; +g.k.tC=function(a){this.videoData.PY=a}; +g.k.Do=function(){return this.Ad.Do()}; +g.k.OF=function(){return this.Ad.OF(this)}; +g.k.CH=function(a){this.videoData.g4=a};g.z(g.C_,g.O);g.C_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Ta(a),f=y2[e];if(f){try{f.dispose()}catch(l){g.ex(l)}y2[e]=null}var h=new g.C_(a,b,c,d);h.addOnDisposeCallback(function(){y2[e]=null;h.r3&&h.r3()}); +return y2[e]=h}catch(l){throw g.ex(l),(l&&l instanceof Error?l:Error(String(l))).stack;}}; +g.k=g.C_.prototype;g.k.bj=function(){return this.visibility}; +g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)}; +g.k.Im=function(){this.NQ||(this.NQ=g.IA(fS(),HBa()));return this.NQ}; +g.k.Rj=function(){if(this.mediaElement){this.MC&&(this.events.Oc(this.MC),this.MC=null);g.Ys(this.Lu);this.xb&&this.xb.Rj(!0);this.template.Rj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.lM()}catch(a){g.fx(a)}this.mediaElement=null}}; +g.k.Vc=function(){return this.xb}; +g.k.Hy=function(){var a=this;this.xb!==this.tb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.xb)==null?void 0:b.getPlayerType())+", vid "+((c=a.xb)==null?void 0:c.getVideoData().videoId)}),AW(this,this.tb))}; +g.k.Wz=function(a,b,c){var d=this,e=this.Lb;a===2&&(e=new dOa(this.W));return new g.r_(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)}; +g.k.naa=function(){I_(this)||(this.logger.debug("application playback ready"),this.Mq(5))}; +g.k.wba=function(a){if(!I_(this)){this.logger.debug("playback ready");d6a(this);var b=a.getPlayerState();a.MF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}}; +g.k.canPlayType=function(a){return JE(a)}; +g.k.U=function(){return this.W}; +g.k.getVideoData=function(){return this.xb.getVideoData()}; +g.k.tF=aa(17);g.k.Od=function(){return this.tb.getVideoData()}; +g.k.getVideoLoadedFraction=function(a){a=g.qR(this,a);return a?g.YQ(a.getVideoData())?1:(a=a.Ke())?a.ix():0:0}; +g.k.qb=function(){return this.template}; +g.k.Bb=function(){return this.Rd}; +g.k.Wh=function(){return this.Lb}; +g.k.rC=function(a){var b=g.qR(this,1);b&&zW(b,a)}; +g.k.Nr=function(){var a=this.Rd.Nr();this.Ua.publish("videoStatsPingCreated",a);return a}; +g.k.getVolume=function(){return Math.round(this.Ua.getVolume())}; +g.k.IF=function(){return this.Ua.isFullscreen()}; +g.k.isMuted=function(){return this.Ua.isMuted()}; +g.k.gA=function(){if(this.xb===this.tb&&this.Db)return this.Db.postId}; +g.k.oda=function(){var a=this;this.L("use_rta_only_for_player")||(g.OC(this.W)?g.kP(this.W,g.VQ(this.getVideoData())).then(function(b){gS(fS(),b);gMa(a.getVideoData(),a.W,a.Im())}):gMa(this.getVideoData(),this.W,this.Im()))}; +g.k.GP=function(a){var b=this;return g.J(function(c){return b.PB?c.return(b.PB.GP(a)):c.return(Promise.reject("web po not available"))})}; +g.k.gI=function(a){this.Ua.publish("d6de4videobindingchange",a)}; +g.k.wU=function(){this.PB&&this.PB.wU()}; +g.k.zR=function(a){return this.PB?this.PB.zR(a):""}; +g.k.BT=function(a){this.PB=a}; +g.k.bH=function(a){a===1&&(this.Lb.tick("vr"),d5a(this.xb),eOa(this.Lb,this.xb.getVideoData(),c6a(this)),YOa(this.Rd));var b=this.W;(hP(b)&&b.N||g.PO(b))&&(this.Ef()||this.Ua.Ai("onAdStateChange",a))}; +g.k.setLoopVideo=function(a){this.xb===this.tb&&this.xb.Wt()!==a&&(this.xb.setLoop(a),this.Ua.ib("onLoopChange",a))}; +g.k.getLoopVideo=function(){return this.xb.Wt()}; +g.k.setLoopRange=function(a){var b=!1;!!this.Db!==!!a?b=!0:this.Db&&a&&(b=this.Db.startTimeMs!==a.startTimeMs||this.Db.endTimeMs!==a.endTimeMs||this.Db.postId!==a.postId||this.Db.type!==a.type);if(b){if(this.xb&&rQ(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.qR(this))==null||c.oa("slr",{et:b})}this.tb.Bh.rf("applooprange");if(a)c=new g.qD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.tb.addCueRange(c);else{this.Od().clipConfig=void 0;var d,e;((d= +this.Db)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Db)==null?void 0:e.loopCount))||(c={loopCount:String(this.Db.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Ht("repeatChapterLoopEvent",c))}this.Db=a;this.Ua.ib("onLoopRangeChange",a||void 0);this.xb===this.tb&&(this.uM(),this.xb.kp())}}; +g.k.getLoopRange=function(){return this.Db}; +g.k.uM=function(){var a="";this.Db?this.xb!==this.tb?a="pnea":P5a(this,this.tb.getCurrentTime())&&(this.Db.loopCount=0,a="ilr"):a="nlr";if(this.xb&&rQ(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.qR(this))==null||d.oa("slrre",{rej:a,ct:this.tb.getCurrentTime(),lst:(b=this.Db)==null?void 0:b.startTimeMs,let:(c=this.Db)==null?void 0:c.endTimeMs})}else{var e;(e=g.qR(this))==null||e.oa("slrre",{})}a||T5a(this)}; +g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=v5a(this,a),this.tb.getPlaybackRate()!==a&&(this.tb.setPlaybackRate(a),b&&!this.W.D&&g.bt("yt-player-playback-rate",a),this.Ua.Ai("onPlaybackRateChange",a)))}; +g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return BR(this.Rd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.jQ(this.getVideoData());a=d||e?g.qR(this):g.qR(this,a);if(!a)return 0;if(e&&this.wb)return b=this.wb,a=a.getCurrentTime(),c?c=eX(b,c):(c=bVa(b,a),c=a-c/1E3),c;if(b){if(d&&this.ue&&(c=this.ue.Wa/1E3,c!==0))return c;c=H_(this,a);return Q_(this,c.getCurrentTime(),c)}d&&this.ue?(c=this.ue,a=a.getCurrentTime(),c=(c=FUa(c, +a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c}; +g.k.pA=function(){var a=g.qR(this);if(!a)return 0;a=H_(this,a);return Q_(this,a.pA(),a)}; +g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.jQ(c);var f=d||e?g.qR(this):g.qR(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.wb)return this.L("html5_ssap_enable_duration_by_cpn")?b=cVa(this.wb,this.wb.Cl()):(b=this.wb,d= +b.ea.getCurrentTime()*1E3,b=(b=$W(b,d))?(b.Yh()-b.Ze())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=G_(this,f),Q_(this,f.getDuration(),f);d&&this.ue?(a=this.ue,f=f.getCurrentTime(),f=(f=GUa(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f}; +g.k.bf=function(a){var b=g.qR(this,a);return b?this.Ef(b)?(b=G_(this,b),b.bf()-b.getCurrentTime()+this.getCurrentTime(a)):b.bf():0}; +g.k.addPlayerResponseForAssociation=function(a){this.wb&&this.wb.addPlayerResponseForAssociation(a)}; +g.k.finishSegmentByCpn=function(a,b){return this.wb?this.wb.finishSegmentByCpn(a,b):[]}; +g.k.lP=function(){this.template.lP();var a=this.Ua;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Dna(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Tba)}; +g.k.getDebugText=function(a){var b=this.tb.uc(a);if(this.xb&&this.xb!==this.tb){for(var c=this.xb.uc(a),d=g.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=$d(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.de("video-ads");f?(j6a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.de("videoAdUiSkipContainer"),l=g.de("ytp-ad-skip-button-container"),m=g.de("ytp-skip-ad-button"),n=h||l||m;n?(j6a(n,f),f.ima=h?1: +0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.sF("opacity"),c=this.mediaElement.Zt().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.sF("display"));a&&((a=(0,g.NZ)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.getPlaybackQuality(1);b.debug_date= +(new Date).toString();b.origin=window.origin;b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; +g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240730_01_RC00"},b=this.getPlayerStateObject().eh;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a}; +g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(I_(this))return 3;var b;if(a&&((b=this.ue)==null?0:b.Hl(this.getCurrentTime())))return 2;var c;return g.jQ(this.getVideoData())&&((c=this.wb)==null?0:c.Hl())?2:g.qR(this).getPlayerType()}; +g.k.PA=function(){return g.jQ(this.getVideoData())&&this.wb?this.wb.PA():!1}; +g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?BR(this.Rd).Ee:g.qR(this,a).getPlayerState()}; +g.k.getAppState=function(){return this.appState}; +g.k.HL=function(a){switch(a.type){case "loadedmetadata":this.rM.start();a=g.w(this.jC);for(var b=a.next();!b.done;b=a.next())b=b.value,a6a(this,b.id,b.ofa,b.nfa,void 0,!1);this.jC=[];break;case "loadstart":this.Lb.Dv("gv");break;case "progress":case "timeupdate":pF(a.target.Eh())>=2&&this.Lb.Dv("l2s");break;case "playing":g.eP&&this.rM.start();if(g.OC(this.W))a=!1;else{b=g.ER(this.Bb());a=this.mediaElement.sF("display")==="none"||this.mediaElement.getSize().area()===0;var c=tX(this.template),d=this.xb.getVideoData(), +e=g.hz(this.W);d=sQ(d);b=!c||b||e||d||this.W.ob;a=a&&!b}a&&(this.xb.oa("hidden",{},!0),this.getVideoData().yc||(this.getVideoData().yc=1,this.o0(),this.xb.playVideo()))}}; +g.k.onLoadProgress=function(a,b){this.Ua.Hc("onLoadProgress",b)}; +g.k.sca=function(){this.Ua.publish("playbackstalledatstart")}; +g.k.onVideoProgress=function(a,b){a=H_(this,a);b=Q_(this,a.getCurrentTime(),a);this.Ua.Hc("onVideoProgress",b)}; +g.k.onAutoplayBlocked=function(){this.Ua.Ai("onAutoplayBlocked")}; +g.k.Gba=function(){this.Ua.publish("progresssync")}; +g.k.vba=function(){this.Ua.Hc("onPlaybackPauseAtStart")}; +g.k.paa=function(a){if(this.getPresentingPlayerType()===1){g.Qy(a,1)&&!g.U(a.state,64)&&this.Od().isLivePlayback&&this.tb.isAtLiveHead()&&this.Ua.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Qy(a,2)){if(this.Db&&this.Db.endTimeMs>=(this.getDuration()-1)*1E3){T5a(this);return}G5a(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.eh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Ai("onError",sMa(b.errorCode));this.Ua.Hc("onDetailedError",{errorCode:b.errorCode, +errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.wP,cpn:b.cpn});(0,g.Zt)()-this.W.Sf>6048E5&&this.Ua.Hc("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!sA("pbresume","ad_to_video")&&sA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.qA(b,"ad_to_video");pA("pbresume",void 0,"ad_to_video");YOa(this.Rd)}this.Ua.publish("applicationplayerstatechange",a)}}; +g.k.J0=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("presentingplayerstatechange",a)}; +g.k.Lk=function(a){F_(this,TF(a.state));g.U(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(O_(this,{muted:!1,volume:this.Ri.volume},!1),P_(this,!1))}; +g.k.jaa=function(a,b,c){a==="newdata"&&w5a(this);b=c.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})}; +g.k.sG=function(a,b){this.Ua.Hc("onPlaybackAudioChange",this.Ua.getAudioTrack().dc.name);this.Ua.publish("internalaudioformatchange",this.Ua.getAudioTrack().dc.id,b)}; +g.k.MG=function(a){var b=this.xb.getVideoData();a===b&&this.Ua.Ai("onPlaybackQualityChange",a.B.video.quality)}; +g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId}); +this.W.Ac()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.tb&&(this.W.Fj=c.oauthToken);if(b===this.tb){this.getVideoData().enableServerStitchedDai&&!this.ue?this.ue=new g.PW(this.Ua,this.W,this.tb):!this.getVideoData().enableServerStitchedDai&&this.ue&&(this.ue.dispose(),this.ue=null);if(this.W.Ac()&&g.jQ(c)){var d,e;b.oa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.Bq.j)==null?void 0:(e=d.getVideoData())==null? +void 0:e.clientPlaybackNonce)||""})}var f,h;!g.jQ(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.Bq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.jQ(this.getVideoData())&&this.wb&&(this.W.Ac()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.wb.dispose(),this.wb=null):(rUa(this.Bq),d=OW(this.Bq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Bq.enqueue(d,!0),MW(this.Bq,0,this.getDuration(1)* +1E3,[d]),sUa(this.Bq,this.getVideoData().clientPlaybackNonce,[d]),this.wb&&(this.wb.dispose(),this.wb=null,this.W.Ac()&&b.oa("ssap",{tlmdis:1})),this.W.Ac()&&b.oa("ssap",{tlmcreate:1}),this.wb=new WUa(this.Ua,this.Bq,this.tb),this.tb.FH(this.wb))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),tU(this.Rd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.xb===this.tb?(UO(c.Da,c.nW),L5a(this)):J5a(this));b.getPlayerType()===1&&(this.W.Va&& +i6a(this),this.getVideoData().isLivePlayback&&!this.W.Tq&&this.Sg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((DLa(c)||this.getVideoData().Rv)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&V5a(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.Hc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.uM();(d=c.tH)?this.Ur.DX(d,c.clientPlaybackNonce):SVa(this.Ur)}; +g.k.SO=function(){K_(this,null);this.Ua.Hc("onPlaylistUpdate")}; +g.k.Fba=function(a){delete this.eM[a.getId()];this.tb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Wa)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.Wa)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.w(q),c=b.next();!c.done;c=b.next())if(c=c.value, +e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.R(c,g.mQ),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.R(a,g.mQ))&&this.Ua.ib("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; +g.k.Mq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(F_(this,-1),F_(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))}; +g.k.Sg=function(a,b,c,d,e){this.tb.Lf(a,b,c,d,e)}; +g.k.Ns=function(a,b){this.tb.handleError(new FE(a,b))}; +g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.qR(this,a);if(!c)return!1;a=G_(this,c);c=H_(this,c);return a!==c?a.isAtLiveHead(Q_(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)}; +g.k.Kr=function(){var a=g.qR(this);return a?G_(this,a).Kr():0}; +g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.qR(this,d))this.appState===2&&M_(this),this.Ef(d)?R_(this)?this.ue.seekTo(a,{seekSource:e},b,c):this.bd.seekTo(a,{seekSource:e},b,c):g.jQ(this.getVideoData())&&this.wb?this.wb.seekTo(a,{eI:!b,qU:c,Zc:"application",seekSource:e}):d.seekTo(a,{eI:!b,qU:c,Zc:"application",seekSource:e})}; +g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)}; +g.k.DB=function(){this.Ua.Hc("SEEK_COMPLETE")}; +g.k.tL=function(){this.Ua.ib("onAbnormalityDetected")}; +g.k.gca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.U(a.getPlayerState(),512)||M_(this):this.Ua.Hc("SEEK_TO",b)}; +g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayActiveChange",this.Ua.ji())}; +g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.Hc("onAirPlayAvailabilityChange",this.Ua.HF())}; +g.k.showAirplayPicker=function(){var a;(a=this.xb)==null||a.xv()}; +g.k.MR=function(){this.Ua.publish("beginseeking")}; +g.k.yG=function(){this.Ua.publish("contentPoTokenReady")}; +g.k.RR=function(){this.Ua.publish("endseeking")}; +g.k.getStoryboardFormat=function(a){return(a=g.qR(this,a))?G_(this,a).getVideoData().getStoryboardFormat():null}; +g.k.zk=function(a){return(a=g.qR(this,a))?G_(this,a).getVideoData().zk():null}; +g.k.Ef=function(a){a=a||this.xb;var b=!1;if(a){a=a.getVideoData();if(R_(this))a=a===this.ue.ea.getVideoData();else a:if(b=this.bd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.w(b.B);for(var c=b.next();!c.done;c=b.next())if(a.rd===c.value.rd){a=!0;break a}a=!1}b=a}return b}; +g.k.gE=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n lengthMs="+d+" enterTimeMs="+e}); +var l="",m=R_(this),n;(n=g.qR(this))==null||n.oa("appattl",{sstm:this.ue?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?CUa(this.ue,a,b,c,d,e,f,h):uVa(this.bd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l}); +return l}; +g.k.EF=function(a,b,c,d,e,f,h){if(R_(this)){var l=CUa(this.ue,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""}; +g.k.Vu=function(a){var b;(b=this.ue)==null||b.Vu(a)}; +g.k.Jz=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;R_(this)||DVa(this.bd,a,b)}; +g.k.hI=function(a,b,c){if(R_(this)){var d=this.ue,e=d.wc.get(a);e?(c===void 0&&(c=e.Xd),e.durationMs=b,e.Xd=c):d.Kl("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.bd;e=null;for(var f=g.w(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.rd===a){e=h;break}e?(c===void 0&&(c=e.Xd),CVa(d,e,b,c)):hX(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}}; +g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.Ef();a=new g.WP(this.W,a);d&&(a.rd=d);W5a(this,a,b,c)}; +g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Vc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.hN,d=this.Yk.N,c.C!==a&&(c.xb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=yTa(b,a,this.Yk.N),c!=null?(b.oa("sgap",c),b.getVideoData().Y&&A_(b,!1)):(a=a.getVideoData(),b=this.hN,b.j!== +a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))}; +g.k.HJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.qR(this);f&&(G_(this,f).y3=!0);PTa(this.Yk,a,b,c,d).then(function(){e.Ua.Hc("onQueuedVideoLoaded")},function(){})}; +g.k.Do=function(){return this.Yk.Do()}; +g.k.OF=function(a){return this.Yk.OF(a)}; +g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Yk.clearQueue(a,b)}; +g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Od().enableServerStitchedDai&&this.tb&&!qZ(this.tb)){var f;(f=this.tb)==null||f.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.WP(this.W,a);g.dP(this.W)&&!f.Pk&&TT(this.Lb);var l,m=this.Lb,n=(l=f.Ya)!=null?l:"";m.timerName=n;this.Lb.wg("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Lb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&& +!this.L("html5_shorts_gapless_always_fallback")){l=STa(this.Yk,f,b);if(l==null){F_(this,-1);a=this.Yk;a.app.U().L("html5_gapless_new_slr")?R5a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().RD=!0;var p,q;(p=a.j)==null||(q=p.ya)==null||q.resume();var r;(r=a.j)==null||gX(r.hc());c={Zc:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Vc())==null||t.seekTo(RTa(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.qR(a.app))==null||u.playVideo(!0)}a.K();return!0}t= +this.L("html5_shorts_gapless_preload_fallback");u=this.Yk.j;t&&u&&!u.La()&&(p=u.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?T_(this,b,p):U_(this,b,p.videoId,p.rd),this.Ay.set(p,u,3600));this.Yk.clearQueue(t);var y;(y=g.qR(this))==null||y.oa("sgap",{f:l})}if(e){for(;f.Um.length&&f.Um[0].isExpired();)f.Um.shift();h=f.Um.length-1;h=h>0&&e.B(f.Um[h])&&e.B(f.Um[h-1]);f.Um.push(e)}c||(a&&iOa(a)?($O(this.W)&&!this.Aj&&(a.fetch=0),K_(this,a)):this.playlist&&K_(this,null),a&&(this.Aj= +ys(!1,a.external_list)));this.Ua.publish("loadvideo");b=this.Iu(f,b,d);h&&this.Sg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Um.join()).replace(/[;:,]/g,"_"));return b}; +g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=Y5a(this,b,a,e);else{var h=Ds(a);f=U_(this,b,h,e)}if(this.Ay.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null; +a=new g.WP(this.W,a);e&&(a.rd=e);return X5a(this,a,b,c,d)}; +g.k.setMinimized=function(a){this.visibility.setMinimized(a);(a=aPa(this.Rd))&&(this.isMinimized()?a.load():a.unload());this.Ua.publish("minimized")}; +g.k.setInline=function(a){this.visibility.setInline(a)}; +g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Rd;a=a.J.U().showInlinePreviewUi?a.He.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.ib("onInlinePreviewModeChange"))}; +g.k.My=function(a){var b=this.W.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.W.Xl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.FP&&b?this.FP.start():this.lX():this.visibility.My(a)}; +g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)}; +g.k.lX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&Os(b).catch(function(c){return g.fx(c)})}; +g.k.dca=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.My(!0):this.My(!1)}; +g.k.togglePictureInPicture=function(){var a=g.qR(this);a&&a.togglePictureInPicture()}; +g.k.Iu=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b}); +sA("_start",this.Lb.timerName)||g.tr(iA)(void 0,this.Lb.timerName);var d=!1,e=O5a(this,b,a,!1);e?(d=!0,a.dispose()):(e=I5a(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&s_(e)&&g.yW(e),this.rM.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),AW(this,e));e===this.tb&&(this.W.Fj=a.oauthToken);if(!s_(e))return!1;if(e===this.tb){this.Mq(1);c=M_(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.Aq.j)this.onVideoDataChange("dataloaded", +e,e.getVideoData());return c}M4a(e);return!0}; +g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Od().enableServerStitchedDai&&this.tb&&!qZ(this.tb)&&a&&Object.keys(a).length>0){var d;(d=this.tb)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&iOa(a))if(this.Hx=!0,K_(this,a),(a=g.UT(this.playlist))&&a.qe())W_(this,a,b);else this.playlist.onReady(function(){L_(c)}); +else{b||(b=this.getPresentingPlayerType());b===1&&this.SO();d=new g.WP(this.W,a);var e=g.IO(this.W)&&!this.W.ra&&b===1&&!d.isAd()&&!d.wc;this.Ua.publish("cuevideo");e?(this.Vc().getVideoData().loading=!0,pOa(d,a?a:{}).then(function(f){W_(c,f,b)}),d.dispose()):W_(this,d,b)}}; +g.k.qp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(KO(this.W)||g.MC(this.W))return b=b||{},b.lact=Wv(),b.vis=this.Ua.getVisibilityState(),this.Ua.ib("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;gOa(this.Lb);this.Lb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0}; +g.k.cuePlaylist=function(a,b,c,d){this.Hx=!0;Z5a(this,a,b,c,d)}; +g.k.loadPlaylist=function(a,b,c,d){this.Hx=!1;Z5a(this,a,b,c,d)}; +g.k.bF=function(){return this.Ua.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Gl())}; +g.k.Tt=aa(13); +g.k.nextVideo=function(a,b){var c=g.nQ(this.tb.getVideoData());g.HR(this.Ua)&&c?this.qp(c.videoId,b?c.OE:c.sessionData,c.playlistId,b,void 0,c.aX||void 0):this.Aj?this.Ua.Hc("onPlaylistNext"):this.getPresentingPlayerType()===3?BR(this.Rd).nextVideo():!this.playlist||$O(this.W)&&!this.Ua.isFullscreen()||(this.playlist.Gl(a)&&lOa(this.playlist,jOa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Iu(g.UT(this.playlist,void 0, +b,a),1)):this.Hx=!1)}; +g.k.previousVideo=function(a){this.Aj?this.Ua.Hc("onPlaylistPrevious"):this.getPresentingPlayerType()===3?BR(this.Rd).bM():!this.playlist||$O(this.W)&&!this.Ua.isFullscreen()||(this.playlist.Yp(a)&&lOa(this.playlist,kOa(this.playlist)),this.playlist.loaded?this.Iu(g.UT(this.playlist),1):this.Hx=!1)}; +g.k.playVideoAt=function(a){this.Aj?this.Ua.Hc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Iu(g.UT(this.playlist,a),1):this.Hx=!1,lOa(this.playlist,a))}; +g.k.getPlaylist=function(){return this.playlist}; +g.k.mF=aa(21);g.k.haa=function(a){this.Ua.Hc("onCueRangeEnter",a.getId())}; +g.k.iaa=function(a){this.Ua.Hc("onCueRangeExit",a.getId())}; +g.k.Bz=function(a,b,c){var d=g.qR(this,b);if(d){var e=this.Od();if(g.jQ(e)){if(this.wb)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.wb.Hl()&&(this.tb.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.tb.getVideoData().clientPlaybackNonce}),d=this.tb),b===1)for(var f=aX(this.wb,e.clientPlaybackNonce),h=g.w(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Nl=f,l.C=e.clientPlaybackNonce; +else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.w(a),f=e.next();!f.done;f=e.next())f.value.C=this.wb.Cl();e=g.w(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.Bz(a,c);b&&this.getPresentingPlayerType()!==b||E_(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.tb.oa("ssap",{acrlpnf:this.tb.getVideoData().clientPlaybackNonce})}; +g.k.jH=function(a,b){var c=g.qR(this,b);c&&(c.jH(a),b&&this.getPresentingPlayerType()!==b||E_(this,"cuerangesremoved",a))}; +g.k.Zy=function(a){var b=this.Vc()||this.tb,c=b.Bh;if(c){var d=this.getPresentingPlayerType();if(this.W.Ac()){var e=c.vK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Zy(d,a):c.Zy(d)}return 0}; +g.k.oaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.Ww(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.L("web_playback_associated_ve");d={cpn:b.getVideoData().clientPlaybackNonce,csn:e};b.getVideoData().Ma&&(f||h)&&(f=g.Tw(b.getVideoData().Ma),g.zx(e,f),h&&(d.playbackVe=f.getAsJson()));b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo);e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().K&&(e.cttAuthInfo= +{token:b.getVideoData().K,videoId:b.getVideoData().videoId});g.Ht("playbackAssociated",d,e)}else g.fx(new g.pt("CSN Missing or undefined during playback association"))} +var b=this;this.getPresentingPlayerType();eOa(this.Lb,this.xb.getVideoData(),c6a(this));J_(this)&&this.W.D&&QQ(this.Od())==="embedded"&&this.m_&&Math.random()<.01&&g.Ht("autoplayTriggered",{intentional:this.EZ});this.m_=!1;YOa(this.Rd);this.L("web_player_defer_ad")&&K5a(this);this.Ua.Hc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),VO(this.W))||a();var c={};this.getVideoData().K&&(c.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId});c.sampleRate= +20;rA("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.bP(this.W)||g.hO(this.W)==="MWEB"?g.vt(g.xt(),function(){N_(b)}):N_(this); +this.uM();S5a(this)}; +g.k.BG=function(){this.Ua.publish("internalAbandon");S_(this)}; +g.k.onApiChange=function(){this.W.N&&this.xb?this.Ua.Ai("onApiChange",this.xb.getPlayerType()):this.Ua.Ai("onApiChange")}; +g.k.fba=function(){var a=this.mediaElement;a={volume:g.Dd(Math.floor(a.getVolume()*100),0,100),muted:a.aK()};a.muted||P_(this,!1);this.Ri=g.Fc(a);this.Ua.Ai("onVolumeChange",a)}; +g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.DR)&&(this.DR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.DR}),this.Ua.Hc("onMutedAutoplayStarts"))}; +g.k.onFullscreenChange=function(){var a=e6a(this);this.hn(a?1:0);g6a(this,!!a)}; +g.k.hn=function(a){var b=!!a,c=!!this.lA()!==b;this.visibility.hn(a);this.template.hn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&e6a(this)===this.mediaElement.Ib()&&this.mediaElement.QE();this.template.resize();c&&this.Lb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Od(),b={fullscreen:b,videoId:a.cO||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.Hc("onFullscreenChange",b))}; +g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.lA=function(){return this.visibility.lA()}; +g.k.Tba=function(){this.xb&&(this.lA()!==0&&this.lA()!==1||this.hn(e6a(this)?1:0),this.W.Xl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.QE())}; +g.k.Xaa=function(a){this.getPresentingPlayerType()!==3&&this.Ua.publish("liveviewshift",a)}; +g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a}); +var b=g.qR(this,a);b&&(this.appState===2?(g.dP(this.W)&&TT(this.Lb),M_(this)):g.U(b.getPlayerState(),2)?(b=36,this.getVideoData().Bk()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())}; +g.k.pauseVideo=function(a,b){(a=g.qR(this,a))&&a.pauseVideo(b)}; +g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"}); +var b=this.tb.getVideoData(),c=new g.WP(this.W,{video_id:b.cO||b.videoId,oauth_token:b.oauthToken});c.Z=g.Fc(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.FW=!0);this.cancelPlayback(6);W_(this,c,1)}; +g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b}); +var d=g.qR(this,b);d?b===2&&d.getPlayerType()===1&&(RLa(this.Od())||g.jQ(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.W.Ac()&&d.oa("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.xb&&(this.logger.debug("cancel playback, destroy modules"),tU(this.Rd,a)),b===1&&(d.stopVideo(),S_(this)),d.Vo(void 0,a!==6),E_(this,"cuerangesremoved",d.Bl()),d.Bh.reset(),this.Yk&&d.isGapless()&& +(d.Rj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; +g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.qR(this,b))&&IJa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()}; +g.k.Ki=function(a){var b=g.qR(this);return b&&IJa(this.W,a)?b.Ki(a):null}; +g.k.updatePlaylist=function(){!$O(this.W)&&g.IO(this.W)&&M5a(this);this.Ua.Hc("onPlaylistUpdate")}; +g.k.setSizeStyle=function(a,b){this.w2=a;this.L("web_log_theater_mode_visibility")?this.vC(b):this.aR=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()}; +g.k.vC=function(a){this.visibility.vC(a)}; +g.k.Dk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.Dk():this.aR}; +g.k.isMinimized=function(){return this.visibility.isMinimized()}; +g.k.isInline=function(){return this.visibility.isInline()}; +g.k.Dj=function(){return this.visibility.Dj()}; +g.k.NA=function(){return this.visibility.NA()}; +g.k.UA=function(){return this.visibility.UA()}; +g.k.ZQ=function(){return this.w2}; +g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return BR(this.Rd).getAdState();if(!this.Ef()){var a=uU(this.Bb());if(a)return a.getAdState()}return-1}; +g.k.Sba=function(a){var b=this.template.getVideoContentRect();hm(this.ZZ,b)||(this.ZZ=b,this.xb&&x_(this.xb),this.tb&&this.tb!==this.xb&&x_(this.tb),this.lA()===1&&this.PG&&g6a(this,!0));this.hR&&g.Jd(this.hR,a)||(this.Ua.publish("appresize",a),this.hR=a)}; +g.k.Jh=function(){return this.Ua.Jh()}; +g.k.nca=function(){this.getPresentingPlayerType()===2&&this.bd.isManifestless()?BVa(this.bd):(this.ue&&(IUa(this.ue),S_(this)),F5a(this,"signature"))}; +g.k.o0=function(){this.Rj();D_(this)}; +g.k.nba=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.W.experiments.kb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.ib("onPlayerRequestAuthFailed")}; +g.k.xG=function(){this.Ua.Hc("CONNECTION_ISSUE")}; +g.k.AG=function(a){this.Ua.publish("heartbeatparams",a)}; +g.k.oM=function(a){this.Ua.ib("onAutonavChangeRequest",a!==1)}; +g.k.Ke=function(){return this.mediaElement}; +g.k.setBlackout=function(a){this.W.ob!==a&&(this.W.ob=a,this.xb&&(this.xb.kp(),this.W.Va&&i6a(this),this.xb.Uo(a)))}; +g.k.pba=function(){var a=g.qR(this);if(a){var b=!this.Ua.LF();(a.ZY=b)||a.Px.stop();a.videoData.j&&(b?a.videoData.j.resume():uIa(a.videoData.j));a.ya&&(b?a.ya.resume():z_(a,!0));g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Ec(PF(a.playerState,512)):a.Ec(OF(a.playerState,512));a=a.hc();a.qoe&&(a=a.qoe,g.JZ(a,g.XI(a.provider),"stream",[b?"A":"I"]))}}; +g.k.onLoadedMetadata=function(){this.Ua.Hc("onLoadedMetadata")}; +g.k.onDrmOutputRestricted=function(){this.Ua.Hc("onDrmOutputRestricted")}; +g.k.iB=function(){this.EZ=!0}; +g.k.xa=function(){this.Rd.dispose();this.z8.dispose();this.bd.dispose();this.ue&&this.ue.dispose();this.Bq.removeAll();this.Bq.dispose();this.wb&&this.wb.dispose();this.tb.dispose();this.Rj();g.gb(g.wc(this.gt),this.playlist);g.O.prototype.xa.call(this)}; +g.k.L=function(a){return this.W.L(a)}; +g.k.setScreenLayer=function(a){this.screenLayer=a}; +g.k.getInternalApi=function(){return this.Ua.getInternalApi()}; +g.k.createSubtitlesModuleIfNeeded=function(){return this.Rd.createSubtitlesModuleIfNeeded()}; +g.k.isOrchestrationLeader=function(){var a=wU(this.Rd);return a?a.isOrchestrationLeader():!1}; +g.k.getVideoUrl=function(a,b,c,d,e){if(this.Db&&this.Db.postId)return a=this.W.getVideoUrl(a),a=Wi(a,"v"),a.replace("/watch","/clip/"+this.Db.postId);var f=this.Ua.jd()||this.W.Ma==="shortspage",h=g.bR(this.getVideoData());return this.W.getVideoUrl(a,b,c,d,e,f,h)}; +g.k.wu=function(){return this.Yk.wu()}; +g.k.Vm=function(a){this.Ua.publish("spsumpstatuschange",a)}; +g.k.pS=function(a,b){this.Ua.publish("spsumpreject",a,b)}; +g.k.pG=function(){try{for(var a=g.w(Object.values(this.gt)),b=a.next();!b.done;b=a.next()){var c=b.value;c.La()||c.pG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.w(GVa(this.Ay)),e=d.next();!e.done;e=d.next()){var f=e.value;f.La()||f.pG()}this.tb.pG()}catch(h){g.fx(h)}}; +g.k.ST=function(){if(this.ue){var a=(0,g.Zt)();return this.ue.ST(a)}return!1}; +var y2={};var w6a=/[&\?]action_proxy=1/,v6a=/[&\?]token=([\w-]*)/,x6a=/[&\?]video_id=([\w-]*)/,y6a=/[&\?]index=([\d-]*)/,z6a=/[&\?]m_pos_ms=([\d-]*)/,B6a=/[&\?]vvt=([\w-]*)/,n6a="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),A6a="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),q6a={android:"ANDROID", +"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},r6a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},t6a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Z_.prototype.fB=function(a){this.player.Wh().tick(a)}; +Z_.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.fB("a_bid_s");var e=l6a();if(e!==null)return d&&this.fB("a_bid_f"),this.B(a,b,e);e=m6a();d&&Ke(e,function(){c.fB("a_bid_f")}); +return e.then(function(f){return c.B(a,b,f)})}; +Z_.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Sw;var f=e.je;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Hj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Dh:0,AUTONAV_STATE:Y_(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Kr()*1E3,LACT:Wv(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0, +VIS:this.player.getVisibilityState(),P_H:this.player.qb().ai().height,P_W:this.player.qb().ai().width,YT_REMOTE:e?e.join(","):""},n=Gr(Fr);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())}); +c!==""&&(m.BISCOTTI_ID=c);c={};Er(a)&&(c.sts="19935",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=Br(g.Ho(a,m),c);return p.split("?").length!==2?Ie(Error("Invalid AdBreakInfo URL")):g.kP(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Dr()){var r=fS();gS(r,q)}q=d.player.Im(r);r=C6a(d,p,m,l.isMdxPlayback,h);return g.xA(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})}; +Z_.prototype.reset=function(){this.C=this.j=1};g.z(D6a,Z_); +D6a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Sw;var e=b.je;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:E6a(this,a,{Sw:d,je:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.fx(Error("Invalid AdBreakInfo URL")),Ie(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=v6a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=w6a.test(h);e=x6a.exec(h);e=e!=null&&e.length>= +2?e[1]:"";var n=y6a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=z6a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=TO(this.player.U().Fa),r=g.uz(this.player.getVideoData(1).Ma,!0);p6a(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(Wv()),playerHeightPixels:Math.trunc(this.player.qb().ai().height),playerWidthPixels:Math.trunc(this.player.qb().ai().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19935,autonavState:Y_(this.player.U())}; +if(l){l={};var t=this.player.U().Hj;s6a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=A6a.includes(q)?void 0:g.es("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,y=t.length;u1&&A[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=u6a(l)}h=B6a.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m}; +m=VLa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Dh:0)*1E3))?String(d):void 0;u=this.player.Kr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d, +driftFromHeadMs:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return F6a(this,b)};var lcb={ska:"replaceUrlMacros",Lja:"onAboutThisAdPopupClosed",Hha:"executeCommand"};G6a.prototype.Ir=function(){return"adPingingEndpoint"}; +G6a.prototype.fu=function(a,b,c){j7a(this.Oa.get(),a,b,c)};H6a.prototype.Ir=function(){return"changeEngagementPanelVisibilityAction"}; +H6a.prototype.fu=function(a){this.J.ib("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};I6a.prototype.Ir=function(){return"loggingUrls"}; +I6a.prototype.fu=function(a,b,c){a=g.w(a);for(var d=a.next();!d.done;d=a.next())d=d.value,j7a(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.z(K6a,g.O);g.z(a0,g.O);g.k=a0.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.Kk=function(a,b,c,d,e,f,h,l){if(a==="")Ny("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ia.get().Kk(a,b,c,d,e,f,h,l);this.Sa.get().Kk(a,b,c,d,e,f,h,l);var m;(m=this.xf)==null||m.get().Kk(a,b,c,d,e,f,h,l);this.B.Kk(a,b,c,d,e,f,h,l);m=g.w(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Kk(a,b,c,d,e,f,h,l)}}; +g.k.BG=function(){this.j&&this.Lo(this.j)}; +g.k.Lo=function(a){this.j=void 0;for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Lo(a)};b0.prototype.XI=function(a,b,c,d,e){L6a(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.K);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(L6a(this),this.G=!b&&c===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.C=!0,sA("_start",this.actionType)&&N6a(this)))}; +b0.prototype.reset=function(){return new b0(this.J)};g.z(d0,g.O);d0.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?Ny("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new O6a(a,b,c,d,f),this.j.set(a.id,{je:a,listener:e,ip:h}),this.J.lf([a],h))}; +d0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Wo([b.je],b.ip),this.j.delete(b.je.id)):Ny("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})}; +d0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)}; +d0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)}; +g.z(O6a,g.qD);e0.prototype.bH=function(a){this.J.bH(a)}; +e0.prototype.Yu=function(a){var b=g.Ca.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.Ai.apply(this.J,[a].concat(g.x(b))):this.J.ib.apply(this.J,[a].concat(g.x(b)))};f0.prototype.Ve=function(a){return a&&g0(this)}; +f0.prototype.JT=function(){return this.J.U().experiments.kb("h5_enable_generic_error_logging_event")}; +f0.prototype.NT=function(){return this.J.U().experiments.kb("enable_ips_gating")};var W6a=null;g.z(V6a,g.Fx);V6a.prototype.SP=function(a){return this.j.hasOwnProperty(a)?this.j[a].SP():{}}; +g.Ka("ytads.bulleit.getVideoMetadata",function(a){return i0().SP(a)}); +g.Ka("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=i0();c=U6a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=j0.prototype; +g.k.Rh=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=Dl(Go).mK(a,{});c?xn(c):b&&(a=Dl(Go).iH(null,Vl(),!1,a),a.Hk=3,aka([a]));return{}}b=Y6a(b);if(b===null)return{};var d=this.J.Vc();d=d&&F4a(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ia.get().isFullscreen()};return ala(b,a,c)}; +g.k.gy=function(a){var b;(b=this.j.get(a.queryId))==null||b.gy()}; +g.k.ey=function(a){var b;(b=this.j.get(a.queryId))==null||b.ey()}; +g.k.iy=function(a){var b;(b=this.j.get(a.queryId))==null||b.iy()}; +g.k.Yx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Yx()}; +g.k.Zx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Zx()};e7a.prototype.send=function(a,b,c,d){try{f7a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.z(g7a,e7a);h7a.prototype.send=function(a,b,c,d){var e=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=cqa(a);d=e;var f=a.match(Li);if(f[1]==="https")var h=a;else f[1]="https",h=Ji("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=fla(h);f=[];var m=Pma(h)&&this.Aa.get().J.U().experiments.kb("add_auth_headers_to_remarketing_google_dot_com_ping");if(Er(h)||m)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), +f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:h,scrubReferrer:l,headers:f},b,c,d)}catch(n){}};o0.prototype.Ki=function(){var a=this.J.Vc();return a&&(a=a.Ki(1))?a:null};g.z(p0,g.O);g.k=p0.prototype;g.k.Hm=function(){return this.J.getVideoData(1).clientPlaybackNonce}; +g.k.addListener=function(a){this.listeners.push(a)}; +g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})}; +g.k.Kk=function(){this.mO.clear();this.kR=null;this.Ss.get().clear()}; +g.k.Lo=function(){}; +g.k.Fca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&zE(this,"ads_ssm_vdc_s",{pt:c,dvt:a});WI(this.Aa.get())&&a!=="dataloaded"||q7a(this,b,c);if(g0(this.Aa.get())&&a==="newdata"&&e!==void 0){a=this.Hm();var f=b.clientPlaybackNonce,h={};CE(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=BE(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=r7a(e);if(e!==1)if(d!==void 0)for(c=g.w(this.listeners),a=c.next();!a.done;a=c.next())a.value.wG(d, +b,e);else Ny("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.w(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.vG(b)}}; +g.k.hca=function(a,b){a!==void 0&&(this.kR=a,b===void 0?Ny("Expected ad video start time on SS video changed"):this.mO.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?q7a(this,d,c):Ny("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})}; +g.k.YI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.rd,h=a.title,l=a.lj,m=a.Qj,n=a.isMdxPlayback,p=a.xn,q=a.mdxEnvironment,r=a.isAutonav,t=a.Lq,u=a.Pk,y=a.Hp,A=a.videoId||"",D=a.profilePicture||"",F=a.Wl||"",H=a.Bk()||!1,M=a.oi()||!1;a=a.Pw||void 0;f=this.Ss.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),Q=N.Vb();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var Z=1E3*this.J.getDuration(1),fa,pa,Y=(N==null?void 0:(fa=N.playerConfig)==null?void 0: +(pa=fa.daiConfig)==null?void 0:pa.enableDai)||!1,S,W;fa=(N==null?void 0:(S=N.playerConfig)==null?void 0:(W=S.daiConfig)==null?void 0:W.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Vca:b,Mp:Z,daiEnabled:Y,HX:fa,isListed:e,Vb:Q,profilePicture:D,title:h,Wl:F,lj:l,Qj:m,Pw:a,isMdxPlayback:n,xn:p,mdxEnvironment:q,isAutonav:r,Lq:t,Pk:u,Hp:y,Bk:H,oi:M})}; +g.k.xa=function(){this.listeners.length=0;this.Tw=null;g.O.prototype.xa.call(this)};g.z(q0,g.O);g.k=q0.prototype;g.k.Kk=function(){var a=this;g0(this.Aa.get())||(this.j=ad(function(){a.J.La()||a.J.Dg("ad",1)}))}; +g.k.Lo=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.PR=function(){}; +g.k.playVideo=function(){this.J.playVideo()}; +g.k.pauseVideo=function(){this.J.pauseVideo()}; +g.k.resumeVideo=function(a){this.Fo(a)&&this.J.playVideo()}; +g.k.Fo=function(a){return this.J.getPlayerState(a)===2}; +g.k.getCurrentTimeSec=function(a,b,c){var d=this.Sa.get().kR;if(a===2&&!b&&d!==null)return t7a(this,d);QI(this.Aa.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)}; +g.k.getVolume=function(){return this.J.getVolume()}; +g.k.isMuted=function(){return this.J.isMuted()}; +g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)}; +g.k.getPlayerState=function(a){return this.J.getPlayerState(a)}; +g.k.isFullscreen=function(){return this.J.isFullscreen()}; +g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()}; +g.k.sC=function(a){this.J.sC(a)}; +g.k.Hba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.w(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ni(b)}else if(a===1)for(a=g.w(this.wE),c=a.next();!c.done;c=a.next())c.value.PR(b)}; +g.k.yba=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bg(a,this.getPresentingPlayerType())}; +g.k.onFullscreenToggled=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)}; +g.k.onVolumeChange=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()}; +g.k.oh=function(){for(var a=this.J.isMinimized(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.oh(a)}; +g.k.Jj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jj(a)}; +g.k.kc=function(){for(var a=this.J.qb().ai(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.gj(a)}; +g.k.Ij=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ij(a)}; +g.k.Lj=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.Lj()};g.z(w7a,g.O);g.z(v0,g.O);v0.prototype.xa=function(){this.Io.La()||this.Io.get().removeListener(this);g.O.prototype.xa.call(this)};w0.prototype.fetch=function(a){var b=a.FX;return this.j.fetch(a.E3,{Sw:a.Sw===void 0?void 0:a.Sw,je:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return x7a(c,b)})};g.z(x0,g.O);g.k=x0.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.FM=function(a){y7a(this,a,1)}; +g.k.onAdUxClicked=function(a,b){y0(this,function(c){c.hg(a,b)})}; +g.k.KR=function(a){y0(this,function(b){b.qQ(a)})}; +g.k.JR=function(a){y0(this,function(b){b.pQ(a)})}; +g.k.daa=function(a){y0(this,function(b){b.qK(a)})};z0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={zE:null,b_:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Dh)?Ny("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,B7a(this, +c)))}}; +g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.QR,this),this.j=null);this.listeners.length=0;this.WM.length=0;g.O.prototype.xa.call(this)};B0.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=D0.prototype;g.k.gE=function(a,b,c,d,e,f,h){return this.J.gE(a,b,c,d,e,f,h)}; +g.k.Jz=function(a,b){this.J.Jz(a,b)}; +g.k.hI=function(a,b,c){this.J.hI(a,b,c)}; +g.k.Vu=function(a){this.J.Vu(a)}; +g.k.EF=function(a,b,c,d,e,f,h){this.J.EF(a,b,c,d,e,f,h)}; +g.k.Ps=function(a){return this.J.Ps(a)}; +g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.z(G7a,g.O);g.z(H7a,g.O);g.z(I7a,g.O);g.z(J7a,g.O);g.z(K7a,g.O);g.z(M7a,g.O);M7a.prototype.C=function(){return this.B};g.z(N7a,ry); +N7a.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1); +this.j.ib("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ib("updateKevlarOrC3Companion", +{contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ib("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ib("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",b.addAction);this.j.ib("changeEngagementPanelVisibility", +b.expandAction);break;case 3:this.j.ib("changeEngagementPanelVisibility",b.hideAction),this.j.ib("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.ib("updateEngagementPanelAction",{action:kx(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.ib("changeEngagementPanelVisibility",kx(c.expandAction));break;case 3:this.j.ib("changeEngagementPanelVisibility", +kx(c.hideAction)),this.j.ib("updateEngagementPanelAction",{action:kx(c.removeAction)})}}};g.z(O7a,Ay);g.k=O7a.prototype; +g.k.init=function(a,b,c){Ay.prototype.init.call(this,a,b,c);g.jm(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"), +this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Cy(this);Ay.prototype.hide.call(this)}; +g.k.show=function(){By(this);Ay.prototype.show.call(this)}; +g.k.Dq=function(){this.hide()}; +g.k.To=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.jm(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.z(P7a,Ox);g.k=P7a.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.R(b.actionButton,g.nI))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.ex(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&& +e.length>0&&g.pb(g.Ud(e[0].url))&&(e[0].url=d.profilePicture,g.pb(g.Ud(d.profilePicture))&&CIa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.pb(g.Ud(e[0].url))&&(e[0].url=d.gh());e=b.headline;e!=null&&g.pb(g.Ud(e.text))&&(e.text=d.author)}this.Y.init(Dx("ad-image"),b.image,c);this.G.init(Dx("ad-text"),b.headline,c);this.C.init(Dx("ad-text"),b.description,c);this.Ka.init(Dx("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"); +this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Xa.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.wf.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"), +this.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,d);g.P(this,this.actionButton);this.actionButton.Ja(this.fb);this.actionButton.init(Dx("button"),g.R(b.actionButton,g.nI),c);ap(this.actionButton.element);d=dp(this.actionButton.element);cp(this.actionButton.element, +d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.xP,this);this.D.T(this.Va,"click",this.xP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.xP,this);this.j=this.OT?new Xy(this.api,a):new Yy(a);g.P(this,this.j);if(b.skipButton){if((a=g.R(b.skipButton,V$a))&&this.j&&(this.skipButton=new Ry(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,this.CM), +g.P(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(Dx("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.R(c,U$a))a=new Vy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),a.Ja(this.Ga),a.init(Dx("simple-ad-badge"),c,this.macros),g.P(this,a);if(c=b.adInfoRenderer)if(c=g.R(c,lI))a=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),a.Ja(this.Ga),a.init(Dx("ad-info-hover-text-button"), +c,this.macros),g.P(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.R(b.nonskippableOverlayRenderer,mI))&&this.j&&(this.B=new Fy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,!1),g.P(this,this.B),this.B.Ja(this.element),this.B.init(Dx("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.R(b,W$a)&&this.j&&(c=new O7a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j),g.P(this,c),c.Ja(this.element),c.init(Dx("timed-pie-countdown"),g.R(b,W$a), +this.macros)));this.show();this.element.focus()}else g.ex(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ex(Error("AdActionInterstitialRenderer has no button."));else g.ex(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ex(Error("AdActionInterstitialRenderer has no description AdText."));else g.ex(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ex(Error("AdActionInterstitialRenderer has no image."))}; +g.k.clear=function(){g.Ys(this.D);this.hide()}; +g.k.show=function(){Q7a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();Ox.prototype.show.call(this)}; +g.k.hide=function(){Q7a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();Ox.prototype.hide.call(this)}; +g.k.xP=function(){this.navigationEndpoint&&(this.layoutId?this.jb.executeCommand(this.navigationEndpoint,this.layoutId):g.ex(Error("Missing layoutId for ad action interstitial.")))};var V7a={iconType:"CLOSE"},H0=new g.Id(320,63);g.z(U7a,Ox);g.k=U7a.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Tb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.R(a,R$a)?(this.G=g.de("ytp-ad-overlay-ad-info-button-container",this.C.element),W7a(this,b),a=Y7a(this,g.R(a,R$a))):g.R(a,S$a)?(this.G=g.de("ytp-ad-overlay-ad-info-button-container",this.B.element),W7a(this,b),a=Z7a(this,g.R(a,S$a))):g.R(a,T$a)?(this.G= +g.de("ytp-ad-overlay-ad-info-button-container",this.j.element),W7a(this,b),a=$7a(this,g.R(a,T$a))):(g.ex(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),a8a(this,!0))}; +g.k.clear=function(){a8a(this,!1);this.Ka.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; +g.k.wca=function(){this.Xa&&(this.layoutId?this.jb.executeCommand(this.Xa,this.layoutId):g.ex(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.k.SN=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.k.baa=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.k.jS=function(){this.Wa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.jS("invideo-overlay")}; +g.k.caa=function(a){a.target===this.G&&g.de("ytp-ad-button",this.fb.element).click()};g.z(b8a,Ay);g.k=b8a.prototype;g.k.init=function(a,b,c){Ay.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(Dx("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){c8a(this,!1);Ay.prototype.hide.call(this);this.B.hide();this.messageText.hide();Cy(this)}; +g.k.show=function(){c8a(this,!0);Ay.prototype.show.call(this);By(this);this.B.show();this.messageText.show()}; +g.k.Dq=function(){this.hide()}; +g.k.To=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(zy(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.z(d8a,Ox);g.k=d8a.prototype; +g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.R(b.actionButton,g.nI)?(this.C.init(Dx("ad-image"),b.image,c),this.B.init(Dx("ad-text"),b.headline,c),this.D.init(Dx("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, +a),b.backgroundColor&&g.jm(this.element,"background-color",g.jz(b.backgroundColor)),g.P(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(Dx("button"),g.R(b.actionButton,g.nI),c),b=g.AC(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.pp(c,"ytp-ad-underlay-left-container"),g.np(c,"ytp-ad-underlay-right-container"),g.jm(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.pp(c,"ytp-ad-underlay-right-container"), +g.np(c,"ytp-ad-underlay-left-container")),g.jm(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.NF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.dW.bind(this)),this.api.addEventListener("resize",this.XY.bind(this))):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.k.show=function(){e8a(!0);this.actionButton&&this.actionButton.show();Ox.prototype.show.call(this)}; +g.k.hide=function(){e8a(!1);this.actionButton&&this.actionButton.hide();Ox.prototype.hide.call(this)}; +g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.dW.bind(this));this.api.removeEventListener("resize",this.XY.bind(this));this.hide()}; +g.k.onClick=function(a){Ox.prototype.onClick.call(this,a);this.actionButton&&g.qe(this.actionButton.element,a.target)&&this.api.pauseVideo()}; +g.k.dW=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; +g.k.XY=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.jm(this.B.element,"font-size",a.width/40+"px")};g.z(I0,Ox); +I0.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.R(b.answer,g.nI)?(a=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(Dx("ytp-ad-survey-answer-button"),g.R(b.answer,g.nI),c),a.show()):b.answer&&g.R(b.answer,v1)&&(this.j=new py(this.api,this.layoutId,this.interactionLoggingClientData,this.jb, +["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.P(this,this.j),this.j.init(Dx("survey-answer-button"),g.R(b.answer,v1),c));this.show()}; +I0.prototype.uH=function(a){this.layoutId?fD(this.jb,a,this.layoutId,this.macros):g.ex(new g.pt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +I0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +I0.prototype.clear=function(){this.hide()};g.z(f8a,Ox);f8a.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.answer&&g.R(b.answer,v1)&&(this.button=new py(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(Dx("survey-none-of-the-above-button"),g.R(b.answer,v1),c));this.show()};g.z(J0,gy);J0.prototype.init=function(a,b,c){gy.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Qx(b.text),a=!g.pb(b));a||g.fx(Error("No submit text was present in the renderer."))}; +J0.prototype.onClick=function(a){this.publish("l");gy.prototype.onClick.call(this,a)};g.z(K0,Ox); +K0.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.R(a,NG)?(a=g.R(a,NG),c=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!0),c.Ja(this.skipOrPreview),c.init(Dx("skip-button"),a,this.macros),g.P(this,c),this.j=c):g.R(a,mI)&&(a=g.R(a,mI),c=new Fy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!1),c.Ja(this.skipOrPreview),c.init(Dx("ad-preview"),a,this.macros),Gy(c),g.P(this,c),this.j=c);this.j== +null&&g.ex(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.R(a,g.nI)&&(a=g.R(a,g.nI),c=new J0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.submitButton),c.init(Dx("survey-submit"),a,this.macros),g.P(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.R(a,U$a),c=new Vy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),c.Ja(this.C),c.init(Dx("simple-ad-badge"),a,this.macros), +g.P(this,c);if(a=b.adDurationRemaining)a=g.R(a,N$a),c=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,void 0),c.Ja(this.C),c.init(Dx("ad-duration-remaining"),a,this.macros),g.P(this,c);(b=b.adInfoRenderer)&&g.R(b,lI)&&(a=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,a),a.Ja(this.C),a.init(Dx("ad-info-hover-text-button"),g.R(b,lI),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified"); +this.show()}; +K0.prototype.clear=function(){this.hide()};g.z(L0,Ox);L0.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);k8a(this)}; +L0.prototype.show=function(){this.C=g.Xa();Ox.prototype.show.call(this)}; +L0.prototype.E1=function(){};g.z(l8a,L0);g.k=l8a.prototype;g.k.init=function(a,b,c){var d=this;L0.prototype.init.call(this,a,b,c);b.questionText&&g8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,t1)&&h8a(d,g.R(e,t1),c,f)}); +this.G=new Set(this.B.map(function(e){return e.j.j})); +(a=b.noneOfTheAbove)&&(a=g.R(a,Q$a))&&m8a(this,a,c);b.surveyAdQuestionCommon&&j8a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()}; +g.k.E1=function(){n8a(this,!1);this.D.B.subscribe("l",this.uca,this)}; +g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?o8a(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),n8a(this,!0))}; +g.k.uca=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e; +e=g.Gc(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Ui(f.baseUrl,b));return f}); +return e}); +if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?fD(this.jb,d,this.layoutId,this.macros):g.ex(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)}; +g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(M0,L0);M0.prototype.init=function(a,b,c){var d=this;L0.prototype.init.call(this,a,b,c);b.questionText&&g8a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.R(e,t1)&&h8a(d,g.R(e,t1),c,f)}); +b.surveyAdQuestionCommon?j8a(this,b.surveyAdQuestionCommon):g.ex(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; +M0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(N0,Ox);N0.prototype.init=function(a,b,c){var d=this;Ox.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&s8a(this,0)}else(b.questions||[]).forEach(function(l){g.R(l,jI)?q8a(d,g.R(l,jI),c):g.R(l,iI)&&r8a(d,g.R(l,iI),c)}); +this.show()}; +N0.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +N0.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.ex(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex; +break;default:g.ex(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)s8a(this,d); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ex(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var t8a=ma(['background-image:url("','");']);g.z(O0,Ox); +O0.prototype.init=function(a,b,c){var d=this;Ox.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.ex(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.R(b.ctaButton,g.nI))if(b.brandImage)if(b.backgroundImage&&g.R(b.backgroundImage,oI)&&g.R(b.backgroundImage,oI).landscape){this.layoutId||g.ex(Error("Missing layoutId for survey interstitial."));u8a(this.interstitial, +g.R(b.backgroundImage,oI).landscape);u8a(this.logoImage,b.brandImage);g.re(this.text,g.Qx(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new gy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,e);g.P(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(Dx("button"),g.R(b.ctaButton,g.nI),c);this.actionButton.show();this.j=new Xy(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()}); +g.P(this,this.j);this.T(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)}); +this.transition.show(100)}else g.ex(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ex(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ex(Error("SurveyTextInterstitialRenderer has no button."));else g.ex(Error("SurveyTextInterstitialRenderer has no text."));else g.ex(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +O0.prototype.clear=function(){this.hide()}; +O0.prototype.show=function(){v8a(!0);Ox.prototype.show.call(this)}; +O0.prototype.hide=function(){v8a(!1);Ox.prototype.hide.call(this)};g.z(Q0,Ox);Q0.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(a=b.content){g.re(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.ex(Error("AdSimpleAttributedString does not have text content"))}; +Q0.prototype.clear=function(){this.hide()}; +Q0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.z(R0,Ox); +R0.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.pb(a.content)?(this.adBadgeText.init(Dx("ad-simple-attributed-string"),new P0(a)),(b=b.adPodIndex)&&b.content&&!g.pb(b.content)&&(this.j=new Q0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),this.j.Ja(this.element),g.P(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Dx("ad-simple-attributed-string"),new P0(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()): +g.ex(Error("No label is returned in AdBadgeViewModel."))}; +R0.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();Ox.prototype.show.call(this)}; +R0.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();Ox.prototype.hide.call(this)};g.z(S0,Ay);g.k=S0.prototype; +g.k.init=function(a,b){Ay.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.ex(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.SJ();var c;if((c=b.previewText)==null||!c.text||g.pb(b.previewText.text))g.ex(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.re(this.C,b.previewText.text);var d; +if(((d=this.api.getVideoData(1))==null?0:d.fm)&&b.previewImage){var e,f;(a=((f=wua(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.Nx({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.P(this,this.previewImage),this.previewImage.Ja(this.element)):g.ex(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){Cy(this);Ay.prototype.hide.call(this)}; +g.k.show=function(){By(this);Ay.prototype.show.call(this)}; +g.k.Dq=function(){this.hide()}; +g.k.To=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.re(this.C,a);this.D=b}}}};g.z(T0,Ox); +T0.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});var c,d;if((a=((d=wua(((c=b.image)==null?void 0:c.sources)||[],x8a(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Ea("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.ex(Error("Failed to get imageUrl in AdAvatar."))}; +T0.prototype.clear=function(){this.hide()}; +T0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.z(U0,Ox); +U0.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.pb(a))||b.iconImage){c&&(this.buttonText=new g.Nx({I:"span",S:"ytp-ad-button-vm__text",va:a}),g.P(this,this.buttonText),this.buttonText.Ja(this.element),this.api.U().experiments.kb("should_fix_player_ad_button_text_overflow")&&this.buttonText.element.classList.add("ytp-ad-button-vm__text--fix-text-overflow"));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null? +0:e.label)||c?a:"";f&&cp(this.element,f+" This link opens in new tab");ap(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.w(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=fy(d);h!=null&&(this.buttonIcon=new g.Nx({I:"span",S:"ytp-ad-button-vm__icon",V:[h]}),g.P(this,this.buttonIcon),b.iconLeading?(oe(this.element, +this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")))}this.element.classList.add("ytp-ad-button-vm--style-filled");switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.fx(Error("AdButton does not have label or an icon."))}; +U0.prototype.clear=function(){this.hide()}; +U0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.z(y8a,Ay);g.k=y8a.prototype; +g.k.init=function(a,b){Ay.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),oe(this.Ea("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.R(b.avatar,X$a)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.R(b.button,Z$a);e?(this.adAvatar.init(Dx("ad-avatar"),a),this.headline.init(Dx("ad-simple-attributed-string"),new P0(c)),this.description.init(Dx("ad-simple-attributed-string"),new P0(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(Dx("ad-button"),e),this.B=b.startMs||0,this.api.NF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.eW.bind(this)),By(this)):g.ex(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.k.To=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(Cy(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.k.Dq=function(){this.clear()}; +g.k.onClick=function(a){this.api.pauseVideo();Ay.prototype.onClick.call(this,a)}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.eW.bind(this))}; +g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Ay.prototype.show.call(this)}; +g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Ay.prototype.hide.call(this)}; +g.k.eW=function(a){a==="hidden"?this.show():this.hide()};g.z(z8a,Ox);g.k=z8a.prototype; +g.k.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(!b.label||g.pb(b.label))g.ex(Error("No label is returned for SkipAdButton."));else if(g.re(this.D,b.label),a=fy({iconType:"SKIP_NEXT_NEW"}),a==null)g.ex(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.Nx({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.P(this,this.C),this.C.Ja(this.element),this.api.U().experiments.kb("enable_skip_to_next_messaging")&&(b=g.Ud(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id", +b),this.element.setAttribute("data-tooltip-target-fixed","")}; +g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(Usa(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.ib("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;Ox.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ib("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.k.clear=function(){this.j.reset();this.hide()}; +g.k.hide=function(){Ox.prototype.hide.call(this)}; +g.k.show=function(){this.j.start();Ox.prototype.show.call(this);this.B&&this.api.U().experiments.kb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(A8a,Ay);g.k=A8a.prototype; +g.k.init=function(a,b){Ay.prototype.init.call(this,a,b,{});var c=g.R(b.preskipState,aab);c?(a=g.R(b.skippableState,cab))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.fx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(Dx("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(Dx("skip-button"),a),this.show()):g.ex(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.ex(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))}; +g.k.show=function(){By(this);Ay.prototype.show.call(this)}; +g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();Cy(this);Ay.prototype.hide.call(this)}; +g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();Cy(this);Ay.prototype.hide.call(this)}; +g.k.Dq=function(){this.hide()}; +g.k.To=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.z(V0,Ox); +V0.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.pb(b.label.content)&&(this.linkText=new g.Nx({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.P(this,this.linkText),this.linkText.Ja(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)cp(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.pb(b.label.content)&&cp(this.element, +b.label.content+" This link opens in new tab")}ap(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ex(Error("No label found in VisitAdvertiserLink."))}; +V0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +V0.prototype.clear=function(){this.hide()};g.z(W0,Ox); +W0.prototype.init=function(a,b,c,d){Ox.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.R(c,dab),c=g.R(c,aab),a?(this.yv=new A8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.yv),this.yv.Ja(this.G),this.yv.init(Dx("skip-ad"),a)):c&&(this.C=new S0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,1),g.P(this,this.C),this.C.Ja(this.G),this.C.init(Dx("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&& +(a=g.R(b.playerAdCard,bab))&&(this.playerAdCard=new y8a(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.P(this,this.playerAdCard),this.playerAdCard.Ja(this.ra),this.playerAdCard.init(Dx("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.R(c,U$a),c=g.R(c,Y$a),a||c)&&(a?(this.adBadge=new Vy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.P(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(Dx("simple-ad-badge"),a,this.macros)): +c&&(this.D=new R0(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.D),this.D.Ja(this.j),this.D.init(Dx("ad-badge"),c),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--with-ad-badge-view-model")));b.adDurationRemaining&&(a=g.R(b.adDurationRemaining,N$a))&&(this.adDurationRemaining=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d.videoAdDurationSeconds),g.P(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j), +this.adDurationRemaining.init(Dx("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.R(b.adInfoRenderer,lI))&&(this.adInfoButton=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.P(this,this.adInfoButton),this.adInfoButton.Ja(this.j),this.adInfoButton.init(Dx("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.R(b.visitAdvertiserLink,eab))&&(this.visitAdvertiserLink=new V0(this.api,this.layoutId,this.interactionLoggingClientData, +this.jb),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(Dx("visit-advertiser-link"),d));b.adDisclosureBanner&&(b=g.R(b.adDisclosureBanner,$$a))&&(this.adDisclosureBanner=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.Ja(this.Y),this.adDisclosureBanner.init(Dx("ad-disclosure-banner"),b));this.show()}; +W0.prototype.clear=function(){this.hide()};var mcb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.z(X0,ry); +X0.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!mcb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.jb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof dE?c.OT:!1,m=c instanceof dE||c instanceof Wy?c.CM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new U7a(a,f,h,e);break;case "player-overlay":a=new gz(a,f,h,e,new KU(a),m);break;case "player-overlay-layout":a=new W0(a,f,h,e,new KU(a));break;case "survey":a= +new N0(a,f,h,e);break;case "ad-action-interstitial":a=new P7a(a,f,h,e,l,m);break;case "survey-interstitial":a=new O0(a,f,h,e);break;case "ad-message":a=new b8a(a,f,h,e,new KU(a,1));break;case "player-underlay":a=new d8a(a,f,h,e);break;default:a=null}if(!a){g.fx(Error("No UI component returned from ComponentFactory for type: "+d));break}g.yc(this.B,b)?g.fx(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof jE?this.C?this.C.append(a.nT):g.ex(Error("Underlay view was not created but UnderlayRenderer was created")): +this.G.append(a.nT);break;case 2:b=B8a(this,a);if(b==null)break;b.bind(c);break;case 3:c=B8a(this,a),c!=null&&(g.fb(c),g.yc(this.B,b)?(c=this.B,b in c&&delete c[b]):g.fx(Error("Ad UI component does not exist: "+b)))}}; +X0.prototype.xa=function(){g.gb(Object.values(this.B));this.B={};ry.prototype.xa.call(this)};g.z(C8a,g.XT);g.k=C8a.prototype;g.k.create=function(){try{D8a(this),this.load(),this.created=!0,D8a(this)}catch(a){Ny(a instanceof Error?a:String(a))}}; +g.k.load=function(){try{G8a(this)}finally{g0(F0(this.j).zl)&&this.player.Dg("ad",1)}}; +g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.jy.Lo(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.k.unload=function(){g.XT.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){Ny(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()}; +g.k.jn=function(){return!1}; +g.k.getAdState=function(){return-1}; +g.k.getOptions=function(){return Object.values(lcb)}; +g.k.Uh=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=a7a(this.player),Object.assign(b,a.Bma),a=g.Ho(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.rq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}}; +g.k.Su=function(a){var b;return!((b=this.j.j.xf)==null||!b.get().Su(a))}; +g.k.rq=function(a){a.isMuted&&Aua(F0(this.j).Jl,F0(this.j).Ko,a.layoutId);this.zt&&this.zt.rq()}; +g.k.executeCommand=function(a){F0(this.j).jb.executeCommand(a.command,a.layoutId)};g.Ka("yt.player.Application.create",g.C_.create);g.Ka("yt.player.Application.createAlternate",g.C_.create);Cra($w(),{ws:[{qB:/Unable to load player module/,weight:20},{qB:/Failed to fetch/,weight:500},{qB:/XHR API fetch failed/,weight:10},{qB:/JSON parsing failed after XHR fetch/,weight:10},{qB:/Retrying OnePlatform request/,weight:10},{qB:/CSN Missing or undefined during playback association/,weight:100}]});var ncb=g.La("ytcsi.tick");ncb&&ncb("pe");g.WT("ad",C8a);g.ocb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Ka("yt.msgs_",g.ocb);g.z(g.$0,g.O);g.$0.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.Zt)()};this.next()}; +g.$0.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.$0.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.Zt)()-a;a=this.j;d=Ola(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Fd(a.C,a.y1,d);var f=Fd(a.y1,a.y2,d);a=Fd(a.y2,a.D,d);e=Fd(e,f,d);f=Fd(f,a,d);a=Fd(e,f,d)}a=g.Dd(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.z(g.a1,g.T);g.k=g.a1.prototype;g.k.y6=function(){this.B&&this.scrollTo(this.j-this.containerWidth)}; +g.k.show=function(){g.T.prototype.show.call(this);M8a(this)}; +g.k.z6=function(){this.B&&this.scrollTo(this.j+this.containerWidth)}; +g.k.ly=function(){this.kc(this.api.qb().getPlayerSize())}; +g.k.kc=function(a){var b=this.api.jd()?.5625:16/9,c=this.api.Hh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.w(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ea("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.b1(this)}; +g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Ff?!1:a.D;this.suggestionData=b.suggestions?g.kn(b.suggestions,function(c){return c&&!c.playlistId}):[]; +O8a(this);b.Ff?this.title.update({title:g.DD("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.jd()?"More shorts":"More videos"})}; +g.k.scrollTo=function(a){a=g.Dd(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.b1(this);M8a(this)};})(_yt_player); diff --git a/vendor/index.html b/vendor/index.html new file mode 100644 index 0000000..a5854a5 --- /dev/null +++ b/vendor/index.html @@ -0,0 +1,10 @@ +YouTube
\ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..7ac611f --- /dev/null +++ b/yarn.lock @@ -0,0 +1,283 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +agent-base@^7.0.2, agent-base@^7.1.0: + version "7.1.1" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.1.tgz#bdbded7dfb096b751a2a087eeeb9664725b2e317" + integrity sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA== + dependencies: + debug "^4.3.4" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +combined-stream@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +cssstyle@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-4.0.1.tgz#ef29c598a1e90125c870525490ea4f354db0660a" + integrity sha512-8ZYiJ3A/3OkDd093CBT/0UKDWry7ak4BdPTFP2+QEP7cmhouyq/Up709ASSj2cK02BbZiMgk7kYjZNS4QP5qrQ== + dependencies: + rrweb-cssom "^0.6.0" + +data-urls@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-5.0.0.tgz#2f76906bce1824429ffecb6920f45a0b30f00dde" + integrity sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg== + dependencies: + whatwg-mimetype "^4.0.0" + whatwg-url "^14.0.0" + +debug@4, debug@^4.3.4: + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + dependencies: + ms "2.1.2" + +decimal.js@^10.4.3: + version "10.4.3" + resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.4.3.tgz#1044092884d245d1b7f65725fa4ad4c6f781cc23" + integrity sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA== + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +entities@^4.4.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +html-encoding-sniffer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz#696df529a7cfd82446369dc5193e590a3735b448" + integrity sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ== + dependencies: + whatwg-encoding "^3.1.1" + +http-proxy-agent@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" + integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== + dependencies: + agent-base "^7.1.0" + debug "^4.3.4" + +https-proxy-agent@^7.0.5: + version "7.0.5" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz#9e8b5013873299e11fab6fd548405da2d6c602b2" + integrity sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw== + dependencies: + agent-base "^7.0.2" + debug "4" + +iconv-lite@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +is-potential-custom-element-name@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" + integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== + +jsdom@^24.1.1: + version "24.1.1" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-24.1.1.tgz#f41df8f4f3b2fbfa7e1bdc5df62c9804fd14a9d0" + integrity sha512-5O1wWV99Jhq4DV7rCLIoZ/UIhyQeDR7wHVyZAHAshbrvZsLs+Xzz7gtwnlJTJDjleiTKh54F4dXrX70vJQTyJQ== + dependencies: + cssstyle "^4.0.1" + data-urls "^5.0.0" + decimal.js "^10.4.3" + form-data "^4.0.0" + html-encoding-sniffer "^4.0.0" + http-proxy-agent "^7.0.2" + https-proxy-agent "^7.0.5" + is-potential-custom-element-name "^1.0.1" + nwsapi "^2.2.12" + parse5 "^7.1.2" + rrweb-cssom "^0.7.1" + saxes "^6.0.0" + symbol-tree "^3.2.4" + tough-cookie "^4.1.4" + w3c-xmlserializer "^5.0.0" + webidl-conversions "^7.0.0" + whatwg-encoding "^3.1.1" + whatwg-mimetype "^4.0.0" + whatwg-url "^14.0.0" + ws "^8.18.0" + xml-name-validator "^5.0.0" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@^2.1.12: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +nwsapi@^2.2.12: + version "2.2.12" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" + integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== + +parse5@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32" + integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw== + dependencies: + entities "^4.4.0" + +psl@^1.1.33: + version "1.9.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== + +punycode@^2.1.1, punycode@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" + integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== + +querystringify@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/querystringify/-/querystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6" + integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +rrweb-cssom@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz#ed298055b97cbddcdeb278f904857629dec5e0e1" + integrity sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw== + +rrweb-cssom@^0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz#c73451a484b86dd7cfb1e0b2898df4b703183e4b" + integrity sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg== + +"safer-buffer@>= 2.1.2 < 3.0.0": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +saxes@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-6.0.0.tgz#fe5b4a4768df4f14a201b1ba6a65c1f3d9988cc5" + integrity sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA== + dependencies: + xmlchars "^2.2.0" + +symbol-tree@^3.2.4: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +tough-cookie@^4.1.4: + version "4.1.4" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.1.4.tgz#945f1461b45b5a8c76821c33ea49c3ac192c1b36" + integrity sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag== + dependencies: + psl "^1.1.33" + punycode "^2.1.1" + universalify "^0.2.0" + url-parse "^1.5.3" + +tr46@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-5.0.0.tgz#3b46d583613ec7283020d79019f1335723801cec" + integrity sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g== + dependencies: + punycode "^2.3.1" + +universalify@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" + integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== + +url-parse@^1.5.3: + version "1.5.10" + resolved "https://registry.yarnpkg.com/url-parse/-/url-parse-1.5.10.tgz#9d3c2f736c1d75dd3bd2be507dcc111f1e2ea9c1" + integrity sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ== + dependencies: + querystringify "^2.1.1" + requires-port "^1.0.0" + +w3c-xmlserializer@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz#f925ba26855158594d907313cedd1476c5967f6c" + integrity sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA== + dependencies: + xml-name-validator "^5.0.0" + +webidl-conversions@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" + integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== + +whatwg-encoding@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz#d0f4ef769905d426e1688f3e34381a99b60b76e5" + integrity sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ== + dependencies: + iconv-lite "0.6.3" + +whatwg-mimetype@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz#bc1bf94a985dc50388d54a9258ac405c3ca2fc0a" + integrity sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg== + +whatwg-url@^14.0.0: + version "14.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-14.0.0.tgz#00baaa7fd198744910c4b1ef68378f2200e4ceb6" + integrity sha512-1lfMEm2IEr7RIV+f4lUNPOqfFL+pO+Xw3fJSqmjX9AbXcXcYOkCe1P6+9VBZB6n94af16NfZf+sSk0JCBZC9aw== + dependencies: + tr46 "^5.0.0" + webidl-conversions "^7.0.0" + +ws@^8.18.0: + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== + +xml-name-validator@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-5.0.0.tgz#82be9b957f7afdacf961e5980f1bf227c0bf7673" + integrity sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg== + +xmlchars@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" + integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==